python scripting
  • traitdelumiere
    member
    Posts: 13
    Joined: Thu Oct 08, 2009 6:10 pm
    Contact:

    python scripting

    by traitdelumiere » Thu Nov 18, 2010 5:05 pm

    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
  • User avatar
    The Midi Thief
    master
    Posts: 483
    Joined: Thu Sep 29, 2005 7:19 pm
    Location: Stockholm, Sweden
    Contact:

    by The Midi Thief » Fri Nov 19, 2010 9:00 pm

    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.
  • traitdelumiere
    member
    Posts: 13
    Joined: Thu Oct 08, 2009 6:10 pm
    Contact:

    by traitdelumiere » Sun Nov 28, 2010 12:12 am

    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?
  • traitdelumiere
    member
    Posts: 13
    Joined: Thu Oct 08, 2009 6:10 pm
    Contact:

    THE SOLUTION

    by traitdelumiere » Sun Nov 28, 2010 12:51 am

    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!!

Who is online

Users browsing this forum: No registered users and 9 guests