mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 23:23:51 +02:00
whysynth: updated fix_agran.patch to match authors git repository
This commit is contained in:
parent
1680894ca4
commit
563f7fac1d
2 changed files with 11 additions and 12 deletions
|
@ -1,14 +1,13 @@
|
||||||
diff --git src/agran_oscillator.c src/agran_oscillator.c
|
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
|
||||||
+++ src/agran_oscillator.c
|
+++ src/agran_oscillator.c
|
||||||
@@ -418,7 +418,8 @@ create_grain_envelopes(unsigned long sample_rate)
|
@@ -421,6 +421,9 @@ create_grain_envelopes(unsigned long sample_rate)
|
||||||
for (i = 0; i <= peak; i++) {
|
env[e].data[Y_CONTROL_PERIOD + peak + i] = ampl;
|
||||||
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;
|
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;
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
# Template file for 'whysynth'.
|
# Template file for 'whysynth'
|
||||||
pkgname=whysynth
|
pkgname=whysynth
|
||||||
version=20170701
|
version=20170701
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="gtk+-devel dssi-devel liblo-devel ladspa-sdk alsa-lib-devel fftw-devel"
|
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"
|
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"
|
homepage="http://smbolton.com/whysynth.html"
|
||||||
license="GPL-2"
|
|
||||||
distfiles="http://smbolton.com/whysynth/whysynth-${version}.tar.bz2"
|
distfiles="http://smbolton.com/whysynth/whysynth-${version}.tar.bz2"
|
||||||
checksum=a602d685a6bf48b01a82e1c077a50fe3d115805865ecfe49f531d8bd20b00b0b
|
checksum=a602d685a6bf48b01a82e1c077a50fe3d115805865ecfe49f531d8bd20b00b0b
|
||||||
|
|
Loading…
Add table
Reference in a new issue