Web-Multi-Media / multi-web-audio-sequencer

Web collaborative step sequencer
https://labs.freesound.org/sequencer
GNU General Public License v3.0
10 stars 2 forks source link

Automatically set start time on onset value #33

Open xavierfav opened 6 years ago

xavierfav commented 6 years ago

It would be nice to automatically set the start time of the sampler of each track on the first onset in the corresponding audio clip. The Freesound API allows to retrieve the onset values, so it is quite simple to implement.

xavierfav commented 6 years ago

I have tried some stuff using the rhythm.onset_times descriptor given by Freesound API. It appears that the time does not correspond to the onset we visualise on the printed waveform. It needs to be more investigated to know where this comes from.

xavierfav commented 6 years ago

It appears that there is a bug under Firefox. The samples loaded have a silence at the beginning of the buffer which make the onset times being not aligned across different browsers.

It would be nice to check if this bug has been previously identified, and see how we could fix it.

xavierfav commented 6 years ago

We found out that using ogg files does not bring this issue. So now we use ogg files...