import { AbsoluteFill, Audio, Sequence, getStaticFiles, staticFile } from 'remotion'; import './design/fonts'; import { Background } from './design/Background'; import { Intro } from './scenes/Intro'; import { Outro } from './scenes/Outro'; import { Menus } from './scenes/Menus'; import { Cells } from './scenes/Cells'; import { RightClick } from './scenes/RightClick'; import { More } from './scenes/More'; import { SECTION } from './theme'; // Set false to render without the score. const MUSIC = true; const MUSIC_FILE = 'audio/music.wav'; const hasMusic = () => getStaticFiles().some((file) => file.name.split('\\').join('/') === MUSIC_FILE); // Whooshes at each morph, impact on the outro downbeat. const MORPHS = [300, 840, 1440, 2340, 3090]; const at = (section: { from: number; duration: number }) => ({ from: section.from, durationInFrames: section.duration }); export const Video: React.FC = () => ( {MORPHS.map((frame) => ( ))} {MUSIC && hasMusic() ? );