This prevents me from using this feature properly
Best posts made by CatABC
-
When I clicking this button, a bug occurs
-
RE: Setting the alpha of a color individually?
@d-healey Ahaha,god,It's so simple
Feeling mine so stupid。,Thanks very much David, you solved my problem again. -
RE: User-defined background?
@Oli-Ullmann Yes, thank you very much for your help.
-
RE: How to set the text color of Combobox?
@mmprod They are universal, you just use LAF
-
RE: How to set the text color of Combobox?
@Oli-Ullmann cool,I don't know what I did wrong, my
g.setColour();
didn't work, but I deleted all the code and rewrote it according to the code snippet you gave, and it worked. I want to give you a hug to express my endless gratitude.
-
RE: How to customize the viewport row background color?
@Soundavid Thank you so much, I learned it and I'm so excited!:beating_heart:
-
How to use a knob to change the SampleStart values of all samples in a sampler?
How to use a knob to change the SampleStart values of all samples in a sampler?
Please help me. I want to use the CC controller to control the SampleStart values of all samples in a certain sampler. I hope I can get a code snippet. I will be very grateful~! -
RE: How to control the parameters of each key individually?
@ulrik I succeeded,I put Sampler1.selectSounds(""); into oncmbSampleMapControl and it works fine
inline function onknbVolC1Control(component, value) { Sampler1.setSoundProperty(0, Sampler1.Volume, value); }; Content.getComponent("knbVolC1").setControlCallback(onknbVolC1Control); //change samplemap ------------- const var sampleMaps = Sampler.getSampleMapList(); const var fltPreset = Content.getComponent("fltPreset"); const var cmbSampleMap = Content.getComponent("cmbSampleMap"); cmbSampleMap.set("items", sampleMaps.join("\n")); inline function oncmbSampleMapControl(component, value) { GFRNB.asSampler().loadSampleMap(sampleMaps[value-1]); //updateSelectedSounds ---------- Sampler1.selectSounds(""); }; Content.getComponent("cmbSampleMap").setControlCallback(oncmbSampleMapControl);
Latest posts made by CatABC
-
RE: Setting the alpha of a color individually?
@d-healey Ahaha,god,It's so simple
Feeling mine so stupid。,Thanks very much David, you solved my problem again. -
RE: Setting the alpha of a color individually?
@d-healey Oh, sorry, I forgot to save the latest data when I was testing the code snippet,
ChangeColor2.zip
-
RE: Setting the alpha of a color individually?
@d-healey There is no problem switching with Combobox, but there is a problem with switching with preset browsers
-
RE: Setting the alpha of a color individually?
@d-healey ChangeColor.zip
The code snippet didn't seem to show the problem, so I uploaded a project, and along the way I found the source of the problem. When the button is in a Panel, it causes the problem. -
RE: Setting the alpha of a color individually?
@d-healey Unfortunately, he still has the same result. My guess is that because I used a button to trigger the color change, when the button value does not change, it will continue to keep the button callback result.
What should I write in the else of the button to make it return to the color before it changed? -
RE: Setting the alpha of a color individually?
@d-healey
This doesn't seem to work, am I doing something wrong?if (value == 2){ for (i = 0; i < 128; i++) { Engine.setKeyColour(i, 0x0); } local Ens2 = [36, 38, 40, 43, 48, 50, 52, 55, 60, 62, 64, 67, 84]; for (i = 0; i < Ens2.length; i++) { Engine.setKeyColour(Ens2[i], Colours.withAlpha(Colours.blue, 0.3)); }; }
-
RE: Setting the alpha of a color individually?
@d-healey The whole thing is this, I set different keyboard colors for different samplemaps, and after I used the button to change the keyboard key color, when I switched to another samplemap, the keyboard color of the previous samplemap was not overwritten, so I wanted to set the alpha value separately to avoid the problem of color not changing.
inline function onbtnEnsC1Control(component, value) { if (value){ eventId = Synth.playNote(24, 100); Engine.setKeyColour(24, 0x800000FF); } else Engine.setKeyColour(24, 0x500000FF); }; Content.getComponent("btnEnsC1").setControlCallback(onbtnEnsC1Control);
samplemap1
samplemap2
In the above two pictures, C0 and G0 of samplemap2 should have no color, and C#3-G#3 should be blue, but they are not changed.
if (value == 1){ local Ens = [24, 25, 26, 27, 28, 29, 31, 36, 37, 38, 39, 40, 43, 44, 45, 46, 47, 86]; for (i = 0; i < Ens.length; i++) { Engine.setKeyColour(Ens[i], 0x500000FF); }; local solo = [48, 50, 52, 55, 60, 61, 62, 63, 65, 66, 67, 68, 84]; for (i = 0; i < solo.length; i++) { Engine.setKeyColour(solo[i], 0x5000FF00); }; } if (value == 2){ local Ens2 = [36, 38, 40, 43, 48, 50, 52, 55, 60, 62, 64, 67, 84]; for (i = 0; i < Ens2.length; i++) { Engine.setKeyColour(Ens2[i], Colours.withAlpha(Colours.blue, 0.3)); }; }
-
RE: Setting the alpha of a color individually?
@d-healey I just want to set the Alpha value without adding the color value
-
Setting the alpha of a color individually?
Is it possible to set the alpha of a color individually?
Instead of first var colour and then float alphavar colour, float alpha
-
RE: How to make a button control the keyboard press?
@ulrik Ahaha, that's a great idea!