Post A0Wpt5k2Rsc1X6KY2S by eel@merveilles.town
(DIR) More posts by eel@merveilles.town
(DIR) Post #A0Wpt5255JRzKllRWS by milofultz@merveilles.town
2020-10-25T18:12:33Z
0 likes, 0 repeats
Anybody heard/messed around with bytebeat? I'm trying to pipe these small C programs out to make an audio file, but am totally lost in OSX.https://www.youtube.com/watch?v=tCRPUv8V22o
(DIR) Post #A0Wpt5Qtb3IeZjNGCW by neauoire@merveilles.town
2020-10-25T18:12:55Z
0 likes, 0 repeats
@milofultz cc @paul @eel
(DIR) Post #A0Wpt5k2Rsc1X6KY2S by eel@merveilles.town
2020-10-25T18:19:13Z
0 likes, 0 repeats
@neauoire @milofultz @paul hmm i've only done this in linux with aplay/paplay. if there's no mac equivalent, i would suggest writing the output into a file and opening it in audacity (import -> raw data). not an efficient workflow but it'll at least let you listen to what you made. another option could be to use an audio library and push the bytes to your sound card that way
(DIR) Post #A0Wpt63XHOCyVZS7Qe by eel@merveilles.town
2020-10-25T18:24:51Z
0 likes, 0 repeats
@neauoire @milofultz @paul i'd also like to mention that HTML5bytebeat exists, in case you haven't found that yethttps://greggman.com/downloads/examples/html5bytebeat/html5bytebeat.html
(DIR) Post #A0Wpt6ShloLDldEDey by milofultz@merveilles.town
2020-10-25T18:26:49Z
0 likes, 0 repeats
@eel @neauoire @paul Thanks for this! I've been playing with the online one and love it. The tinkerer in me wants to know how to do it locally. Seems like a fun offline way to generate cool music. Been messing with `sox` for a bit, which is the OSX equivalent, from what I've read. Mucking around with the settings is rough, but I'm sure I'll figure it out eventually. Thanks again!
(DIR) Post #A0Wpt6p2QmCostg3TE by paul@post.lurk.org
2020-10-25T18:34:50Z
0 likes, 0 repeats
@milofultzPiping into Sox would be a good way to go. You can have a C program write raw bytes, then use Sox to convert to wav.Typically these sound best with lo-fi settings. Mono, 8-10khz, and 8-bit integer bit depth.If I get to my computer, I may be able to whip something up that works on OSX (and Linux too).@eel @neauoire
(DIR) Post #A0Wq72yTX9810Mjn8K by milofultz@merveilles.town
2020-10-25T18:37:25Z
0 likes, 0 repeats
@paul @eel @neauoire Right on! I'm close for sure. Just running into errors where it "can't determine type of file" when feeding it a compiled C program. I've literally done 0 things in C before so this is probably user error, but we'll see. I'm having some luck just running "./filename > filename.raw" and then importing it into Audacity as raw, but like @eel said, it is just a bit cumbersome.Appreciate your help!
(DIR) Post #A0WqdL8HYcWgaWitMm by paul@post.lurk.org
2020-10-25T18:43:15Z
0 likes, 0 repeats
off the top of my head, something like:sox -t raw -e unsigned-integer -b 8 - r 8000 -c 1 foo.raw foo.wavmight do the trick? but that's all from memory. when working with raw (-t raw) files into sox, you need to give a bunch of information about the audio: the sample rate (-r) the bit depth (-b), number of channels (-c), and the encoding type (-e). I always forget the exact values to pass in for (-e) though.