Merge pull request #728 from tidalcycles/fix-sample-url-special-chars

fix: hashes in urls
This commit is contained in:
Felix Roos 2023-10-08 13:25:57 +02:00 committed by GitHub
commit 341546508f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,7 @@ export const getSampleBufferSource = async (s, n, note, speed, freq, bank, resol
export const loadBuffer = (url, ac, s, n = 0) => {
const label = s ? `sound "${s}:${n}"` : 'sample';
url = url.replace('#', '%23');
if (!loadCache[url]) {
logger(`[sampler] load ${label}..`, 'load-sample', { url });
const timestamp = Date.now();