Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In generating Midi Track using C# Code, how Can I make the tone being played, not fading out?

Tags:

c#

midi

I am building a small MIDI composer application, using the Stanford Library. It is almost complete, except for a small problem: sound vanishes after the NoteOn command, but I want notes to keep on playing until I release the button.

like image 328
swdev Avatar asked Dec 15 '25 08:12

swdev


1 Answers

With MIDI, you should hear the note continue forever until you send a NoteOff command. If you're hearing a note begin but then fade out (without having sent a NoteOff message), then it might be that the channel is set to an instrument that naturally fades out on its own - like a marimba or steel drum sound.

like image 196
MusiGenesis Avatar answered Dec 16 '25 21:12

MusiGenesis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!