-
Notifications
You must be signed in to change notification settings - Fork 821
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
Recorder breaks synth #1744
Comments
Work fine in Chromium. |
Works on Safari (OSX and iPhone) |
However it does seem as though it is something in MB since Tone.js examples using older versions work on Firefox as well as Safari - but that is not the case with MB |
I will try testing some older versions to see if they work. v2.0 runs fine. so... |
When I used the new Tone.js with the v2.7, it no longer played sounds. So somehow the combination of the new Tone.js and the new Firefox triggers a problem with the MB code. Both versions work fine with Chromium. The latest code with the old Tone.js works fine in Firefox. |
Seems like the issue was reproduced, finally. One step forward in bug discovery! |
If this issue lingers for long, it would be helpful for me if we had a separate branch with our latest code, but a version of tone.js that works with FF. The reason is, for many of my classes we are running FF and Chromium is not installed. Therefore, I cannot provide the class with latest bits (nor have the class help test them). |
A branch is easy enough, But we'll have to keep it up to date. |
Yes, it works. Thanks! |
Hello @walterbender,
Sound is not playing while block gets executed. |
You can add Fedora 29 to the list. |
@walterbender Thanks, |
@im-gozmit I recommend viewing the recent changes made in wrt tone.js For example, we recently 1) upgraded and 2) changed from minified code to un-minified. Perhaps something bubbled up due to these changes. |
Just did a little experiment: |
I have isolated it to synthutils.js. But no idea what the problem is there. |
I have isolated the problem to one line: If we don't create the Recorder, FF works!!! Now to figure out why the Recorder breaks things. |
A simple test case: Adding the Recorder line break it in FF but not Chrome. |
I think we should replace lib/recorder.js rather than try to fix it because it doesn't seem to have a license. @eohomegrownapps where did you get this module from? |
https://tonejs.github.io/docs/r13/Tone#offline-static might offer a better approach to rendering audio for recording purposes. https://tonejs.github.io/examples/offline.html <<---- example of how to use it. |
@walterbender The module I used was https://github.com/mattdiamond/Recorderjs - it captures the output of a web audio node and allows it to be exported as WAV (for more information see logo.js, L8914). A licenced alternative could be https://github.com/Jam3/audiobuffer-to-wav (MIT licence); I might look into this if I have time later today. |
I think it is also worth it (whatever we decide) to notify the developer of the lack of license. |
I put a test in for FF and don't enable saveWAV when FF is the browser as a temporary work-around until we get around to fixing this. |
The most recent version of Tone.js breaks Chrome too... we need a new approach. |
This works for me... (I didn`t know that we had save as wav again...) |
Just FYI, it records as "ogg" although it says "save as wav" |
Fedora 29
FireFox 65.0.1
Suddenly stopped playing sounds. No idea why. Tone.js examples make sound, so it is something in MB itself.
The text was updated successfully, but these errors were encountered: