[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.4.1.tar.bz2/qml/pages/FirstPage.qml
^
|
@@ -318,13 +318,15 @@
var factorSpeed = idSpeedSlider.value
if (idComboBoxSpeedPitch.currentIndex === 0) {
var keepPitch = "false"
+ call("audiox.speedChange", [ inputPathPy, outputPathPy, tempAudioType, fromPosMillisecond, toPosMillisecond, factorSpeed, keepPitch ])
}
else {
keepPitch = "true"
+ call("audiox.slowDown", [ inputPathPy, outputPathPy, tempAudioType, factorSpeed ])
}
//console.log(keepPitch)
//console.log(factorSpeed)
- call("audiox.speedChange", [ inputPathPy, outputPathPy, tempAudioType, fromPosMillisecond, toPosMillisecond, factorSpeed, keepPitch ])
+ //call("audiox.speedChange", [ inputPathPy, outputPathPy, tempAudioType, fromPosMillisecond, toPosMillisecond, factorSpeed, keepPitch ])
}
function reverseAudio() {
preparePathAndUndo()
@@ -1259,7 +1261,7 @@
value: 1
smooth: true
stepSize: 0.05
- minimumValue: (idComboBoxSpeedPitch.currentIndex === 0) ? 0.5 : 1 // pydub can not keep pitch when slower than usual
+ minimumValue: 0.5 //(idComboBoxSpeedPitch.currentIndex === 0) ? 0.5 : 1 // pydub can not keep pitch when slower than usual
maximumValue: 2
Label {
text: qsTr("x ") + parent.value
|
@@ -307,7 +307,10 @@
subprocess.run([ "/usr/bin/ffmpeg", "-y", "-i", "/"+inputPathPy, "-af", "aecho=" + str(in_gain) + ":" + str(out_gain) + ":" + str(delays) + ":" + str(decays), "/"+outputPathPy, "-hide_banner" ])
pyotherside.send('loadTempAudio', outputPathPy )
-
+# Replace the pydub version which is flake
+def slowDown ( inputPathPy, outputPathPy, tempAudioType, tempo ):
+ subprocess.run([ "/usr/bin/ffmpeg", "-y", "-i", "/"+inputPathPy, "-af", "atempo=" + str(tempo), "/"+outputPathPy, "-hide_banner" ])
+ pyotherside.send('loadTempAudio', outputPathPy )
|