This commit is contained in:
SatyrDiamond 2023-11-12 12:45:20 -05:00
parent 8ad6672ed6
commit 9a98dd08b0

View file

@ -130,9 +130,8 @@ def convert_placementdata(rpp_trackdata, trackplacements, cliptype, track_uuid):
if 'audiomod' in trackplacement_data:
audiomoddata = trackplacement_data['audiomod']
#print(audiomoddata)
if 'pitch' in audiomoddata: pitch = audiomoddata['pitch']
stretch_algorithm = audiomoddata['stretch_algorithm']
pitch = audiomoddata['pitch'] if 'pitch' in audiomoddata else 0
stretch_algorithm = audiomoddata['stretch_algorithm'] if 'stretch_algorithm' in audiomoddata else 'stretch'
if stretch_algorithm != 'resample': preserve_pitch = 1