# Using foot-pedal to switch between modes

**URL:** <https://forum.critterandguitari.com/t/using-foot-pedal-to-switch-between-modes/2103>\
**Category:** Patching\
**Created:** [December 10, 2017, 4:27pm UTC](https://forum.critterandguitari.com/t/using-foot-pedal-to-switch-between-modes/2103 "2017-12-10T16:27:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominic](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/dominic/32/1171_2.png) [@Dominic](https://forum.critterandguitari.com/u/Dominic)\
**Post date:** [December 10, 2017, 4:27pm UTC](https://forum.critterandguitari.com/t/using-foot-pedal-to-switch-between-modes/2103/1 "2017-12-10T16:27:58Z")

</div>

Hi guys

I’ve never used PD but was wondering if anyone could help me figure out how to program a simple function for the foot-pedal to switch to the next alphabetical instrument loaded into the Organelle!

It seems like something which could be useful for anyone who uses the Organelle live. Having to switch between instruments obviously takes you out of the music.

Does anyone have any ideas? It would be much appreciated!

Cheers

Dominic  
[www.dominicjmarshall.com](http://www.dominicjmarshall.com)

---

<div class="post-metadata">

**Author:** ![Wannop](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/wannop/32/328_2.png) [@Wannop](https://forum.critterandguitari.com/u/Wannop)\
**Post date:** [December 10, 2017, 5:26pm UTC](https://forum.critterandguitari.com/t/using-foot-pedal-to-switch-between-modes/2103/2 "2017-12-10T17:26:09Z")

</div>

If you’re talking about changing through patches from the menu - I don’t think that could be done inside PD, would have to be at the system control level. Somebody else might be able to confirm/correct me for you.

Instead of taking this approach - it might make more sense to send MIDI ‘Program Change’ messages to the Organelle with a MIDI foot controller.

---

<div class="post-metadata">

**Author:** ![thetechnobear](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/thetechnobear/32/42_2.png) [@thetechnobear](https://forum.critterandguitari.com/u/thetechnobear)\
**Post date:** [December 10, 2017, 5:38pm UTC](https://forum.critterandguitari.com/t/using-foot-pedal-to-switch-between-modes/2103/3 "2017-12-10T17:38:14Z")

</div>

yup, @Wannop is totally correct…  
switching of patches is only via program changes…

however, i should add some details 😉

- it is the PD mother patch that actually make this midi to program change mapping!  
what this means is, if in your patch you want to make it happen, you can send a ‘pgmchg’ OSC message to mother host, to make the change.  
if you wanted this to happen for all PD patches, then you would need to override the mother.pd patch.
- from the next release (or my current TB beta) , this is going to select from the ‘favourites’ list, the idea behind this, is it makes more sense for a ‘set list’… also of course, its possible you might have more than 127 patches on your organelle, it means you can choose from your ‘selection’ 😉  
(also the use of folders, makes the notion of a alphabetic list of patch less meaningful)

---

<div class="post-metadata">

**Author:** ![Dominic](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/dominic/32/1171_2.png) [@Dominic](https://forum.critterandguitari.com/u/Dominic)\
**Post date:** [December 11, 2017, 9:24am UTC](https://forum.critterandguitari.com/t/using-foot-pedal-to-switch-between-modes/2103/4 "2017-12-11T09:24:05Z")

</div>

Hi guys, thanks for your help.

So @thetechnobear - would your favourites list allow what I suggested in any way?

Is it impossible to get the footpedal to send this ‘pgmchg’ message you speak of?

If so maybe I’m best off contacting Critter and Guitari.

---

<div class="post-metadata">

**Author:** ![thetechnobear](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/thetechnobear/32/42_2.png) [@thetechnobear](https://forum.critterandguitari.com/u/thetechnobear)\
**Post date:** [December 11, 2017, 9:33am UTC](https://forum.critterandguitari.com/t/using-foot-pedal-to-switch-between-modes/2103/5 "2017-12-11T09:33:12Z")

</div>

Very little is impossible in software 😉  
But it’s not coded to do this…

It’s interesting idea for an addition, though it would have to be an opton/switchable, since many use the foot switch for something else (most notably sustain)

---

<div class="post-metadata">

**Author:** ![shreeswifty](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/shreeswifty/32/790_2.png) [@shreeswifty](https://forum.critterandguitari.com/u/shreeswifty)\
**Post date:** [December 11, 2017, 1:39pm UTC](https://forum.critterandguitari.com/t/using-foot-pedal-to-switch-between-modes/2103/6 "2017-12-11T13:39:51Z")

</div>

that should be very easy with a simple counter on a program change message  
i DO think it will be cyclical though 0-127 unless a +/- button is added for add/subtract etc…

---

<div class="post-metadata">

**Author:** ![Dominic](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/dominic/32/1171_2.png) [@Dominic](https://forum.critterandguitari.com/u/Dominic)\
**Post date:** [December 19, 2017, 6:21am UTC](https://forum.critterandguitari.com/t/using-foot-pedal-to-switch-between-modes/2103/7 "2017-12-19T06:21:43Z")

</div>

I’ve asked Critter & Guitari if they’re able to work something out for this.  
@shreeswifty - how easy are we talking?

---

<div class="post-metadata">

**Author:** ![shreeswifty](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/shreeswifty/32/790_2.png) [@shreeswifty](https://forum.critterandguitari.com/u/shreeswifty)\
**Post date:** [December 19, 2017, 3:50pm UTC](https://forum.critterandguitari.com/t/using-foot-pedal-to-switch-between-modes/2103/8 "2017-12-19T15:50:07Z")

</div>

Anything is possible Dominic.  
You use a counter or a modulo\_counter and bang it with the foot switch 1-x

---

<div class="post-metadata">

**Author:** ![Dominic](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/dominic/32/1171_2.png) [@Dominic](https://forum.critterandguitari.com/u/Dominic)\
**Post date:** [December 19, 2017, 8:59pm UTC](https://forum.critterandguitari.com/t/using-foot-pedal-to-switch-between-modes/2103/9 "2017-12-19T20:59:43Z")

</div>

Hi Patrick,

I’m showing the rookie-level of my Pure Data knowledge here but that means very little to me…

Any chance you can put this into a layman’s terms?

Thanks so much for your help

---

<div class="post-metadata">

**Author:** ![shreeswifty](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/shreeswifty/32/790_2.png) [@shreeswifty](https://forum.critterandguitari.com/u/shreeswifty)\
**Post date:** [December 19, 2017, 9:19pm UTC](https://forum.critterandguitari.com/t/using-foot-pedal-to-switch-between-modes/2103/10 "2017-12-19T21:19:27Z")

</div>

modulo is a counter that lets you count up to a value and then loop around so if you have 10 presets or modes you would have a

bang  
|  
modulo\_counter 10 0  
|  
[number box]

each bang advances the counter

modulo\_counter is in IEMLIB

I hope this helps!
