0xtob / nitrotracker

A Fasttracker II style tracker for the Nintendo DS
102 stars 14 forks source link

dsmidiwifi receive note on with looped envelope-enabled instrument double-triggers #59

Open benlanier opened 7 years ago

benlanier commented 7 years ago

when the ds is receiving dsmidiwifi events and the relevant instrument has an envelope enabled on a looped sample, the note seems to trigger once, at what seems to be double the speed of the envelope, and then it triggers again at the normal speed of the envelope.

in the console it appears the ds only receives one "note on" event (as indicated via "got sth" followed by "on 0 57" or whatever the note name and instrument are). following the nitrotracker play instrument command code doesn't reveal anything that looks immediately wrong.

this is happening both when "receive" by itself is enabled as well as when both "send" and "receive" are enabled. disabling the envelope for the instrument results in only one play of the note as expected.