Page 1 of 1

All Notes Off switch and Panic switch

Posted: 10 May 2012 03:31
by DES
Hello everyone! Been lurking here for while and reading as much as I can on Lemur - but still so many questions... :)

I'm working on a light control panel that sends Midi note on messages to the light controllers to turn lights on. The velocity determines how bright. So far I have 8 faders set up with an overall Master level control. it's working good. However, I would like to put a Blackout button on the control surface. All the faders are outputting data on midi 0, ch 1. Unfortunately I don't believe the Midi dimmer packs are very sophisticated or what real capabilities they have - there is no midi data documentation available for them, and the manufacturer has pleaded ignorance since the day these came on the market. So, I don't know if it would respond to an all Notes Off message. I thougt about just sending Note On with a velocity of 0, but occasionally the controllers get glitched and seem to receive notes outside the required range that causes internal patterns to start cycling...quite irritating.

There are three ways that I can think of off-hand that should be able to do this;

- send a midi All Notes Off command. I have not been able to figure out how this should be done. I would think a short script would do it. I was looking at the Create Custom Midi script but it seems that it only addresses one pitch at a time.

- the other way would be to have a script that sends individual Note Off commands to each note. Again this looks like it could be done with a script - but I am clueless how to do this.

- another option would possibly be a midi PANIC switch/function ...I believe this just sends a Not Off and zeros all controller data. Is there a function like this already in the Lemur library? I was lookiing thru the downloads and didn't see anything.

Any help would be appreciated!

Dave

Re: All Notes Off switch and Panic switch

Posted: 10 May 2012 04:46
by Macciza
Hi
Two options spring to mind . .

A Pad sending CC 121 value 0 should reset all controllers - this could be done with the standard mapping panel
A Pad sending CC 123 value 0 should turn all notes off - standard mapping again . .

Or both could be combined using either a script or custom midi . . .

Hope that helps
MM

Re: All Notes Off switch and Panic switch

Posted: 10 May 2012 05:34
by DES
Thanks for the quick reply!

Sure looked like an easy way to it, unfortunately neither of them worked. :( I don't think the dimmer packs are intelligent enough to accept global commands like these. I think it's going to have to be some sort of script that's going to have to address each note individually.

Any other ideas?

Re: All Notes Off switch and Panic switch

Posted: 11 May 2012 03:43
by DES
Alrighty...I 'think' I got this figured out. I was able to get it to initially work by creating an expression called Blackout and using a vector string:

Code: Select all

 {x,x,x,x,.....}
and in the Midi panel I selected Blackout and the message is 80 - note Off. I set the pitch value to 0 - 127. Channel 1 is the default I'm using, so it stayed the same. Targets were midi 0. I used a custom button for the button.. Unfortunately you can't get 127 'x' in the vector statement, so after looking thru the manual some more I saw the vector Fill statement and tried it in place of the first vector.

Code: Select all

fill{1, x, 128}
It seems to be working fine, though I don't know if the last value should be 127 or 128.... :?:

Thoughts? Comments or suggestions?