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 Nikita <nikita@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 gl)
74 #:use-module (gnu packages glib)
75 #:use-module (gnu packages gnome)
76 #:use-module (gnu packages gnunet) ; libmicrohttpd
77 #:use-module (gnu packages gperf)
78 #:use-module (gnu packages gtk)
79 #:use-module (gnu packages guile)
80 #:use-module (gnu packages icu4c)
81 #:use-module (gnu packages image)
82 #:use-module (gnu packages libbsd)
83 #:use-module (gnu packages libusb)
84 #:use-module (gnu packages linux)
85 #:use-module (gnu packages llvm)
86 #:use-module (gnu packages man)
87 #:use-module (gnu packages maths)
88 #:use-module (gnu packages mp3) ;taglib
89 #:use-module (gnu packages multiprecision)
90 #:use-module (gnu packages music)
91 #:use-module (gnu packages ncurses)
92 #:use-module (gnu packages networking)
93 #:use-module (gnu packages onc-rpc)
94 #:use-module (gnu packages perl)
95 #:use-module (gnu packages pkg-config)
96 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
97 #:use-module (gnu packages python)
98 #:use-module (gnu packages python-xyz)
99 #:use-module (gnu packages qt)
100 #:use-module (gnu packages rdf)
101 #:use-module (gnu packages readline)
102 #:use-module (gnu packages sdl)
103 #:use-module (gnu packages serialization)
104 #:use-module (gnu packages telephony)
105 #:use-module (gnu packages linphone)
106 #:use-module (gnu packages tls)
107 #:use-module (gnu packages valgrind)
108 #:use-module (gnu packages video)
109 #:use-module (gnu packages vim) ;xxd
110 #:use-module (gnu packages webkit)
111 #:use-module (gnu packages wxwidgets)
112 #:use-module (gnu packages xiph)
113 #:use-module (gnu packages xml)
114 #:use-module (gnu packages xorg)
115 #:use-module (guix build-system cmake)
116 #:use-module (guix build-system glib-or-gtk)
117 #:use-module (guix build-system gnu)
118 #:use-module (guix build-system meson)
119 #:use-module (guix build-system python)
120 #:use-module (guix build-system trivial)
121 #:use-module (guix build-system waf)
122 #:use-module (guix download)
123 #:use-module (guix git-download)
124 #:use-module ((guix licenses) #:prefix license:)
125 #:use-module (guix packages)
126 #:use-module (guix utils)
127 #:use-module (srfi srfi-1)
128 #:use-module (srfi srfi-26))
130 (define-public vo-amrwbenc
138 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
139 name "/" name "-" version ".tar.gz"))
141 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
142 (build-system gnu-build-system)
143 (synopsis "Adaptive Multi Rate Codec")
144 (description "VO-AMR is a library of VisualOn implementation of
145 Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
146 (home-page "https://sourceforge.net/projects/opencore-amr/")
147 (license license:asl2.0)))
149 (define-public opencore-amr
151 (name "opencore-amr")
157 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
158 name "/" name "-" version ".tar.gz"))
160 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
161 (build-system gnu-build-system)
162 (synopsis "Adaptive Multi Rate Codec")
163 (description "OpenCore-AMR is a library of OpenCORE Framework
164 implementation of Adaptive Multi Rate Narrowband and Wideband
165 (AMR-NB and AMR-WB) speech codec.")
166 (home-page "https://sourceforge.net/projects/opencore-amr/")
167 (license license:asl2.0)))
169 (define-public alsa-modular-synth
171 (name "alsa-modular-synth")
175 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
176 "/" version "/ams-" version ".tar.bz2"))
179 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))
181 (search-patches "alsa-modular-synth-fix-vocoder.patch"))))
182 (build-system gnu-build-system)
186 "CXXFLAGS=-std=gnu++11")
188 (modify-phases %standard-phases
189 (add-after 'set-paths 'hide-default-gcc
190 (lambda* (#:key inputs #:allow-other-keys)
191 (let ((gcc (assoc-ref inputs "gcc")))
192 ;; Remove the default GCC from CPLUS_INCLUDE_PATH to prevent
193 ;; conflicts with the GCC 5 input.
194 (setenv "CPLUS_INCLUDE_PATH"
196 (delete (string-append gcc "/include/c++")
197 (string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
200 ;; Insert an extra space between linker flags.
201 (add-before 'configure 'add-missing-space
203 (substitute* "configure"
204 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
205 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
208 `(("alsa-lib" ,alsa-lib)
209 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
210 ;; license incompatibility.
211 ("clalsadrv" ,clalsadrv)
218 `(("pkg-config" ,pkg-config)
221 (home-page "http://alsamodular.sourceforge.net/")
222 (synopsis "Realtime modular synthesizer and effect processor")
224 "AlsaModularSynth is a digital implementation of a classical analog
225 modular synthesizer system. It uses virtual control voltages to control the
226 parameters of the modules. The control voltages which control the frequency
227 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
228 Filter) modules follow the convention of 1V / Octave.")
229 (license license:gpl2)))
238 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
241 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
242 (build-system waf-build-system)
244 `(#:tests? #f ; no check target
247 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
251 "--enable-samplerate"
256 ("libsndfile" ,libsndfile)
257 ("libsamplerate" ,libsamplerate)
259 ("ffmpeg" ,ffmpeg))) ; for libavcodec
261 `(("pkg-config" ,pkg-config)))
262 (home-page "https://aubio.org/")
263 (synopsis "Library for audio labelling")
265 "aubio is a tool designed for the extraction of annotations from audio
266 signals. Its features include segmenting a sound file before each of its
267 attacks, performing pitch detection, tapping the beat and producing MIDI
268 streams from live audio.")
269 (license license:gpl3+)))
271 (define (ardour-rpath-phase major-version)
272 `(lambda* (#:key outputs #:allow-other-keys)
273 (let ((libdir (string-append (assoc-ref outputs "out")
274 "/lib/ardour" ,major-version)))
275 (substitute* "wscript"
276 (("linker_flags = \\[\\]")
277 (string-append "linker_flags = [\""
280 libdir "/backends" ":"
281 libdir "/engines" ":"
282 libdir "/panners" ":"
283 libdir "/surfaces" ":"
284 libdir "/vamp" "\"]"))))
287 (define-public ardour
294 (url "https://git.ardour.org/ardour/ardour.git")
297 ;; Ardour expects this file to exist at build time. The revision
299 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
300 `(call-with-output-file
301 "libs/ardour/revision.cc"
303 (format port ,(string-append "#include \"ardour/revision.h\"
304 namespace ARDOUR { const char* revision = \"" version "\" ; }"))
308 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
309 (file-name (string-append name "-" version))))
310 (build-system waf-build-system)
312 `(#:configure-flags '("--cxx11" ; required by gtkmm
313 "--no-phone-home" ; don't contact ardour.org
314 "--freedesktop" ; build .desktop file
315 "--test") ; build unit tests
317 (modify-phases %standard-phases
318 (add-after 'unpack 'set-rpath-in-LDFLAGS
319 ,(ardour-rpath-phase (version-major version)))
320 (add-after 'install 'install-freedesktop-files
321 (lambda* (#:key outputs #:allow-other-keys)
322 (let* ((out (assoc-ref outputs "out"))
323 (share (string-append out "/share"))
324 (ver ,(version-major version)))
327 (let ((dir (string-append share "/icons/hicolor/"
328 size "x" size "/apps")))
331 (string-append "gtk2_ardour/resources/Ardour-icon_"
333 (string-append dir "/ardour" ver ".png"))))
334 '("16" "22" "32" "48" "256"))
335 (install-file (string-append "build/gtk2_ardour/ardour"
337 (string-append share "/applications/"))
338 (install-file (string-append "build/gtk2_ardour/ardour"
340 (string-append share "/appdata/")))
345 `(("alsa-lib" ,alsa-lib)
358 ("libarchive" ,libarchive)
359 ("libart-lgpl" ,libart-lgpl)
360 ("libgnomecanvasmm" ,libgnomecanvasmm)
363 ("libsamplerate" ,libsamplerate)
364 ("libsndfile" ,libsndfile)
366 ("libvorbis" ,libvorbis)
372 ("python-rdflib" ,python-rdflib)
373 ("readline" ,readline)
375 ("rubberband" ,rubberband)
383 `(("cppunit" ,cppunit)
384 ("gettext" ,gettext-minimal)
387 ("pkg-config" ,pkg-config)))
388 (home-page "https://ardour.org")
389 (synopsis "Digital audio workstation")
391 "Ardour is a multi-channel digital audio workstation, allowing users to
392 record, edit, mix and master audio and MIDI projects. It is targeted at audio
393 engineers, musicians, soundtrack editors and composers.")
394 (license license:gpl2+)))
396 (define-public audacity
404 (url "https://github.com/audacity/audacity")
405 (commit (string-append "Audacity-" version))))
406 (file-name (git-file-name name version))
409 "1xk0piv72d2xd3p7igr916fhcbrm76fhjr418k1rlqdzzg1hfljn"))
410 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
411 (modules '((guix build utils)))
413 ;; Remove bundled libraries.
417 (delete-file-recursively (string-append "lib-src/" dir)))
418 '("expat" "ffmpeg" "lame" "libflac" "libid3tag" "libmad" "libogg"
419 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
420 "portaudio-v19" "portmidi" "soundtouch" "twolame"
421 ;; FIXME: these libraries have not been packaged yet:
429 ;; FIXME: we have this library, but it differs in that the Slide
430 ;; class does not have a member "getInverseStretchedTime".
434 (build-system glib-or-gtk-build-system)
436 `(("wxwidgets" ,wxwidgets)
438 ("alsa-lib" ,alsa-lib)
444 ("libid3tag" ,libid3tag)
446 ;;("libsbsms" ,libsbsms) ;bundled version is modified
447 ("libsndfile" ,libsndfile)
448 ("soundtouch" ,soundtouch)
449 ("soxr" ,soxr) ;replaces libsamplerate
452 ("libvorbis" ,libvorbis)
454 ("lilv" ,lilv) ;for lv2
455 ("suil" ,suil) ;for lv2
456 ("portaudio" ,portaudio)
457 ("portmidi" ,portmidi)))
459 `(("autoconf" ,autoconf)
460 ("automake" ,automake)
461 ("gettext" ,gettext-minimal) ;for msgfmt
463 ("pkg-config" ,pkg-config)
468 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
469 (libmad (assoc-ref %build-inputs "libmad"))
470 (portmidi (assoc-ref %build-inputs "portmidi")))
472 ;; Loading FFmpeg dynamically is problematic.
473 "--disable-dynamic-loading"
474 ;; SSE instructions are available on Intel systems only.
475 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
479 '("--enable-sse=no"))
480 ;; portmidi, libid3tag and libmad provide no .pc files, so
481 ;; pkg-config fails to find them. Force their inclusion.
482 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
483 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
484 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
485 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
486 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
487 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
488 "EXPAT_USE_SYSTEM=yes"
489 "FFMPEG_USE_SYSTEM=yes"
490 "LAME_USE_SYSTEM=yes"
491 "LIBFLAC_USE_SYSTEM=yes"
492 "LIBID3TAG_USE_SYSTEM=yes"
493 "LIBMAD_USE_SYSTEM=yes"
494 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
495 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
496 "LIBSNDFILE_USE_SYSTEM=yes"
497 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
498 "LIBSOXR_USE_SYSTEM=yes"
499 "LIBTWOLAME_USE_SYSTEM=yes"
500 "LIBVAMP_USE_SYSTEM=yes"
501 "LIBVORBIS_USE_SYSTEM=yes"
503 "PORTAUDIO_USE_SYSTEM=yes"))
505 (modify-phases %standard-phases
506 (add-after 'unpack 'fix-sbsms-check
508 ;; This check is wrong: there is no 2.2.0 release; not even the
509 ;; bundled sources match this release string.
510 (substitute* '("m4/audacity_checklib_libsbsms.m4"
512 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
514 (add-after 'unpack 'use-upstream-headers
515 (lambda* (#:key inputs #:allow-other-keys)
516 (substitute* '("src/NoteTrack.cpp"
519 "src/AudioIOBase.cpp")
520 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
521 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
522 (substitute* "src/prefs/MidiIOPrefs.cpp"
523 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
525 ;; The test suite is not "well exercised" according to the developers,
526 ;; and fails with various errors. See
527 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
529 (home-page "https://www.audacityteam.org/")
530 (synopsis "Software for recording and editing sounds")
532 "Audacity is a multi-track audio editor designed for recording, playing
533 and editing digital audio. It features digital effects and spectrum analysis
535 (license license:gpl2+)))
537 (define-public audiofile
545 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
547 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
549 ;; CVE references according to nixpgs
551 "audiofile-fix-datatypes-in-tests.patch"
552 "audiofile-fix-sign-conversion.patch"
553 "audiofile-hurd.patch"
554 "audiofile-CVE-2015-7747.patch"
556 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
557 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
559 "audiofile-Check-the-number-of-coefficients.patch"
561 "audiofile-Fix-overflow-in-MSADPCM-decodeSam.patch"
562 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
563 "audiofile-Fix-multiply-overflow-sfconvert.patch"
564 "audiofile-signature-of-multiplyCheckOverflow.patch"
566 "audiofile-Fail-on-error-in-parseFormat.patch"
568 "audiofile-division-by-zero-BlockCodec-runPull.patch"
569 "audiofile-CVE-2018-13440.patch"
570 "audiofile-CVE-2018-17095.patch"))))
571 (build-system gnu-build-system)
573 `(("alsa-lib" ,alsa-lib)))
574 (home-page "https://audiofile.68k.org/")
575 (synopsis "Library to handle various audio file formats")
576 (description "This is an open-source version of SGI's audiofile library.
577 It provides a uniform programming interface for processing of audio data to
578 and from audio files of many common formats.
580 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
581 .snd/.au, BICS, and raw data. Supported compression formats are currently
582 G.711 mu-law and A-law.")
583 (license license:lgpl2.1+)))
585 (define-public autotalent
591 (uri (string-append "http://tombaran.info/autotalent-"
595 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
596 (build-system gnu-build-system)
598 `(#:tests? #f ; no check target
600 (modify-phases %standard-phases
601 ;; no configure script
603 (add-before 'install 'prepare-target-directory
604 (lambda* (#:key outputs #:allow-other-keys)
605 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
607 (add-after 'unpack 'override-target-directory
608 (lambda* (#:key outputs #:allow-other-keys)
609 (substitute* "Makefile"
610 (("/usr/lib64/ladspa")
611 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
614 `(("ladspa" ,ladspa)))
615 (home-page "http://tombaran.info/autotalent.html")
616 (synopsis "Pitch-correction LADSPA audio plugin")
618 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
619 controls are allowable notes, strength of correction, LFO for vibrato and
621 ;; All code except the FFT routine is licensed under GPLv2+.
622 ;; The FFT routine is under BSD-3.
623 (license license:gpl2+)))
631 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
636 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
637 (patches (search-patches "azr3.patch"))))
638 (build-system gnu-build-system)
640 `(#:tests? #f ; no check target
643 (string-append "prefix=" %output)
644 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
646 (modify-phases %standard-phases
647 (add-before 'install 'fix-timestamp
649 (let ((early-1980 315619200)) ; 1980-01-02 UTC
650 (utime "azr3.1" early-1980 early-1980))
658 `(("pkg-config" ,pkg-config)))
659 (home-page "http://ll-plugins.nongnu.org/azr3/")
660 (synopsis "Tonewheel organ synthesizer")
662 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
663 with drawbars, distortion and rotating speakers. The organ has three
664 sections, two polyphonic sections with nine drawbars each and one monophonic
665 bass section with five drawbars. A standalone JACK application and LV2
666 plugins are provided.")
667 (license license:gpl2)))
675 (uri (string-append "https://calf-studio-gear.org/files/calf-"
679 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
680 (build-system gnu-build-system)
682 `(("fluidsynth" ,fluidsynth)
693 `(("pkg-config" ,pkg-config)))
695 (list (search-path-specification
696 (variable "LV2_PATH")
697 (files '("lib/lv2")))))
698 (home-page "http://calf.sourceforge.net/")
699 (synopsis "Audio plug-in pack for LV2 and JACK environments")
701 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
702 The suite contains lots of effects (delay, modulation, signal processing,
703 filters, equalizers, dynamics, distortion and mastering effects),
704 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
705 tools (analyzer, mono/stereo tools, crossovers).")
706 ;; calfjackhost is released under GPLv2+
707 ;; The plugins are released under LGPLv2.1+
708 (license (list license:lgpl2.1+ license:gpl2+))))
710 (define-public caps-plugins-lv2
712 (name "caps-plugins-lv2")
713 (version "0.9.24") ; version that has been ported.
716 ;; The Github project hasn't tagged a release.
719 ;; Actually https://github.com/moddevices/caps-lv2.git, but it's
720 ;; missing fixes for newer glibc, so using the origin of a pull
721 ;; request regarding this issue:
722 (url "https://github.com/jujudusud/caps-lv2")
723 (commit "9c9478b7fbd8f9714f552ebe2a6866398b0babfb")))
724 (file-name (git-file-name name version))
727 "1idfnazin3cca41zw1a8vwgnxjnkrap7bxxjamjqvgpmvydgcam1"))))
728 (build-system gnu-build-system)
730 `(#:tests? #f ; no check target
732 (modify-phases %standard-phases
733 ;; no configure script
735 (add-after 'unpack 'override-target-directory
736 (lambda* (#:key outputs #:allow-other-keys)
737 (substitute* (find-files "plugins" "Makefile")
738 (("/usr/local")(assoc-ref outputs "out")))
742 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
743 (home-page "https://github.com/moddevices/caps-lv2")
744 (synopsis "LV2 port of the CAPS audio plugin colection")
746 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
747 guitar amplification and a small range of classic effects, signal processors and
748 generators of mostly elementary and occasionally exotic nature.")
749 (license license:gpl3+)))
751 (define-public infamous-plugins
753 (name "infamous-plugins")
758 (url "https://github.com/ssj71/infamousPlugins")
759 (commit (string-append "v" version))))
760 (file-name (git-file-name name version))
763 "0hmqk80w4qxq09iag7b7srf2g0wigkyhzq0ywxvhz2iz0hq9k0dh"))))
764 (build-system cmake-build-system)
766 `(#:tests? #f ; there are no tests
768 (modify-phases %standard-phases
769 (add-after 'unpack 'remove-compiler-flags
771 (substitute* (find-files "." "CMakeLists.txt")
772 (("-msse2 -mfpmath=sse") ""))
779 ("zita-resampler" ,zita-resampler)))
781 `(("pkg-config" ,pkg-config)))
782 (home-page "https://ssj71.github.io/infamousPlugins")
783 (synopsis "LV2 plugins for live use")
785 "The infamous plugins are a collection of LV2 audio plugins for live
786 performances. The plugins include a cellular automaton synthesizer, an
787 envelope follower, distortion effects, tape effects and more.")
788 (license license:gpl2+)))
790 (define-public swh-plugins
797 (url "https://github.com/swh/ladspa")
798 (commit (string-append "v" version))))
799 (file-name (git-file-name name version))
802 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
804 `(("autoconf" ,autoconf)
805 ("automake" ,automake)
806 ("gettext" ,gettext-minimal) ;for autopoint
809 ("pkg-config" ,pkg-config)
813 ("perl-xml-parser" ,perl-xml-parser)))
814 (build-system gnu-build-system)
815 (home-page "http://plugin.org.uk")
816 (synopsis "The SWH Plugins package for the LADSPA plugin system")
817 (description "This package provides Steve Harris's LADSPA plugins.")
818 (license license:gpl2+)))
820 (define-public swh-plugins-lv2
822 (name "swh-plugins-lv2")
827 (url "https://github.com/swh/lv2")
828 (commit (string-append "v" version))))
829 (file-name (git-file-name name version))
832 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
833 (build-system gnu-build-system)
835 `(#:tests? #f ; no check target
836 #:make-flags (list "CC=gcc"
837 (string-append "PREFIX="
838 (assoc-ref %outputs "out")))
840 (modify-phases %standard-phases
841 ;; no configure script
843 (add-after 'unpack 'patch-makefile-and-enter-directory
844 ;; The default install target doesn't install, but the
845 ;; "install-system" target does.
847 (substitute* "Makefile"
848 (("install:") "install: install-system"))
854 `(("libxslt" ,libxslt)
855 ("pkg-config" ,pkg-config)))
856 (home-page "http://plugin.org.uk")
857 (synopsis "SWH plugins in LV2 format")
859 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
860 classes include: dynamics (compressor, limiter), time (delay, chorus,
861 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
862 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
863 (license license:gpl3+)))
868 (version "1.0-beta-10May2006")
871 (uri (string-append "mirror://sourceforge/taopm/Tao/"
873 "tao-" version ".tar.gz"))
876 "156py3g6mmglldfd0j76bn7n242hdwf49diaprjpj7crp8vgf2pz"))
878 (search-patches "tao-add-missing-headers.patch"
879 "tao-fix-parser-types.patch"))
880 (modules '((guix build utils)))
883 (substitute* "configure"
884 (("SHELL=/bin/sh") ""))
886 (build-system gnu-build-system)
888 '(#:configure-flags '("TAO_RELEASE=-beta")
890 (modify-phases %standard-phases
891 (add-after 'unpack 'fix-references
892 (lambda* (#:key outputs #:allow-other-keys)
893 (substitute* "user-scripts/tao.in"
895 (string-append (assoc-ref outputs "out") "/bin/taoparse"))
896 (("grep") (which "grep"))
897 (("sed -f \\$distdir/user-scripts/")
898 (string-append (which "sed") " -f $distdir/"))
900 (string-append "distdir="
901 (assoc-ref outputs "out") "/share/tao")))
903 (add-after 'install 'install-extra-files
904 (lambda* (#:key outputs #:allow-other-keys)
905 (let* ((out (assoc-ref outputs "out"))
906 (share (string-append out "/share/tao/"))
907 (inc (string-append out "/include/tao/")))
910 (install-file "user-scripts/error.parse" share)
911 (copy-recursively "examples" (string-append share "examples"))
912 (for-each (lambda (file) (install-file file inc))
913 (find-files "include" "\\.h"))
916 `(("audiofile" ,audiofile)
925 (home-page "http://taopm.sourceforge.net/")
926 (synopsis "Sound Synthesis with Physical Models")
927 (description "Tao is a software package for sound synthesis using physical
928 models. It provides a virtual acoustic material constructed from masses and
929 springs which can be used as the basis for building quite complex virtual
930 musical instruments. Tao comes with a synthesis language for creating and
931 playing instruments and a C++ API for those who would like to use it as an
933 (license license:gpl2+)))
935 (define-public csound
943 (url "https://github.com/csound/csound")
945 (file-name (git-file-name name version))
947 (base32 "1sr9knfhbm2m0wpkjq2l5n471vnl51wy4p6j4m95zqybimzb4s2j"))))
948 (build-system cmake-build-system)
952 ("gettext" ,gettext-minimal)
955 `(("alsa-lib" ,alsa-lib)
960 ("libsndfile" ,libsndfile)
961 ("pulseaudio" ,pulseaudio)))
962 (home-page "https://csound.com/")
963 (synopsis "Sound and music computing system")
965 "Csound is a user-programmable and user-extensible sound processing
966 language and software synthesizer.")
967 (license license:lgpl2.1+)))
969 (define-public clalsadrv
976 "http://kokkinizita.linuxaudio.org"
977 "/linuxaudio/downloads/clalsadrv-"
981 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
982 (build-system gnu-build-system)
984 `(#:tests? #f ; no "check" target
985 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
987 (modify-phases %standard-phases
988 (add-after 'unpack 'patch-makefile-and-enter-directory
990 (substitute* "libs/Makefile"
991 (("/sbin/ldconfig") "true")
992 (("^LIBDIR =.*") "LIBDIR = lib\n"))
995 (add-after 'install 'install-symlink
997 (symlink "libclalsadrv.so"
998 (string-append (assoc-ref %outputs "out")
999 "/lib/libclalsadrv.so.2"))
1001 ;; no configure script
1002 (delete 'configure))))
1004 `(("alsa-lib" ,alsa-lib)
1006 (home-page "https://kokkinizita.linuxaudio.org")
1007 (synopsis "C++ wrapper around the ALSA API")
1009 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
1011 (license license:gpl2+)))
1013 (define-public amb-plugins
1015 (name "amb-plugins")
1020 "http://kokkinizita.linuxaudio.org"
1021 "/linuxaudio/downloads/AMB-plugins-"
1022 version ".tar.bz2"))
1025 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
1026 (build-system gnu-build-system)
1028 `(#:tests? #f ; no "check" target
1030 (modify-phases %standard-phases
1031 ;; no configure script
1033 (add-before 'install 'prepare-target-directory
1034 (lambda* (#:key outputs #:allow-other-keys)
1035 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1037 (add-after 'unpack 'override-target-directory-and-tool-paths
1038 (lambda* (#:key outputs #:allow-other-keys)
1039 (substitute* "Makefile"
1040 (("/usr/lib/ladspa")
1041 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1042 (("/usr/bin/install") (which "install"))
1045 (home-page "https://kokkinizita.linuxaudio.org")
1046 (synopsis "LADSPA ambisonics plugins")
1048 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
1049 used within Ardour. Features include: mono and stereo to B-format panning,
1050 horizontal rotator, square, hexagon and cube decoders.")
1051 (license license:gpl2+)))
1053 (define-public mcp-plugins
1055 (name "mcp-plugins")
1060 "http://kokkinizita.linuxaudio.org"
1061 "/linuxaudio/downloads/MCP-plugins-"
1062 version ".tar.bz2"))
1065 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
1066 (build-system gnu-build-system)
1068 `(#:tests? #f ; no "check" target
1070 (modify-phases %standard-phases
1071 ;; no configure script
1073 (add-before 'install 'prepare-target-directory
1074 (lambda* (#:key outputs #:allow-other-keys)
1075 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1077 (add-after 'unpack 'override-target-directory
1078 (lambda* (#:key outputs #:allow-other-keys)
1079 (substitute* "Makefile"
1080 (("/usr") (assoc-ref outputs "out")))
1082 (home-page "https://kokkinizita.linuxaudio.org")
1083 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
1085 "This package provides various LADSPA plugins. @code{cs_chorus} and
1086 @code{cs_phaser} provide chorus and phaser effects, respectively;
1087 @code{mvclpf24} provides four implementations of the low-pass filter used in
1088 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
1089 high-pass filter by Robert Moog. The filters attempt to accurately emulate
1090 the non-linear circuit elements of their original analog counterparts.")
1091 (license license:gpl2+)))
1093 (define-public rev-plugins
1095 (name "rev-plugins")
1100 "http://kokkinizita.linuxaudio.org"
1101 "/linuxaudio/downloads/REV-plugins-"
1102 version ".tar.bz2"))
1105 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
1106 (build-system gnu-build-system)
1108 `(#:tests? #f ; no "check" target
1110 (modify-phases %standard-phases
1111 ;; no configure script
1113 (add-before 'install 'prepare-target-directory
1114 (lambda* (#:key outputs #:allow-other-keys)
1115 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1117 (add-after 'unpack 'override-target-directory
1118 (lambda* (#:key outputs #:allow-other-keys)
1119 (substitute* "Makefile"
1120 (("/usr") (assoc-ref outputs "out")))
1122 (home-page "https://kokkinizita.linuxaudio.org")
1123 (synopsis "LADSPA reverb plugin")
1125 "This package provides a stereo reverb LADSPA plugin based on the
1126 well-known greverb.")
1127 (license license:gpl2+)))
1129 (define-public fil-plugins
1131 (name "fil-plugins")
1136 "http://kokkinizita.linuxaudio.org"
1137 "/linuxaudio/downloads/FIL-plugins-"
1138 version ".tar.bz2"))
1141 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1142 (build-system gnu-build-system)
1144 `(#:tests? #f ; no "check" target
1146 (modify-phases %standard-phases
1147 ;; no configure script
1149 (add-before 'install 'prepare-target-directory
1150 (lambda* (#:key outputs #:allow-other-keys)
1151 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1153 (add-after 'unpack 'override-target-directory
1154 (lambda* (#:key outputs #:allow-other-keys)
1155 (substitute* "Makefile"
1156 (("/usr") (assoc-ref outputs "out")))
1158 (home-page "https://kokkinizita.linuxaudio.org")
1159 (synopsis "LADSPA four-band parametric equalizer plugin")
1161 "This package provides a LADSPA plugin for a four-band parametric
1162 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1163 gain controls. There is also a global bypass switch and gain control.
1165 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1166 lattice filter, which is stable even while parameters are being changed.
1168 All switches and controls are internally smoothed, so they can be used @code{live}
1169 without any clicks or zipper noises. This makes this plugin suitable for use
1170 in systems that allow automation of plugin control ports, such as Ardour, or
1172 (license license:gpl2+)))
1174 (define-public ste-plugins
1176 (name "ste-plugins")
1181 "http://kokkinizita.linuxaudio.org"
1182 "/linuxaudio/downloads/STE-plugins-"
1183 version ".tar.bz2"))
1186 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1187 (build-system gnu-build-system)
1189 `(#:tests? #f ; no "check" target
1191 (modify-phases %standard-phases
1192 ;; no configure script
1194 (add-before 'install 'prepare-target-directory
1195 (lambda* (#:key outputs #:allow-other-keys)
1196 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1198 (add-after 'unpack 'override-target-directory
1199 (lambda* (#:key outputs #:allow-other-keys)
1200 (substitute* "Makefile"
1201 (("/usr") (assoc-ref outputs "out")))
1203 (home-page "https://kokkinizita.linuxaudio.org")
1204 (synopsis "LADSPA stereo width plugin")
1206 "This package provides a LADSPA plugin to manipulate the stereo width of
1208 (license license:gpl2+)))
1210 (define-public vco-plugins
1212 (name "vco-plugins")
1217 "http://kokkinizita.linuxaudio.org"
1218 "/linuxaudio/downloads/VCO-plugins-"
1219 version ".tar.bz2"))
1222 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1223 (build-system gnu-build-system)
1225 `(#:tests? #f ; no "check" target
1227 (modify-phases %standard-phases
1228 ;; no configure script
1230 (add-before 'install 'prepare-target-directory
1231 (lambda* (#:key outputs #:allow-other-keys)
1232 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1234 (add-after 'unpack 'override-target-directory
1235 (lambda* (#:key outputs #:allow-other-keys)
1236 (substitute* "Makefile"
1237 (("/usr") (assoc-ref outputs "out"))
1238 (("/bin/cp") (which "cp")))
1240 (home-page "https://kokkinizita.linuxaudio.org")
1241 (synopsis "LADSPA plugin for synthesizer oscillators")
1243 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1246 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1247 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1248 @item Rec-VCO, a square / rectangle oscillator
1251 All oscillators are low-pass filtered to provide waveforms similar to the
1252 output of analog synthesizers such as the Moog Voyager.")
1253 (license license:gpl2+)))
1255 (define-public wah-plugins
1257 (name "wah-plugins")
1262 "http://kokkinizita.linuxaudio.org"
1263 "/linuxaudio/downloads/WAH-plugins-"
1264 version ".tar.bz2"))
1267 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1268 (build-system gnu-build-system)
1270 `(#:tests? #f ; no "check" target
1272 (modify-phases %standard-phases
1273 ;; no configure script
1275 (add-before 'install 'prepare-target-directory
1276 (lambda* (#:key outputs #:allow-other-keys)
1277 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1279 (add-after 'unpack 'override-target-directory
1280 (lambda* (#:key outputs #:allow-other-keys)
1281 (substitute* "Makefile"
1282 (("/usr") (assoc-ref outputs "out")))
1284 (home-page "https://kokkinizita.linuxaudio.org")
1285 (synopsis "LADSPA Autowah effect plugin")
1287 "This package provides a LADSPA plugin for a Wah effect with envelope
1289 (license license:gpl2+)))
1291 (define-public g2reverb
1298 "http://kokkinizita.linuxaudio.org"
1299 "/linuxaudio/downloads/g2reverb-"
1300 version ".tar.bz2"))
1303 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1304 (build-system gnu-build-system)
1306 `(#:tests? #f ; no "check" target
1308 (modify-phases %standard-phases
1309 ;; no configure script
1311 (add-before 'install 'prepare-target-directory
1312 (lambda* (#:key outputs #:allow-other-keys)
1313 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1315 (add-after 'unpack 'override-target-directory
1316 (lambda* (#:key outputs #:allow-other-keys)
1317 (substitute* "Makefile"
1318 (("/usr") (assoc-ref outputs "out")))
1320 (home-page "https://kokkinizita.linuxaudio.org")
1321 (synopsis "LADSPA stereo reverb plugin")
1323 "This package provides a LADSPA plugin for a stereo reverb effect.")
1324 (license license:gpl2+)))
1326 (define-public fluidsynth
1333 (url "https://github.com/FluidSynth/fluidsynth")
1334 (commit (string-append "v" version))))
1335 (file-name (git-file-name name version))
1338 "0dv6jprz2bzasvk91x2rv2pqyyvxkc72s4r6vsqw723a3kqa5bhc"))))
1339 (build-system cmake-build-system)
1341 '(#:tests? #f ; no check target
1343 (modify-phases %standard-phases
1344 (add-after 'unpack 'fix-libdir
1346 ;; Install libraries to /lib, not /lib64.
1347 (substitute* "CMakeLists.txt"
1348 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1352 `(("libsndfile" ,libsndfile)
1353 ("alsa-lib" ,alsa-lib)
1357 ("readline" ,readline)
1360 `(("pkg-config" ,pkg-config)))
1361 (home-page "http://www.fluidsynth.org/")
1362 (synopsis "SoundFont synthesizer")
1364 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1365 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1366 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1367 also play midifiles using a Soundfont.")
1368 (license license:lgpl2.1+)))
1370 ;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1372 (define-public fluidsynth-1
1374 (inherit fluidsynth)
1377 (inherit (package-source fluidsynth))
1379 (url "https://github.com/FluidSynth/fluidsynth")
1380 (commit (string-append "v" version))))
1381 (file-name (git-file-name "fluidsynth" version))
1384 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1386 (define-public faad2
1392 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1393 (version-major+minor version) ".0/"
1394 "faad2-" version ".tar.gz"))
1397 "089zqykqgmmysznvk0bi2pfvdqwclnn540d0zks83sv2pynpfjb5"))))
1398 (build-system gnu-build-system)
1399 (home-page "https://www.audiocoding.com/faad2.html")
1400 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1402 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
1404 (license license:gpl2)))
1406 (define-public faust
1413 (url "https://github.com/grame-cncm/faust")
1414 (commit (string-append "v"
1415 (string-map (lambda (c)
1416 (if (char=? c #\.) #\- c))
1418 (file-name (string-append "faust-" version "-checkout"))
1421 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1422 (build-system gnu-build-system)
1424 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1427 (modify-phases %standard-phases
1428 ;; no "configure" script
1430 ;; Files appear under $out/share/faust that are read-only. The
1431 ;; install phase tries to overwrite them and fails, so we change
1432 ;; the permissions first.
1433 (add-before 'install 'fix-permissions
1435 (for-each (lambda (file)
1437 (find-files "architecture/max-msp" ".*"))
1440 `(("unzip" ,unzip)))
1441 (home-page "https://faust.grame.fr/")
1442 (synopsis "Signal processing language")
1444 "Faust is a programming language for realtime audio signal processing.")
1445 (license license:gpl2+)))
1447 (define-public faust-2
1453 (uri (string-append "https://github.com/grame-cncm/faust/"
1454 "releases/download/" version
1455 "/faust-" version ".tar.gz"))
1458 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1459 (build-system gnu-build-system)
1461 (substitute-keyword-arguments (package-arguments faust)
1462 ((#:make-flags flags)
1463 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1466 `(("llvm" ,llvm-3.8)
1469 ("ctags" ,emacs-minimal) ; for ctags
1470 ("pkg-config" ,pkg-config)))
1472 `(("libsndfile" ,libsndfile)
1473 ("libmicrohttpd" ,libmicrohttpd)
1474 ("ncurses" ,ncurses)
1475 ("openssl" ,openssl)
1478 (define-public freepats
1481 (version "20060219")
1484 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1485 version ".tar.bz2"))
1488 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1489 (build-system trivial-build-system)
1491 `(#:modules ((guix build utils))
1493 (use-modules (guix build utils))
1494 (let ((out (string-append %output "/share/freepats")))
1495 (setenv "PATH" (string-append
1496 (assoc-ref %build-inputs "bzip2") "/bin:"
1497 (assoc-ref %build-inputs "tar") "/bin"))
1498 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
1500 ;; Use absolute pattern references
1501 (substitute* "freepats.cfg"
1502 (("Tone_000") (string-append out "/Tone_000"))
1503 (("Drum_000") (string-append out "/Drum_000")))
1505 (copy-recursively "." out)
1510 (home-page "http://freepats.zenvoid.org")
1511 (synopsis "GUS compatible patches for MIDI players")
1513 "FreePats is a project to create a free and open set of GUS compatible
1514 patches that can be used with softsynths such as Timidity and WildMidi.")
1515 ;; GPLv2+ with exception for compositions using these patches.
1516 (license license:gpl2+)))
1518 (define-public guitarix
1525 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1529 "0bw7xnrx062nwb1bfj9x660h7069ncmz77szcs8icpqxrvhs7z80"))))
1530 (build-system waf-build-system)
1532 `(#:tests? #f ; no "check" target
1536 ;; Add the output lib directory to the RUNPATH.
1537 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))
1539 (modify-phases %standard-phases
1540 (add-after 'unpack 'fix-boost-includes
1542 (substitute* "src/headers/gx_internal_plugins.h"
1543 (("namespace gx_jack" m)
1544 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1545 (substitute* '("src/headers/gx_system.h"
1546 "src/headers/gx_parameter.h"
1547 "src/headers/gx_json.h")
1548 (("namespace gx_system" m)
1549 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1552 `(("libsndfile" ,libsndfile)
1565 ("zita-resampler" ,zita-resampler)
1566 ("zita-convolver" ,zita-convolver)))
1570 ("intltool" ,intltool)
1571 ("gettext" ,gettext-minimal)
1572 ("pkg-config" ,pkg-config)))
1573 (native-search-paths
1574 (list (search-path-specification
1575 (variable "LV2_PATH")
1576 (files '("lib/lv2")))))
1577 (home-page "https://guitarix.org/")
1578 (synopsis "Virtual guitar amplifier")
1579 (description "Guitarix is a virtual guitar amplifier running JACK.
1580 Guitarix takes the signal from your guitar as a mono-signal from your sound
1581 card. The input is processed by a main amp and a rack-section. Both can be
1582 routed separately and deliver a processed stereo-signal via JACK. You may
1583 fill the rack with effects from more than 25 built-in modules including stuff
1584 from a simple noise gate to modulation effects like flanger, phaser or
1586 (license license:gpl2+)))
1588 (define-public guitarix-lv2
1589 (package (inherit guitarix)
1590 (name "guitarix-lv2")
1592 (substitute-keyword-arguments (package-arguments guitarix)
1593 ((#:configure-flags flags)
1594 `(cons "--no-standalone" ,flags))))))
1596 (define-public rakarrack
1602 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1603 "rakarrack-" version "/rakarrack-"
1604 version ".tar.bz2"))
1607 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1608 (modules '((guix build utils)))
1611 (substitute* '("src/process.C"
1613 (("#include <Fl/") "#include <FL/"))
1615 (build-system gnu-build-system)
1617 `(("alsa-utils" ,alsa-utils)
1620 ("libxext" ,libxext)
1621 ("libxfixes" ,libxfixes)
1623 ("libxrender" ,libxrender)
1625 ("fontconfig" ,fontconfig)
1626 ("freetype" ,freetype)
1628 ("alsa-lib" ,alsa-lib)
1629 ("libsndfile" ,libsndfile)
1630 ("libsamplerate" ,libsamplerate)
1632 (home-page "http://rakarrack.sourceforge.net/")
1633 (synopsis "Audio effects processor")
1635 "Rakarrack is a richly featured multi-effects processor emulating a
1636 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1637 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1638 distortion modules and many more. Most of the effects engine is built from
1639 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1640 user interface are optimized for guitar, but Rakarrack processes signals in
1641 stereo while it does not apply internal band-limiting filtering, and thus is
1642 well suited to all musical instruments and vocals.")
1643 ;; The code is explicitly licensed under the GPL version 2 only.
1644 (license license:gpl2)))
1653 (url "https://github.com/tomszilagyi/ir.lv2")
1655 (file-name (git-file-name name version))
1658 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
1659 (build-system gnu-build-system)
1661 `(#:tests? #f ; no tests
1663 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1664 (string-append "INSTDIR="
1665 (assoc-ref %outputs "out") "/lib/lv2"))
1666 #:phases (modify-phases %standard-phases
1667 (delete 'configure)))) ; no configure script
1669 `(("libsndfile" ,libsndfile)
1670 ("libsamplerate" ,libsamplerate)
1674 ("zita-convolver" ,zita-convolver)))
1676 `(("pkg-config" ,pkg-config)))
1677 (native-search-paths
1678 (list (search-path-specification
1679 (variable "LV2_PATH")
1680 (files '("lib/lv2")))))
1681 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
1682 (synopsis "LV2 convolution reverb")
1684 "IR is a low-latency, real-time, high performance signal convolver
1685 especially for creating reverb effects. It supports impulse responses with 1,
1686 2 or 4 channels, in any soundfile format supported by libsndfile.")
1687 (license license:gpl2+)))
1689 (define-public jack-1
1696 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1701 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
1702 (build-system gnu-build-system)
1704 `(#:phases (modify-phases %standard-phases
1705 (add-after 'unpack 'patch-configure
1707 (substitute* "configure"
1708 ;; Install to <out/lib> regardless of platform.
1709 (("libnn=lib64") "libnn=lib"))
1712 `(("alsa-lib" ,alsa-lib)
1713 ("readline" ,readline)))
1714 ;; uuid.h is included in the JACK type headers
1715 ;; db.h is included in the libjack metadata headers
1717 `(("libuuid" ,util-linux "lib")
1720 `(("pkg-config" ,pkg-config)))
1721 (home-page "http://jackaudio.org/")
1722 (synopsis "JACK audio connection kit")
1724 "JACK is a low-latency audio server. It can connect a number of
1725 different applications to an audio device, as well as allowing them to share
1726 audio between themselves. JACK is different from other audio server efforts
1727 in that it has been designed from the ground up to be suitable for
1728 professional audio work. This means that it focuses on two key areas:
1729 synchronous execution of all clients, and low latency operation.")
1730 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1731 ;; licensed under the LGPL in order to allow for proprietary usage.
1732 (license (list license:gpl2+ license:lgpl2.1+))))
1734 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1735 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
1736 ;; program for users who might benefit from the D-BUS features.
1737 (define-public jack-2
1738 (package (inherit jack-1)
1743 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
1744 "download/v" version "/jack2-"
1746 (file-name (string-append name "-" version ".tar.gz"))
1749 "1d1d403jn4366mqig6g8ghr8057b3rn7gs26b5p3rkal34j20qw2"))))
1750 (build-system waf-build-system)
1752 `(#:tests? #f ; no check target
1753 #:configure-flags '("--dbus"
1756 (modify-phases %standard-phases
1757 (add-before 'configure 'set-linkflags
1759 ;; Add $libdir to the RUNPATH of all the binaries.
1760 (substitute* "wscript"
1761 ((".*CFLAGS.*-Wall.*" m)
1763 " conf.env.append_unique('LINKFLAGS',"
1764 "'-Wl,-rpath=" %output "/lib')\n")))
1766 (add-after 'install 'wrap-python-scripts
1767 (lambda* (#:key inputs outputs #:allow-other-keys)
1768 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1769 (let* ((out (assoc-ref outputs "out"))
1770 (path (getenv "PYTHONPATH")))
1771 (wrap-program (string-append out "/bin/jack_control")
1772 `("PYTHONPATH" ":" prefix (,path))))
1775 `(("alsa-lib" ,alsa-lib)
1778 ("libsamplerate" ,libsamplerate)
1780 ("python-dbus" ,python-dbus)
1781 ("readline" ,readline)))
1783 `(("pkg-config" ,pkg-config)))
1784 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1785 (license (list license:gpl2+ license:lgpl2.1+))))
1793 (uri (string-append "https://download.drobilla.net/jalv-"
1794 version ".tar.bz2"))
1797 "1wwfn7yzbs37s2rdlfjgks63svd5g14yyzd2gdl7h0z12qncwsy2"))))
1798 (build-system waf-build-system)
1800 `(#:tests? #f ; no check target
1801 #:python ,python-2))
1812 `(("pkg-config" ,pkg-config)))
1813 (home-page "https://drobilla.net/software/jalv/")
1814 (synopsis "Simple LV2 host for JACK")
1816 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1817 plugins and exposes their ports as JACK ports, essentially making any LV2
1818 plugin function as a JACK application.")
1819 (license license:isc)))
1821 (define-public ladspa
1828 ;; Since the official link is dead,
1829 ;; we download the tarball from Debian or Internet Archive.
1830 (uri (list (string-append "http://http.debian.net"
1831 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1832 version ".orig.tar.gz")
1833 (string-append "https://web.archive.org/web/20140717172251/"
1834 "http://www.ladspa.org/download/ladspa_sdk_"
1838 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
1839 (build-system gnu-build-system)
1841 `(#:tests? #f ; the "test" target is a listening test only
1843 (modify-phases %standard-phases
1845 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1847 (let ((out (assoc-ref outputs "out")))
1848 (substitute* "makefile"
1849 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1850 (("/usr/include/") (string-append out "/include/"))
1851 (("/usr/bin/") (string-append out "/bin/"))
1852 (("-mkdirhier") "mkdir -p")
1853 (("^CC.*") "CC = gcc\n")
1854 (("^CPP.*") "CPP = g++\n")))
1857 ;; Since the home page is gone, we provide a link to the archived version.
1859 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
1860 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1862 "LADSPA is a standard that allows software audio processors and effects
1863 to be plugged into a wide range of audio synthesis and recording packages.")
1864 (license license:lgpl2.1+)))
1869 (version "0.6.0-rc2")
1872 ;; The tilde is not permitted in the builder name, but is used
1875 "mirror://savannah/lash/lash-"
1876 (string-join (string-split version #\-) "~")
1878 (file-name (string-append name "-" version ".tar.bz2"))
1881 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1882 (build-system gnu-build-system)
1884 '(;; Glibc no longer includes Sun RPC support, so tell the build system
1885 ;; to use libtirpc instead.
1886 #:make-flags (list (string-append "CFLAGS=-I"
1887 (assoc-ref %build-inputs "libtirpc")
1888 "/include/tirpc -ltirpc"))
1890 (modify-phases %standard-phases
1891 ;; lashd embeds an ancient version of sigsegv so we just skip it
1892 (add-after 'unpack 'skip-lashd
1894 (substitute* '("Makefile.am" "Makefile.in")
1897 #:configure-flags '("--disable-static")))
1902 ("libtirpc" ,libtirpc)
1903 ("readline" ,readline)
1904 ("python" ,python-2)))
1905 ;; According to pkg-config, packages depending on lash also need to have
1906 ;; at least the following packages declared as inputs.
1908 `(("alsa-lib" ,alsa-lib)
1910 ("libxml2" ,libxml2)))
1912 `(("pkg-config" ,pkg-config)))
1913 (home-page "https://www.nongnu.org/lash/")
1914 (synopsis "Audio application session manager")
1916 "LASH is a session management system for audio applications. It allows
1917 you to save and restore audio sessions consisting of multiple interconneced
1918 applications, restoring program state (i.e. loaded patches) and the
1919 connections between them.")
1920 (license license:gpl2+)))
1922 (define-public libbs2b
1928 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1929 "/libbs2b-" version ".tar.lzma"))
1932 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1933 (build-system gnu-build-system)
1934 (native-inputs `(("pkg-config" ,pkg-config)))
1935 (inputs `(("libsndfile" ,libsndfile)))
1936 (home-page "https://sourceforge.net/projects/bs2b/")
1937 (synopsis "Bauer stereophonic-to-binaural DSP")
1939 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1940 designed to improve headphone listening of stereo audio records. Recommended
1941 for headphone prolonged listening to disable superstereo fatigue without
1942 essential distortions.")
1943 (license license:expat)))
1945 (define-public ladspa-bs2b
1947 (name "ladspa-bs2b")
1952 "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/"
1953 version "/" name "-" version ".tar.gz"))
1956 "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2"))))
1957 (build-system gnu-build-system)
1958 (native-inputs `(("pkg-config" ,pkg-config)))
1959 (inputs `(("ladspa" ,ladspa)
1960 ("libbs2b" ,libbs2b)))
1961 (home-page "https://sourceforge.net/projects/bs2b/")
1962 (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin")
1963 (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and
1964 plugins is designed to improve headphone listening of stereo audio records.
1965 Recommended for headphone prolonged listening to disable superstereo fatigue
1966 without essential distortions. This package contains a LADSPA plugin for use
1967 with applications that support them (e.g. PulseAudio).")
1968 (license license:gpl2+)))
1970 (define-public liblo
1976 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1977 "/liblo-" version ".tar.gz"))
1980 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
1981 (build-system gnu-build-system)
1983 `(;; liblo test FAILED
1984 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1986 (home-page "http://liblo.sourceforge.net")
1987 (synopsis "Implementation of the Open Sound Control protocol")
1989 "liblo is a lightweight library that provides an easy to use
1990 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
1991 (license license:lgpl2.1+)))
1993 (define-public python-pyaudio
1995 (name "python-pyaudio")
2000 (uri (pypi-uri "PyAudio" version))
2003 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
2004 (build-system python-build-system)
2006 `(("portaudio" ,portaudio)))
2007 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
2008 (synopsis "Bindings for PortAudio v19")
2009 (description "This package provides bindings for PortAudio v19, the
2010 cross-platform audio input/output stream library.")
2011 (license license:expat)))
2013 (define-public python2-pyaudio
2014 (package-with-python2 python-pyaudio))
2016 (define-public python-pyliblo
2018 (name "python-pyliblo")
2022 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
2026 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
2027 (build-system python-build-system)
2028 (arguments `(#:tests? #f)) ;no tests
2030 `(("python-cython" ,python-cython)))
2032 `(("liblo" ,liblo)))
2033 (home-page "http://das.nasophon.de/pyliblo/")
2034 (synopsis "Python bindings for liblo")
2036 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
2037 library. It supports almost the complete functionality of liblo, allowing you
2038 to send and receive OSC messages using a nice and simple Python API. Also
2039 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
2040 (license license:lgpl2.1+)))
2042 (define-public python2-pyliblo
2043 (package-with-python2 python-pyliblo))
2051 (uri (string-append "https://download.drobilla.net/lilv-"
2052 version ".tar.bz2"))
2055 "0063i5zgf3d3accwmyx651hw0wh5ik7kji2hvfkcdbl1qia3dp6a"))))
2056 (build-system waf-build-system)
2058 `(#:tests? #f ; no check target
2060 (modify-phases %standard-phases
2061 (add-before 'configure 'set-ldflags
2062 (lambda* (#:key outputs #:allow-other-keys)
2064 (string-append "-Wl,-rpath="
2065 (assoc-ref outputs "out") "/lib"))
2067 (add-after 'unpack 'full-store-path-to-shared-library
2068 (lambda* (#:key outputs #:allow-other-keys)
2069 (with-directory-excursion "bindings/python"
2070 (substitute* "lilv.py"
2071 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
2072 "/lib/liblilv-0.so"))))
2074 ;; Required by lilv-0.pc.
2079 ("sratom" ,sratom)))
2081 `(("python" ,python)
2082 ("pkg-config" ,pkg-config)))
2083 (home-page "https://drobilla.net/software/lilv")
2084 (synopsis "Library to simplify use of LV2 plugins in applications")
2086 "Lilv is a C library to make the use of LV2 plugins as simple as possible
2087 for applications. Lilv is the successor to SLV2, rewritten to be
2088 significantly faster and have minimal dependencies.")
2089 (license license:isc)))
2097 (uri (string-append "https://lv2plug.in/spec/lv2-"
2098 version ".tar.bz2"))
2101 "0gs7401xz23q9vajqr31aa2db8dvssgyh5zrvr4ipa6wig7yb8wh"))))
2102 (build-system waf-build-system)
2104 `(#:tests? #f ; no check target
2105 #:configure-flags '("--no-plugins")))
2107 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
2108 `(("libsndfile" ,libsndfile)))
2110 `(("pkg-config" ,pkg-config)))
2111 (home-page "https://lv2plug.in/")
2112 (synopsis "LV2 audio plugin specification")
2114 "LV2 is an open specification for audio plugins and host applications.
2115 At its core, LV2 is a simple stable interface, accompanied by extensions which
2116 add functionality to support the needs of increasingly powerful audio
2118 (license license:isc)))
2120 (define-public lv2-mda-piano
2122 (name "lv2-mda-piano")
2127 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
2129 (file-name (git-file-name name version))
2132 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
2133 (build-system gnu-build-system)
2135 `(#:make-flags (list
2137 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2138 #:tests? #f ; no check target
2139 #:phases (modify-phases %standard-phases (delete 'configure))))
2144 `(("pkg-config" ,pkg-config)))
2145 (native-search-paths
2146 (list (search-path-specification
2147 (variable "LV2_PATH")
2148 (files '("lib/lv2")))))
2149 (home-page "https://elephly.net/lv2/mdapiano.html")
2150 (synopsis "LV2 port of the mda Piano plugin")
2151 (description "An LV2 port of the mda Piano VSTi.")
2152 (license license:gpl3+)))
2154 (define-public lv2-mda-epiano
2155 (package (inherit lv2-mda-piano)
2156 (name "lv2-mda-epiano")
2158 `(#:make-flags (list
2160 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2161 #:tests? #f ; no check target
2162 #:phases (modify-phases %standard-phases (delete 'configure))))
2163 (home-page "https://elephly.net/lv2/mdaepiano.html")
2164 (synopsis "LV2 port of the mda EPiano plugin")
2165 (description "An LV2 port of the mda EPiano VSTi.")))
2174 (url "https://github.com/lvtk/lvtk")
2176 (file-name (git-file-name name version))
2179 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
2180 (build-system waf-build-system)
2182 `(#:tests? #f ; no check target
2185 (list (string-append "--boost-includes="
2186 (assoc-ref %build-inputs "boost")
2193 `(("pkg-config" ,pkg-config)))
2194 (home-page "https://github.com/lvtk/lvtk")
2195 (synopsis "C++ libraries for LV2 plugins")
2197 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2198 extensions into easy to use C++ classes. It is the successor of
2200 (license license:gpl3+)))
2202 (define-public openal
2209 "https://openal-soft.org/openal-releases/openal-soft-"
2210 version ".tar.bz2"))
2213 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2214 (build-system cmake-build-system)
2216 `(#:tests? #f ; no check target
2218 (modify-phases %standard-phases
2220 'unpack 'use-full-library-paths
2221 (lambda* (#:key inputs #:allow-other-keys)
2222 (substitute* "alc/backends/pulseaudio.cpp"
2223 (("#define PALIB \"libpulse\\.so\\.0\"")
2224 (string-append "#define PALIB \""
2225 (assoc-ref inputs "pulseaudio")
2226 "/lib/libpulse.so.0"
2228 (substitute* "alc/backends/alsa.cpp"
2229 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2230 (string-append "LoadLib(\""
2231 (assoc-ref inputs "alsa-lib")
2232 "/lib/libasound.so.2"
2236 `(("alsa-lib" ,alsa-lib)
2237 ("pulseaudio" ,pulseaudio)))
2238 (synopsis "3D audio API")
2240 "OpenAL provides capabilities for playing audio in a virtual 3D
2241 environment. Distance attenuation, doppler shift, and directional sound
2242 emitters are among the features handled by the API. More advanced effects,
2243 including air absorption, occlusion, and environmental reverb, are available
2244 through the EFX extension. It also facilitates streaming audio, multi-channel
2245 buffers, and audio capture.")
2246 (home-page "https://openal-soft.org/")
2247 (license license:lgpl2.0+)))
2249 (define-public freealut
2255 ;; Upstream url is unclear, many systems use Fedora, there is also
2256 ;; https://github.com/vancegroup/freealut though the status of it
2257 ;; (official? unofficial?) is not clear.
2259 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2260 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2261 "-" version ".tar.gz"))
2264 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2265 (build-system cmake-build-system)
2267 `(#:tests? #f)) ; no check target
2269 `(("openal" ,openal)))
2270 (synopsis "Free implementation of OpenAL's ALUT standard")
2271 (description "freealut is the OpenAL Utility Toolkit.")
2272 (home-page "https://kcat.strangesoft.net/openal.html")
2273 (license license:lgpl2.0)))
2275 (define-public patchage
2281 (uri (string-append "https://download.drobilla.net/patchage-"
2286 "0dk3fiac10m83mwss3026yz7ygc47c2iw924cwwnh2fyydc9bsy6"))))
2287 (build-system waf-build-system)
2289 `(#:tests? #f ; no check target
2290 #:python ,python-2))
2292 `(("alsa-lib" ,alsa-lib)
2298 ("dbus-glib" ,dbus-glib)))
2300 `(("pkg-config" ,pkg-config)))
2301 (home-page "https://drobilla.net/software/patchage/")
2302 (synopsis "Modular patch bay for audio and MIDI systems")
2304 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2306 (license license:gpl3+)))
2308 (define-public pcaudiolib
2312 (home-page "https://github.com/espeak-ng/pcaudiolib")
2315 (uri (git-reference (url home-page) (commit version)))
2316 (file-name (git-file-name name version))
2319 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2320 (build-system gnu-build-system)
2322 `(#:configure-flags '("--disable-static")))
2324 `(("autoconf" ,autoconf)
2325 ("automake" ,automake)
2326 ("libtool" ,libtool)
2327 ("pkg-config" ,pkg-config)
2330 `(("alsa-lib" ,alsa-lib)
2331 ("pulseaudio" ,pulseaudio)))
2332 (synopsis "Portable C audio library")
2334 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2335 different audio devices such as ALSA or PulseAudio.")
2336 (license (list license:gpl3+
2337 ;; The bundled TPCircularBuffer uses a custom license.
2338 (license:non-copyleft
2339 "file://src/TPCircularBuffer/README.markdown")))))
2341 (define-public qjackctl
2347 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2348 version "/qjackctl-" version ".tar.gz"))
2351 "1saywsda9m124rmjp7i3n0llryaliabjxhqhvqr6dm983qy7pypk"))))
2352 (build-system gnu-build-system)
2354 '(#:tests? #f)) ; no check target
2357 ("alsa-lib" ,alsa-lib)
2359 ("qtx11extras" ,qtx11extras)))
2361 `(("pkg-config" ,pkg-config)
2362 ("qttools" ,qttools)))
2363 (home-page "https://qjackctl.sourceforge.io/")
2364 (synopsis "Jack server control application")
2365 (description "Control a Jack server. Allows you to plug various sources
2366 into various outputs and to start, stop and configure jackd")
2367 (license license:gpl2+)))
2369 (define-public qjackrcd
2376 (url "https://github.com/orouits/qjackrcd")
2377 (commit (string-append "v" version))))
2378 (file-name (git-file-name name version))
2381 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2382 (build-system gnu-build-system)
2385 (modify-phases %standard-phases
2387 (lambda* (#:key outputs #:allow-other-keys)
2389 (string-append "PREFIX="
2390 (assoc-ref outputs "out"))))))))
2392 `(("qtbase" ,qtbase))) ; for qmake
2395 ("libsndfile" ,libsndfile)
2396 ("qtbase" ,qtbase)))
2397 (home-page "https://sourceforge.net/projects/qjackrcd/")
2398 (synopsis "Stereo audio recorder for JACK")
2399 (description "QJackRcd is a simple graphical stereo recorder for JACK
2400 supporting silence processing for automatic pause, file splitting, and
2401 background file post-processing.")
2402 (license license:gpl2+)))
2404 (define-public supercollider
2406 (name "supercollider")
2411 (url "https://github.com/supercollider/supercollider")
2412 (commit (string-append "Version-" version))
2413 ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack
2415 (file-name (git-file-name name version))
2418 "02v911w2kdbg3kfl593lb2ig4sjbfxzv20a0vbcymhfzpvp1x6xp"))
2419 (modules '((guix build utils)
2422 ;; The build system doesn't allow us to unbundle the following
2423 ;; libraries. hidapi is also heavily patched and upstream not
2424 ;; actively maintained.
2425 '(let ((keep-dirs '("nova-simd" "nova-tt" "hidapi"
2426 "TLSF-2.4.6" "oscpack_1_1_0" "." "..")))
2427 (with-directory-excursion "./external_libraries"
2429 delete-file-recursively
2432 (and (eq? (stat:type (stat x)) 'directory)
2433 (not (member (basename x) keep-dirs)))))))
2434 ;; To find the Guix provided ableton-link library.
2435 (substitute* "lang/CMakeLists.txt"
2436 (("include\\(\\.\\./external_libraries/link/\
2437 AbletonLinkConfig\\.cmake\\)")
2438 "find_package(AbletonLink NAMES AbletonLink ableton-link \
2441 (build-system cmake-build-system)
2443 '("out" ;core language
2446 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
2447 "-DSC_QT=ON" "-DCMAKE_BUILD_TYPE=Release"
2448 "-DFORTIFY=ON" "-DLIBSCSYNTH=ON"
2449 "-DSC_EL=off") ;scel is packaged individually as
2452 (modify-phases %standard-phases
2453 ;; HOME must be defined otherwise supercollider throws a "ERROR:
2454 ;; Primitive '_FileMkDir' failed." error when generating the doc.
2455 ;; The graphical tests also hang without it.
2456 (add-after 'unpack 'set-home-directory
2458 (setenv "HOME" (getcwd))
2460 (add-after 'unpack 'patch-scclass-dir
2461 (lambda* (#:key outputs #:allow-other-keys)
2462 (let* ((out (assoc-ref outputs "out"))
2465 "/share/SuperCollider/SCClassLibrary")))
2466 (substitute* "lang/LangSource/SC_LanguageConfig.cpp"
2468 "SC_Filesystem::instance\\(\\)\\.getDirectory"
2469 "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME"))
2470 (string-append "Path(\"" scclass-dir "\")")))
2472 (add-before 'build 'prepare-x
2475 (setenv "DISPLAY" ":0")
2477 (add-before 'install 'install-ide
2478 (lambda* (#:key outputs #:allow-other-keys)
2479 (let* ((out (assoc-ref outputs "out"))
2480 (ide (assoc-ref outputs "ide"))
2481 (scide "editors/sc-ide/scide"))
2483 (string-append ide "/bin"))
2487 `(("ableton-link" ,ableton-link)
2488 ("pkg-config" ,pkg-config)
2489 ("qttools" ,qttools)
2490 ("xorg-server" ,xorg-server-for-tests)))
2493 ("libsndfile" ,libsndfile)
2496 ("readline" ,readline) ;readline support for sclang's CLI
2497 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2498 ("eudev" ,eudev) ;for user interactions with devices
2499 ("avahi" ,avahi) ;zeroconf service discovery support
2502 ("boost-sync" ,boost-sync)
2503 ("yaml-cpp" ,yaml-cpp)
2505 ("qtdeclarative" ,qtdeclarative)
2507 ("qtwebchannel" ,qtwebchannel)
2508 ("qtwebsockets" ,qtwebsockets)))
2509 (propagated-inputs ;to get native-search-path
2510 `(("qtwebengine" ,qtwebengine)))
2511 (home-page "https://github.com/supercollider/supercollider")
2512 (synopsis "Synthesis engine and programming language")
2513 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2514 @code{supernova}) and programming language (@code{sclang}). It can be used
2515 for experimenting with sound synthesis and algorithmic composition.
2517 SuperCollider requires jackd to be installed in your user profile and your
2518 user must be allowed to access the realtime features of the kernel. Search
2519 for \"realtime\" in the index of the Guix manual to learn how to achieve this
2520 using Guix System.")
2521 (license license:gpl2+)))
2529 (uri (string-append "https://download.drobilla.net/raul-"
2530 version ".tar.bz2"))
2533 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2534 (build-system waf-build-system)
2536 `(#:python ,python-2
2537 #:tests? #f)) ; no check target
2542 `(("pkg-config" ,pkg-config)))
2543 (home-page "https://drobilla.net/software/raul/")
2544 (synopsis "Real-time audio utility library")
2546 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2547 aimed at audio/musical applications.")
2548 (license license:gpl2+)))
2550 (define-public raul-devel
2551 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2553 (package (inherit raul)
2555 (version (string-append "0.8.9-" revision "."
2556 (string-take commit 9)))
2560 (url "https://git.drobilla.net/raul.git")
2562 (file-name (string-append name "-" version "-checkout"))
2565 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2567 (define-public resample
2573 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
2577 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
2578 (build-system gnu-build-system)
2580 `(("autoconf" ,autoconf)
2581 ("automake" ,automake)
2582 ("pkg-config" ,pkg-config)
2583 ("libtool" ,libtool)))
2584 (synopsis "Real-time library for sampling rate conversion")
2585 (description "The @command{resample} software package contains free
2586 sampling-rate conversion and filter design utilities.")
2587 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
2588 (license license:lgpl2.1+)))
2590 (define-public rubberband
2597 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2600 (file-name (string-append name "-" version ".tar.bz2"))
2603 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
2604 (build-system gnu-build-system)
2606 `(#:tests? #f ; no check target
2608 (modify-phases %standard-phases
2609 (add-after 'unpack 'skip-jni-installation
2610 ;; ‘make install’ unconditionally installs librubberband-jni.so,
2611 ;; which is never built by ‘make all’. Skip it.
2613 (substitute* "Makefile.in"
2614 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
2617 `(("ladspa" ,ladspa)
2618 ("libsamplerate" ,libsamplerate)
2621 `(("pkg-config" ,pkg-config)))
2622 (home-page "https://breakfastquay.com/rubberband/")
2623 (synopsis "Audio time-stretching and pitch-shifting library")
2625 "Rubber Band is a library and utility program that permits changing the
2626 tempo and pitch of an audio recording independently of one another.")
2627 (license license:gpl2+)))
2629 (define-public rtmidi
2635 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
2636 "/release/rtmidi-" version ".tar.gz"))
2637 (file-name (string-append "rtmidi-" version ".tar.gz"))
2640 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))
2641 (build-system gnu-build-system)
2644 ("alsa-lib" ,alsa-lib)))
2646 `(("autoconf" ,autoconf)
2647 ("automake" ,automake)
2648 ("libtool" ,libtool)
2649 ("pkg-config" ,pkg-config)))
2650 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
2651 (synopsis "Cross-platform MIDI library for C++")
2653 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2654 classes) that provide a common cross-platform API for realtime MIDI
2656 (license license:expat)))
2658 (define-public sratom
2664 (uri (string-append "https://download.drobilla.net/sratom-"
2665 version ".tar.bz2"))
2668 "0vh0biy3ngpzzgdml309c2mqz8xq9q0hlblczb4c6alhp0a8yv0l"))))
2669 (build-system waf-build-system)
2670 (arguments `(#:tests? #f)) ;no check target
2672 ;; In Requires of sratom-0.pc.
2677 `(("pkg-config" ,pkg-config)))
2678 (home-page "https://drobilla.net/software/sratom/")
2679 (synopsis "Library for serialising LV2 atoms to/from RDF")
2681 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2682 the Turtle syntax.")
2683 (license license:isc)))
2691 (uri (string-append "https://download.drobilla.net/suil-"
2692 version ".tar.bz2"))
2695 "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06"))))
2696 (build-system waf-build-system)
2698 `(#:tests? #f)) ;no check target
2705 `(("pkg-config" ,pkg-config)))
2706 (home-page "https://drobilla.net/software/suil/")
2707 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2709 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2711 Suil makes it possible to load a UI of a toolkit in a host using another
2712 toolkit. The API is designed such that hosts do not need to explicitly
2713 support specific toolkits – if Suil supports a particular toolkit, then UIs in
2714 that toolkit will work in all hosts that use Suil automatically.
2716 Suil currently supports every combination of Gtk, Qt, and X11.")
2717 (license license:isc)))
2719 (define-public timidity++
2725 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2726 "/TiMidity++-" version
2727 "/TiMidity++-" version ".tar.bz2"))
2730 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2731 (build-system gnu-build-system)
2734 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2738 (string-append "--with-default-path="
2739 (assoc-ref %outputs "out") "/etc/timidity"))
2741 (modify-phases %standard-phases
2742 (add-after 'install 'install-config
2744 (let ((out (string-append (assoc-ref %outputs "out")
2747 (call-with-output-file
2748 (string-append out "/timidity.cfg")
2750 (format port (string-append "source "
2751 (assoc-ref %build-inputs "freepats")
2752 "/share/freepats/freepats.cfg")))))
2755 `(("alsa-lib" ,alsa-lib)
2760 ("libvorbis" ,libvorbis)
2762 ("ncurses" ,ncurses)
2763 ("freepats" ,freepats)))
2765 `(("pkg-config" ,pkg-config)))
2766 (home-page "http://timidity.sourceforge.net/")
2767 (synopsis "Software synthesizer for playing MIDI files")
2769 "TiMidity++ is a software synthesizer. It can play MIDI files by
2770 converting them into PCM waveform data; give it a MIDI data along with digital
2771 instrument data files, then it synthesizes them in real-time, and plays. It
2772 can not only play sounds, but also can save the generated waveforms into hard
2773 disks as various audio file formats.")
2774 (license license:gpl2+)))
2783 "https://code.soundsoftware.ac.uk"
2784 "/attachments/download/1520/vamp-plugin-sdk-"
2788 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
2789 (build-system gnu-build-system)
2791 `(#:tests? #f ; no check target
2793 (modify-phases %standard-phases
2794 (add-after 'install 'remove-libvamp-hostsdk.la
2795 (lambda* (#:key outputs #:allow-other-keys)
2796 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2797 (for-each delete-file
2798 (let ((out (assoc-ref outputs "out")))
2799 (list (string-append out "/lib/libvamp-sdk.la")
2800 (string-append out "/lib/libvamp-hostsdk.la"))))
2803 `(("libsndfile" ,libsndfile)))
2805 `(("pkg-config" ,pkg-config)))
2806 (home-page "https://vamp-plugins.org")
2807 (synopsis "Modular and extensible audio processing system")
2809 "Vamp is an audio processing plugin system for plugins that extract
2810 descriptive information from audio data — typically referred to as audio
2811 analysis plugins or audio feature extraction plugins.")
2814 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
2816 (define-public libsbsms
2823 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2824 "/libsbsms-" version ".tar.gz"))
2826 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2827 (build-system gnu-build-system)
2828 (native-inputs `(("automake" ,automake)))
2831 ;; Disable the use of SSE unless on x86_64.
2832 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2833 (%current-system))))
2837 (modify-phases %standard-phases
2839 'unpack 'fix-ar-lib-path
2840 (lambda* (#:key inputs #:allow-other-keys)
2841 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2842 (delete-file "ar-lib")
2844 (string-append (assoc-ref inputs "automake") "/share/automake-"
2845 ,(package-version automake) "/ar-lib")
2848 (home-page "http://sbsms.sourceforge.net/")
2849 (synopsis "Library for time stretching and pitch scaling of audio")
2851 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2852 stretching and pitch scaling of audio. This package contains the library.")
2853 ;; There is no explicit declaration of a license, but a COPYING file
2855 (license license:gpl2)))
2857 (define-public wavpack
2863 (uri (string-append "http://www.wavpack.com/"
2864 "wavpack-" version ".tar.xz"))
2867 "01r351ggha9pdfk7p601dlxac4ka1q89lgnb6zqk00zf1fd3fi5l"))))
2868 (build-system gnu-build-system)
2870 '(#:configure-flags '("--disable-static")))
2871 (home-page "http://www.wavpack.com/")
2872 (synopsis "Hybrid lossless audio codec")
2874 "WavPack is an audio compression format with lossless, lossy and hybrid
2875 compression modes. This package contains command-line programs and library to
2876 encode and decode wavpack files.")
2877 (license license:bsd-3)))
2879 (define-public libmodplug
2886 "mirror://sourceforge/modplug-xmms/"
2887 name "/" version "/" name "-" version ".tar.gz"))
2890 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
2891 (build-system gnu-build-system)
2892 (home-page "http://modplug-xmms.sourceforge.net/")
2893 (synopsis "Mod file playing library")
2895 "Libmodplug renders mod music files as raw audio data, for playing or
2896 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2897 supported. Optional features include high-quality resampling, bass expansion,
2898 surround and reverb.")
2899 (license license:public-domain)))
2901 (define-public libxmp
2907 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
2908 name "-" version ".tar.gz"))
2911 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
2912 (build-system gnu-build-system)
2913 (home-page "http://xmp.sourceforge.net/")
2914 (synopsis "Module player library")
2916 "Libxmp is a library that renders module files to PCM data. It supports
2917 over 90 mainstream and obscure module formats including Protracker (MOD),
2918 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2919 (license license:lgpl2.1+)))
2927 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
2928 name "-" version ".tar.gz"))
2931 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
2932 (build-system gnu-build-system)
2934 `(("pkg-config" ,pkg-config)))
2936 `(("libxmp" ,libxmp)
2937 ("pulseaudio" ,pulseaudio)))
2938 (home-page "http://xmp.sourceforge.net/")
2939 (synopsis "Extended module player")
2941 "Xmp is a portable module player that plays over 90 mainstream and
2942 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2943 Tracker 3 S3M and Impulse Tracker IT files.")
2944 (license license:gpl2+)))
2946 (define-public soundtouch
2954 (url "https://gitlab.com/soundtouch/soundtouch.git")
2956 (file-name (git-file-name name version))
2958 (base32 "174wgm3s0inmbnkrlnspxjwm2014qhjhkbdqa5r8rbfi0nzqxzsz"))))
2959 (build-system gnu-build-system)
2961 `(("autoconf" ,autoconf)
2962 ("automake" ,automake)
2963 ("libtool" ,libtool)
2965 (home-page "https://www.surina.net/soundtouch/")
2967 "Audio processing library for changing tempo, pitch and playback rate")
2969 "SoundTouch is an audio processing library for changing the tempo, pitch
2970 and playback rates of audio streams or audio files. It is intended for
2971 application developers writing sound processing tools that require tempo/pitch
2972 control functionality, or just for playing around with the sound effects.")
2973 (license license:lgpl2.1+)))
2981 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2982 name "-" version ".tar.bz2"))
2985 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2986 (build-system gnu-build-system)
2989 ;; The upstream asks to identify the distribution to diagnose SoX
2991 '("--with-distro=Guix System Distribution")))
2993 `(("pkg-config" ,pkg-config)))
2995 `(("alsa-lib" ,alsa-lib)
2999 ("libid3tag" ,libid3tag)
3000 ("libltdl" ,libltdl)
3003 ("libvorbis" ,libvorbis)
3004 ("pulseaudio" ,pulseaudio)))
3005 (home-page "http://sox.sourceforge.net")
3006 (synopsis "Sound processing utility")
3008 "SoX (Sound eXchange) is a command line utility that can convert
3009 various formats of computer audio files to other formats. It can also
3010 apply various effects to these sound files, and, as an added bonus, SoX
3011 can play and record audio files.")
3012 ;; sox.c is distributed under GPL, while the files that make up
3013 ;; libsox are licensed under LGPL.
3014 (license (list license:gpl2+ license:lgpl2.1+))))
3024 (string-append "mirror://sourceforge/soxr/soxr-" version
3027 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
3028 (build-system cmake-build-system)
3029 (arguments '(#:tests? #f)) ;no 'check' target
3030 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
3031 (synopsis "One-dimensional sample-rate conversion library")
3033 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
3034 conversion. It may be used, for example, to resample PCM-encoded audio.")
3035 (license license:lgpl2.1+)))
3037 (define-public twolame
3044 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
3045 "/twolame-" version ".tar.gz"))
3047 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
3048 (build-system gnu-build-system)
3050 `(("libsndfile" ,libsndfile)))
3053 ("which" ,which))) ;used in tests/test.pl
3054 (home-page "http://www.twolame.org/")
3055 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
3057 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
3058 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
3060 (license license:lgpl2.1+)))
3062 (define-public portaudio
3065 (version "190600.20161030")
3070 "http://www.portaudio.com/archives/pa_stable_v"
3071 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
3074 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
3075 (patches (search-patches "portaudio-audacity-compat.patch"))))
3076 (build-system gnu-build-system)
3078 ;; TODO: Add ASIHPI.
3079 `(("alsa-lib" ,alsa-lib)
3081 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
3084 `(("autoconf" ,autoconf)
3085 ("automake" ,automake)
3086 ("libtool" ,libtool)
3087 ("pkg-config" ,pkg-config)))
3089 '(#:tests? #f ;no 'check' target
3090 #:parallel-build? #f ;fails on some systems
3091 #:configure-flags '("--with-pic"
3093 ;; XXX: The following prevents a build error
3094 ;; because of missing depcomp when C++ bindings are
3096 "--disable-dependency-tracking")
3098 (modify-phases %standard-phases
3099 ;; This is needed for linking the static libraries
3100 (add-after 'unpack 'build-only-position-independent-code
3102 (substitute* "configure.in"
3103 (("AC_PROG_LIBTOOL" m)
3104 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
3105 (delete-file "configure")
3107 ;; Some headers are not installed by default, but are needed by
3108 ;; packages like Kaldi.
3109 (add-after 'install 'install-missing-headers
3110 (lambda* (#:key outputs #:allow-other-keys)
3111 (install-file "src/common/pa_ringbuffer.h"
3112 (string-append (assoc-ref outputs "out") "/include"))
3114 (home-page "http://www.portaudio.com/")
3115 (synopsis "Audio I/O library")
3117 "PortAudio is a portable C/C++ audio I/O library providing a simple API
3118 to record and/or play sound using a callback function or a blocking read/write
3120 (license license:expat)))
3122 (define-public qsynth
3129 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
3130 "/qsynth-" version ".tar.gz"))
3132 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
3133 (build-system gnu-build-system)
3135 `(#:tests? #f)) ; no "check" phase
3137 `(("qttools" ,qttools)
3138 ("pkg-config" ,pkg-config)))
3140 `(("fluidsynth" ,fluidsynth)
3142 ("qtx11extras" ,qtx11extras)))
3143 (home-page "https://qsynth.sourceforge.io")
3144 (synopsis "Graphical user interface for FluidSynth")
3146 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
3147 synthesizer written in C++.")
3148 (license license:gpl2+)))
3150 (define-public rsound
3158 (url "https://github.com/Themaister/RSound")
3159 (commit (string-append "v" version))))
3160 (file-name (git-file-name name version))
3162 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
3163 (build-system gnu-build-system)
3165 `(("alsa-lib" ,alsa-lib)
3168 ("libsamplerate" ,libsamplerate)
3170 ("portaudio" ,portaudio)
3171 ("pulseaudio" ,pulseaudio)))
3174 (modify-phases %standard-phases
3176 (lambda* (#:key outputs #:allow-other-keys)
3178 (invoke "./configure"
3179 (string-append "--prefix=" (assoc-ref outputs "out"))))))
3180 ;; No 'check' target.
3182 (home-page "https://themaister.net/rsound.html")
3183 (synopsis "Networked audio system")
3185 "RSound allows you to send audio from an application and transfer it
3186 directly to a different computer on your LAN network. It is an audio daemon
3187 with a much different focus than most other audio daemons.")
3188 (license license:gpl3+)))
3190 (define-public xjackfreak
3197 (url "https://github.com/johnhldavis/xjackfreak")
3198 (commit (string-append "v" version))))
3199 (file-name (git-file-name name version))
3202 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3203 (build-system gnu-build-system)
3206 (list (string-append "docdir=" (assoc-ref %outputs "out")
3207 "/share/doc/xjackfreak"))))
3212 ("libxext" ,libxext)))
3214 `(("pkg-config" ,pkg-config)))
3215 (home-page "https://github.com/johnhldavis/xjackfreak")
3216 (synopsis "JACK audio frequency analyzer and display")
3218 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3219 Connection Kit. It can display the FFT of any input, modify it and output the
3221 (license license:gpl3+)))
3223 (define-public zita-convolver
3225 (name "zita-convolver")
3230 "http://kokkinizita.linuxaudio.org"
3231 "/linuxaudio/downloads/zita-convolver-"
3232 version ".tar.bz2"))
3234 ;; Don't optimize for a specific processor architecture.
3236 (substitute* "source/Makefile"
3237 (("^CXXFLAGS \\+= -march=native") ""))
3239 (modules '((guix build utils)))
3242 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
3243 (build-system gnu-build-system)
3245 `(#:tests? #f ; no "check" target
3247 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3248 (string-append "SUFFIX="))
3250 (modify-phases %standard-phases
3251 (add-after 'unpack 'patch-makefile-and-enter-directory
3253 (substitute* "source/Makefile"
3254 (("ldconfig") "true")
3255 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3258 (add-after 'install 'install-symlink
3260 (symlink "libzita-convolver.so"
3261 (string-append (assoc-ref %outputs "out")
3262 "/lib/libzita-convolver.so.4"))
3264 ;; no configure script
3265 (delete 'configure))))
3266 (inputs `(("fftwf" ,fftwf)))
3267 (home-page "https://kokkinizita.linuxaudio.org")
3268 (synopsis "Fast, partitioned convolution engine library")
3270 "Zita convolver is a C++ library providing a real-time convolution
3272 (license license:gpl3+)))
3274 (define-public zita-resampler
3276 (name "zita-resampler")
3281 "http://kokkinizita.linuxaudio.org"
3282 "/linuxaudio/downloads/zita-resampler-"
3283 version ".tar.bz2"))
3285 ;; Don't optimize for a specific processor architecture.
3287 (substitute* '("apps/Makefile" "source/Makefile")
3288 (("^CXXFLAGS \\+= -march=native") ""))
3290 (modules '((guix build utils)))
3293 "1my5k2dh2dkvjp6xjnf9qy6i7s28z13kw1n9pwa4a2cpwbzawfr3"))))
3294 (build-system gnu-build-system)
3296 `(#:tests? #f ; no "check" target
3298 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3299 (string-append "SUFFIX="))
3301 (modify-phases %standard-phases
3303 'unpack 'patch-makefile-and-enter-directory
3305 (substitute* "source/Makefile"
3306 (("ldconfig") "true")
3307 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3311 'install 'install-symlink
3313 (symlink "libzita-resampler.so"
3314 (string-append (assoc-ref %outputs "out")
3315 "/lib/libzita-resampler.so.1"))
3317 ;; no configure script
3318 (delete 'configure))))
3319 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
3320 (synopsis "C++ library for resampling audio signals")
3322 "Libzita-resampler is a C++ library for resampling audio signals. It is
3323 designed to be used within a real-time processing context, to be fast, and to
3324 provide high-quality sample rate conversion.")
3325 (license license:gpl3+)))
3327 (define-public zita-alsa-pcmi
3329 (name "zita-alsa-pcmi")
3334 "http://kokkinizita.linuxaudio.org"
3335 "/linuxaudio/downloads/zita-alsa-pcmi-"
3336 version ".tar.bz2"))
3339 "12d7vdg74yh21w69qi0wg57iz4876j94qbiq09bvscih6xz9y78s"))))
3340 (build-system gnu-build-system)
3342 `(#:tests? #f ; no "check" target
3344 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3345 (string-append "SUFFIX="))
3347 (modify-phases %standard-phases
3348 (add-after 'unpack 'patch-makefile-and-enter-directory
3350 (substitute* "source/Makefile"
3351 (("ldconfig") "true")
3352 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3355 (add-after 'install 'install-symlink
3357 (symlink "libzita-alsa-pcmi.so"
3358 (string-append (assoc-ref %outputs "out")
3359 "/lib/libzita-alsa-pcmi.so.0"))
3361 ;; no configure script
3362 (delete 'configure))))
3364 `(("alsa-lib" ,alsa-lib)
3366 (home-page "https://kokkinizita.linuxaudio.org")
3367 (synopsis "C++ wrapper around the ALSA API")
3369 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3370 access to ALSA PCM devices, taking care of the many functions required to
3371 open, initialise and use a hw: device in mmap mode, and providing floating
3373 (license license:gpl3+)))
3375 (define-public cuetools
3382 (url "https://github.com/svend/cuetools")
3384 (file-name (git-file-name name version))
3387 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
3388 (build-system gnu-build-system)
3389 ;; The source checkout is not bootstrapped.
3391 `(("autoconf" ,autoconf)
3392 ("automake" ,automake)
3395 (synopsis "Cue and toc file parsers and utilities")
3396 (description "Cuetools is a set of programs that are useful for manipulating
3397 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3398 files are a way to represent the layout of a data or audio CD in a
3399 machine-readable ASCII format.")
3400 (home-page "https://github.com/svend/cuetools")
3401 (license license:gpl2+)))
3403 (define-public shntool
3409 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
3410 "shntool-" version ".tar.gz"))
3413 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3414 (build-system gnu-build-system)
3415 (synopsis "WAVE audio data processing tool")
3416 (description "shntool is a multi-purpose WAVE data processing and reporting
3417 utility. File formats are abstracted from its core, so it can process any file
3418 that contains WAVE data, compressed or not---provided there exists a format
3419 module to handle that particular file type. It can also generate CUE files, and
3420 use them split WAVE data into multiple files.")
3421 (home-page "http://etree.org/shnutils/shntool/")
3422 ;; 'install-sh' bears the x11 license
3423 (license (list license:gpl2+ license:x11))))
3425 (define-public dcadec
3432 (url "https://github.com/foo86/dcadec")
3433 (commit (string-append "v" version))))
3434 (file-name (git-file-name name version))
3437 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
3438 (build-system gnu-build-system)
3440 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3444 ;; Build shared library.
3446 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3447 ;; Set proper runpath.
3448 (string-append "LDFLAGS=-Wl,-rpath="
3449 (assoc-ref %outputs "out")
3452 (modify-phases %standard-phases
3453 ;; No configure script, just a hand-written Makefile.
3454 (delete 'configure))))
3455 (synopsis "DTS Coherent Acoustics decoder")
3456 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3457 with support for HD extensions.")
3458 (home-page "https://github.com/foo86/dcadec")
3459 (license license:lgpl2.1+)))
3461 (define-public bs1770gain
3465 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
3469 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3470 version "/bs1770gain-" version ".tar.gz"))
3472 (base32 "0a2dcaxvxy5m3a5sb1lhplsymvz3ypaiidc5xn9qy01h53zvyvkp"))
3473 (modules '((guix build utils)))
3477 (substitute* (find-files "." "\\.[ch]$")
3478 (("^ \\* N..o.*") ""))
3479 (substitute* "libbg/bgx.c"
3480 (("#define BG.* ") "#define BS ")
3481 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
3482 (("\"( #|N).*\"") "\"\""))
3483 (substitute* (list "config.h"
3486 (("https?://bs1770gain[^/]*/")
3489 (build-system gnu-build-system)
3490 (inputs `(("ffmpeg" ,ffmpeg)
3492 (synopsis "Tool to adjust loudness of media files")
3494 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3495 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3496 loudness of audio and video files to the same level.")
3497 (license license:gpl2+)))
3499 (define-public filteraudio
3500 (let ((revision "1")
3501 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3503 (name "filteraudio")
3504 (version (string-append "0.0.0-" revision "."
3505 (string-take commit 7)))
3510 (url "https://github.com/irungentoo/filter_audio")
3512 (file-name (string-append name "-" version "-checkout"))
3515 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3516 (build-system gnu-build-system)
3518 '(#:make-flags (list (string-append "PREFIX=" %output)
3520 #:tests? #f ; No tests
3522 (modify-phases %standard-phases
3523 ;; No configure script
3524 (delete 'configure))))
3525 (synopsis "Lightweight audio filtering library")
3526 (description "An easy to use audio filtering library made from webrtc
3527 code, used in @code{libtoxcore}.")
3528 (home-page "https://github.com/irungentoo/filter_audio")
3529 (license license:bsd-3))))
3539 (string-append "http://www.quut.com/" name "/" name
3540 "-" version ".tar.gz"))
3543 "1xkha9ss5g5qnfaybi8il0mcvp8knwg9plgh8404vh58d0pna0s9"))))
3544 (build-system gnu-build-system)
3546 `(#:test-target "tst"
3547 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
3549 (modify-phases %standard-phases
3550 (add-after 'unpack 'add-fpic-ccflag
3552 ;; The -fPIC compiler option is needed when building
3554 (substitute* "Makefile"
3556 (string-append all "CCFLAGS += -fPIC\n")))
3558 (add-before 'install 'pre-install
3560 (let ((out (assoc-ref %outputs "out")))
3561 (mkdir-p (string-append out "/inc"))
3562 (mkdir-p (string-append out "/man"))
3563 (mkdir-p (string-append out "/man/man1"))
3564 (mkdir-p (string-append out "/man/man3"))
3565 (mkdir-p (string-append out "/bin"))
3566 (mkdir-p (string-append out "/lib")))
3568 (add-after 'install 'post-install
3570 (let ((out (assoc-ref %outputs "out")))
3571 (rename-file (string-append out "/inc")
3572 (string-append out "/include"))
3573 (mkdir-p (string-append out "/include/gsm"))
3574 (copy-recursively "inc"
3575 (string-append out "/include/gsm")))
3577 (delete 'configure)))) ; no configure script
3578 (synopsis "GSM 06.10 lossy speech compression library")
3579 (description "This C library provides an encoder and a decoder for the GSM
3580 06.10 RPE-LTP lossy speech compression algorithm.")
3581 (home-page "http://quut.com/gsm/")
3582 (license (license:non-copyleft "file://COPYRIGHT"))))
3584 (define-public python-pyalsaaudio
3586 (name "python-pyalsaaudio")
3590 (uri (pypi-uri "pyalsaaudio" version))
3593 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3594 (build-system python-build-system)
3596 `(#:tests? #f)) ; tests require access to ALSA devices.
3598 `(("alsa-lib" ,alsa-lib)))
3599 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
3600 (synopsis "ALSA wrappers for Python")
3602 "This package contains wrappers for accessing the ALSA API from Python.
3603 It is currently fairly complete for PCM devices, and has some support for
3605 (license license:psfl)))
3607 (define-public python2-pyalsaaudio
3608 (package-with-python2 python-pyalsaaudio))
3610 (define-public bluez-alsa
3615 ;; The tarballs are mere snapshots and don't contain a
3616 ;; bootstrapped build system.
3619 (url "https://github.com/Arkq/bluez-alsa")
3620 (commit (string-append "v" version))))
3621 (file-name (git-file-name name version))
3624 "08mppgnjf1j2733bk9yf0cny6rfxxwiys0s62lz2zd2lpdl6d9lz"))))
3625 (build-system gnu-build-system)
3628 (list (string-append "--with-alsaplugindir="
3629 (assoc-ref %outputs "out")
3631 (string-append "--with-dbusconfdir="
3632 (assoc-ref %outputs "out")
3633 "/etc/dbus-1/system.d"))))
3635 `(("autoconf" ,autoconf)
3636 ("automake" ,automake)
3637 ("libtool" ,libtool)
3638 ("pkg-config" ,pkg-config)))
3640 `(("alsa-lib" ,alsa-lib)
3645 ("ncurses" ,ncurses)
3648 (home-page "https://github.com/Arkq/bluez-alsa")
3649 (synopsis "Bluetooth ALSA backend")
3650 (description "This project is a rebirth of a direct integration between
3651 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
3652 in favor of 3rd party audio applications. From now on, Bluez acts as a
3653 middleware between an audio application, which implements Bluetooth audio
3654 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
3655 audio profiles in Bluez, so in theory every Bluetooth device (with audio
3656 capabilities) can be connected. In order to access the audio stream, one has
3657 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
3658 on the ALSA software PCM plugin.")
3659 (license license:expat)))
3667 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
3668 "snd-" version ".tar.gz"))
3671 "1frg64q2d8cia6v7jia7kahzx0apwdl0z252mzlbwqdz5960nv90"))))
3672 (build-system glib-or-gtk-build-system)
3674 `(#:tests? #f ; no tests
3675 #:out-of-source? #f ; for the 'install-doc' phase
3677 (let* ((out (assoc-ref %outputs "out"))
3678 (docdir (string-append out "/share/doc/"
3679 ,name "-" ,version)))
3680 (list "--with-alsa" "--with-jack" "--with-gmp"
3681 (string-append "--with-doc-dir=" docdir)))
3683 (modify-phases %standard-phases
3684 (add-after 'install 'install-doc
3685 (lambda* (#:key outputs #:allow-other-keys)
3686 (let* ((out (assoc-ref outputs "out"))
3687 (doc (string-append out "/share/doc/"
3688 ,name "-" ,version)))
3691 (install-file f doc))
3692 (find-files "." "\\.html$"))
3693 (copy-recursively "pix" (string-append doc "/pix"))
3696 `(("pkg-config" ,pkg-config)))
3698 `(("alsa-lib" ,alsa-lib)
3705 ("libsamplerate" ,libsamplerate)
3710 ("timidity++" ,timidity++)
3711 ("vorbis-tools" ,vorbis-tools)
3712 ("wavpack" ,wavpack)))
3713 (synopsis "Sound editor")
3714 (home-page "https://ccrma.stanford.edu/software/snd/")
3716 "Snd is a sound editor modelled loosely after Emacs. It can be
3717 customized and extended using either the s7 Scheme implementation (included in
3718 the Snd sources), Ruby, or Forth.")
3719 (license (license:non-copyleft "file://COPYING"))))
3721 (define-public noise-repellent
3723 (name "noise-repellent")
3728 (url "https://github.com/lucianodato/noise-repellent")
3730 (file-name (string-append name "-" version "-checkout"))
3733 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
3734 (build-system meson-build-system)
3737 (list (string-append "--prefix=" (assoc-ref %outputs "out")
3743 `(("pkg-config" ,pkg-config)))
3744 (home-page "https://github.com/lucianodato/noise-repellent")
3745 (synopsis "LV2 plugin for broadband noise reduction")
3746 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
3747 the following features:
3750 @item Spectral gating and spectral subtraction suppression rule
3751 @item Adaptive and manual noise thresholds estimation
3752 @item Adjustable noise floor
3753 @item Adjustable offset of thresholds to perform over-subtraction
3754 @item Time smoothing and a masking estimation to reduce artifacts
3755 @item Basic onset detector to avoid transients suppression
3756 @item Whitening of the noise floor to mask artifacts and to recover higher
3758 @item Option to listen to the residual signal
3760 @item Noise profile saved with the session
3763 (license license:lgpl3+)))
3765 (define-public cli-visualizer
3767 (name "cli-visualizer")
3773 (url "https://github.com/dpayne/cli-visualizer")
3774 (commit (string-append "v" version))))
3775 (file-name (git-file-name name version))
3777 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
3778 (build-system cmake-build-system)
3780 ;; TODO: Try using the latest googletest for versions > 1.8.
3781 `( ;; ("googletest" ,googletest-1.8)
3785 ("ncurses" ,ncurses)
3786 ("pulseaudio" ,pulseaudio)))
3789 ;; XXX Enable tests after patching them to use the system googletest.
3790 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
3792 (modify-phases %standard-phases
3793 (add-after 'install 'install-examples
3794 (lambda* (#:key outputs #:allow-other-keys)
3795 (with-directory-excursion "../source/examples"
3796 (delete-file "mac_osx_config")
3797 (for-each (lambda (file)
3800 (assoc-ref outputs "out")
3804 (home-page "https://github.com/dpayne/cli-visualizer/")
3805 (synopsis "Command-line audio visualizer")
3806 (description "@code{cli-visualizer} displays fast-Fourier
3807 transforms (FFTs) of the sound being played, as well as other graphical
3809 (license license:expat)))
3818 (url "https://github.com/karlstav/cava")
3820 (file-name (git-file-name name version))
3823 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
3824 (build-system gnu-build-system)
3826 `(("autoconf" ,autoconf)
3827 ("automake" ,automake)
3828 ("libtool" ,libtool)))
3831 ("ncurses" ,ncurses)
3832 ("pulseaudio" ,pulseaudio)))
3835 (list (string-append "PREFIX=" %output)
3836 (string-append "FONT_DIR=" %output "/share/consolefonts"))
3838 (let ((lib (string-append %output "/lib")))
3839 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
3841 (modify-phases %standard-phases
3843 (lambda* (#:key outputs #:allow-other-keys)
3844 (setenv "HOME" (getcwd))
3845 (invoke "sh" "autogen.sh")))
3846 (add-before 'build 'make-cava-ldflags
3847 (lambda* (#:key outputs #:allow-other-keys)
3848 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
3850 (add-after 'install 'data
3851 (lambda* (#:key outputs #:allow-other-keys)
3852 (for-each (lambda (file)
3854 (string-append (assoc-ref outputs "out")
3855 "/share/doc/examples")))
3856 (find-files "example_files"))
3858 (home-page "https://karlstav.github.io/cava/")
3859 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
3860 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
3861 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
3862 (license license:expat)))
3864 (define-public fluid-3
3865 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
3872 ;; Only one file is required, but the release bundles the whole
3873 ;; software which is 50MiB as tar and 200MiB unpacked. The website
3874 ;; directly links the soundfont release to the github file download.
3875 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
3876 commit "/share/sound/FluidR3Mono_GM.sf3"))
3877 (file-name (string-append name "-" version ".sf3"))
3880 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
3881 (build-system trivial-build-system)
3883 `(#:modules ((guix build utils))
3886 (use-modules (guix build utils))
3887 (let ((file (assoc-ref %build-inputs "source"))
3888 (out (string-append %output "/share/soundfonts")))
3890 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
3892 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
3893 (synopsis "Pro-quality GM soundfont")
3894 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
3895 (license license:expat))))
3897 (define-public libfdk
3905 (url "https://github.com/mstorsjo/fdk-aac")
3906 (commit (string-append "v" version))))
3907 (file-name (git-file-name name version))
3910 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
3911 (build-system gnu-build-system)
3913 `(("autoconf" ,autoconf)
3914 ("automake" ,automake)
3915 ("libtool" ,libtool)))
3916 (home-page "https://github.com/mstorsjo/fdk-aac")
3917 (synopsis "Fraunhofer FDK AAC library")
3918 (description "FDK is a library for encoding and decoding Advanced Audio
3919 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
3920 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
3921 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
3922 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
3923 library supports sample rates up to 96 kHz and up to eight channels (7.1
3925 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
3926 "https://www.gnu.org/licenses/license-list.html#fdk"))))
3928 (define-public libopenshot-audio
3930 (name "libopenshot-audio")
3935 (url "https://github.com/OpenShot/libopenshot-audio")
3936 (commit (string-append "v" version))))
3937 (file-name (git-file-name name version))
3940 "13if0m5mvlqly8gmbhschzb9papkgp3yqivklhb949dhy16m8zgf"))))
3941 (build-system cmake-build-system)
3943 `(("alsa-lib" ,alsa-lib)
3944 ;; The following are for JUCE GUI components:
3946 ("freetype" ,freetype)
3947 ("libxrandr" ,libxrandr)
3948 ("libxinerama" ,libxinerama)
3949 ("libxcursor" ,libxcursor)))
3951 `(#:tests? #f ;there are no tests
3953 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
3954 (assoc-ref %build-inputs "freetype")
3955 "/include/freetype2"))))
3956 (home-page "https://openshot.org")
3957 (synopsis "Audio editing and playback for OpenShot")
3958 (description "OpenShot Audio Library (libopenshot-audio) allows
3959 high-quality editing and playback of audio, and is based on the JUCE
3961 (license license:lgpl3+)))
3963 (define-public faudio
3971 (url "https://github.com/FNA-XNA/FAudio")
3973 (file-name (git-file-name name version))
3975 (base32 "0ckpr6ffz8ssfh1y850dhip5s5jv0j6n90qz5yx1v9d6gpwf08rp"))))
3977 '(#:tests? #f ; No tests.
3978 #:configure-flags '("-DFFMPEG=ON")))
3979 (build-system cmake-build-system)
3980 (native-inputs `(("pkg-config" ,pkg-config)))
3981 (inputs `(("ffmpeg" ,ffmpeg)
3983 (home-page "https://github.com/FNA-XNA/FAudio")
3984 (synopsis "XAudio reimplementation")
3985 (description "FAudio is an XAudio reimplementation that focuses solely on
3986 developing fully accurate DirectX Audio runtime libraries.")
3987 (license license:zlib)))
3989 (define-public gnaural
3992 (version "20110606")
3996 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
4000 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
4001 (build-system gnu-build-system)
4003 `(("alsa-lib" ,alsa-lib)
4005 ("libsndfile" ,libsndfile)
4006 ("portaudio" ,portaudio)))
4008 `(("pkg-config" ,pkg-config)))
4009 (home-page "http://gnaural.sourceforge.net/")
4010 (synopsis "Binaural beat synthesizer")
4011 (description "Gnaural is a programmable auditory binaural beat synthesizer
4012 intended to be used for brainwave entrainment. Gnaural supports creation of
4013 binaural beat tracks of different frequencies and exporting of tracks into
4014 different audio formats. Gnaural can also be linked over the internet with
4015 other Gnaural instances, allowing synchronous sessions between many users.")
4016 (license license:gpl2+)))
4018 (define-public darkice
4024 (uri (string-append "https://github.com/rafael2k/darkice/releases/"
4025 "download/v" version "/darkice-"
4029 "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76"))))
4030 (build-system gnu-build-system)
4031 (native-inputs `(("pkg-config" ,pkg-config)))
4032 (inputs `(("lame" ,lame)
4033 ("libvorbis" ,libvorbis)
4035 ("twolame" ,twolame)
4036 ("alsa-lib" ,alsa-lib)
4037 ("pulseaudio" ,pulseaudio)
4039 ("libsamplerate" ,libsamplerate)))
4042 (list (string-append "--with-lame-prefix="
4043 (assoc-ref %build-inputs "lame")))))
4044 (home-page "http://www.darkice.org/")
4045 (synopsis "Live audio streamer")
4046 (description "DarkIce is a live audio streamer. It takes audio input from
4047 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
4048 stream to one or more IceCast and/or ShoutCast servers.")
4049 (license license:gpl3+)))
4051 (define-public libltc
4059 (string-append "https://github.com/x42/libltc/releases/download/v"
4060 version "/libltc-" version ".tar.gz"))
4063 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
4064 (build-system gnu-build-system)
4066 `(#:parallel-tests? #f)) ;tests fail otherwise
4068 `(("doxygen" ,doxygen)
4069 ("pkg-config" ,pkg-config)))
4070 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
4071 (description "Libltc is a POSIX-C Library for handling
4072 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
4073 (home-page "https://x42.github.io/libltc/")
4074 (license license:lgpl3+)))
4076 (define-public redkite
4084 (url "https://gitlab.com/geontime/redkite.git")
4085 (commit (string-append "v" version))))
4086 (file-name (git-file-name name version))
4088 (base32 "17kv2jc4jvn3sdicz3sf8dnf25wbvv7ijzkr0mm0sbrrjz6vrwz0"))))
4089 (build-system cmake-build-system)
4091 `(#:tests? #f)) ;no tests included
4093 `(("cairo" ,cairo)))
4095 `(("pkg-config", pkg-config)))
4096 (synopsis "Small GUI toolkit")
4097 (description "Redkite is a small GUI toolkit developed in C++17 and
4098 inspired from other well known GUI toolkits such as Qt and GTK. It is
4099 minimal on purpose and is intended to be statically linked to applications,
4100 therefore satisfying any requirements they may have to be self contained,
4101 as is the case with audio plugins.")
4102 (home-page "https://gitlab.com/geontime/redkite")
4103 (license license:gpl3+)))
4105 (define-public carla
4114 (url "https://github.com/falkTX/Carla")
4115 (commit (string-append "v" version))))
4116 (file-name (git-file-name name version))
4119 "0fqgncqlr86n38yy7pa118mswfacmfczj7w9xx6c6k0jav3wk29k"))))
4120 (build-system gnu-build-system)
4122 `(#:tests? #f ; no "check" target
4124 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
4126 (modify-phases %standard-phases
4127 (delete 'configure) ; no configure script
4128 (add-before 'build 'set-CC-variable-and-show-features
4131 (invoke "make" "features")))
4132 (add-after 'install 'make-carla-executable
4133 (lambda* (#:key outputs #:allow-other-keys)
4134 (let ((out (assoc-ref outputs "out")))
4135 (chmod (string-append out "/share/carla/carla") #o555)
4137 (add-after 'install 'wrap-executables
4138 (lambda* (#:key outputs #:allow-other-keys)
4139 (let ((out (assoc-ref outputs "out")))
4140 (wrap-script (string-append out "/bin/carla")
4141 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
4144 `(("alsa-lib" ,alsa-lib)
4146 ("fluidsynth" ,fluidsynth)
4149 ("libsndfile" ,libsndfile)
4151 ("python-pyliblo" ,python-pyliblo)
4152 ("python-pyqt" ,python-pyqt)
4153 ("python-rdflib" ,python-rdflib)
4154 ;; python-pyqt shows the following error without python-wrapper:
4155 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
4156 ;; (ModuleNotFoundError: No module named 'PyQt5')
4157 ("python-wrapper" ,python-wrapper)
4162 ;; For WRAP-SCRIPT above.
4163 ("guile" ,guile-2.2)))
4165 `(("pkg-config" ,pkg-config)))
4166 (home-page "https://kx.studio/Applications:Carla")
4167 (synopsis "Audio plugin host")
4168 (description "Carla is a modular audio plugin host, with features like
4169 transport control, automation of parameters via MIDI CC and remote control
4170 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
4171 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
4172 default and preferred audio driver but also supports native drivers like ALSA.")
4173 (license license:gpl2+)))
4175 (define-public ecasound
4181 (uri (string-append "https://nosignal.fi/download/ecasound-"
4184 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
4185 (build-system gnu-build-system)
4186 (native-inputs `(("pkg-config" ,pkg-config)))
4187 ;; It would be nice to add mikmod to inputs if that gets packaged
4189 (inputs `(("alsa-lib" ,alsa-lib)
4193 ("vorbis-tools" ,vorbis-tools)
4196 ("timidity++" ,timidity++)
4197 ("libsndfile" ,libsndfile)
4198 ("libsamplerate" ,libsamplerate)
4199 ("ncurses" ,ncurses)
4202 (home-page "https://nosignal.fi/ecasound/index.php")
4203 (synopsis "Multitrack audio processing")
4204 (description "Ecasound is a software package designed for multitrack audio
4205 processing. It can be used for simple tasks like audio playback, recording and
4206 format conversions, as well as for multitrack effect processing, mixing,
4207 recording and signal recycling. Ecasound supports a wide range of audio inputs,
4208 outputs and effect algorithms. Effects and audio objects can be combined in
4209 various ways, and their parameters can be controlled by operator objects like
4210 oscillators and MIDI-CCs. A versatile console mode user-interface is included
4212 ;; As an exception to the above, the C, C++ and python implementations
4213 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
4214 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
4215 ;; that are not licensed under GPL.
4216 (license (list license:gpl2 license:lgpl2.1))))
4218 (define-public libaudec
4226 (url "https://git.zrythm.org/git/libaudec")
4227 (commit (string-append "v" version))))
4228 (file-name (git-file-name name version))
4231 "04mpmfmqc43asw0m3zxhb6jj4qms7x4jw7mx4xb1d3lh16xllniz"))))
4232 (build-system meson-build-system)
4234 `(#:configure-flags `("-Denable_tests=true -Denable_ffmpeg=true")))
4236 `(("libsamplerate" ,libsamplerate)
4237 ("libsndfile" ,libsndfile)
4238 ("ffmpeg" ,ffmpeg)))
4240 `(("pkg-config", pkg-config)))
4241 (synopsis "Library for reading and resampling audio files")
4242 (description "libaudec is a wrapper library over ffmpeg, sndfile and
4243 libsamplerate for reading and resampling audio files, based on Robin Gareus'
4244 @code{audio_decoder} code.")
4245 (home-page "https://git.zrythm.org/cgit/libaudec")
4246 (license license:agpl3+)))
4248 (define-public lv2lint
4256 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
4258 (file-name (git-file-name name version))
4261 "1pspwqpzl2dw1hd9ra9yr53arqbbqjn7d7j0f7p9g3iqa76vblpi"))))
4262 (build-system meson-build-system)
4265 `("-Delf-tests=true" ; for checking symbol visibility
4266 "-Donline-tests=true"))) ; for checking URI existence
4272 `(("pkg-config", pkg-config)))
4273 (synopsis "LV2 plugin lint tool")
4274 (description "lv2lint is an LV2 lint-like tool that checks whether a
4275 given plugin and its UI(s) match up with the provided metadata and adhere
4276 to well-known best practices.")
4277 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
4278 (license license:artistic2.0)))
4280 (define-public lv2toweb
4288 (url "https://github.com/x42/lv2toweb")
4289 (commit (string-append "v" version))))
4290 (file-name (git-file-name name version))
4293 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
4294 (build-system gnu-build-system)
4296 `(#:tests? #f ; no "check" target
4297 #:make-flags (list "CC=gcc"
4298 (string-append "PREFIX=" (assoc-ref %outputs "out")))
4300 (modify-phases %standard-phases
4301 (delete 'configure))))
4306 `(("help2man", help2man)
4307 ("pkg-config", pkg-config)))
4308 (synopsis "Documentation generator for LV2 plugins")
4310 "lv2toweb allows the user to create an xhtml page with information
4311 about the given LV2 plugin, provided that the plugin and its UI(s) match up
4312 with the provided metadata and adhere to well-known best practices.")
4313 (home-page "https://github.com/x42/lv2toweb")
4314 (license (list license:isc license:gpl2))))
4316 (define-public ztoolkit
4324 (url "https://git.zrythm.org/git/ztoolkit")
4325 (commit (string-append "v" version))))
4326 (file-name (git-file-name name version))
4329 "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1"))))
4330 (build-system meson-build-system)
4333 ("libx11" ,libx11)))
4335 `(("pkg-config" ,pkg-config)))
4336 (synopsis "GUI toolkit for LV2 plugins")
4337 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
4338 inspired by GTK. It handles events and low level drawing on behalf of
4339 the user and provides a high-level API for managing the UI and custom
4340 widgets. ZToolkit is written in C and was created to be used for building
4341 audio plugin UIs, where the dependencies often need to be kept to a
4343 (home-page "https://git.zrythm.org/cgit/ztoolkit/")
4344 (license license:agpl3+)))
4346 (define-public ztoolkit-rsvg
4349 (name "ztoolkit-rsvg")
4351 `(#:configure-flags `("-Denable_rsvg=true")))
4353 `(("librsvg" ,librsvg)
4354 ,@(package-inputs ztoolkit)))
4355 (synopsis "ZToolkit with SVG support")))
4357 (define-public codec2
4365 (url "https://github.com/drowe67/codec2")
4366 (commit (string-append "v" version))))
4367 (file-name (git-file-name name version))
4369 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
4370 (build-system cmake-build-system)
4374 ("valgrind" ,valgrind)))
4376 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
4378 (modify-phases %standard-phases
4379 (add-before 'check 'set-test-environment
4381 (setenv "HOME" "/tmp")
4383 (synopsis "Speech codec")
4385 "Codec 2 is a speech codec designed for communications quality speech
4386 between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
4388 (home-page "https://www.rowetel.com/?page_id=452")
4389 (license license:lgpl2.1)))
4391 (define-public ableton-link
4393 (name "ableton-link")
4398 (url "https://github.com/Ableton/link")
4399 (commit (string-append "Link-" version))))
4400 (file-name (git-file-name name version))
4403 "0262vm0v7hmqjhqx5xikh529p3c065p1yld6ymaiz74yq1dnnjir"))
4404 (modules '((guix build utils)))
4406 (search-patches "ableton-link-system-libraries-debian.patch"))
4409 ;; Tests assume that CMake's "build" directory is a
4410 ;; sub-directory of the source tree, so we fix it.
4411 (substitute* "ci/run-tests.py"
4412 (("root_dir,") "root_dir, os.pardir,"))
4413 ;; Unbundle dependencies.
4414 (delete-file-recursively "third_party")
4415 (delete-file-recursively "modules")
4417 (build-system cmake-build-system)
4419 `(("catch" ,catch-framework)
4420 ("python" ,python) ;for running tests
4421 ("portaudio" ,portaudio) ;for portaudio examples
4422 ("qtbase" ,qtbase) ;for Qt examples
4423 ("qtdeclarative" ,qtdeclarative)
4424 ("qttools" ,qttools)))
4426 `(("jack" ,jack-1) ;for JACK examples
4427 ("qtquickcontrols" ,qtquickcontrols))) ;for Qt examples
4429 ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp
4430 ;; contains '#include <asio.hpp>'.
4434 '("-DLINK_BUILD_QT_EXAMPLES=ON"
4435 "-DLINK_BUILD_JACK=ON")
4437 (modify-phases %standard-phases
4439 (lambda* (#:key inputs #:allow-other-keys)
4440 (let* ((python (string-append (assoc-ref inputs "python")
4442 (run-tests (string-append "../ableton-link-"
4444 "-checkout/ci/run-tests.py")))
4445 (invoke python run-tests "--target" "LinkCoreTest")
4446 (invoke python run-tests "--target" "LinkDiscoveryTest"))))
4447 (add-before 'install 'patch-cmake
4448 (lambda* (#:key inputs #:allow-other-keys)
4449 (let* ((source (string-append "../ableton-link-"
4452 (substitute* (string-append source
4453 "cmake_include/AsioStandaloneConfig.cmake")
4454 (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./"
4455 "modules/asio-standalone/asio/include"))
4456 (string-append (assoc-ref inputs "asio")
4458 (substitute* (string-append source "AbletonLinkConfig.cmake")
4459 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include")
4460 "${CMAKE_CURRENT_LIST_DIR}/../../../include")
4461 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp")
4462 "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp"))
4465 (lambda* (#:key outputs #:allow-other-keys)
4466 (let* ((out (assoc-ref outputs "out"))
4467 (bin (string-append out "/bin"))
4468 (lib-cmake (string-append out "/lib/cmake/ableton-link"))
4469 (source (string-append "../ableton-link-" ,version "-checkout")))
4470 (for-each (lambda (test-file)
4471 (delete-file test-file))
4472 '("bin/LinkDiscoveryTest" "bin/LinkCoreTest"))
4473 (copy-recursively "bin" bin)
4474 (copy-recursively (string-append source "/include/ableton")
4475 (string-append out "/include/ableton"))
4476 (install-file (string-append source "/AbletonLinkConfig.cmake")
4478 (install-file (string-append source
4479 "/cmake_include/AsioStandaloneConfig.cmake")
4480 (string-append lib-cmake "/cmake_include"))
4482 (home-page "https://github.com/Ableton/link")
4483 (synopsis "Synchronize musical beat, tempo, and phase across multiple applications")
4485 "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase
4486 across multiple applications running on one or more devices. Applications on devices
4487 connected to a local network discover each other automatically and form a musical
4488 session in which each participant can perform independently: anyone can start or stop
4489 while still staying in time.")
4490 (license license:gpl2+)))