Code to make notes a Toggle


I’m looking for an elegant way to make the note messages which are momentary bangs into toggles?
i just have not done it yet, surely this is in an example somewhere?

Thank you


Sometimes I just use the toggle GUI object where a bang just flips it. The note messages are just midi pairs, so you can use the [stripnote] to pass only the key press and not the release, then use [sel] with whatever key number you want to toggle.


that’s much more elegant than the spigot way i did it, this

I need to know a few things that will really open up the next patch.

1.) how do you get the knobs to be on seperate pages? i tried to copy the code for the two page pd-grids example but i can’t seem to get the pages to stay separate

2.) code for the little red recording light to go on while sampling


The LED is easy, you can just send a number 0 - 7 to [s led]. 0 is off, 1 is red, 2 is yellow and so on.

For the knobs, there isn’t a standard way to page them, so checking out how other patches handle this is the right move.


do i have to/can i compile source with the Organelle?
I have some source that are pre-compiled and the wrong ELF type