Merge pull request #728 from tidalcycles/fix-sample-url-special-chars
fix: hashes in urls
This commit is contained in:
commit
341546508f
1 changed files with 1 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ export const getSampleBufferSource = async (s, n, note, speed, freq, bank, resol
|
||||||
|
|
||||||
export const loadBuffer = (url, ac, s, n = 0) => {
|
export const loadBuffer = (url, ac, s, n = 0) => {
|
||||||
const label = s ? `sound "${s}:${n}"` : 'sample';
|
const label = s ? `sound "${s}:${n}"` : 'sample';
|
||||||
|
url = url.replace('#', '%23');
|
||||||
if (!loadCache[url]) {
|
if (!loadCache[url]) {
|
||||||
logger(`[sampler] load ${label}..`, 'load-sample', { url });
|
logger(`[sampler] load ${label}..`, 'load-sample', { url });
|
||||||
const timestamp = Date.now();
|
const timestamp = Date.now();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue