more tweaking

This commit is contained in:
j 2023-11-20 09:03:41 +00:00
parent 2316c63156
commit ff7dcf6c54
2 changed files with 20 additions and 15 deletions

View file

@ -137,7 +137,7 @@ def compose(clips, target=150, base=1024, voice_over=None):
elif 'Read' in voc['src']:
a, b = '6.25', '-2.75'
elif 'Free' in voc['src']:
a, b = '5', '-4'
a, b = '5.2', '-3.8'
elif 'Ashley' in voc['src']:
a, b = '4.5', '-4.5'
voc['filter'] = {'volume': a}
@ -190,19 +190,23 @@ def compose(clips, target=150, base=1024, voice_over=None):
transparancy = 1
else:
fg = clip['foreground']
if 'foreground2' in clip:
if 'foreground3' in clip:
n = seq()
if n <= 3: # 0,1,2,3
clip['foreground']
elif n <= 6: # 4,5,6
clip['foreground2']
else: # 7,8,9
clip['foreground3']
elif chance(seq, 0.5):
fg = clip['foreground2']
transparancy = seq() / 9
transparancy = 1
if 'animation' in clip and chance(seq, 0.15):
fg = clip['animation']
transparancy = 1
else:
if 'foreground2' in clip:
if 'foreground3' in clip:
n = seq()
if n <= 3: # 0,1,2,3
clip['foreground']yy
elif n <= 6: # 4,5,6
clip['foreground2']
else: # 7,8,9
clip['foreground3']
elif chance(seq, 0.5):
fg = clip['foreground2']
transparancy = seq() / 9
transparancy = 1
if 'foley' in clip:
foley = clip['foley']
else:
@ -275,6 +279,7 @@ def compose(clips, target=150, base=1024, voice_over=None):
scene['audio-back']['A1'].append({
'duration': clip['duration'],
'src': clip['original'],
'filter': {'volume': '+0.2'},
})
# TBD: Foley
scene['audio-front']['A2'].append({

2
sax.py
View file

@ -39,7 +39,7 @@ noise = {
"src": nois_wav,
"duration": 3600.0,
"filter": {
"volume": "3"
"volume": "4.25"
},
}