So here is completely redesigned class.
For now only simple cases work, more coming soon.
PR is just to discuss for now.
Things to decide:
Should we include eases functions for fade transition types? Including allows for instant use within bundle audio.fade(.5, .2, 'cubic-in-out'), same time it increases bundle.
Should we ship encoding types other than wav, to audio.save('my-record.mp3', (err, ok) => {})? Same as above, but shipping mp3 may be very expensive.
So here is completely redesigned class. For now only simple cases work, more coming soon. PR is just to discuss for now.
Things to decide:
fade
transition types? Including allows for instant use within bundleaudio.fade(.5, .2, 'cubic-in-out')
, same time it increases bundle.wav
, toaudio.save('my-record.mp3', (err, ok) => {})
? Same as above, but shippingmp3
may be very expensive.