function onNoteOn()
{
local n = Message.getNoteNumber();
if (ks.indexOf(n) != -1)
{
btnAccent[ks.indexOf(n)].setValue(1);
btnAccent[ks.indexOf(n)].changed(); //Trigger button's callback
}
}
G
GUJIAN
@GUJIAN
4
Reputation
36
Posts
9
Profile views
0
Followers
1
Following
Posts made by GUJIAN
-
RE: Key technique
-
RE: Key technique
Content.makeFrontInterface(600, 250); Synth.deferCallbacks(true); const var Sampler1 = Synth.getSampler("Sampler1"); Sampler1.enableRoundRobin(false); const var ks = [36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47] for (i = 0; i < ks.length; i++) { Engine.setKeyColour(ks[i], Colours.withAlpha(Colours.red, 0.3)); } // btnAccent const var btnAccent = []; for (i = 0; i < ks.length; i++) { btnAccent.push(Content.getComponent("btnAccent" + i)); btnAccent[i].setControlCallback(onbtnAccentControl); } inline function onbtnAccentControl(component, value) { if (value) { local index = btnAccent.indexOf(component); // Index of button that triggered callback for (i = 0; i < btnAccent.length; i++) btnAccent[i].setValue(i == index); Sampler1.setActiveGroup(index + 1); } else { component.setValue(1); // Prevent button being turned off by clicking on it } }
-
Key technique
Key skill control, how to achieve, each time you press the key only show the corresponding, others are hidden, and then press another key, you will hide the previous one, show the control prompt of the current key
-
RE: I export vst3 and prompt vst3 SDK not found
@d-healey How can I not find vst3 when the export is finished
-
RE: I export vst3 and prompt vst3 SDK not found
@d-healey Is that so
OK, thank you, teacher
-
RE: I export vst3 and prompt vst3 SDK not found
@d-healey Is projucer not set correctly
-
RE: I export vst3 and prompt vst3 SDK not found
@d-healey Set, you can export vst2 normally