Toggle Integer - beat/osc/multiWave


#1

I'm trying to build an axoloti version of the Moog Minatuar and I have found the beat/osx/multiWave object which I think might be able to work as the oscillators. I want to toggle the waveform on the object using a physical button, but the input is expecting an integer (1-4) and I can't seem to find an object to take a gate (yellow) output from the button and use it to rotate through the values 1-4 for each button press.

This seems like something that someone has done already, but maybe I'm not looking in the right place.

Cheers.


#2


#3

Thank you I tried this with the osc object but I can't get button A on the AxoControl to change the waveform, any ideas?

Well I'm obviously doing something wrong, because when I try the "MODULAR THING 8.axp" patch I can see that my hardware is working and the patch operates as intended, but even if I copy the axo controller subpatch from that file to mine I can't get it working. Is there some magic with the AxoController that I'm missing?

Maybe I'm expecting a change on the multiWave object (radio buttons) but that the wave is actually changing? Sorry very new to patching here.


#4

I think I figured it out kind of, when I connect a ctrl/i to the wave inlet, I get a change in waveform at 16/32/48/64 instead of my expectation of 1,2,3,4, so I guess I just need to multiply the output by 16 to get the right values. Strange?


#5

Verified. MultiWave wants values of 0,16,32,48, though I don’t know why the author chose that.
I’d use math/<<, with a value of 4, since multiplication by a power of 2 is usually most efficiently done with ‘left shift’, 2 to the 4th is 16. math/muls is used for saturation arithmetic, which isn’t needed for this, but might be harmless here.