Skip to content
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

Get Master output buffer #446

Closed
MileanCo opened this issue Feb 10, 2019 · 5 comments
Closed

Get Master output buffer #446

MileanCo opened this issue Feb 10, 2019 · 5 comments

Comments

@MileanCo
Copy link

I would like to do the following, play a URL (wav file), add some effects, and then get the buffer and save to a file. However, when I call player.buffer.get(), it just returns the original buffer (but I can hear the effects on Master output). Any ideas? If its not possible it should be a feature.

      var player = new Tone.Player(url, function() {
        make_download(player.buffer.get());
      });

      // Effects
      var limiter = new Tone.Limiter(-6);
      var delay = new Tone.Delay(0.2);
      var eq = new Tone.EQ3(-10, 3, -20);

      player.chain(limiter, delay, eq, Tone.Master);
@tambien
Copy link
Contributor

tambien commented Feb 11, 2019

i think the best way to do that would be with Tone.Offline. give it a callback and a duration and it'll render everything in that callback using the web audio's OfflineAudioContext.

to do it in the online context is possible but much more complicated. you can look into the MediaRecorder API, or recorder.js.

@tambien tambien closed this as completed Feb 11, 2019
@Catsvilles
Copy link

@MileanCo Hi! Did you actually had any results with this? I try to use Tone.Offline but no matter what the buffer I get doesn't contain any effects but only the original sound. Please, advice if you had any success with this! Thank you very much! :)

@conner1reimers
Copy link

@MileanCo Hi! Did you actually had any results with this? I try to use Tone.Offline but no matter what the buffer I get doesn't contain any effects but only the original sound. Please, advice if you had any success with this! Thank you very much! :)

Hi! Did you ever find a way around this? I'm having the same exact problem :( Been searching for a while

@Catsvilles
Copy link

@conner1reimers Sorry, just saw this, I hope you solved your problem until now, if not - let me know.

@Coremotor
Copy link

@conner1reimers Sorry, just saw this, I hope you solved your problem until now, if not - let me know.

I faced the same problem, tell me how to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants