# Guidance on Footswitch/Program change implementation

**URL:** <https://forum.critterandguitari.com/t/guidance-on-footswitch-program-change-implementation/6952>\
**Category:** Organelle\
**Created:** [February 15, 2021, 6:12am UTC](https://forum.critterandguitari.com/t/guidance-on-footswitch-program-change-implementation/6952 "2021-02-15T06:12:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![electricnothing](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@electricnothing](https://forum.critterandguitari.com/u/electricnothing)\
**Post date:** [February 15, 2021, 6:12am UTC](https://forum.critterandguitari.com/t/guidance-on-footswitch-program-change-implementation/6952/1 "2021-02-15T06:12:09Z")

</div>

Hi all, I’m wondering if there are any folks here who’d be willing help me out with a Pd problem I’ve run into on the Organelle. I am trying to set up my foot switch to incrementally change patterns on the Digitakt. Hit switch, pattern advances one. So far I have this setup:

![Screenshot (3)](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/2X/e/e8474b9814f98d77a7f5bff46a0f036f4b178cca.png)

Which changes the Digitakt pattern to pattern #6 over MIDI channel 11 where I’d like it to just advance upwards by one with each bang. I am very new to Pd and programming in general, so if anyone could point me in the right direction for further research I’d really appreciate it.

---

<div class="post-metadata">

**Author:** ![chkbeto](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/chkbeto/32/580_2.png) [@chkbeto](https://forum.critterandguitari.com/u/chkbeto)\
**Post date:** [February 15, 2021, 4:49pm UTC](https://forum.critterandguitari.com/t/guidance-on-footswitch-program-change-implementation/6952/2 "2021-02-15T16:49:24Z")

</div>

Hi Scott!  
I’m not an expert, but I hope I can help you in your PD quest.

If I understood:

- Your MIDI channel is 11
- You want to change program using FS

Here, the FS is changing between 10 different programs.  
Is it what you were looking for?

Cheers mate

[prueba midi.pd](https://forum.critterandguitari.com/uploads/short-url/ezPIGh0qN8PqZS72TGB52nHLtiZ.pd) (1.3 KB)  
 ![Screen Shot 2021-02-15 at 10.44.43 AM](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/2X/2/21c01c69b59fc58f0deba75ce54231264fd635bd.png)

---

<div class="post-metadata">

**Author:** ![electricnothing](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@electricnothing](https://forum.critterandguitari.com/u/electricnothing)\
**Post date:** [February 16, 2021, 7:11pm UTC](https://forum.critterandguitari.com/t/guidance-on-footswitch-program-change-implementation/6952/3 "2021-02-16T19:11:49Z")

</div>

Wow, thank you for taking a crack at it! I actually used your pgm change patch you made as a starting point. I’ll try this out later today.

---

<div class="post-metadata">

**Author:** ![electricnothing](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@electricnothing](https://forum.critterandguitari.com/u/electricnothing)\
**Post date:** [February 16, 2021, 10:48pm UTC](https://forum.critterandguitari.com/t/guidance-on-footswitch-program-change-implementation/6952/4 "2021-02-16T22:48:07Z")

</div>

I got it working! Thank you for your help man. I was able to simplify your patch and get the functionality I wanted with the digitakt.

 ![Screenshot (7)](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/2X/f/fe9d26b92ef451316958d0c2ddec0765da7a5a56.png)

The key was the select object with the +1 operation feeding back into the float. Now I can build off this by adding a command to reset the counter (as opposed to reloading the patch) and making it so holding the pedal will move the pattern back 1. Eventually turning my old Organelle 1 into a deluxe midi controller for the DT. Thanks for saving me 50 bucks!! This is a satisfying feeling.

---

<div class="post-metadata">

**Author:** ![chkbeto](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/chkbeto/32/580_2.png) [@chkbeto](https://forum.critterandguitari.com/u/chkbeto)\
**Post date:** [February 17, 2021, 12:29am UTC](https://forum.critterandguitari.com/t/guidance-on-footswitch-program-change-implementation/6952/5 "2021-02-17T00:29:57Z")

</div>

Awesome! It’s a satisfying feeling for me as well to be learning this.

I’m controlling Meris pedals and also saved some bucks from getting a Monrning Star or something like that.

I would suggest you an edit. The number box after **“% 15”** is not necessary, I was just verifying. 🙂

![Screen Shot 2021-02-16 at 6.25.44 PM](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/2X/8/844992f63060df9bcaac3158f48e60bc3e0be979.png)

Happy PD’ing!
