From ff7dcf6c54a428b7db03aaa9ec9383e6f99a3da2 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 20 Nov 2023 09:03:41 +0000 Subject: [PATCH] more tweaking --- render.py | 33 +++++++++++++++++++-------------- sax.py | 2 +- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/render.py b/render.py index b22c63a..955d01d 100644 --- a/render.py +++ b/render.py @@ -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({ diff --git a/sax.py b/sax.py index 2885f59..538e175 100644 --- a/sax.py +++ b/sax.py @@ -39,7 +39,7 @@ noise = { "src": nois_wav, "duration": 3600.0, "filter": { - "volume": "3" + "volume": "4.25" }, }