Now is the time for melody. Instead of writing a big bunch of play and sleep commands over and over again, we’re going to use a shortcut: play_pattern_timed.
Instead of writing:
you can write:
The first list [:c2, :d2, :e2, :d2] is a group of notes and the second list [0.5, 0.25, 0.75, 0.5] is a group of breaks in between the notes.
Create a new live_loop called :melody create a lead theme for your song. If it feel easier, use the play_pattern_timed function to write the melody. You can use the piano also if it helps. Here’s an example:
Now the whole song could be something like this:
Yay, that’s a great start! Now go and explore with different melodies, synths and attack: and release: values.