tweak clip selection
This commit is contained in:
parent
559dd46285
commit
1f14fc216d
3 changed files with 10 additions and 5 deletions
|
@ -19,7 +19,7 @@ SYNC_JUMP_AHEAD = 1
|
||||||
PORT = 9067
|
PORT = 9067
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
FONT = 'Menlo'
|
FONT = 'Menlo'
|
||||||
FONT_SIZE = 32
|
FONT_SIZE = 30
|
||||||
FONT_BORDER = 4
|
FONT_BORDER = 4
|
||||||
SUB_MARGIN = 2 * 36 + 6
|
SUB_MARGIN = 2 * 36 + 6
|
||||||
|
|
||||||
|
|
|
@ -139,7 +139,7 @@ def compose(clips, target=150, base=1024, voice_over=None):
|
||||||
elif 'Free' in voc['src']:
|
elif 'Free' in voc['src']:
|
||||||
a, b = '5', '-4'
|
a, b = '5', '-4'
|
||||||
elif 'Ashley' in voc['src']:
|
elif 'Ashley' in voc['src']:
|
||||||
a, b = '5', '-4'
|
a, b = '4.5', '-4.5'
|
||||||
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()
|
||||||
|
@ -173,8 +173,12 @@ def compose(clips, target=150, base=1024, voice_over=None):
|
||||||
clip = random_choice(seq, clips, True)
|
clip = random_choice(seq, clips, True)
|
||||||
if not clips:
|
if not clips:
|
||||||
print("not enough clips, need to reset")
|
print("not enough clips, need to reset")
|
||||||
|
clips = [c for c in all_clips if c != clip and c not in used]
|
||||||
|
if not clips:
|
||||||
|
print("not enough clips, also consider used")
|
||||||
clips = [c for c in all_clips if c != clip]
|
clips = [c for c in all_clips if c != clip]
|
||||||
if not clips:
|
if not clips:
|
||||||
|
print("not enough clips, also consider last clip")
|
||||||
clips = all_clips.copy()
|
clips = all_clips.copy()
|
||||||
if length + clip['duration'] > target and length >= vo_min:
|
if length + clip['duration'] > target and length >= vo_min:
|
||||||
break
|
break
|
||||||
|
@ -216,7 +220,8 @@ def compose(clips, target=150, base=1024, voice_over=None):
|
||||||
# 50% some transparancy, 25%, 50%, 75% levels of transparancy
|
# 50% some transparancy, 25%, 50%, 75% levels of transparancy
|
||||||
transparancy = 1
|
transparancy = 1
|
||||||
# coin flip which site is visible (50% chance)
|
# coin flip which site is visible (50% chance)
|
||||||
if chance(seq, 0.5):
|
#if chance(seq, 0.5):
|
||||||
|
if chance(seq, 0.8):
|
||||||
transparency_front = transparency
|
transparency_front = transparency
|
||||||
transparency_back = 0
|
transparency_back = 0
|
||||||
else:
|
else:
|
||||||
|
|
2
sax.py
2
sax.py
|
@ -39,7 +39,7 @@ noise = {
|
||||||
"src": nois_wav,
|
"src": nois_wav,
|
||||||
"duration": 3600.0,
|
"duration": 3600.0,
|
||||||
"filter": {
|
"filter": {
|
||||||
"volume": "2"
|
"volume": "3"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue