Skip to content

Commit

Permalink
Merge pull request #662 from gogins/main
Browse files Browse the repository at this point in the history
Fix for #1. Enables named instruments for csoundm.
  • Loading branch information
felixroos authored Nov 9, 2023
2 parents 400b210 + 1170ff5 commit d02450c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/csound/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export async function loadOrc(url) {
export const csoundm = register('csoundm', (instrument, pat) => {
let p1 = instrument;
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
return pat.onTrigger((tidal_time, hap) => {
Expand Down

0 comments on commit d02450c

Please sign in to comment.