Sonic Pi Workshop open education days 2021 - online
Aufzeichnung der Zoom-Videokonferenz
Nachgefragt wurde das Codebeispiel zum Stepsequencer mit Arrays. Im Video ab 51:40
use_bpm 120 BD = [1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0] HH = [1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,1] SN = [0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0] live_loop :drums do 16.times do |i| puts i sample :bd_haus if BD[i]==1 sample :drum_cymbal_closed, amp: 0.9 if HH[i]==1 sample :sn_dolf, amp: 0.6 if SN[i]==1 sleep 0.25 end end
Vielen Dank an [email protected] für dieses Cheatsheet von Sonic Pi:
0 Comments
|
AutorChristian Dietz Archiv
Mai 2021
TAGS |