issues
search
Spijkervet
/
CLMR
Official PyTorch implementation of Contrastive Learning of Musical Representations
https://arxiv.org/abs/2103.09410
Apache License 2.0
309
stars
48
forks
source link
Allow loading sound files from the local computer
#13
Closed
pvdstel
closed
2 years ago
pvdstel
commented
2 years ago
Adds a file picker.
The supported MIME types are set dynamically, based on the JS array. This approach makes it easier to support other file types later on.
Extracted most of the file loading and audio context set-up to a separate function that consumes an ArrayBuffer.
loadSound
was removed from
resetAudioContext
since the file can now also be a file from the local machine.
loadSound
was removed fromresetAudioContext
since the file can now also be a file from the local machine.