Button ON/OFF code
  • misomi
    junior Member
    Posts: 3
    Joined: Wed Dec 13, 2006 5:29 pm
    Location: TOKYO
    Contact:

    Button ON/OFF code

    by misomi » Thu Jun 19, 2008 5:08 pm

    Hi ,
    i am try to make some easy trace module.
    It working with audio input and change the value of Trace.
    I have a button and when it is "on", the module works correctly,
    but when i "turn off", the trace don`t go back to the zero and is still working.
    Is possible to reset trace position, when a button is turning off ?
    Here is my code. Can anybody help my?
    Thanks a lot.:P
    -------------------------------------------------------------------
    "if module.getValue('trace',0):
    if module.getValue('Boosttrace',0):
    soundvalue = modul8.getValue('direct_soundCaptureLevel',0)*module.getValue('BoostLeveltrace',0)
    else:
    soundvalue = modul8.getValue('direct_soundCaptureLevel',0)
    modul8.setValue('ctrl_master_traceLevel',soundvalue,0)
    if module.getValue('trace',0):
    modul8.setValue('ctrl_master_traceLevel',0,0)"
    --------------------------------------------------------------------

Who is online

Users browsing this forum: No registered users and 9 guests