-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
creating midi file #59
Comments
I split the audio generation into small tools. For MIDI generation, just replace util/toaudio5.js by MIDI file creation. |
could you please give me more detail |
I think the interface in util/toaudio5.js is clear enough. |
I am also pulling the play events from the player in the callback
where abcplay is an instance of AbcPlay. This approach has problems for me:
Long story short: Would it be possible to factor out the creation of the player events from AbcPlay to either another module (e.g. This would simplify the subsequent creation of a midi-file. update: is it correct that such a module already exists "ToAudio" I changed the code to the following, and it works. var to_audio = new ToAudio()
to_audio.add(tsfirst, voice_tb)
player_model = to_audio.clear() Am I misusing |
As told previously, the play function has been split into toaudio (play event generation) and toaudio5 (html5 audio playing engine). The file play.js is just a wrapper around these two modules.
This permits:
Normally, the APIs should not change. |
I take this as a confirmation the the approach of using ToAudio to get the player events is ok. |
All values in the play event array are numbers. Generating a standard array or a float32array does not change its usage. |
abc2svg is the only lib that can render and playback the my multi-part abc file. is there anyway i can create a midi/hack something similar using your lib?
The text was updated successfully, but these errors were encountered: