improve samples doc

This commit is contained in:
Felix Roos 2023-02-05 16:28:43 +01:00
parent ce64c98fb7
commit 0fdae70461
2 changed files with 106 additions and 20 deletions

View file

@ -798,6 +798,16 @@ const generic_params = [
['f', 'uid', ''],
['f', 'val', ''],
['f', 'cps', ''],
/**
* If set to 1, samples will be cut to the duration of their event.
* In tidal, this would be done with legato, which [is about to land in strudel too](https://github.com/tidalcycles/strudel/issues/111)
*
* @name clip
* @param {number | Pattern} active 1 or 0
* @example
* note("c a f e ~").s("piano").clip(1)
*
*/
['f', 'clip', ''],
];