You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.
In implementing a few remix hacks yesterday, I kept finding myself wanting to construct a new Audio object from a time slice. Currently, the only way to do this is to extract the waveform by get_samples() and then instantiate a new Audio object.
This is undesirable for a few reasons:
It's clunky
It triggers a full copy and re-analysis of the audio
1 is okay, but 2 is a deal breaker if you're extracting short clips (eg beats), which may be too short for certain analyses to make sense.
What do folks think about making a shortcut for this kind of operation that propagates features (and timings) from the source audio of a time slice? This way, we can also preserve things like beat timings within a sliced interval, which might come out differently if the interval is analyzed independently of the full track.
If we're careful about things, the audio buffer could also be shared between audio objects by slicing.
The text was updated successfully, but these errors were encountered:
In implementing a few remix hacks yesterday, I kept finding myself wanting to construct a new
Audio
object from a time slice. Currently, the only way to do this is to extract the waveform byget_samples()
and then instantiate a newAudio
object.This is undesirable for a few reasons:
1 is okay, but 2 is a deal breaker if you're extracting short clips (eg beats), which may be too short for certain analyses to make sense.
What do folks think about making a shortcut for this kind of operation that propagates features (and timings) from the source audio of a time slice? This way, we can also preserve things like beat timings within a sliced interval, which might come out differently if the interval is analyzed independently of the full track.
If we're careful about things, the audio buffer could also be shared between audio objects by slicing.
The text was updated successfully, but these errors were encountered: