Arturia Forums

DRUMS => Spark => Spark Users Community => Topic started by: raztua on December 17, 2013, 01:40:50 am

Title: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on December 17, 2013, 01:40:50 am
Version 0.5 ( 15/02/2014 ) of the script avaliable.
            Here is the link to the file https://www.mediafire.com/?nahn29e2cgie4y5 (https://www.mediafire.com/?nahn29e2cgie4y5)
            Here is the changelog http://www.arturia.com/evolution/smf/index.php?topic=14584.msg42607#msg42607 (http://www.arturia.com/evolution/smf/index.php?topic=14584.msg42607#msg42607)



Version 0.4 of the script avaliable.
            Here is the link to the file http://www.mediafire.com/download/942143vcoopg6o8/sparkLE4.rar (http://www.mediafire.com/download/942143vcoopg6o8/sparkLE4.rar)
            Here is the changelog http://www.arturia.com/evolution/smf/index.php?topic=14584.msg42047#msg42047 (http://www.arturia.com/evolution/smf/index.php?topic=14584.msg42047#msg42047)


Versio 0.3 of the script avaliable: here is the link to the video of the update remote script : https://vidd.me/HiH (https://vidd.me/HiH)
         here is the link to the remote midi script : http://www.mediafire.com/download/d5nntvbya2cg7ny/sparkLE%20V1.3(2).rar
         
many new features such as : control the length of a pattern, multi instrument mode, mute of instrument etc....

--------------------------------



Hi everybody,

I have written a script for the sparkLE in order to be able to use it with live 9.1 without the standalone software or any VST.
this is still an alpha version, and i am new to python languages ( an poo programming ), so the script is messy :)

Video is avaliable here:
http://youtu.be/CV436yKerZ0 (http://youtu.be/CV436yKerZ0)

sources a avaliable here:
https://www.mediafire.com/folder/undefined/ (https://www.mediafire.com/folder/undefined/)
https://github.com/Raztua/sparkLE.git (https://github.com/Raztua/sparkLE.git)

to use the script no additionnal software are required.

check this website to install the script
http://sonicbloom.net/en/ableton-live-tutorial-how-to-install-midi-remote-scripts/ (http://sonicbloom.net/en/ableton-live-tutorial-how-to-install-midi-remote-scripts/)

Features:
    -16 pattern
    -16 sequences for each pattern
    -16*8 rotative controllers for all your automations :)
    -XY touchpad working

How it works : 
   -Sparkle have to be in spark mode
   -install the midi remote script
   -select the script in live and link it to your sparkle
   -the first track HAVE TO BE a midi track
   -press patt. to activate patern mode
   -choose your patern on your sparkle :  it will automatically create, and fire the clip
   -press sequencer button
   -select your instrument like in sparkle software ( select + one of the Big Pad )
   -create a drum rack and assign the input to the first midi track
   -enjoy

you can assign the rotative encoder to any of your automations using the MIDI option of LIVE


The sources a open sources, so feel free to modify it to your needs.

Their is still a lot of work to do, but you will get each update as soon as they are done.
If you want to participate to this project, feel free to ask me question.

Ps: a video will be added soon

Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on January 27, 2014, 09:31:04 pm
Hi everybody!

I wanted to share with you my new update of the midi remote script. As before, it works for live 9 but wont work for older versions of the software.

Many new features have been added to the script :
 
Other small features and bugs have been worked on.
You can find Video here : https://vidd.me/HiH (https://vidd.me/HiH)
and you can find the script here : http://www.mediafire.com/download/d5nntvbya2cg7ny/sparkLE%20V1.3(2).rar (http://www.mediafire.com/download/d5nntvbya2cg7ny/sparkLE%20V1.3(2).rar)




Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: Kevin on January 28, 2014, 11:37:07 am
 8) 8) 8) 8)
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: Kevin on January 28, 2014, 11:38:17 am
You might share this on other discussion forums.
I already saw you on AF but it could be good to post it also on KVR and Gearslutz.

Kevin
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: mpc60champ on January 28, 2014, 05:46:23 pm
Thank you very much. just read this on the Ableton forums last night before going to bed. i can't wait to try this after work. Merci beaucoup  :)
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: pmwm on January 30, 2014, 01:54:16 pm
lovely. but is it supposed to work with the big Spark as well?
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on January 31, 2014, 04:14:47 pm
Quote
lovely. 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 :)
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: MartinW on February 01, 2014, 11:23:29 am
Quote
lovely. 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 :)

I have spark, will try the script later. I know a little bit of python so maybe I can do some scripting for the additional functionality of the big spark.
Writing stuff to the LCD would be great. Do you think that's possible?
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 01, 2014, 04:46:22 pm
Thanks MartinW.
It would be great to have a full support of the spark.

