Cleanup in viewer

This commit is contained in:
Hayk Martiros 2022-11-27 13:19:01 -08:00
parent d8e8d7752a
commit 5e381e59d1
1 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ export default function SpectrogramViewer({
audioLength,
use_height_map = true,
}: SpectrogramViewerProps) {
const camera = useThree((state) => state.camera);
const { camera } = useThree();
const playheadRef = useRef(null);
@ -67,7 +67,8 @@ export default function SpectrogramViewer({
}
})}
{/* TODO make into playhead component */}
{/* Playhead as as transparent red box. */}
{/* TODO(hayk): Synchronize this better with the audio. */}
<group ref={playheadRef}>
<Box
args={[5.5, 2.0, 0.15]}