Merge pull request 'Make stretch modulatable' (#1870) from glossing/stretch-node into main
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/1870
This commit is contained in:
commit
db49b37780
1 changed files with 5 additions and 1 deletions
|
|
@ -607,7 +607,11 @@ export const superdough = async (value, t, hapDuration, cps = 0.5, cycle = 0.5)
|
||||||
gain *= velocity; // velocity currently only multiplies with gain. it might do other things in the future
|
gain *= velocity; // velocity currently only multiplies with gain. it might do other things in the future
|
||||||
delaytime = delaytime ?? cycleToSeconds(delaysync, cps);
|
delaytime = delaytime ?? cycleToSeconds(delaysync, cps);
|
||||||
|
|
||||||
stretch !== undefined && chain.connect(getWorklet(ac, 'phase-vocoder-processor', { pitchFactor: stretch }));
|
if (stretch !== undefined) {
|
||||||
|
const phaseVocoder = getWorklet(ac, 'phase-vocoder-processor', { pitchFactor: stretch });
|
||||||
|
chain.connect(phaseVocoder);
|
||||||
|
fxNodes['stretch'] = [phaseVocoder];
|
||||||
|
}
|
||||||
|
|
||||||
if (fx.transient !== undefined) {
|
if (fx.transient !== undefined) {
|
||||||
const transProcessor = getWorklet(
|
const transProcessor = getWorklet(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue