Page 1 of 1
python scripting
Posted: Thu Nov 18, 2010 5:05 pm
by traitdelumiere
Hello,
1- Is there any function to use midi values in a script ?
(something like getDMXValues but for midi)
If yes, what is the syntax?
2- Can you help me with the syntax of ctrl_layer_hidden ?
I tried with no results :
module.setValue ('ctrl_layer_hidden' = true)
Please help…Python scripting in modul8 without dictionnary
is for me just a nightmare!!
thanks
Posted: Fri Nov 19, 2010 9:00 pm
by The Midi Thief
If you bought Modul8 you should have the pdf manual. The syntax is in the manual.
1. You can listen to midi, it should be in the manual
2. The syntax is modul8.setValue('ctrl_layer_hidden',[value],[layer])
If you are controlling the main interface it's modul8. (not module, that only controls something in the same module). The layer is 1-10 for layer number and 0 is the selected layer.
Example: modul8.setValue('ctrl_layer_hidden',1,0)
This will turn off the selected layer.
Posted: Sun Nov 28, 2010 12:12 am
by traitdelumiere
Hello,
Many thanks midi Thief
I did already buy modul8 when I wrote the first message,
but the scripting manual is very poor.
Just some functions are properly explained.
I know that garagecube team is working on a new manual and I hope it will appears soon!
Concerning 'getmidiValues' or any similar function, there is nothing written.
I already downloaded the printdirectEvent tool module to see how midi messages are built.
But I still don't manage to write a working code with these parameters.
anybody knows?
THE SOLUTION
Posted: Sun Nov 28, 2010 12:51 am
by traitdelumiere
if somebody try to do something similar, here is the answer :
go to the public library,
- install and use 'printdirectevent tool' module to get the midi message
- install 'midi relative exemple' module fto get the syntax
let's play!
Thank's MODUL8, you're not easy to approach, but how poweful!!