Hi.
I use only USB connect. And virtual serial port in my PC.
I use photoresistor. My MIDI sound in Fruity Loops is loop. When sensor0 > 10 i need still play mine note. Not loop.
How do this?
And Serial MIDI Converter V2D.
Code on Arduino:
if ((analogRead(sensor0)) > 10)
{
noteOn(0x90, nuta , 0x45);
delay(100);
noteOn(0x90, nuta , 0x00);
}
void noteOn(int cmd, int pitch, int velocity)
{
Serial.write(cmd);
Serial.write(pitch);
Serial.write(velocity);
}
Thanks ![]()