-ORIENTED
MagPi54
MagPi54
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Tutorial<br />
WALKTHROUGH<br />
PART 16<br />
SAM AARON<br />
Sam is the creator of Sonic Pi. By day he’s<br />
a research associate at the University of<br />
Cambridge Computer Laboratory; by night<br />
he writes code for people to dance to.<br />
sonic-pi.net<br />
ADDITIVE<br />
SYNTHESIS<br />
Did you know you can design sounds on Sonic Pi? Sam Aaron shows us how...<br />
&&<br />
You’ll<br />
Need<br />
> Raspberry Pi<br />
running Raspbian<br />
> Sonic Pi v2.9+<br />
> Speakers or<br />
headphones with<br />
a 3.5mm jack<br />
> Update Sonic Pi:<br />
sudo apt-get<br />
update && sudo<br />
apt-get install<br />
sonic-pi<br />
T<br />
hi i the firt o hort erie o rtie<br />
on how to ue oni i or ound deign.<br />
e e te ui tour o numer o<br />
dierent tehniue vie or you to rt your<br />
own uniue ound.<br />
he firt tehniue we oo t i ed dditive<br />
ynthei. hi my ound ompited ut i<br />
we epnd eh word ighty the mening pop<br />
right out. irty dditive men omintion<br />
o thing eondy ynthei men to omine<br />
thing in thi e ound. dditive ynthei<br />
thereore men nothing more ompited thn<br />
omining eiting ound to rete new one.<br />
hi ynthei tehniue dte very ong<br />
time or empe pipe orgn in the idde ge<br />
hd ot o ighty dierentounding pipe whih<br />
you oud ene or die with top. uing out the<br />
top or given pipe dded it to the mi ming the<br />
ound riher nd more ompe. ow et ee how<br />
we n pu out the top with oni i.<br />
Simple combinations<br />
et trt with the mot i ound there i the<br />
hume puretoned ine wve<br />
synth :sine, note: :d3<br />
ow et ee how thi ound omined with<br />
ure wve<br />
synth :sine, note: :d3<br />
synth :square, note: :d3<br />
otie how the two ound omine to orm new<br />
riher ound. oure we dont hve to top there<br />
we n dd mny ound we need. owever<br />
we need to e reu with how mny ound we<br />
dd together. ut ie when we mi pint to rete<br />
new oour dding too mny oour wi reut in<br />
mey rown. imiry dding too mny ound<br />
together wi reut in muddy ound.<br />
Blending<br />
et dd omething to me it ound itte righter.<br />
e oud ue tringe wve t n otve higher or tht<br />
high right ound yet ony py it t amp 0.4 o it dd<br />
omething etr to the ound rther thn ting it over<br />
synth :sine, note: :d3<br />
synth :square, note: :d3<br />
synth :tri, note: :d4, amp: 0.4<br />
ow you n try reting your own ound y<br />
omining two or more ynth t dierent otve nd<br />
mpitude. o note tht you n py round with<br />
ynth opt to modiy eh oure ound eore it i<br />
mied in or even more omintion o ound.<br />
Detuning<br />
o r when omining our dierent ynth weve<br />
ued either the me pith or withed otve. ow<br />
might it ound i we didnt ti to otve ut inted<br />
hoe ighty higher or ower note et try it<br />
detune = 0.7<br />
synth :square, note: :e3<br />
synth :square, note: :e3 + detune<br />
we detune our ure wve y . note we<br />
her omething tht perhp doent ound in tune<br />
or orret d note. owever we move<br />
oer to it wi ound e nd e out o tune the<br />
pith o two wve get oer nd more imir. ry it<br />
or youre hnge the detune: opt vue rom 0.7 to<br />
0.5 nd iten to the new ound. ry 0.2 0.1 0.05 0.<br />
h time you hnge the vue te iten nd ee i<br />
you n her how the ound i hnging. otie tht ow<br />
detune vue uh 0.1 produe rey nie thi<br />
ound with oth ighty dierent pithe interting<br />
with eh other in intereting oten urpriing wy.<br />
ome o the uitin ynth redy inude detune<br />
option tht do ety thi in one ynth. ry pying with<br />
the detune: opt o :dsaw :dpulse nd :dtri.<br />
60 February 2017<br />
raspberrypi.org/magpi