音乐
🌐 Music
要为你的视频添加背景音乐,可以使用 Remotion Recorder 提供的三条音轨之一,或添加你自己的音乐。
🌐 To underlay your video with music, use one of the three soundtracks provided by the Remotion Recorder or add your own.
添加音乐
🌐 Add music
在右侧边栏的默认属性编辑器中,你可以为每个场景选择 music 的值:
🌐 In the default props editor in the right sidebar, you may choose a value for music for each scene:
"none"- 没有音乐"previous"- 与上一场景相同的设置"soft"、"euphoric"、"epic"——提供的三首原声之一
提供的原声带
🌐 Provided Soundtracks
Remotion 录制器中包含三条音乐曲目,你可以在视频中使用:
🌐 Included in the Remotion Recorder are three music tracks that you can use in your videos:
- 《自然》(2:34,ID
"soft") - 《我在梦中醒来》(2:23,编号
"euphoric") - 《节奏幻想》(3:29,ID
"epic")
所有曲目均由 Utope Music 专为 Recorder 制作,并已获得授权,可用于你由 Recorder 制作的视频。
🌐 All tracks were produced by Utope Music exclusively for the Recorder and are cleared for your videos produced by the Recorder.
添加你的背景音乐
🌐 Add your background music
要添加背景音乐,你首先必须将歌曲添加到 public/sounds 文件夹中。
然后在 config/sounds.ts 中注册该曲目。
🌐 To add background music, you first have to add songs to the public/sounds folder.
Then register the track in config/sounds.ts.
export const music = z.enum([
"previous",
"none",
"somesong",
// You can give your song any label. This is the name you will see in the editor.
"<your-song-label>",
]);
export const getAudioSource = (track: Music) => {
if (track === "somesong") {
return staticFile("sounds/soundtrack1.mp3");
}
// Add your track here. The label has to match the one you added above.
if (track === "<your-song-label>") {
return staticFile("sounds/<actual-asset-name>");
}
};你现在可以通过在右侧边栏中选择曲目,将新添加的音乐应用到场景中。
🌐 You can now apply the newly added music to a scene by selecting the track in the right sidebar.
更换音乐
🌐 Changing music
音乐会自动延续到下一场景。
如果你想更换音乐,为场景选择不同的曲目,它将会交叉淡入。
🌐 Music will automatically carry over to the next scene.
If you want to change the music, select a different track for a scene and it will crossfade.
停止音乐
🌐 Stopping music
如果你想停止音乐,请选择 none 作为曲目。
🌐 If you want to stop the music, select none as track.