# =================
# Notes
# =================
# Create a melody using the synth inside a group to call it easily
#
# Note Syntax:
# `<synth_name> -> note(<note_name>)`
#
# Chord Syntax:
# `<synth_name> -> chord(<chord_name | [note_name1, note_name2, ...]>)`
const firstSynth = synth saw
# Creates a group of notes to play a melody
group myFirstLead:
firstSynth -> note(C4)
-> duration(1/4)
-> velocity(100)
-> pan(-0.3)
firstSynth -> note(E4)
-> duration(1/4)
-> velocity(100)
-> pan(0.3)
# Creates a group of chords to play harmony
group myFirstChords:
firstSynth -> chord(Cmaj7)
-> duration(1/2)
-> velocity(80)
-> pan(0.0)
firstSynth -> chord([C4, B2, D3, E4])
-> duration(1/2)
-> velocity(80)
-> pan(0.0)
call myFirstLead
call myFirstChords