new Metronome(target, tempoopt)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
target |
AudioContext | AudioNode | output destination for audio | ||
tempo |
number |
<optional> |
120 | Tempo of metronome in bpm |
- Source:
Methods
start()
Starts the metronome.
- Source:
stop()
Stops the metronome
- Source:
tick(playbackRateopt)
Makes a ticking sound
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
playbackRate |
number |
<optional> |
1 | Factor to scale the playback rate by. |
- Source: