Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFT system module and new audiovisual demo #38

Open
wants to merge 57 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
05bf7bf
add napfft module and basic audiovisual demo
lshoek Nov 29, 2023
8201333
fft audio node fixes - demo improvement shows distinct frequency bins
lshoek Nov 30, 2023
38e8668
compile kissfft from source
lshoek Dec 4, 2023
e82bebd
add mid frequency measurement to audiovisual demo
lshoek Dec 4, 2023
84a6563
safekeeping fft on polar coordinates shader
lshoek Dec 6, 2023
25e4155
audiovisual demonstrate mesh normals compute shader update
lshoek Dec 12, 2023
0649d0a
separate mesh compute from rendering - add sky - make cool road thing
lshoek Dec 14, 2023
46c646c
Merge branch 'naprenderadvanced' into napfft
lshoek Dec 18, 2023
25c7bc6
three rotational dof - fix compute shader invocations - parameterization
lshoek Dec 19, 2023
789a6f5
Merge branch 'naprenderadvanced' into napfft
lshoek Dec 19, 2023
6072bce
Merge branch 'naprenderadvanced' into napfft
lshoek Dec 20, 2023
14088b6
update audiovisual demo to use renderadvanced light system
lshoek Dec 21, 2023
475f629
Merge branch 'naprenderadvanced' into napfft
lshoek Jan 4, 2024
55f28ae
Merge branch 'naprenderadvanced' into napfft
lshoek Jan 14, 2024
16dc899
prerender stars cube map and render reflection in road
lshoek Jan 14, 2024
e82b738
Merge branch 'naprenderadvanced' into napfft
lshoek Jan 15, 2024
ae01b11
remove gridfillpolicy
lshoek Jan 16, 2024
ea55ad8
fix plane artifacts - add dof and chroma vfx - rename fft to audioroad
lshoek Jan 16, 2024
bba0c40
Merge branch 'naprenderadvanced' of github.com:naivisoftware/nap into…
lshoek Jan 17, 2024
9622667
update to napportaudio
lshoek Jan 17, 2024
7bf301d
buffer size check on init - improve dof
lshoek Jan 17, 2024
2230a07
rerender cube map when reinitialized after reload
lshoek Jan 17, 2024
aa94bd0
audiovisual demo cleanup - renderdofcomponent improvement
lshoek Jan 17, 2024
1e0d37a
fix depth of field component - document demo
lshoek Jan 17, 2024
bfff21d
Merge branch '0.7' of github.com:naivisoftware/nap into napfft
lshoek Jan 17, 2024
cba12e6
audiovisual demo documentation
lshoek Jan 17, 2024
2303a98
Merge branch 'naprenderadvanced' of github.com:naivisoftware/nap into…
lshoek Mar 12, 2024
9145a9d
Merge branch 'naprenderadvanced' into napfft
lshoek Mar 19, 2024
3e4b85e
fix compilation after render advanced update
lshoek Mar 19, 2024
be204f4
restore reflection effect in audiovisual demo
lshoek Mar 19, 2024
e3b46dd
Merge branch 'naprenderadvanced' into napfft
lshoek Mar 21, 2024
105c180
Merge branch '0.7' into napfft
lshoek Apr 2, 2024
a7b2f83
cleanup fluxmeasurement comp interface and implementation
lshoek Apr 2, 2024
bce52e8
fftbuffer additional documentation
lshoek Apr 2, 2024
a664f14
Merge branch 'main' into napfft
cklosters Jul 16, 2024
241c43e
fix kissfft thirdparty packaging and deployment - only include and co…
cklosters Jul 16, 2024
6845456
improve kissfft source / target license definitions
cklosters Jul 16, 2024
d5c1bc4
fix compilation GCC
cklosters Jul 22, 2024
3c8d28d
Merge remote-tracking branch 'origin/napfft' into napfft
cklosters Jul 22, 2024
8a7a6fb
fix compilation GCC
cklosters Jul 22, 2024
973404a
remove not used (not applied) GPL license
cklosters Jul 22, 2024
13c9c9f
Merge branch 'main' into napfft
cklosters Aug 7, 2024
254009a
change default render index to 1
cklosters Aug 7, 2024
d466d7a
change defaults
cklosters Aug 7, 2024
60b5d19
First batch of changes based on review
cklosters Aug 13, 2024
e0d083c
Second batch of review changes
cklosters Aug 13, 2024
70c265f
don't perform dirty check and make dirty flag atomic
cklosters Aug 13, 2024
b14bd70
simplify & optimize threaded sample data transfer
cklosters Aug 13, 2024
3b2da12
Third batch of review changes
cklosters Aug 13, 2024
27dbd02
add MPL license
cklosters Aug 13, 2024
647f527
fix gcc
cklosters Aug 14, 2024
ee3df1d
Merge branch 'main' into napfft
cklosters Aug 14, 2024
59b9ca0
Merge branch 'main' into napfft
cklosters Aug 19, 2024
9673a60
Merge branch 'main' into napfft
cklosters Sep 3, 2024
a50d330
fix formatted buffer zero padding using zero fill instead of clear
lshoek Sep 16, 2024
23702a5
fix error message leak in portaudioservice
lshoek Sep 23, 2024
b1deff0
Merge branch 'main' into napfft
lshoek Sep 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
don't perform dirty check and make dirty flag atomic
  • Loading branch information
cklosters committed Aug 13, 2024
commit 70c265f83a175cf4c37a2bdba7dd732032adf652
8 changes: 2 additions & 6 deletions system_modules/napfft/src/fftbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,18 +200,14 @@ namespace nap

const std::vector<float>& FFTBuffer::getAmplitudeSpectrum()
{
if (mDirty)
transform();

transform();
return mAmplitude;
}


const std::vector<float>& FFTBuffer::getPhaseSpectrum()
{
if (mDirty)
transform();

transform();
return mPhase;
}

Expand Down
2 changes: 1 addition & 1 deletion system_modules/napfft/src/fftbuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ namespace nap
EOverlap mOverlap; //< The number of audio buffer overlaps for FFT analysis (hops)
uint mHopSize; //< The number of bins of a single hop

bool mDirty = false; //< Amplitudes dirty checking flag, prevents redundant FFT analyses
std::atomic<bool> mDirty = { false }; //< Amplitudes dirty checking flag, prevents redundant FFT analyses
};
}