Skip to content

zenxha/pitch-parallel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pitch-parallel

This project uses a the Cooley-Tukey Fourier Transform (FFT) with multithreading to identify musical notes in real-time and prerecorded audio samples by analyzing frequency components.

Environment Setup Instructions for Mac

  1. Install Dependencies:

    brew install fftw libomp
  2. Set Environment Variables:

    export LDFLAGS="-L/opt/homebrew/opt/libomp/lib"
    export CPPFLAGS="-I/opt/homebrew/opt/libomp/include"
    export LDFLAGS="-L/opt/homebrew/Cellar/fftw/3.3.10_1/lib"
    export CPPFLAGS="-I/opt/homebrew/Cellar/fftw/3.3.10_1/include"
  3. Compile the Project:

    g++ -I/usr/local/include -L/usr/local/lib -lfftw3 -o main <main.cpp path>
  4. Build with CMake:

    cmake -S . -B build \
         -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang \
         -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++
    cmake --build build

About

Parallelized Fast Fourier Transform (FFT) for real-time pitch identification

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors