SoundSynth 1.1.1
A small compiled library with applications for C sound synthesis and playback functions. The library was compiled for Windows 64-bit and should work with 64- or 32-bit windows architectures.
|
Functions related to generating sounds either directly in time-domain or using frequency-domain heuristics. More...
Functions | |
void | generateSinWave (short *buffer, double frequency, double volume, int sampleRate, int numSamples) |
Generate a sinusoidal wave with a specified frequency and duration. | |
double | spline (double x) |
double | getFrequencyRelativeToFrequency (double frequency, int semitoneDistance) |
Functions related to generating sounds either directly in time-domain or using frequency-domain heuristics.
void generateSinWave | ( | short * | buffer, |
double | frequency, | ||
double | volume, | ||
int | sampleRate, | ||
int | numSamples ) |
Generate a sinusoidal wave with a specified frequency and duration.
This function generates a sinusoidal wave with the given frequency and duration. The waveform is stored in the provided buffer.
buffer | Pointer to the buffer where the waveform will be stored. |
frequency | The frequency of the sinusoidal wave in Hz. |
volume | The volume of the waveform (scaled between 0 and 1). |
sampleRate | The sample rate of the waveform (e.g., 44100 for CD quality). |
numSamples | The number of samples in the waveform (likely, the length of buffer). |
double getFrequencyRelativeToFrequency | ( | double | frequency, |
int | semitoneDistance ) |
double spline | ( | double | x | ) |