Skip to content

Commit

Permalink
FFT descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
austinhutchen committed May 17, 2024
1 parent 96990c8 commit b6d2300
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Binary file added public/fast_imgs/FFT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/fast_imgs/FFT.webp
Binary file not shown.
12 changes: 10 additions & 2 deletions src/components/pages/gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { sin, complex, Complex } from 'mathjs';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
import { AudioVisualizer, TimeDomainVisualizer } from './sub/AudioVisualizer';
/* ADD GUI CONTROLS FOR USERS*/
const getImgPath = (imageName: string) => `${process.env.PUBLIC_URL}/fast_imgs/${imageName}`;

export const Visualizer: React.FC = () => {
const [stream, setStream] = useState<MediaStream | null>(null);

Expand All @@ -22,6 +24,8 @@ export const Visualizer: React.FC = () => {
}
};
}, [stream]);
const FFT = getImgPath('FFT.webp');

return (
<>
<NavBar />
Expand All @@ -36,9 +40,13 @@ export const Visualizer: React.FC = () => {


<h2 className="hlight"> MICROPHONE SPECTRUM DECOMPOSITION</h2>
<br />
<img className="projImg" src={FFT} alt="Fast Fourier Transform" />

<b>

<p style={{ fontSize: "0.9em" }} >
<a> <h4 className='hlight-mini'>Enable microphone input</h4> </a> to visualize this effect in real time with the spotify player interface below! This is an embedded web program that uses the fast fourier transform to decompose the audio spectrum of a microphone input. The program then displays the audio spectrum in an HTML canvas element.
<a> <h4 className='hlight-mini'>Enable microphone input</h4> </a> to visualize this effect in real time with the spotify player interface below! This is an embedded web program that uses the fast fourier transform algorithm above to decompose the audio spectrum of a microphone input. The program then displays the audio spectrum in an HTML canvas element.
</p>
</b>
<AudioVisualizer stream={stream} setStream={setStream} />
Expand All @@ -49,7 +57,7 @@ export const Visualizer: React.FC = () => {
</h1>

<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
<iframe src="https://open.spotify.com/embed/album/6dtDTbVBQ9QwsNaqEnjsOT?utm_source=generator" width="100%" height="152" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe> </div>
<iframe src="https://open.spotify.com/embed/album/6dtDTbVBQ9QwsNaqEnjsOT?utm_source=generator" width="100%" height="152" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe> </div>
<b>
<h2 className="hlight"> COMPLEX PLANE SINE </h2>

Expand Down
3 changes: 2 additions & 1 deletion src/components/pages/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const images: Images = {
malloc: getImgPath('malloc.webp'),
matrix: getImgPath('matrix.mp4'),
sine: getImgPath('sinMic.mp4'),
arduino: getImgPath('arduino.mp4')
arduino: getImgPath('arduino.mp4'),
FFT: getImgPath('FFT.webp'),
// Add other images here
};

Expand Down

0 comments on commit b6d2300

Please sign in to comment.