mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-14 11:03:49 +02:00
parent
ff3a5558b7
commit
bc3360f3df
2 changed files with 27 additions and 0 deletions
14
srcpkgs/whysynth/patches/fix_agran.patch
Normal file
14
srcpkgs/whysynth/patches/fix_agran.patch
Normal file
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
13
srcpkgs/whysynth/template
Normal file
13
srcpkgs/whysynth/template
Normal file
|
@ -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 <me@laserbat.pw>"
|
||||||
|
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
|
Loading…
Add table
Reference in a new issue