Transcript
In this exercise you will create a
looping drumbeat. You should use at least two different samples in your code. What
makes a nice drumbeat? A great way to start is by keeping it simple. You could
for example start with a bass drum on the 1st and 3rd beat and a snare drum on
the 2nd and 4th. Remember, the samples are grouped by their type so you will find
the drum sounds under the :drum category. Navigate the drop-down menu with up and
down arrow keys and choose a sample you like by pressing enter. How do you know
the length of your drum beat is okay? Well, if it sounds good,
then it's probably quite alright! If you're in doubt, just keep it simple. It's
best to use numbers that easily add up to whole numbers. Change the tempo of
your beat with the use_bpm command and also, make your beat loop by putting it
inside a live_loop. You have to write live_loop and you also need to give the
loop a unique name. Names in Sonic Pi always start with a colon and you know
when you have it right when the text turns pink. A live_loop is a code block
just like the times do structure you already know. You always start a block with a do
and you close the code block with an end command. The beat you will loop goes
inside the block good luck and have fun!