[HN Gopher] Linuxwave: Generate Music from the Entropy of Linux
___________________________________________________________________
Linuxwave: Generate Music from the Entropy of Linux
Author : todsacerdoti
Score : 29 points
Date : 2023-04-17 10:01 UTC (13 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| prohobo wrote:
| I took on a similar project recently, and realized the data
| sounds boring (as anyone would), but I wonder if instead of
| generating notes from data you could map to a scale of motifs.
|
| If you write the motifs to seamlessly transition then you can get
| musical data without any manual steps (besides the definition of
| the motifs).
| dimatura wrote:
| Certainly an improvement on the ol' "cat /dev/urandom >
| /dev/audio"!
| bertman wrote:
| Or (from the readme): cat /dev/urandom |
| hexdump -v -e '/1 "%u\n"' | awk '{
| split("0,2,4,5,7,9,11,12",a,","); for (i = 0; i < 1; i+=
| 0.0001) printf("%08X\n",
| 100*sin(1382*exp((a[$1%8+1]/12)*log(2))*i)) }' | xxd -r -p |
| aplay -c 2 -f S32_LE -r 16000
___________________________________________________________________
(page generated 2023-04-17 23:02 UTC)