Not sure when this bug creeped in, just noticed it today. Maybe time to drop the onControl callback altogether for new projects.
Beta Testers
All developers participating in the HISE Betatest Program
-
[bug] Selecting onControl in script editor opens OnController
-
RE: Change Sample Map via ComboBox
Sampler1.loadSampleMap(SampleSelection.getValue()-1);
loadSampleMap expects the name of a sample map.
-
RE: Change Sample Map via ComboBox
@pgaudioworks Is SampleSelection.getValue()-1 the name of your sample map?
-
RE: Change Sample Map via ComboBox
@pgaudioworks Console.Print is not a function ;)
-
RE: Change Sample Map via ComboBox
@pgaudioworks The error message is telling you it can't find the function you are calling on line 5. You are calling two functions on that line, try eliminating one of them and see if the error remains.
I just noticed, the error message tells you which function.
-
RE: Change Sample Map via ComboBox
@pgaudioworks
getSampleMapList()
is a function of the Sampler class, notchildSynth
Try using
Synth.getSampler("Sampler1");
-
RE: Failing at HISE 101
@clevername27 said in Failing at HISE 101:
I'll try downloading another build.
Let me know how it goes in the latest develop branch, you should be able to load my snippet there.
-
RE: Failing at HISE 101
@clevername27 said in Failing at HISE 101:
@d-healey Thank you - I may still be missing something. I did try with two non-deferred scripts.
We're talking about two separate things. Using two non-deferred scripts is good practice, but won't solve the issue you're having. There is something else wrong with your code but no way of knowing without seeing the whole project. So try the simple version I suggested and see if that works (it does for me) and then figure out from that what is different in your implementation in your main project.
-
RE: LAF for Preset Browser Buttons
@clevername27 said in LAF for Preset Browser Buttons:
from what I can see, that's in your code. bgColour is defined earlier in the function.
I thought you were posting your code above, copying/pasting my code into your project won't work. I was showing my code so you can see the method and implement it in your own project.