[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut.changes
|
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut.spec
^
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -2,7 +2,7 @@
<service name="tar_git">
<param name="url">https://github.com/poetaster/harbour-audiocut.git</param>
<param name="branch">main</param>
- <param name="revision">1.4.2 </param>
+ <param name="revision">1.4.3</param>
<param name="token"/>
<param name="debian">N</param>
<param name="dumb">N</param>
|
[-]
[+]
|
Added |
_service:tar_git:harbour-audiocut-1.4.3.tar.bz2/.github/workflows/main.yml
^
|
@@ -0,0 +1,67 @@
+name: Build RPMs
+
+on:
+ push:
+ branches:
+ - main
+ tags:
+ - "1.*"
+
+env:
+ OS_VERSION: 4.4.0.68
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ name: Build App
+ strategy:
+ matrix:
+ arch: ['armv7hl']
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Prepare
+ run: docker pull coderus/sailfishos-platform-sdk:$OS_VERSION && mkdir output
+
+ - name: Build ${{ matrix.arch }}
+ run: docker run --rm --privileged -v $PWD:/share coderus/sailfishos-platform-sdk:$OS_VERSION /bin/bash -c "
+ mkdir -p build ;
+ cd build ;
+ cp -r /share/* . ;
+ mb2 -t SailfishOS-$OS_VERSION-${{ matrix.arch }} build ;
+ sudo cp -r RPMS/*.rpm /share/output"
+
+ - name: Upload RPM (${{ matrix.arch }})
+ uses: actions/upload-artifact@v2
+ with:
+ name: rpm-${{ matrix.arch }}
+ path: output
+ release:
+ name: Release
+ needs:
+ - build
+ runs-on: ubuntu-latest
+ steps:
+ - name: Download armv7hl
+ uses: actions/download-artifact@v2
+ with:
+ name: rpm-armv7hl
+ continue-on-error: true
+ - name: Extract Version Name
+ id: extract_name
+ uses: actions/github-script@v4
+ with:
+ result-encoding: string
+ script: |
+ return context.payload.ref.replace(/refs\/tags\//, '');
+ - name: Create a Release
+ uses: softprops/action-gh-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ name: ${{ steps.extract_name.outputs.result }}
+ draft: false
+ prerelease: false
+ body: This release was autogenerated.
+ files: '*.rpm'
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.4.3.tar.bz2/harbour-audiocut.pro
^
|
@@ -19,6 +19,7 @@
qml/pages/About.qml \
qml/pages/FirstPage.qml \
qml/pages/Flanger.qml \
+ qml/pages/Phaser.qml \
qml/pages/SavePage.qml \
rpm/harbour-audiocut.changes \
rpm/harbour-audiocut.changes.run \
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.4.3.tar.bz2/qml/pages/FirstPage.qml
^
|
@@ -7,7 +7,7 @@
Page {
id: page
allowedOrientations: Orientation.Portrait //All
- property bool debug : true
+ property bool debug : false
// file variables
property string inputPathPy : decodeURIComponent( "/" + idAudioPlayer.source.toString().replace(/^(file:\/{3})|(qrc:\/{2})|(http:\/{2})/,"") )
@@ -382,6 +382,7 @@
var filterOrder = 1 // ...4
call("audiox.highPassFilter", [ inputPathPy, outputPathPy, tempAudioType, filterFrequency, filterOrder ])
}
+
// https://ffmpeg.org/ffmpeg-filters.html#flanger
function flangerEffect() {
preparePathAndUndo()
@@ -395,6 +396,19 @@
call("audiox.flangerEffect", [ inputPathPy, outputPathPy, tempAudioType, speed, depth, phase, delay, regen ])
}
+ // https://ffmpeg.org/ffmpeg-filters.html#aphaser
+ function phaserEffect() {
+ preparePathAndUndo()
+ var in_gain = 0.5
+ var out_gain = 0.75
+ var speed = phaser.speed // 0.1 - 10 Hz
+ var delay = phaser.delay // 0-30
+ var decay = phaser.decay // 0 - 10
+ //shape // sinusoidal / triangular
+ // width // 0-100 71 default
+ call("audiox.phaserEffect", [ inputPathPy, outputPathPy, tempAudioType, in_gain, out_gain, delay, decay, speed ])
+ }
+
onError: {
// when an exception is raised, this error handler will be called
console.log('python error: ' + traceback);
@@ -1369,6 +1383,10 @@
text: qsTr("flanger")
font.pixelSize: Theme.fontSizeExtraSmall
}
+ MenuItem {
+ text: qsTr("phaser")
+ font.pixelSize: Theme.fontSizeExtraSmall
+ }
}
}
IconButton {
@@ -1396,6 +1414,9 @@
if (idComboBoxToolsEffects.currentIndex === 5) {
py.flangerEffect()
}
+ if (idComboBoxToolsEffects.currentIndex === 6) {
+ py.phaserEffect()
+ }
}
}
}
@@ -1507,6 +1528,16 @@
anchors.top: idSubmenuEffects.bottom
anchors.left: parent.left
anchors.right: parent.right
+ anchors.leftMargin: Theme.paddingLarge
+ anchors.rightMargin: Theme.paddingLarge
+ }
+ Phaser {
+ id: phaser
+ enabled: ( finishedLoading === true && showTools === true )
+ visible: ( buttonEffects.down && idComboBoxToolsEffects.currentIndex === 6 )
+ anchors.top: idSubmenuEffects.bottom
+ anchors.left: parent.left
+ anchors.right: parent.right
anchors.leftMargin: Theme.paddingLarge
anchors.rightMargin: Theme.paddingLarge
}
|
[-]
[+]
|
Added |
_service:tar_git:harbour-audiocut-1.4.3.tar.bz2/qml/pages/Phaser.qml
^
|
@@ -0,0 +1,85 @@
+import QtQuick 2.0
+import Sailfish.Silica 1.0
+import Sailfish.Pickers 1.0 // File-Loader
+import QtMultimedia 5.0 // Audio Support
+import io.thp.pyotherside 1.4
+
+Item {
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.leftMargin: Theme.paddingLarge
+ anchors.rightMargin: Theme.paddingLarge
+
+ property var speed: 0.5 // 0.1 - 2 Hz
+ property var decay: 0.5 // 0 - 1
+ property var delay: 3 // 0 - 5
+ Slider {
+ id: idPhaserSpeed
+ enabled: true // ( finishedLoading === true && showTools === true )
+ //visible: ( buttonEffects.down && idComboBoxToolsEffects.currentIndex === 1 )
+ width: parent.width
+ height: 1.1 * Theme.itemSizeMedium
+ value: 0.9
+ smooth: true
+ stepSize: .1
+ minimumValue: 0.1
+ maximumValue: 2.0
+ Label {
+ text: parent.value + qsTr(" phaser speed")
+ font.pixelSize: Theme.fontSizeExtraSmall
+ anchors {
+ bottom: parent.bottom
+ bottomMargin: Theme.paddingSmall
+ horizontalCenter: parent.horizontalCenter
+ }
+ }
+ onReleased: { speed = value }
+ }
+
+ Slider {
+ id: idPhaserDelay
+ enabled: true //( finishedLoading === true && showTools === true )
+ //visible: ( buttonEffects.down && idComboBoxToolsEffects.currentIndex === 1 )
+ width: parent.width
+ height: 1.1 * Theme.itemSizeMedium
+ anchors.top: idPhaserSpeed.bottom
+ value: 3
+ smooth: true
+ stepSize: 1
+ minimumValue: 0
+ maximumValue: 5
+ Label {
+ text: parent.value + qsTr(" phaser delay")
+ font.pixelSize: Theme.fontSizeExtraSmall
+ anchors {
+ bottom: parent.bottom
+ bottomMargin: Theme.paddingSmall
+ horizontalCenter: parent.horizontalCenter
+ }
+ }
+ onReleased: { delay = value }
+ }
+ Slider {
+ id: idPhaserDecay
+ enabled: true //( finishedLoading === true && showTools === true )
+ //visible: ( buttonEffects.down && idComboBoxToolsEffects.currentIndex === 1 )
+ width: parent.width
+ height: 1.1 * Theme.itemSizeMedium
+ anchors.top: idPhaserDelay.bottom
+ value: 0.5
+ smooth: true
+ stepSize: .1
+ minimumValue: 0
+ maximumValue: 1
+ Label {
+ text: parent.value + qsTr(" phaser decay")
+ font.pixelSize: Theme.fontSizeExtraSmall
+ anchors {
+ bottom: parent.bottom
+ bottomMargin: Theme.paddingSmall
+ horizontalCenter: parent.horizontalCenter
+ }
+ }
+ onReleased: { decay = value }
+ }
+}
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.4.3.tar.bz2/qml/py/audiox.py
^
|
@@ -307,11 +307,14 @@
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 )
-#call("audiox.flangerEffect", [ inputPathPy, outputPathPy, tempAudioType, speed, depth, phase, delay, regen ])
def flangerEffect ( inputPathPy, outputPathPy, tempAudioType, speed, depth, phase, delay, regen ):
subprocess.run([ "/usr/bin/ffmpeg", "-y", "-i", "/"+inputPathPy, "-af", "flanger=speed=" + str(speed) + ":depth=" + str(depth) + ":phase=" + str(phase) + ":delay=" + str(delay) + ":regen=" + str(regen), "/"+outputPathPy, "-hide_banner" ])
pyotherside.send('loadTempAudio', outputPathPy )
+def phaserEffect ( inputPathPy, outputPathPy, tempAudioType,in_gain, out_gain, delay, decay, speed ):
+ subprocess.run([ "/usr/bin/ffmpeg", "-y", "-i", "/"+inputPathPy, "-af", "aphaser=speed=" + str(speed) + ":delay=" + str(delay) + ":decay=" + str(decay) + ":in_gain=" + str(in_gain) + ":out_gain=" + str(out_gain), "/"+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" ])
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.4.3.tar.bz2/translations/harbour-audiocut-de.ts
^
|
@@ -198,6 +198,10 @@
<source>flanger</source>
<translation type="unfinished">flanger</translation>
</message>
+ <message>
+ <source>phaser</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>Flanger</name>
@@ -215,7 +219,22 @@
</message>
<message>
<source> flanger depth</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">flanger Tiefe</translation>
+ </message>
+</context>
+<context>
+ <name>Phaser</name>
+ <message>
+ <source> phaser speed</source>
+ <translation type="unfinished">Geschwindigkeit</translation>
+ </message>
+ <message>
+ <source> phaser delay</source>
+ <translation type="unfinished">Verzögerung</translation>
+ </message>
+ <message>
+ <source> phaser decay</source>
+ <translation type="unfinished">Dämpfung</translation>
</message>
</context>
<context>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.4.3.tar.bz2/translations/harbour-audiocut-sv.ts
^
|
@@ -198,6 +198,10 @@
<source>flanger</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <source>phaser</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>Flanger</name>
@@ -218,6 +222,21 @@
<translation type="unfinished"></translation>
</message>
</context>
+<context>
+ <name>Phaser</name>
+ <message>
+ <source> phaser speed</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source> phaser delay</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source> phaser decay</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
<context>
<name>SavePage</name>
<message>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.4.3.tar.bz2/translations/harbour-audiocut-zh_CN.ts
^
|
@@ -198,6 +198,10 @@
<source>flanger</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <source>phaser</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>Flanger</name>
@@ -218,6 +222,21 @@
<translation type="unfinished"></translation>
</message>
</context>
+<context>
+ <name>Phaser</name>
+ <message>
+ <source> phaser speed</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source> phaser delay</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source> phaser decay</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
<context>
<name>SavePage</name>
<message>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-audiocut-1.4.3.tar.bz2/translations/harbour-audiocut.ts
^
|
@@ -198,6 +198,10 @@
<source>flanger</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <source>phaser</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>Flanger</name>
@@ -218,6 +222,21 @@
<translation type="unfinished"></translation>
</message>
</context>
+<context>
+ <name>Phaser</name>
+ <message>
+ <source> phaser speed</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source> phaser delay</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source> phaser decay</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
<context>
<name>SavePage</name>
<message>
|