mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 08:17:07 +00:00
updating example
This commit is contained in:
parent
14883653b6
commit
ae2ec70d23
1 changed files with 3 additions and 0 deletions
|
@ -56,6 +56,9 @@ export class DuoSynth extends Monophonic<DuoSynthOptions> {
|
|||
* Harmonicity is the ratio between the two voices. A harmonicity of
|
||||
* 1 is no change. Harmonicity = 2 means a change of an octave.
|
||||
* @example
|
||||
* import { DuoSynth } from "tone";
|
||||
* const duoSynth = new DuoSynth().toDestination();
|
||||
* duoSynth.triggerAttackRelease("C4", "2n");
|
||||
* // pitch voice1 an octave below voice0
|
||||
* duoSynth.harmonicity.value = 0.5;
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue