Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Lovato <nathan@gdquest.com>2019-09-08 13:18:55 +0300
committerNathan Lovato <nathan@gdquest.com>2019-09-08 13:19:05 +0300
commit5f47151d1ebe879043025ea428e2715c05e4159d (patch)
tree5078973d12247cb4e64ce6324503aece5a17948a /power_sequencer/operators/audiosync/find_offset.py
parent6abd6330be9a1e26e19e267bd6517c85ecd9183f (diff)
Power Sequencer: update to avoid breaking python module tests
Also fix minor bugs in the addon
Diffstat (limited to 'power_sequencer/operators/audiosync/find_offset.py')
-rw-r--r--power_sequencer/operators/audiosync/find_offset.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/power_sequencer/operators/audiosync/find_offset.py b/power_sequencer/operators/audiosync/find_offset.py
index a25bffde..90153e1a 100644
--- a/power_sequencer/operators/audiosync/find_offset.py
+++ b/power_sequencer/operators/audiosync/find_offset.py
@@ -20,7 +20,6 @@ This code is an adaptation of 'audio-offset-finder' by BBC
import os
import warnings
import numpy as np
-from scipy.io import wavfile
from .mfcc import mfcc
from .convert_and_trim import convert_and_trim
@@ -36,6 +35,8 @@ def find_offset(file1, file2, freq=8000, trim=60 * 15, correl_nframes=1000):
Uses cross-correlation of standardised Mel-Frequency Cepstral
Coefficients
"""
+ from scipy.io import wavfile
+
file1 = os.path.abspath(file1)
file2 = os.path.abspath(file2)