Skip to content

Commit

Permalink
fix lint and improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Oct 29, 2020
1 parent 27359d4 commit c43ac3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | |
|-|-|-|-|
Expand Down
2 changes: 1 addition & 1 deletion parseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c43ac3c

Please sign in to comment.