lovely. but is it supposed to work with the big Spark as well?
Quotelovely. but is it supposed to work with the big Spark as well?I don't have the Spark, But im sure it will work, By the way maybe some modification have to be done on the Const file.I would be glad if someone with the spark give me feedbacks.Moreover I would like to try to add functionnality for the spark ( such as information written on the lcd screen and maybe a broswer to add instrument directly to a track like push does), unfortunatly i don't have it, so ill need your help and beta test
from __future__ import with_statement #compatibility for Live 9, need to be written at the first line of the scriptimport Live #you import Live, in order to be able to use its componentsfrom _Framework.ControlSurface import ControlSurfaceclass test(ControlSurface): __module__=__name__ __doc__="test function" def __init__(self, c_instance): ControlSurface.__init__(self,c_instance) with self.component_guard(): self.__c_instance = c_instance self.log_message('Script initiated') self.buttons() def buttons(self): for x in range(144, 159): for y in range(0, 128): self.log_message('turn on LED %d on channel %d'%(y,x)) self.turn_led_on(x, y) def disconnect(self): #this function is automatically called by live when the program is closed for x in range(128, 143): for y in range(0, 128): self.log_message('turn off LED %d on channel %d'%(y,x)) self.turn_led_on(x, y) def turn_led_on(self,chan,bt): self._send_midi((chan,bt,64)) def turn_led_off(self,bt): self._send_midi((chan,bt,64))
self._send_midi((144,29,1))
i have been looking at you script but it is hard to know what's wrong.Can u use midiox please to tell me what messages are sent moreover i have been looking at your scripti see no reason why it doesnt work. Can you check if track and remote are on by the way i have tried your script it worked fine on my sparkleon disconnect use turn_led_off ( copy paste mistake )
TIMESTAMP IN PORT STATUS DATA1 DATA2 CHAN NOTE EVENT Opened MIDI Input Opened MIDI Output 00000988 3 4 90 11 00 1 F 0 Note Off 00000AB4 3 4 80 11 00 1 F 0 Note Off 00000C44 3 4 90 11 01 1 F 0 Note On 00000DA2 3 4 80 11 01 1 F 0 Note Off 00000F00 3 4 90 11 02 1 F 0 Note On 00000FFA 3 4 80 11 02 1 F 0 Note Off 00001158 3 4 90 11 03 1 F 0 Note On 00001284 3 4 80 11 03 1 F 0 Note Off 00001415 3 4 90 11 04 1 F 0 Note On 0000150F 3 4 80 11 04 1 F 0 Note Off 0000169F 3 4 90 11 05 1 F 0 Note On 00001799 3 4 80 11 05 1 F 0 Note Off 0000198D 3 4 90 11 06 1 F 0 Note On 00001A87 3 4 80 11 06 1 F 0 Note Off 00001C17 3 4 90 11 07 1 F 0 Note On 00001D11 3 4 80 11 07 1 F 0 Note Off 00001EA2 3 4 90 11 08 1 F 0 Note On 00001FCE 3 4 80 11 08 1 F 0 Note Off 000021C1 3 4 90 11 09 1 F 0 Note On 000022BC 3 4 80 11 09 1 F 0 Note Off 000024B0 3 4 90 11 0A 1 F 0 Note On 000025AA 3 4 80 11 0A 1 F 0 Note Off 0000275F 3 4 90 11 0B 1 F 0 Note On 00002859 3 4 80 11 0B 1 F 0 Note Off 00002A8C 3 4 90 11 0C 1 F 0 Note On 00002B86 3 4 80 11 0C 1 F 0 Note Off 00002E06 3 4 90 11 0D 1 F 0 Note On 00002F00 3 4 80 11 0D 1 F 0 Note Off 000030C6 3 4 90 11 0E 1 F 0 Note On 000031C0 3 4 80 11 0E 1 F 0 Note Off 000033B4 3 4 90 11 0F 1 F 0 Note On 000034DD 3 4 80 11 0F 1 F 0 Note Off
00000C44 3 4 90 11 01 1 F 0 Note On 00000DA2 3 4 80 11 01 1 F 0 Note Off