Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: how to trigger monophonic synth with MIDI ?

  1. #1
    Junior Member
    Join Date
    Dec 2018
    Posts
    18

    how to trigger monophonic synth with MIDI ?

    Hello,

    I am working on a basic synth project with a Teensy 3.2 + AudioShield.
    I cannot figure out how to correctly trigger monophonic notes using MIDI.
    Let's say I have triggered a C, then a D without releasing the C. When I release the D, it mutes both the D and the C. I must find a code that re-triggered the C in this case.

    How do you deal with this ?

    I tried to play with MIDI modes : omni, poly, mono... with no success.

    Thanks for any help,
    Emmanuel

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,073
    Quote Originally Posted by emmanuel63 View Post
    How do you deal with this ?
    I would add a variable that remembers which note number was most recently turned on.

    At the beginning of the code which decides to turn on a new note, I'd check that variable and first send a note-off message, then transmit the new note-on message.

  3. #3
    Check out the tutorials by Notes and Volts. He includes code and goes over basic mono synth functionality. https://www.notesandvolts.com/2018/1...idi-input.html Many of the examples included with teensyduino will also give you coded examples of how this is handled.

  4. #4
    Junior Member
    Join Date
    Dec 2018
    Posts
    18
    Thank you Paul, thank you Rabb17,

    I figure out now how I will deal with it.

    Special thanks to you Paul for developing such an amazing circuit.

    Emmanuel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •