mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-24 12:08:28 +00:00
doc: slice
This commit is contained in:
parent
fe6d99d4f1
commit
27643f4a48
@ -2240,14 +2240,18 @@ const _loopAt = function (factor, pat, cps = 1) {
|
|||||||
.slow(factor);
|
.slow(factor);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Chops samples into the given number of slices, triggering those slices with a given pattern of slice numbers.
|
* Chops samples into the given number of slices, triggering those slices with a given pattern of slice numbers.
|
||||||
|
* Instead of a number, it also accepts a list of numbers from 0 to 1 to slice at specific points.
|
||||||
* @name slice
|
* @name slice
|
||||||
* @memberof Pattern
|
* @memberof Pattern
|
||||||
* @returns Pattern
|
* @returns Pattern
|
||||||
* @example
|
* @example
|
||||||
* await samples('github:tidalcycles/Dirt-Samples/master')
|
* await samples('github:tidalcycles/Dirt-Samples/master')
|
||||||
* s("breaks165").slice(8, "0 1 <2 2*2> 3 [4 0] 5 6 7".every(3, rev)).slow(1.5)
|
* s("breaks165").slice(8, "0 1 <2 2*2> 3 [4 0] 5 6 7".every(3, rev)).slow(1.5)
|
||||||
|
* @example
|
||||||
|
* await samples('github:tidalcycles/Dirt-Samples/master')
|
||||||
|
* s("breaks125/2").fit().slice([0,.25,.5,.75], "0 1 1 <2 3>")
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const slice = register(
|
export const slice = register(
|
||||||
|
|||||||
@ -319,6 +319,10 @@ Sampler effects are functions that can be used to change the behaviour of sample
|
|||||||
|
|
||||||
<JsDoc client:idle name="Pattern.chop" h={0} />
|
<JsDoc client:idle name="Pattern.chop" h={0} />
|
||||||
|
|
||||||
|
### slice
|
||||||
|
|
||||||
|
<JsDoc client:idle name="Pattern.slice" h={0} />
|
||||||
|
|
||||||
### speed
|
### speed
|
||||||
|
|
||||||
<JsDoc client:idle name="speed" h={0} />
|
<JsDoc client:idle name="speed" h={0} />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user