tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit 7c448425fd671a0e695d8db48ecb4f54a67cc47a
parent 99a830789efedc7bea43b0a96657743574c0b735
Author: rbckman <rob@tarina.org>
Date:   Mon, 30 Oct 2023 21:07:00 +0000

dub bug

Diffstat:
Mtarina.py | 16++--------------
1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/tarina.py b/tarina.py @@ -3562,7 +3562,7 @@ def clipsettings(filmfolder, filmname, scene, shot, plughw): newdub[3] -= 0.1 elif pressed == 'record' and selected == 1: dubmix.append(newdub) - dubrecord = filefolder + 'dub' + str(len(dubmix)).zfill(3) + '.wav' + dubrecord = filefolder + 'dub' + str(len(dubfiles)+1).zfill(3) + '.wav' break #DUB SETTINGS @@ -3579,7 +3579,7 @@ def clipsettings(filmfolder, filmname, scene, shot, plughw): if len(dubfiles) == 0: selected = 0 elif pressed == 'record' and selected == 4: - dubrecord = filefolder + 'dub' + str(dubselected + 1).zfill(3) + '.wav' + dubrecord = filefolder + 'dub' + str(len(dubfiles) + 1).zfill(3) + '.wav' break elif pressed == 'retake' and selected == 4: dubrecord = filefolder + 'dub' + str(dubselected + 1).zfill(3) + '.wav' @@ -3623,18 +3623,6 @@ def clipsettings(filmfolder, filmname, scene, shot, plughw): renderfilename = renderfilm(filmfolder, filmname, 0, scene, False) playdub(filmname,renderfilename, 'scene') time.sleep(0.05) - #Save dubmix - if dubmix != dubmix_old: - if os.path.isdir(filefolder) == False: - os.makedirs(filefolder) - c = 1 - for i in dubmix: - with open(filefolder + ".settings" + str(c).zfill(3), "w") as f: - for p in i: - f.write(str(round(p,1)) + '\n') - print(str(round(p,1))) - c += 1 - dubmix_old = dubmix #Save dubmix before returning if dubmix != dubmix_old: if os.path.isdir(filefolder) == False: