Skip to main content
Topic: Adding a rest at the end of a midi file (Read 3115 times) previous topic - next topic

Adding a rest at the end of a midi file

Hi, I don't know if this is meant to work like this, but whenever I add a rest at the end of a piece, it disappears when I export a midi file.

The reason I'ld like to be able to add a rest at the end is that many MIDI players suddenly stop all sound after playing the last note, so the notes don't fade out like they normally do.

Re: Adding a rest at the end of a midi file

Reply #1
A MIDI file contains performance data. A rest is actually the absence of any performance data. If you want to add some trailing time at the end of your MIDI performance, you have to add some kind of performable MIDI event. For example, you could add a Breath Control message using an MPC, and simply send a value of 0 for the controller. Unless the MIDI player is very smart and figures out that there is no reason to wait at the end of the piece (since there aren't any notes left playing), this should do the trick.

Re: Adding a rest at the end of a midi file

Reply #2
Here is an example. Simply add this to the end of one staff in your piece, and a whole note of time will be added to the end of the staff:

Code: [Select · Download]
!NoteWorthyComposerClip(2.0,Single)
|MPC|Controller:bc|Style:Absolute|TimeRes:Half|SweepRes:8|Pt1:0,0|Pt2:2,0|Pos:9|Wide:Y
!NoteWorthyComposerClip-End

 

Re: Adding a rest at the end of a midi file

Reply #3
I just add one measure of rest before the music starts, and one measure after the music ends.  Then I put a tempo indication after the last measure.