Skip to content

Commit 02e1e57

Browse files
committed
refs #114, bugfix with wasm
1 parent 8ab1b08 commit 02e1e57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/notation_midi/src/wasm/midi_synth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ impl MidiSynth {
1414
}
1515
pub fn init_channels(&self, _settings: &MidiSettings, state: &MidiState) {
1616
for channel in state.channels.iter() {
17-
if channel.track.is_some() {
17+
if channel.messages.len() > 0 {
1818
init_channel(channel.channel.into(), channel.program.into());
1919
}
2020
}

0 commit comments

Comments
 (0)