Whats wrong with AddNoteOff now?



  • this does nothing...

    function onNoteOn()
    {
        for (odx=0;odx<keyNums.length;odx++)
        {
            Console.print("adding note off For:"+ keyNums[odx]);
            Synth.addNoteOff(1,keyNums[odx],2000);
        };
        keyNums = [];
        keyNums.push(Message.getNoteNumber());
    }
    


  • What's the point in the keyNums array? Like why is it being reset here?



  • @d-healey KeyNums is a list of pressed keys--- in this code only one note - so what happens is this should play a first note and then when the next note is played it should stop note 1 and play note 2 - it doenst - it keeps playing everything....


Log in to reply
 

8
Online

887
Users

3.2k
Topics

26.8k
Posts