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>
35 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
37 ;;; This file is part of GNU Guix.
39 ;;; GNU Guix is free software; you can redistribute it and/or modify it
40 ;;; under the terms of the GNU General Public License as published by
41 ;;; the Free Software Foundation; either version 3 of the License, or (at
42 ;;; your option) any later version.
44 ;;; GNU Guix is distributed in the hope that it will be useful, but
45 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
46 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47 ;;; GNU General Public License for more details.
49 ;;; You should have received a copy of the GNU General Public License
50 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
52 (define-module (gnu packages audio)
53 #:use-module (gnu packages)
54 #:use-module (gnu packages algebra)
55 #:use-module (gnu packages autotools)
56 #:use-module (gnu packages avahi)
57 #:use-module (gnu packages backup)
58 #:use-module (gnu packages base)
59 #:use-module (gnu packages bison)
60 #:use-module (gnu packages boost)
61 #:use-module (gnu packages check)
62 #:use-module (gnu packages compression)
63 #:use-module (gnu packages curl)
64 #:use-module (gnu packages dbm)
65 #:use-module (gnu packages documentation)
66 #:use-module (gnu packages elf)
67 #:use-module (gnu packages emacs)
68 #:use-module (gnu packages file)
69 #:use-module (gnu packages flex)
70 #:use-module (gnu packages fltk)
71 #:use-module (gnu packages fontutils)
72 #:use-module (gnu packages gcc)
73 #:use-module (gnu packages gettext)
74 #:use-module (gnu packages gl)
75 #:use-module (gnu packages glib)
76 #:use-module (gnu packages gnome)
77 #:use-module (gnu packages gnunet) ; libmicrohttpd
78 #:use-module (gnu packages gperf)
79 #:use-module (gnu packages gtk)
80 #:use-module (gnu packages guile)
81 #:use-module (gnu packages icu4c)
82 #:use-module (gnu packages image)
83 #:use-module (gnu packages libbsd)
84 #:use-module (gnu packages libusb)
85 #:use-module (gnu packages linux)
86 #:use-module (gnu packages llvm)
87 #:use-module (gnu packages man)
88 #:use-module (gnu packages maths)
89 #:use-module (gnu packages mp3) ;taglib
90 #:use-module (gnu packages multiprecision)
91 #:use-module (gnu packages music)
92 #:use-module (gnu packages ncurses)
93 #:use-module (gnu packages networking)
94 #:use-module (gnu packages onc-rpc)
95 #:use-module (gnu packages perl)
96 #:use-module (gnu packages pkg-config)
97 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
98 #:use-module (gnu packages python)
99 #:use-module (gnu packages python-xyz)
100 #:use-module (gnu packages qt)
101 #:use-module (gnu packages rdf)
102 #:use-module (gnu packages readline)
103 #:use-module (gnu packages sdl)
104 #:use-module (gnu packages serialization)
105 #:use-module (gnu packages telephony)
106 #:use-module (gnu packages linphone)
107 #:use-module (gnu packages tls)
108 #:use-module (gnu packages valgrind)
109 #:use-module (gnu packages video)
110 #:use-module (gnu packages vim) ;xxd
111 #:use-module (gnu packages web)
112 #:use-module (gnu packages webkit)
113 #:use-module (gnu packages wxwidgets)
114 #:use-module (gnu packages xiph)
115 #:use-module (gnu packages xml)
116 #:use-module (gnu packages xorg)
117 #:use-module (guix build-system cmake)
118 #:use-module (guix build-system copy)
119 #:use-module (guix build-system glib-or-gtk)
120 #:use-module (guix build-system gnu)
121 #:use-module (guix build-system meson)
122 #:use-module (guix build-system python)
123 #:use-module (guix build-system trivial)
124 #:use-module (guix build-system waf)
125 #:use-module (guix download)
126 #:use-module (guix git-download)
127 #:use-module ((guix licenses) #:prefix license:)
128 #:use-module (guix packages)
129 #:use-module (guix utils)
130 #:use-module (srfi srfi-1)
131 #:use-module (srfi srfi-26))
133 (define-public opensles
142 (url "https://github.com/KhronosGroup/OpenSL-ES-Registry.git")
143 (commit "ea5104bf37bf525c25e6ae2386586048179d0fda")))
144 (file-name (git-file-name name version))
146 (base32 "0j5bm7h3ahz66f23i9abwc0y10agfkpksnj6y078x2nichq66h4f"))
148 (search-patches "opensles-add-license-file.patch"))))
149 (build-system copy-build-system)
152 (modify-phases %standard-phases
153 (add-after 'install 'clean
154 (lambda* (#:key outputs #:allow-other-keys)
155 (let* ((out (assoc-ref outputs "out")))
156 (mkdir-p (string-append out "/etc"))
157 (mkdir-p (string-append out "/include"))
158 (mkdir-p (string-append out "/share"))
160 (string-append out "/api/1.1/OpenSLES_IID.c")
161 (string-append out "/etc/OpenSLES_IID.c"))
163 (string-append out "/api/1.1/OpenSLES.h")
164 (string-append out "/include/OpenSLES.h"))
166 (string-append out "/api/1.1/OpenSLES_Platform.h")
167 (string-append out "/include/OpenSLES_Platform.h"))
169 (string-append out "/api/1.1/README.txt")
170 (string-append out "/share/README.txt"))
172 (string-append out "/LICENSE.txt")
173 (string-append out "/share/LICENSE.txt"))
174 (for-each delete-file-recursively
176 (string-append out "/api")
177 (string-append out "/specs")))
178 (for-each delete-file
180 (string-append out "/CODE_OF_CONDUCT.md")
181 (string-append out "/index.php")
182 (string-append out "/README.md"))))
184 (synopsis "Embedded Audio Acceleration")
185 (description "OpenSLES is a royalty-free, cross-platform,
186 hardware-accelerated audio API tuned for embedded systems. It provides a
187 standardized, high-performance, low-latency method to access audio
188 functionality for developers of native applications on embedded mobile
189 multimedia devices, enabling straightforward cross-platform deployment of
190 hardware and software audio capabilities, reducing implementation effort, and
191 promoting the market for advanced audio.")
192 (home-page "https://www.khronos.org/opensles/")
193 (license (license:non-copyleft "file:///LICENSE.txt"))))
195 (define-public wildmidi
204 (url "https://github.com/Mindwerks/wildmidi.git")
205 (commit (string-append name "-" version))))
206 (file-name (git-file-name name version))
208 (base32 "01f4a9c5xlap5a4pkfnlgkzk5pjlk43zkq6fnw615ghya04g6hrl"))))
209 (build-system cmake-build-system)
211 `(#:tests? #f ; No target
216 "-DWANT_OPENAL=ON")))
220 (synopsis "Software Synthesizer")
221 (description "WildMIDI is a simple software midi player which has a core
222 softsynth library that can be use with other applications.")
223 (home-page "https://www.mindwerks.net/projects/wildmidi/")
231 (define-public webrtc-audio-processing
233 (name "webrtc-audio-processing")
239 (string-append "http://freedesktop.org/software/pulseaudio/"
240 name "/" name "-" version ".tar.xz"))
242 (base32 "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0"))))
243 (build-system gnu-build-system)
244 (synopsis "WebRTC's Audio Processing Library")
245 (description "WebRTC-Audio-Processing library based on Google's
246 implementation of WebRTC.")
248 "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/")
249 (license (license:non-copyleft "file:///COPYING"))))
251 (define-public vo-aacenc
259 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
260 name "/" name "-" version ".tar.gz"))
262 (base32 "0dhghm3c8pqrriwwyj5x9i0yf52fmdfijbgqqkvqvwarldvp86p5"))))
263 (build-system gnu-build-system)
264 (synopsis "VisualOn AAC Encoder")
265 (description "VO-AACENC is the VisualOn implementation of Advanced Audio
266 Coding (AAC) encoder.")
267 (home-page "https://sourceforge.net/projects/opencore-amr/")
268 (license license:asl2.0)))
270 (define-public tinyalsa
279 (url "https://github.com/tinyalsa/tinyalsa.git")
281 (file-name (git-file-name name version))
283 (base32 "0ajyvml5bnzvhiyyrn42gqwgg23ssxkfh09rvsnywhzxhd0xai4h"))))
284 (build-system gnu-build-system)
286 `(#:tests? #f ; No target
288 (modify-phases %standard-phases
292 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
293 (synopsis "ALSA interfacing library")
294 (description "TinyALSA is a small library to interface with ALSA in the
296 (home-page "https://github.com/tinyalsa/tinyalsa")
297 (license (license:non-copyleft "file:///NOTICE"))))
299 (define-public libopenmpt
307 (string-append "https://download.openmpt.org/archive/libopenmpt/src/"
308 "libopenmpt-" version "+release.autotools.tar.gz"))
310 (base32 "1cwpc4j90dpxa2siia68rg9qwwm2xk6bhxnslfjj364507jy6s4l"))))
311 (build-system gnu-build-system)
314 (list (string-append "--docdir=" (assoc-ref %outputs "out")
315 "/share/doc/" ,name "-" ,version))
317 (modify-phases %standard-phases
318 (add-after 'install 'delete-static-libraries
319 (lambda* (#:key outputs #:allow-other-keys)
320 (let* ((out (assoc-ref outputs "out"))
321 (lib (string-append out "/lib")))
322 (for-each delete-file (find-files lib "\\.a$"))
325 `(("doxygen" ,doxygen)
327 ("pkg-config" ,pkg-config)))
332 ("portaudio" ,portaudio)
333 ("pulseaudio" ,pulseaudio)
335 ("sndfile" ,libsndfile)
336 ("vorbis" ,libvorbis)
338 (synopsis "Audio tracking library")
339 (description "LibOpenMPT is a cross-platform C++ and C module playback
340 library. It is based on the player code of the Open ModPlug Tracker project.")
341 (home-page "https://openmpt.org/")
342 (license (license:non-copyleft "file:///LICENSE"))))
344 (define-public libofa
352 (string-append "https://storage.googleapis.com/"
353 "google-code-archive-downloads/v2/code.google.com/"
354 "musicip-libofa/" name "-" version ".tar.gz"))
356 (base32 "184ham039l7lwhfgg0xr2vch2xnw1lwh7sid432mh879adhlc5h2"))
359 "libofa-ftbfs-1.diff"
361 "libofa-ftbfs-2.diff"))))
362 (build-system gnu-build-system)
364 `(("pkg-config" ,pkg-config)))
370 (synopsis "Open Fingerprint Architecture")
371 (description "LibOFA is an audio fingerprint library, created and provided
373 (home-page "https://code.google.com/archive/p/musicip-libofa/")
374 (license license:gpl2+)))
384 (string-append "https://sourceforge.net/projects/faac/files/faac-src/"
385 "faac-1.30/faac-1_30.tar.gz/download"))
387 (base32 "1lmj0dib3mjp84jhxc5ddvydkzzhb0gfrdh3ikcidjlcb378ghxd"))))
388 (build-system gnu-build-system)
390 `(("autoconf" ,autoconf)
391 ("automake" ,automake)
393 ("pkg-config" ,pkg-config)))
394 (synopsis "Freeware Advanced Audio Coder")
395 (description "FAAC is an MPEG-4 and MPEG-2 AAC encoder.")
396 (home-page "https://www.audiocoding.com/faac.html")
399 ;; ISO MPEG-4 reference code.
404 (define-public libtimidity
412 (string-append "https://sourceforge.net/projects/" name "/files/"
413 name "/" version "/" name "-" version ".tar.gz"))
415 (base32 "0p2px0m907gi1zpdr0l9adq25jl89j85c11ag9s2g4yc6n1nhgfm"))))
416 (build-system gnu-build-system)
418 `(#:tests? #f)) ; XXX: LibTiMidity could not be initialised
420 `(("pkg-config" ,pkg-config)))
423 (synopsis "MIDI to WAVE converter library")
424 (description "LibTiMidity is a MIDI to WAVE converter library that uses
425 Gravis Ultrasound-compatible patch files to generate digital audio data from
426 General MIDI files.")
427 (home-page "http://libtimidity.sourceforge.net/")
429 ;; This project is dual-licensed.
430 ;; Either of the following licenses can be exercised.
433 license:artistic2.0))))
435 (define-public vo-amrwbenc
443 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
444 name "/" name "-" version ".tar.gz"))
446 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
447 (build-system gnu-build-system)
448 (synopsis "Adaptive Multi Rate Codec")
449 (description "VO-AMR is a library of VisualOn implementation of
450 Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
451 (home-page "https://sourceforge.net/projects/opencore-amr/")
452 (license license:asl2.0)))
454 (define-public opencore-amr
456 (name "opencore-amr")
462 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
463 name "/" name "-" version ".tar.gz"))
465 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
466 (build-system gnu-build-system)
467 (synopsis "Adaptive Multi Rate Codec")
468 (description "OpenCore-AMR is a library of OpenCORE Framework
469 implementation of Adaptive Multi Rate Narrowband and Wideband
470 (AMR-NB and AMR-WB) speech codec.")
471 (home-page "https://sourceforge.net/projects/opencore-amr/")
472 (license license:asl2.0)))
474 (define-public alsa-modular-synth
476 (name "alsa-modular-synth")
480 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
481 "/" version "/ams-" version ".tar.bz2"))
484 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))
486 (search-patches "alsa-modular-synth-fix-vocoder.patch"))))
487 (build-system gnu-build-system)
491 "CXXFLAGS=-std=gnu++11")
493 (modify-phases %standard-phases
494 (add-after 'set-paths 'hide-default-gcc
495 (lambda* (#:key inputs #:allow-other-keys)
496 (let ((gcc (assoc-ref inputs "gcc")))
497 ;; Remove the default GCC from CPLUS_INCLUDE_PATH to prevent
498 ;; conflicts with the GCC 5 input.
499 (setenv "CPLUS_INCLUDE_PATH"
501 (delete (string-append gcc "/include/c++")
502 (string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
505 ;; Insert an extra space between linker flags.
506 (add-before 'configure 'add-missing-space
508 (substitute* "configure"
509 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
510 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
513 `(("alsa-lib" ,alsa-lib)
514 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
515 ;; license incompatibility.
516 ("clalsadrv" ,clalsadrv)
523 `(("pkg-config" ,pkg-config)
526 (home-page "http://alsamodular.sourceforge.net/")
527 (synopsis "Realtime modular synthesizer and effect processor")
529 "AlsaModularSynth is a digital implementation of a classical analog
530 modular synthesizer system. It uses virtual control voltages to control the
531 parameters of the modules. The control voltages which control the frequency
532 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
533 Filter) modules follow the convention of 1V / Octave.")
534 (license license:gpl2)))
543 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
546 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
547 (build-system waf-build-system)
549 `(#:tests? #f ; no check target
552 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
556 "--enable-samplerate"
561 ("libsndfile" ,libsndfile)
562 ("libsamplerate" ,libsamplerate)
564 ("ffmpeg" ,ffmpeg))) ; for libavcodec
566 `(("pkg-config" ,pkg-config)))
567 (home-page "https://aubio.org/")
568 (synopsis "Library for audio labelling")
570 "aubio is a tool designed for the extraction of annotations from audio
571 signals. Its features include segmenting a sound file before each of its
572 attacks, performing pitch detection, tapping the beat and producing MIDI
573 streams from live audio.")
574 (license license:gpl3+)))
576 (define (ardour-rpath-phase major-version)
577 `(lambda* (#:key outputs #:allow-other-keys)
578 (let ((libdir (string-append (assoc-ref outputs "out")
579 "/lib/ardour" ,major-version)))
580 (substitute* "wscript"
581 (("linker_flags = \\[\\]")
582 (string-append "linker_flags = [\""
585 libdir "/backends" ":"
586 libdir "/engines" ":"
587 libdir "/panners" ":"
588 libdir "/surfaces" ":"
589 libdir "/vamp" "\"]"))))
592 (define-public ardour
599 (url "https://git.ardour.org/ardour/ardour.git")
602 ;; Ardour expects this file to exist at build time. The revision
604 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
605 `(call-with-output-file
606 "libs/ardour/revision.cc"
608 (format port ,(string-append "#include \"ardour/revision.h\"
609 namespace ARDOUR { const char* revision = \"" version "\" ; }"))
613 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
614 (file-name (string-append name "-" version))))
615 (build-system waf-build-system)
617 `(#:configure-flags '("--cxx11" ; required by gtkmm
618 "--no-phone-home" ; don't contact ardour.org
619 "--freedesktop" ; build .desktop file
620 "--test") ; build unit tests
622 (modify-phases %standard-phases
623 (add-after 'unpack 'set-rpath-in-LDFLAGS
624 ,(ardour-rpath-phase (version-major version)))
625 (add-after 'install 'install-freedesktop-files
626 (lambda* (#:key outputs #:allow-other-keys)
627 (let* ((out (assoc-ref outputs "out"))
628 (share (string-append out "/share"))
629 (ver ,(version-major version)))
632 (let ((dir (string-append share "/icons/hicolor/"
633 size "x" size "/apps")))
636 (string-append "gtk2_ardour/resources/Ardour-icon_"
638 (string-append dir "/ardour" ver ".png"))))
639 '("16" "22" "32" "48" "256"))
640 (install-file (string-append "build/gtk2_ardour/ardour"
642 (string-append share "/applications/"))
643 (install-file (string-append "build/gtk2_ardour/ardour"
645 (string-append share "/appdata/")))
650 `(("alsa-lib" ,alsa-lib)
663 ("libarchive" ,libarchive)
664 ("libart-lgpl" ,libart-lgpl)
665 ("libgnomecanvasmm" ,libgnomecanvasmm)
668 ("libsamplerate" ,libsamplerate)
669 ("libsndfile" ,libsndfile)
671 ("libvorbis" ,libvorbis)
677 ("python-rdflib" ,python-rdflib)
678 ("readline" ,readline)
680 ("rubberband" ,rubberband)
688 `(("cppunit" ,cppunit)
689 ("gettext" ,gettext-minimal)
692 ("pkg-config" ,pkg-config)))
693 (home-page "https://ardour.org")
694 (synopsis "Digital audio workstation")
696 "Ardour is a multi-channel digital audio workstation, allowing users to
697 record, edit, mix and master audio and MIDI projects. It is targeted at audio
698 engineers, musicians, soundtrack editors and composers.")
699 (license license:gpl2+)))
701 (define-public audacity
709 (url "https://github.com/audacity/audacity")
710 (commit (string-append "Audacity-" version))))
711 (file-name (git-file-name name version))
714 "1xk0piv72d2xd3p7igr916fhcbrm76fhjr418k1rlqdzzg1hfljn"))
715 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
716 (modules '((guix build utils)))
718 ;; Remove bundled libraries.
722 (delete-file-recursively (string-append "lib-src/" dir)))
723 '("expat" "ffmpeg" "lame" "libflac" "libid3tag" "libmad" "libogg"
724 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
725 "portaudio-v19" "portmidi" "soundtouch" "twolame"
726 ;; FIXME: these libraries have not been packaged yet:
734 ;; FIXME: we have this library, but it differs in that the Slide
735 ;; class does not have a member "getInverseStretchedTime".
739 (build-system glib-or-gtk-build-system)
741 `(("wxwidgets" ,wxwidgets)
743 ("alsa-lib" ,alsa-lib)
749 ("libid3tag" ,libid3tag)
751 ;;("libsbsms" ,libsbsms) ;bundled version is modified
752 ("libsndfile" ,libsndfile)
753 ("soundtouch" ,soundtouch)
754 ("soxr" ,soxr) ;replaces libsamplerate
757 ("libvorbis" ,libvorbis)
759 ("lilv" ,lilv) ;for lv2
760 ("suil" ,suil) ;for lv2
761 ("portaudio" ,portaudio)
762 ("portmidi" ,portmidi)))
764 `(("autoconf" ,autoconf)
765 ("automake" ,automake)
766 ("gettext" ,gettext-minimal) ;for msgfmt
768 ("pkg-config" ,pkg-config)
773 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
774 (libmad (assoc-ref %build-inputs "libmad"))
775 (portmidi (assoc-ref %build-inputs "portmidi")))
777 ;; Loading FFmpeg dynamically is problematic.
778 "--disable-dynamic-loading"
779 ;; SSE instructions are available on Intel systems only.
780 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
784 '("--enable-sse=no"))
785 ;; portmidi, libid3tag and libmad provide no .pc files, so
786 ;; pkg-config fails to find them. Force their inclusion.
787 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
788 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
789 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
790 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
791 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
792 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
793 "EXPAT_USE_SYSTEM=yes"
794 "FFMPEG_USE_SYSTEM=yes"
795 "LAME_USE_SYSTEM=yes"
796 "LIBFLAC_USE_SYSTEM=yes"
797 "LIBID3TAG_USE_SYSTEM=yes"
798 "LIBMAD_USE_SYSTEM=yes"
799 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
800 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
801 "LIBSNDFILE_USE_SYSTEM=yes"
802 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
803 "LIBSOXR_USE_SYSTEM=yes"
804 "LIBTWOLAME_USE_SYSTEM=yes"
805 "LIBVAMP_USE_SYSTEM=yes"
806 "LIBVORBIS_USE_SYSTEM=yes"
808 "PORTAUDIO_USE_SYSTEM=yes"))
810 (modify-phases %standard-phases
811 (add-after 'unpack 'fix-sbsms-check
813 ;; This check is wrong: there is no 2.2.0 release; not even the
814 ;; bundled sources match this release string.
815 (substitute* '("m4/audacity_checklib_libsbsms.m4"
817 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
819 (add-after 'unpack 'use-upstream-headers
820 (lambda* (#:key inputs #:allow-other-keys)
821 (substitute* '("src/NoteTrack.cpp"
824 "src/AudioIOBase.cpp")
825 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
826 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
827 (substitute* "src/prefs/MidiIOPrefs.cpp"
828 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
830 ;; The test suite is not "well exercised" according to the developers,
831 ;; and fails with various errors. See
832 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
834 (home-page "https://www.audacityteam.org/")
835 (synopsis "Software for recording and editing sounds")
837 "Audacity is a multi-track audio editor designed for recording, playing
838 and editing digital audio. It features digital effects and spectrum analysis
840 (license license:gpl2+)))
842 (define-public audiofile
850 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
852 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
854 ;; CVE references according to nixpgs
856 "audiofile-fix-datatypes-in-tests.patch"
857 "audiofile-fix-sign-conversion.patch"
858 "audiofile-hurd.patch"
859 "audiofile-CVE-2015-7747.patch"
861 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
862 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
864 "audiofile-Check-the-number-of-coefficients.patch"
866 "audiofile-Fix-overflow-in-MSADPCM-decodeSam.patch"
867 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
868 "audiofile-Fix-multiply-overflow-sfconvert.patch"
869 "audiofile-signature-of-multiplyCheckOverflow.patch"
871 "audiofile-Fail-on-error-in-parseFormat.patch"
873 "audiofile-division-by-zero-BlockCodec-runPull.patch"
874 "audiofile-CVE-2018-13440.patch"
875 "audiofile-CVE-2018-17095.patch"))))
876 (build-system gnu-build-system)
878 `(("alsa-lib" ,alsa-lib)))
879 (home-page "https://audiofile.68k.org/")
880 (synopsis "Library to handle various audio file formats")
881 (description "This is an open-source version of SGI's audiofile library.
882 It provides a uniform programming interface for processing of audio data to
883 and from audio files of many common formats.
885 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
886 .snd/.au, BICS, and raw data. Supported compression formats are currently
887 G.711 mu-law and A-law.")
888 (license license:lgpl2.1+)))
890 (define-public autotalent
896 (uri (string-append "http://tombaran.info/autotalent-"
900 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
901 (build-system gnu-build-system)
903 `(#:tests? #f ; no check target
905 (modify-phases %standard-phases
906 ;; no configure script
908 (add-before 'install 'prepare-target-directory
909 (lambda* (#:key outputs #:allow-other-keys)
910 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
912 (add-after 'unpack 'override-target-directory
913 (lambda* (#:key outputs #:allow-other-keys)
914 (substitute* "Makefile"
915 (("/usr/lib64/ladspa")
916 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
919 `(("ladspa" ,ladspa)))
920 (home-page "http://tombaran.info/autotalent.html")
921 (synopsis "Pitch-correction LADSPA audio plugin")
923 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
924 controls are allowable notes, strength of correction, LFO for vibrato and
926 ;; All code except the FFT routine is licensed under GPLv2+.
927 ;; The FFT routine is under BSD-3.
928 (license license:gpl2+)))
936 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
941 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
942 (patches (search-patches "azr3.patch"))))
943 (build-system gnu-build-system)
945 `(#:tests? #f ; no check target
948 (string-append "prefix=" %output)
949 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
951 (modify-phases %standard-phases
952 (add-before 'install 'fix-timestamp
954 (let ((early-1980 315619200)) ; 1980-01-02 UTC
955 (utime "azr3.1" early-1980 early-1980))
963 `(("pkg-config" ,pkg-config)))
964 (home-page "http://ll-plugins.nongnu.org/azr3/")
965 (synopsis "Tonewheel organ synthesizer")
967 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
968 with drawbars, distortion and rotating speakers. The organ has three
969 sections, two polyphonic sections with nine drawbars each and one monophonic
970 bass section with five drawbars. A standalone JACK application and LV2
971 plugins are provided.")
972 (license license:gpl2)))
980 (uri (string-append "https://calf-studio-gear.org/files/calf-"
984 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
985 (build-system gnu-build-system)
987 `(("fluidsynth" ,fluidsynth)
998 `(("pkg-config" ,pkg-config)))
1000 (list (search-path-specification
1001 (variable "LV2_PATH")
1002 (files '("lib/lv2")))))
1003 (home-page "http://calf.sourceforge.net/")
1004 (synopsis "Audio plug-in pack for LV2 and JACK environments")
1006 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
1007 The suite contains lots of effects (delay, modulation, signal processing,
1008 filters, equalizers, dynamics, distortion and mastering effects),
1009 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
1010 tools (analyzer, mono/stereo tools, crossovers).")
1011 ;; calfjackhost is released under GPLv2+
1012 ;; The plugins are released under LGPLv2.1+
1013 (license (list license:lgpl2.1+ license:gpl2+))))
1015 (define-public caps-plugins-lv2
1017 (name "caps-plugins-lv2")
1018 (version "0.9.24") ; version that has been ported.
1021 ;; The Github project hasn't tagged a release.
1024 ;; Actually https://github.com/moddevices/caps-lv2.git, but it's
1025 ;; missing fixes for newer glibc, so using the origin of a pull
1026 ;; request regarding this issue:
1027 (url "https://github.com/jujudusud/caps-lv2")
1028 (commit "9c9478b7fbd8f9714f552ebe2a6866398b0babfb")))
1029 (file-name (git-file-name name version))
1032 "1idfnazin3cca41zw1a8vwgnxjnkrap7bxxjamjqvgpmvydgcam1"))))
1033 (build-system gnu-build-system)
1035 `(#:tests? #f ; no check target
1037 (modify-phases %standard-phases
1038 ;; no configure script
1040 (add-after 'unpack 'override-target-directory
1041 (lambda* (#:key outputs #:allow-other-keys)
1042 (substitute* (find-files "plugins" "Makefile")
1043 (("/usr/local")(assoc-ref outputs "out")))
1047 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
1048 (home-page "https://github.com/moddevices/caps-lv2")
1049 (synopsis "LV2 port of the CAPS audio plugin colection")
1051 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
1052 guitar amplification and a small range of classic effects, signal processors and
1053 generators of mostly elementary and occasionally exotic nature.")
1054 (license license:gpl3+)))
1056 (define-public infamous-plugins
1058 (name "infamous-plugins")
1063 (url "https://github.com/ssj71/infamousPlugins")
1064 (commit (string-append "v" version))))
1065 (file-name (git-file-name name version))
1068 "0hmqk80w4qxq09iag7b7srf2g0wigkyhzq0ywxvhz2iz0hq9k0dh"))))
1069 (build-system cmake-build-system)
1071 `(#:tests? #f ; there are no tests
1073 (modify-phases %standard-phases
1074 (add-after 'unpack 'remove-compiler-flags
1076 (substitute* (find-files "." "CMakeLists.txt")
1077 (("-msse2 -mfpmath=sse") ""))
1084 ("zita-resampler" ,zita-resampler)))
1086 `(("pkg-config" ,pkg-config)))
1087 (home-page "https://ssj71.github.io/infamousPlugins")
1088 (synopsis "LV2 plugins for live use")
1090 "The infamous plugins are a collection of LV2 audio plugins for live
1091 performances. The plugins include a cellular automaton synthesizer, an
1092 envelope follower, distortion effects, tape effects and more.")
1093 (license license:gpl2+)))
1095 (define-public swh-plugins
1097 (name "swh-plugins")
1102 (url "https://github.com/swh/ladspa")
1103 (commit (string-append "v" version))))
1104 (file-name (git-file-name name version))
1107 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
1109 `(("autoconf" ,autoconf)
1110 ("automake" ,automake)
1111 ("gettext" ,gettext-minimal) ;for autopoint
1112 ("libtool" ,libtool)
1114 ("pkg-config" ,pkg-config)
1118 ("perl-xml-parser" ,perl-xml-parser)))
1119 (build-system gnu-build-system)
1120 (home-page "http://plugin.org.uk")
1121 (synopsis "The SWH Plugins package for the LADSPA plugin system")
1122 (description "This package provides Steve Harris's LADSPA plugins.")
1123 (license license:gpl2+)))
1125 (define-public swh-plugins-lv2
1127 (name "swh-plugins-lv2")
1132 (url "https://github.com/swh/lv2")
1133 (commit (string-append "v" version))))
1134 (file-name (git-file-name name version))
1137 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
1138 (build-system gnu-build-system)
1140 `(#:tests? #f ; no check target
1141 #:make-flags (list "CC=gcc"
1142 (string-append "PREFIX="
1143 (assoc-ref %outputs "out")))
1145 (modify-phases %standard-phases
1146 ;; no configure script
1148 (add-after 'unpack 'patch-makefile-and-enter-directory
1149 ;; The default install target doesn't install, but the
1150 ;; "install-system" target does.
1152 (substitute* "Makefile"
1153 (("install:") "install: install-system"))
1159 `(("libxslt" ,libxslt)
1160 ("pkg-config" ,pkg-config)))
1161 (home-page "http://plugin.org.uk")
1162 (synopsis "SWH plugins in LV2 format")
1164 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
1165 classes include: dynamics (compressor, limiter), time (delay, chorus,
1166 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
1167 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
1168 (license license:gpl3+)))
1173 (version "1.0-beta-10May2006")
1176 (uri (string-append "mirror://sourceforge/taopm/Tao/"
1178 "tao-" version ".tar.gz"))
1181 "156py3g6mmglldfd0j76bn7n242hdwf49diaprjpj7crp8vgf2pz"))
1183 (search-patches "tao-add-missing-headers.patch"
1184 "tao-fix-parser-types.patch"))
1185 (modules '((guix build utils)))
1188 (substitute* "configure"
1189 (("SHELL=/bin/sh") ""))
1191 (build-system gnu-build-system)
1193 '(#:configure-flags '("TAO_RELEASE=-beta")
1195 (modify-phases %standard-phases
1196 (add-after 'unpack 'fix-references
1197 (lambda* (#:key outputs #:allow-other-keys)
1198 (substitute* "user-scripts/tao.in"
1200 (string-append (assoc-ref outputs "out") "/bin/taoparse"))
1201 (("grep") (which "grep"))
1202 (("sed -f \\$distdir/user-scripts/")
1203 (string-append (which "sed") " -f $distdir/"))
1205 (string-append "distdir="
1206 (assoc-ref outputs "out") "/share/tao")))
1208 (add-after 'install 'install-extra-files
1209 (lambda* (#:key outputs #:allow-other-keys)
1210 (let* ((out (assoc-ref outputs "out"))
1211 (share (string-append out "/share/tao/"))
1212 (inc (string-append out "/include/tao/")))
1215 (install-file "user-scripts/error.parse" share)
1216 (copy-recursively "examples" (string-append share "examples"))
1217 (for-each (lambda (file) (install-file file inc))
1218 (find-files "include" "\\.h"))
1221 `(("audiofile" ,audiofile)
1230 (home-page "http://taopm.sourceforge.net/")
1231 (synopsis "Sound Synthesis with Physical Models")
1232 (description "Tao is a software package for sound synthesis using physical
1233 models. It provides a virtual acoustic material constructed from masses and
1234 springs which can be used as the basis for building quite complex virtual
1235 musical instruments. Tao comes with a synthesis language for creating and
1236 playing instruments and a C++ API for those who would like to use it as an
1238 (license license:gpl2+)))
1240 (define-public csound
1248 (url "https://github.com/csound/csound")
1250 (file-name (git-file-name name version))
1252 (base32 "1sr9knfhbm2m0wpkjq2l5n471vnl51wy4p6j4m95zqybimzb4s2j"))))
1253 (build-system cmake-build-system)
1257 ("gettext" ,gettext-minimal)
1260 `(("alsa-lib" ,alsa-lib)
1265 ("libsndfile" ,libsndfile)
1266 ("pulseaudio" ,pulseaudio)))
1267 (home-page "https://csound.com/")
1268 (synopsis "Sound and music computing system")
1270 "Csound is a user-programmable and user-extensible sound processing
1271 language and software synthesizer.")
1272 (license license:lgpl2.1+)))
1274 (define-public clalsadrv
1281 "http://kokkinizita.linuxaudio.org"
1282 "/linuxaudio/downloads/clalsadrv-"
1283 version ".tar.bz2"))
1286 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
1287 (build-system gnu-build-system)
1289 `(#:tests? #f ; no "check" target
1290 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1292 (modify-phases %standard-phases
1293 (add-after 'unpack 'patch-makefile-and-enter-directory
1295 (substitute* "libs/Makefile"
1296 (("/sbin/ldconfig") "true")
1297 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1300 (add-after 'install 'install-symlink
1302 (symlink "libclalsadrv.so"
1303 (string-append (assoc-ref %outputs "out")
1304 "/lib/libclalsadrv.so.2"))
1306 ;; no configure script
1307 (delete 'configure))))
1309 `(("alsa-lib" ,alsa-lib)
1311 (home-page "https://kokkinizita.linuxaudio.org")
1312 (synopsis "C++ wrapper around the ALSA API")
1314 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
1316 (license license:gpl2+)))
1318 (define-public amb-plugins
1320 (name "amb-plugins")
1325 "http://kokkinizita.linuxaudio.org"
1326 "/linuxaudio/downloads/AMB-plugins-"
1327 version ".tar.bz2"))
1330 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
1331 (build-system gnu-build-system)
1333 `(#:tests? #f ; no "check" target
1335 (modify-phases %standard-phases
1336 ;; no configure script
1338 (add-before 'install 'prepare-target-directory
1339 (lambda* (#:key outputs #:allow-other-keys)
1340 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1342 (add-after 'unpack 'override-target-directory-and-tool-paths
1343 (lambda* (#:key outputs #:allow-other-keys)
1344 (substitute* "Makefile"
1345 (("/usr/lib/ladspa")
1346 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1347 (("/usr/bin/install") (which "install"))
1350 (home-page "https://kokkinizita.linuxaudio.org")
1351 (synopsis "LADSPA ambisonics plugins")
1353 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
1354 used within Ardour. Features include: mono and stereo to B-format panning,
1355 horizontal rotator, square, hexagon and cube decoders.")
1356 (license license:gpl2+)))
1358 (define-public mcp-plugins
1360 (name "mcp-plugins")
1365 "http://kokkinizita.linuxaudio.org"
1366 "/linuxaudio/downloads/MCP-plugins-"
1367 version ".tar.bz2"))
1370 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
1371 (build-system gnu-build-system)
1373 `(#:tests? #f ; no "check" target
1375 (modify-phases %standard-phases
1376 ;; no configure script
1378 (add-before 'install 'prepare-target-directory
1379 (lambda* (#:key outputs #:allow-other-keys)
1380 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1382 (add-after 'unpack 'override-target-directory
1383 (lambda* (#:key outputs #:allow-other-keys)
1384 (substitute* "Makefile"
1385 (("/usr") (assoc-ref outputs "out")))
1387 (home-page "https://kokkinizita.linuxaudio.org")
1388 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
1390 "This package provides various LADSPA plugins. @code{cs_chorus} and
1391 @code{cs_phaser} provide chorus and phaser effects, respectively;
1392 @code{mvclpf24} provides four implementations of the low-pass filter used in
1393 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
1394 high-pass filter by Robert Moog. The filters attempt to accurately emulate
1395 the non-linear circuit elements of their original analog counterparts.")
1396 (license license:gpl2+)))
1398 (define-public rev-plugins
1400 (name "rev-plugins")
1405 "http://kokkinizita.linuxaudio.org"
1406 "/linuxaudio/downloads/REV-plugins-"
1407 version ".tar.bz2"))
1410 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
1411 (build-system gnu-build-system)
1413 `(#:tests? #f ; no "check" target
1415 (modify-phases %standard-phases
1416 ;; no configure script
1418 (add-before 'install 'prepare-target-directory
1419 (lambda* (#:key outputs #:allow-other-keys)
1420 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1422 (add-after 'unpack 'override-target-directory
1423 (lambda* (#:key outputs #:allow-other-keys)
1424 (substitute* "Makefile"
1425 (("/usr") (assoc-ref outputs "out")))
1427 (home-page "https://kokkinizita.linuxaudio.org")
1428 (synopsis "LADSPA reverb plugin")
1430 "This package provides a stereo reverb LADSPA plugin based on the
1431 well-known greverb.")
1432 (license license:gpl2+)))
1434 (define-public fil-plugins
1436 (name "fil-plugins")
1441 "http://kokkinizita.linuxaudio.org"
1442 "/linuxaudio/downloads/FIL-plugins-"
1443 version ".tar.bz2"))
1446 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1447 (build-system gnu-build-system)
1449 `(#:tests? #f ; no "check" target
1451 (modify-phases %standard-phases
1452 ;; no configure script
1454 (add-before 'install 'prepare-target-directory
1455 (lambda* (#:key outputs #:allow-other-keys)
1456 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1458 (add-after 'unpack 'override-target-directory
1459 (lambda* (#:key outputs #:allow-other-keys)
1460 (substitute* "Makefile"
1461 (("/usr") (assoc-ref outputs "out")))
1463 (home-page "https://kokkinizita.linuxaudio.org")
1464 (synopsis "LADSPA four-band parametric equalizer plugin")
1466 "This package provides a LADSPA plugin for a four-band parametric
1467 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1468 gain controls. There is also a global bypass switch and gain control.
1470 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1471 lattice filter, which is stable even while parameters are being changed.
1473 All switches and controls are internally smoothed, so they can be used @code{live}
1474 without any clicks or zipper noises. This makes this plugin suitable for use
1475 in systems that allow automation of plugin control ports, such as Ardour, or
1477 (license license:gpl2+)))
1479 (define-public ste-plugins
1481 (name "ste-plugins")
1486 "http://kokkinizita.linuxaudio.org"
1487 "/linuxaudio/downloads/STE-plugins-"
1488 version ".tar.bz2"))
1491 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1492 (build-system gnu-build-system)
1494 `(#:tests? #f ; no "check" target
1496 (modify-phases %standard-phases
1497 ;; no configure script
1499 (add-before 'install 'prepare-target-directory
1500 (lambda* (#:key outputs #:allow-other-keys)
1501 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1503 (add-after 'unpack 'override-target-directory
1504 (lambda* (#:key outputs #:allow-other-keys)
1505 (substitute* "Makefile"
1506 (("/usr") (assoc-ref outputs "out")))
1508 (home-page "https://kokkinizita.linuxaudio.org")
1509 (synopsis "LADSPA stereo width plugin")
1511 "This package provides a LADSPA plugin to manipulate the stereo width of
1513 (license license:gpl2+)))
1515 (define-public vco-plugins
1517 (name "vco-plugins")
1522 "http://kokkinizita.linuxaudio.org"
1523 "/linuxaudio/downloads/VCO-plugins-"
1524 version ".tar.bz2"))
1527 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1528 (build-system gnu-build-system)
1530 `(#:tests? #f ; no "check" target
1532 (modify-phases %standard-phases
1533 ;; no configure script
1535 (add-before 'install 'prepare-target-directory
1536 (lambda* (#:key outputs #:allow-other-keys)
1537 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1539 (add-after 'unpack 'override-target-directory
1540 (lambda* (#:key outputs #:allow-other-keys)
1541 (substitute* "Makefile"
1542 (("/usr") (assoc-ref outputs "out"))
1543 (("/bin/cp") (which "cp")))
1545 (home-page "https://kokkinizita.linuxaudio.org")
1546 (synopsis "LADSPA plugin for synthesizer oscillators")
1548 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1551 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1552 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1553 @item Rec-VCO, a square / rectangle oscillator
1556 All oscillators are low-pass filtered to provide waveforms similar to the
1557 output of analog synthesizers such as the Moog Voyager.")
1558 (license license:gpl2+)))
1560 (define-public wah-plugins
1562 (name "wah-plugins")
1567 "http://kokkinizita.linuxaudio.org"
1568 "/linuxaudio/downloads/WAH-plugins-"
1569 version ".tar.bz2"))
1572 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1573 (build-system gnu-build-system)
1575 `(#:tests? #f ; no "check" target
1577 (modify-phases %standard-phases
1578 ;; no configure script
1580 (add-before 'install 'prepare-target-directory
1581 (lambda* (#:key outputs #:allow-other-keys)
1582 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1584 (add-after 'unpack 'override-target-directory
1585 (lambda* (#:key outputs #:allow-other-keys)
1586 (substitute* "Makefile"
1587 (("/usr") (assoc-ref outputs "out")))
1589 (home-page "https://kokkinizita.linuxaudio.org")
1590 (synopsis "LADSPA Autowah effect plugin")
1592 "This package provides a LADSPA plugin for a Wah effect with envelope
1594 (license license:gpl2+)))
1596 (define-public g2reverb
1603 "http://kokkinizita.linuxaudio.org"
1604 "/linuxaudio/downloads/g2reverb-"
1605 version ".tar.bz2"))
1608 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1609 (build-system gnu-build-system)
1611 `(#:tests? #f ; no "check" target
1613 (modify-phases %standard-phases
1614 ;; no configure script
1616 (add-before 'install 'prepare-target-directory
1617 (lambda* (#:key outputs #:allow-other-keys)
1618 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1620 (add-after 'unpack 'override-target-directory
1621 (lambda* (#:key outputs #:allow-other-keys)
1622 (substitute* "Makefile"
1623 (("/usr") (assoc-ref outputs "out")))
1625 (home-page "https://kokkinizita.linuxaudio.org")
1626 (synopsis "LADSPA stereo reverb plugin")
1628 "This package provides a LADSPA plugin for a stereo reverb effect.")
1629 (license license:gpl2+)))
1631 (define-public fluidsynth
1638 (url "https://github.com/FluidSynth/fluidsynth")
1639 (commit (string-append "v" version))))
1640 (file-name (git-file-name name version))
1643 "1r3khwyw57ybg5m4x0rvdzq7hgw2484sd52k6bm19akbw8yicfna"))))
1644 (build-system cmake-build-system)
1646 '(#:tests? #f ; no check target
1648 (modify-phases %standard-phases
1649 (add-after 'unpack 'fix-libdir
1651 ;; Install libraries to /lib, not /lib64.
1652 (substitute* "CMakeLists.txt"
1653 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1657 `(("libsndfile" ,libsndfile)
1658 ("alsa-lib" ,alsa-lib)
1662 ("readline" ,readline)
1665 `(("pkg-config" ,pkg-config)))
1666 (home-page "http://www.fluidsynth.org/")
1667 (synopsis "SoundFont synthesizer")
1669 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1670 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1671 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1672 also play midifiles using a Soundfont.")
1673 (license license:lgpl2.1+)))
1675 ;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1677 (define-public fluidsynth-1
1679 (inherit fluidsynth)
1682 (inherit (package-source fluidsynth))
1684 (url "https://github.com/FluidSynth/fluidsynth")
1685 (commit (string-append "v" version))))
1686 (file-name (git-file-name "fluidsynth" version))
1689 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1691 (define-public faad2
1699 (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1700 (version-major+minor version) ".0/"
1701 "faad2-" version ".tar.gz"))
1703 (base32 "0va284hndhn0ynm4lyn219qw4y8wa4agfkqgwlaji7bqp6nkyp4q"))))
1704 (build-system gnu-build-system)
1705 (home-page "https://www.audiocoding.com/faad2.html")
1706 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1708 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR, -PS, and DAB+.")
1709 (license license:gpl2+)))
1711 (define-public faust
1718 (url "https://github.com/grame-cncm/faust")
1719 (commit (string-append "v"
1720 (string-map (lambda (c)
1721 (if (char=? c #\.) #\- c))
1723 (file-name (string-append "faust-" version "-checkout"))
1726 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1727 (build-system gnu-build-system)
1729 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1732 (modify-phases %standard-phases
1733 ;; no "configure" script
1735 ;; Files appear under $out/share/faust that are read-only. The
1736 ;; install phase tries to overwrite them and fails, so we change
1737 ;; the permissions first.
1738 (add-before 'install 'fix-permissions
1740 (for-each (lambda (file)
1742 (find-files "architecture/max-msp" ".*"))
1745 `(("unzip" ,unzip)))
1746 (home-page "https://faust.grame.fr/")
1747 (synopsis "Signal processing language")
1749 "Faust is a programming language for realtime audio signal processing.")
1750 (license license:gpl2+)))
1752 (define-public faust-2
1758 (uri (string-append "https://github.com/grame-cncm/faust/"
1759 "releases/download/" version
1760 "/faust-" version ".tar.gz"))
1763 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1764 (build-system gnu-build-system)
1766 (substitute-keyword-arguments (package-arguments faust)
1767 ((#:make-flags flags)
1768 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1771 `(("llvm" ,llvm-3.8)
1774 ("ctags" ,emacs-minimal) ; for ctags
1775 ("pkg-config" ,pkg-config)))
1777 `(("libsndfile" ,libsndfile)
1778 ("libmicrohttpd" ,libmicrohttpd)
1779 ("ncurses" ,ncurses)
1780 ("openssl" ,openssl)
1783 (define-public freepats
1786 (version "20060219")
1789 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1790 version ".tar.bz2"))
1793 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1794 (build-system trivial-build-system)
1796 `(#:modules ((guix build utils))
1798 (use-modules (guix build utils))
1799 (let ((out (string-append %output "/share/freepats")))
1800 (setenv "PATH" (string-append
1801 (assoc-ref %build-inputs "bzip2") "/bin:"
1802 (assoc-ref %build-inputs "tar") "/bin"))
1803 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
1805 ;; Use absolute pattern references
1806 (substitute* "freepats.cfg"
1807 (("Tone_000") (string-append out "/Tone_000"))
1808 (("Drum_000") (string-append out "/Drum_000")))
1810 (copy-recursively "." out)
1815 (home-page "http://freepats.zenvoid.org")
1816 (synopsis "GUS compatible patches for MIDI players")
1818 "FreePats is a project to create a free and open set of GUS compatible
1819 patches that can be used with softsynths such as Timidity and WildMidi.")
1820 ;; GPLv2+ with exception for compositions using these patches.
1821 (license license:gpl2+)))
1823 (define-public guitarix
1830 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1834 "0qsfbyrrpb3bbdyq68k28mjql7kglxh8nqcw9jvja28x6x9ik5a0"))))
1835 (build-system waf-build-system)
1837 `(#:tests? #f ; no "check" target
1840 ;; Add the output lib directory to the RUNPATH.
1841 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))))
1843 `(("libsndfile" ,libsndfile)
1856 ("zita-resampler" ,zita-resampler)
1857 ("zita-convolver" ,zita-convolver)))
1861 ("intltool" ,intltool)
1862 ("gettext" ,gettext-minimal)
1863 ("pkg-config" ,pkg-config)
1865 (native-search-paths
1866 (list (search-path-specification
1867 (variable "LV2_PATH")
1868 (files '("lib/lv2")))))
1869 (home-page "https://guitarix.org/")
1870 (synopsis "Virtual guitar amplifier")
1871 (description "Guitarix is a virtual guitar amplifier running JACK.
1872 Guitarix takes the signal from your guitar as a mono-signal from your sound
1873 card. The input is processed by a main amp and a rack-section. Both can be
1874 routed separately and deliver a processed stereo-signal via JACK. You may
1875 fill the rack with effects from more than 25 built-in modules including stuff
1876 from a simple noise gate to modulation effects like flanger, phaser or
1878 (license license:gpl2+)))
1880 (define-public guitarix-lv2
1881 (package (inherit guitarix)
1882 (name "guitarix-lv2")
1884 (substitute-keyword-arguments (package-arguments guitarix)
1885 ((#:configure-flags flags)
1886 `(cons "--no-standalone" ,flags))))))
1888 (define-public rakarrack
1894 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1895 "rakarrack-" version "/rakarrack-"
1896 version ".tar.bz2"))
1899 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1900 (modules '((guix build utils)))
1903 (substitute* '("src/process.C"
1905 (("#include <Fl/") "#include <FL/"))
1907 (build-system gnu-build-system)
1909 `(("alsa-utils" ,alsa-utils)
1912 ("libxext" ,libxext)
1913 ("libxfixes" ,libxfixes)
1915 ("libxrender" ,libxrender)
1917 ("fontconfig" ,fontconfig)
1918 ("freetype" ,freetype)
1920 ("alsa-lib" ,alsa-lib)
1921 ("libsndfile" ,libsndfile)
1922 ("libsamplerate" ,libsamplerate)
1924 (home-page "http://rakarrack.sourceforge.net/")
1925 (synopsis "Audio effects processor")
1927 "Rakarrack is a richly featured multi-effects processor emulating a
1928 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1929 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1930 distortion modules and many more. Most of the effects engine is built from
1931 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1932 user interface are optimized for guitar, but Rakarrack processes signals in
1933 stereo while it does not apply internal band-limiting filtering, and thus is
1934 well suited to all musical instruments and vocals.")
1935 ;; The code is explicitly licensed under the GPL version 2 only.
1936 (license license:gpl2)))
1945 (url "https://github.com/tomszilagyi/ir.lv2")
1947 (file-name (git-file-name name version))
1950 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
1951 (build-system gnu-build-system)
1953 `(#:tests? #f ; no tests
1955 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1956 (string-append "INSTDIR="
1957 (assoc-ref %outputs "out") "/lib/lv2"))
1958 #:phases (modify-phases %standard-phases
1959 (delete 'configure)))) ; no configure script
1961 `(("libsndfile" ,libsndfile)
1962 ("libsamplerate" ,libsamplerate)
1966 ("zita-convolver" ,zita-convolver)))
1968 `(("pkg-config" ,pkg-config)))
1969 (native-search-paths
1970 (list (search-path-specification
1971 (variable "LV2_PATH")
1972 (files '("lib/lv2")))))
1973 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
1974 (synopsis "LV2 convolution reverb")
1976 "IR is a low-latency, real-time, high performance signal convolver
1977 especially for creating reverb effects. It supports impulse responses with 1,
1978 2 or 4 channels, in any soundfile format supported by libsndfile.")
1979 (license license:gpl2+)))
1981 (define-public jack-1
1988 ;; jackaudio.org/downloads/jack-audio-connection-kit-0.125.0.tar.gz
1989 ;; no longer exists (404). Use an unofficial mirror.
1990 (uri (string-append "https://crux.ster.zone/downloads/"
1991 "jack-audio-connection-kit/"
1992 "jack-audio-connection-kit-" version ".tar.gz"))
1994 (base32 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
1995 (build-system gnu-build-system)
1997 `(#:phases (modify-phases %standard-phases
1998 (add-after 'unpack 'patch-configure
2000 (substitute* "configure"
2001 ;; Install to <out/lib> regardless of platform.
2002 (("libnn=lib64") "libnn=lib"))
2005 `(("alsa-lib" ,alsa-lib)
2006 ("readline" ,readline)))
2007 ;; uuid.h is included in the JACK type headers
2008 ;; db.h is included in the libjack metadata headers
2010 `(("libuuid" ,util-linux "lib")
2013 `(("pkg-config" ,pkg-config)))
2014 (home-page "https://jackaudio.org/")
2015 (synopsis "JACK audio connection kit")
2017 "JACK is a low-latency audio server. It can connect a number of
2018 different applications to an audio device, as well as allowing them to share
2019 audio between themselves. JACK is different from other audio server efforts
2020 in that it has been designed from the ground up to be suitable for
2021 professional audio work. This means that it focuses on two key areas:
2022 synchronous execution of all clients, and low latency operation.")
2023 ;; Most files are licensed under the GPL. However, the libjack/ tree is
2024 ;; licensed under the LGPL in order to allow for proprietary usage.
2025 (license (list license:gpl2+ license:lgpl2.1+))))
2027 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
2028 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
2029 ;; program for users who might benefit from the D-BUS features.
2030 (define-public jack-2
2031 (package (inherit jack-1)
2036 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
2037 "download/v" version "/jack2-"
2039 (file-name (string-append name "-" version ".tar.gz"))
2042 "0z11hf55a6mi8h50hfz5wry9pshlwl4mzfwgslghdh40cwv342m2"))))
2043 (build-system waf-build-system)
2045 `(#:tests? #f ; no check target
2046 #:configure-flags '("--dbus"
2049 (modify-phases %standard-phases
2050 (add-before 'configure 'set-linkflags
2052 ;; Ensure -lstdc++ is the tail of LDFLAGS or the simdtests.cpp
2053 ;; will not link with undefined reference to symbol
2054 ;; '__gxx_personality_v0@@CXXABI_1.3'
2055 (setenv "LDFLAGS" "-lstdc++")
2056 ;; Add $libdir to the RUNPATH of all the binaries.
2057 (substitute* "wscript"
2058 ((".*CFLAGS.*-Wall.*" m)
2060 " conf.env.append_unique('LINKFLAGS',"
2061 "'-Wl,-rpath=" %output "/lib')\n")))
2063 (add-after 'install 'wrap-python-scripts
2064 (lambda* (#:key inputs outputs #:allow-other-keys)
2065 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
2066 (let* ((out (assoc-ref outputs "out"))
2067 (path (getenv "PYTHONPATH")))
2068 (wrap-program (string-append out "/bin/jack_control")
2069 `("PYTHONPATH" ":" prefix (,path))))
2072 `(("alsa-lib" ,alsa-lib)
2075 ("libsamplerate" ,libsamplerate)
2077 ("python-dbus" ,python-dbus)
2078 ("readline" ,readline)))
2080 `(("pkg-config" ,pkg-config)))
2081 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
2082 (license (list license:gpl2+ license:lgpl2.1+))))
2090 (uri (string-append "https://download.drobilla.net/jalv-"
2091 version ".tar.bz2"))
2094 "1wwfn7yzbs37s2rdlfjgks63svd5g14yyzd2gdl7h0z12qncwsy2"))))
2095 (build-system waf-build-system)
2097 `(#:tests? #f ; no check target
2098 #:python ,python-2))
2109 `(("pkg-config" ,pkg-config)))
2110 (home-page "https://drobilla.net/software/jalv/")
2111 (synopsis "Simple LV2 host for JACK")
2113 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
2114 plugins and exposes their ports as JACK ports, essentially making any LV2
2115 plugin function as a JACK application.")
2116 (license license:isc)))
2118 (define-public ladspa
2125 ;; Since the official link is dead,
2126 ;; we download the tarball from Debian or Internet Archive.
2127 (uri (list (string-append "http://http.debian.net"
2128 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
2129 version ".orig.tar.gz")
2130 (string-append "https://web.archive.org/web/20140717172251/"
2131 "http://www.ladspa.org/download/ladspa_sdk_"
2135 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
2136 (build-system gnu-build-system)
2138 `(#:tests? #f ; the "test" target is a listening test only
2140 (modify-phases %standard-phases
2142 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
2144 (let ((out (assoc-ref outputs "out")))
2145 (substitute* "makefile"
2146 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
2147 (("/usr/include/") (string-append out "/include/"))
2148 (("/usr/bin/") (string-append out "/bin/"))
2149 (("-mkdirhier") "mkdir -p")
2150 (("^CC.*") "CC = gcc\n")
2151 (("^CPP.*") "CPP = g++\n")))
2154 ;; Since the home page is gone, we provide a link to the archived version.
2156 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
2157 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
2159 "LADSPA is a standard that allows software audio processors and effects
2160 to be plugged into a wide range of audio synthesis and recording packages.")
2161 (license license:lgpl2.1+)))
2166 (version "0.6.0-rc2")
2169 ;; The tilde is not permitted in the builder name, but is used
2172 "mirror://savannah/lash/lash-"
2173 (string-join (string-split version #\-) "~")
2175 (file-name (string-append name "-" version ".tar.bz2"))
2178 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
2179 (build-system gnu-build-system)
2181 '(;; Glibc no longer includes Sun RPC support, so tell the build system
2182 ;; to use libtirpc instead.
2183 #:make-flags (list (string-append "CFLAGS=-I"
2184 (assoc-ref %build-inputs "libtirpc")
2185 "/include/tirpc -ltirpc"))
2187 (modify-phases %standard-phases
2188 ;; lashd embeds an ancient version of sigsegv so we just skip it
2189 (add-after 'unpack 'skip-lashd
2191 (substitute* '("Makefile.am" "Makefile.in")
2194 #:configure-flags '("--disable-static")))
2199 ("libtirpc" ,libtirpc)
2200 ("readline" ,readline)
2201 ("python" ,python-2)))
2202 ;; According to pkg-config, packages depending on lash also need to have
2203 ;; at least the following packages declared as inputs.
2205 `(("alsa-lib" ,alsa-lib)
2207 ("libxml2" ,libxml2)))
2209 `(("pkg-config" ,pkg-config)))
2210 (home-page "https://www.nongnu.org/lash/")
2211 (synopsis "Audio application session manager")
2213 "LASH is a session management system for audio applications. It allows
2214 you to save and restore audio sessions consisting of multiple interconneced
2215 applications, restoring program state (i.e. loaded patches) and the
2216 connections between them.")
2217 (license license:gpl2+)))
2219 (define-public libbs2b
2225 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
2226 "/libbs2b-" version ".tar.lzma"))
2229 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
2230 (build-system gnu-build-system)
2231 (native-inputs `(("pkg-config" ,pkg-config)))
2232 (inputs `(("libsndfile" ,libsndfile)))
2233 (home-page "https://sourceforge.net/projects/bs2b/")
2234 (synopsis "Bauer stereophonic-to-binaural DSP")
2236 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
2237 designed to improve headphone listening of stereo audio records. Recommended
2238 for headphone prolonged listening to disable superstereo fatigue without
2239 essential distortions.")
2240 (license license:expat)))
2242 (define-public ladspa-bs2b
2244 (name "ladspa-bs2b")
2249 "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/"
2250 version "/" name "-" version ".tar.gz"))
2253 "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2"))))
2254 (build-system gnu-build-system)
2255 (native-inputs `(("pkg-config" ,pkg-config)))
2256 (inputs `(("ladspa" ,ladspa)
2257 ("libbs2b" ,libbs2b)))
2258 (home-page "https://sourceforge.net/projects/bs2b/")
2259 (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin")
2260 (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and
2261 plugins is designed to improve headphone listening of stereo audio records.
2262 Recommended for headphone prolonged listening to disable superstereo fatigue
2263 without essential distortions. This package contains a LADSPA plugin for use
2264 with applications that support them (e.g. PulseAudio).")
2265 (license license:gpl2+)))
2267 (define-public liblo
2273 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
2274 "/liblo-" version ".tar.gz"))
2277 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
2278 (build-system gnu-build-system)
2280 `(;; liblo test FAILED
2281 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
2283 (home-page "http://liblo.sourceforge.net")
2284 (synopsis "Implementation of the Open Sound Control protocol")
2286 "liblo is a lightweight library that provides an easy to use
2287 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
2288 (license license:lgpl2.1+)))
2290 (define-public rtaudio
2298 (url "https://github.com/thestk/rtaudio")
2300 (file-name (git-file-name name version))
2302 (base32 "156c2dgh6jrsyfn1y89nslvaxm4yifmxridsb708yvkaym02w2l8"))))
2303 (build-system cmake-build-system)
2305 `(("pkg-config" ,pkg-config)))
2307 `(("alsa-lib" ,alsa-lib)
2309 ("pulseaudio" ,pulseaudio)))
2310 (synopsis "Common API for real-time audio I/O")
2312 "RtAudio is a set of C++ classes that provides a common API for real-time
2313 audio input/output. It was designed with the following objectives:
2316 @item object-oriented C++ design
2317 @item simple, common API across all supported platforms
2318 @item only one source and one header file for easy inclusion in programming
2320 @item allow simultaneous multi-api support
2321 @item support dynamic connection of devices
2322 @item provide extensive audio device parameter control
2323 @item allow audio device capability probing
2324 @item automatic internal conversion for data format, channel number
2325 compensation, (de)interleaving, and byte-swapping
2327 (home-page "https://www.music.mcgill.ca/~gary/rtaudio/")
2328 ;; License is expat with a non-binding request to send modifications to
2329 ;; original developer.
2330 (license license:expat)))
2332 (define-public python-pyaudio
2334 (name "python-pyaudio")
2339 (uri (pypi-uri "PyAudio" version))
2342 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
2343 (build-system python-build-system)
2345 `(("portaudio" ,portaudio)))
2346 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
2347 (synopsis "Bindings for PortAudio v19")
2348 (description "This package provides bindings for PortAudio v19, the
2349 cross-platform audio input/output stream library.")
2350 (license license:expat)))
2352 (define-public python2-pyaudio
2353 (package-with-python2 python-pyaudio))
2355 (define-public python-pyliblo
2357 (name "python-pyliblo")
2361 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
2365 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
2366 (build-system python-build-system)
2367 (arguments `(#:tests? #f)) ;no tests
2369 `(("python-cython" ,python-cython)))
2371 `(("liblo" ,liblo)))
2372 (home-page "http://das.nasophon.de/pyliblo/")
2373 (synopsis "Python bindings for liblo")
2375 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
2376 library. It supports almost the complete functionality of liblo, allowing you
2377 to send and receive OSC messages using a nice and simple Python API. Also
2378 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
2379 (license license:lgpl2.1+)))
2381 (define-public python2-pyliblo
2382 (package-with-python2 python-pyliblo))
2390 (uri (string-append "https://download.drobilla.net/lilv-"
2391 version ".tar.bz2"))
2394 "0063i5zgf3d3accwmyx651hw0wh5ik7kji2hvfkcdbl1qia3dp6a"))))
2395 (build-system waf-build-system)
2397 `(#:tests? #f ; no check target
2399 (modify-phases %standard-phases
2400 (add-before 'configure 'set-ldflags
2401 (lambda* (#:key outputs #:allow-other-keys)
2403 (string-append "-Wl,-rpath="
2404 (assoc-ref outputs "out") "/lib"))
2406 (add-after 'unpack 'full-store-path-to-shared-library
2407 (lambda* (#:key outputs #:allow-other-keys)
2408 (with-directory-excursion "bindings/python"
2409 (substitute* "lilv.py"
2410 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
2411 "/lib/liblilv-0.so"))))
2413 ;; Required by lilv-0.pc.
2418 ("sratom" ,sratom)))
2420 `(("python" ,python)
2421 ("pkg-config" ,pkg-config)))
2422 (home-page "https://drobilla.net/software/lilv")
2423 (synopsis "Library to simplify use of LV2 plugins in applications")
2425 "Lilv is a C library to make the use of LV2 plugins as simple as possible
2426 for applications. Lilv is the successor to SLV2, rewritten to be
2427 significantly faster and have minimal dependencies.")
2428 (license license:isc)))
2436 (uri (string-append "https://lv2plug.in/spec/lv2-"
2437 version ".tar.bz2"))
2440 "0gs7401xz23q9vajqr31aa2db8dvssgyh5zrvr4ipa6wig7yb8wh"))))
2441 (build-system waf-build-system)
2443 `(#:tests? #f ; no check target
2444 #:configure-flags '("--no-plugins")))
2446 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
2447 `(("libsndfile" ,libsndfile)))
2449 `(("pkg-config" ,pkg-config)))
2450 (home-page "https://lv2plug.in/")
2451 (synopsis "LV2 audio plugin specification")
2453 "LV2 is an open specification for audio plugins and host applications.
2454 At its core, LV2 is a simple stable interface, accompanied by extensions which
2455 add functionality to support the needs of increasingly powerful audio
2457 (license license:isc)))
2459 (define-public lv2-mda-piano
2461 (name "lv2-mda-piano")
2466 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
2468 (file-name (git-file-name name version))
2471 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
2472 (build-system gnu-build-system)
2474 `(#:make-flags (list
2476 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2477 #:tests? #f ; no check target
2478 #:phases (modify-phases %standard-phases (delete 'configure))))
2483 `(("pkg-config" ,pkg-config)))
2484 (native-search-paths
2485 (list (search-path-specification
2486 (variable "LV2_PATH")
2487 (files '("lib/lv2")))))
2488 (home-page "https://elephly.net/lv2/mdapiano.html")
2489 (synopsis "LV2 port of the mda Piano plugin")
2490 (description "An LV2 port of the mda Piano VSTi.")
2491 (license license:gpl3+)))
2493 (define-public lv2-mda-epiano
2494 (package (inherit lv2-mda-piano)
2495 (name "lv2-mda-epiano")
2497 `(#:make-flags (list
2499 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2500 #:tests? #f ; no check target
2501 #:phases (modify-phases %standard-phases (delete 'configure))))
2502 (home-page "https://elephly.net/lv2/mdaepiano.html")
2503 (synopsis "LV2 port of the mda EPiano plugin")
2504 (description "An LV2 port of the mda EPiano VSTi.")))
2513 (url "https://github.com/lvtk/lvtk")
2515 (file-name (git-file-name name version))
2518 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
2519 (build-system waf-build-system)
2521 `(#:tests? #f ; no check target
2524 (list (string-append "--boost-includes="
2525 (assoc-ref %build-inputs "boost")
2532 `(("pkg-config" ,pkg-config)))
2533 (home-page "https://github.com/lvtk/lvtk")
2534 (synopsis "C++ libraries for LV2 plugins")
2536 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2537 extensions into easy to use C++ classes. It is the successor of
2539 (license license:gpl3+)))
2541 (define-public openal
2548 "https://openal-soft.org/openal-releases/openal-soft-"
2549 version ".tar.bz2"))
2552 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2553 (build-system cmake-build-system)
2555 `(#:tests? #f ; no check target
2557 (modify-phases %standard-phases
2559 'unpack 'use-full-library-paths
2560 (lambda* (#:key inputs #:allow-other-keys)
2561 (substitute* "alc/backends/pulseaudio.cpp"
2562 (("#define PALIB \"libpulse\\.so\\.0\"")
2563 (string-append "#define PALIB \""
2564 (assoc-ref inputs "pulseaudio")
2565 "/lib/libpulse.so.0"
2567 (substitute* "alc/backends/alsa.cpp"
2568 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2569 (string-append "LoadLib(\""
2570 (assoc-ref inputs "alsa-lib")
2571 "/lib/libasound.so.2"
2575 `(("alsa-lib" ,alsa-lib)
2576 ("pulseaudio" ,pulseaudio)))
2577 (synopsis "3D audio API")
2579 "OpenAL provides capabilities for playing audio in a virtual 3D
2580 environment. Distance attenuation, doppler shift, and directional sound
2581 emitters are among the features handled by the API. More advanced effects,
2582 including air absorption, occlusion, and environmental reverb, are available
2583 through the EFX extension. It also facilitates streaming audio, multi-channel
2584 buffers, and audio capture.")
2585 (home-page "https://openal-soft.org/")
2586 (license license:lgpl2.0+)))
2588 (define-public freealut
2594 ;; Upstream url is unclear, many systems use Fedora, there is also
2595 ;; https://github.com/vancegroup/freealut though the status of it
2596 ;; (official? unofficial?) is not clear.
2598 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2599 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2600 "-" version ".tar.gz"))
2603 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2604 (build-system cmake-build-system)
2606 `(#:tests? #f)) ; no check target
2608 `(("openal" ,openal)))
2609 (synopsis "Free implementation of OpenAL's ALUT standard")
2610 (description "freealut is the OpenAL Utility Toolkit.")
2611 (home-page "https://kcat.strangesoft.net/openal.html")
2612 (license license:lgpl2.0)))
2614 (define-public patchage
2620 (uri (string-append "https://download.drobilla.net/patchage-"
2625 "0dk3fiac10m83mwss3026yz7ygc47c2iw924cwwnh2fyydc9bsy6"))))
2626 (build-system waf-build-system)
2628 `(#:tests? #f ; no check target
2629 #:python ,python-2))
2631 `(("alsa-lib" ,alsa-lib)
2637 ("dbus-glib" ,dbus-glib)))
2639 `(("pkg-config" ,pkg-config)))
2640 (home-page "https://drobilla.net/software/patchage/")
2641 (synopsis "Modular patch bay for audio and MIDI systems")
2643 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2645 (license license:gpl3+)))
2647 (define-public pcaudiolib
2651 (home-page "https://github.com/espeak-ng/pcaudiolib")
2654 (uri (git-reference (url home-page) (commit version)))
2655 (file-name (git-file-name name version))
2658 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2659 (build-system gnu-build-system)
2661 `(#:configure-flags '("--disable-static")))
2663 `(("autoconf" ,autoconf)
2664 ("automake" ,automake)
2665 ("libtool" ,libtool)
2666 ("pkg-config" ,pkg-config)
2669 `(("alsa-lib" ,alsa-lib)
2670 ("pulseaudio" ,pulseaudio)))
2671 (synopsis "Portable C audio library")
2673 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2674 different audio devices such as ALSA or PulseAudio.")
2675 (license (list license:gpl3+
2676 ;; The bundled TPCircularBuffer uses a custom license.
2677 (license:non-copyleft
2678 "file://src/TPCircularBuffer/README.markdown")))))
2680 (define-public qjackctl
2686 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2687 version "/qjackctl-" version ".tar.gz"))
2690 "1saywsda9m124rmjp7i3n0llryaliabjxhqhvqr6dm983qy7pypk"))))
2691 (build-system gnu-build-system)
2693 '(#:tests? #f)) ; no check target
2696 ("alsa-lib" ,alsa-lib)
2698 ("qtx11extras" ,qtx11extras)))
2700 `(("pkg-config" ,pkg-config)
2701 ("qttools" ,qttools)))
2702 (home-page "https://qjackctl.sourceforge.io/")
2703 (synopsis "Jack server control application")
2704 (description "Control a Jack server. Allows you to plug various sources
2705 into various outputs and to start, stop and configure jackd")
2706 (license license:gpl2+)))
2708 (define-public qjackrcd
2715 (url "https://github.com/orouits/qjackrcd")
2716 (commit (string-append "v" version))))
2717 (file-name (git-file-name name version))
2720 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2721 (build-system gnu-build-system)
2724 (modify-phases %standard-phases
2726 (lambda* (#:key outputs #:allow-other-keys)
2728 (string-append "PREFIX="
2729 (assoc-ref outputs "out"))))))))
2731 `(("qtbase" ,qtbase))) ; for qmake
2734 ("libsndfile" ,libsndfile)
2735 ("qtbase" ,qtbase)))
2736 (home-page "https://sourceforge.net/projects/qjackrcd/")
2737 (synopsis "Stereo audio recorder for JACK")
2738 (description "QJackRcd is a simple graphical stereo recorder for JACK
2739 supporting silence processing for automatic pause, file splitting, and
2740 background file post-processing.")
2741 (license license:gpl2+)))
2743 (define-public supercollider
2745 (name "supercollider")
2750 (url "https://github.com/supercollider/supercollider")
2751 (commit (string-append "Version-" version))
2752 ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack
2754 (file-name (git-file-name name version))
2757 "02v911w2kdbg3kfl593lb2ig4sjbfxzv20a0vbcymhfzpvp1x6xp"))
2758 (modules '((guix build utils)
2761 ;; The build system doesn't allow us to unbundle the following
2762 ;; libraries. hidapi is also heavily patched and upstream not
2763 ;; actively maintained.
2764 '(let ((keep-dirs '("nova-simd" "nova-tt" "hidapi"
2765 "TLSF-2.4.6" "oscpack_1_1_0" "." "..")))
2766 (with-directory-excursion "./external_libraries"
2768 delete-file-recursively
2771 (and (eq? (stat:type (stat x)) 'directory)
2772 (not (member (basename x) keep-dirs)))))))
2773 ;; To find the Guix provided ableton-link library.
2774 (substitute* "lang/CMakeLists.txt"
2775 (("include\\(\\.\\./external_libraries/link/\
2776 AbletonLinkConfig\\.cmake\\)")
2777 "find_package(AbletonLink NAMES AbletonLink ableton-link \
2780 (build-system cmake-build-system)
2782 '("out" ;core language
2785 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
2786 "-DSC_QT=ON" "-DCMAKE_BUILD_TYPE=Release"
2787 "-DFORTIFY=ON" "-DLIBSCSYNTH=ON"
2788 "-DSC_EL=off") ;scel is packaged individually as
2791 (modify-phases %standard-phases
2792 ;; HOME must be defined otherwise supercollider throws a "ERROR:
2793 ;; Primitive '_FileMkDir' failed." error when generating the doc.
2794 ;; The graphical tests also hang without it.
2795 (add-after 'unpack 'set-home-directory
2797 (setenv "HOME" (getcwd))
2799 (add-after 'unpack 'patch-scclass-dir
2800 (lambda* (#:key outputs #:allow-other-keys)
2801 (let* ((out (assoc-ref outputs "out"))
2804 "/share/SuperCollider/SCClassLibrary")))
2805 (substitute* "lang/LangSource/SC_LanguageConfig.cpp"
2807 "SC_Filesystem::instance\\(\\)\\.getDirectory"
2808 "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME"))
2809 (string-append "Path(\"" scclass-dir "\")")))
2811 (add-before 'build 'prepare-x
2814 (setenv "DISPLAY" ":0")
2816 (add-before 'install 'install-ide
2817 (lambda* (#:key outputs #:allow-other-keys)
2818 (let* ((out (assoc-ref outputs "out"))
2819 (ide (assoc-ref outputs "ide"))
2820 (scide "editors/sc-ide/scide"))
2822 (string-append ide "/bin"))
2826 `(("ableton-link" ,ableton-link)
2827 ("pkg-config" ,pkg-config)
2828 ("qttools" ,qttools)
2829 ("xorg-server" ,xorg-server-for-tests)))
2832 ("libsndfile" ,libsndfile)
2835 ("readline" ,readline) ;readline support for sclang's CLI
2836 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2837 ("eudev" ,eudev) ;for user interactions with devices
2838 ("avahi" ,avahi) ;zeroconf service discovery support
2841 ("boost-sync" ,boost-sync)
2842 ("yaml-cpp" ,yaml-cpp)
2844 ("qtdeclarative" ,qtdeclarative)
2846 ("qtwebchannel" ,qtwebchannel)
2847 ("qtwebsockets" ,qtwebsockets)))
2848 (propagated-inputs ;to get native-search-path
2849 `(("qtwebengine" ,qtwebengine)))
2850 (home-page "https://github.com/supercollider/supercollider")
2851 (synopsis "Synthesis engine and programming language")
2852 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2853 @code{supernova}) and programming language (@code{sclang}). It can be used
2854 for experimenting with sound synthesis and algorithmic composition.
2856 SuperCollider requires jackd to be installed in your user profile and your
2857 user must be allowed to access the realtime features of the kernel. Search
2858 for \"realtime\" in the index of the Guix manual to learn how to achieve this
2859 using Guix System.")
2860 (license license:gpl2+)))
2868 (uri (string-append "https://download.drobilla.net/raul-"
2869 version ".tar.bz2"))
2872 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2873 (build-system waf-build-system)
2875 `(#:python ,python-2
2876 #:tests? #f)) ; no check target
2881 `(("pkg-config" ,pkg-config)))
2882 (home-page "https://drobilla.net/software/raul/")
2883 (synopsis "Real-time audio utility library")
2885 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2886 aimed at audio/musical applications.")
2887 (license license:gpl2+)))
2889 (define-public raul-devel
2890 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2892 (package (inherit raul)
2894 (version (string-append "0.8.9-" revision "."
2895 (string-take commit 9)))
2899 (url "https://git.drobilla.net/raul.git")
2901 (file-name (string-append name "-" version "-checkout"))
2904 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2906 (define-public resample
2912 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
2916 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
2917 (build-system gnu-build-system)
2919 `(("autoconf" ,autoconf)
2920 ("automake" ,automake)
2921 ("pkg-config" ,pkg-config)
2922 ("libtool" ,libtool)))
2923 (synopsis "Sampling rate conversion and filter design utilities")
2924 (description "This package contains the @command{resample} and
2925 @command{windowfilter} command line utilities. The @command{resample} command
2926 allows changing the sampling rate of a sound file, while the
2927 @command{windowfilter} command allows to design Finite Impulse Response (FIR)
2928 filters using the so-called @emph{window method}.")
2929 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
2930 (license license:lgpl2.1+)))
2932 (define-public rubberband
2939 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2942 (file-name (string-append name "-" version ".tar.bz2"))
2945 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
2946 (build-system gnu-build-system)
2948 `(#:tests? #f ; no check target
2950 (modify-phases %standard-phases
2951 (add-after 'unpack 'skip-jni-installation
2952 ;; ‘make install’ unconditionally installs librubberband-jni.so,
2953 ;; which is never built by ‘make all’. Skip it.
2955 (substitute* "Makefile.in"
2956 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
2959 `(("ladspa" ,ladspa)
2960 ("libsamplerate" ,libsamplerate)
2963 `(("pkg-config" ,pkg-config)))
2964 (home-page "https://breakfastquay.com/rubberband/")
2965 (synopsis "Audio time-stretching and pitch-shifting library")
2967 "Rubber Band is a library and utility program that permits changing the
2968 tempo and pitch of an audio recording independently of one another.")
2969 (license license:gpl2+)))
2971 (define-public rtmidi
2977 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
2978 "/release/rtmidi-" version ".tar.gz"))
2979 (file-name (string-append "rtmidi-" version ".tar.gz"))
2982 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))
2983 (build-system gnu-build-system)
2986 ("alsa-lib" ,alsa-lib)))
2988 `(("autoconf" ,autoconf)
2989 ("automake" ,automake)
2990 ("libtool" ,libtool)
2991 ("pkg-config" ,pkg-config)))
2992 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
2993 (synopsis "Cross-platform MIDI library for C++")
2995 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2996 classes) that provide a common cross-platform API for realtime MIDI
2998 (license license:expat)))
3000 (define-public sratom
3006 (uri (string-append "https://download.drobilla.net/sratom-"
3007 version ".tar.bz2"))
3010 "0vh0biy3ngpzzgdml309c2mqz8xq9q0hlblczb4c6alhp0a8yv0l"))))
3011 (build-system waf-build-system)
3012 (arguments `(#:tests? #f)) ;no check target
3014 ;; In Requires of sratom-0.pc.
3019 `(("pkg-config" ,pkg-config)))
3020 (home-page "https://drobilla.net/software/sratom/")
3021 (synopsis "Library for serialising LV2 atoms to/from RDF")
3023 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
3024 the Turtle syntax.")
3025 (license license:isc)))
3033 (uri (string-append "https://download.drobilla.net/suil-"
3034 version ".tar.bz2"))
3037 "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06"))))
3038 (build-system waf-build-system)
3040 `(#:tests? #f)) ;no check target
3047 `(("pkg-config" ,pkg-config)))
3048 (home-page "https://drobilla.net/software/suil/")
3049 (synopsis "Library for loading and wrapping LV2 plugin UIs")
3051 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
3053 Suil makes it possible to load a UI of a toolkit in a host using another
3054 toolkit. The API is designed such that hosts do not need to explicitly
3055 support specific toolkits – if Suil supports a particular toolkit, then UIs in
3056 that toolkit will work in all hosts that use Suil automatically.
3058 Suil currently supports every combination of Gtk, Qt, and X11.")
3059 (license license:isc)))
3061 (define-public timidity++
3067 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
3068 "/TiMidity++-" version
3069 "/TiMidity++-" version ".tar.bz2"))
3072 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
3073 (build-system gnu-build-system)
3076 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
3080 (string-append "--with-default-path="
3081 (assoc-ref %outputs "out") "/etc/timidity"))
3083 (modify-phases %standard-phases
3084 (add-after 'install 'install-config
3086 (let ((out (string-append (assoc-ref %outputs "out")
3089 (call-with-output-file
3090 (string-append out "/timidity.cfg")
3092 (format port (string-append "source "
3093 (assoc-ref %build-inputs "freepats")
3094 "/share/freepats/freepats.cfg")))))
3097 `(("alsa-lib" ,alsa-lib)
3102 ("libvorbis" ,libvorbis)
3104 ("ncurses" ,ncurses)
3105 ("freepats" ,freepats)))
3107 `(("pkg-config" ,pkg-config)))
3108 (home-page "http://timidity.sourceforge.net/")
3109 (synopsis "Software synthesizer for playing MIDI files")
3111 "TiMidity++ is a software synthesizer. It can play MIDI files by
3112 converting them into PCM waveform data; give it a MIDI data along with digital
3113 instrument data files, then it synthesizes them in real-time, and plays. It
3114 can not only play sounds, but also can save the generated waveforms into hard
3115 disks as various audio file formats.")
3116 (license license:gpl2+)))
3125 "https://code.soundsoftware.ac.uk"
3126 "/attachments/download/1520/vamp-plugin-sdk-"
3130 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
3131 (build-system gnu-build-system)
3133 `(#:tests? #f ; no check target
3135 (modify-phases %standard-phases
3136 (add-after 'install 'remove-libvamp-hostsdk.la
3137 (lambda* (#:key outputs #:allow-other-keys)
3138 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
3139 (for-each delete-file
3140 (let ((out (assoc-ref outputs "out")))
3141 (list (string-append out "/lib/libvamp-sdk.la")
3142 (string-append out "/lib/libvamp-hostsdk.la"))))
3145 `(("libsndfile" ,libsndfile)))
3147 `(("pkg-config" ,pkg-config)))
3148 (home-page "https://vamp-plugins.org")
3149 (synopsis "Modular and extensible audio processing system")
3151 "Vamp is an audio processing plugin system for plugins that extract
3152 descriptive information from audio data — typically referred to as audio
3153 analysis plugins or audio feature extraction plugins.")
3156 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
3158 (define-public libsbsms
3165 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
3166 "/libsbsms-" version ".tar.gz"))
3168 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
3169 (build-system gnu-build-system)
3170 (native-inputs `(("automake" ,automake)))
3173 ;; Disable the use of SSE unless on x86_64.
3174 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
3175 (%current-system))))
3179 (modify-phases %standard-phases
3181 'unpack 'fix-ar-lib-path
3182 (lambda* (#:key inputs #:allow-other-keys)
3183 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
3184 (delete-file "ar-lib")
3186 (string-append (assoc-ref inputs "automake") "/share/automake-"
3187 ,(package-version automake) "/ar-lib")
3190 (home-page "http://sbsms.sourceforge.net/")
3191 (synopsis "Library for time stretching and pitch scaling of audio")
3193 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
3194 stretching and pitch scaling of audio. This package contains the library.")
3195 ;; There is no explicit declaration of a license, but a COPYING file
3197 (license license:gpl2)))
3199 (define-public wavpack
3207 (url "https://github.com/dbry/WavPack")
3208 (commit "e4e8d191e8dd74cbdbeaef3232c16a7ef517e68d")))
3210 (base32 "1zj8svk6giy1abq3940sz32ygz7zldppxl47852zgn5wfm3l2spx"))
3211 (file-name (git-file-name name version))))
3212 (build-system gnu-build-system)
3215 (list "--disable-static")
3217 (modify-phases %standard-phases
3219 ;; Running ./autogen.sh would cause premature configuration.
3221 (invoke "autoreconf" "-vif")
3224 `(("autoconf" ,autoconf)
3225 ("automake" ,automake)
3226 ("libtool" ,libtool)))
3227 (home-page "http://www.wavpack.com/")
3228 (synopsis "Hybrid lossless audio codec")
3230 "WavPack is an audio compression format with lossless, lossy and hybrid
3231 compression modes. This package contains command-line programs and library to
3232 encode and decode wavpack files.")
3233 (license license:bsd-3)))
3235 (define-public libmodplug
3242 "mirror://sourceforge/modplug-xmms/"
3243 name "/" version "/" name "-" version ".tar.gz"))
3246 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
3247 (build-system gnu-build-system)
3248 (home-page "http://modplug-xmms.sourceforge.net/")
3249 (synopsis "Mod file playing library")
3251 "Libmodplug renders mod music files as raw audio data, for playing or
3252 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
3253 supported. Optional features include high-quality resampling, bass expansion,
3254 surround and reverb.")
3255 (license license:public-domain)))
3257 (define-public libxmp
3263 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
3264 name "-" version ".tar.gz"))
3267 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
3268 (build-system gnu-build-system)
3269 (home-page "http://xmp.sourceforge.net/")
3270 (synopsis "Module player library")
3272 "Libxmp is a library that renders module files to PCM data. It supports
3273 over 90 mainstream and obscure module formats including Protracker (MOD),
3274 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
3275 (license license:lgpl2.1+)))
3283 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3284 name "-" version ".tar.gz"))
3287 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3288 (build-system gnu-build-system)
3290 `(("pkg-config" ,pkg-config)))
3292 `(("libxmp" ,libxmp)
3293 ("pulseaudio" ,pulseaudio)))
3294 (home-page "http://xmp.sourceforge.net/")
3295 (synopsis "Extended module player")
3297 "Xmp is a portable module player that plays over 90 mainstream and
3298 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
3299 Tracker 3 S3M and Impulse Tracker IT files.")
3300 (license license:gpl2+)))
3302 (define-public soundtouch
3310 (url "https://gitlab.com/soundtouch/soundtouch.git")
3312 (file-name (git-file-name name version))
3314 (base32 "174wgm3s0inmbnkrlnspxjwm2014qhjhkbdqa5r8rbfi0nzqxzsz"))))
3315 (build-system gnu-build-system)
3317 `(("autoconf" ,autoconf)
3318 ("automake" ,automake)
3319 ("libtool" ,libtool)
3321 (home-page "https://www.surina.net/soundtouch/")
3323 "Audio processing library for changing tempo, pitch and playback rate")
3325 "SoundTouch is an audio processing library for changing the tempo, pitch
3326 and playback rates of audio streams or audio files. It is intended for
3327 application developers writing sound processing tools that require tempo/pitch
3328 control functionality, or just for playing around with the sound effects.")
3329 (license license:lgpl2.1+)))
3337 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
3338 name "-" version ".tar.bz2"))
3341 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
3342 (build-system gnu-build-system)
3345 ;; The upstream asks to identify the distribution to diagnose SoX
3347 '("--with-distro=Guix System Distribution")))
3349 `(("pkg-config" ,pkg-config)))
3351 `(("alsa-lib" ,alsa-lib)
3355 ("libid3tag" ,libid3tag)
3356 ("libltdl" ,libltdl)
3359 ("libvorbis" ,libvorbis)
3360 ("pulseaudio" ,pulseaudio)))
3361 (home-page "http://sox.sourceforge.net")
3362 (synopsis "Sound processing utility")
3364 "SoX (Sound eXchange) is a command line utility that can convert
3365 various formats of computer audio files to other formats. It can also
3366 apply various effects to these sound files, and, as an added bonus, SoX
3367 can play and record audio files.")
3368 ;; sox.c is distributed under GPL, while the files that make up
3369 ;; libsox are licensed under LGPL.
3370 (license (list license:gpl2+ license:lgpl2.1+))))
3380 (string-append "mirror://sourceforge/soxr/soxr-" version
3383 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
3384 (build-system cmake-build-system)
3385 (arguments '(#:tests? #f)) ;no 'check' target
3386 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
3387 (synopsis "One-dimensional sample-rate conversion library")
3389 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
3390 conversion. It may be used, for example, to resample PCM-encoded audio.")
3391 (license license:lgpl2.1+)))
3393 (define-public twolame
3400 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
3401 "/twolame-" version ".tar.gz"))
3403 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
3404 (build-system gnu-build-system)
3406 `(("libsndfile" ,libsndfile)))
3409 ("which" ,which))) ;used in tests/test.pl
3410 (home-page "http://www.twolame.org/")
3411 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
3413 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
3414 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
3416 (license license:lgpl2.1+)))
3418 (define-public portaudio
3421 (version "190600.20161030")
3426 "http://www.portaudio.com/archives/pa_stable_v"
3427 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
3430 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
3431 (patches (search-patches "portaudio-audacity-compat.patch"))))
3432 (build-system gnu-build-system)
3434 ;; TODO: Add ASIHPI.
3435 `(("alsa-lib" ,alsa-lib)
3437 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
3440 `(("autoconf" ,autoconf)
3441 ("automake" ,automake)
3442 ("libtool" ,libtool)
3443 ("pkg-config" ,pkg-config)))
3445 '(#:tests? #f ;no 'check' target
3446 #:parallel-build? #f ;fails on some systems
3447 #:configure-flags '("--with-pic"
3449 ;; XXX: The following prevents a build error
3450 ;; because of missing depcomp when C++ bindings are
3452 "--disable-dependency-tracking")
3454 (modify-phases %standard-phases
3455 ;; This is needed for linking the static libraries
3456 (add-after 'unpack 'build-only-position-independent-code
3458 (substitute* "configure.in"
3459 (("AC_PROG_LIBTOOL" m)
3460 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
3461 (delete-file "configure")
3463 ;; Some headers are not installed by default, but are needed by
3464 ;; packages like Kaldi.
3465 (add-after 'install 'install-missing-headers
3466 (lambda* (#:key outputs #:allow-other-keys)
3467 (install-file "src/common/pa_ringbuffer.h"
3468 (string-append (assoc-ref outputs "out") "/include"))
3470 (home-page "http://www.portaudio.com/")
3471 (synopsis "Audio I/O library")
3473 "PortAudio is a portable C/C++ audio I/O library providing a simple API
3474 to record and/or play sound using a callback function or a blocking read/write
3476 (license license:expat)))
3478 (define-public qsynth
3485 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
3486 "/qsynth-" version ".tar.gz"))
3488 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
3489 (build-system gnu-build-system)
3491 `(#:tests? #f)) ; no "check" phase
3493 `(("qttools" ,qttools)
3494 ("pkg-config" ,pkg-config)))
3496 `(("fluidsynth" ,fluidsynth)
3498 ("qtx11extras" ,qtx11extras)))
3499 (home-page "https://qsynth.sourceforge.io")
3500 (synopsis "Graphical user interface for FluidSynth")
3502 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
3503 synthesizer written in C++.")
3504 (license license:gpl2+)))
3506 (define-public rsound
3514 (url "https://github.com/Themaister/RSound")
3515 (commit (string-append "v" version))))
3516 (file-name (git-file-name name version))
3518 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
3519 (build-system gnu-build-system)
3521 `(("alsa-lib" ,alsa-lib)
3524 ("libsamplerate" ,libsamplerate)
3526 ("portaudio" ,portaudio)
3527 ("pulseaudio" ,pulseaudio)))
3530 (modify-phases %standard-phases
3532 (lambda* (#:key outputs #:allow-other-keys)
3534 (invoke "./configure"
3535 (string-append "--prefix=" (assoc-ref outputs "out"))))))
3536 ;; No 'check' target.
3538 (home-page "https://themaister.net/rsound.html")
3539 (synopsis "Networked audio system")
3541 "RSound allows you to send audio from an application and transfer it
3542 directly to a different computer on your LAN network. It is an audio daemon
3543 with a much different focus than most other audio daemons.")
3544 (license license:gpl3+)))
3546 (define-public xjackfreak
3553 (url "https://github.com/johnhldavis/xjackfreak")
3554 (commit (string-append "v" version))))
3555 (file-name (git-file-name name version))
3558 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3559 (build-system gnu-build-system)
3562 (list (string-append "docdir=" (assoc-ref %outputs "out")
3563 "/share/doc/xjackfreak"))))
3568 ("libxext" ,libxext)))
3570 `(("pkg-config" ,pkg-config)))
3571 (home-page "https://github.com/johnhldavis/xjackfreak")
3572 (synopsis "JACK audio frequency analyzer and display")
3574 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3575 Connection Kit. It can display the FFT of any input, modify it and output the
3577 (license license:gpl3+)))
3579 (define-public zita-convolver
3581 (name "zita-convolver")
3586 "http://kokkinizita.linuxaudio.org"
3587 "/linuxaudio/downloads/zita-convolver-"
3588 version ".tar.bz2"))
3590 ;; Don't optimize for a specific processor architecture.
3592 (substitute* "source/Makefile"
3593 (("^CXXFLAGS \\+= -march=native") ""))
3595 (modules '((guix build utils)))
3598 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
3599 (build-system gnu-build-system)
3601 `(#:tests? #f ; no "check" target
3603 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3604 (string-append "SUFFIX="))
3606 (modify-phases %standard-phases
3607 (add-after 'unpack 'patch-makefile-and-enter-directory
3609 (substitute* "source/Makefile"
3610 (("ldconfig") "true")
3611 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3614 (add-after 'install 'install-symlink
3616 (symlink "libzita-convolver.so"
3617 (string-append (assoc-ref %outputs "out")
3618 "/lib/libzita-convolver.so.4"))
3620 ;; no configure script
3621 (delete 'configure))))
3622 (inputs `(("fftwf" ,fftwf)))
3623 (home-page "https://kokkinizita.linuxaudio.org")
3624 (synopsis "Fast, partitioned convolution engine library")
3626 "Zita convolver is a C++ library providing a real-time convolution
3628 (license license:gpl3+)))
3630 (define-public zita-resampler
3632 (name "zita-resampler")
3637 "http://kokkinizita.linuxaudio.org"
3638 "/linuxaudio/downloads/zita-resampler-"
3639 version ".tar.bz2"))
3641 ;; Don't optimize for a specific processor architecture.
3643 (substitute* '("apps/Makefile" "source/Makefile")
3644 (("^CXXFLAGS \\+= -march=native") ""))
3646 (modules '((guix build utils)))
3649 "1my5k2dh2dkvjp6xjnf9qy6i7s28z13kw1n9pwa4a2cpwbzawfr3"))))
3650 (build-system gnu-build-system)
3652 `(#:tests? #f ; no "check" target
3654 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3655 (string-append "SUFFIX="))
3657 (modify-phases %standard-phases
3659 'unpack 'patch-makefile-and-enter-directory
3661 (substitute* "source/Makefile"
3662 (("ldconfig") "true")
3663 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3667 'install 'install-symlink
3669 (symlink "libzita-resampler.so"
3670 (string-append (assoc-ref %outputs "out")
3671 "/lib/libzita-resampler.so.1"))
3673 ;; no configure script
3674 (delete 'configure))))
3675 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
3676 (synopsis "C++ library for resampling audio signals")
3678 "Libzita-resampler is a C++ library for resampling audio signals. It is
3679 designed to be used within a real-time processing context, to be fast, and to
3680 provide high-quality sample rate conversion.")
3681 (license license:gpl3+)))
3683 (define-public zita-alsa-pcmi
3685 (name "zita-alsa-pcmi")
3690 "http://kokkinizita.linuxaudio.org"
3691 "/linuxaudio/downloads/zita-alsa-pcmi-"
3692 version ".tar.bz2"))
3695 "12d7vdg74yh21w69qi0wg57iz4876j94qbiq09bvscih6xz9y78s"))))
3696 (build-system gnu-build-system)
3698 `(#:tests? #f ; no "check" target
3700 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3701 (string-append "SUFFIX="))
3703 (modify-phases %standard-phases
3704 (add-after 'unpack 'patch-makefile-and-enter-directory
3706 (substitute* "source/Makefile"
3707 (("ldconfig") "true")
3708 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3711 (add-after 'install 'install-symlink
3713 (symlink "libzita-alsa-pcmi.so"
3714 (string-append (assoc-ref %outputs "out")
3715 "/lib/libzita-alsa-pcmi.so.0"))
3717 ;; no configure script
3718 (delete 'configure))))
3720 `(("alsa-lib" ,alsa-lib)
3722 (home-page "https://kokkinizita.linuxaudio.org")
3723 (synopsis "C++ wrapper around the ALSA API")
3725 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3726 access to ALSA PCM devices, taking care of the many functions required to
3727 open, initialise and use a hw: device in mmap mode, and providing floating
3729 (license license:gpl3+)))
3731 (define-public cuetools
3738 (url "https://github.com/svend/cuetools")
3740 (file-name (git-file-name name version))
3743 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
3744 (build-system gnu-build-system)
3745 ;; The source checkout is not bootstrapped.
3747 `(("autoconf" ,autoconf)
3748 ("automake" ,automake)
3751 (synopsis "Cue and toc file parsers and utilities")
3752 (description "Cuetools is a set of programs that are useful for manipulating
3753 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3754 files are a way to represent the layout of a data or audio CD in a
3755 machine-readable ASCII format.")
3756 (home-page "https://github.com/svend/cuetools")
3757 (license license:gpl2+)))
3759 (define-public shntool
3765 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
3766 "shntool-" version ".tar.gz"))
3769 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3770 (build-system gnu-build-system)
3771 (synopsis "WAVE audio data processing tool")
3772 (description "shntool is a multi-purpose WAVE data processing and reporting
3773 utility. File formats are abstracted from its core, so it can process any file
3774 that contains WAVE data, compressed or not---provided there exists a format
3775 module to handle that particular file type. It can also generate CUE files, and
3776 use them split WAVE data into multiple files.")
3777 (home-page "http://etree.org/shnutils/shntool/")
3778 ;; 'install-sh' bears the x11 license
3779 (license (list license:gpl2+ license:x11))))
3781 (define-public dcadec
3788 (url "https://github.com/foo86/dcadec")
3789 (commit (string-append "v" version))))
3790 (file-name (git-file-name name version))
3793 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
3794 (build-system gnu-build-system)
3796 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3800 ;; Build shared library.
3802 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3803 ;; Set proper runpath.
3804 (string-append "LDFLAGS=-Wl,-rpath="
3805 (assoc-ref %outputs "out")
3808 (modify-phases %standard-phases
3809 ;; No configure script, just a hand-written Makefile.
3810 (delete 'configure))))
3811 (synopsis "DTS Coherent Acoustics decoder")
3812 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3813 with support for HD extensions.")
3814 (home-page "https://github.com/foo86/dcadec")
3815 (license license:lgpl2.1+)))
3817 (define-public bs1770gain
3821 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
3825 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3826 version "/bs1770gain-" version ".tar.gz"))
3828 (base32 "0a2dcaxvxy5m3a5sb1lhplsymvz3ypaiidc5xn9qy01h53zvyvkp"))
3829 (modules '((guix build utils)))
3833 (substitute* (find-files "." "\\.[ch]$")
3834 (("^ \\* N..o.*") ""))
3835 (substitute* "libbg/bgx.c"
3836 (("#define BG.* ") "#define BS ")
3837 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
3838 (("\"( #|N).*\"") "\"\""))
3839 (substitute* (list "config.h"
3842 (("https?://bs1770gain[^/]*/")
3845 (build-system gnu-build-system)
3846 (inputs `(("ffmpeg" ,ffmpeg)
3848 (synopsis "Tool to adjust loudness of media files")
3850 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3851 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3852 loudness of audio and video files to the same level.")
3853 (license license:gpl2+)))
3855 (define-public filteraudio
3856 (let ((revision "1")
3857 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3859 (name "filteraudio")
3860 (version (string-append "0.0.0-" revision "."
3861 (string-take commit 7)))
3866 (url "https://github.com/irungentoo/filter_audio")
3868 (file-name (string-append name "-" version "-checkout"))
3871 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3872 (build-system gnu-build-system)
3874 '(#:make-flags (list (string-append "PREFIX=" %output)
3876 #:tests? #f ; No tests
3878 (modify-phases %standard-phases
3879 ;; No configure script
3880 (delete 'configure))))
3881 (synopsis "Lightweight audio filtering library")
3882 (description "An easy to use audio filtering library made from webrtc
3883 code, used in @code{libtoxcore}.")
3884 (home-page "https://github.com/irungentoo/filter_audio")
3885 (license license:bsd-3))))
3895 (string-append "http://www.quut.com/" name "/" name
3896 "-" version ".tar.gz"))
3899 "1xkha9ss5g5qnfaybi8il0mcvp8knwg9plgh8404vh58d0pna0s9"))))
3900 (build-system gnu-build-system)
3902 `(#:test-target "tst"
3903 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
3905 (modify-phases %standard-phases
3906 (add-after 'unpack 'add-fpic-ccflag
3908 ;; The -fPIC compiler option is needed when building
3910 (substitute* "Makefile"
3912 (string-append all "CCFLAGS += -fPIC\n")))
3914 (add-before 'install 'pre-install
3916 (let ((out (assoc-ref %outputs "out")))
3917 (mkdir-p (string-append out "/inc"))
3918 (mkdir-p (string-append out "/man"))
3919 (mkdir-p (string-append out "/man/man1"))
3920 (mkdir-p (string-append out "/man/man3"))
3921 (mkdir-p (string-append out "/bin"))
3922 (mkdir-p (string-append out "/lib")))
3924 (add-after 'install 'post-install
3926 (let ((out (assoc-ref %outputs "out")))
3927 (rename-file (string-append out "/inc")
3928 (string-append out "/include"))
3929 (mkdir-p (string-append out "/include/gsm"))
3930 (copy-recursively "inc"
3931 (string-append out "/include/gsm")))
3933 (delete 'configure)))) ; no configure script
3934 (synopsis "GSM 06.10 lossy speech compression library")
3935 (description "This C library provides an encoder and a decoder for the GSM
3936 06.10 RPE-LTP lossy speech compression algorithm.")
3937 (home-page "http://quut.com/gsm/")
3938 (license (license:non-copyleft "file://COPYRIGHT"))))
3940 (define-public python-pyalsaaudio
3942 (name "python-pyalsaaudio")
3946 (uri (pypi-uri "pyalsaaudio" version))
3949 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3950 (build-system python-build-system)
3952 `(#:tests? #f)) ; tests require access to ALSA devices.
3954 `(("alsa-lib" ,alsa-lib)))
3955 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
3956 (synopsis "ALSA wrappers for Python")
3958 "This package contains wrappers for accessing the ALSA API from Python.
3959 It is currently fairly complete for PCM devices, and has some support for
3961 (license license:psfl)))
3963 (define-public python2-pyalsaaudio
3964 (package-with-python2 python-pyalsaaudio))
3966 (define-public bluez-alsa
3971 ;; The tarballs are mere snapshots and don't contain a
3972 ;; bootstrapped build system.
3975 (url "https://github.com/Arkq/bluez-alsa")
3976 (commit (string-append "v" version))))
3977 (file-name (git-file-name name version))
3980 "08mppgnjf1j2733bk9yf0cny6rfxxwiys0s62lz2zd2lpdl6d9lz"))))
3981 (build-system gnu-build-system)
3984 (list (string-append "--with-alsaplugindir="
3985 (assoc-ref %outputs "out")
3987 (string-append "--with-dbusconfdir="
3988 (assoc-ref %outputs "out")
3989 "/etc/dbus-1/system.d"))))
3991 `(("autoconf" ,autoconf)
3992 ("automake" ,automake)
3993 ("libtool" ,libtool)
3994 ("pkg-config" ,pkg-config)))
3996 `(("alsa-lib" ,alsa-lib)
4001 ("ncurses" ,ncurses)
4004 (home-page "https://github.com/Arkq/bluez-alsa")
4005 (synopsis "Bluetooth ALSA backend")
4006 (description "This project is a rebirth of a direct integration between
4007 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
4008 in favor of 3rd party audio applications. From now on, Bluez acts as a
4009 middleware between an audio application, which implements Bluetooth audio
4010 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
4011 audio profiles in Bluez, so in theory every Bluetooth device (with audio
4012 capabilities) can be connected. In order to access the audio stream, one has
4013 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
4014 on the ALSA software PCM plugin.")
4015 (license license:expat)))
4023 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
4024 "snd-" version ".tar.gz"))
4027 "1kd422krz8ln4m8g3p14wfplcq8lgpzly9297rpbvyc94dc6sdwj"))))
4028 (build-system glib-or-gtk-build-system)
4030 `(#:tests? #f ; no tests
4031 #:out-of-source? #f ; for the 'install-doc' phase
4033 (let* ((out (assoc-ref %outputs "out"))
4034 (docdir (string-append out "/share/doc/"
4035 ,name "-" ,version)))
4036 (list "--with-alsa" "--with-jack" "--with-gmp"
4037 (string-append "--with-doc-dir=" docdir)))
4039 (modify-phases %standard-phases
4040 (add-after 'install 'install-doc
4041 (lambda* (#:key outputs #:allow-other-keys)
4042 (let* ((out (assoc-ref outputs "out"))
4043 (doc (string-append out "/share/doc/"
4044 ,name "-" ,version)))
4047 (install-file f doc))
4048 (find-files "." "\\.html$"))
4049 (copy-recursively "pix" (string-append doc "/pix"))
4052 `(("pkg-config" ,pkg-config)))
4054 `(("alsa-lib" ,alsa-lib)
4061 ("libsamplerate" ,libsamplerate)
4066 ("timidity++" ,timidity++)
4067 ("vorbis-tools" ,vorbis-tools)
4068 ("wavpack" ,wavpack)))
4069 (synopsis "Sound editor")
4070 (home-page "https://ccrma.stanford.edu/software/snd/")
4072 "Snd is a sound editor modelled loosely after Emacs. It can be
4073 customized and extended using either the s7 Scheme implementation (included in
4074 the Snd sources), Ruby, or Forth.")
4075 (license (license:non-copyleft "file://COPYING"))))
4077 (define-public noise-repellent
4079 (name "noise-repellent")
4084 (url "https://github.com/lucianodato/noise-repellent")
4086 (file-name (string-append name "-" version "-checkout"))
4089 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
4090 (build-system meson-build-system)
4093 (list (string-append "--prefix=" (assoc-ref %outputs "out")
4099 `(("pkg-config" ,pkg-config)))
4100 (home-page "https://github.com/lucianodato/noise-repellent")
4101 (synopsis "LV2 plugin for broadband noise reduction")
4102 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
4103 the following features:
4106 @item Spectral gating and spectral subtraction suppression rule
4107 @item Adaptive and manual noise thresholds estimation
4108 @item Adjustable noise floor
4109 @item Adjustable offset of thresholds to perform over-subtraction
4110 @item Time smoothing and a masking estimation to reduce artifacts
4111 @item Basic onset detector to avoid transients suppression
4112 @item Whitening of the noise floor to mask artifacts and to recover higher
4114 @item Option to listen to the residual signal
4116 @item Noise profile saved with the session
4119 (license license:lgpl3+)))
4121 (define-public cli-visualizer
4123 (name "cli-visualizer")
4129 (url "https://github.com/dpayne/cli-visualizer")
4130 (commit (string-append "v" version))))
4131 (file-name (git-file-name name version))
4133 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
4134 (build-system cmake-build-system)
4136 ;; TODO: Try using the latest googletest for versions > 1.8.
4137 `( ;; ("googletest" ,googletest-1.8)
4141 ("ncurses" ,ncurses)
4142 ("pulseaudio" ,pulseaudio)))
4145 ;; XXX Enable tests after patching them to use the system googletest.
4146 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
4148 (modify-phases %standard-phases
4149 (add-after 'install 'install-examples
4150 (lambda* (#:key outputs #:allow-other-keys)
4151 (with-directory-excursion "../source/examples"
4152 (delete-file "mac_osx_config")
4153 (for-each (lambda (file)
4156 (assoc-ref outputs "out")
4160 (home-page "https://github.com/dpayne/cli-visualizer/")
4161 (synopsis "Command-line audio visualizer")
4162 (description "@code{cli-visualizer} displays fast-Fourier
4163 transforms (FFTs) of the sound being played, as well as other graphical
4165 (license license:expat)))
4174 (url "https://github.com/karlstav/cava")
4176 (file-name (git-file-name name version))
4179 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
4180 (build-system gnu-build-system)
4182 `(("autoconf" ,autoconf)
4183 ("automake" ,automake)
4184 ("libtool" ,libtool)))
4187 ("ncurses" ,ncurses)
4188 ("pulseaudio" ,pulseaudio)))
4191 (list (string-append "PREFIX=" %output)
4192 (string-append "FONT_DIR=" %output "/share/consolefonts"))
4194 (let ((lib (string-append %output "/lib")))
4195 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
4197 (modify-phases %standard-phases
4199 (lambda* (#:key outputs #:allow-other-keys)
4200 (setenv "HOME" (getcwd))
4201 (invoke "sh" "autogen.sh")))
4202 (add-before 'build 'make-cava-ldflags
4203 (lambda* (#:key outputs #:allow-other-keys)
4204 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
4206 (add-after 'install 'data
4207 (lambda* (#:key outputs #:allow-other-keys)
4208 (for-each (lambda (file)
4210 (string-append (assoc-ref outputs "out")
4211 "/share/doc/examples")))
4212 (find-files "example_files"))
4214 (home-page "https://karlstav.github.io/cava/")
4215 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
4216 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
4217 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
4218 (license license:expat)))
4220 (define-public fluid-3
4221 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
4228 ;; Only one file is required, but the release bundles the whole
4229 ;; software which is 50MiB as tar and 200MiB unpacked. The website
4230 ;; directly links the soundfont release to the github file download.
4231 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
4232 commit "/share/sound/FluidR3Mono_GM.sf3"))
4233 (file-name (string-append name "-" version ".sf3"))
4236 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
4237 (build-system trivial-build-system)
4239 `(#:modules ((guix build utils))
4242 (use-modules (guix build utils))
4243 (let ((file (assoc-ref %build-inputs "source"))
4244 (out (string-append %output "/share/soundfonts")))
4246 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
4248 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
4249 (synopsis "Pro-quality GM soundfont")
4250 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
4251 (license license:expat))))
4253 (define-public libfdk
4261 (url "https://github.com/mstorsjo/fdk-aac")
4262 (commit (string-append "v" version))))
4263 (file-name (git-file-name name version))
4266 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
4267 (build-system gnu-build-system)
4269 `(("autoconf" ,autoconf)
4270 ("automake" ,automake)
4271 ("libtool" ,libtool)))
4272 (home-page "https://github.com/mstorsjo/fdk-aac")
4273 (synopsis "Fraunhofer FDK AAC library")
4274 (description "FDK is a library for encoding and decoding Advanced Audio
4275 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
4276 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
4277 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
4278 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
4279 library supports sample rates up to 96 kHz and up to eight channels (7.1
4281 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
4282 "https://www.gnu.org/licenses/license-list.html#fdk"))))
4284 (define-public libopenshot-audio
4286 (name "libopenshot-audio")
4291 (url "https://github.com/OpenShot/libopenshot-audio")
4292 (commit (string-append "v" version))))
4293 (file-name (git-file-name name version))
4296 "13if0m5mvlqly8gmbhschzb9papkgp3yqivklhb949dhy16m8zgf"))))
4297 (build-system cmake-build-system)
4299 `(("alsa-lib" ,alsa-lib)
4300 ;; The following are for JUCE GUI components:
4302 ("freetype" ,freetype)
4303 ("libxrandr" ,libxrandr)
4304 ("libxinerama" ,libxinerama)
4305 ("libxcursor" ,libxcursor)))
4307 `(#:tests? #f ;there are no tests
4309 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
4310 (assoc-ref %build-inputs "freetype")
4311 "/include/freetype2"))))
4312 (home-page "https://openshot.org")
4313 (synopsis "Audio editing and playback for OpenShot")
4314 (description "OpenShot Audio Library (libopenshot-audio) allows
4315 high-quality editing and playback of audio, and is based on the JUCE
4317 (license license:lgpl3+)))
4319 (define-public faudio
4327 (url "https://github.com/FNA-XNA/FAudio")
4329 (file-name (git-file-name name version))
4331 (base32 "0ckpr6ffz8ssfh1y850dhip5s5jv0j6n90qz5yx1v9d6gpwf08rp"))))
4333 '(#:tests? #f ; No tests.
4334 #:configure-flags '("-DFFMPEG=ON")))
4335 (build-system cmake-build-system)
4336 (native-inputs `(("pkg-config" ,pkg-config)))
4337 (inputs `(("ffmpeg" ,ffmpeg)
4339 (home-page "https://github.com/FNA-XNA/FAudio")
4340 (synopsis "XAudio reimplementation")
4341 (description "FAudio is an XAudio reimplementation that focuses solely on
4342 developing fully accurate DirectX Audio runtime libraries.")
4343 (license license:zlib)))
4345 (define-public gnaural
4348 (version "20110606")
4352 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
4356 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
4357 (build-system gnu-build-system)
4359 `(("alsa-lib" ,alsa-lib)
4361 ("libsndfile" ,libsndfile)
4362 ("portaudio" ,portaudio)))
4364 `(("pkg-config" ,pkg-config)))
4365 (home-page "http://gnaural.sourceforge.net/")
4366 (synopsis "Binaural beat synthesizer")
4367 (description "Gnaural is a programmable auditory binaural beat synthesizer
4368 intended to be used for brainwave entrainment. Gnaural supports creation of
4369 binaural beat tracks of different frequencies and exporting of tracks into
4370 different audio formats. Gnaural can also be linked over the internet with
4371 other Gnaural instances, allowing synchronous sessions between many users.")
4372 (license license:gpl2+)))
4374 (define-public darkice
4380 (uri (string-append "https://github.com/rafael2k/darkice/releases/"
4381 "download/v" version "/darkice-"
4385 "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76"))))
4386 (build-system gnu-build-system)
4387 (native-inputs `(("pkg-config" ,pkg-config)))
4388 (inputs `(("lame" ,lame)
4389 ("libvorbis" ,libvorbis)
4391 ("twolame" ,twolame)
4392 ("alsa-lib" ,alsa-lib)
4393 ("pulseaudio" ,pulseaudio)
4395 ("libsamplerate" ,libsamplerate)))
4398 (list (string-append "--with-lame-prefix="
4399 (assoc-ref %build-inputs "lame")))))
4400 (home-page "http://www.darkice.org/")
4401 (synopsis "Live audio streamer")
4402 (description "DarkIce is a live audio streamer. It takes audio input from
4403 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
4404 stream to one or more IceCast and/or ShoutCast servers.")
4405 (license license:gpl3+)))
4407 (define-public libltc
4415 (string-append "https://github.com/x42/libltc/releases/download/v"
4416 version "/libltc-" version ".tar.gz"))
4419 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
4420 (build-system gnu-build-system)
4422 `(#:parallel-tests? #f)) ;tests fail otherwise
4424 `(("doxygen" ,doxygen)
4425 ("pkg-config" ,pkg-config)))
4426 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
4427 (description "Libltc is a POSIX-C Library for handling
4428 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
4429 (home-page "https://x42.github.io/libltc/")
4430 (license license:lgpl3+)))
4432 (define-public ttaenc
4439 (uri (string-append "mirror://sourceforge/tta/"
4441 "/ttaenc-" version "-src.tgz"))
4444 "1iixpr4b89g9g1hwn8ak8k8iflcww3r5f09a117qdidc2nqcijdj"))))
4445 (build-system gnu-build-system)
4447 `(#:tests? #f ;no tests
4449 (list (string-append "CC=" ,(cc-for-target))
4450 (string-append "INSDIR=" (assoc-ref %outputs "out") "/bin"))
4452 (modify-phases %standard-phases
4453 (delete 'configure) ; no configure
4454 (add-before 'install 'make-bindir
4455 (lambda* (#:key outputs #:allow-other-keys)
4456 (let* ((out (assoc-ref outputs "out")))
4457 (mkdir-p (string-append out "/bin"))
4459 (synopsis "TTA lossless audio encoder")
4461 "TTA performs lossless compression on multichannel 8,16 and 24 bits
4462 data of the Wav audio files. Being lossless means that no data-
4463 quality is lost in the compression - when uncompressed, the data will
4464 be identical to the original. The compression ratios of TTA depend on
4465 the type of music file being compressed, but the compression size
4466 will generally range between 30% - 70% of the original. TTA format
4467 supports both of ID3v1/v2 and APEv2 tags.")
4468 (home-page "http://tausoft.org/")
4469 (license license:gpl2+)))
4471 (define-public redkite
4479 (url "https://gitlab.com/geontime/redkite.git")
4480 (commit (string-append "v" version))))
4481 (file-name (git-file-name name version))
4483 (base32 "1m2db7c791fi33snkjwnvlxapmf879g5r8azlkx7sr6vp2s0jq2k"))))
4484 (build-system cmake-build-system)
4486 `(#:tests? #f)) ;no tests included
4488 `(("cairo" ,cairo)))
4490 `(("pkg-config", pkg-config)))
4491 (synopsis "Small GUI toolkit")
4492 (description "Redkite is a small GUI toolkit developed in C++17 and
4493 inspired from other well known GUI toolkits such as Qt and GTK. It is
4494 minimal on purpose and is intended to be statically linked to applications,
4495 therefore satisfying any requirements they may have to be self contained,
4496 as is the case with audio plugins.")
4497 (home-page "https://gitlab.com/geontime/redkite")
4498 (license license:gpl3+)))
4500 (define-public carla
4509 (url "https://github.com/falkTX/Carla")
4510 (commit (string-append "v" version))))
4511 (file-name (git-file-name name version))
4514 "0c3y4a6cgi4bv1mg57i3qn5ia6pqjqlaylvkapj6bmpsw71ig22g"))))
4515 (build-system gnu-build-system)
4517 `(#:tests? #f ; no "check" target
4519 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
4521 (modify-phases %standard-phases
4522 (delete 'configure) ; no configure script
4523 (add-before 'build 'set-CC-variable-and-show-features
4526 (invoke "make" "features")))
4527 (add-after 'install 'make-carla-executable
4528 (lambda* (#:key outputs #:allow-other-keys)
4529 (let ((out (assoc-ref outputs "out")))
4530 (chmod (string-append out "/share/carla/carla") #o555)
4532 (add-after 'install 'wrap-executables
4533 (lambda* (#:key outputs #:allow-other-keys)
4534 (let ((out (assoc-ref outputs "out")))
4535 (wrap-script (string-append out "/bin/carla")
4536 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
4539 `(("alsa-lib" ,alsa-lib)
4541 ("fluidsynth" ,fluidsynth)
4544 ("libsndfile" ,libsndfile)
4545 ("gtk2" ,gtk+-2) ;needed for bridging GTK2 plugins in GTK3 hosts
4547 ("python-pyliblo" ,python-pyliblo)
4548 ("python-pyqt" ,python-pyqt)
4549 ("python-rdflib" ,python-rdflib)
4550 ;; python-pyqt shows the following error without python-wrapper:
4551 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
4552 ;; (ModuleNotFoundError: No module named 'PyQt5')
4553 ("python-wrapper" ,python-wrapper)
4558 ;; For WRAP-SCRIPT above.
4559 ("guile" ,guile-2.2)))
4561 `(("pkg-config" ,pkg-config)))
4562 (home-page "https://kx.studio/Applications:Carla")
4563 (synopsis "Audio plugin host")
4564 (description "Carla is a modular audio plugin host, with features like
4565 transport control, automation of parameters via MIDI CC and remote control
4566 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
4567 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
4568 default and preferred audio driver but also supports native drivers like ALSA.")
4569 (license license:gpl2+)))
4571 (define-public ecasound
4577 (uri (string-append "https://nosignal.fi/download/ecasound-"
4580 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
4581 (build-system gnu-build-system)
4582 (native-inputs `(("pkg-config" ,pkg-config)))
4583 ;; It would be nice to add mikmod to inputs if that gets packaged
4585 (inputs `(("alsa-lib" ,alsa-lib)
4589 ("vorbis-tools" ,vorbis-tools)
4592 ("timidity++" ,timidity++)
4593 ("libsndfile" ,libsndfile)
4594 ("libsamplerate" ,libsamplerate)
4595 ("ncurses" ,ncurses)
4598 (home-page "https://nosignal.fi/ecasound/index.php")
4599 (synopsis "Multitrack audio processing")
4600 (description "Ecasound is a software package designed for multitrack audio
4601 processing. It can be used for simple tasks like audio playback, recording and
4602 format conversions, as well as for multitrack effect processing, mixing,
4603 recording and signal recycling. Ecasound supports a wide range of audio inputs,
4604 outputs and effect algorithms. Effects and audio objects can be combined in
4605 various ways, and their parameters can be controlled by operator objects like
4606 oscillators and MIDI-CCs. A versatile console mode user-interface is included
4608 ;; As an exception to the above, the C, C++ and python implementations
4609 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
4610 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
4611 ;; that are not licensed under GPL.
4612 (license (list license:gpl2 license:lgpl2.1))))
4614 (define-public libaudec
4622 (url "https://git.zrythm.org/git/libaudec")
4623 (commit (string-append "v" version))))
4624 (file-name (git-file-name name version))
4627 "04hw61db8wscj28qjyiaiafx8xl87njgmvqszxyhs4gmg8xgjip7"))))
4628 (build-system meson-build-system)
4631 `(#:configure-flags `("-Dtests=true")))
4633 `(("libsamplerate" ,libsamplerate)
4634 ("libsndfile" ,libsndfile)))
4636 `(("pkg-config", pkg-config)))
4637 (synopsis "Library for reading and resampling audio files")
4638 (description "libaudec is a wrapper library over ffmpeg, sndfile and
4639 libsamplerate for reading and resampling audio files, based on Robin Gareus'
4640 @code{audio_decoder} code.")
4641 (home-page "https://git.zrythm.org/cgit/libaudec")
4642 (license license:agpl3+)))
4644 (define-public lv2lint
4652 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
4654 (file-name (git-file-name name version))
4657 "1jrka0hsn4n1clri7zfkcl3c2vi52144lkpjm81l51ff8rqy8ks1"))))
4658 (build-system meson-build-system)
4661 `("-Delf-tests=true" ; for checking symbol visibility
4662 "-Donline-tests=true"))) ; for checking URI existence
4668 `(("pkg-config", pkg-config)))
4669 (synopsis "LV2 plugin lint tool")
4670 (description "lv2lint is an LV2 lint-like tool that checks whether a
4671 given plugin and its UI(s) match up with the provided metadata and adhere
4672 to well-known best practices.")
4673 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
4674 (license license:artistic2.0)))
4676 (define-public lv2toweb
4684 (url "https://github.com/x42/lv2toweb")
4685 (commit (string-append "v" version))))
4686 (file-name (git-file-name name version))
4689 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
4690 (build-system gnu-build-system)
4692 `(#:tests? #f ; no "check" target
4693 #:make-flags (list "CC=gcc"
4694 (string-append "PREFIX=" (assoc-ref %outputs "out")))
4696 (modify-phases %standard-phases
4697 (delete 'configure))))
4702 `(("help2man", help2man)
4703 ("pkg-config", pkg-config)))
4704 (synopsis "Documentation generator for LV2 plugins")
4706 "lv2toweb allows the user to create an xhtml page with information
4707 about the given LV2 plugin, provided that the plugin and its UI(s) match up
4708 with the provided metadata and adhere to well-known best practices.")
4709 (home-page "https://github.com/x42/lv2toweb")
4710 (license (list license:isc license:gpl2))))
4712 (define-public ztoolkit
4720 (url "https://git.zrythm.org/git/ztoolkit")
4721 (commit (string-append "v" version))))
4722 (file-name (git-file-name name version))
4725 "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1"))))
4726 (build-system meson-build-system)
4729 ("libx11" ,libx11)))
4731 `(("pkg-config" ,pkg-config)))
4732 (synopsis "GUI toolkit for LV2 plugins")
4733 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
4734 inspired by GTK. It handles events and low level drawing on behalf of
4735 the user and provides a high-level API for managing the UI and custom
4736 widgets. ZToolkit is written in C and was created to be used for building
4737 audio plugin UIs, where the dependencies often need to be kept to a
4739 (home-page "https://git.zrythm.org/cgit/ztoolkit/")
4740 (license license:agpl3+)))
4742 (define-public libinstpatch
4744 (name "libinstpatch")
4750 (url "https://github.com/swami/libinstpatch")
4751 (commit (string-append "v" version))))
4752 (file-name (git-file-name name version))
4754 (base32 "0psx4hc5yksfd3k2xqsc7c8lbz2d4yybikyddyd9hlkhq979cmjb"))))
4755 (build-system cmake-build-system)
4757 `(#:tests? #f)) ;there are no tests
4759 `(("glib:bin" ,glib "bin")
4760 ("pkg-config" ,pkg-config)))
4763 ("libsndfile" ,libsndfile)))
4764 (home-page "http://www.swamiproject.org/")
4765 (synopsis "Instrument file software library")
4767 "libInstPatch is a library for processing digital sample based MIDI
4768 instrument \"patch\" files. The types of files libInstPatch supports are used
4769 for creating instrument sounds for wavetable synthesis. libInstPatch provides
4770 an object framework (based on GObject) to load patch files, which can then be
4771 edited, converted, compressed and saved.")
4772 (license license:lgpl2.1)))
4774 (define-public ztoolkit-rsvg
4777 (name "ztoolkit-rsvg")
4779 `(#:configure-flags `("-Denable_rsvg=true")))
4781 `(("librsvg" ,librsvg)
4782 ,@(package-inputs ztoolkit)))
4783 (synopsis "ZToolkit with SVG support")))
4785 (define-public lsp-dsp-lib
4787 (name "lsp-dsp-lib")
4792 (uri (string-append "https://github.com/sadko4u/lsp-dsp-lib/"
4793 "releases/download/lsp-dsp-lib-" version
4794 "/lsp-dsp-lib-" version "-src.tar.gz"))
4797 "07w3d2i0z0xmvi1ngcgs7lc5a0da8jvf7rv4dnjk01md43b7fkh1"))))
4798 (build-system gnu-build-system)
4800 `(#:tests? #f ; no tests
4802 (list (string-append "CC=" ,(cc-for-target)))
4804 (modify-phases %standard-phases
4806 (lambda* (#:key outputs #:allow-other-keys)
4807 (invoke "make" "config"
4808 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
4809 (home-page "https://github.com/sadko4u/lsp-dsp-lib")
4810 (synopsis "Digital signal processing library")
4811 (description "The LSP DSP library provides a set of functions that perform
4812 SIMD-optimized computing on several hardware architectures. All functions
4813 currently operate on IEEE-754 single-precision floating-point numbers.")
4814 (license license:lgpl3+)))
4816 (define-public codec2
4824 (url "https://github.com/drowe67/codec2")
4825 (commit (string-append "v" version))))
4826 (file-name (git-file-name name version))
4828 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
4829 (build-system cmake-build-system)
4833 ("valgrind" ,valgrind)))
4835 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
4837 (modify-phases %standard-phases
4838 (add-before 'check 'set-test-environment
4840 (setenv "HOME" "/tmp")
4842 (synopsis "Speech codec")
4844 "Codec 2 is a speech codec designed for communications quality speech
4845 between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
4847 (home-page "https://www.rowetel.com/?page_id=452")
4848 (license license:lgpl2.1)))
4850 (define-public ableton-link
4852 (name "ableton-link")
4857 (url "https://github.com/Ableton/link")
4858 (commit (string-append "Link-" version))))
4859 (file-name (git-file-name name version))
4862 "0262vm0v7hmqjhqx5xikh529p3c065p1yld6ymaiz74yq1dnnjir"))
4863 (modules '((guix build utils)))
4865 (search-patches "ableton-link-system-libraries-debian.patch"))
4868 ;; Tests assume that CMake's "build" directory is a
4869 ;; sub-directory of the source tree, so we fix it.
4870 (substitute* "ci/run-tests.py"
4871 (("root_dir,") "root_dir, os.pardir,"))
4872 ;; Unbundle dependencies.
4873 (delete-file-recursively "third_party")
4874 (delete-file-recursively "modules")
4876 (build-system cmake-build-system)
4878 `(("catch" ,catch-framework)
4879 ("python" ,python) ;for running tests
4880 ("portaudio" ,portaudio) ;for portaudio examples
4881 ("qtbase" ,qtbase) ;for Qt examples
4882 ("qtdeclarative" ,qtdeclarative)
4883 ("qttools" ,qttools)))
4885 `(("jack" ,jack-1) ;for JACK examples
4886 ("qtquickcontrols" ,qtquickcontrols))) ;for Qt examples
4888 ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp
4889 ;; contains '#include <asio.hpp>'.
4893 '("-DLINK_BUILD_QT_EXAMPLES=ON"
4894 "-DLINK_BUILD_JACK=ON")
4896 (modify-phases %standard-phases
4898 (lambda* (#:key inputs #:allow-other-keys)
4899 (let* ((python (string-append (assoc-ref inputs "python")
4901 (run-tests (string-append "../ableton-link-"
4903 "-checkout/ci/run-tests.py")))
4904 (invoke python run-tests "--target" "LinkCoreTest")
4905 (invoke python run-tests "--target" "LinkDiscoveryTest"))))
4906 (add-before 'install 'patch-cmake
4907 (lambda* (#:key inputs #:allow-other-keys)
4908 (let* ((source (string-append "../ableton-link-"
4911 (substitute* (string-append source
4912 "cmake_include/AsioStandaloneConfig.cmake")
4913 (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./"
4914 "modules/asio-standalone/asio/include"))
4915 (string-append (assoc-ref inputs "asio")
4917 (substitute* (string-append source "AbletonLinkConfig.cmake")
4918 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include")
4919 "${CMAKE_CURRENT_LIST_DIR}/../../../include")
4920 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp")
4921 "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp"))
4924 (lambda* (#:key outputs #:allow-other-keys)
4925 (let* ((out (assoc-ref outputs "out"))
4926 (bin (string-append out "/bin"))
4927 (lib-cmake (string-append out "/lib/cmake/ableton-link"))
4928 (source (string-append "../ableton-link-" ,version "-checkout")))
4929 (for-each (lambda (test-file)
4930 (delete-file test-file))
4931 '("bin/LinkDiscoveryTest" "bin/LinkCoreTest"))
4932 (copy-recursively "bin" bin)
4933 (copy-recursively (string-append source "/include/ableton")
4934 (string-append out "/include/ableton"))
4935 (install-file (string-append source "/AbletonLinkConfig.cmake")
4937 (install-file (string-append source
4938 "/cmake_include/AsioStandaloneConfig.cmake")
4939 (string-append lib-cmake "/cmake_include"))
4941 (home-page "https://github.com/Ableton/link")
4942 (synopsis "Synchronize musical beat, tempo, and phase across multiple applications")
4944 "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase
4945 across multiple applications running on one or more devices. Applications on devices
4946 connected to a local network discover each other automatically and form a musical
4947 session in which each participant can perform independently: anyone can start or stop
4948 while still staying in time.")
4949 (license license:gpl2+)))