Synthesizer: why playing a second time the same note shut down the first one?
When playing on synthesizers, usually when playing a second time the same note, even if the release phase is very long or the sustain pedal is pressed, the first note is shut down. Put in another way, sending:
NoteOn(1,40,100)
NoteOn(1,40,10)
usually results (for the synth point of view) in:
NoteOn(1,40,100)
NoteOff(1,40)
NoteOn(1,40,10)
Is there a reason for that? I mean, I understand that for a piano, the same strings cannot be played twice, but it is possible on some instruments to get the same note twice (on different strings on a guitar for instance). Moreover, on the piano, all the sympathy sound from surrounding strings is not shut down when the sustain pedal is pressed, even if the same note is replayed…
5 Comments
Sorted by latest first Latest Oldest Best
The MIDI specification says:
If an instrument receives two or more Note On messages with the same key number and MIDI channel,
it must make a determination of how to handle the additional Note Ons. It is up to the receiver as to
whether the same voice or another voice will be sounded, or if the messages will be ignored. The
transmitter, however, must send a corresponding Note Off message for every Note On sent. If the
transmitter were to send only one Note Off message, and if the receiver in fact assigned the two Note
On messages to different voices, then one note would linger. Since there is no harm or negative side
effect in sending redundant Note Off messages this is the recommended practice.
So synthesizers can do whatever they want.
Reasons to release the first note:
There will be exactly one voice to be handled by the Note Off message. If multiple notes were allowed, the synthesizer would have to remember some information to be able to determine which of the two active notes is the earlier one. This is possible to do, but increases complexity and risk of getting it wrong.
A Note Off message might have got lost. Releasing the first note will recover from this.
This is too long for a comment, so I'll make it an answer. Let's say you have a round-robin sample program that plays a different speech sample every time. You play this:
NoteOn(1,40,100) // "one"
NoteOn(1,40,100) // "two"
NoteOn(1,40,100) // "three"
NoteOn(1,40,100) // "four"
NoteOn(1,40,100) // "five"
NoteOff(1,40)
Which of the notes should the note-off end - "one" or "five" or one of the others? All of them? Is that self-evidently clear, and any musician would reasonably expect that behavior? Myself, I don't really know what should happen. If you want to have multiple instances of the same MIDI note, use different MIDI channels.
For example in Ableton Live, you can't even have a MIDI clip with simultaneous overlapping notes. The editor won't allow this, it will remove or cut one of the notes to make it clear and unambiguous what's happening. Every note has to have its own exclusive place in the pitch/time space. I guess this restriction is there because allowing overlapping notes would make the user interface unnecessarily complicated, and there's no actual sensible use-case for overlapping notes.
There can't be a single answer.
A traditional 1960s analog synth was monophonic : with only one oscillator, the second note must re-use it, therefore cutting the first note off - whether the second note had the same pitch or any other pitch.
Polyphonic music using these instruments used multi-tracking on analog tape recorders, one note at a time (most famously, Switched-On Bach).
Now they pre-date MIDI interfaces, but only by maybe 15 years, and MIDI has been adapted to all sorts of things, bagpipes included. So this must be a valid interpretation of the sequence - at least, when played on a monophonic instrument.
So, should that be the only correct interpretation of the sequence? No, that would be far too restrictive on polyphonic synthesisers.
These can mimic the operation of acoustic keyboard instruments : one voice (string or pipe) per key, where repeating a note must cut off the first note as you observed.
Or they can have a pool of voices, which are successively allocated to notes, returning to the pool after the sustain. This could avoid the "implicit off" - unless the pool is exhausted by too many sustained notes at a time.
Despite my comment, this answer does agree with you that the 'implicit note off' is common!
The bottom line is that this is a question of instrument design - there isn't a clear standard or spec to follow as to what should happen when the same note is triggered twice without a note off in between. it is plausible that the synth could decide to assign another oscillator to the second note-on, or to finish the first note and then starting the second. I've also encountered synths that can do something halfway between, reusing the same oscillator but retriggering the envelope's attack phase from the point that the decay had reached, if that makes sense.
To be honest, it's this kind of fiddly detail that made me move away from MIDI as a way of doing electronic music. In particular, the whole 'note on' / 'note off' paradigm seems to be rather oriented around the way something like the piano works; even simulating something as commonplace as the guitar (with its separate 'note selection' and 'note triggering' mechanisms) is a bit awkward with MIDI.
This is not an answer to your why question, but I can't leave this unmentioned. The, perhaps obvious, workaround for this limitation of MIDI is to use the same voice on more than one channel. I vaguely remember having done that in the past just for this very reason. It's far from ideal, however, and sometimes not even possible, especially with synths. Let's hope MIDI 2.0 deals with this better.
By the way, your remark about playing the same note on the piano multiple times at once is not true when the sustain pedal is used. If the pedal is depressed, then the vibrating strings are not immediately damped as the key is released. So when the hammer strikes them again, it adds another impulse to the already existing vibration, effectively superposing them. You can test this yourself if you have a piano. Use the sustain pedal and hit a single key multiple times. You should hear the timbre change with each strike of the hammer. This is because the phase shift between the superposed tones varies, and that causes constructive/destructive interference in the harmonics, amplifying some, attenuating others. So you can totally play the same note on the piano at the same time as many times as you want (ignoring the exponential envelope decay and nonlinearity). When you release the pedal, all those NoteOns are then effectively NoteOffed.
Terms of Use Privacy policy Contact About Cancellation policy © freshhoot.com2025 All Rights reserved.