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

Export audio file? #8

Open
praneybehl opened this issue May 1, 2015 · 4 comments
Open

Export audio file? #8

praneybehl opened this issue May 1, 2015 · 4 comments

Comments

@praneybehl
Copy link

Hi mate,
Great effort, just wondering if there is an option to export the final audio as mp3/wav?

Appreciate your help.
Cheers!

@janmyler
Copy link
Owner

janmyler commented May 4, 2015

Hi, unfortunately there is not such feature implemented. I wanted to add it, as the app itself is quite useless without this option, however, I'm quite busy with work related tasks all the time.

I found this http://stackoverflow.com/questions/16969201/web-audio-api-scheduling-sounds-and-exporting-the-mix which might be the way to go.

@1j01
Copy link

1j01 commented Sep 3, 2015

@janmyler There's a library for exporting to wav (which I've used here) and a somewhat hackily converted version for mp3 (which does seem to work but might be incredibly slow for longer tracks)

@1j01
Copy link

1j01 commented Dec 15, 2015

Feel free to take export.coffee from my audio editor, compile it online and drop it into your project (along with the workers). From there, usage is simple:

var number_of_channels = 2;
var oactx = new OfflineAudioContext(number_of_channels, sample_rate * length, sample_rate);

start_playing(from_position, oactx);

oactx.startRendering().then(function(rendered_audio_buffer) {
    export_audio_buffer_as(rendered_audio_buffer, file_type);
});

@niyazhussain
Copy link

I am finding difficulties to save the project in DB and re render as it is saved , is it possible with it , then what is the idea to be used ?

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

No branches or pull requests

4 participants