fixed typos in tutorial
This commit is contained in:
parent
ce122871eb
commit
edb9b3b2c3
1 changed files with 4 additions and 4 deletions
|
@ -73,8 +73,8 @@ Or you can create a note object then play it.
|
||||||
|
|
||||||
### 2. Creating an instrument
|
### 2. Creating an instrument
|
||||||
A custom instrument is composed of three parts:
|
A custom instrument is composed of three parts:
|
||||||
- it's name. This is a string and is used when playing notes
|
- it name. This is a string and is used when playing notes
|
||||||
- Instrjument arguments and default values. You could change these paramers when a note is playing, in real time.
|
- Instrument arguments and default values. You could change these parameters when a note is playing, in real time.
|
||||||
- the signal. This can use SuperCollider ugens. (TODO link)
|
- the signal. This can use SuperCollider ugens. (TODO link)
|
||||||
|
|
||||||
- some are:
|
- some are:
|
||||||
|
@ -87,7 +87,7 @@ Or you can create a note object then play it.
|
||||||
```scheme
|
```scheme
|
||||||
|
|
||||||
;; create a custom instrument
|
;; create a custom instrument
|
||||||
;; can use oscilators and envelopes
|
;; can use oscillators and envelopes
|
||||||
;; "freq" is the frequency parameter
|
;; "freq" is the frequency parameter
|
||||||
(make-instrument "my-inst" ([freq 500] [mod 20])
|
(make-instrument "my-inst" ([freq 500] [mod 20])
|
||||||
(mul (sin-osc ar mod 0)
|
(mul (sin-osc ar mod 0)
|
||||||
|
@ -212,7 +212,7 @@ Didn't implement envelopes yet.
|
||||||
|
|
||||||
These can be used in defining instruments.
|
These can be used in defining instruments.
|
||||||
|
|
||||||
- sin, saw, tringle, square
|
- sin, saw, triangle, square
|
||||||
|
|
||||||
-
|
-
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue