.setPostCallback:
-
I want to use this API to recall 'Routing Options' current state because when I save/load preset, my combobox values reset back to default. If im in 24/out mode, I have to re-click my routing options button to desired routing settings after every preset/samplemap load/save.
My question about .setPostCallback is;
Do I have to completely use....
.setUseCustomUserPresetModel
is this API only available this way?
I've tried using it and it doesnt respond. I dont want to ditch the inbuilt preset browser.
What are my options? -
@Chazrox said in .setPostCallback::
when I save/load preset, my combobox values reset
Disable saveInPreset on the combo box?
Also this might help
-
@d-healey
These comboboxes aren't being saved in preset which is why it was throwing me off.Also this might help
ahh...let me try that. Do I just call that in Oninit like this?
MySampler.setUseStaticMatrix(true);
-
@Chazrox yes
-
@d-healey Do I need something set before this is called?
getting an error here.
also tried this.
const var routingSampler1 = Synth.getRoutingMatrix("Sampler1"); routingSampler1.setUseStaticMatrix(true);
doesnt work.
-
C Chazrox marked this topic as a question
-
@Chazrox said in .setPostCallback::
getting an error here.
Helps if you tell me what the error is ;)
-
@d-healey unknown function 'setUseStaticMatrix'.
-
@Chazrox What is
Sampler1
? -
@d-healey Sampler 1 is my first Sampler. (idk how else to answer that lol I think thats what you're asking) I have a combobox that has routing options for Sampler1 (and so on for tracks 1-9). Whenever a preset loads, these comboboxes go back to default channels(0,1). Im trying to stop that because if im in 24 track mode I have to go and reset these every time.
The first example is written out that way because I already have Sampler1 declared in the script above it. I tried doing 'routingSampler1' (example2) just to see if that would work. I dont know what im doing, just experimenting.
-
@Chazrox said in .setPostCallback::
Sampler 1 is my first Sampler. (idk
Show me where you are declaring it in the script please.
-
I was writing 'setUseStaticMatrix' way down from this... like line 1500. Could that have been the problem?
-
@Chazrox You're getting it as a
childSynth
, but thesetUseStaticMatrix
function is for a sampler.So you either need to get another reference as a sampler (I wouldn't do this).
Or you useSampler1.asSampler().setUseStaticMatrix(true);
(I would do this). -
@d-healey aahh. ok. I just did that and I didnt get an error. I'll find out if it works on the next export. Thank You!