mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-27 05:28:41 +00:00
updated params
This commit is contained in:
parent
fba2422a64
commit
416a03aea1
@ -1287,7 +1287,7 @@ export const { roomsize, size, sz, rsize } = registerControl('roomsize', 'size',
|
|||||||
* s("bd sd [~ bd] sd,hh*8").shape("<0 .2 .4 .6 .8>")
|
* s("bd sd [~ bd] sd,hh*8").shape("<0 .2 .4 .6 .8>")
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export const { shape } = registerControl('shape');
|
export const { shape } = registerControl(['shape', 'shapevol']);
|
||||||
/**
|
/**
|
||||||
* Wave shaping distortion. CAUTION: it can get loud.
|
* Wave shaping distortion. CAUTION: it can get loud.
|
||||||
* Second option in optional array syntax (ex: ".9:.5") applies a postgain to the output.
|
* Second option in optional array syntax (ex: ".9:.5") applies a postgain to the output.
|
||||||
@ -1302,7 +1302,7 @@ export const { shape } = registerControl('shape');
|
|||||||
* note("d1!8").s("sine").penv(36).pdecay(.12).decay(.23).distort("8:.4")
|
* note("d1!8").s("sine").penv(36).pdecay(.12).decay(.23).distort("8:.4")
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export const { distort, dist } = registerControl('distort', 'dist');
|
export const { distort, dist } = registerControl(['distort', 'distortvol'], 'dist');
|
||||||
/**
|
/**
|
||||||
* Dynamics Compressor. The params are `compressor("threshold:ratio:knee:attack:release")`
|
* Dynamics Compressor. The params are `compressor("threshold:ratio:knee:attack:release")`
|
||||||
* More info [here](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode?retiredLocale=de#instance_properties)
|
* More info [here](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode?retiredLocale=de#instance_properties)
|
||||||
|
|||||||
@ -316,7 +316,9 @@ export const superdough = async (value, deadline, hapDuration) => {
|
|||||||
coarse,
|
coarse,
|
||||||
crush,
|
crush,
|
||||||
shape,
|
shape,
|
||||||
|
shapevol,
|
||||||
distort,
|
distort,
|
||||||
|
distortvol,
|
||||||
pan,
|
pan,
|
||||||
vowel,
|
vowel,
|
||||||
delay = 0,
|
delay = 0,
|
||||||
@ -458,14 +460,8 @@ export const superdough = async (value, deadline, hapDuration) => {
|
|||||||
// effects
|
// effects
|
||||||
coarse !== undefined && chain.push(getWorklet(ac, 'coarse-processor', { coarse }));
|
coarse !== undefined && chain.push(getWorklet(ac, 'coarse-processor', { coarse }));
|
||||||
crush !== undefined && chain.push(getWorklet(ac, 'crush-processor', { crush }));
|
crush !== undefined && chain.push(getWorklet(ac, 'crush-processor', { crush }));
|
||||||
if (shape !== undefined) {
|
shape !== undefined && chain.push(getWorklet(ac, 'shape-processor', { shape, postgain: shapevol }));
|
||||||
const input = Array.isArray(shape) ? { shape: shape[0], postgain: shape[1] } : { shape };
|
distort !== undefined && chain.push(getWorklet(ac, 'distort-processor', { distort, postgain: distortvol }));
|
||||||
chain.push(getWorklet(ac, 'shape-processor', input));
|
|
||||||
}
|
|
||||||
if (distort !== undefined) {
|
|
||||||
const input = Array.isArray(distort) ? { distort: distort[0], postgain: distort[1] } : { distort };
|
|
||||||
chain.push(getWorklet(ac, 'distort-processor', input));
|
|
||||||
}
|
|
||||||
|
|
||||||
compressorThreshold !== undefined &&
|
compressorThreshold !== undefined &&
|
||||||
chain.push(
|
chain.push(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user