Upload 11 files
Browse files- .gitattributes +5 -0
- remotion/public/audio/01.mp3 +3 -0
- remotion/public/audio/02.mp3 +3 -0
- remotion/public/audio/03.mp3 +3 -0
- remotion/public/audio/04.mp3 +3 -0
- remotion/public/audio/stomp.mp3 +3 -0
- remotion/src/Composition.tsx +2 -2
.gitattributes
CHANGED
|
@@ -33,3 +33,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
remotion/public/audio/01.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
remotion/public/audio/02.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
remotion/public/audio/03.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
remotion/public/audio/04.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
remotion/public/audio/stomp.mp3 filter=lfs diff=lfs merge=lfs -text
|
remotion/public/audio/01.mp3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c86c7741540d013212eb7e340e06170d28331fb042c2e3fac721a2a818431dd
|
| 3 |
+
size 1436462
|
remotion/public/audio/02.mp3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6bad18a3d8fbee801b75d9bb50b72c8c4806e5992f6ddc02484298f078cbc4af
|
| 3 |
+
size 795722
|
remotion/public/audio/03.mp3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d25c2de7ef50c93d8597f966a01d658269424c4571eebba26227f437f8b97773
|
| 3 |
+
size 484760
|
remotion/public/audio/04.mp3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0b9de961b7342cf5f82e5a17746c4d7d83d39edc34cbaaef24a3acb5ec0c0fd
|
| 3 |
+
size 2353665
|
remotion/public/audio/stomp.mp3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cadd2666c5571e12fafdb21697b26aef6f196a5a9c28e708129870167679991d
|
| 3 |
+
size 8945229
|
remotion/src/Composition.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
import React from 'react';
|
| 4 |
import { AbsoluteFill, Sequence, useCurrentFrame, useVideoConfig, interpolate, spring, random, Audio, OffthreadVideo } from 'remotion';
|
| 5 |
-
import { VideoScript, ScriptScene } from '
|
| 6 |
|
| 7 |
// --- VISUAL UTILS ---
|
| 8 |
|
|
@@ -397,7 +397,7 @@ export const RemotionComposition: React.FC<{ script: VideoScript }> = ({ script
|
|
| 397 |
'ROCK': "/audio/04.mp3"
|
| 398 |
};
|
| 399 |
|
| 400 |
-
const audioSrc = tracks[script.config?.musicTrack] || tracks['8BIT'];
|
| 401 |
|
| 402 |
return (
|
| 403 |
<AbsoluteFill style={{ backgroundColor: '#000' }}>
|
|
|
|
| 2 |
|
| 3 |
import React from 'react';
|
| 4 |
import { AbsoluteFill, Sequence, useCurrentFrame, useVideoConfig, interpolate, spring, random, Audio, OffthreadVideo } from 'remotion';
|
| 5 |
+
import { VideoScript, ScriptScene } from './types';
|
| 6 |
|
| 7 |
// --- VISUAL UTILS ---
|
| 8 |
|
|
|
|
| 397 |
'ROCK': "/audio/04.mp3"
|
| 398 |
};
|
| 399 |
|
| 400 |
+
const audioSrc = tracks[script.config?.musicTrack] || (script.config?.musicTrack?.endsWith('.mp3') ? `/audio/${script.config.musicTrack}` : tracks['8BIT']);
|
| 401 |
|
| 402 |
return (
|
| 403 |
<AbsoluteFill style={{ backgroundColor: '#000' }}>
|