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
#define CACHE_SIZE 256 | |
#define NO_CACHES 1024 | |
char a[CHAR_MAX*CACHE_SIZE]; | |
char b[1]; | |
char f[NO_CACHES*CACHE_SIZE]; | |
intptr_t target_offset; | |
int limit = 1; | |
//replace cache with f |
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
#too short to license, so public domain | |
from wavegen import wavegen | |
from sys import stdout | |
import random | |
def tochar(sample): | |
return chr(int(sample * 127 + 127)) | |
a = wavegen(440) | |
ash = wavegen(466.16) | |
b = wavegen(493.88) |