From bc3360f3dfa141dd458506c06544b9c572c7271d Mon Sep 17 00:00:00 2001 From: Olga U Date: Wed, 14 Feb 2018 05:14:08 +0700 Subject: [PATCH] New package: whysynth-20170701 Closes: #11623 [via git-merge-pr] --- srcpkgs/whysynth/patches/fix_agran.patch | 14 ++++++++++++++ srcpkgs/whysynth/template | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 srcpkgs/whysynth/patches/fix_agran.patch create mode 100644 srcpkgs/whysynth/template diff --git a/srcpkgs/whysynth/patches/fix_agran.patch b/srcpkgs/whysynth/patches/fix_agran.patch new file mode 100644 index 00000000000..016ec065c21 --- /dev/null +++ b/srcpkgs/whysynth/patches/fix_agran.patch @@ -0,0 +1,14 @@ +diff --git src/agran_oscillator.c src/agran_oscillator.c +index 6630215..3bdf555 100644 +--- src/agran_oscillator.c ++++ src/agran_oscillator.c +@@ -418,7 +418,8 @@ create_grain_envelopes(unsigned long sample_rate) + for (i = 0; i <= peak; i++) { + const float t = (float)i * scale; + const float ampl = expf(-t*t/2); +- env[e].data[Y_CONTROL_PERIOD + peak + i] = ampl; ++ env[e].data[Y_CONTROL_PERIOD + env[e].length - 1 ++ - peak + i] = ampl; + env[e].data[Y_CONTROL_PERIOD + peak - i] = ampl; + } + } diff --git a/srcpkgs/whysynth/template b/srcpkgs/whysynth/template new file mode 100644 index 00000000000..6113a262ba7 --- /dev/null +++ b/srcpkgs/whysynth/template @@ -0,0 +1,13 @@ +# Template file for 'whysynth'. +pkgname=whysynth +version=20170701 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config" +makedepends="gtk+-devel dssi-devel liblo-devel ladspa-sdk alsa-lib-devel fftw-devel" +maintainer="Olga Ustuzhanina " +short_desc="WhySynth is a versatile multi-mode DSSI softsynth" +homepage="http://smbolton.com/whysynth.html" +license="GPL-2" +distfiles="http://smbolton.com/whysynth/whysynth-${version}.tar.bz2" +checksum=a602d685a6bf48b01a82e1c077a50fe3d115805865ecfe49f531d8bd20b00b0b