whysynth: updated fix_agran.patch to match authors git repository

This commit is contained in:
Olga U 2018-11-15 02:03:00 +07:00 committed by Enno Boland
parent 1680894ca4
commit 563f7fac1d
2 changed files with 11 additions and 12 deletions

View File

@ -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;

View File

@ -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 <me@laserbat.pw>"
short_desc="WhySynth is a versatile multi-mode DSSI softsynth"
maintainer="Olga Ustuzhanina <me@laserbat.pw>"
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