Waitrud Weber’s blog

things and reminders for memories

sounds: windows-make: we need array graph.

I don't think. in sin fucntion, the pow. we use, is sutable to control waves but thank them very much.
Actually, we can control just change param of nSamplesPerSec only.

1. If you use pow in sin, the some curve is going like ...
2. If you take out of pow from sin, the some curve is going like ...

sin (theta) <- speed anglurar.

sounds:
11025(samplepersec) / 75

if you devide 1 (second) by 75,

sine 0 - 2 (PI)

#define HALF_NOTE 1.059463094359 // HALF_NOTE ^ 12 = 2
#define PI 3.14159265358979

double period = 2.0 * PI / (double) m_waveFormat.nSamplesPerSec;
double x = sin((relativePlaceInData - placeInData) * 55 * pow(HALF_NOTE, noteInfo[i]) * period);

x 75 -> 88
75 is fixed.