Changeset 72


Ignore:
Timestamp:
22/03/10 23:13:56 (7 years ago)
Author:
st8
Message:

Sysex: Accept multi byte messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Sysex/Sysex.py

    r71 r72  
    2828         
    2929    def send(self, msg): 
    30         self.log("Sent to Device: " + str(msg[2])) 
    31         self.c_instance.send_midi((msg[2])) 
     30        bytes = [] 
     31        for i in range(len(msg) - 2): 
     32            bytes.append(msg[i+2]) 
     33             
     34     
     35        self.log("Sent to Device: " + str(bytes)) 
     36        self.c_instance.send_midi(tuple(bytes)) 
    3237 
    3338    def receive_midi(self, midi_bytes):     
Note: See TracChangeset for help on using the changeset viewer.