2016-11-01 14:43:16 +01:00
|
|
|
{ stdenv, fetchFromGitHub, gtkmm2, lv2, lvtk, pkgconfig }:
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "fmsynth-unstable";
|
2016-11-01 14:43:16 +01:00
|
|
|
version = "2015-02-07";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Themaister";
|
|
|
|
repo = "libfmsynth";
|
|
|
|
rev = "9ffa1d2fea287f1209b210d2dbde2f0f60f37176";
|
|
|
|
sha256 = "1bk0bpr069hzx2508rgfbwpxiqgr7dmdkhqdywmd2i4rmibgrm1q";
|
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ gtkmm2 lv2 lvtk ];
|
2016-11-01 14:43:16 +01:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd lv2
|
|
|
|
substituteInPlace GNUmakefile --replace "/usr/lib/lv2" "$out/lib/lv2"
|
2019-10-30 16:03:06 +01:00
|
|
|
make SIMD=0
|
2016-11-01 14:43:16 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = "mkdir -p $out/lib/lv2";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "a flexible 8 operator FM synthesizer for LV2";
|
|
|
|
longDescription = ''
|
|
|
|
The synth core supports:
|
|
|
|
|
|
|
|
- Arbitrary amounts of polyphony
|
|
|
|
- 8 operators
|
|
|
|
- No fixed "algorithms"
|
|
|
|
- Arbitrary modulation, every operator can modulate any other operator, even itself
|
|
|
|
- Arbitrary carrier selection, every operator can be a carrier
|
|
|
|
- Sine LFO, separate LFO per voice, modulates amplitude and frequency of operators
|
|
|
|
- Envelope per operator
|
|
|
|
- Carrier stereo panning
|
|
|
|
- Velocity sensitivity per operator
|
|
|
|
- Mod wheel sensitivity per operator
|
|
|
|
- Pitch bend
|
|
|
|
- Keyboard scaling
|
|
|
|
- Sustain, sustained keys can overlap each other for a very rich sound
|
|
|
|
- Full floating point implementation optimized for SIMD
|
|
|
|
- Hard real-time constraints
|
|
|
|
'';
|
|
|
|
homepage = https://github.com/Themaister/libfmsynth;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.magnetophon ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|