add documentation but it crashes

This commit is contained in:
Raphael Forment 2023-09-11 00:46:31 +02:00
parent 7a74189771
commit 843d9d52c3
2 changed files with 21 additions and 4 deletions

View File

@ -314,8 +314,10 @@ const generic_params = [
* @param {number | Pattern} amount between 0 and 1, where 1 is the length of the sample
* @synonyms loopb
* @example
* s("numbers").loopBegin("<0 .25 .5 .75>").loop(1)
*
* s("numbers")
* .loop(1)
* .begin(0).end(1)
* .loopBegin("<0 .25 .5 .75>")
*/
['loopBegin', 'loopb'],
/**
@ -323,8 +325,11 @@ const generic_params = [
* @param {number | Pattern} amount between 0 and 1, where 1 is the length of the sample
* @synonyms loope
* @example
* s("numbers").loopEnd("<0 .25 .5 .75>").loop(1)
*
* s("numbers")
* .loop(1)
* .begin(0).end(1)
* .loopBegin("<0 .25 .5 .75>")
* .loopEnd("<0.1 .35 .6 .85>")
*/
['loopEnd', 'loope'],
/**

View File

@ -303,6 +303,18 @@ Sampler effects are functions that can be used to change the behaviour of sample
<JsDoc client:idle name="Pattern.end" h={0} />
### loop
<JsDoc client:idle name="loop" h={0} />
### loopBegin
<JsDoc client:idle name="loopBegin" h={0} />
### loopEnd
<JsDoc client:idle name="loopEnd" h={0} />
### cut
<JsDoc client:idle name="cut" h={0} />