sfxr-qt: add export test
This commit is contained in:
parent
0cf8a8155b
commit
de3c63390d
@ -8,6 +8,7 @@
|
||||
, qtquickcontrols2
|
||||
, SDL
|
||||
, python3
|
||||
, callPackage
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
@ -41,6 +42,10 @@ mkDerivation rec {
|
||||
SDL
|
||||
];
|
||||
|
||||
passthru.tests = {
|
||||
export-square-wave = callPackage ./test-export-square-wave {};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/agateau/sfxr-qt";
|
||||
description = "A sound effect generator, QtQuick port of sfxr";
|
||||
|
@ -0,0 +1,6 @@
|
||||
{ runCommand, sfxr-qt }:
|
||||
|
||||
runCommand "sfxr-qt-test-export-square-wave" ''
|
||||
mkdir $out
|
||||
${sfxr-qt}/bin/sfxr-qt --export --output $out/output.wav ${./input.sfxj}
|
||||
''
|
@ -0,0 +1,29 @@
|
||||
{
|
||||
"properties": {
|
||||
"attackTime": 0,
|
||||
"baseFrequency": 1,
|
||||
"changeAmount": 0,
|
||||
"changeSpeed": 0,
|
||||
"decayTime": 1,
|
||||
"deltaSlide": 0,
|
||||
"dutySweep": 0,
|
||||
"hpFilterCutoff": 0,
|
||||
"hpFilterCutoffSweep": 0,
|
||||
"lpFilterCutoff": 1,
|
||||
"lpFilterCutoffSweep": 0,
|
||||
"lpFilterResonance": 0,
|
||||
"minFrequency": 0,
|
||||
"phaserOffset": 0,
|
||||
"phaserSweep": 0,
|
||||
"repeatSpeed": 0,
|
||||
"slide": 0,
|
||||
"squareDuty": 0,
|
||||
"sustainPunch": 0,
|
||||
"sustainTime": 1,
|
||||
"vibratoDepth": 0,
|
||||
"vibratoSpeed": 0,
|
||||
"volume": 1,
|
||||
"waveForm": "Square"
|
||||
},
|
||||
"version": 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user