Hi Dan,
Wow! That’s a long time ago, and I really can’t remember, or even understand my own post!
To give you some context, I was writing a python program running on a raspberry pi to interact with the GDL via midi. My memory is very hazy, but looking at the code it seems to be the case that pressing a mute button on the GLD sends a midi message saying it has been pressed, but doesn’t change the setting of the mute light on the surface, so what I do when I receive a mute pressed message is perform the actions I want, and then send a message back to the GLD to toggle the state of the light.
The midi configuration of midi channel 1 mute switch is
91,00, local OFF
i.e. local is off. Hence pressing mute doesn’t change it on the surface.
See this snippet of python code in case it is any help at all.
elif m.type == ‘note_on’ and m.channel == 1:
if m.note < 0x20:
# MUTE
strip = m.note
if m.velocity >= 0x40:
print(“MUTE ON”, strip + 1)
# toggle the current mute setting for this channel
newMute = not lights[strip].getMute()
lights[strip].setMute(newMute)
# and echo it back to the GLD
sendMute(strip, newMute)
and sendMute is defined as
def sendMute(strip, muteOn):
“”" Send midi strip mute setting message to GLD.
MUTE ON send velocity 127
MUTE OFF send velocity 0
followed by note off
"""
if muteOn:
vel = 0x7F
else:
vel = 0x3F
muteMessage = Message('note_on',
channel = 1,
note = strip,
velocity = vel)
gld.send(muteMessage)
muteMessage = Message('note_off',
channel = 1,
note = strip,
velocity = 0)
gld.send(muteMessage)
I hope this might be of some small help to you, but I rather suspect not.
Mike