Skip to content

Instantly share code, notes, and snippets.

@miccolis
miccolis / freq.c
Created January 5, 2013 23:32 — forked from anonymous/freq.c
#include <stdio.h>
#include <stdint.h>
int main() {
// B7, G7 & G#7 intentionally differ from the hex values in the data sheet
static int octave[12] = {0x892B, 0x9153, 0x99F7, 0xA31F, 0xACD2, 0xB719, 0xC1FC,
0xCD85, 0xD9BD, 0xE6B0, 0xF467, 0x102F0};
for (int i = 0; i < 95; i++) {