kevincennis / Mix.js

Mutitrack mixing in JavaScript with the Web Audio API
http://kevvv.in/mix/
MIT License
323 stars 78 forks source link

code to record the mix to an audio file #19

Closed louisdoe closed 7 years ago

louisdoe commented 7 years ago

Hey Kevin

your mix app is super cool!!! Thanks for that one !

I don't know if it is the right place to ask a question like this, but what is the code to record the mix you've done to an audio file, that can be shared ?

Thanks a lot !

kevincennis commented 7 years ago

The high-level answer is that you'd want to re-instantiate your mix with an OfflineAudioContext and then use something like Recorder.js to export as WAV.

louisdoe commented 7 years ago

Is there a low-level answer ? :)

Le 15 juin 2017 16:06, "Kevin Ennis" notifications@github.com a écrit :

The high-level answer is that you'd want to re-instantiate your mix with an OfflineAudioContext https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext and then use something like Recorder.js https://github.com/mattdiamond/Recorderjs to export as WAV.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevincennis/Mix.js/issues/19#issuecomment-308743065, or mute the thread https://github.com/notifications/unsubscribe-auth/AD1Gi1bnr6dtwQg_VR7QKPKWTuKcWgw6ks5sETp2gaJpZM4N7Q-f .

spmurrayzzz commented 7 years ago

@louisdoe Nope.

kevincennis commented 7 years ago

There's not one where I'm going to write the code for you.

louisdoe commented 7 years ago

Not what I am asking... I am just asking if there's a simpler solution, BECAUSE you mention 'high-level' in your first answer. Never mind.

2017-06-15 18:10 GMT+02:00 Kevin Ennis notifications@github.com:

There's not one where I'm going to write the code for you.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kevincennis/Mix.js/issues/19#issuecomment-308789482, or mute the thread https://github.com/notifications/unsubscribe-auth/AD1Gi4E2TuqXvGeBh7J2WMG1YiaM4DGHks5sEVeQgaJpZM4N7Q-f .