Last active
April 22, 2017 21:18
-
-
Save iomonad/170519f9d772047b2240d9fce2d64cd7 to your computer and use it in GitHub Desktop.
Viznut bytebeat composition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* cpp -o vinuz vinuz.cc ; ./vinuz | aplay */ | |
#include <iostream> | |
#include <cmath> | |
#include <stdint.h> | |
int main() { | |
const double R=8000; | |
const double C=261.625565; | |
const double F=R/256; | |
const double V=127; | |
for ( int t=0; ; t++ ) { | |
uint8_t temp = (t*5&t>>7)|(t*3&t>>10); // viznut bytebeat composition | |
std::cout<<temp; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment