We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ccd47 commit 26941cdCopy full SHA for 26941cd
crates/notation_midi/src/midi_util.rs
@@ -12,7 +12,10 @@ pub struct MidiUtil();
12
13
impl MidiUtil {
14
pub fn note_midi_key_number(note: &Note) -> Option<KeyNumber> {
15
+ #[cfg(not(target_arch = "wasm32"))]
16
let midi_note = Semitones::from(*note).0 + 12 - 1; //Not sure why got a higher pitch when playing, temp fix for get it right in video
17
+ #[cfg(target_arch = "wasm32")]
18
+ let midi_note = Semitones::from(*note).0 + 12;
19
KeyNumber::try_from(midi_note as u8).ok()
20
}
21
pub fn note_midi_on_msg(
0 commit comments