For the lcd screen i have a few idea we can discuss on and test to do.
For sure the sources are open, and you are free to add any functionnality!
Moreover, if you are a real programmer it would be GREAT to have the code reviewed, cause i think it is a mess :)


Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: MartinW on February 01, 2014, 04:49:21 pm
Couldn't get it to work.. Script is successfully initialized but pressing buttons on the controller has no effect. I guess I'll have to change the constants. But how do I know the values?

I did this little test thing which just sends a midi message to  the controller (copied from your ableton forum post) so that I might have a chance to see which buttons light up when certain numbers are being sent. Already did a thing where it sequentially sends all notes on all channels, but nothing lights up. Tried it with different live settings, midi mode / controller mode on spark, no luck, that being said, I have absolutely no idea what I'm doing.. maybe there's something wrong with the script:

Code: [Select]
from __future__ import with_statement #compatibility for Live 9, need to be written at the first line of the script
import Live #you import Live, in order to be able to use its components
from _Framework.ControlSurface import ControlSurface

class 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))
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 01, 2014, 05:21:43 pm
The easiest way is to use a software like MIDI-ox to know wich datas are sent.

Or you can use directly live :
don't use the script for this part !
You arm the track on wich the input and output are the spark, and use it in spark mode, not midi mode ( if spark mode exists).
You record the track and it will save note ( messages when a key is pressed are supposed to be midi notes). then you find the value with this chart :
(http://andymurkin.files.wordpress.com/2012/01/midi-int-midi-note-no-chart.jpg?w=300&h=258)
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: MartinW on February 01, 2014, 06:50:45 pm
I've taken a look at the table. The sequencer buttons are all Note F-1. Each sequencer button registers a different velocity from 1 - 16. When I send this midi message I except the first sequencer button to light up:

Code: [Select]
self._send_midi((144,29,1))
Still nothing happens..  ???
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 01, 2014, 07:37:44 pm
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 script

i 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 sparkle

on disconnect use turn_led_off ( copy paste mistake ;) )


Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: MartinW on February 01, 2014, 08:10:08 pm
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 script

i 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 sparkle

on disconnect use turn_led_off ( copy paste mistake ;) )


Here's the result from me pressing and releasing all 16 sequencer buttons on after another in midi-ox:

Code: [Select]
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   

Seems weird that the first button always sends 'note off', both when I press the button and when I release it?
Tried triggering the other buttons, with python, didn't work either so that's not the issue. I don't really know what all those numbers mean but I'll try to find out how to make sense of it. Maybe you'll find something in the meantime.

And track and remote are on..

Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 01, 2014, 08:54:41 pm
Ill tell you how it works :
Quote
00000C44   3   4     90    11    01    1  F  0 Note On   
 00000DA2   3   4     80    11    01    1  F  0 Note Off 

we are on the channel 1 ( channel are numbered from 0 to 15  in live so it is channel 0 for live)
the note is 01, 90 and 80 are the velocity ( it is useless for the script)

so if you want to write for this key you send this message on the midi surface (144,01,64) means 144=144 ( note on message) + 0 (channel 1 :) ), 01 = the key pressed, 64 is the velocity ( the value doesn't matter ). it seems that the pattern button have the same identifier on sparkle and on spark.

does midi / spark mode exist in the Spark ??

how is the spark linked to your computer? midi or usb??? i have never used it.

if you use your spark on live without any script then record a the pressing of keys, does it blink when you play the track again ?
 

Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: MartinW on February 01, 2014, 09:23:44 pm

how is the spark linked to your computer? midi or usb??? i have never used it.

It's connected via usb, should it be midi?

if you use your spark on live without any script then record a the pressing of keys, does it blink when you play the track again ?

Well.. It doesn't even light up when I press it manually (it is recorded in ableton though, but playing back doesn't do anything either).. Is it different with SparkLE? Do the buttons respond in spark mode?
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 01, 2014, 09:31:38 pm
when you use the sparkle without any script, if input and output of a track are set to sparkle, it will not blink when you press the key, but it will blink when you play the pattern again.

Is it the same for you ??
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: MartinW on February 01, 2014, 09:34:23 pm
when you use the sparkle without any script, if input and output of a track are set to sparkle, it will not blink when you press the key

yes

but it will blink when you play the pattern again.

no
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 01, 2014, 11:16:28 pm
their is a huge difference between spark and sparkle information sent :

spark :
Quote
TIMESTAMP IN PORT STATUS DATA1 DATA2 CHAN NOTE EVENT
 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   
 

sparkle :

