From c5fd80902bc0a286b75b2ff97f6069f0e2449490 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Wed, 26 Aug 2026 15:23:00 +0200 Subject: [PATCH] update dough to 0.3.0 + add group, voices, glide --- packages/dough/dough.mjs | 6 +++++- packages/dough/package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/packages/dough/dough.mjs b/packages/dough/dough.mjs index 908138bae..745bdf60b 100644 --- a/packages/dough/dough.mjs +++ b/packages/dough/dough.mjs @@ -4,12 +4,16 @@ Copyright (C) 2022 Strudel contributors - see . */ -import { register, noteToMidi } from '@strudel/core'; +import { register, noteToMidi, registerControl } from '@strudel/core'; import { Dough, doughsamples } from 'dough-synth'; import { getAudioContext, ensureMinimalOutput } from '@strudel/webaudio'; import wasm from 'dough-synth/dough.wasm?url'; import workletCode from 'dough-synth/dough.js?raw'; +export const { group } = registerControl('group'); +export const { voices } = registerControl('voices'); +export const { glide } = registerControl('glide'); + Object.assign(globalThis, { doughsamples }); let D; diff --git a/packages/dough/package.json b/packages/dough/package.json index 104fd034d..4fb496701 100644 --- a/packages/dough/package.json +++ b/packages/dough/package.json @@ -31,7 +31,7 @@ "dependencies": { "@strudel/core": "workspace:*", "@strudel/webaudio": "workspace:*", - "dough-synth": "0.2.8" + "dough-synth": "0.3.0" }, "devDependencies": { "vite": "^6.0.11" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 50e3f0bfe..6d42e108f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -312,8 +312,8 @@ importers: specifier: workspace:* version: link:../webaudio dough-synth: - specifier: 0.2.8 - version: 0.2.8 + specifier: 0.3.0 + version: 0.3.0 devDependencies: vite: specifier: ^6.0.11 @@ -4072,8 +4072,8 @@ packages: resolution: {integrity: sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==} engines: {node: '>=12'} - dough-synth@0.2.8: - resolution: {integrity: sha512-Z5ibipaKr1cEkz95uXO89U2nBV+ytnm/9GR558YjPxS8QqtG/eTT239Bv1YoVg1nMH5a5dVh738sXFQ0BdWfvQ==} + dough-synth@0.3.0: + resolution: {integrity: sha512-23mwuF0QZOGngsiB+H1EW9ZOV2kciqHBJpi2kjZoWYOATi2v43trpai2UoY6vtWUR6raeAKYmazm4+Z5Sh8eUA==} hasBin: true dset@3.1.4: @@ -11794,7 +11794,7 @@ snapshots: dotenv@16.4.7: {} - dough-synth@0.2.8: {} + dough-synth@0.3.0: {} dset@3.1.4: {}