arpWith example

This commit is contained in:
Felix Roos 2023-01-11 23:37:59 +01:00
parent 6e315a50ed
commit 86cde9716a
2 changed files with 2 additions and 2 deletions

View File

@ -836,7 +836,7 @@ Pattern.prototype.collect = function () {
* Selects indices in in stacked notes. * Selects indices in in stacked notes.
* @example * @example
* note("<[c,eb,g]!2 [c,f,ab] [d,f,ab]>") * note("<[c,eb,g]!2 [c,f,ab] [d,f,ab]>")
* .arp("0 [0,2] 1 [0,2]").slow(2) * .arpWith(haps => haps[2])
* */ * */
Pattern.prototype.arpWith = function (func) { Pattern.prototype.arpWith = function (func) {
return this.collect() return this.collect()

View File

@ -32,6 +32,6 @@ import { JsDoc } from '../../docs/JsDoc';
<JsDoc client:idle name="Pattern#arp" h={0} /> <JsDoc client:idle name="Pattern#arp" h={0} />
## arpWith ## arpWith 🧪
<JsDoc client:idle name="Pattern#arpWith" h={0} /> <JsDoc client:idle name="Pattern#arpWith" h={0} />