Tonejs / Tone.js

A Web Audio framework for making interactive music in the browser.
https://tonejs.github.io
MIT License
13.37k stars 976 forks source link

How to export a song after slowing it down and adding reverb to it? #1134

Closed Muhammed-Rajab closed 4 months ago

Muhammed-Rajab commented 1 year ago

Hey there!

I've been working on this small slowed-reverb music maker project. It basically takes a URL of a song, slows it down, adds reverb to it and export it. I've never worked on a project like this, which includes audio manipulation, etc. After doing some research I found out that I could slow down the song by changing the playbackRate on the Player instance. I also managed to add reverb to the song. But now I'm facing a serious issue. I need to find out some way to export the modified song into a local format (WAV, MP3, etc). I've searched a lot and I've come across a few libraries like Recorder.js and even the recorder provided by Tone.js. But this isn't what I want. I want to apply effects to the song and export it, not to record it. Is there any way that I could achieve this using Tone.js. I know I'm missing a lot of details. A big sorry from my side. I've no knowledge in the field of audio manipulation and Tone.js one of the very few libraries that I've found with such great documentation for doing the stuff that I want to. If you want any clarification, let me know. It would be amazing if you guys could help me with this!

dirkk0 commented 1 year ago

There is no export. The proper way to do this would be to offline render the song, but this involves coding and is not easy to do. A faster and easier fix would be to install something like Audacity and record the output of your machine to a file.

jdanford commented 1 year ago

@Muhammed-Rajab you can try using a Recorder