OrderedBytes
OrderedBytes User Forum
FAQ FAQ     Search Search     Memberlist Memberlist     Usergroups Usergroups     Register Register
Profile Profile     Log in to check your private messages Log in to check your private messages     Log in Log in
Programing Help One Button Two Outputs
Display posts from previous:         View previous topic :: View next topic
Post new topic Reply to topic Subscribe to this topic    The OrderedBytes Forum -> MIDI
Programing Help One Button Two Outputs Tue Aug 08, 2017 9:31 am  •   #11538
SuperC



Joined: 08 Aug 2017
Posts: 1

Hey not sure if there is a better place to ask this question but I am looking for a way to use one button on my x-keys controller to toggle between two outputs. Specifically I need it to send one midi program change the first time I press it and a separate midi program change the second time, then back to the first and so on. I have successfully set up the x-keys to trigger midi program changes that are read by my external devices. Now it would be great to have the keys do multiple things ie mute/unmute.
Thanks.
View user's profile Send private message Reply with quote
Fri Aug 11, 2017 6:02 am  •   #11542
Ken
Developer


Joined: 27 Mar 2006
Posts: 3979

One way to do this would be with a setup like this:


In this example, the Toggle block alternates between ON and OFF each time the button is pressed. When it turns ON, the first Program Change is triggered. When it turns OFF, the second Program Change is triggered.
_________________
Ken
www.orderedbytes.com - www.controllermate.com
ControllerMate -- Programming controllers for Mac OS X since 2005.
View user's profile Send private message Visit poster's website Reply with quote
Page 1 of 1 All times are GMT - 6 Hours
Post new topic Reply to topic Subscribe to this topic    The OrderedBytes Forum -> MIDI
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Copyright © 2005 — 2012 OrderedBytes
All rights reserved.