Hello all!
I'm new to PureData so please bare with me, as I've almost certainly made some (many) rookie mistakes, but hopefully people here can help
Basically, I'm trying to use PureData as a MIDI click track controller for MainStage - so when I hit play in MainStage, it will count the bars and at set intervals, send a relevant patch change (which may then also trigger tempo changes) Personally I'm amazed it's not a feature built into MainStage, but ah well.
The first issue I seem to be having is when trying to send a second change after a first. My current setup (below) is to check if the bar is X, and if so send Y program change - however when the second check is confirmed, MainStage starts to rapidly flicker between the two patches, and the only way to stop it doing that is to stop my playback, play again for about 2 bars, then stop again.
So my two-fold question is how do I stop this flickering effect (IE, make sure it just sends the program change once and then stops sending it), and is there a better approach than my current layout? (I'm pretty sure there will be :P)
Current setup is based off of help I got on the Logic/MainStage forum suggesting this software, with tweaks to try and allow for multiple patch changes in one run
I've also tried using a single shared midiformat/midiout to no avail
Also for bonus points (for people familiar with MainStage) - is there a way for MainStage to tell PureData what the current patch is, so I can just write some clever stuff and have one script for all songs, instead of having to write a script per song and then load/close them manually?