1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 16:43:33 +02:00

Extensive changes to improve NoteTrack display and (some) editing, NoteTrack playback via MIDI, and Midi-to-Audio alignment.

This commit is contained in:
rbdannenberg
2010-09-18 21:02:36 +00:00
parent f6327602e8
commit a1f0e5ed5b
96 changed files with 5679 additions and 3566 deletions

View File

@@ -111,7 +111,7 @@ void FFT3(int NumSamples,
int i, j, k, n;
int BlockSize, BlockEnd;
float angle_numerator = 2.0 * M_PI;
float angle_numerator = float(2.0 * M_PI);
float tr, ti; /* temp real, temp imaginary */
if (!IsPowerOfTwo(NumSamples)) {
@@ -224,7 +224,7 @@ void RealFFT3(int NumSamples, float *RealIn, float *RealOut, float *ImagOut)
int Half = NumSamples / 2;
int i;
float theta = M_PI / Half;
float theta = float(M_PI / Half);
float *tmpReal = (float *) alloca(sizeof(float) * Half);
float *tmpImag = (float *) alloca(sizeof(float) * Half);
@@ -289,7 +289,7 @@ void PowerSpectrum3(int NumSamples, float *In, float *Out)
int Half = NumSamples / 2;
int i;
float theta = M_PI / Half;
float theta = float(M_PI / Half);
float *tmpReal = (float *) alloca(sizeof(float) * Half);;
float *tmpImag = (float *) alloca(sizeof(float) * Half);