Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
MPAI-Private
MPAI-CAE
arp
Tape Audio Restoration
Commits
804e9ba0
Commit
804e9ba0
authored
Jan 20, 2023
by
Nadir Dalla Pozza
Browse files
Bugfix
parent
771fbd3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tapeAudioRestoration.py
View file @
804e9ba0
...
...
@@ -788,6 +788,8 @@ def main():
# Decision stage
a
,
b
,
fs
,
case
=
get_correction_filter
(
standard_w
,
speed_w
,
standard_r
,
speed_r
,
fs
)
print
(
a
)
print
(
b
)
# Casting FS to int because wavfile.write() is stupid
fs
=
round
(
fs
)
...
...
@@ -797,7 +799,7 @@ def main():
# Correction phase
if
len
(
a
)
!=
0
:
# Not all cases present a correction filter!
raf
=
correction
(
paf
,
a
,
b
,
fs
)
raf
=
correction
(
a
,
b
,
paf
,
fs
)
save_file
(
raf
,
fs
,
temp_path
,
'1'
)
else
:
# Just save Restored Audio File, but with modified fs
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment