Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

For loop function returning an error. Help please!

$
0
0

Hi all.

I have a small piece of code that I want to implement into a larger piece of code that I'm working on atm and I'm just testing it out but keep getting "the operator is undefined for the argument type(s) int int" for line 6.

I basically want to have Processing check every 200 milliseconds for overdue midinotes (I'm using this instead of a delay function as the delay function was delaying my entire code and I've been told that this will help stop that)

Please let me know if you want to see the rest of the code for context.

Thanks! :)

     import themidibus.*;
        MidiBus midi;

        void setup() {
          int [] timestamps = new int [128];
          for (int i = -1; i < timestamps; i++);

         midi.sendNoteOn(0, 62, 127);
          timestamps[62] = millis();
          if (mills()>lastMillis+200)

            midi.sendNoteOff(0, 62, 127);
}

Viewing all articles
Browse latest Browse all 2896

Trending Articles