Closed riffca closed 1 year ago
Hi @riffca,
Opening your file in Garageband the bass track seems ok from what I can tell.
In v2.1.1 I added support for channel
property in ProgramChangeEvent
, so passing that in might solve whatever issue you're seeing.
new MidiWriter.ProgramChangeEvent({instrument: track.midiSound, channel: note.channel})
With that said, adding a ProgramChangeEvent
for each note is unnecessary and might be related to the issue you're seeing. You should only need to set it at the beginning of the track, and if any other instrument changes are needed down the line.
Midi file generated by library has conflicts during playing together multiple instruments. If there is wait note it sounds not in sound. The noise takes away sound. But Single instrument file plays correctly. Code to reproduce and generated file attached. Listening file you can pay attention to bass guitar.
test midi.zip How it can be fixed?