Patch/preset proper use


#1

Putting this in here as it is in regards to a specific AXO and it's intended usage.

I have a synth subpatch. In this subpatch, I've set presets for different synth sounds. I would like to embed this subpatch in my main patch, but have a radio button (or sequenced perhaps) method of changing the preset within the subpatch. I have added the patch/preset object, connected it an i_2 radio button and a button for the trigger. I've enabled "parameter on parent" to pass those controls through to the main patch.

Then, I realized that it doesn't appear to work at all the way I expected. recreate:
Set presets 1 and 2 to obviously distinct sounding values
add patch/preset object
Add i_2 radiobutton object
add button object
connect radiobutton to preset input
connect button to trigger

The radiobuttons appear to have no impact on the preset number, and erratically, clicking the button will flip the value of the radiobutton to a different state.

Is there a different type I should be using for the preset number input on the patch/preset object? It would appear to be an integer, and is green, as is the output of the radiobutton object.

I'd appreciate any advice you might have!


#2

Can you post a screenshot of how you connected it?


#3

Thanks for getting back to me!

Imgur

I've actually gotten this to work correctly when running the subpatch on its own. It's only when running in poly mode that the parent patch fails with:
C:\DESKTO~1\axoloti/build/xpatch.cpp: In member function 'void rootc::instancehoonsynthsub2__1::voice::instancepreset__1::dsp(int32_t, int32_t)':
C:\DESKTO~1\axoloti/build/xpatch.cpp:2837:43: error: 'class rootc::instancehoonsynthsub2__1::voice' has no member named 'ApplyPreset'
if ((inlet_trig>0) && !ntrig) {parent->ApplyPreset(inlet_preset) ; ntrig=1;}
^
make: *** [C:\DESKTO~1\axoloti/build/xpatch.bin] Error 1
shell task failed, exit value: 1
Compiling patch failed ( F:\axoloti\Patches\HoonSynth\hoonsynth.axp )

Unsure what I might be doing wrong - I understand that in reality I would not be able to hit the radio buttons in each instance of the subpatches, but even hard coding it with a crtl/i set to 2 (my desired preset for this instrument) and triggering it right off will work when running the subpatch by itself, but not when running it from the parent.

EEEK!


#5

this looks like a bug...Id guess (without checking the code yet) for some reason the sub patcher don't have the ApplyPreset method. bit busy to take a look now, @johannes thoughts?


#6

Will look into this issue.