1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
4 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
5 ;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
7 ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
9 ;;; Copyright © 2016 ng0 <ng0@n0.is>
10 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
11 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2018, 2020 Oleg Pykhalov <go.wigust@gmail.com>
13 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
14 ;;; Copyright © 2018, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
15 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
16 ;;; Copyright © 2018 Brett Gilio <brettg@gnu.org>
17 ;;; Copyright © 2018, 2019 Marius Bakke <mbakke@fastmail.com>
18 ;;; Copyright © 2018 Thorsten Wilms <t_w_@freenet.de>
19 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
20 ;;; Copyright © 2018 Brendan Tildesley <mail@brendan.scot>
21 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
22 ;;; Copyright © 2019 Leo Famulari <leo@famulari.name>
23 ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
24 ;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
25 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
26 ;;; Copyright © 2019, 2020 Alexandros Theodotou <alex@zrythm.org>
27 ;;; Copyright © 2019 Christopher Lemmer Webber <cwebber@dustycloud.org>
28 ;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
29 ;;; Copyright © 2019 Hartmt Goebel <h.goebel@crazy-compilers.com>
30 ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
31 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
32 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
33 ;;; Copyright © 2020 Jonathan Frederickson <jonathan@terracrypt.net>
34 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
36 ;;; This file is part of GNU Guix.
38 ;;; GNU Guix is free software; you can redistribute it and/or modify it
39 ;;; under the terms of the GNU General Public License as published by
40 ;;; the Free Software Foundation; either version 3 of the License, or (at
41 ;;; your option) any later version.
43 ;;; GNU Guix is distributed in the hope that it will be useful, but
44 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
45 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46 ;;; GNU General Public License for more details.
48 ;;; You should have received a copy of the GNU General Public License
49 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
51 (define-module (gnu packages audio)
52 #:use-module (gnu packages)
53 #:use-module (gnu packages algebra)
54 #:use-module (gnu packages autotools)
55 #:use-module (gnu packages avahi)
56 #:use-module (gnu packages backup)
57 #:use-module (gnu packages base)
58 #:use-module (gnu packages bison)
59 #:use-module (gnu packages boost)
60 #:use-module (gnu packages check)
61 #:use-module (gnu packages compression)
62 #:use-module (gnu packages curl)
63 #:use-module (gnu packages dbm)
64 #:use-module (gnu packages documentation)
65 #:use-module (gnu packages elf)
66 #:use-module (gnu packages emacs)
67 #:use-module (gnu packages file)
68 #:use-module (gnu packages flex)
69 #:use-module (gnu packages fltk)
70 #:use-module (gnu packages fontutils)
71 #:use-module (gnu packages gcc)
72 #:use-module (gnu packages gettext)
73 #:use-module (gnu packages glib)
74 #:use-module (gnu packages gnome)
75 #:use-module (gnu packages gnunet) ; libmicrohttpd
76 #:use-module (gnu packages gperf)
77 #:use-module (gnu packages gtk)
78 #:use-module (gnu packages guile)
79 #:use-module (gnu packages icu4c)
80 #:use-module (gnu packages image)
81 #:use-module (gnu packages libbsd)
82 #:use-module (gnu packages libusb)
83 #:use-module (gnu packages linux)
84 #:use-module (gnu packages llvm)
85 #:use-module (gnu packages man)
86 #:use-module (gnu packages maths)
87 #:use-module (gnu packages mp3) ;taglib
88 #:use-module (gnu packages multiprecision)
89 #:use-module (gnu packages music)
90 #:use-module (gnu packages ncurses)
91 #:use-module (gnu packages networking)
92 #:use-module (gnu packages onc-rpc)
93 #:use-module (gnu packages perl)
94 #:use-module (gnu packages pkg-config)
95 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
96 #:use-module (gnu packages python)
97 #:use-module (gnu packages python-xyz)
98 #:use-module (gnu packages qt)
99 #:use-module (gnu packages rdf)
100 #:use-module (gnu packages readline)
101 #:use-module (gnu packages sdl)
102 #:use-module (gnu packages serialization)
103 #:use-module (gnu packages telephony)
104 #:use-module (gnu packages linphone)
105 #:use-module (gnu packages tls)
106 #:use-module (gnu packages valgrind)
107 #:use-module (gnu packages video)
108 #:use-module (gnu packages vim) ;xxd
109 #:use-module (gnu packages webkit)
110 #:use-module (gnu packages wxwidgets)
111 #:use-module (gnu packages xiph)
112 #:use-module (gnu packages xml)
113 #:use-module (gnu packages xorg)
114 #:use-module (guix build-system cmake)
115 #:use-module (guix build-system glib-or-gtk)
116 #:use-module (guix build-system gnu)
117 #:use-module (guix build-system meson)
118 #:use-module (guix build-system python)
119 #:use-module (guix build-system trivial)
120 #:use-module (guix build-system waf)
121 #:use-module (guix download)
122 #:use-module (guix git-download)
123 #:use-module ((guix licenses) #:prefix license:)
124 #:use-module (guix packages)
125 #:use-module (guix utils)
126 #:use-module (srfi srfi-1)
127 #:use-module (srfi srfi-26))
129 (define-public vo-amrwbenc
137 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
138 name "/" name "-" version ".tar.gz"))
140 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
141 (build-system gnu-build-system)
142 (synopsis "Adaptive Multi Rate Codec")
143 (description "VO-AMR is a library of VisualOn implementation of
144 Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
145 (home-page "https://sourceforge.net/projects/opencore-amr/")
146 (license license:asl2.0)))
148 (define-public opencore-amr
150 (name "opencore-amr")
156 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
157 name "/" name "-" version ".tar.gz"))
159 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
160 (build-system gnu-build-system)
161 (synopsis "Adaptive Multi Rate Codec")
162 (description "OpenCore-AMR is a library of OpenCORE Framework
163 implementation of Adaptive Multi Rate Narrowband and Wideband
164 (AMR-NB and AMR-WB) speech codec.")
165 (home-page "https://sourceforge.net/projects/opencore-amr/")
166 (license license:asl2.0)))
168 (define-public alsa-modular-synth
170 (name "alsa-modular-synth")
174 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
175 "/" version "/ams-" version ".tar.bz2"))
178 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
179 (build-system gnu-build-system)
183 "CXXFLAGS=-std=gnu++11")
185 (modify-phases %standard-phases
186 ;; Insert an extra space between linker flags.
187 (add-before 'configure 'add-missing-space
189 (substitute* "configure"
190 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
191 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
194 `(("alsa-lib" ,alsa-lib)
195 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
196 ;; license incompatibility.
197 ("clalsadrv" ,clalsadrv)
204 `(("pkg-config" ,pkg-config)
207 (home-page "http://alsamodular.sourceforge.net/")
208 (synopsis "Realtime modular synthesizer and effect processor")
210 "AlsaModularSynth is a digital implementation of a classical analog
211 modular synthesizer system. It uses virtual control voltages to control the
212 parameters of the modules. The control voltages which control the frequency
213 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
214 Filter) modules follow the convention of 1V / Octave.")
215 (license license:gpl2)))
224 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
227 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
228 (build-system waf-build-system)
230 `(#:tests? #f ; no check target
233 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
237 "--enable-samplerate"
242 ("libsndfile" ,libsndfile)
243 ("libsamplerate" ,libsamplerate)
245 ("ffmpeg" ,ffmpeg))) ; for libavcodec
247 `(("pkg-config" ,pkg-config)))
248 (home-page "https://aubio.org/")
249 (synopsis "Library for audio labelling")
251 "aubio is a tool designed for the extraction of annotations from audio
252 signals. Its features include segmenting a sound file before each of its
253 attacks, performing pitch detection, tapping the beat and producing MIDI
254 streams from live audio.")
255 (license license:gpl3+)))
257 (define (ardour-rpath-phase major-version)
258 `(lambda* (#:key outputs #:allow-other-keys)
259 (let ((libdir (string-append (assoc-ref outputs "out")
260 "/lib/ardour" ,major-version)))
261 (substitute* "wscript"
262 (("linker_flags = \\[\\]")
263 (string-append "linker_flags = [\""
266 libdir "/backends" ":"
267 libdir "/engines" ":"
268 libdir "/panners" ":"
269 libdir "/surfaces" ":"
270 libdir "/vamp" "\"]"))))
273 (define-public ardour
280 (url "https://git.ardour.org/ardour/ardour.git")
283 ;; Ardour expects this file to exist at build time. The revision
285 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
286 `(call-with-output-file
287 "libs/ardour/revision.cc"
289 (format port ,(string-append "#include \"ardour/revision.h\"
290 namespace ARDOUR { const char* revision = \"" version "\" ; }"))
294 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
295 (file-name (string-append name "-" version))))
296 (build-system waf-build-system)
298 `(#:configure-flags '("--cxx11" ; required by gtkmm
299 "--no-phone-home" ; don't contact ardour.org
300 "--freedesktop" ; build .desktop file
301 "--test") ; build unit tests
303 (modify-phases %standard-phases
304 (add-after 'unpack 'set-rpath-in-LDFLAGS
305 ,(ardour-rpath-phase (version-major version)))
306 (add-after 'install 'install-freedesktop-files
307 (lambda* (#:key outputs #:allow-other-keys)
308 (let* ((out (assoc-ref outputs "out"))
309 (share (string-append out "/share"))
310 (ver ,(version-major version)))
313 (let ((dir (string-append share "/icons/hicolor/"
314 size "x" size "/apps")))
317 (string-append "gtk2_ardour/resources/Ardour-icon_"
319 (string-append dir "/ardour" ver ".png"))))
320 '("16" "22" "32" "48" "256"))
321 (install-file (string-append "build/gtk2_ardour/ardour"
323 (string-append share "/applications/"))
324 (install-file (string-append "build/gtk2_ardour/ardour"
326 (string-append share "/appdata/")))
331 `(("alsa-lib" ,alsa-lib)
344 ("libarchive" ,libarchive)
345 ("libart-lgpl" ,libart-lgpl)
346 ("libgnomecanvasmm" ,libgnomecanvasmm)
349 ("libsamplerate" ,libsamplerate)
350 ("libsndfile" ,libsndfile)
352 ("libvorbis" ,libvorbis)
358 ("python-rdflib" ,python-rdflib)
359 ("readline" ,readline)
361 ("rubberband" ,rubberband)
369 `(("cppunit" ,cppunit)
370 ("gettext" ,gettext-minimal)
373 ("pkg-config" ,pkg-config)))
374 (home-page "https://ardour.org")
375 (synopsis "Digital audio workstation")
377 "Ardour is a multi-channel digital audio workstation, allowing users to
378 record, edit, mix and master audio and MIDI projects. It is targeted at audio
379 engineers, musicians, soundtrack editors and composers.")
380 (license license:gpl2+)))
382 (define-public audacity
390 (url "https://github.com/audacity/audacity.git")
391 (commit (string-append "Audacity-" version))))
392 (file-name (git-file-name name version))
395 "0707fsnrl4vjalsi21w4blwgz024qhd0w8rdd5j5vpxf5lyk2rbk"))
396 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
397 (modules '((guix build utils)))
399 ;; Remove bundled libraries.
403 (delete-file-recursively (string-append "lib-src/" dir)))
404 '("expat" "ffmpeg" "lame" "libflac" "libid3tag" "libmad" "libogg"
405 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
406 "portaudio-v19" "portmidi" "soundtouch" "twolame"
407 ;; FIXME: these libraries have not been packaged yet:
415 ;; FIXME: we have this library, but it differs in that the Slide
416 ;; class does not have a member "getInverseStretchedTime".
420 (build-system glib-or-gtk-build-system)
422 `(("wxwidgets" ,wxwidgets)
424 ("alsa-lib" ,alsa-lib)
430 ("libid3tag" ,libid3tag)
432 ;;("libsbsms" ,libsbsms) ;bundled version is modified
433 ("libsndfile" ,libsndfile)
434 ("soundtouch" ,soundtouch)
435 ("soxr" ,soxr) ;replaces libsamplerate
438 ("libvorbis" ,libvorbis)
440 ("lilv" ,lilv) ;for lv2
441 ("suil" ,suil) ;for lv2
442 ("portaudio" ,portaudio)
443 ("portmidi" ,portmidi)))
445 `(("autoconf" ,autoconf)
446 ("automake" ,automake)
447 ("gettext" ,gettext-minimal) ;for msgfmt
449 ("pkg-config" ,pkg-config)
454 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
455 (libmad (assoc-ref %build-inputs "libmad"))
456 (portmidi (assoc-ref %build-inputs "portmidi")))
458 ;; Loading FFmpeg dynamically is problematic.
459 "--disable-dynamic-loading"
460 ;; SSE instructions are available on Intel systems only.
461 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
465 '("--enable-sse=no"))
466 ;; portmidi, libid3tag and libmad provide no .pc files, so
467 ;; pkg-config fails to find them. Force their inclusion.
468 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
469 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
470 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
471 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
472 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
473 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
474 "EXPAT_USE_SYSTEM=yes"
475 "FFMPEG_USE_SYSTEM=yes"
476 "LAME_USE_SYSTEM=yes"
477 "LIBFLAC_USE_SYSTEM=yes"
478 "LIBID3TAG_USE_SYSTEM=yes"
479 "LIBMAD_USE_SYSTEM=yes"
480 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
481 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
482 "LIBSNDFILE_USE_SYSTEM=yes"
483 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
484 "LIBSOXR_USE_SYSTEM=yes"
485 "LIBTWOLAME_USE_SYSTEM=yes"
486 "LIBVAMP_USE_SYSTEM=yes"
487 "LIBVORBIS_USE_SYSTEM=yes"
489 "PORTAUDIO_USE_SYSTEM=yes"))
491 (modify-phases %standard-phases
492 (add-after 'unpack 'fix-sbsms-check
494 ;; This check is wrong: there is no 2.2.0 release; not even the
495 ;; bundled sources match this release string.
496 (substitute* '("m4/audacity_checklib_libsbsms.m4"
498 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
500 (add-after 'unpack 'use-upstream-headers
501 (lambda* (#:key inputs #:allow-other-keys)
502 (substitute* '("src/NoteTrack.cpp"
505 "src/AudioIOBase.cpp")
506 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
507 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
508 (substitute* "src/prefs/MidiIOPrefs.cpp"
509 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
511 ;; The test suite is not "well exercised" according to the developers,
512 ;; and fails with various errors. See
513 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
515 (home-page "https://www.audacityteam.org/")
516 (synopsis "Software for recording and editing sounds")
518 "Audacity is a multi-track audio editor designed for recording, playing
519 and editing digital audio. It features digital effects and spectrum analysis
521 (license license:gpl2+)))
523 (define-public audiofile
531 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
533 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
535 ;; CVE references according to nixpgs
537 "audiofile-fix-datatypes-in-tests.patch"
538 "audiofile-fix-sign-conversion.patch"
539 "audiofile-hurd.patch"
540 "audiofile-CVE-2015-7747.patch"
542 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
543 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
545 "audiofile-Check-the-number-of-coefficients.patch"
547 "audiofile-Fix-overflow-in-MSADPCM-decodeSam.patch"
548 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
549 "audiofile-Fix-multiply-overflow-sfconvert.patch"
550 "audiofile-signature-of-multiplyCheckOverflow.patch"
552 "audiofile-Fail-on-error-in-parseFormat.patch"
554 "audiofile-division-by-zero-BlockCodec-runPull.patch"
555 "audiofile-CVE-2018-13440.patch"
556 "audiofile-CVE-2018-17095.patch"))))
557 (build-system gnu-build-system)
559 `(("alsa-lib" ,alsa-lib)))
560 (home-page "https://audiofile.68k.org/")
561 (synopsis "Library to handle various audio file formats")
562 (description "This is an open-source version of SGI's audiofile library.
563 It provides a uniform programming interface for processing of audio data to
564 and from audio files of many common formats.
566 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
567 .snd/.au, BICS, and raw data. Supported compression formats are currently
568 G.711 mu-law and A-law.")
569 (license license:lgpl2.1+)))
571 (define-public autotalent
577 (uri (string-append "http://tombaran.info/autotalent-"
581 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
582 (build-system gnu-build-system)
584 `(#:tests? #f ; no check target
586 (modify-phases %standard-phases
587 ;; no configure script
589 (add-before 'install 'prepare-target-directory
590 (lambda* (#:key outputs #:allow-other-keys)
591 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
593 (add-after 'unpack 'override-target-directory
594 (lambda* (#:key outputs #:allow-other-keys)
595 (substitute* "Makefile"
596 (("/usr/lib64/ladspa")
597 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
600 `(("ladspa" ,ladspa)))
601 (home-page "http://tombaran.info/autotalent.html")
602 (synopsis "Pitch-correction LADSPA audio plugin")
604 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
605 controls are allowable notes, strength of correction, LFO for vibrato and
607 ;; All code except the FFT routine is licensed under GPLv2+.
608 ;; The FFT routine is under BSD-3.
609 (license license:gpl2+)))
617 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
622 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
623 (patches (search-patches "azr3.patch"))))
624 (build-system gnu-build-system)
626 `(#:tests? #f ; no check target
629 (string-append "prefix=" %output)
630 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
632 (modify-phases %standard-phases
633 (add-before 'install 'fix-timestamp
635 (let ((early-1980 315619200)) ; 1980-01-02 UTC
636 (utime "azr3.1" early-1980 early-1980))
644 `(("pkg-config" ,pkg-config)))
645 (home-page "http://ll-plugins.nongnu.org/azr3/")
646 (synopsis "Tonewheel organ synthesizer")
648 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
649 with drawbars, distortion and rotating speakers. The organ has three
650 sections, two polyphonic sections with nine drawbars each and one monophonic
651 bass section with five drawbars. A standalone JACK application and LV2
652 plugins are provided.")
653 (license license:gpl2)))
661 (uri (string-append "https://calf-studio-gear.org/files/calf-"
665 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
666 (build-system gnu-build-system)
668 `(("fluidsynth" ,fluidsynth)
679 `(("pkg-config" ,pkg-config)))
681 (list (search-path-specification
682 (variable "LV2_PATH")
683 (files '("lib/lv2")))))
684 (home-page "http://calf.sourceforge.net/")
685 (synopsis "Audio plug-in pack for LV2 and JACK environments")
687 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
688 The suite contains lots of effects (delay, modulation, signal processing,
689 filters, equalizers, dynamics, distortion and mastering effects),
690 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
691 tools (analyzer, mono/stereo tools, crossovers).")
692 ;; calfjackhost is released under GPLv2+
693 ;; The plugins are released under LGPLv2.1+
694 (license (list license:lgpl2.1+ license:gpl2+))))
696 (define-public caps-plugins-lv2
698 (name "caps-plugins-lv2")
699 (version "0.9.24") ; version that has been ported.
702 ;; The Github project hasn't tagged a release.
705 ;; Actually https://github.com/moddevices/caps-lv2.git, but it's
706 ;; missing fixes for newer glibc, so using the origin of a pull
707 ;; request regarding this issue:
708 (url "https://github.com/jujudusud/caps-lv2.git")
709 (commit "9c9478b7fbd8f9714f552ebe2a6866398b0babfb")))
710 (file-name (git-file-name name version))
713 "1idfnazin3cca41zw1a8vwgnxjnkrap7bxxjamjqvgpmvydgcam1"))))
714 (build-system gnu-build-system)
716 `(#:tests? #f ; no check target
718 (modify-phases %standard-phases
719 ;; no configure script
721 (add-after 'unpack 'override-target-directory
722 (lambda* (#:key outputs #:allow-other-keys)
723 (substitute* (find-files "plugins" "Makefile")
724 (("/usr/local")(assoc-ref outputs "out")))
728 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
729 (home-page "https://github.com/moddevices/caps-lv2")
730 (synopsis "LV2 port of the CAPS audio plugin colection")
732 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
733 guitar amplification and a small range of classic effects, signal processors and
734 generators of mostly elementary and occasionally exotic nature.")
735 (license license:gpl3+)))
737 (define-public infamous-plugins
739 (name "infamous-plugins")
744 (url "https://github.com/ssj71/infamousPlugins.git")
745 (commit (string-append "v" version))))
746 (file-name (git-file-name name version))
749 "0hmqk80w4qxq09iag7b7srf2g0wigkyhzq0ywxvhz2iz0hq9k0dh"))))
750 (build-system cmake-build-system)
752 `(#:tests? #f ; there are no tests
754 (modify-phases %standard-phases
755 (add-after 'unpack 'remove-compiler-flags
757 (substitute* (find-files "." "CMakeLists.txt")
758 (("-msse2 -mfpmath=sse") ""))
765 ("zita-resampler" ,zita-resampler)))
767 `(("pkg-config" ,pkg-config)))
768 (home-page "https://ssj71.github.io/infamousPlugins")
769 (synopsis "LV2 plugins for live use")
771 "The infamous plugins are a collection of LV2 audio plugins for live
772 performances. The plugins include a cellular automaton synthesizer, an
773 envelope follower, distortion effects, tape effects and more.")
774 (license license:gpl2+)))
776 (define-public swh-plugins
783 (url "https://github.com/swh/ladspa.git")
784 (commit (string-append "v" version))))
785 (file-name (git-file-name name version))
788 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
790 `(("autoconf" ,autoconf)
791 ("automake" ,automake)
792 ("gettext" ,gettext-minimal) ;for autopoint
795 ("pkg-config" ,pkg-config)
799 ("perl-xml-parser" ,perl-xml-parser)))
800 (build-system gnu-build-system)
801 (home-page "http://plugin.org.uk")
802 (synopsis "The SWH Plugins package for the LADSPA plugin system")
803 (description "This package provides Steve Harris's LADSPA plugins.")
804 (license license:gpl2+)))
806 (define-public swh-plugins-lv2
808 (name "swh-plugins-lv2")
813 (url "https://github.com/swh/lv2.git")
814 (commit (string-append "v" version))))
815 (file-name (git-file-name name version))
818 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
819 (build-system gnu-build-system)
821 `(#:tests? #f ; no check target
822 #:make-flags (list "CC=gcc"
823 (string-append "PREFIX="
824 (assoc-ref %outputs "out")))
826 (modify-phases %standard-phases
827 ;; no configure script
829 (add-after 'unpack 'patch-makefile-and-enter-directory
830 ;; The default install target doesn't install, but the
831 ;; "install-system" target does.
833 (substitute* "Makefile"
834 (("install:") "install: install-system"))
840 `(("libxslt" ,libxslt)
841 ("pkg-config" ,pkg-config)))
842 (home-page "http://plugin.org.uk")
843 (synopsis "SWH plugins in LV2 format")
845 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
846 classes include: dynamics (compressor, limiter), time (delay, chorus,
847 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
848 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
849 (license license:gpl3+)))
851 (define-public csound
858 (url "https://github.com/csound/csound.git")
860 (file-name (git-file-name name version))
863 "14822ybqyp31z18gky2y9zadr9dkbhabg97y139py73w7v3af1bh"))))
864 (build-system cmake-build-system)
866 `(("alsa-lib" ,alsa-lib)
868 ("pulseaudio" ,pulseaudio)
869 ("libsndfile" ,libsndfile)
873 ("gettext" ,gettext-minimal)))
878 (home-page "https://csound.com/")
879 (synopsis "Sound and music computing system")
881 "Csound is a user-programmable and user-extensible sound processing
882 language and software synthesizer.")
883 (license license:lgpl2.1+)))
885 (define-public clalsadrv
892 "http://kokkinizita.linuxaudio.org"
893 "/linuxaudio/downloads/clalsadrv-"
897 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
898 (build-system gnu-build-system)
900 `(#:tests? #f ; no "check" target
901 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
903 (modify-phases %standard-phases
904 (add-after 'unpack 'patch-makefile-and-enter-directory
906 (substitute* "libs/Makefile"
907 (("/sbin/ldconfig") "true")
908 (("^LIBDIR =.*") "LIBDIR = lib\n"))
911 (add-after 'install 'install-symlink
913 (symlink "libclalsadrv.so"
914 (string-append (assoc-ref %outputs "out")
915 "/lib/libclalsadrv.so.2"))
917 ;; no configure script
918 (delete 'configure))))
920 `(("alsa-lib" ,alsa-lib)
922 (home-page "https://kokkinizita.linuxaudio.org")
923 (synopsis "C++ wrapper around the ALSA API")
925 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
927 (license license:gpl2+)))
929 (define-public amb-plugins
936 "http://kokkinizita.linuxaudio.org"
937 "/linuxaudio/downloads/AMB-plugins-"
941 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
942 (build-system gnu-build-system)
944 `(#:tests? #f ; no "check" target
946 (modify-phases %standard-phases
947 ;; no configure script
949 (add-before 'install 'prepare-target-directory
950 (lambda* (#:key outputs #:allow-other-keys)
951 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
953 (add-after 'unpack 'override-target-directory-and-tool-paths
954 (lambda* (#:key outputs #:allow-other-keys)
955 (substitute* "Makefile"
957 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
958 (("/usr/bin/install") (which "install"))
961 (home-page "https://kokkinizita.linuxaudio.org")
962 (synopsis "LADSPA ambisonics plugins")
964 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
965 used within Ardour. Features include: mono and stereo to B-format panning,
966 horizontal rotator, square, hexagon and cube decoders.")
967 (license license:gpl2+)))
969 (define-public mcp-plugins
976 "http://kokkinizita.linuxaudio.org"
977 "/linuxaudio/downloads/MCP-plugins-"
981 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
982 (build-system gnu-build-system)
984 `(#:tests? #f ; no "check" target
986 (modify-phases %standard-phases
987 ;; no configure script
989 (add-before 'install 'prepare-target-directory
990 (lambda* (#:key outputs #:allow-other-keys)
991 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
993 (add-after 'unpack 'override-target-directory
994 (lambda* (#:key outputs #:allow-other-keys)
995 (substitute* "Makefile"
996 (("/usr") (assoc-ref outputs "out")))
998 (home-page "https://kokkinizita.linuxaudio.org")
999 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
1001 "This package provides various LADSPA plugins. @code{cs_chorus} and
1002 @code{cs_phaser} provide chorus and phaser effects, respectively;
1003 @code{mvclpf24} provides four implementations of the low-pass filter used in
1004 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
1005 high-pass filter by Robert Moog. The filters attempt to accurately emulate
1006 the non-linear circuit elements of their original analog counterparts.")
1007 (license license:gpl2+)))
1009 (define-public rev-plugins
1011 (name "rev-plugins")
1016 "http://kokkinizita.linuxaudio.org"
1017 "/linuxaudio/downloads/REV-plugins-"
1018 version ".tar.bz2"))
1021 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
1022 (build-system gnu-build-system)
1024 `(#:tests? #f ; no "check" target
1026 (modify-phases %standard-phases
1027 ;; no configure script
1029 (add-before 'install 'prepare-target-directory
1030 (lambda* (#:key outputs #:allow-other-keys)
1031 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1033 (add-after 'unpack 'override-target-directory
1034 (lambda* (#:key outputs #:allow-other-keys)
1035 (substitute* "Makefile"
1036 (("/usr") (assoc-ref outputs "out")))
1038 (home-page "https://kokkinizita.linuxaudio.org")
1039 (synopsis "LADSPA reverb plugin")
1041 "This package provides a stereo reverb LADSPA plugin based on the
1042 well-known greverb.")
1043 (license license:gpl2+)))
1045 (define-public fil-plugins
1047 (name "fil-plugins")
1052 "http://kokkinizita.linuxaudio.org"
1053 "/linuxaudio/downloads/FIL-plugins-"
1054 version ".tar.bz2"))
1057 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1058 (build-system gnu-build-system)
1060 `(#:tests? #f ; no "check" target
1062 (modify-phases %standard-phases
1063 ;; no configure script
1065 (add-before 'install 'prepare-target-directory
1066 (lambda* (#:key outputs #:allow-other-keys)
1067 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1069 (add-after 'unpack 'override-target-directory
1070 (lambda* (#:key outputs #:allow-other-keys)
1071 (substitute* "Makefile"
1072 (("/usr") (assoc-ref outputs "out")))
1074 (home-page "https://kokkinizita.linuxaudio.org")
1075 (synopsis "LADSPA four-band parametric equalizer plugin")
1077 "This package provides a LADSPA plugin for a four-band parametric
1078 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1079 gain controls. There is also a global bypass switch and gain control.
1081 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1082 lattice filter, which is stable even while parameters are being changed.
1084 All switches and controls are internally smoothed, so they can be used @code{live}
1085 without any clicks or zipper noises. This makes this plugin suitable for use
1086 in systems that allow automation of plugin control ports, such as Ardour, or
1088 (license license:gpl2+)))
1090 (define-public ste-plugins
1092 (name "ste-plugins")
1097 "http://kokkinizita.linuxaudio.org"
1098 "/linuxaudio/downloads/STE-plugins-"
1099 version ".tar.bz2"))
1102 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1103 (build-system gnu-build-system)
1105 `(#:tests? #f ; no "check" target
1107 (modify-phases %standard-phases
1108 ;; no configure script
1110 (add-before 'install 'prepare-target-directory
1111 (lambda* (#:key outputs #:allow-other-keys)
1112 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1114 (add-after 'unpack 'override-target-directory
1115 (lambda* (#:key outputs #:allow-other-keys)
1116 (substitute* "Makefile"
1117 (("/usr") (assoc-ref outputs "out")))
1119 (home-page "https://kokkinizita.linuxaudio.org")
1120 (synopsis "LADSPA stereo width plugin")
1122 "This package provides a LADSPA plugin to manipulate the stereo width of
1124 (license license:gpl2+)))
1126 (define-public vco-plugins
1128 (name "vco-plugins")
1133 "http://kokkinizita.linuxaudio.org"
1134 "/linuxaudio/downloads/VCO-plugins-"
1135 version ".tar.bz2"))
1138 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1139 (build-system gnu-build-system)
1141 `(#:tests? #f ; no "check" target
1143 (modify-phases %standard-phases
1144 ;; no configure script
1146 (add-before 'install 'prepare-target-directory
1147 (lambda* (#:key outputs #:allow-other-keys)
1148 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1150 (add-after 'unpack 'override-target-directory
1151 (lambda* (#:key outputs #:allow-other-keys)
1152 (substitute* "Makefile"
1153 (("/usr") (assoc-ref outputs "out"))
1154 (("/bin/cp") (which "cp")))
1156 (home-page "https://kokkinizita.linuxaudio.org")
1157 (synopsis "LADSPA plugin for synthesizer oscillators")
1159 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1162 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1163 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1164 @item Rec-VCO, a square / rectangle oscillator
1167 All oscillators are low-pass filtered to provide waveforms similar to the
1168 output of analog synthesizers such as the Moog Voyager.")
1169 (license license:gpl2+)))
1171 (define-public wah-plugins
1173 (name "wah-plugins")
1178 "http://kokkinizita.linuxaudio.org"
1179 "/linuxaudio/downloads/WAH-plugins-"
1180 version ".tar.bz2"))
1183 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1184 (build-system gnu-build-system)
1186 `(#:tests? #f ; no "check" target
1188 (modify-phases %standard-phases
1189 ;; no configure script
1191 (add-before 'install 'prepare-target-directory
1192 (lambda* (#:key outputs #:allow-other-keys)
1193 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1195 (add-after 'unpack 'override-target-directory
1196 (lambda* (#:key outputs #:allow-other-keys)
1197 (substitute* "Makefile"
1198 (("/usr") (assoc-ref outputs "out")))
1200 (home-page "https://kokkinizita.linuxaudio.org")
1201 (synopsis "LADSPA Autowah effect plugin")
1203 "This package provides a LADSPA plugin for a Wah effect with envelope
1205 (license license:gpl2+)))
1207 (define-public g2reverb
1214 "http://kokkinizita.linuxaudio.org"
1215 "/linuxaudio/downloads/g2reverb-"
1216 version ".tar.bz2"))
1219 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1220 (build-system gnu-build-system)
1222 `(#:tests? #f ; no "check" target
1224 (modify-phases %standard-phases
1225 ;; no configure script
1227 (add-before 'install 'prepare-target-directory
1228 (lambda* (#:key outputs #:allow-other-keys)
1229 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1231 (add-after 'unpack 'override-target-directory
1232 (lambda* (#:key outputs #:allow-other-keys)
1233 (substitute* "Makefile"
1234 (("/usr") (assoc-ref outputs "out")))
1236 (home-page "https://kokkinizita.linuxaudio.org")
1237 (synopsis "LADSPA stereo reverb plugin")
1239 "This package provides a LADSPA plugin for a stereo reverb effect.")
1240 (license license:gpl2+)))
1242 (define-public fluidsynth
1249 (url "https://github.com/FluidSynth/fluidsynth.git")
1250 (commit (string-append "v" version))))
1251 (file-name (git-file-name name version))
1254 "09jq04hrasidf6b5gkk4aba13fq55z3bmn7bq35rdaikz26xiij4"))))
1255 (build-system cmake-build-system)
1257 '(#:tests? #f ; no check target
1259 (modify-phases %standard-phases
1260 (add-after 'unpack 'fix-libdir
1262 ;; Install libraries to /lib, not /lib64.
1263 (substitute* "CMakeLists.txt"
1264 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1268 `(("libsndfile" ,libsndfile)
1269 ("alsa-lib" ,alsa-lib)
1273 ("readline" ,readline)
1276 `(("pkg-config" ,pkg-config)))
1277 (home-page "http://www.fluidsynth.org/")
1278 (synopsis "SoundFont synthesizer")
1280 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1281 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1282 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1283 also play midifiles using a Soundfont.")
1284 (license license:lgpl2.1+)))
1286 ;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1288 (define-public fluidsynth-1
1290 (inherit fluidsynth)
1293 (inherit (package-source fluidsynth))
1295 (url "https://github.com/FluidSynth/fluidsynth")
1296 (commit (string-append "v" version))))
1297 (file-name (git-file-name "fluidsynth" version))
1300 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1302 (define-public faad2
1308 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1309 (version-major+minor version) ".0/"
1310 "faad2-" version ".tar.gz"))
1313 "089zqykqgmmysznvk0bi2pfvdqwclnn540d0zks83sv2pynpfjb5"))))
1314 (build-system gnu-build-system)
1315 (home-page "https://www.audiocoding.com/faad2.html")
1316 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1318 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
1320 (license license:gpl2)))
1322 (define-public faust
1329 (url "https://github.com/grame-cncm/faust.git")
1330 (commit (string-append "v"
1331 (string-map (lambda (c)
1332 (if (char=? c #\.) #\- c))
1334 (file-name (string-append "faust-" version "-checkout"))
1337 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1338 (build-system gnu-build-system)
1340 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1343 (modify-phases %standard-phases
1344 ;; no "configure" script
1346 ;; Files appear under $out/share/faust that are read-only. The
1347 ;; install phase tries to overwrite them and fails, so we change
1348 ;; the permissions first.
1349 (add-before 'install 'fix-permissions
1351 (for-each (lambda (file)
1353 (find-files "architecture/max-msp" ".*"))
1356 `(("unzip" ,unzip)))
1357 (home-page "https://faust.grame.fr/")
1358 (synopsis "Signal processing language")
1360 "Faust is a programming language for realtime audio signal processing.")
1361 (license license:gpl2+)))
1363 (define-public faust-2
1369 (uri (string-append "https://github.com/grame-cncm/faust/"
1370 "releases/download/" version
1371 "/faust-" version ".tar.gz"))
1374 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1375 (build-system gnu-build-system)
1377 (substitute-keyword-arguments (package-arguments faust)
1378 ((#:make-flags flags)
1379 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1382 `(("llvm" ,llvm-3.8)
1385 ("ctags" ,emacs-minimal) ; for ctags
1386 ("pkg-config" ,pkg-config)))
1388 `(("libsndfile" ,libsndfile)
1389 ("libmicrohttpd" ,libmicrohttpd)
1390 ("ncurses" ,ncurses)
1391 ("openssl" ,openssl)
1394 (define-public freepats
1397 (version "20060219")
1400 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1401 version ".tar.bz2"))
1404 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1405 (build-system trivial-build-system)
1407 `(#:modules ((guix build utils))
1409 (use-modules (guix build utils))
1410 (let ((out (string-append %output "/share/freepats")))
1411 (setenv "PATH" (string-append
1412 (assoc-ref %build-inputs "bzip2") "/bin:"
1413 (assoc-ref %build-inputs "tar") "/bin"))
1414 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
1416 ;; Use absolute pattern references
1417 (substitute* "freepats.cfg"
1418 (("Tone_000") (string-append out "/Tone_000"))
1419 (("Drum_000") (string-append out "/Drum_000")))
1421 (copy-recursively "." out)
1426 (home-page "http://freepats.zenvoid.org")
1427 (synopsis "GUS compatible patches for MIDI players")
1429 "FreePats is a project to create a free and open set of GUS compatible
1430 patches that can be used with softsynths such as Timidity and WildMidi.")
1431 ;; GPLv2+ with exception for compositions using these patches.
1432 (license license:gpl2+)))
1434 (define-public guitarix
1441 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1445 "0bw7xnrx062nwb1bfj9x660h7069ncmz77szcs8icpqxrvhs7z80"))))
1446 (build-system waf-build-system)
1448 `(#:tests? #f ; no "check" target
1452 ;; Add the output lib directory to the RUNPATH.
1453 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))
1455 (modify-phases %standard-phases
1456 (add-after 'unpack 'fix-boost-includes
1458 (substitute* "src/headers/gx_internal_plugins.h"
1459 (("namespace gx_jack" m)
1460 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1461 (substitute* '("src/headers/gx_system.h"
1462 "src/headers/gx_parameter.h"
1463 "src/headers/gx_json.h")
1464 (("namespace gx_system" m)
1465 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1468 `(("libsndfile" ,libsndfile)
1481 ("zita-resampler" ,zita-resampler)
1482 ("zita-convolver" ,zita-convolver)))
1486 ("intltool" ,intltool)
1487 ("gettext" ,gettext-minimal)
1488 ("pkg-config" ,pkg-config)))
1489 (native-search-paths
1490 (list (search-path-specification
1491 (variable "LV2_PATH")
1492 (files '("lib/lv2")))))
1493 (home-page "https://guitarix.org/")
1494 (synopsis "Virtual guitar amplifier")
1495 (description "Guitarix is a virtual guitar amplifier running JACK.
1496 Guitarix takes the signal from your guitar as a mono-signal from your sound
1497 card. The input is processed by a main amp and a rack-section. Both can be
1498 routed separately and deliver a processed stereo-signal via JACK. You may
1499 fill the rack with effects from more than 25 built-in modules including stuff
1500 from a simple noise gate to modulation effects like flanger, phaser or
1502 (license license:gpl2+)))
1504 (define-public guitarix-lv2
1505 (package (inherit guitarix)
1506 (name "guitarix-lv2")
1508 (substitute-keyword-arguments (package-arguments guitarix)
1509 ((#:configure-flags flags)
1510 `(cons "--no-standalone" ,flags))))))
1512 (define-public rakarrack
1518 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1519 "rakarrack-" version "/rakarrack-"
1520 version ".tar.bz2"))
1523 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1524 (modules '((guix build utils)))
1527 (substitute* '("src/process.C"
1529 (("#include <Fl/") "#include <FL/"))
1531 (build-system gnu-build-system)
1533 `(("alsa-utils" ,alsa-utils)
1536 ("libxext" ,libxext)
1537 ("libxfixes" ,libxfixes)
1539 ("libxrender" ,libxrender)
1541 ("fontconfig" ,fontconfig)
1542 ("freetype" ,freetype)
1544 ("alsa-lib" ,alsa-lib)
1545 ("libsndfile" ,libsndfile)
1546 ("libsamplerate" ,libsamplerate)
1548 (home-page "http://rakarrack.sourceforge.net/")
1549 (synopsis "Audio effects processor")
1551 "Rakarrack is a richly featured multi-effects processor emulating a
1552 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1553 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1554 distortion modules and many more. Most of the effects engine is built from
1555 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1556 user interface are optimized for guitar, but Rakarrack processes signals in
1557 stereo while it does not apply internal band-limiting filtering, and thus is
1558 well suited to all musical instruments and vocals.")
1559 ;; The code is explicitly licensed under the GPL version 2 only.
1560 (license license:gpl2)))
1569 (url "https://github.com/tomszilagyi/ir.lv2")
1571 (file-name (git-file-name name version))
1574 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
1575 (build-system gnu-build-system)
1577 `(#:tests? #f ; no tests
1579 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1580 (string-append "INSTDIR="
1581 (assoc-ref %outputs "out") "/lib/lv2"))
1582 #:phases (modify-phases %standard-phases
1583 (delete 'configure)))) ; no configure script
1585 `(("libsndfile" ,libsndfile)
1586 ("libsamplerate" ,libsamplerate)
1590 ("zita-convolver" ,zita-convolver)))
1592 `(("pkg-config" ,pkg-config)))
1593 (native-search-paths
1594 (list (search-path-specification
1595 (variable "LV2_PATH")
1596 (files '("lib/lv2")))))
1597 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
1598 (synopsis "LV2 convolution reverb")
1600 "IR is a low-latency, real-time, high performance signal convolver
1601 especially for creating reverb effects. It supports impulse responses with 1,
1602 2 or 4 channels, in any soundfile format supported by libsndfile.")
1603 (license license:gpl2+)))
1605 (define-public jack-1
1612 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1617 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
1618 (build-system gnu-build-system)
1620 `(#:phases (modify-phases %standard-phases
1621 (add-after 'unpack 'patch-configure
1623 (substitute* "configure"
1624 ;; Install to <out/lib> regardless of platform.
1625 (("libnn=lib64") "libnn=lib"))
1628 `(("alsa-lib" ,alsa-lib)
1629 ("readline" ,readline)))
1630 ;; uuid.h is included in the JACK type headers
1631 ;; db.h is included in the libjack metadata headers
1633 `(("libuuid" ,util-linux "lib")
1636 `(("pkg-config" ,pkg-config)))
1637 (home-page "http://jackaudio.org/")
1638 (synopsis "JACK audio connection kit")
1640 "JACK is a low-latency audio server. It can connect a number of
1641 different applications to an audio device, as well as allowing them to share
1642 audio between themselves. JACK is different from other audio server efforts
1643 in that it has been designed from the ground up to be suitable for
1644 professional audio work. This means that it focuses on two key areas:
1645 synchronous execution of all clients, and low latency operation.")
1646 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1647 ;; licensed under the LGPL in order to allow for proprietary usage.
1648 (license (list license:gpl2+ license:lgpl2.1+))))
1650 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1651 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
1652 ;; program for users who might benefit from the D-BUS features.
1653 (define-public jack-2
1654 (package (inherit jack-1)
1659 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
1660 "download/v" version "/jack2-"
1662 (file-name (string-append name "-" version ".tar.gz"))
1665 "1d1d403jn4366mqig6g8ghr8057b3rn7gs26b5p3rkal34j20qw2"))))
1666 (build-system waf-build-system)
1668 `(#:tests? #f ; no check target
1669 #:configure-flags '("--dbus"
1672 (modify-phases %standard-phases
1673 (add-before 'configure 'set-linkflags
1675 ;; Add $libdir to the RUNPATH of all the binaries.
1676 (substitute* "wscript"
1677 ((".*CFLAGS.*-Wall.*" m)
1679 " conf.env.append_unique('LINKFLAGS',"
1680 "'-Wl,-rpath=" %output "/lib')\n")))
1682 (add-after 'install 'wrap-python-scripts
1683 (lambda* (#:key inputs outputs #:allow-other-keys)
1684 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1685 (let* ((out (assoc-ref outputs "out"))
1686 (path (getenv "PYTHONPATH")))
1687 (wrap-program (string-append out "/bin/jack_control")
1688 `("PYTHONPATH" ":" prefix (,path))))
1691 `(("alsa-lib" ,alsa-lib)
1694 ("libsamplerate" ,libsamplerate)
1696 ("python-dbus" ,python-dbus)
1697 ("readline" ,readline)))
1699 `(("pkg-config" ,pkg-config)))
1700 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1701 (license (list license:gpl2+ license:lgpl2.1+))))
1709 (uri (string-append "https://download.drobilla.net/jalv-"
1710 version ".tar.bz2"))
1713 "1wwfn7yzbs37s2rdlfjgks63svd5g14yyzd2gdl7h0z12qncwsy2"))))
1714 (build-system waf-build-system)
1716 `(#:tests? #f ; no check target
1717 #:python ,python-2))
1728 `(("pkg-config" ,pkg-config)))
1729 (home-page "https://drobilla.net/software/jalv/")
1730 (synopsis "Simple LV2 host for JACK")
1732 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1733 plugins and exposes their ports as JACK ports, essentially making any LV2
1734 plugin function as a JACK application.")
1735 (license license:isc)))
1737 (define-public ladspa
1744 ;; Since the official link is dead,
1745 ;; we download the tarball from Debian or Internet Archive.
1746 (uri (list (string-append "http://http.debian.net"
1747 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1748 version ".orig.tar.gz")
1749 (string-append "https://web.archive.org/web/20140717172251/"
1750 "http://www.ladspa.org/download/ladspa_sdk_"
1754 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
1755 (build-system gnu-build-system)
1757 `(#:tests? #f ; the "test" target is a listening test only
1759 (modify-phases %standard-phases
1761 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1763 (let ((out (assoc-ref outputs "out")))
1764 (substitute* "makefile"
1765 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1766 (("/usr/include/") (string-append out "/include/"))
1767 (("/usr/bin/") (string-append out "/bin/"))
1768 (("-mkdirhier") "mkdir -p")
1769 (("^CC.*") "CC = gcc\n")
1770 (("^CPP.*") "CPP = g++\n")))
1773 ;; Since the home page is gone, we provide a link to the archived version.
1775 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
1776 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1778 "LADSPA is a standard that allows software audio processors and effects
1779 to be plugged into a wide range of audio synthesis and recording packages.")
1780 (license license:lgpl2.1+)))
1785 (version "0.6.0-rc2")
1788 ;; The tilde is not permitted in the builder name, but is used
1791 "mirror://savannah/lash/lash-"
1792 (string-join (string-split version #\-) "~")
1794 (file-name (string-append name "-" version ".tar.bz2"))
1797 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1798 (build-system gnu-build-system)
1800 '(;; Glibc no longer includes Sun RPC support, so tell the build system
1801 ;; to use libtirpc instead.
1802 #:make-flags (list (string-append "CFLAGS=-I"
1803 (assoc-ref %build-inputs "libtirpc")
1804 "/include/tirpc -ltirpc"))
1806 (modify-phases %standard-phases
1807 ;; lashd embeds an ancient version of sigsegv so we just skip it
1808 (add-after 'unpack 'skip-lashd
1810 (substitute* '("Makefile.am" "Makefile.in")
1813 #:configure-flags '("--disable-static")))
1818 ("libtirpc" ,libtirpc)
1819 ("readline" ,readline)
1820 ("python" ,python-2)))
1821 ;; According to pkg-config, packages depending on lash also need to have
1822 ;; at least the following packages declared as inputs.
1824 `(("alsa-lib" ,alsa-lib)
1826 ("libxml2" ,libxml2)))
1828 `(("pkg-config" ,pkg-config)))
1829 (home-page "https://www.nongnu.org/lash/")
1830 (synopsis "Audio application session manager")
1832 "LASH is a session management system for audio applications. It allows
1833 you to save and restore audio sessions consisting of multiple interconneced
1834 applications, restoring program state (i.e. loaded patches) and the
1835 connections between them.")
1836 (license license:gpl2+)))
1838 (define-public libbs2b
1844 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1845 "/libbs2b-" version ".tar.lzma"))
1848 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1849 (build-system gnu-build-system)
1850 (native-inputs `(("pkg-config" ,pkg-config)))
1851 (inputs `(("libsndfile" ,libsndfile)))
1852 (home-page "https://sourceforge.net/projects/bs2b/")
1853 (synopsis "Bauer stereophonic-to-binaural DSP")
1855 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1856 designed to improve headphone listening of stereo audio records. Recommended
1857 for headphone prolonged listening to disable superstereo fatigue without
1858 essential distortions.")
1859 (license license:expat)))
1861 (define-public ladspa-bs2b
1863 (name "ladspa-bs2b")
1868 "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/"
1869 version "/" name "-" version ".tar.gz"))
1872 "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2"))))
1873 (build-system gnu-build-system)
1874 (native-inputs `(("pkg-config" ,pkg-config)))
1875 (inputs `(("ladspa" ,ladspa)
1876 ("libbs2b" ,libbs2b)))
1877 (home-page "https://sourceforge.net/projects/bs2b/")
1878 (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin")
1879 (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and
1880 plugins is designed to improve headphone listening of stereo audio records.
1881 Recommended for headphone prolonged listening to disable superstereo fatigue
1882 without essential distortions. This package contains a LADSPA plugin for use
1883 with applications that support them (e.g. PulseAudio).")
1884 (license license:gpl2+)))
1886 (define-public liblo
1892 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1893 "/liblo-" version ".tar.gz"))
1896 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
1897 (build-system gnu-build-system)
1899 `(;; liblo test FAILED
1900 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1902 (home-page "http://liblo.sourceforge.net")
1903 (synopsis "Implementation of the Open Sound Control protocol")
1905 "liblo is a lightweight library that provides an easy to use
1906 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
1907 (license license:lgpl2.1+)))
1909 (define-public python-pyaudio
1911 (name "python-pyaudio")
1916 (uri (pypi-uri "PyAudio" version))
1919 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
1920 (build-system python-build-system)
1922 `(("portaudio" ,portaudio)))
1923 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
1924 (synopsis "Bindings for PortAudio v19")
1925 (description "This package provides bindings for PortAudio v19, the
1926 cross-platform audio input/output stream library.")
1927 (license license:expat)))
1929 (define-public python2-pyaudio
1930 (package-with-python2 python-pyaudio))
1932 (define-public python-pyliblo
1934 (name "python-pyliblo")
1938 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1942 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1943 (build-system python-build-system)
1944 (arguments `(#:tests? #f)) ;no tests
1946 `(("python-cython" ,python-cython)))
1948 `(("liblo" ,liblo)))
1949 (home-page "http://das.nasophon.de/pyliblo/")
1950 (synopsis "Python bindings for liblo")
1952 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1953 library. It supports almost the complete functionality of liblo, allowing you
1954 to send and receive OSC messages using a nice and simple Python API. Also
1955 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1956 (license license:lgpl2.1+)))
1958 (define-public python2-pyliblo
1959 (package-with-python2 python-pyliblo))
1967 (uri (string-append "https://download.drobilla.net/lilv-"
1968 version ".tar.bz2"))
1971 "1p3hafsxgs5d4za7n66lf5nz74qssfqpmk520cm7iq2njvvlqm2z"))))
1972 (build-system waf-build-system)
1974 `(#:tests? #f ; no check target
1976 (modify-phases %standard-phases
1977 (add-before 'configure 'set-ldflags
1978 (lambda* (#:key outputs #:allow-other-keys)
1980 (string-append "-Wl,-rpath="
1981 (assoc-ref outputs "out") "/lib"))
1983 (add-after 'unpack 'full-store-path-to-shared-library
1984 (lambda* (#:key outputs #:allow-other-keys)
1985 (with-directory-excursion "bindings/python"
1986 (substitute* "lilv.py"
1987 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
1988 "/lib/liblilv-0.so"))))
1990 ;; Required by lilv-0.pc.
1995 ("sratom" ,sratom)))
1997 `(("python" ,python)
1998 ("pkg-config" ,pkg-config)))
1999 (home-page "https://drobilla.net/software/lilv")
2000 (synopsis "Library to simplify use of LV2 plugins in applications")
2002 "Lilv is a C library to make the use of LV2 plugins as simple as possible
2003 for applications. Lilv is the successor to SLV2, rewritten to be
2004 significantly faster and have minimal dependencies.")
2005 (license license:isc)))
2013 (uri (string-append "http://lv2plug.in/spec/lv2-"
2014 version ".tar.bz2"))
2017 "0gs7401xz23q9vajqr31aa2db8dvssgyh5zrvr4ipa6wig7yb8wh"))))
2018 (build-system waf-build-system)
2020 `(#:tests? #f ; no check target
2021 #:configure-flags '("--no-plugins")))
2023 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
2024 `(("libsndfile" ,libsndfile)))
2026 `(("pkg-config" ,pkg-config)))
2027 (home-page "http://lv2plug.in/")
2028 (synopsis "LV2 audio plugin specification")
2030 "LV2 is an open specification for audio plugins and host applications.
2031 At its core, LV2 is a simple stable interface, accompanied by extensions which
2032 add functionality to support the needs of increasingly powerful audio
2034 (license license:isc)))
2036 (define-public lv2-mda-piano
2038 (name "lv2-mda-piano")
2043 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
2045 (file-name (git-file-name name version))
2048 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
2049 (build-system gnu-build-system)
2051 `(#:make-flags (list
2053 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2054 #:tests? #f ; no check target
2055 #:phases (modify-phases %standard-phases (delete 'configure))))
2060 `(("pkg-config" ,pkg-config)))
2061 (native-search-paths
2062 (list (search-path-specification
2063 (variable "LV2_PATH")
2064 (files '("lib/lv2")))))
2065 (home-page "https://elephly.net/lv2/mdapiano.html")
2066 (synopsis "LV2 port of the mda Piano plugin")
2067 (description "An LV2 port of the mda Piano VSTi.")
2068 (license license:gpl3+)))
2070 (define-public lv2-mda-epiano
2071 (package (inherit lv2-mda-piano)
2072 (name "lv2-mda-epiano")
2074 `(#:make-flags (list
2076 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2077 #:tests? #f ; no check target
2078 #:phases (modify-phases %standard-phases (delete 'configure))))
2079 (home-page "https://elephly.net/lv2/mdaepiano.html")
2080 (synopsis "LV2 port of the mda EPiano plugin")
2081 (description "An LV2 port of the mda EPiano VSTi.")))
2090 (url "https://github.com/lvtk/lvtk.git")
2092 (file-name (git-file-name name version))
2095 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
2096 (build-system waf-build-system)
2098 `(#:tests? #f ; no check target
2101 (list (string-append "--boost-includes="
2102 (assoc-ref %build-inputs "boost")
2109 `(("pkg-config" ,pkg-config)))
2110 (home-page "https://github.com/lvtk/lvtk")
2111 (synopsis "C++ libraries for LV2 plugins")
2113 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2114 extensions into easy to use C++ classes. It is the successor of
2116 (license license:gpl3+)))
2118 (define-public openal
2125 "https://openal-soft.org/openal-releases/openal-soft-"
2126 version ".tar.bz2"))
2129 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2130 (build-system cmake-build-system)
2132 `(#:tests? #f ; no check target
2134 (modify-phases %standard-phases
2136 'unpack 'use-full-library-paths
2137 (lambda* (#:key inputs #:allow-other-keys)
2138 (substitute* "alc/backends/pulseaudio.cpp"
2139 (("#define PALIB \"libpulse\\.so\\.0\"")
2140 (string-append "#define PALIB \""
2141 (assoc-ref inputs "pulseaudio")
2142 "/lib/libpulse.so.0"
2144 (substitute* "alc/backends/alsa.cpp"
2145 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2146 (string-append "LoadLib(\""
2147 (assoc-ref inputs "alsa-lib")
2148 "/lib/libasound.so.2"
2152 `(("alsa-lib" ,alsa-lib)
2153 ("pulseaudio" ,pulseaudio)))
2154 (synopsis "3D audio API")
2156 "OpenAL provides capabilities for playing audio in a virtual 3D
2157 environment. Distance attenuation, doppler shift, and directional sound
2158 emitters are among the features handled by the API. More advanced effects,
2159 including air absorption, occlusion, and environmental reverb, are available
2160 through the EFX extension. It also facilitates streaming audio, multi-channel
2161 buffers, and audio capture.")
2162 (home-page "https://openal-soft.org/")
2163 (license license:lgpl2.0+)))
2165 (define-public freealut
2171 ;; Upstream url is unclear, many systems use Fedora, there is also
2172 ;; https://github.com/vancegroup/freealut though the status of it
2173 ;; (official? unofficial?) is not clear.
2175 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2176 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2177 "-" version ".tar.gz"))
2180 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2181 (build-system cmake-build-system)
2183 `(#:tests? #f)) ; no check target
2185 `(("openal" ,openal)))
2186 (synopsis "Free implementation of OpenAL's ALUT standard")
2187 (description "freealut is the OpenAL Utility Toolkit.")
2188 (home-page "https://kcat.strangesoft.net/openal.html")
2189 (license license:lgpl2.0)))
2191 (define-public patchage
2197 (uri (string-append "https://download.drobilla.net/patchage-"
2202 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
2203 (build-system waf-build-system)
2205 `(#:tests? #f ; no check target
2206 #:python ,python-2))
2208 `(("alsa-lib" ,alsa-lib)
2214 ("dbus-glib" ,dbus-glib)))
2216 `(("pkg-config" ,pkg-config)))
2217 (home-page "https://drobilla.net/software/patchage/")
2218 (synopsis "Modular patch bay for audio and MIDI systems")
2220 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2222 (license license:gpl3+)))
2224 (define-public pcaudiolib
2228 (home-page "https://github.com/espeak-ng/pcaudiolib")
2231 (uri (git-reference (url home-page) (commit version)))
2232 (file-name (git-file-name name version))
2235 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2236 (build-system gnu-build-system)
2238 `(#:configure-flags '("--disable-static")))
2240 `(("autoconf" ,autoconf)
2241 ("automake" ,automake)
2242 ("libtool" ,libtool)
2243 ("pkg-config" ,pkg-config)
2246 `(("alsa-lib" ,alsa-lib)
2247 ("pulseaudio" ,pulseaudio)))
2248 (synopsis "Portable C audio library")
2250 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2251 different audio devices such as ALSA or PulseAudio.")
2252 (license (list license:gpl3+
2253 ;; The bundled TPCircularBuffer uses a custom license.
2254 (license:non-copyleft
2255 "file://src/TPCircularBuffer/README.markdown")))))
2257 (define-public qjackctl
2263 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2264 version "/qjackctl-" version ".tar.gz"))
2267 "1saywsda9m124rmjp7i3n0llryaliabjxhqhvqr6dm983qy7pypk"))))
2268 (build-system gnu-build-system)
2270 '(#:tests? #f)) ; no check target
2273 ("alsa-lib" ,alsa-lib)
2275 ("qtx11extras" ,qtx11extras)))
2277 `(("pkg-config" ,pkg-config)
2278 ("qttools" ,qttools)))
2279 (home-page "https://qjackctl.sourceforge.io/")
2280 (synopsis "Jack server control application")
2281 (description "Control a Jack server. Allows you to plug various sources
2282 into various outputs and to start, stop and configure jackd")
2283 (license license:gpl2+)))
2285 (define-public qjackrcd
2292 (url "https://github.com/orouits/qjackrcd.git")
2293 (commit (string-append "v" version))))
2294 (file-name (git-file-name name version))
2297 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2298 (build-system gnu-build-system)
2301 (modify-phases %standard-phases
2303 (lambda* (#:key outputs #:allow-other-keys)
2305 (string-append "PREFIX="
2306 (assoc-ref outputs "out"))))))))
2308 `(("qtbase" ,qtbase))) ; for qmake
2311 ("libsndfile" ,libsndfile)
2312 ("qtbase" ,qtbase)))
2313 (home-page "https://sourceforge.net/projects/qjackrcd/")
2314 (synopsis "Stereo audio recorder for JACK")
2315 (description "QJackRcd is a simple graphical stereo recorder for JACK
2316 supporting silence processing for automatic pause, file splitting, and
2317 background file post-processing.")
2318 (license license:gpl2+)))
2320 (define-public supercollider
2322 (name "supercollider")
2327 (url "https://github.com/supercollider/supercollider.git")
2328 (commit (string-append "Version-" version))
2329 ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack
2331 (file-name (git-file-name name version))
2334 "02v911w2kdbg3kfl593lb2ig4sjbfxzv20a0vbcymhfzpvp1x6xp"))))
2335 (build-system cmake-build-system)
2337 '("out" ;core language
2340 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
2341 "-DSC_QT=ON" "-DCMAKE_BUILD_TYPE=Release"
2342 "-DFORTIFY=ON" "-DLIBSCSYNTH=ON"
2343 "-DSC_EL=off") ;scel is packaged individually as
2345 #:modules ((guix build utils)
2346 (guix build cmake-build-system)
2349 (modify-phases %standard-phases
2350 (add-after 'unpack 'rm-bundled-libs
2352 ;; The build system doesn't allow us to unbundle the following
2353 ;; libraries. hidapi is also heavily patched.
2354 (let ((keep-dirs '("nova-simd" "nova-tt" "hidapi" "TLSF-2.4.6"
2355 "oscpack_1_1_0" "." "..")))
2356 (with-directory-excursion "./external_libraries"
2358 delete-file-recursively
2361 (and (eq? (stat:type (stat x)) 'directory)
2362 (not (member (basename x) keep-dirs))))))))
2363 (substitute* "lang/CMakeLists.txt"
2364 (("include\\(\\.\\./external_libraries/link/AbletonLinkConfig\\.cmake\\)")
2365 "find_package(AbletonLink NAMES AbletonLink ableton-link link REQUIRED)"))
2367 ;; Some tests are broken (see:
2368 ;; https://github.com/supercollider/supercollider/issues/3555 and
2369 ;; https://github.com/supercollider/supercollider/issues/1736
2370 (add-after 'rm-bundled-libs 'disable-broken-tests
2372 (substitute* "testsuite/server/supernova/CMakeLists.txt"
2373 (("server_test.cpp")
2375 (("perf_counter_test.cpp")
2377 (substitute* "testsuite/CMakeLists.txt"
2378 (("add_subdirectory\\(sclang\\)")
2380 (delete-file "testsuite/sclang/CMakeLists.txt")
2382 (add-after 'disable-broken-tests 'patch-scclass-dir
2383 (lambda* (#:key outputs #:allow-other-keys)
2384 (let* ((out (assoc-ref outputs "out"))
2387 "/share/SuperCollider/SCClassLibrary")))
2388 (substitute* "lang/LangSource/SC_LanguageConfig.cpp"
2390 "SC_Filesystem::instance\\(\\)\\.getDirectory"
2391 "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME"))
2392 (string-append "Path(\"" scclass-dir "\")")))
2394 (add-before 'install 'install-ide
2395 (lambda* (#:key outputs #:allow-other-keys)
2396 (let* ((out (assoc-ref outputs "out"))
2397 (ide (assoc-ref outputs "ide"))
2398 (scide "editors/sc-ide/scide"))
2400 (string-append ide "/bin"))
2404 `(("ableton-link" ,ableton-link)
2405 ("pkg-config" ,pkg-config)
2406 ("qttools" ,qttools)))
2409 ("libsndfile" ,libsndfile)
2412 ("readline" ,readline) ;readline support for sclang's CLI
2413 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2414 ("eudev" ,eudev) ;for user interactions with devices
2415 ("avahi" ,avahi) ;zeroconf service discovery support
2418 ("boost-sync" ,boost-sync)
2419 ("yaml-cpp" ,yaml-cpp)
2421 ("qtdeclarative" ,qtdeclarative)
2423 ("qtwebchannel" ,qtwebchannel)
2424 ("qtwebsockets" ,qtwebsockets)))
2425 (propagated-inputs ;to get native-search-path
2426 `(("qtwebengine" ,qtwebengine)))
2427 (home-page "https://github.com/supercollider/supercollider")
2428 (synopsis "Synthesis engine and programming language")
2429 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2430 @code{supernova}) and programming language (@code{sclang}). It can be used
2431 for experimenting with sound synthesis and algorithmic composition.
2433 SuperCollider requires jackd to be installed in your user profile and your
2434 user must be allowed to access the realtime features of the kernel. Search
2435 for \"realtime\" in the index of the Guix manual to learn how to achieve this
2436 using Guix System.")
2437 (license license:gpl2+)))
2445 (uri (string-append "https://download.drobilla.net/raul-"
2446 version ".tar.bz2"))
2449 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2450 (build-system waf-build-system)
2452 `(#:python ,python-2
2453 #:tests? #f)) ; no check target
2458 `(("pkg-config" ,pkg-config)))
2459 (home-page "https://drobilla.net/software/raul/")
2460 (synopsis "Real-time audio utility library")
2462 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2463 aimed at audio/musical applications.")
2464 (license license:gpl2+)))
2466 (define-public raul-devel
2467 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2469 (package (inherit raul)
2471 (version (string-append "0.8.9-" revision "."
2472 (string-take commit 9)))
2476 (url "https://git.drobilla.net/raul.git")
2478 (file-name (string-append name "-" version "-checkout"))
2481 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2483 (define-public resample
2489 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
2493 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
2494 (build-system gnu-build-system)
2496 `(("autoconf" ,autoconf)
2497 ("automake" ,automake)
2498 ("pkg-config" ,pkg-config)
2499 ("libtool" ,libtool)))
2500 (synopsis "Real-time library for sampling rate conversion")
2501 (description "The @command{resample} software package contains free
2502 sampling-rate conversion and filter design utilities.")
2503 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
2504 (license license:lgpl2.1+)))
2506 (define-public rubberband
2513 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2516 (file-name (string-append name "-" version ".tar.bz2"))
2519 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
2520 (build-system gnu-build-system)
2522 `(#:tests? #f ; no check target
2524 (modify-phases %standard-phases
2525 (add-after 'unpack 'skip-jni-installation
2526 ;; ‘make install’ unconditionally installs librubberband-jni.so,
2527 ;; which is never built by ‘make all’. Skip it.
2529 (substitute* "Makefile.in"
2530 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
2533 `(("ladspa" ,ladspa)
2534 ("libsamplerate" ,libsamplerate)
2537 `(("pkg-config" ,pkg-config)))
2538 (home-page "https://breakfastquay.com/rubberband/")
2539 (synopsis "Audio time-stretching and pitch-shifting library")
2541 "Rubber Band is a library and utility program that permits changing the
2542 tempo and pitch of an audio recording independently of one another.")
2543 (license license:gpl2+)))
2545 (define-public rtmidi
2551 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
2552 "/release/rtmidi-" version ".tar.gz"))
2553 (file-name (string-append "rtmidi-" version ".tar.gz"))
2556 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))
2557 (build-system gnu-build-system)
2560 ("alsa-lib" ,alsa-lib)))
2562 `(("autoconf" ,autoconf)
2563 ("automake" ,automake)
2564 ("libtool" ,libtool)
2565 ("pkg-config" ,pkg-config)))
2566 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
2567 (synopsis "Cross-platform MIDI library for C++")
2569 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2570 classes) that provide a common cross-platform API for realtime MIDI
2572 (license license:expat)))
2574 (define-public sratom
2580 (uri (string-append "https://download.drobilla.net/sratom-"
2581 version ".tar.bz2"))
2584 "0vh0biy3ngpzzgdml309c2mqz8xq9q0hlblczb4c6alhp0a8yv0l"))))
2585 (build-system waf-build-system)
2586 (arguments `(#:tests? #f)) ;no check target
2588 ;; In Requires of sratom-0.pc.
2593 `(("pkg-config" ,pkg-config)))
2594 (home-page "https://drobilla.net/software/sratom/")
2595 (synopsis "Library for serialising LV2 atoms to/from RDF")
2597 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2598 the Turtle syntax.")
2599 (license license:isc)))
2607 (uri (string-append "https://download.drobilla.net/suil-"
2608 version ".tar.bz2"))
2611 "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06"))))
2612 (build-system waf-build-system)
2614 `(#:tests? #f)) ;no check target
2621 `(("pkg-config" ,pkg-config)))
2622 (home-page "https://drobilla.net/software/suil/")
2623 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2625 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2627 Suil makes it possible to load a UI of a toolkit in a host using another
2628 toolkit. The API is designed such that hosts do not need to explicitly
2629 support specific toolkits – if Suil supports a particular toolkit, then UIs in
2630 that toolkit will work in all hosts that use Suil automatically.
2632 Suil currently supports every combination of Gtk, Qt, and X11.")
2633 (license license:isc)))
2635 (define-public timidity++
2641 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2642 "/TiMidity++-" version
2643 "/TiMidity++-" version ".tar.bz2"))
2646 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2647 (build-system gnu-build-system)
2650 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2654 (string-append "--with-default-path="
2655 (assoc-ref %outputs "out") "/etc/timidity"))
2657 (modify-phases %standard-phases
2658 (add-after 'install 'install-config
2660 (let ((out (string-append (assoc-ref %outputs "out")
2663 (call-with-output-file
2664 (string-append out "/timidity.cfg")
2666 (format port (string-append "source "
2667 (assoc-ref %build-inputs "freepats")
2668 "/share/freepats/freepats.cfg")))))
2671 `(("alsa-lib" ,alsa-lib)
2676 ("libvorbis" ,libvorbis)
2678 ("ncurses" ,ncurses)
2679 ("freepats" ,freepats)))
2681 `(("pkg-config" ,pkg-config)))
2682 (home-page "http://timidity.sourceforge.net/")
2683 (synopsis "Software synthesizer for playing MIDI files")
2685 "TiMidity++ is a software synthesizer. It can play MIDI files by
2686 converting them into PCM waveform data; give it a MIDI data along with digital
2687 instrument data files, then it synthesizes them in real-time, and plays. It
2688 can not only play sounds, but also can save the generated waveforms into hard
2689 disks as various audio file formats.")
2690 (license license:gpl2+)))
2699 "https://code.soundsoftware.ac.uk"
2700 "/attachments/download/1520/vamp-plugin-sdk-"
2704 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
2705 (build-system gnu-build-system)
2707 `(#:tests? #f ; no check target
2709 (modify-phases %standard-phases
2710 (add-after 'install 'remove-libvamp-hostsdk.la
2711 (lambda* (#:key outputs #:allow-other-keys)
2712 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2713 (for-each delete-file
2714 (let ((out (assoc-ref outputs "out")))
2715 (list (string-append out "/lib/libvamp-sdk.la")
2716 (string-append out "/lib/libvamp-hostsdk.la"))))
2719 `(("libsndfile" ,libsndfile)))
2721 `(("pkg-config" ,pkg-config)))
2722 (home-page "https://vamp-plugins.org")
2723 (synopsis "Modular and extensible audio processing system")
2725 "Vamp is an audio processing plugin system for plugins that extract
2726 descriptive information from audio data — typically referred to as audio
2727 analysis plugins or audio feature extraction plugins.")
2730 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
2732 (define-public libsbsms
2739 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2740 "/libsbsms-" version ".tar.gz"))
2742 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2743 (build-system gnu-build-system)
2744 (native-inputs `(("automake" ,automake)))
2747 ;; Disable the use of SSE unless on x86_64.
2748 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2749 (%current-system))))
2753 (modify-phases %standard-phases
2755 'unpack 'fix-ar-lib-path
2756 (lambda* (#:key inputs #:allow-other-keys)
2757 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2758 (delete-file "ar-lib")
2760 (string-append (assoc-ref inputs "automake") "/share/automake-"
2761 ,(package-version automake) "/ar-lib")
2764 (home-page "http://sbsms.sourceforge.net/")
2765 (synopsis "Library for time stretching and pitch scaling of audio")
2767 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2768 stretching and pitch scaling of audio. This package contains the library.")
2769 ;; There is no explicit declaration of a license, but a COPYING file
2771 (license license:gpl2)))
2773 (define-public wavpack
2779 (uri (string-append "http://www.wavpack.com/"
2780 "wavpack-" version ".tar.xz"))
2783 "1qvpvfx30kvrkw7y1g6r8xj109wszg1z0qmkfm17wf3flb7v3rbp"))))
2784 (build-system gnu-build-system)
2786 '(#:configure-flags '("--disable-static")))
2787 (home-page "http://www.wavpack.com/")
2788 (synopsis "Hybrid lossless audio codec")
2790 "WavPack is an audio compression format with lossless, lossy and hybrid
2791 compression modes. This package contains command-line programs and library to
2792 encode and decode wavpack files.")
2793 (license license:bsd-3)))
2795 (define-public libmodplug
2802 "mirror://sourceforge/modplug-xmms/"
2803 name "/" version "/" name "-" version ".tar.gz"))
2806 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
2807 (build-system gnu-build-system)
2808 (home-page "http://modplug-xmms.sourceforge.net/")
2809 (synopsis "Mod file playing library")
2811 "Libmodplug renders mod music files as raw audio data, for playing or
2812 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2813 supported. Optional features include high-quality resampling, bass expansion,
2814 surround and reverb.")
2815 (license license:public-domain)))
2817 (define-public libxmp
2823 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
2824 name "-" version ".tar.gz"))
2827 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
2828 (build-system gnu-build-system)
2829 (home-page "http://xmp.sourceforge.net/")
2830 (synopsis "Module player library")
2832 "Libxmp is a library that renders module files to PCM data. It supports
2833 over 90 mainstream and obscure module formats including Protracker (MOD),
2834 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2835 (license license:lgpl2.1+)))
2843 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
2844 name "-" version ".tar.gz"))
2847 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
2848 (build-system gnu-build-system)
2850 `(("pkg-config" ,pkg-config)))
2852 `(("libxmp" ,libxmp)
2853 ("pulseaudio" ,pulseaudio)))
2854 (home-page "http://xmp.sourceforge.net/")
2855 (synopsis "Extended module player")
2857 "Xmp is a portable module player that plays over 90 mainstream and
2858 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2859 Tracker 3 S3M and Impulse Tracker IT files.")
2860 (license license:gpl2+)))
2862 (define-public soundtouch
2870 (url "https://gitlab.com/soundtouch/soundtouch.git")
2872 (file-name (git-file-name name version))
2874 (base32 "174wgm3s0inmbnkrlnspxjwm2014qhjhkbdqa5r8rbfi0nzqxzsz"))))
2875 (build-system gnu-build-system)
2877 `(("autoconf" ,autoconf)
2878 ("automake" ,automake)
2879 ("libtool" ,libtool)
2881 (home-page "https://www.surina.net/soundtouch/")
2883 "Audio processing library for changing tempo, pitch and playback rate")
2885 "SoundTouch is an audio processing library for changing the tempo, pitch
2886 and playback rates of audio streams or audio files. It is intended for
2887 application developers writing sound processing tools that require tempo/pitch
2888 control functionality, or just for playing around with the sound effects.")
2889 (license license:lgpl2.1+)))
2897 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2898 name "-" version ".tar.bz2"))
2901 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2902 (build-system gnu-build-system)
2905 ;; The upstream asks to identify the distribution to diagnose SoX
2907 '("--with-distro=Guix System Distribution")))
2909 `(("pkg-config" ,pkg-config)))
2911 `(("alsa-lib" ,alsa-lib)
2915 ("libid3tag" ,libid3tag)
2916 ("libltdl" ,libltdl)
2919 ("libvorbis" ,libvorbis)
2920 ("pulseaudio" ,pulseaudio)))
2921 (home-page "http://sox.sourceforge.net")
2922 (synopsis "Sound processing utility")
2924 "SoX (Sound eXchange) is a command line utility that can convert
2925 various formats of computer audio files to other formats. It can also
2926 apply various effects to these sound files, and, as an added bonus, SoX
2927 can play and record audio files.")
2928 ;; sox.c is distributed under GPL, while the files that make up
2929 ;; libsox are licensed under LGPL.
2930 (license (list license:gpl2+ license:lgpl2.1+))))
2940 (string-append "mirror://sourceforge/soxr/soxr-" version
2943 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
2944 (build-system cmake-build-system)
2945 (arguments '(#:tests? #f)) ;no 'check' target
2946 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
2947 (synopsis "One-dimensional sample-rate conversion library")
2949 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2950 conversion. It may be used, for example, to resample PCM-encoded audio.")
2951 (license license:lgpl2.1+)))
2953 (define-public twolame
2960 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2961 "/twolame-" version ".tar.gz"))
2963 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
2964 (build-system gnu-build-system)
2966 `(("libsndfile" ,libsndfile)))
2969 ("which" ,which))) ;used in tests/test.pl
2970 (home-page "http://www.twolame.org/")
2971 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2973 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2974 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2976 (license license:lgpl2.1+)))
2978 (define-public portaudio
2981 (version "190600.20161030")
2986 "http://www.portaudio.com/archives/pa_stable_v"
2987 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2990 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
2991 (patches (search-patches "portaudio-audacity-compat.patch"))))
2992 (build-system gnu-build-system)
2994 ;; TODO: Add ASIHPI.
2995 `(("alsa-lib" ,alsa-lib)
2997 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
3000 `(("autoconf" ,autoconf)
3001 ("automake" ,automake)
3002 ("libtool" ,libtool)
3003 ("pkg-config" ,pkg-config)))
3005 '(#:tests? #f ;no 'check' target
3006 #:parallel-build? #f ;fails on some systems
3007 #:configure-flags '("--with-pic"
3009 ;; XXX: The following prevents a build error
3010 ;; because of missing depcomp when C++ bindings are
3012 "--disable-dependency-tracking")
3014 (modify-phases %standard-phases
3015 ;; This is needed for linking the static libraries
3016 (add-after 'unpack 'build-only-position-independent-code
3018 (substitute* "configure.in"
3019 (("AC_PROG_LIBTOOL" m)
3020 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
3021 (delete-file "configure")
3023 ;; Some headers are not installed by default, but are needed by
3024 ;; packages like Kaldi.
3025 (add-after 'install 'install-missing-headers
3026 (lambda* (#:key outputs #:allow-other-keys)
3027 (install-file "src/common/pa_ringbuffer.h"
3028 (string-append (assoc-ref outputs "out") "/include"))
3030 (home-page "http://www.portaudio.com/")
3031 (synopsis "Audio I/O library")
3033 "PortAudio is a portable C/C++ audio I/O library providing a simple API
3034 to record and/or play sound using a callback function or a blocking read/write
3036 (license license:expat)))
3038 (define-public qsynth
3045 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
3046 "/qsynth-" version ".tar.gz"))
3048 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
3049 (build-system gnu-build-system)
3051 `(#:tests? #f)) ; no "check" phase
3053 `(("qttools" ,qttools)
3054 ("pkg-config" ,pkg-config)))
3056 `(("fluidsynth" ,fluidsynth)
3058 ("qtx11extras" ,qtx11extras)))
3059 (home-page "https://qsynth.sourceforge.io")
3060 (synopsis "Graphical user interface for FluidSynth")
3062 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
3063 synthesizer written in C++.")
3064 (license license:gpl2+)))
3066 (define-public rsound
3074 (url "https://github.com/Themaister/RSound.git")
3075 (commit (string-append "v" version))))
3076 (file-name (git-file-name name version))
3078 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
3079 (build-system gnu-build-system)
3081 `(("alsa-lib" ,alsa-lib)
3084 ("libsamplerate" ,libsamplerate)
3086 ("portaudio" ,portaudio)
3087 ("pulseaudio" ,pulseaudio)))
3090 (modify-phases %standard-phases
3092 (lambda* (#:key outputs #:allow-other-keys)
3094 (invoke "./configure"
3095 (string-append "--prefix=" (assoc-ref outputs "out"))))))
3096 ;; No 'check' target.
3098 (home-page "https://themaister.net/rsound.html")
3099 (synopsis "Networked audio system")
3101 "RSound allows you to send audio from an application and transfer it
3102 directly to a different computer on your LAN network. It is an audio daemon
3103 with a much different focus than most other audio daemons.")
3104 (license license:gpl3+)))
3106 (define-public xjackfreak
3113 (url "https://github.com/johnhldavis/xjackfreak.git")
3114 (commit (string-append "v" version))))
3115 (file-name (git-file-name name version))
3118 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3119 (build-system gnu-build-system)
3122 (list (string-append "docdir=" (assoc-ref %outputs "out")
3123 "/share/doc/xjackfreak"))))
3128 ("libxext" ,libxext)))
3130 `(("pkg-config" ,pkg-config)))
3131 (home-page "https://github.com/johnhldavis/xjackfreak")
3132 (synopsis "JACK audio frequency analyzer and display")
3134 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3135 Connection Kit. It can display the FFT of any input, modify it and output the
3137 (license license:gpl3+)))
3139 (define-public zita-convolver
3141 (name "zita-convolver")
3146 "http://kokkinizita.linuxaudio.org"
3147 "/linuxaudio/downloads/zita-convolver-"
3148 version ".tar.bz2"))
3150 ;; Don't optimize for a specific processor architecture.
3152 (substitute* "source/Makefile"
3153 (("^CXXFLAGS \\+= -march=native") ""))
3155 (modules '((guix build utils)))
3158 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
3159 (build-system gnu-build-system)
3161 `(#:tests? #f ; no "check" target
3163 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3164 (string-append "SUFFIX="))
3166 (modify-phases %standard-phases
3167 (add-after 'unpack 'patch-makefile-and-enter-directory
3169 (substitute* "source/Makefile"
3170 (("ldconfig") "true")
3171 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3174 (add-after 'install 'install-symlink
3176 (symlink "libzita-convolver.so"
3177 (string-append (assoc-ref %outputs "out")
3178 "/lib/libzita-convolver.so.4"))
3180 ;; no configure script
3181 (delete 'configure))))
3182 (inputs `(("fftwf" ,fftwf)))
3183 (home-page "https://kokkinizita.linuxaudio.org")
3184 (synopsis "Fast, partitioned convolution engine library")
3186 "Zita convolver is a C++ library providing a real-time convolution
3188 (license license:gpl3+)))
3190 (define-public zita-resampler
3192 (name "zita-resampler")
3197 "http://kokkinizita.linuxaudio.org"
3198 "/linuxaudio/downloads/zita-resampler-"
3199 version ".tar.bz2"))
3201 ;; Don't optimize for a specific processor architecture.
3203 (substitute* '("apps/Makefile" "libs/Makefile")
3204 (("^CXXFLAGS \\+= -march=native") ""))
3206 (modules '((guix build utils)))
3209 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
3210 (build-system gnu-build-system)
3212 `(#:tests? #f ; no "check" target
3213 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3215 (modify-phases %standard-phases
3217 'unpack 'patch-makefile-and-enter-directory
3219 (substitute* "libs/Makefile"
3220 (("ldconfig") "true")
3221 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3225 'install 'install-symlink
3227 (symlink "libzita-resampler.so"
3228 (string-append (assoc-ref %outputs "out")
3229 "/lib/libzita-resampler.so.1"))
3231 ;; no configure script
3232 (delete 'configure))))
3233 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
3234 (synopsis "C++ library for resampling audio signals")
3236 "Libzita-resampler is a C++ library for resampling audio signals. It is
3237 designed to be used within a real-time processing context, to be fast, and to
3238 provide high-quality sample rate conversion.")
3239 (license license:gpl3+)))
3241 (define-public zita-alsa-pcmi
3243 (name "zita-alsa-pcmi")
3248 "http://kokkinizita.linuxaudio.org"
3249 "/linuxaudio/downloads/zita-alsa-pcmi-"
3250 version ".tar.bz2"))
3253 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
3254 (build-system gnu-build-system)
3256 `(#:tests? #f ; no "check" target
3257 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3259 (modify-phases %standard-phases
3260 (add-after 'unpack 'patch-makefile-and-enter-directory
3262 (substitute* "libs/Makefile"
3263 (("ldconfig") "true")
3264 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3267 (add-after 'install 'install-symlink
3269 (symlink "libzita-alsa-pcmi.so"
3270 (string-append (assoc-ref %outputs "out")
3271 "/lib/libzita-alsa-pcmi.so.0"))
3273 ;; no configure script
3274 (delete 'configure))))
3276 `(("alsa-lib" ,alsa-lib)
3278 (home-page "https://kokkinizita.linuxaudio.org")
3279 (synopsis "C++ wrapper around the ALSA API")
3281 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3282 access to ALSA PCM devices, taking care of the many functions required to
3283 open, initialise and use a hw: device in mmap mode, and providing floating
3285 (license license:gpl3+)))
3287 (define-public cuetools
3294 (url "https://github.com/svend/cuetools.git")
3296 (file-name (git-file-name name version))
3299 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
3300 (build-system gnu-build-system)
3301 ;; The source checkout is not bootstrapped.
3303 `(("autoconf" ,autoconf)
3304 ("automake" ,automake)
3307 (synopsis "Cue and toc file parsers and utilities")
3308 (description "Cuetools is a set of programs that are useful for manipulating
3309 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3310 files are a way to represent the layout of a data or audio CD in a
3311 machine-readable ASCII format.")
3312 (home-page "https://github.com/svend/cuetools")
3313 (license license:gpl2+)))
3315 (define-public shntool
3321 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
3322 "shntool-" version ".tar.gz"))
3325 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3326 (build-system gnu-build-system)
3327 (synopsis "WAVE audio data processing tool")
3328 (description "shntool is a multi-purpose WAVE data processing and reporting
3329 utility. File formats are abstracted from its core, so it can process any file
3330 that contains WAVE data, compressed or not---provided there exists a format
3331 module to handle that particular file type. It can also generate CUE files, and
3332 use them split WAVE data into multiple files.")
3333 (home-page "http://etree.org/shnutils/shntool/")
3334 ;; 'install-sh' bears the x11 license
3335 (license (list license:gpl2+ license:x11))))
3337 (define-public dcadec
3344 (url "https://github.com/foo86/dcadec.git")
3345 (commit (string-append "v" version))))
3346 (file-name (git-file-name name version))
3349 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
3350 (build-system gnu-build-system)
3352 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3356 ;; Build shared library.
3358 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3359 ;; Set proper runpath.
3360 (string-append "LDFLAGS=-Wl,-rpath="
3361 (assoc-ref %outputs "out")
3364 (modify-phases %standard-phases
3365 ;; No configure script, just a hand-written Makefile.
3366 (delete 'configure))))
3367 (synopsis "DTS Coherent Acoustics decoder")
3368 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3369 with support for HD extensions.")
3370 (home-page "https://github.com/foo86/dcadec")
3371 (license license:lgpl2.1+)))
3373 (define-public bs1770gain
3380 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3381 version "/bs1770gain-" version ".tar.gz"))
3383 (base32 "13hsbqj1dkpz1gbclnjxv50kr7b4gcjai6c1l38g01433h217qjc"))
3384 (modules '((guix build utils)))
3388 (substitute* (find-files "." "\\.[ch]$")
3389 (("^ \\* N..o.*") ""))
3390 (substitute* "libbg/bgx.c"
3391 (("#define BG.* ") "#define BS ")
3392 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
3393 (("\"( #|N).*\"") "\"\""))
3394 (substitute* (list "config.h"
3397 (("https?://bs1770gain[^/]*/")
3398 "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html"))
3400 (build-system gnu-build-system)
3401 (inputs `(("ffmpeg" ,ffmpeg)
3403 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
3404 (synopsis "Tool to adjust loudness of media files")
3406 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3407 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3408 loudness of audio and video files to the same level.")
3409 (license license:gpl2+)))
3411 (define-public filteraudio
3412 (let ((revision "1")
3413 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3415 (name "filteraudio")
3416 (version (string-append "0.0.0-" revision "."
3417 (string-take commit 7)))
3422 (url "https://github.com/irungentoo/filter_audio.git")
3424 (file-name (string-append name "-" version "-checkout"))
3427 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3428 (build-system gnu-build-system)
3430 '(#:make-flags (list (string-append "PREFIX=" %output)
3432 #:tests? #f ; No tests
3434 (modify-phases %standard-phases
3435 ;; No configure script
3436 (delete 'configure))))
3437 (synopsis "Lightweight audio filtering library")
3438 (description "An easy to use audio filtering library made from webrtc
3439 code, used in @code{libtoxcore}.")
3440 (home-page "https://github.com/irungentoo/filter_audio")
3441 (license license:bsd-3))))
3451 (string-append "http://www.quut.com/" name "/" name
3452 "-" version ".tar.gz"))
3455 "1xkha9ss5g5qnfaybi8il0mcvp8knwg9plgh8404vh58d0pna0s9"))))
3456 (build-system gnu-build-system)
3458 `(#:test-target "tst"
3459 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
3461 (modify-phases %standard-phases
3462 (add-after 'unpack 'add-fpic-ccflag
3464 ;; The -fPIC compiler option is needed when building
3466 (substitute* "Makefile"
3468 (string-append all "CCFLAGS += -fPIC\n")))
3470 (add-before 'install 'pre-install
3472 (let ((out (assoc-ref %outputs "out")))
3473 (mkdir-p (string-append out "/inc"))
3474 (mkdir-p (string-append out "/man"))
3475 (mkdir-p (string-append out "/man/man1"))
3476 (mkdir-p (string-append out "/man/man3"))
3477 (mkdir-p (string-append out "/bin"))
3478 (mkdir-p (string-append out "/lib")))
3480 (add-after 'install 'post-install
3482 (let ((out (assoc-ref %outputs "out")))
3483 (rename-file (string-append out "/inc")
3484 (string-append out "/include"))
3485 (mkdir-p (string-append out "/include/gsm"))
3486 (copy-recursively "inc"
3487 (string-append out "/include/gsm")))
3489 (delete 'configure)))) ; no configure script
3490 (synopsis "GSM 06.10 lossy speech compression library")
3491 (description "This C library provides an encoder and a decoder for the GSM
3492 06.10 RPE-LTP lossy speech compression algorithm.")
3493 (home-page "http://quut.com/gsm/")
3494 (license (license:non-copyleft "file://COPYRIGHT"))))
3496 (define-public python-pyalsaaudio
3498 (name "python-pyalsaaudio")
3502 (uri (pypi-uri "pyalsaaudio" version))
3505 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3506 (build-system python-build-system)
3508 `(#:tests? #f)) ; tests require access to ALSA devices.
3510 `(("alsa-lib" ,alsa-lib)))
3511 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
3512 (synopsis "ALSA wrappers for Python")
3514 "This package contains wrappers for accessing the ALSA API from Python.
3515 It is currently fairly complete for PCM devices, and has some support for
3517 (license license:psfl)))
3519 (define-public python2-pyalsaaudio
3520 (package-with-python2 python-pyalsaaudio))
3522 (define-public bluez-alsa
3527 ;; The tarballs are mere snapshots and don't contain a
3528 ;; bootstrapped build system.
3531 (url "https://github.com/Arkq/bluez-alsa.git")
3532 (commit (string-append "v" version))))
3533 (file-name (git-file-name name version))
3536 "08mppgnjf1j2733bk9yf0cny6rfxxwiys0s62lz2zd2lpdl6d9lz"))))
3537 (build-system gnu-build-system)
3540 (list (string-append "--with-alsaplugindir="
3541 (assoc-ref %outputs "out")
3543 (string-append "--with-dbusconfdir="
3544 (assoc-ref %outputs "out")
3545 "/etc/dbus-1/system.d"))))
3547 `(("autoconf" ,autoconf)
3548 ("automake" ,automake)
3549 ("libtool" ,libtool)
3550 ("pkg-config" ,pkg-config)))
3552 `(("alsa-lib" ,alsa-lib)
3557 ("ncurses" ,ncurses)
3560 (home-page "https://github.com/Arkq/bluez-alsa")
3561 (synopsis "Bluetooth ALSA backend")
3562 (description "This project is a rebirth of a direct integration between
3563 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
3564 in favor of 3rd party audio applications. From now on, Bluez acts as a
3565 middleware between an audio application, which implements Bluetooth audio
3566 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
3567 audio profiles in Bluez, so in theory every Bluetooth device (with audio
3568 capabilities) can be connected. In order to access the audio stream, one has
3569 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
3570 on the ALSA software PCM plugin.")
3571 (license license:expat)))
3579 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
3580 "snd-" version ".tar.gz"))
3583 "13s8fahpsjygjdrcwmprcrz23ny3klaj2rh2xzdv3bfs69gxvhys"))))
3584 (build-system glib-or-gtk-build-system)
3586 `(#:tests? #f ; no tests
3587 #:out-of-source? #f ; for the 'install-doc' phase
3589 (let* ((out (assoc-ref %outputs "out"))
3590 (docdir (string-append out "/share/doc/"
3591 ,name "-" ,version)))
3592 (list "--with-alsa" "--with-jack" "--with-gmp"
3593 (string-append "--with-doc-dir=" docdir)))
3595 (modify-phases %standard-phases
3596 (add-after 'install 'install-doc
3597 (lambda* (#:key outputs #:allow-other-keys)
3598 (let* ((out (assoc-ref outputs "out"))
3599 (doc (string-append out "/share/doc/"
3600 ,name "-" ,version)))
3603 (install-file f doc))
3604 (find-files "." "\\.html$"))
3605 (copy-recursively "pix" (string-append doc "/pix"))
3608 `(("pkg-config" ,pkg-config)))
3610 `(("alsa-lib" ,alsa-lib)
3617 ("libsamplerate" ,libsamplerate)
3622 ("timidity++" ,timidity++)
3623 ("vorbis-tools" ,vorbis-tools)
3624 ("wavpack" ,wavpack)))
3625 (synopsis "Sound editor")
3626 (home-page "https://ccrma.stanford.edu/software/snd/")
3628 "Snd is a sound editor modelled loosely after Emacs. It can be
3629 customized and extended using either the s7 Scheme implementation (included in
3630 the Snd sources), Ruby, or Forth.")
3631 (license (license:non-copyleft "file://COPYING"))))
3633 (define-public noise-repellent
3635 (name "noise-repellent")
3640 (url "https://github.com/lucianodato/noise-repellent.git")
3642 (file-name (string-append name "-" version "-checkout"))
3645 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
3646 (build-system meson-build-system)
3649 (list (string-append "--prefix=" (assoc-ref %outputs "out")
3655 `(("pkg-config" ,pkg-config)))
3656 (home-page "https://github.com/lucianodato/noise-repellent")
3657 (synopsis "LV2 plugin for broadband noise reduction")
3658 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
3659 the following features:
3662 @item Spectral gating and spectral subtraction suppression rule
3663 @item Adaptive and manual noise thresholds estimation
3664 @item Adjustable noise floor
3665 @item Adjustable offset of thresholds to perform over-subtraction
3666 @item Time smoothing and a masking estimation to reduce artifacts
3667 @item Basic onset detector to avoid transients suppression
3668 @item Whitening of the noise floor to mask artifacts and to recover higher
3670 @item Option to listen to the residual signal
3672 @item Noise profile saved with the session
3675 (license license:lgpl3+)))
3677 (define-public cli-visualizer
3679 (name "cli-visualizer")
3685 (url "https://github.com/dpayne/cli-visualizer.git")
3686 (commit (string-append "v" version))))
3687 (file-name (git-file-name name version))
3689 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
3690 (build-system cmake-build-system)
3692 ;; TODO: Try using the latest googletest for versions > 1.8.
3693 `( ;; ("googletest" ,googletest-1.8)
3697 ("ncurses" ,ncurses)
3698 ("pulseaudio" ,pulseaudio)))
3701 ;; XXX Enable tests after patching them to use the system googletest.
3702 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
3704 (modify-phases %standard-phases
3705 (add-after 'install 'install-examples
3706 (lambda* (#:key outputs #:allow-other-keys)
3707 (with-directory-excursion "../source/examples"
3708 (delete-file "mac_osx_config")
3709 (for-each (lambda (file)
3712 (assoc-ref outputs "out")
3716 (home-page "https://github.com/dpayne/cli-visualizer/")
3717 (synopsis "Command-line audio visualizer")
3718 (description "@code{cli-visualizer} displays fast-Fourier
3719 transforms (FFTs) of the sound being played, as well as other graphical
3721 (license license:expat)))
3730 (url "https://github.com/karlstav/cava.git")
3732 (file-name (git-file-name name version))
3735 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
3736 (build-system gnu-build-system)
3738 `(("autoconf" ,autoconf)
3739 ("automake" ,automake)
3740 ("libtool" ,libtool)))
3743 ("ncurses" ,ncurses)
3744 ("pulseaudio" ,pulseaudio)))
3747 (list (string-append "PREFIX=" %output)
3748 (string-append "FONT_DIR=" %output "/share/consolefonts"))
3750 (let ((lib (string-append %output "/lib")))
3751 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
3753 (modify-phases %standard-phases
3755 (lambda* (#:key outputs #:allow-other-keys)
3756 (setenv "HOME" (getcwd))
3757 (invoke "sh" "autogen.sh")))
3758 (add-before 'build 'make-cava-ldflags
3759 (lambda* (#:key outputs #:allow-other-keys)
3760 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
3762 (add-after 'install 'data
3763 (lambda* (#:key outputs #:allow-other-keys)
3764 (for-each (lambda (file)
3766 (string-append (assoc-ref outputs "out")
3767 "/share/doc/examples")))
3768 (find-files "example_files"))
3770 (home-page "https://karlstav.github.io/cava/")
3771 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
3772 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
3773 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
3774 (license license:expat)))
3776 (define-public fluid-3
3777 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
3784 ;; Only one file is required, but the release bundles the whole
3785 ;; software which is 50MiB as tar and 200MiB unpacked. The website
3786 ;; directly links the soundfont release to the github file download.
3787 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
3788 commit "/share/sound/FluidR3Mono_GM.sf3"))
3789 (file-name (string-append name "-" version ".sf3"))
3792 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
3793 (build-system trivial-build-system)
3795 `(#:modules ((guix build utils))
3798 (use-modules (guix build utils))
3799 (let ((file (assoc-ref %build-inputs "source"))
3800 (out (string-append %output "/share/soundfonts")))
3802 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
3804 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
3805 (synopsis "Pro-quality GM soundfont")
3806 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
3807 (license license:expat))))
3809 (define-public libfdk
3817 (url "https://github.com/mstorsjo/fdk-aac")
3818 (commit (string-append "v" version))))
3819 (file-name (git-file-name name version))
3822 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
3823 (build-system gnu-build-system)
3825 `(("autoconf" ,autoconf)
3826 ("automake" ,automake)
3827 ("libtool" ,libtool)))
3828 (home-page "https://github.com/mstorsjo/fdk-aac")
3829 (synopsis "Fraunhofer FDK AAC library")
3830 (description "FDK is a library for encoding and decoding Advanced Audio
3831 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
3832 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
3833 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
3834 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
3835 library supports sample rates up to 96 kHz and up to eight channels (7.1
3837 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
3838 "https://www.gnu.org/licenses/license-list.html#fdk"))))
3840 (define-public libopenshot-audio
3842 (name "libopenshot-audio")
3847 (url "https://github.com/OpenShot/libopenshot-audio")
3848 (commit (string-append "v" version))))
3849 (file-name (git-file-name name version))
3852 "13if0m5mvlqly8gmbhschzb9papkgp3yqivklhb949dhy16m8zgf"))))
3853 (build-system cmake-build-system)
3855 `(("alsa-lib" ,alsa-lib)
3856 ;; The following are for JUCE GUI components:
3858 ("freetype" ,freetype)
3859 ("libxrandr" ,libxrandr)
3860 ("libxinerama" ,libxinerama)
3861 ("libxcursor" ,libxcursor)))
3863 `(#:tests? #f ;there are no tests
3865 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
3866 (assoc-ref %build-inputs "freetype")
3867 "/include/freetype2"))))
3868 (home-page "https://openshot.org")
3869 (synopsis "Audio editing and playback for OpenShot")
3870 (description "OpenShot Audio Library (libopenshot-audio) allows
3871 high-quality editing and playback of audio, and is based on the JUCE
3873 (license license:lgpl3+)))
3875 (define-public faudio
3883 (url "https://github.com/FNA-XNA/FAudio.git")
3885 (file-name (git-file-name name version))
3887 (base32 "0ckpr6ffz8ssfh1y850dhip5s5jv0j6n90qz5yx1v9d6gpwf08rp"))))
3889 '(#:tests? #f ; No tests.
3890 #:configure-flags '("-DFFMPEG=ON")))
3891 (build-system cmake-build-system)
3892 (native-inputs `(("pkg-config" ,pkg-config)))
3893 (inputs `(("ffmpeg" ,ffmpeg)
3895 (home-page "https://github.com/FNA-XNA/FAudio")
3896 (synopsis "XAudio reimplementation")
3897 (description "FAudio is an XAudio reimplementation that focuses solely on
3898 developing fully accurate DirectX Audio runtime libraries.")
3899 (license license:zlib)))
3901 (define-public gnaural
3904 (version "20110606")
3908 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
3912 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
3913 (build-system gnu-build-system)
3915 `(("alsa-lib" ,alsa-lib)
3917 ("libsndfile" ,libsndfile)
3918 ("portaudio" ,portaudio)))
3920 `(("pkg-config" ,pkg-config)))
3921 (home-page "http://gnaural.sourceforge.net/")
3922 (synopsis "Binaural beat synthesizer")
3923 (description "Gnaural is a programmable auditory binaural beat synthesizer
3924 intended to be used for brainwave entrainment. Gnaural supports creation of
3925 binaural beat tracks of different frequencies and exporting of tracks into
3926 different audio formats. Gnaural can also be linked over the internet with
3927 other Gnaural instances, allowing synchronous sessions between many users.")
3928 (license license:gpl2+)))
3930 (define-public darkice
3936 (uri (string-append "mirror://sourceforge/darkice/darkice/"
3937 version "/darkice-" version ".tar.gz"))
3939 (base32 "1rlxds7ssq7nk2in4s46xws7xy9ylxsqgcz85hxjgh17lsm0y39c"))
3941 (search-patches "darkice-workaround-fpermissive-error.patch"))))
3942 (build-system gnu-build-system)
3943 (native-inputs `(("pkg-config" ,pkg-config)))
3944 (inputs `(("lame" ,lame)
3945 ("libvorbis" ,libvorbis)
3947 ("twolame" ,twolame)
3948 ("alsa-lib" ,alsa-lib)
3949 ("pulseaudio" ,pulseaudio)
3951 ("libsamplerate" ,libsamplerate)))
3954 (list (string-append "--with-lame-prefix="
3955 (assoc-ref %build-inputs "lame")))))
3956 (home-page "http://www.darkice.org/")
3957 (synopsis "Live audio streamer")
3958 (description "DarkIce is a live audio streamer. It takes audio input from
3959 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
3960 stream to one or more IceCast and/or ShoutCast servers.")
3961 (license license:gpl3+)))
3963 (define-public libltc
3971 (string-append "https://github.com/x42/libltc/releases/download/v"
3972 version "/libltc-" version ".tar.gz"))
3975 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
3976 (build-system gnu-build-system)
3978 `(#:parallel-tests? #f)) ;tests fail otherwise
3980 `(("doxygen" ,doxygen)
3981 ("pkg-config" ,pkg-config)))
3982 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
3983 (description "Libltc is a POSIX-C Library for handling
3984 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
3985 (home-page "https://x42.github.io/libltc/")
3986 (license license:lgpl3+)))
3988 (define-public redkite
3996 (url "https://gitlab.com/geontime/redkite.git")
3997 (commit (string-append "v" version))))
3998 (file-name (git-file-name name version))
4001 "1747w1kg8y9jbl11xi018d85dm38xk7843pz26sh0k5fdv87a10q"))))
4002 (build-system cmake-build-system)
4004 `(#:tests? #f)) ;no tests included
4006 `(("cairo" ,cairo)))
4008 `(("pkg-config", pkg-config)))
4009 (synopsis "Small GUI toolkit")
4010 (description "Redkite is a small GUI toolkit developed in C++17 and
4011 inspired from other well known GUI toolkits such as Qt and GTK. It is
4012 minimal on purpose and is intended to be statically linked to applications,
4013 therefore satisfying any requirements they may have to be self contained,
4014 as is the case with audio plugins.")
4015 (home-page "https://gitlab.com/geontime/redkite")
4016 (license license:gpl3+)))
4018 (define-public carla
4027 (url "https://github.com/falkTX/Carla.git")
4028 (commit (string-append "v" version))))
4029 (file-name (git-file-name name version))
4032 "0fqgncqlr86n38yy7pa118mswfacmfczj7w9xx6c6k0jav3wk29k"))))
4033 (build-system gnu-build-system)
4035 `(#:tests? #f ; no "check" target
4037 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
4039 (modify-phases %standard-phases
4040 (delete 'configure) ; no configure script
4041 (add-before 'build 'set-CC-variable-and-show-features
4044 (invoke "make" "features")))
4045 (add-after 'install 'make-carla-executable
4046 (lambda* (#:key outputs #:allow-other-keys)
4047 (let ((out (assoc-ref outputs "out")))
4048 (chmod (string-append out "/share/carla/carla") #o555)
4050 (add-after 'install 'wrap-executables
4051 (lambda* (#:key outputs #:allow-other-keys)
4052 (let ((out (assoc-ref outputs "out")))
4053 (wrap-script (string-append out "/bin/carla")
4054 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
4057 `(("alsa-lib" ,alsa-lib)
4059 ("fluidsynth" ,fluidsynth)
4062 ("libsndfile" ,libsndfile)
4064 ("python-pyliblo" ,python-pyliblo)
4065 ("python-pyqt" ,python-pyqt)
4066 ("python-rdflib" ,python-rdflib)
4067 ;; python-pyqt shows the following error without python-wrapper:
4068 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
4069 ;; (ModuleNotFoundError: No module named 'PyQt5')
4070 ("python-wrapper" ,python-wrapper)
4075 ;; For WRAP-SCRIPT above.
4076 ("guile" ,guile-2.2)))
4078 `(("pkg-config" ,pkg-config)))
4079 (home-page "https://kx.studio/Applications:Carla")
4080 (synopsis "Audio plugin host")
4081 (description "Carla is a modular audio plugin host, with features like
4082 transport control, automation of parameters via MIDI CC and remote control
4083 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
4084 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
4085 default and preferred audio driver but also supports native drivers like ALSA.")
4086 (license license:gpl2+)))
4088 (define-public ecasound
4094 (uri (string-append "https://nosignal.fi/download/ecasound-"
4097 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
4098 (build-system gnu-build-system)
4099 (native-inputs `(("pkg-config" ,pkg-config)))
4100 ;; It would be nice to add mikmod to inputs if that gets packaged
4102 (inputs `(("alsa-lib" ,alsa-lib)
4106 ("vorbis-tools" ,vorbis-tools)
4109 ("timidity++" ,timidity++)
4110 ("libsndfile" ,libsndfile)
4111 ("libsamplerate" ,libsamplerate)
4112 ("ncurses" ,ncurses)
4115 (home-page "https://nosignal.fi/ecasound/index.php")
4116 (synopsis "Multitrack audio processing")
4117 (description "Ecasound is a software package designed for multitrack audio
4118 processing. It can be used for simple tasks like audio playback, recording and
4119 format conversions, as well as for multitrack effect processing, mixing,
4120 recording and signal recycling. Ecasound supports a wide range of audio inputs,
4121 outputs and effect algorithms. Effects and audio objects can be combined in
4122 various ways, and their parameters can be controlled by operator objects like
4123 oscillators and MIDI-CCs. A versatile console mode user-interface is included
4125 ;; As an exception to the above, the C, C++ and python implementations
4126 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
4127 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
4128 ;; that are not licensed under GPL.
4129 (license (list license:gpl2 license:lgpl2.1))))
4131 (define-public libaudec
4139 (url "https://git.zrythm.org/git/libaudec")
4140 (commit (string-append "v" version))))
4141 (file-name (git-file-name name version))
4144 "0lfydvs92b0hr72z71ci3yi356rjzi162pgms8dphgg18bz8dazv"))))
4145 (build-system meson-build-system)
4147 `(#:configure-flags `("-Denable_tests=true -Denable_ffmpeg=true")))
4149 `(("libsamplerate" ,libsamplerate)
4150 ("libsndfile" ,libsndfile)
4151 ("ffmpeg" ,ffmpeg)))
4153 `(("pkg-config", pkg-config)))
4154 (synopsis "Library for reading and resampling audio files")
4155 (description "libaudec is a wrapper library over ffmpeg, sndfile and
4156 libsamplerate for reading and resampling audio files, based on Robin Gareus'
4157 @code{audio_decoder} code.")
4158 (home-page "https://git.zrythm.org/cgit/libaudec")
4159 (license license:agpl3+)))
4161 (define-public lv2lint
4169 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
4171 (file-name (git-file-name name version))
4174 "1pspwqpzl2dw1hd9ra9yr53arqbbqjn7d7j0f7p9g3iqa76vblpi"))))
4175 (build-system meson-build-system)
4178 `("-Delf-tests=true" ; for checking symbol visibility
4179 "-Donline-tests=true"))) ; for checking URI existence
4185 `(("pkg-config", pkg-config)))
4186 (synopsis "LV2 plugin lint tool")
4187 (description "lv2lint is an LV2 lint-like tool that checks whether a
4188 given plugin and its UI(s) match up with the provided metadata and adhere
4189 to well-known best practices.")
4190 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
4191 (license license:artistic2.0)))
4193 (define-public lv2toweb
4201 (url "https://github.com/x42/lv2toweb")
4202 (commit (string-append "v" version))))
4203 (file-name (git-file-name name version))
4206 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
4207 (build-system gnu-build-system)
4209 `(#:tests? #f ; no "check" target
4210 #:make-flags (list "CC=gcc"
4211 (string-append "PREFIX=" (assoc-ref %outputs "out")))
4213 (modify-phases %standard-phases
4214 (delete 'configure))))
4219 `(("help2man", help2man)
4220 ("pkg-config", pkg-config)))
4221 (synopsis "Documentation generator for LV2 plugins")
4223 "lv2toweb allows the user to create an xhtml page with information
4224 about the given LV2 plugin, provided that the plugin and its UI(s) match up
4225 with the provided metadata and adhere to well-known best practices.")
4226 (home-page "https://github.com/x42/lv2toweb")
4227 (license (list license:isc license:gpl2))))
4229 (define-public ztoolkit
4237 (url "https://git.zrythm.org/git/ztoolkit")
4238 (commit (string-append "v" version))))
4239 (file-name (git-file-name name version))
4242 "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1"))))
4243 (build-system meson-build-system)
4246 ("libx11" ,libx11)))
4248 `(("pkg-config" ,pkg-config)))
4249 (synopsis "GUI toolkit for LV2 plugins")
4250 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
4251 inspired by GTK. It handles events and low level drawing on behalf of
4252 the user and provides a high-level API for managing the UI and custom
4253 widgets. ZToolkit is written in C and was created to be used for building
4254 audio plugin UIs, where the dependencies often need to be kept to a
4256 (home-page "https://git.zrythm.org/cgit/ztoolkit/")
4257 (license license:agpl3+)))
4259 (define-public ztoolkit-rsvg
4262 (name "ztoolkit-rsvg")
4264 `(#:configure-flags `("-Denable_rsvg=true")))
4266 `(("librsvg" ,librsvg)
4267 ,@(package-inputs ztoolkit)))
4268 (synopsis "ZToolkit with SVG support")))
4270 (define-public codec2
4278 (url "https://github.com/drowe67/codec2.git")
4279 (commit (string-append "v" version))))
4280 (file-name (git-file-name name version))
4282 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
4283 (build-system cmake-build-system)
4287 ("valgrind" ,valgrind)))
4289 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
4291 (modify-phases %standard-phases
4292 (add-before 'check 'set-test-environment
4294 (setenv "HOME" "/tmp")
4296 (synopsis "Speech codec")
4298 "Codec 2 is a speech codec designed for communications quality speech
4299 between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
4301 (home-page "https://www.rowetel.com/?page_id=452")
4302 (license license:lgpl2.1)))
4304 (define-public ableton-link
4306 (name "ableton-link")
4311 (url "https://github.com/Ableton/link.git")
4312 (commit (string-append "Link-" version))))
4313 (file-name (git-file-name name version))
4316 "0262vm0v7hmqjhqx5xikh529p3c065p1yld6ymaiz74yq1dnnjir"))
4317 (modules '((guix build utils)))
4319 (search-patches "ableton-link-system-libraries-debian.patch"))
4322 ;; Tests assume that CMake's "build" directory is a
4323 ;; sub-directory of the source tree, so we fix it.
4324 (substitute* "ci/run-tests.py"
4325 (("root_dir,") "root_dir, os.pardir,"))
4326 ;; Unbundle dependencies.
4327 (delete-file-recursively "third_party")
4328 (delete-file-recursively "modules")
4330 (build-system cmake-build-system)
4332 `(("catch" ,catch-framework)
4333 ("python" ,python) ;for running tests
4334 ("portaudio" ,portaudio) ;for portaudio examples
4335 ("qtbase" ,qtbase) ;for Qt examples
4336 ("qtdeclarative" ,qtdeclarative)
4337 ("qttools" ,qttools)))
4339 `(("jack" ,jack-1) ;for JACK examples
4340 ("qtquickcontrols" ,qtquickcontrols))) ;for Qt examples
4342 ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp
4343 ;; contains '#include <asio.hpp>'.
4347 '("-DLINK_BUILD_QT_EXAMPLES=ON"
4348 "-DLINK_BUILD_JACK=ON")
4350 (modify-phases %standard-phases
4352 (lambda* (#:key inputs #:allow-other-keys)
4353 (let* ((python (string-append (assoc-ref inputs "python")
4355 (run-tests (string-append "../ableton-link-"
4357 "-checkout/ci/run-tests.py")))
4358 (invoke python run-tests "--target" "LinkCoreTest")
4359 (invoke python run-tests "--target" "LinkDiscoveryTest"))))
4360 (add-before 'install 'patch-cmake
4361 (lambda* (#:key inputs #:allow-other-keys)
4362 (let* ((source (string-append "../ableton-link-"
4365 (substitute* (string-append source
4366 "cmake_include/AsioStandaloneConfig.cmake")
4367 (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./"
4368 "modules/asio-standalone/asio/include"))
4369 (string-append (assoc-ref inputs "asio")
4371 (substitute* (string-append source "AbletonLinkConfig.cmake")
4372 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include")
4373 "${CMAKE_CURRENT_LIST_DIR}/../../../include")
4374 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp")
4375 "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp"))
4378 (lambda* (#:key outputs #:allow-other-keys)
4379 (let* ((out (assoc-ref outputs "out"))
4380 (bin (string-append out "/bin"))
4381 (lib-cmake (string-append out "/lib/cmake/ableton-link"))
4382 (source (string-append "../ableton-link-" ,version "-checkout")))
4383 (for-each (lambda (test-file)
4384 (delete-file test-file))
4385 '("bin/LinkDiscoveryTest" "bin/LinkCoreTest"))
4386 (copy-recursively "bin" bin)
4387 (copy-recursively (string-append source "/include/ableton")
4388 (string-append out "/include/ableton"))
4389 (install-file (string-append source "/AbletonLinkConfig.cmake")
4391 (install-file (string-append source
4392 "/cmake_include/AsioStandaloneConfig.cmake")
4393 (string-append lib-cmake "/cmake_include"))
4395 (home-page "https://github.com/Ableton/link")
4396 (synopsis "Synchronize musical beat, tempo, and phase across multiple applications")
4398 "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase
4399 across multiple applications running on one or more devices. Applications on devices
4400 connected to a local network discover each other automatically and form a musical
4401 session in which each participant can perform independently: anyone can start or stop
4402 while still staying in time.")
4403 (license license:gpl2+)))