Browse Source

fix lint and improve readme

new-features-2020
Mikael Finstad 6 years ago
parent
commit
c43ac3c1c0
  1. 2
      README.md
  2. 2
      parseConfig.js

2
README.md

@ -341,7 +341,7 @@ Loads a GLSL shader. See [gl.json5](examples/gl.json5) and [rainbow-colors.frag]
### Arbitrary audio tracks
`audioTracks` property can optionally contain a list of objects which specify audio tracks that can be started at arbitrary times in the final video. These tracks will be mixed (`mixVolume` specifying a relative number for how loud each track is compared to the other tracks). `clipsAudioVolume` specifies the volume of **all** the audio from `clips` relative to the volume of **all** the `audioTracks`.
`audioTracks` property can optionally contain a list of objects which specify audio tracks that can be started at arbitrary times in the final video. These tracks will be mixed together (`mixVolume` specifying a relative number for how loud each track is compared to the other tracks). Because audio from `clips` will be mixed separately from `audioTracks`, `clipsAudioVolume` specifies the volume of the **combined** audio from `clips` relative to the volume of **each of the audio tracks** from `audioTracks`.
| Parameter | Description | Default | |
|-|-|-|-|

2
parseConfig.js

@ -218,7 +218,7 @@ async function parseConfig({ defaults: defaultsIn = {}, clips, arbitraryAudio: a
// These audio tracks are detached from the clips (can run over multiple clips)
// This is useful so we can have audio start relative to clip start time
if (type === 'detached-audio') {
const { cutFrom, cutTo, mixVolume, start } = layer;
const { cutFrom, cutTo, mixVolume } = layer;
if (!detachedAudioByClip[clipIndex]) detachedAudioByClip[clipIndex] = [];
detachedAudioByClip[clipIndex].push({ path, cutFrom, cutTo, mixVolume, start });
return undefined;

Loading…
Cancel
Save