Dumonu / best-sound

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

best-sound

Randomly generates a musical bytestream that can be played by piping to aplay or other similar utility.
Requires a player capable of playing a bytestream from stdin.

Instuctions (Linux):
Compile:
gcc sound.c -o sound
Run:
./sound | aplay (Runs using random values for len, str1, str2, and bs1)
./sound [len] [str1] [str2] [bs1] | aplay (Runs using specific values for len, str1, str2, and bs1)

len: The length of str1 and str2; must be <= the length of the smaller of the two strings.
str1 and str2: Used to determine what notes are played
Note: You must escape all special characters in str1 and str2 to allow it to properly read them.
Alternatively, you may enclose str1 and str2 in single quotes.
bs1: value of a specific bitshift. As of right now, uncertain how it effects the music.

Contributors:
Oskari Pirhonen
Jacob Cherry

Based on Bitshift Variations in C Minor, by Robert Skmiles.
To play the Bitshift Variations, run ./sound 8 BY}6YB6% Qj}6jQ6% 4 | aplay

About


Languages

Language:C 100.0%