Reply To: setModulatorValue() and friends

Home Forums General Programming setModulatorValue() and friends Reply To: setModulatorValue() and friends

#120138
dnaldoog
Participant
  • Topics: 4
  • Replies: 480
  • Total: 484
  • ★★

UPDATE :: 10/05/2020


When a callback function is set in “Called when the modulator value changes”

When assigning incoming MIDI to the modulator – If the receiving incoming MIDI value is the same as the current Modulator Value then some functions do not trigger the callback function; see below.

Note that setValue(value,false) never triggers a callback function.



if the value is the same the function is not fired

panel:getModulatorByName(k):getComponent():setValue(value,true)
panel:getComponent(k):setValue(value,true)

Function is never fired

panel:getComponent(k):setValue(value,false)
panel:getModulatorByName(k):getComponent():setValue(value,false)

Function is always fired

panel:getModulatorByName(k):setValue(value,true)
panel:getModulatorByName(k):setModulatorValue(value,true,true,true)
panel:getModulatorByName(k):setModulatorValue(value,true,true,false)
panel:getModulatorByName(k):setModulatorValue(value,true,false,false)
panel:getModulatorByName(k):setModulatorValue(value,true,false,true)

panel:getModulatorByName(k):setModulatorValue(value,false,false,false)
panel:getModulatorByName(k):setModulatorValue(value,false,false,true)
panel:getModulatorByName(k):setModulatorValue(value,false,true,false)
panel:getModulatorByName(k):setModulatorValue(value,false,true,true)
Ctrlr