Merge pull request #278 from tidalcycles/do-not-recompile-orc
do not recompile orc
This commit is contained in:
commit
c18a13d4fc
1 changed files with 4 additions and 2 deletions
|
|
@ -113,7 +113,9 @@ export async function loadOrc(url) {
|
|||
url = `https://raw.githubusercontent.com/${path}`;
|
||||
}
|
||||
if (!orcCache[url]) {
|
||||
orcCache[url] = await fetch(url).then((res) => res.text());
|
||||
orcCache[url] = fetch(url)
|
||||
.then((res) => res.text())
|
||||
.then((code) => _csound.compileOrc(code));
|
||||
}
|
||||
await _csound.compileOrc(orcCache[url]);
|
||||
await orcCache[url];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue