Difference between revisions of "Drum and drum beats"

From cod3v
(Created page with "== Introduction == Some drum beats made with Sonic Pi are shown here. == Theory == 4/4 beat or 3/4 beat. == Examples == First, try the different drums on the Pi: <code>...")
 
Line 10: Line 10:


First, try the different drums on the Pi:
First, try the different drums on the Pi:
<code>
<syntaxhighlight>
live_loop :rummut do
live_loop :rummut do
   sample :drum_tom_hi_hard
   sample :drum_tom_hi_hard
   sleep 1
   sleep 1
end
end
</code>
</syntaxhighlight>
<code>
<syntaxhighlight>
r = ring(:drum_splash_soft,:drum_splash_hard)
r = ring(:drum_splash_soft,:drum_splash_hard)
live_loop :rummut do
live_loop :rummut do
Line 22: Line 22:
   sleep 1
   sleep 1
end
end
</code>
</syntaxhighlight>
<code>
<syntaxhighlight>
r = ring(:drum_snare_soft,:drum_snare_hard)
r = ring(:drum_snare_soft,:drum_snare_hard)
live_loop :rummut do
live_loop :rummut do
Line 29: Line 29:
   sleep 1
   sleep 1
end
end
</code>
</syntaxhighlight>
<code>
<syntaxhighlight>
r = ring(:drum_cymbal_soft,:drum_cymbal_hard,:drum_cymbal_open,:drum_cymbal_closed,:drum_cymbal_pedal)
r = ring(:drum_cymbal_soft,:drum_cymbal_hard,:drum_cymbal_open,:drum_cymbal_closed,:drum_cymbal_pedal)
live_loop :rummut do
live_loop :rummut do
Line 36: Line 36:
   sleep 1
   sleep 1
end
end
</code>
</syntaxhighlight>
<code>
<syntaxhighlight>
r = ring(:drum_bass_soft,:drum_bass_hard)
r = ring(:drum_bass_soft,:drum_bass_hard)
live_loop :rummut do
live_loop :rummut do
Line 43: Line 43:
   sleep 1
   sleep 1
end
end
<code>
<syntaxhighlight>

Revision as of 07:51, 28 September 2020

Introduction

Some drum beats made with Sonic Pi are shown here.

Theory

4/4 beat or 3/4 beat.

Examples

First, try the different drums on the Pi:

live_loop :rummut do
  sample :drum_tom_hi_hard
  sleep 1
end
r = ring(:drum_splash_soft,:drum_splash_hard)
live_loop :rummut do
  sample r.tick
  sleep 1
end
r = ring(:drum_snare_soft,:drum_snare_hard)
live_loop :rummut do
  sample r.tick
  sleep 1
end
r = ring(:drum_cymbal_soft,:drum_cymbal_hard,:drum_cymbal_open,:drum_cymbal_closed,:drum_cymbal_pedal)
live_loop :rummut do
  sample r.tick
  sleep 1
end

<syntaxhighlight> r = ring(:drum_bass_soft,:drum_bass_hard) live_loop :rummut do

 sample r.tick
 sleep 1

end

<syntaxhighlight>