mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
Merge pull request #662 from gogins/main
Fix for #1. Enables named instruments for csoundm.
This commit is contained in:
commit
d02450c0d9
@ -137,7 +137,7 @@ export async function loadOrc(url) {
|
|||||||
export const csoundm = register('csoundm', (instrument, pat) => {
|
export const csoundm = register('csoundm', (instrument, pat) => {
|
||||||
let p1 = instrument;
|
let p1 = instrument;
|
||||||
if (typeof instrument === 'string') {
|
if (typeof instrument === 'string') {
|
||||||
p1 = `"{instrument}"`;
|
p1 = `"${instrument}"`;
|
||||||
}
|
}
|
||||||
init(); // not async to support csound inside other patterns + to be able to call pattern methods after it
|
init(); // not async to support csound inside other patterns + to be able to call pattern methods after it
|
||||||
return pat.onTrigger((tidal_time, hap) => {
|
return pat.onTrigger((tidal_time, hap) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user