General

Sending Program Change Lemur

Started by mila5405 on .

Sign in or create an account to join the conversation.

10 posts

Topic starter
Hi! Can someone help me whith this!
I want to send a simple Program Change
This is my setting (default)

Message: C0 Program Change
Preset: x[0] Any
Scale : 0 to 127
Channel: 1 to 1

I want to send PC 0 to my Yamaha P155 which is Piano 1
I doesnt work but I can see the Midiinterface out blip when I push the button so something is transmitted.
So clearly I missing something here.

My Equipment

IPAD 2
Lemur
P 155
Line 6 Midi Mobilizer II

Grateful for any help! :)

/mikael
Thanks Mat! Unfortunately my p155 didnt respond to the programchange. Maybe its not possible. Other command like Note on/off and Pitchbend works but not PC. However is was very kind of you to reply.I appeciate that :) Nice work!

Regards Mikael
- 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/tabid/88/Default.aspx?topic=MIDI+Program+Change+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.
Hi
Just a few comments . .
The x == 1 is not needed it could be just x, the rising edge option will only go when it is not 0 . .
Channel numbers in hex are 0 -15 so 0xC1 would be MIDI channel 2 . . .
The arraying { } is not needed for the data part either
These numbers may also be entered in decimal . . .

Finally Program Change can be set up without any scripting at all
-Create a Pad
-Select Program Change in MIDI Mapping pane
- Select 'Rising Edge' to trigger when pressed
- Set scale to 0 to n (ie. PgmNmbr) eg 0 to 64 for prog 64
All done ....

Be aware if it is not set to rising edge it will toggle from 0 to n
Also if numbers are the same ie 64 to 64 it will send once and won't repeat

Cheers
MM
having trouble working this out....

is "rising edge" the icon on the "preset" line that is defined as "message sent when value goes from positive to zero"?

what if i need to call PC 0 ... do I need to use the script then?

thanks