Sending Program Change Lemur

Discuss Lemur and share techniques.
Post Reply
mila5405
Newbie
Posts: 5
Joined: 11 Aug 2012 18:36
Location: Uddevalla , Sweden

Sending Program Change Lemur

Post by mila5405 »

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
mat
Regular
Posts: 124
Joined: 08 Dec 2011 09:21
Location: Germany
Contact:

Re: Sending Program Change Lemur

Post by mat »

Hey Mikael,

welcome to the forum :)
To send program change, maybe have a look here: http://liine.net/en/community/user-library/view/58/
It was created for legacy, but it will also work on Ipad Lemur.
Picture in user area does not show the module....they are little containers you can copy and paste into your own controllers.

Hope that helps
mat
Lemur modules and sequencer: http://music-interface.com
Setup: Win7professional 32bit, Intel Core 2 Duo @ 2,66 GHz.,Tascam US-144MKII, Ableton Live 8.4,
Arturia Analog Lab., Max/Msp, Maxforlive, Lemur Legacy + Ipad, Akai MPK61, Doepfer Pocket Control
mila5405
Newbie
Posts: 5
Joined: 11 Aug 2012 18:36
Location: Uddevalla , Sweden

Re: Sending Program Change Lemur

Post by mila5405 »

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
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: Sending Program Change Lemur

Post by Phil999 »

do you have a MIDI keyboard that can send Program Change to your device? If that doesn't work, your device is unable to receive Program Change commands.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
mila5405
Newbie
Posts: 5
Joined: 11 Aug 2012 18:36
Location: Uddevalla , Sweden

Re: Sending Program Change Lemur

Post by mila5405 »

Thanks! I check that :)
mila5405
Newbie
Posts: 5
Joined: 11 Aug 2012 18:36
Location: Uddevalla , Sweden

Re: Sending Program Change Lemur

Post by mila5405 »

Hi! P155 doesnt seem to send any Progchanges or it does not recieve any! :(
Thanks anyway! :)
mh175
Newbie
Posts: 23
Joined: 06 Oct 2012 16:42

Re: Sending Program Change Lemur

Post by mh175 »

- 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.
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Sending Program Change Lemur

Post by Macciza »

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
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
studioj
Newbie
Posts: 2
Joined: 29 Aug 2013 19:21

Re: Sending Program Change Lemur

Post by studioj »

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
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Sending Program Change Lemur

Post by Softcore »

"Rising edge" (or what I call up-arrow) is "message sent when value goes from zero to positive"

If you want to use a Pad object to send Prgram Change 0 then use the "falling edge" (what I call down-arrow - message sent when value goes from positive to zero")
Post Reply