Programmiersprachen für Audio, Proseminar Medienverarbeitung I - Audio, WS.99/00, Stefan Reich, Oliver Leistert.

  KeyKit: Bounce-Tool (4)


method on {
        if ( $.tid >= 0 )
                print("wbounce is already on!?")
        else
                $.tid = task $.task_bounce()
}
method delete {
        kill($.tid)
        millisleep(1000)
}
method off {
        if ( $.tid < 0 )
                print("wbounce not running!?")
        else {
                kill($.tid)
                $.tid = -1
        }
}
method reset {
        $.w2.redraw()
        # $.line($.lines[0],CLEAR)
}
method setonoff (v) { if (v) $.on(); else $.off() }
method setspeed (v) { $.sleeptm = 100-v }

 zurück 
 weiter