Quote
  TIMESTAMP IN PORT STATUS DATA1 DATA2 CHAN NOTE EVENT               
   1133065  9  --    144     0    64    1  C -1 Note On               
   1133153  9  --    128     0    64    1  C -1 Note Off             
   1134015  9  --    144     1    64    1  C#-1 Note On               
   1134135  9  --    128     1    64    1  C#-1 Note Off               

as we can see status is 144 ( note on on the first channel ) or 128 for the sparkle, and 80,90 for the spark

try to send this midi message (90,00,64)
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 02, 2014, 08:57:32 am
forget what i said.... 80 and 90 are the hexa-decimal values of 128 and 144
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: MartinW on February 02, 2014, 11:28:31 am
Doesn't work.. Thanks you for the great help you've provided so far, it's been really interesting to learn about all those things, but I think I'm running out of possibilities.

I tried all possible values in that send_midi command and what I also did is creating a midi clip in live which plays every midi note and sends it to spark, no response on the hardware at all..

I would like someone else who has a spark to do some test. Maybe I'm missing something or my controller is broken (connects to the spark plugin perfectly and works as a midi controller so I'm not sure whether that's a possibility), but I might have the suspicion that the spark works somewhat different than sparkLE.

Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 02, 2014, 02:56:17 pm
maybe we could try two last thing :

Can you tell me what it does when you assign midi to a pattern button directly from live ?
 

Can you connect the spark to your computer using midi wire ??
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: pluto_ro on February 02, 2014, 10:14:47 pm
Hello,

Very nice idea and thanks for your work.

I installed the version from 27 January as careful as possible and is working but there are some errors:

1. I can't see on the controller the lights from the sequencer when pressed
2. When I change the midi channel with the jog wheel the commands are working also on the first channel.
3. In some point some sample pads where stacked without any reason.

Can you check if something is wrong with it? Or I make an error on installation.

Looking forward to your kindly reply when you have the necessary time.

Thanks

George

 
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 03, 2014, 03:46:56 pm
it looks like you have the former version of the script.

I will take a look at the link i have posted ;)

wich version of live are you using?
Quote
1. I can't see on the controller the lights from the sequencer when pressed
If i remember well, the drumpad for the Live 9.05 doesnt work the same than the one for the 9.1 version
Does it work when you select a midi clip without instrument?  Important thing : the script doesnt work if you have selected an audi clip
Moreover to be able to use the sequencer you have to create a pattern first ( press pattern and then  a number) and then press the seq. button. You shoul the the light following beats and
If you select the pattern 16 but you have only 8 scenes created sometimes it is responsible of problem.
I will fix it as soon a possible.

Quote
2. When I change the midi channel with the jog wheel the commands are working also on the first channel.

I m sorry idon't get what you mean : when you use the jogweel, you change the Track on wich the sparkle is supposed to write information. However the touchpad and the rotatives controlers are defined globally : the track selected doesn't modify the way they react -> selecting a drumpad is the wayyou choose the channel on wich the midi messages are sent, but it doesnt take into account wich track is selected.
Quote

3. In some point some sample pads where stacked without any reason.

Sadly  i don't get what you mean  :-[


I m sorry if my english is not good enough to get understood, don't hesitate to ask for clarifiaction :)
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: MartinW on February 03, 2014, 06:47:56 pm
maybe we could try two last thing :

Can you tell me what it does when you assign midi to a pattern button directly from live ?
 

Can you connect the spark to your computer using midi wire ??

Sorry for the silence, did some testing, managed to light up one of the LEDs on the spark, still not sure why my script didn't work, since I was of the opinion that I already sent all possible midi note combinations.. but whatever.. I think I can make the script work shortly.
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: MartinW on February 03, 2014, 07:10:30 pm
Judging from your description it seems to me that sparkLE uses the same notes for input (recording midi in live) and output (turning led on / off), e.g. you play pad 1 on the controller, which live sees as Note C-0 with a velocity of 64 (just exemplary values), the same note in turn being send to the controller would result in pad 1 lighting up.

Now with the spark it seems a little different. I record the midi event of playing pad 1, live registers the note C#-2 with the given velocity, but sending that same note back to the controller does nothing. Turning on the LED is actually note E-1 with a velocity of 54..

Found out about that with the help of some kind of USB monitoring utility. Started up an instance of the spark VST, press the button in the plugin window, LED on the controller lights up and the monitoring application records the data being sent:

(http://i.imgur.com/UlDdYIS.png)


Which are just the hexadecimal values of the send midi command.
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 03, 2014, 07:21:15 pm
Quote
Judging from your description it seems to me that sparkLE uses the same notes for input (recording midi in live) and output (turning led on / off), e.g. you play pad 1 on the controller, which live sees as Note C-0 with a velocity of 64 (just exemplary values), the same note in turn being send to the controller would result in pad 1 lighting up.

You got it :)

