Skip to content

Commit 2158662

Browse files
committed
Merge pull request #238 from jweather/docs
doc typos
2 parents a7f8bbe + 8388ce1 commit 2158662

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

etc/doc/tutorial/02.1-Synth-Params.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ First, let's look at what parameters actually are.
1010

1111
## Parameters
1212

13-
Sonic Pi supports the notion of parameters for its synths Parameters are
13+
Sonic Pi supports the notion of parameters for its synths. Parameters are
1414
controls you pass to `play` which modify and control aspects
1515
of the sound you hear. Each synth has its own set of parameters for
1616
finely tuning its sound. However, there are common sets of parameters
@@ -45,7 +45,7 @@ play 50, beans: 0.5, cheese: 1
4545
```
4646

4747
Parameters that aren't recognised by the synth are just ignored (like
48-
`cheese` and `beans` which are clearly ridiculous param names!).
48+
`cheese` and `beans` which are clearly ridiculous param names!)
4949

5050
If you accidentally use the same parameter twice with different values,
5151
the last one wins. For example, `beans:` will have the value 2 rather

etc/doc/tutorial/03.2-Sample-Params.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
As we saw with synths we can easily control our sounds with
44
parameters. Samples support exactly the same parameterisation
5-
mechanism. Let's revisit at our friends `amp:` and `pan:`.
5+
mechanism. Let's revisit our friends `amp:` and `pan:`.
66

77
## Amping samples
88

etc/doc/tutorial/04.2-Iteration-and-Loops.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ powerful new tools. First up is iteration and loops.
1212

1313
## Repetition
1414

15-
Have you written some code you'd like to repeat a few times. For
15+
Have you written some code you'd like to repeat a few times? For
1616
example, you might have something like this:
1717

1818
```
@@ -57,7 +57,13 @@ wanted to make a change.
5757

5858
## Iteration
5959

60-
What repeating the code as as easy as saying *do this three times*. Well, it pretty much is. Remember our old friend the code block that we met in the previous section on FX? We can use it to mark the start and of the code we'd like to repeat three times. We then use the special code `3.times`. So, instead of writing do this three times, we write `3.times do` - that's not too hard. Just remember to write `end` and the end of the code you'd like to repeat:
60+
In fact, repeating the code is as easy as saying *do this three
61+
times*. Well, it pretty much is. Remember our old friend the code
62+
block? We can use it to mark the start and end of the code we'd like
63+
to repeat three times. We then use the special code `3.times`. So,
64+
instead of writing *do this three times*, we write `3.times do` -
65+
that's not too hard. Just remember to write `end` at the end of the
66+
code you'd like to repeat:
6167

6268
```
6369
3.times do
@@ -92,8 +98,8 @@ end
9298

9399
## Nesting Iterations
94100

95-
Just like nesting FX, we can put iterations inside other iterations to
96-
create interesting patterns. For example:
101+
We can put iterations inside other iterations to create interesting
102+
patterns. For example:
97103

98104
```
99105
4.times do

etc/doc/tutorial/04.5-Functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ end
1818

1919
Here, we've defined a new function called `foo`. We do this with our old
2020
friend the do/end block and the magic code `define` followed by the name
21-
we wish to give our function. We didn't have to call it `foo` we could
21+
we wish to give our function. We didn't have to call it `foo`, we could
2222
have called it anything we want such as `bar`, `baz` or ideally
2323
something meaningful to you like `main_section` or `lead_riff`.
2424

@@ -74,7 +74,7 @@ starting with the letters `def...` such as `defonce`.
7474

7575
For those of you that would like to see a more advanced feature of
7676
functions you might be interested in knowing that just like you can pass
77-
min and max values to `rrand` you can teach your functions to accept
77+
min and max values to `rrand`, you can teach your functions to accept
7878
arguments. Let's take a look:
7979

8080
```
@@ -91,7 +91,7 @@ This isn't very exciting but it illustrates the point. We've created our
9191
own version of `play` called `my_player` which is parameterised.
9292

9393
The parameters need to go after the `do` of the `define` do/end block,
94-
surrounded by vertical goalposts `|`. and separated by commas `,`. You
94+
surrounded by vertical goalposts `|` and separated by commas `,`. You
9595
may use any words you want for the parameter names.
9696

9797
The magic happens inside the `define` do/end block. You may use the

etc/doc/tutorial/04.6-Variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ sleep sample_duration(:loop_amen)
5353
```
5454

5555
Which, of course, is a very nice way of communicating the intent of the
56-
code. One reason is to manage repetition.
56+
code.
5757

5858
## Managing Repetition
5959

0 commit comments

Comments
 (0)