hundredrabbits / Pilot

Orca's best friend.
http://wiki.xxiivv.com/Pilot
MIT License
519 stars 41 forks source link

add wav recording for the default recording #25

Open ryanramage opened 5 years ago

ryanramage commented 5 years ago

Yes I added a dependancy. Sorry, it's just the best solution for this problem. Otherwise I'd have to copy a lot of code into the project.

I tried getting the MediaRecorder to work, but it wants to put the audio into various containers and I could not get the length to work.

neauoire commented 5 years ago

Sorry can't do :(

ryanramage commented 5 years ago

https://twitter.com/shanselman/status/1116162158578941952

ryanramage commented 5 years ago

Found another wav recorder, this one is a lot smaller - one file. It could be copied in

https://github.com/Jam3/audiobuffer-to-wav/blob/master/index.js

ryanramage commented 5 years ago

And an example usage of it with Tonejs. https://github.com/generative-music/generative.fm/commit/de2422672a597f7a1772c9caf10eea65a4c2e6fa#diff-728aabb9c1db2479f130d548895290cfR20

neauoire commented 5 years ago

Ah! Yes, this is perfect. I'll give it a shot right now thanks :)

jakofranko commented 2 years ago

Hey there, I'm not sure if @neauoire is still maintaining this, but feel free to make a PR to my fork of Pilot! I'm wanting to make a few improvements and update the dependencies and such, so maybe we can work there till this gets picked up again? https://github.com/jakofranko/Pilot