-
Notifications
You must be signed in to change notification settings - Fork 762
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
binaryLoader not being called. #272
Comments
So some more information on this. Since, I am trying to load a .mid file, SoundJS tries to do it and fails because .mid files are not supported by the plugins I am loading. I continue to investigate. |
I figured out the issue. SoundJS has the .mid extension as part of its set of extensions it says it handles. Line 363 in Sound.js.
I then bipass the typical loader code putting this just above the WebAudio Loader code.
This loads the midi file as a raw binary. From here I can deal with it and load it into Midi.js and get it to play.
Hope this helps. |
@paustian - that sounds good. I have not done any work with binary. What is it like? How do you decode it after? Do you know your way around the sound loading enough to suggest this more general solution? Cheers. |
I apologize for this being so much later. Once I have the file loaded, I used a combination of midi-parser.js, midiplayer.js, and soundfont-player.js to manipulate and play the files. I used all of this in a Zikula Module for my wife's textbook. It's called MelodyMixerModule. |
And I am back - and apologize for the delay. I keep forgetting to check preloadjs. Okay - if you have a specific solution that we can implement, please let us know what it is or submit a pull request. Cheers. |
Issue Details
Version used version 1.0.0
Describe whats happening (Include any relevant console errors, a Gist is preferred for longer errors):
Loading of binary files does not work.
OS & Browser version (Please be specific) (Ex; Windows 10 Home, Chrome 62.0.3202.94):
MacOS Mojave, Firefox 87.0
Do you know of any workarounds?
None
Trying to load a binary file fails silently. Here is some example code:
I can easily load the png, but the binary file fails silently.
The text was updated successfully, but these errors were encountered: