merging main
This commit is contained in:
commit
7f9cc7cd2d
46 changed files with 442 additions and 11291 deletions
|
|
@ -15,7 +15,7 @@ export function createParam(names) {
|
|||
let bag;
|
||||
// check if we have an object with an unnamed control (.value)
|
||||
if (typeof xs === 'object' && xs.value !== undefined) {
|
||||
bag = xs; // grab props that are already there
|
||||
bag = { ...xs }; // grab props that are already there
|
||||
xs = xs.value; // grab the unnamed control for this one
|
||||
delete bag.value;
|
||||
}
|
||||
|
|
@ -28,7 +28,8 @@ export function createParam(names) {
|
|||
});
|
||||
return result;
|
||||
} else if (bag) {
|
||||
return { ...bag, [name]: xs };
|
||||
bag[name] = xs;
|
||||
return bag;
|
||||
} else {
|
||||
return { [name]: xs };
|
||||
}
|
||||
|
|
@ -125,6 +126,16 @@ export const { note } = registerControl(['note', 'n']);
|
|||
*
|
||||
*/
|
||||
export const { accelerate } = registerControl('accelerate');
|
||||
/**
|
||||
*
|
||||
* Sets the velocity from 0 to 1. Is multiplied together with gain.
|
||||
* @name velocity
|
||||
* @example
|
||||
* s("hh*8")
|
||||
* .gain(".4!2 1 .4!2 1 .4 1")
|
||||
* .velocity(".4 1")
|
||||
*/
|
||||
export const { velocity } = registerControl('velocity');
|
||||
/**
|
||||
* Controls the gain by an exponential amount.
|
||||
*
|
||||
|
|
@ -1183,11 +1194,9 @@ export const { rate } = registerControl('rate');
|
|||
export const { slide } = registerControl('slide');
|
||||
// TODO: detune? https://tidalcycles.org/docs/patternlib/tutorials/synthesizers/#supersquare
|
||||
export const { semitone } = registerControl('semitone');
|
||||
// TODO: dedup with synth param, see https://tidalcycles.org/docs/reference/synthesizers/#superpiano
|
||||
// ['velocity'],
|
||||
|
||||
// TODO: synth param
|
||||
export const { voice } = registerControl('voice');
|
||||
|
||||
// voicings // https://github.com/tidalcycles/strudel/issues/506
|
||||
// chord to voice, like C Eb Fm7 G7. the symbols can be defined via addVoicings
|
||||
export const { chord } = registerControl('chord');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue