Skip to content

Commit b2b13cf

Browse files
committed
Update README.md
1 parent 6e08b59 commit b2b13cf

File tree

1 file changed

+111
-2
lines changed

1 file changed

+111
-2
lines changed

README.md

Lines changed: 111 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,111 @@
1-
# python-sonic
2-
Programming Music with Python, Sonic Pi and Supercollider
1+
# python-sonic - Programming Music with Python, Sonic Pi or Supercollider
2+
3+
Python-Sonic is a simple Python interface for Sonic Pi, which is a real great music software created by Sam Aaron (http://sonic-pi.net).
4+
5+
At the moment Python-Sonic is in __pre-pre-alpha__ status. It is planned, that it will work with Supercollider, too.
6+
7+
If you like it, use it. If you have some suggestions, tell me (gkvoelkl@nelson-games.de).
8+
9+
But no debugging now or help on how to install it on your system.
10+
11+
12+
## Installation
13+
14+
* First you need Python 3 (https://www.python.org, ) - Python 3.4 should work, because it's the development environment
15+
* Then Sonic Pi (https://sonic-pi.net) - That makes the sound
16+
* Modul python-osc (https://pypi.python.org/pypi/python-osc) - Connection between Python and Sonic Pi Server
17+
* And this modul python-sonic - simply copy the source, no setup available at the moment
18+
19+
## Limitations
20+
21+
* You have to start _Sonic Pi_ first before you can use it with python-sonic
22+
* Only the notes from C5 to C6
23+
24+
## Examples
25+
26+
Many of the examples are inspired from the help menu in *Sonic Pi*.
27+
28+
29+
```python
30+
from psonic import *
31+
```
32+
33+
The first sound
34+
35+
36+
```python
37+
play(70) #play MIDI note 70
38+
```
39+
40+
Some more notes
41+
42+
43+
```python
44+
play(72)
45+
sleep(1)
46+
play(75)
47+
sleep(1)
48+
play(79)
49+
```
50+
51+
In more tratitional music notation
52+
53+
54+
```python
55+
play(C5)
56+
sleep(0.5)
57+
play(D5)
58+
sleep(0.5)
59+
play(G5)
60+
```
61+
62+
Play sharp notes like *F#* or dimished ones like *Eb*
63+
64+
65+
```python
66+
play(Fs5)
67+
sleep(0.5)
68+
play(Eb5)
69+
```
70+
71+
Play louder (parameter amp) or from a different direction (parameter pan)
72+
73+
74+
```python
75+
play(72,amp=2)
76+
sleep(0.5)
77+
play(74,pan=-1) #left
78+
```
79+
80+
Different synthesizer sounds
81+
82+
83+
```python
84+
use_synth(SAW)
85+
play(38)
86+
sleep(0.25)
87+
play(50)
88+
sleep(0.5)
89+
use_synth(PROPHET)
90+
play(57)
91+
sleep(0.25)
92+
```
93+
94+
## More Informations
95+
96+
### Sonic Pi
97+
98+
..
99+
100+
### OSC
101+
102+
..
103+
104+
### MIDI
105+
106+
..
107+
108+
109+
```python
110+
111+
```

0 commit comments

Comments
 (0)