add another example

This commit is contained in:
Jade (Rose) Rowland 2025-07-24 23:59:38 -04:00
parent fb7d76a2ab
commit 82f0dbb750
2 changed files with 72 additions and 1 deletions

View file

@ -254,11 +254,13 @@ export const { fmenv } = registerControl('fmenv');
export const { fmattack } = registerControl('fmattack');
/**
* Attack time for the FM envelope: time it takes to reach maximum modulation
* waveform of the modulator
*
* @name fmwave
* @param {number | Pattern} wave waveform
* @example
* n("0 1 2 3".fast(4)).scale("d:minor").s("sine").fmwave("<sine square sawtooth crackle>").fm(4).fmh(2.01)
* @example
* n("0 1 2 3".fast(4)).chord("<Dm Am F G>").voicing().s("sawtooth").fmwave("brown").fm(.6)
*
*/