Skip to content

Commit 0426c54

Browse files
committed
Create README.md
1 parent 528671e commit 0426c54

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Robotonic
2+
pipeline music generator
3+
4+
Installation
5+
====
6+
Clone this and just run `make`.
7+
8+
How it works
9+
====
10+
Robotonic takes 4 bytes from stdin on each iteration and generates sound pattern using them as parameters: frequency, wave type (triangle, square, sin or saw), LFO wave type (no LFO, normal fade-in, parabolic fade-in or parabolic fade-out), interval and offset from the beginning of the pattern. Each new pattern overlaps the previous which makes illusion of continuity.
11+
12+
Usage
13+
====
14+
`cat $file|./robotonic|$player`
15+
16+
, where `$file` is, f. e., `/dev/urandom` or anything else you want to playback, `$player` is any program able to read raw sound data from the stdin and direct them to speakers or maybe even to sound file (f. e., `aplay`).
17+
18+
Configuration
19+
====
20+
Change constants near the top of source file and then recompile the program
21+
22+
* BUF_SIZE — number of samples generated for each pattern
23+
* SAMP_LENGTH — length of samples (shorter is glitchier because this does not affect the frequency)
24+
* RATE — output sampling rate
25+
* NOISE_LEVEL — from 0 to 255, sets the volume of the noise mixed up with the generated sound

0 commit comments

Comments
 (0)