Midi Note Pitch to Value
  • momo_the_monster
    member
    Posts: 17
    Joined: Fri Jul 02, 2004 9:48 pm

    Midi Note Pitch to Value

    by momo_the_monster » Sun Jun 19, 2005 1:45 am

    I'd like to use my Oxygen8 Keyboard to drive values for a control - position x for example. Right now I only seem to be able to map notes as on-off - is there a way to tell a value to use the pitch instead? Is this available through Python?
  • User avatar
    boris
    garageCube team
    Posts: 911
    Joined: Mon Jun 28, 2004 12:36 am
    Location: Geneva
    Contact:

    Re: Midi Note Pitch to Value

    by boris » Mon Jun 20, 2005 10:10 pm

    momo_the_monster wrote:I'd like to use my Oxygen8 Keyboard to drive values for a control - position x for example. Right now I only seem to be able to map notes as on-off - is there a way to tell a value to use the pitch instead? Is this available through Python?


    Probably yes, use the module "printdirectevent" to show exactly what your Oxygen8 send.
    And use the scripting with python.
    Boris * garageCube team
  • Akira
    ultim8 member
    Posts: 388
    Joined: Thu Aug 12, 2004 5:47 pm
    Location: Argentina

    by Akira » Wed Jun 22, 2005 7:50 pm

    My mod/pitch wheel completely drives modul8 crazy. Do you know why that is? It seems as if it starts sending all sort of values all over the place.

    I've got an Edirol PCR30
  • User avatar
    yves@garagecube
    master
    Posts: 695
    Joined: Mon Jun 28, 2004 5:50 pm
    Location: Geneva
    Contact:

    by yves@garagecube » Wed Jun 22, 2005 10:05 pm

    Akira wrote:My mod/pitch wheel completely drives modul8 crazy. Do you know why that is? It seems as if it starts sending all sort of values all over the place.

    I've got an Edirol PCR30


    Use the printdirectevent module. And let me know what midi messages you receive.
  • Akira
    ultim8 member
    Posts: 388
    Joined: Thu Aug 12, 2004 5:47 pm
    Location: Argentina

    by Akira » Wed Jun 29, 2005 10:33 am

    Will do this soon ;)
  • momo_the_monster
    member
    Posts: 17
    Joined: Fri Jul 02, 2004 9:48 pm

    by momo_the_monster » Fri Jul 22, 2005 1:44 am

    Hmm...so I've been trying to get this to work...
    I found the messages coming in - they are
    msg:NOTE_ON
    param1:pitch
    param2:velocity

    great! But this is the first script I've tried to write, so I'm probably not doing something right.

    I've tried modul8.setvalue('direct_layer_position_x', param['param1'])

    but it doesn't react at all. Any hints you could give?
  • User avatar
    boris
    garageCube team
    Posts: 911
    Joined: Mon Jun 28, 2004 12:36 am
    Location: Geneva
    Contact:

    by boris » Fri Jul 22, 2005 4:07 am

    Direct_layer_position_x use a value from -infinite to +infinite and the virtual size inside the screen is for -320 to 320 (the center = 0).

    Your midi param is probably from 0 to 64 or 0 to 128.

    Try this :

    modul8.setvalue('direct_layer_position_x', ((param['param1']/64.0) * 640)-320,0)
    or
    modul8.setvalue('direct_layer_position_x', ((param['param1']/128.0) * 640)-320,0)
    Boris * garageCube team

Who is online

Users browsing this forum: No registered users and 25 guests