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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#ifndef M_PI | |
#define M_PI 3.14159265358979323846 | |
#endif | |
void GenerateTone(double frequency, double sampleRate, double amplitude, double fadeTime, double *buffer, int length) | |
{ | |
double phase; |
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
import struct | |
import sys | |
from chunk import Chunk | |
FOURCC_DLS = b'DLS ' | |
FOURCC_DLID = b'dlid' | |
FOURCC_COLH = b'colh' | |
FOURCC_WVPL = b'wvpl' |