From f7b3b582cc1e7ff0166ddd43359a66f992b298d5 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Thu, 2 Feb 2023 21:31:44 +0100 Subject: [PATCH] update csound + fix sound output see https://github.com/csound/csound/issues/1690#issuecomment-1414301145 --- packages/csound/index.mjs | 1 + packages/csound/package.json | 4 ++-- pnpm-lock.yaml | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/csound/index.mjs b/packages/csound/index.mjs index b9e26391..3aabc22b 100644 --- a/packages/csound/index.mjs +++ b/packages/csound/index.mjs @@ -92,6 +92,7 @@ async function load() { ['message'].forEach((k) => _csound.on(k, (...args) => eventLogger(k, args))); await _csound.setOption('-m0d'); // see -m flag https://csound.com/docs/manual/CommandFlags.html await _csound.setOption('--sample-accurate'); + await _csound.setOption('-odac'); await _csound.compileCsdText(csd); // await _csound.compileOrc(livecodeOrc); await _csound.compileOrc(presetsOrc); diff --git a/packages/csound/package.json b/packages/csound/package.json index 08838448..14700d28 100644 --- a/packages/csound/package.json +++ b/packages/csound/package.json @@ -1,6 +1,6 @@ { "name": "@strudel.cycles/csound", - "version": "0.6.1", + "version": "0.6.2", "description": "csound bindings for strudel", "main": "index.mjs", "publishConfig": { @@ -32,7 +32,7 @@ }, "homepage": "https://github.com/tidalcycles/strudel#readme", "dependencies": { - "@csound/browser": "6.18.3", + "@csound/browser": "6.18.5", "@strudel.cycles/core": "workspace:*", "@strudel.cycles/webaudio": "workspace:*" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e1e8404a..ce03f49c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -79,12 +79,12 @@ importers: packages/csound: specifiers: - '@csound/browser': 6.18.3 + '@csound/browser': 6.18.5 '@strudel.cycles/core': workspace:* '@strudel.cycles/webaudio': workspace:* vite: ^3.2.2 dependencies: - '@csound/browser': 6.18.3 + '@csound/browser': 6.18.5 '@strudel.cycles/core': link:../core '@strudel.cycles/webaudio': link:../webaudio devDependencies: @@ -1066,8 +1066,8 @@ packages: w3c-keyname: 2.2.6 dev: false - /@csound/browser/6.18.3: - resolution: {integrity: sha512-udvedLjNZjEvrCFxMItirRh/gKFbY/dED4SKbUoinhImJzVTRtykiCZv9CHMCmD6ixWPo4BByVkV2NuYNsBQ+g==} + /@csound/browser/6.18.5: + resolution: {integrity: sha512-PrffNroCFgns9ct6O0e1anyxZWdDPcPA8y4Ei9t96DgkRba/wvxJayXfLJvEdlTQy+LVw1es92TDODtEYHJeKw==} dependencies: comlink: 4.3.1 eslint-plugin-n: 15.6.1