Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

FamiStudio

FamiStudio - NES Music Editor for chiptune artists & homebrewers · By BleuBleu

Bug ? - USB Midi controller key release registers as a second ''note on''

A topic by MaxWar created May 25, 2020 Views: 432 Replies: 5
Viewing posts 1 to 5

Here I am with yet another apparent problem.

I have a midi keyboard connected to my computer via a m-audio Usb midi interface. Midisport 4x4 universary edition. 

I have no problem with this setup in other DAWs. While it works in famistudio, when I release a key, instead of registering as a ''note off'' event, It seems to register as another ''note on''.  The end result is a double note with short instruments or percussions and If I try an instrument with a loop in it, it plays forever.  Any idea ? 

* On a side note, is there a way to tweak the latency in Famistudio ? It is a bit too long for my liking and I see no settings to tweak it. I have a fast computer and I can play a typical VST instrument with virtually No lag in Cakewalk sonar using Asio4all. 

Developer (3 edits)

Hello again.

Humm, I am not sure about this one. I unfortunately only have a single, cheap USB midi keyboard here to test. Do you have an app that could display the "raw" midi status that your keyboard produces? If you could find that and send me the raw midi messages your keyboard outputs when you press + releast a note, that would help me a lot.

FamiStudio will determine key up/down  by looking at the high-byte of status, similar to this table, which seems to be the stardard way of doing things.

On my side, using MIDIOX (a super old, terrible tool), it gives me status = 80 for a note off, and 90 for a note on.

* And no, there isnt any options for latency of any of that. That is not a high priority at the moment, and it would be very hard to make portable to Mac and the upcoming Linux version. Sorry about that.

-Mat

(3 edits)

On my side the note off is also a 90. 



The keyboard i am using is an extremely vintage Yamaha portasound PSS-480  - Trying a different keyboard might be possible but a bit complicated at the moment. 

Developer (1 edit)

Thanks for testing, very appreciated!

There is something changing in the DATA2 channel, which i think represents the velocity (?). It seems like zero velocity should be interpreted as a note off, something i definitely did not know.

UPDATE: I just read a bit on midi.org and found that indeed there are 2 ways to turn off a note. Zero velocity or a NOTE OFF code. Older equipment tend to use zero velocity, while newer stuff tend to use NOTE OFF. 

MIDI Specification says : "A receiver must be capable of recognizing either method of turning off a note, and should treat them identically."

Ill prepare a fix and have you test it by email.

-Mat

Thanks again for the continued support, very appreciated!

Developer

Fix included in 2.0.2 which was just released. Thanks again for the bug report and debugging.