adjust volume levels
- CF (-1.5 db) - Melody (Ban's vocals) (+ 1 db) - Soon Kim_Short Reverb ( Saxophone track ) (- 0.5 db) - Soon Kim “noise” (+0.5 db)
This commit is contained in:
parent
5f0bc63684
commit
9493eefaa3
2 changed files with 24 additions and 6 deletions
|
@ -141,7 +141,7 @@ def compose(clips, target=150, base=1024, voice_over=None):
|
||||||
elif 'Ashley' in voc['src']:
|
elif 'Ashley' in voc['src']:
|
||||||
a, b = '3.75', '-5.25'
|
a, b = '3.75', '-5.25'
|
||||||
elif 'Melody' in voc['src']:
|
elif 'Melody' in voc['src']:
|
||||||
a, b = '3.25', '-5.75'
|
a, b = '4.25', '-4.75'
|
||||||
voc['filter'] = {'volume': a}
|
voc['filter'] = {'volume': a}
|
||||||
scene['audio-center']['A1'].append(voc)
|
scene['audio-center']['A1'].append(voc)
|
||||||
vo_low = vo.copy()
|
vo_low = vo.copy()
|
||||||
|
@ -284,15 +284,16 @@ def compose(clips, target=150, base=1024, voice_over=None):
|
||||||
'filter': {'volume': '+0.2'},
|
'filter': {'volume': '+0.2'},
|
||||||
})
|
})
|
||||||
# TBD: Foley
|
# TBD: Foley
|
||||||
|
cf_volume = '-5.5'
|
||||||
scene['audio-front']['A2'].append({
|
scene['audio-front']['A2'].append({
|
||||||
'duration': clip['duration'],
|
'duration': clip['duration'],
|
||||||
'src': foley,
|
'src': foley,
|
||||||
'filter': {'volume': '-4'},
|
'filter': {'volume': cf_volume},
|
||||||
})
|
})
|
||||||
scene['audio-rear']['A2'].append({
|
scene['audio-rear']['A2'].append({
|
||||||
'duration': clip['duration'],
|
'duration': clip['duration'],
|
||||||
'src': foley,
|
'src': foley,
|
||||||
'filter': {'volume': '-4'},
|
'filter': {'volume': cf_volume},
|
||||||
})
|
})
|
||||||
used.append(clip)
|
used.append(clip)
|
||||||
print("scene duration %0.3f (target: %0.3f, vo_min: %0.3f)" % (length, target, vo_min))
|
print("scene duration %0.3f (target: %0.3f, vo_min: %0.3f)" % (length, target, vo_min))
|
||||||
|
|
23
sax.py
23
sax.py
|
@ -8,7 +8,6 @@ def generate_sax_mix(root):
|
||||||
|
|
||||||
|
|
||||||
root = os.path.abspath(".")
|
root = os.path.abspath(".")
|
||||||
project = KDEnliveProject(root)
|
|
||||||
|
|
||||||
long_wav = "Soon_Kim_Long_Reverb_Only2.wav"
|
long_wav = "Soon_Kim_Long_Reverb_Only2.wav"
|
||||||
nois_wav = "Soon_Kim_Noise.wav"
|
nois_wav = "Soon_Kim_Noise.wav"
|
||||||
|
@ -28,6 +27,14 @@ i.files.all()[0].data.path
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
reverb = {
|
||||||
|
"src": reverb_wav,
|
||||||
|
"duration": 3600.0,
|
||||||
|
"filter": {
|
||||||
|
"volume": "0.5"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
long = {
|
long = {
|
||||||
"src": long_wav,
|
"src": long_wav,
|
||||||
"duration": 3600.0,
|
"duration": 3600.0,
|
||||||
|
@ -39,20 +46,30 @@ noise = {
|
||||||
"src": nois_wav,
|
"src": nois_wav,
|
||||||
"duration": 3600.0,
|
"duration": 3600.0,
|
||||||
"filter": {
|
"filter": {
|
||||||
"volume": "4.25"
|
"volume": "4.75"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
project = KDEnliveProject(root)
|
||||||
project.append_clip('A1', long)
|
project.append_clip('A1', long)
|
||||||
project.append_clip('A2', noise)
|
project.append_clip('A2', noise)
|
||||||
path = os.path.join(root, "sax-mix.kdenlive")
|
path = os.path.join(root, "sax-mix.kdenlive")
|
||||||
with open(path, 'w') as fd:
|
with open(path, 'w') as fd:
|
||||||
fd.write(project.to_xml())
|
fd.write(project.to_xml())
|
||||||
|
|
||||||
|
project = KDEnliveProject(root)
|
||||||
|
project.append_clip('A1', reverb)
|
||||||
|
path = os.path.join(root, "sax-reverb-mix.kdenlive")
|
||||||
|
with open(path, 'w') as fd:
|
||||||
|
fd.write(project.to_xml())
|
||||||
|
|
||||||
cmds = []
|
cmds = []
|
||||||
cmds.append([
|
cmds.append([
|
||||||
"melt", "sax-mix.kdenlive", '-quiet', '-consumer', 'avformat:sax-mix.wav'
|
"melt", "sax-mix.kdenlive", '-quiet', '-consumer', 'avformat:sax-mix.wav'
|
||||||
])
|
])
|
||||||
|
cmds.append([
|
||||||
|
"melt", "sax-reverb-mix.kdenlive", '-quiet', '-consumer', 'avformat:sax-reverb-mix.wav'
|
||||||
|
])
|
||||||
cmds.append([
|
cmds.append([
|
||||||
"ffmpeg", "-y",
|
"ffmpeg", "-y",
|
||||||
"-nostats", "-loglevel", "error",
|
"-nostats", "-loglevel", "error",
|
||||||
|
@ -60,7 +77,7 @@ cmds.append([
|
||||||
])
|
])
|
||||||
|
|
||||||
for src, out1, out2 in (
|
for src, out1, out2 in (
|
||||||
(reverb_wav, "fl.wav", "fr.wav"),
|
('sax-reverb-mix.wav', "fl.wav", "fr.wav"),
|
||||||
("sax-mix.wav", "bl.wav", "br.wav"),
|
("sax-mix.wav", "bl.wav", "br.wav"),
|
||||||
):
|
):
|
||||||
cmds.append([
|
cmds.append([
|
||||||
|
|
Loading…
Reference in a new issue