Skip to content

Instantly share code, notes, and snippets.

@iomonad
Last active April 22, 2017 21:18
Show Gist options
  • Save iomonad/170519f9d772047b2240d9fce2d64cd7 to your computer and use it in GitHub Desktop.
Save iomonad/170519f9d772047b2240d9fce2d64cd7 to your computer and use it in GitHub Desktop.
Viznut bytebeat composition
/* 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