mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
refactor: rename FindSendTarget to FindUnit
This commit is contained in:
parent
43707e5fd6
commit
64270eaf68
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user