diff --git a/srcpkgs/whysynth/patches/fix_agran.patch b/srcpkgs/whysynth/patches/fix_agran.patch index 016ec065c21..9457c725320 100644 --- a/srcpkgs/whysynth/patches/fix_agran.patch +++ b/srcpkgs/whysynth/patches/fix_agran.patch @@ -1,14 +1,13 @@ diff --git src/agran_oscillator.c src/agran_oscillator.c -index 6630215..3bdf555 100644 +index 6630215..3168469 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; +@@ -421,6 +421,9 @@ create_grain_envelopes(unsigned long sample_rate) + env[e].data[Y_CONTROL_PERIOD + peak + i] = ampl; env[e].data[Y_CONTROL_PERIOD + peak - i] = ampl; } ++ if (env[e].length % 2 == 0) { /* if length is even, zero last frame of buffer */ ++ env[e].data[Y_CONTROL_PERIOD + env[e].length - 1] = 0.0f; ++ } } + break; diff --git a/srcpkgs/whysynth/template b/srcpkgs/whysynth/template index 6113a262ba7..06bff029c29 100644 --- a/srcpkgs/whysynth/template +++ b/srcpkgs/whysynth/template @@ -1,13 +1,13 @@ -# Template file for 'whysynth'. +# Template file for 'whysynth' pkgname=whysynth version=20170701 -revision=1 +revision=2 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" +maintainer="Olga Ustuzhanina " +license="GPL-2.0-or-later" homepage="http://smbolton.com/whysynth.html" -license="GPL-2" distfiles="http://smbolton.com/whysynth/whysynth-${version}.tar.bz2" checksum=a602d685a6bf48b01a82e1c077a50fe3d115805865ecfe49f531d8bd20b00b0b