HI all,
first post here, i must admit that i started some days ago with Hise and so i'm a pure beginner, i made some Kontakt Instrument/scripts but stopped 2, 3 years ago and i forgot a lot about scripting in Kontakt! :)
I have a Sample Player and a bypass button to switch the layer OFF and a volume knob.Both works fine, i can switch the sample player with the knob on/off and i can change the volume of the player.
But, i want, that the old level of the volume knob when i switch the bypass button on.
It works when i set the volume by hand, for example:
const var a = -100 //level down
const var b = 0 //old level
When i switch the button on/off, the volume has the levels from a or b. But when i try to read the actual volume from the slider, it isn't working.
Any ideas?
When i look in the array of the knob, i can see the right volume but why it isn't working when i send it to the sample player?
Engine.getGainFactorForDecibels(b));
When i use const var b = VolumeSlider it isn't working.
Hm...