add the paduk thing currently broken.

This commit is contained in:
cnlohr 2019-04-29 03:30:43 -04:00
parent 15951d3128
commit fa186adaef
6 changed files with 344 additions and 4 deletions

View file

@ -17,7 +17,7 @@ LDLIBS:=-lpthread -lasound -lm -lpulse-simple -lpulse -ludev -lrt
CFLAGS:=-g -O0 -flto -Wall -ffast-math -I../embeddedcommon -I. -DICACHE_FLASH_ATTR=
EXTRALIBS:=-lusb-1.0
colorchord : os_generic.o main.o dft.o decompose.o filter.o color.o notefinder.o util.o outdrivers.o $(RAWDRAW) $(SOUND) $(OUTS) parameters.o chash.o hook.o ../embeddedcommon/DFT32.o configs.o ../embeddedcommon/DFT8Turbo.o
colorchord : os_generic.o main.o dft.o decompose.o filter.o color.o notefinder.o util.o outdrivers.o $(RAWDRAW) $(SOUND) $(OUTS) parameters.o chash.o hook.o ../embeddedcommon/DFT32.o configs.o ../embeddedcommon/DFT8Turbo.o ../embeddedcommon/DFT8Padauk.o
gcc -o $@ $^ $(CFLAGS) $(LDLIBS) $(EXTRALIBS) $(RAWDRAWLIBS)

View file

@ -12,6 +12,7 @@
#include "decompose.h"
#include "DFT32.h"
#include "DFT8Turbo.h"
#include "DFT8Padauk.h"
struct NoteFinder * CreateNoteFinder( int spsRec )
{
@ -203,6 +204,9 @@ void RunNoteFinder( struct NoteFinder * nf, const float * audio_stream, int head
case 5:
DoDFT8BitTurbo( dftbins, nf->frequencies, freqs, audio_stream, head, buffersize, nf->dft_q, nf->dft_speedup );
break;
case 6:
DoDFT8BitPadauk( dftbins, nf->frequencies, freqs, audio_stream, head, buffersize, nf->dft_q, nf->dft_speedup );
break;
default:
fprintf( stderr, "Error: No DFT Seleced\n" );
}

View file

@ -30,7 +30,7 @@ base_hz = 82.41
samplerate = 10000
freqbins = 12
octaves = 4
do_progressive_dft=6
slope = 0