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

WAV Output #11

Open
oampo opened this issue Aug 22, 2011 · 3 comments
Open

WAV Output #11

oampo opened this issue Aug 22, 2011 · 3 comments

Comments

@oampo
Copy link
Owner

oampo commented Aug 22, 2011

Add a node which buffers audio into a Float32Array and allows you to export it as a .wav file.

@sntx
Copy link
Contributor

sntx commented Aug 25, 2011

This will be great because the .wav file could be downloaded to the user's computer, but also, it could be sent to a server using AJAX.

@imgntn
Copy link

imgntn commented Nov 12, 2011

any news on this? working on an interactive (not-quite) game where this would be most excellent.

@oampo
Copy link
Owner Author

oampo commented Nov 12, 2011

Depends slightly what you want it for. Now I've switched to using https://github.com/jussi-kalliokoski/sink.js you can use the record method of audiolet.output.device.sink to record the master output, then encoding that to a wav is pretty simple (have a look at http://www.sk89q.com/playground/jswav/ for how to encode the raw data).

Eventually I want to encapsulate this more neatly into a RecordBuffer node which will allow you to grab data from anywhere in the processing graph and encode it. For now though it should be not too tricky to hack it in if you just need the output recording.

Let me know how you get on, and if there's any of this you are struggling with and I'll do my best to help out.

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

3 participants