refactor: rename FindSendTarget to FindUnit

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2023-10-19 13:31:34 +03:00
parent 43707e5fd6
commit 64270eaf68
5 changed files with 14 additions and 14 deletions

View File

@ -1195,7 +1195,7 @@ func (m *Model) Param(index int) (Parameter, error) {
min, max := t.MinValue, t.MaxValue
if unit.Type == "send" {
if t.Name == "voice" {
i, _, err := m.d.Song.Patch.FindSendTarget(unit.Parameters["target"])
i, _, err := m.d.Song.Patch.FindUnit(unit.Parameters["target"])
if err == nil {
max = m.d.Song.Patch[i].NumVoices
}