-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cu
32 lines (23 loc) · 844 Bytes
/
main.cu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <iostream>
#include "fft_visualization.h"
int main() {
int N;
int signalType;
float scaleFactor;
float minFrequency, maxFrequency;
bool displayPhase;
std::cout << "Enter the size of FFT: ";
std::cin >> N;
std::cout << "Choose signal type (1: Sine wave, 2: Square wave, 3: Sawtooth wave, 4: Triangle wave): ";
std::cin >> signalType;
std::cout << "Enter magnitude scaling factor: ";
std::cin >> scaleFactor;
std::cout << "Enter minimum frequency to display: ";
std::cin >> minFrequency;
std::cout << "Enter maximum frequency to display: ";
std::cin >> maxFrequency;
std::cout << "Display phase spectrum? (1: Yes, 0: No): ";
std::cin >> displayPhase;
performFFTAnalysis(N, signalType, scaleFactor, minFrequency, maxFrequency, displayPhase);
return 0;
}