Updated smnp.music.tools (markdown)

Bartłomiej Przemysław Pluta
2020-03-26 20:33:26 +01:00
parent e408060382
commit cbfc146ceb

@@ -1,4 +1,16 @@
# Functions # Functions
## `metronome(bpm: int = 120, beats: int = 4, accent: note = @A#2, beat: note = @F#2)` ## `metronome(bpm: int = 120, beats: int = 4, accent: note = @A#2, beat: note = @F#2)`
Starts a metronome with given tempo, beats and notes acting as an accent and regular beat.
The notes are played by MIDI sequencer at 10th channel, so these notes are actually a drums sounds.
## `alert(melody: string = "beep")` ## `alert(melody: string = "beep")`
## `alert(cycles: int, melody: string = "beep")` Runs infinite alert of given melody.
Available melodies:
* `beep`
* `bell`
* `alarm1`
* `alarm2`
## `alert(cycles: int, melody: string = "beep")`
The same as `alert(melody: string = "beep")`, however, it runs with given number of times.