aji
Level 27 Mixist
 
bytebeat
6th/21

 
organic produce 
182nd Σ3.986

 
razor leaf 
91st Σ4.871

 
earthshaking 
135th Σ4.304

 
cool pastures 
188th Σ3.570

 
wood in pants 
109th Σ4.544

 
ByteBeat Airlines (feat. Harry Nyquist)
 
  151st/206   Σ21.275   Apr 29th 2015 8:33pm
 
 
destination: aliasing! this "track" is also kind of a tribute to kfaraday's "no interpolation pls.it"

the code is a C expression, and should be played back at 44.1 kHz
107
9
64
5
18
 


previous entry
antonio tunes - First I Brum


nextious entry
facebyter - Vinewave
 
56655
Level 26 Mixist
A-zu-ra
 
 
 
post #56655 :: 2015.04.29 9:34pm
how to pipe C expression on windows
 
 
56657
Level 30 Chipist
Savestate
 
 
 
post #56657 :: 2015.04.29 10:11pm
C source please? I'm testing something out right now and seeing the rest of the code would be beneficial...
 
 
56666
Level 27 Mixist
aji
 
 
 
post #56666 :: 2015.04.30 1:05am :: edit 2015.04.30 1:12am
  
  mirageofher and Jimmyoshi liēkd this
https://gist.github.com/aji/694ec9f5af4a8874629f

on linux you can compile with gcc -o bbal bbal.c -lm and listen with ./bbal | aplay -f U8 -r 44100.

if you're not on linux, or don't have aplay installed or something, just redirect the output of the above C source to a file and kill it after some amount of time, then import into Audacity using File > Import > Raw Data, as Unsigned 8 bit PCM, 1 channel, and sample rate 44100.

not sure how Windows programming works but if redirecting output to a file isn't possible, then you can modify the above source to fopen() a file and use fputc(EXPRESSION, file) instead.

EDIT: if "kill it after some amount of time" isn't your idea of a good time, you can replace the for loop with for(t=0; t<10*60*44100; t++), which should generate about as much output as was used for the render.

EDIT: alternatively, you can replace every instance of fmod(X, Y) with (X)%(Y) to get a version that works in the HTML5 editor. i used the HTML5 editor to write it and ported it to C to get a render.
 
 
56673
Level 20 Chipist
MS
 
 
 
post #56673 :: 2015.04.30 12:11pm :: edit 2015.04.30 12:12pm
  
  Zillah, gotoandplay and Jimmyoshi liēkd this
I listened to the whole thing, while eating potato chips with dipping sauce.

(true story)
 
 

LOGIN or REGISTER to add your own comments!