- Create a Pads object
- Create a new script for the Pads object, name it whatever you want (prgrmchng, or something)
Script:
- Execution: set to "On Expression"
- Next to that type: x==1
- Next to that select the rising edge option from the drop down list
- Now type in the script below:
midiout(0, {0xc1,0x0a});
0 is the Lemur out. Change this to whatever Lemur Daemon output you need.
c1 is the channel number (change it if your device receives on a different channel, ie. c2, c3 etc.)
This is where it's tricky: 0a is hexadecimal for program change 10. You need to figure out what program change number you need and convert it to hexadecimal. Go here:
http://www.recordingblogs.com/sa/Wiki/t ... ge+message
For example, say you need program change 25 to come out on channel 3 of Lemur Daemon 0. From the table, I see that program change 25 is 0x19. Your script would look like this:
midiout(0, {0xc3,0x19});
One last thing. Go to your Project window, select your pads object and disable the x property by unchecking it.
Hope that does what you need.