-
Notifications
You must be signed in to change notification settings - Fork 645
Description
Greetings,
first of all thank you for developing this library, it is awesome and I like it a lot. One of the problems I ran into is that the MIDI file loaded with the loadFile() function and played with start() is not the playing the first chord, it is playing the first note but not the chord that is backing it. I am using MidiJS in combination with AngularJS.
It is a bit hard for me to explain in words so I have put the software I have been working online. It is still work in progress but enough to explain the issue.
Go to http://melodybrains.azurewebsites.net/ and hit the generate button. Sometimes you have to hit the Generate button twice, that is a bug on my side, don't worry about it too much.
Once the melogy is generated wou will be presented with a some buttons:
- Play button is playing the loaded MIDI file. Every time I use that button it is not playing the first chord. I don't do any crazy struff in code I just load the file and start it onsuccess.
$scope.player.loadFile($scope.midiLocation, function () { $scope.player.start(); }); - the Play2 button is transforming the notes into noteOn() and noteOff() events. This one playes all the notes correctly.
- the Download button downloads the generated MIDI file. When I load it into my DAW everything looks and sounds ok, and all notes are played.