Skip to content

Commit 96d021f

Browse files
committed
fix some typos
1 parent bc5d0ae commit 96d021f

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

etc/doc/articles/magpi-sonic-pi.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ making has taken is the Algorave (http://algorave.com) - events where
1919
artists code music for people to dance to. However, you don't need to be
2020
in a nightclub to Live Code - with Sonic Pi version 2.0 you can do it
2121
anywhere you can take your Raspberry Pi and a pair of headphones or some
22-
speakers. Once you reach the end of this articla, you'll be programming
22+
speakers. Once you reach the end of this article, you'll be programming
2323
your own beats and modifying them live. Where you go afterwards will
2424
only be constrained by your imagination.
2525

2626
## Getting Sonic Pi v2.0
2727

28-
Firstly, you'll need the latest version of Sonic Pi: version 2+.
28+
Firstly, you'll need the latest version of Sonic Pi: version 2+.
2929

3030
At the time of writing, this hasn't been released yet. However, by the
3131
time you read this, it should be available as part of the latest
3232
Raspbian OS. If you have an older image on your SD cards, running the
33-
following should get you up to date:
33+
following should get you up to date:
3434

3535
sudo apt-get update
3636
sudo apt-get upgrade
@@ -63,14 +63,14 @@ started. In the main code editor window of Sonic Pi, type the following
6363
and then hit the Run button:
6464

6565
sample :loop_amen
66-
66+
6767
Boom! Instant drums! Go on, press it a few times. Have fun. I'll still
6868
be here when you've finished...
6969

7070
But that's not all. We can mess around with the sample. Try this:
7171

7272
sample :loop_amen, rate: 0.5
73-
73+
7474
Oooh, half speed. Go on, try changing the rate. Try lower and higher
7575
numbers. What happens if you use a negative number?
7676

@@ -90,27 +90,27 @@ times. So we have a nice way of saying that with code:
9090
sample :loop_amen
9191
sleep 1.753
9292
end
93-
93+
9494
Of course, we can change the 10 to whatever number we want. Go on, try
9595
it! What if we want to loop forever? We simply say loop instead of
9696
10.times. Also, I'm sure you're asking what the magic 1.753 represents
9797
and how I got it. Well, it's the length of the sample in seconds and I
9898
got it because I asked Sonic Pi:
9999

100-
puts sample_duration :loop_amen
100+
puts sample_duration :loop_amen
101101

102102
And it told me 1.753310657596372 - I just shortended it to 1.753 to make
103103
it easier for you to type in. Now, the cool thing is, we can combine
104104
this code and add a variable for fun:
105105

106106
sample_to_loop = :loop_amen
107107
sample_rate = 0.5
108-
108+
109109
loop do
110110
sample sample_to_loop, rate: sample_rate
111111
sleep sample_duration sample_to_loop, rate: sample_rate
112112
end
113-
113+
114114
Now, you can change the :loop_amen to any of the other loop samples (use
115115
the auto-complete to discover them). Change the rate too. Have fun!
116116

@@ -123,29 +123,29 @@ support for studio effects such as reverb and echo and distortion. These
123123
are really easy to use. For example take the following sample trigger code:
124124

125125
sample :guit_e_fifths
126-
126+
127127
To add some reverb to this, we simply need to wrap it with a with_fx block:
128128

129129
with_fx :reverb do
130130
sample :guit_e_fifths
131131
end
132-
132+
133133
To add some distortion too, we can add more fx:
134134

135135
with_fx :reverb do
136136
with_fx :disortion do
137137
sample :guit_e_fifths
138138
end
139139
end
140-
140+
141141
Just like synths and samples, FX also support parameters to allow you to
142142
tinker with their settings:
143143

144144
with_fx :reverb, mix: 0.8 do
145145
with_fx :distortion, distort: 0.8 do
146146
sample :guit_e_fifths
147147
end
148-
end
148+
end
149149

150150
Of course, you can wrap FX blocks around any code. For example here's
151151
how you'd combine the :ixi_techno FX and our drum loop:
@@ -164,13 +164,13 @@ For a complete list of FX and their parameters click the help button.
164164
Now we've mastered the basics of triggering samples, sleeping and
165165
looping, let's do the same with some synths and then jump head first
166166
into live coding territory:
167-
167+
168168
loop do
169169
use_synth :tb303
170170
play 30, attack: 0, release: 0.2
171171
sleep 0.5
172172
end
173-
173+
174174
So, what do the numbers mean in this example? Well, you could stop it
175175
playing, change a number, then start it and see if you can hear the
176176
difference. However all that stopping and starting gets quite
@@ -182,11 +182,11 @@ changes. We need to put our code into a named function which we loop:
182182
play 42, attack: 0, release: 0.2
183183
sleep 0.5
184184
end
185-
186-
loop do
185+
186+
loop do
187187
play_my_synth
188188
end
189-
189+
190190
Now when you run this it will sound exactly the same as the simpler loop
191191
above. However, now we have given our code a name (in this case,
192192
play_my_synth) we can change the definition of our code whilst things
@@ -209,11 +209,11 @@ should look like this:
209209
play 45, attack: 0, release: 0.2, cutoff: 70
210210
sleep 0.5
211211
end
212-
212+
213213
# loop do
214214
# play_my_synth
215215
# end
216-
216+
217217
Then hit the run button again. You should hear the note go higher. Try
218218
changing the attack and release and cutoff parameters. Listen to the
219219
effect they have. Notice that attack and release change the length of
@@ -232,7 +232,7 @@ value from a list of numbers. Try changing 45 to chord(:a3,
232232
:minor).choose. Your play line should look like this:
233233

234234
play chord(:a2, :minor).choose, attack: 0, release: 0.3, cutoff: rrand(30, 100)
235-
235+
236236
Now you can start experimenting with different chords and range values
237237
for cutoff. You can do something similar with the pan value too:
238238

etc/doc/articles/youtube.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Creating youtube videos.
22

3-
Can't believe the awesome sounds coming out of your Raspberry Pi?
3+
Can't believe the awesome sounds coming out of your Raspberry Pi?
44

55
Want to create youtube videos of your awesome Sonic Pi jams with your friend?
66

@@ -19,7 +19,7 @@ the `Rec` button in the top icons within Sonic Pi. When you've finished
1919
jamming, hit it again and it will open up a save dialog. Choose a
2020
filename, say foo.wav and save.
2121

22-
You now have a wave file caled foo.wav.
22+
You now have a wave file called foo.wav.
2323

2424
## Recording the screen
2525

@@ -38,21 +38,21 @@ First, we need to know the IP address of your Pi. You can find this by
3838
typing:
3939

4040
ifconfig
41-
41+
4242
This will list all the info about your Pi's network interfaces. You'll
4343
see sections such as:
4444

4545
wlan0 Link encap: Ethernet HWaddrr FF:FF:FF:FF:FF:FF
4646
inet addr:192.168.10.10 Bcast: 192.168.10.255 Mask: 255.255.255.0
4747
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric: 1
48-
48+
4949
Here, the vital bit of information we're look for is on the second line:
5050
`inet addr: 192.168.10.10` which tells us which internet address that
5151
interface is available on. This is kind of like a telephone number. Not
5252
all interfaces will have an `inet addr` line as not all interfaces will
5353
be connected to something. The interfaces you're likely to find a
5454
connection on are `wlan0` (WIFI) or `eth0` (ethernet). Note down the
55-
long number with dots in - that's the IP adress:. In this case:
55+
long number with dots in - that's the IP address:. In this case:
5656
`192.168.10.10`.
5757

5858
Next let's get your Pi set up to send the screen to your external
@@ -61,7 +61,7 @@ machine. First, install `x11vnc`:
6161
sudo apt-get update
6262
sudo apt-get install x11vnc
6363

64-
Now, create a passord for it:
64+
Now, create a password for it:
6565

6666
x11vnc -storepasswd replace_with_password ~/.vncpasswd
6767

etc/doc/tutorial/en/01.2-Exploring-the-Interface.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ preferences. The *Info* button will open up the information window which
3939
contains information about Sonic Pi itself - the core team, history,
4040
contributors and community. The *Help* button toggles the help system
4141
(*F*) and the *Prefs* button toggles the preferences window which allows
42-
you to control some basic system parameters.
42+
you to control some basic system parameters.
4343

4444
## D. Code Editor
4545

@@ -57,7 +57,7 @@ Sonic Pi supports a number of tweakable preferences which can be
5757
accessed by toggling the *prefs* button in the Info and Help button
5858
set. This will toggle the visibility of the Prefs Panel which includes a
5959
number of options to be changed. Examples are forcing mono mode,
60-
inverting stero, Toggling log output verbosity and also a volume slider
60+
inverting stereo, Toggling log output verbosity and also a volume slider
6161
and audio selector on the Raspberry Pi.
6262

6363
## F. Log Viewer

0 commit comments

Comments
 (0)