Sampler.setSoundPropertyForSelection(); seems to have a bug.
-
Sampler.setSoundPropertyForSelection(); seems to have a bug.
When I changed the values of Root, LoKey, and HiKey in the sample from larger to smaller values, the HiKey value with the code 4 did not take effect.

-
@CatABC Use constants instead of magic numbers
-
@d-healey There are some rare cases that .setAttribute gives an error if I use param ID instead of a number. Gives an error on only certain things error: "expected int" I think the error is. I'll specifically note them next time and tell you.
-
@Chazrox said in Sampler.setSoundPropertyForSelection(); seems to have a bug.:
@d-healey There are some rare cases that .setAttribute gives an error if I use param ID instead of a number. Gives an error on only certain things error: "expected int" I think the error is. I'll specifically note them next time and tell you.
That means the constant is invalid
-
@CatABC if you change both the low and the highkey downwards you need to change the lo key first and then the hi key, cause it’s not possible to set the hi key below the lowkey