Quote
Sorry for the silence, did some testing, managed to light up one of the LEDs on the spark, still not sure why my script didn't work, since I was of the opinion that I already sent all possible midi note combinations.. but whatever.. I think I can make the script work shortly.

This is a good news :)

By the way i have one things to ask :
   -If you make changes on the code, keep a track of all your changes, to allow me to implement your changes on my next updates ( if you know any website or software that allow collaborative coding it would be perfect )

I have seen that your knowledge of python programming is better thant mine, so if you find mistakes, errors, or watever feel free to correct it  8)

Quote
Now with the spark it seems a little different. I record the midi event of playing pad 1, live registers the note C#-2 with the given velocity, but sending that same note back to the controller does nothing. Turning on the LED is actually note E-1 with a velocity of 54..

If i understand well, the script might work if you modify the const file, but led wont blink ?
And to get the led blinking we have to get all the velocities of the leds associated to buttons?
We could add a dictionnary on the Const file that link the pad to the led value and then modify the turn_led_on/off function.
what is the message sent to turn a led off. ( the idea is to make a global script for the spark and sparkle, and to uncomment the part of the const file related to the surface used)



Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 04, 2014, 11:13:37 pm
Hello,

Very nice idea and thanks for your work.

I installed the version from 27 January as careful as possible and is working but there are some errors:

1. I can't see on the controller the lights from the sequencer when pressed
2. When I change the midi channel with the jog wheel the commands are working also on the first channel.
3. In some point some sample pads where stacked without any reason.

Can you check if something is wrong with it? Or I make an error on installation.

Looking forward to your kindly reply when you have the necessary time.

Thanks

George

 

Did you changed te midi assignement with midi control center?
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 07, 2014, 11:37:13 pm
Hi everybody

Today i have decided to post a new version of the script.

A few minor bugs have been
edit : here is the link ;)
http://www.mediafire.com/download/942143vcoopg6o8/sparkLE4.rar (http://www.mediafire.com/download/942143vcoopg6o8/sparkLE4.rar)

Changelog :
transport button are set
Select+pattern button->select the track associated to the number ( if it is a midi track)
Tune mode has been changed-> it is no longer a piano but it is a step sequencer that works like modular sequencer works.
                                                   to change the tone of the note keep the pattern button and use the jog wheel

A video will be added soon ( i don't have my webcam with me )
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 10, 2014, 10:35:41 pm
I have had return of poeple unable to use the script.
But have someone been able to use the script on live ??
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: mmillerm on February 14, 2014, 01:56:05 pm
I used it successfully, and I am fairly new to the Midi world. I added the script, selected Sparkle from the Midi preferences in Live as control, input, and output, selected track and remote, and otherwise followed your instructions. Keep up the good work.
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: raztua on February 15, 2014, 08:05:26 pm
Version 0.5 of the script avaliable here :
https://www.mediafire.com/?nahn29e2cgie4y5 (https://www.mediafire.com/?nahn29e2cgie4y5)

many changes for this update !
Title: Re: Major Update of the Midi remote Script, Ableton + Spark = <3
Post by: pmwm on February 18, 2014, 12:07:53 pm
i would like to help to transfer your script to the Spark CDM. i have no experience with python but a lot with MIDI and Max so i should be able to test/monitor whatever you ask me to. but first you should maybe start a new thread to keep things apart?

peter

Quote
Judging from your description it seems to me that sparkLE uses the same notes for input (recording midi in live) and output (turning led on / off), e.g. you play pad 1 on the controller, which live sees as Note C-0 with a velocity of 64 (just exemplary values), the same note in turn being send to the controller would result in pad 1 lighting up.

You got it :)

Quote
Sorry for the silence, did some testing, managed to light up one of the LEDs on the spark, still not sure why my script didn't work, since I was of the opinion that I already sent all possible midi note combinations.. but whatever.. I think I can make the script work shortly.

This is a good news :)

By the way i have one things to ask :
   -If you make changes on the code, keep a track of all your changes, to allow me to implement your changes on my next updates ( if you know any website or software that allow collaborative coding it would be perfect )

I have seen that your knowledge of python programming is better thant mine, so if you find mistakes, errors, or watever feel free to correct it  8)

Quote
Now with the spark it seems a little different. I record the midi event of playing pad 1, live registers the note C#-2 with the given velocity, but sending that same note back to the controller does nothing. Turning on the LED is actually note E-1 with a velocity of 54..

If i understand well, the script might work if you modify the const file, but led wont blink ?
And to get the led blinking we have to get all the velocities of the leds associated to buttons?
We could add a dictionnary on the Const file that link the pad to the led value and then modify the turn_led_on/off function.
what is the message sent to turn a led off. ( the idea is to make a global script for the spark and sparkle, and to uncomment the part of the const file related to the surface used)