Skip to main content

Topic: Invalid midi files when notes are muted (Read 3003 times) previous topic - next topic

Invalid midi files when notes are muted
Hi

In the attached (small) nwc-file (edited with 2.1) the last three notes are tied, but the last two (of these) are muted. This sounds correct when played in nwc, but when it is exported to midi, my midi-app complains:

> NOTEON without NOTEOFF: Track=2 EvNr=14 When=768 (Bar=2) Note=74 (D6)

The attached file is just a stripped down version of a larger file ofcourse, but will be enough to show the problem. I'm using Synthfont (http://www.synthfont.com/) to process the midi-files. I was nota flawed midi-file is attached as well.

best regards, Jonas Högström



Re: Invalid midi files when notes are muted
Reply #1
my midi-app complains:
Methinks your app complains too much :)
IMO, NWC2 is producing the MIDI output that you are asking it to produce.

All 3 of my Windows bundled apps play the midi without complaint. They also report the length as 2 seconds, as does NWC Info. NWC2 will import it, but it truncates the length of the final note.

Workaround for finicky apps would be to unmute the final note, possibly adding Performance Style: Legato or Tenuto before it.
This will make the length 8 seconds

Or add this to the end:
Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.0,Single)
|Note|Dur:Whole,Grace|Pos:2^|Opts:Muted|Visibility:Never
|Note|Dur:Whole,Grace|Pos:2|Visibility:Never
!NoteWorthyComposerClip-End
This will cause NWC2 to produce a note off, and make the length 8.003 seconds.
Registered user since 1996

Re: Invalid midi files when notes are muted
Reply #2
But one should be aware that it is NWC (or the other apps) stopping playing that sends an effective note-off. If you add empty bars onto the end of the clip the note will keep playing indefinitely.

Terminating a tied sequence with a muted note is a useful trick to keep the note ringing but if that is what is wanted, then you have to give it space to do it. Another note at the same pitch will then stop it.

Re: Invalid midi files when notes are muted
Reply #3
One easy fix to stop hung notes is to place an invisible Pedal Up as the very last entry in each staff.  I may be mistaken but I think that will solve your problem and may be a good general practice to soothe fussy synths.

Re: Invalid midi files when notes are muted
Reply #4
One easy fix to stop hung notes is to place an invisible Pedal Up as the very last entry in each staff.
That doesn't "fix" Anthem-mute.nwc. All that a pedal up does is cancel a pedal down. A pedal up at the end of a song that ends with rests will cause most midi playback apps to run longer, but that is true of any midi event.
Registered user since 1996