Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
blechdom committed Nov 9, 2023
1 parent cd3b90e commit 767f6bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
11 changes: 0 additions & 11 deletions src/components/ContourAudioEngine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,6 @@ const AudioEngine: React.FC<AudioEngineProps> = ({
setFrequency(freq);
}, elapsedTime);
});

// start setIntervals
//let freq = frequency;
//const i = 0;
//const intervalId = setInterval(() => {

//setFrequency(freq);
//freq += (contour[i].angle - 180);
//i++;
//}, contour[i].duration * 500);
//setSequencerId(intervalId);
}
}, [playing, contour]);

Expand Down
10 changes: 6 additions & 4 deletions src/components/FractalPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ type FractalPlayerProps = {

export type AudioParamsType = {
volume: number;
threshold: number;
highest: number;
freqScaling: number;
duration: number;
threshold?: number;
highest?: number;
lowest?: number;
smoothing?: number;
freqScaling?: number;
duration?: number;
}

const FractalPlayer: React.FC<FractalPlayerProps> = ({
Expand Down

0 comments on commit 767f6bc

Please sign in to comment.