Quoting Petr Stehlík <psteh...@sophics.cz>: > Dne 07.01.2013 21:07, Raine M. Ekman napsal: > >>> The amidi debugging shows that it's not a LMMS-only problem because >>> there's no Note-Off event coming from the MIDI. There's only the All >>> Notes Off message coming. Perhaps LMMS could be enhanced to recognize it >>> as single note off? >> >> Consider it enhanced. I put together some code to recognize a few >> more MIDI controllers that are supposed to turn off all playing >> notes. Maybe the fix will be in 0.4.14 already. > > Sounds cool, thank you! > > I'd like to mention that the "all notes off" is to be applied on the > specific channel only - the following example shows that I pressed C, > then pressed E, then released E and at last released C: > > C0 00 > B0 7B 00 > 90 30 25 > C1 00 > B1 7B 00 > 91 34 33 > B1 7B 00 > B0 7B 00 > > If the keyboard played the sounds like I keep the keys pressed then the > C should continue playing even after B1 7B 00 arrives. Is this how you > implemented it? :-)
Now it gets a bit complicated. If you make an instrument in LMMS respond to all channels ("--" in the MIDI channel selector) it won't keep track of which notes came in on which channel... which would be needed for your keyboard to work. With my changes you'll get too much release instead of too little. A little more googling gave me this: http://www.philrees.co.uk/articles/midimode.htm#mess which hints strongly that All Notes Off shouldn't even be recognized in that situation (Omni mode being the closest in MIDI terms). Think I'll do some reading and refine the code. OTOH, everything is fine (and now a little bit better) for keyboards sending on only one channel. -- ra...@iki.fi http://www.mikseri.net/radioproject ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ Lmms-users mailing list Lmms-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lmms-users