1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 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, 2020, 2021 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–2021 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, 2021 Pierre Langlois <pierre.langlois@gmx.com>
22 ;;; Copyright © 2019, 2021 Leo Famulari <leo@famulari.name>
23 ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
24 ;;; Copyright © 2019, 2021 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, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
31 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
32 ;;; Copyright © 2020, 2021 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>
36 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
38 ;;; This file is part of GNU Guix.
40 ;;; GNU Guix is free software; you can redistribute it and/or modify it
41 ;;; under the terms of the GNU General Public License as published by
42 ;;; the Free Software Foundation; either version 3 of the License, or (at
43 ;;; your option) any later version.
45 ;;; GNU Guix is distributed in the hope that it will be useful, but
46 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
47 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48 ;;; GNU General Public License for more details.
50 ;;; You should have received a copy of the GNU General Public License
51 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
53 (define-module (gnu packages audio)
54 #:use-module (gnu packages)
55 #:use-module (gnu packages algebra)
56 #:use-module (gnu packages autotools)
57 #:use-module (gnu packages avahi)
58 #:use-module (gnu packages backup)
59 #:use-module (gnu packages base)
60 #:use-module (gnu packages bison)
61 #:use-module (gnu packages build-tools)
62 #:use-module (gnu packages boost)
63 #:use-module (gnu packages check)
64 #:use-module (gnu packages compression)
65 #:use-module (gnu packages curl)
66 #:use-module (gnu packages dbm)
67 #:use-module (gnu packages documentation)
68 #:use-module (gnu packages elf)
69 #:use-module (gnu packages emacs)
70 #:use-module (gnu packages file)
71 #:use-module (gnu packages flex)
72 #:use-module (gnu packages fltk)
73 #:use-module (gnu packages fontutils)
74 #:use-module (gnu packages gcc)
75 #:use-module (gnu packages gettext)
76 #:use-module (gnu packages gl)
77 #:use-module (gnu packages glib)
78 #:use-module (gnu packages gnome)
79 #:use-module (gnu packages gnunet) ; libmicrohttpd
80 #:use-module (gnu packages gperf)
81 #:use-module (gnu packages groff)
82 #:use-module (gnu packages gstreamer)
83 #:use-module (gnu packages gtk)
84 #:use-module (gnu packages guile)
85 #:use-module (gnu packages icu4c)
86 #:use-module (gnu packages image)
87 #:use-module (gnu packages libbsd)
88 #:use-module (gnu packages libffi)
89 #:use-module (gnu packages libusb)
90 #:use-module (gnu packages linux)
91 #:use-module (gnu packages llvm)
92 #:use-module (gnu packages man)
93 #:use-module (gnu packages maths)
94 #:use-module (gnu packages mp3) ;taglib
95 #:use-module (gnu packages multiprecision)
96 #:use-module (gnu packages music)
97 #:use-module (gnu packages ncurses)
98 #:use-module (gnu packages networking)
99 #:use-module (gnu packages onc-rpc)
100 #:use-module (gnu packages perl)
101 #:use-module (gnu packages pkg-config)
102 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
103 #:use-module (gnu packages python)
104 #:use-module (gnu packages python-xyz)
105 #:use-module (gnu packages qt)
106 #:use-module (gnu packages rdf)
107 #:use-module (gnu packages readline)
108 #:use-module (gnu packages sdl)
109 #:use-module (gnu packages serialization)
110 #:use-module (gnu packages telephony)
111 #:use-module (gnu packages linphone)
112 #:use-module (gnu packages linux)
113 #:use-module (gnu packages tls)
114 #:use-module (gnu packages valgrind)
115 #:use-module (gnu packages video)
116 #:use-module (gnu packages vim) ;xxd
117 #:use-module (gnu packages web)
118 #:use-module (gnu packages webkit)
119 #:use-module (gnu packages wxwidgets)
120 #:use-module (gnu packages xiph)
121 #:use-module (gnu packages xml)
122 #:use-module (gnu packages xorg)
123 #:use-module (guix build-system cmake)
124 #:use-module (guix build-system copy)
125 #:use-module (guix build-system glib-or-gtk)
126 #:use-module (guix build-system gnu)
127 #:use-module (guix build-system meson)
128 #:use-module (guix build-system python)
129 #:use-module (guix build-system trivial)
130 #:use-module (guix build-system waf)
131 #:use-module (guix download)
132 #:use-module (guix git-download)
133 #:use-module ((guix licenses) #:prefix license:)
134 #:use-module (guix packages)
135 #:use-module (guix utils)
136 #:use-module (srfi srfi-1)
137 #:use-module (srfi srfi-26))
139 (define-public opensles
148 (url "https://github.com/KhronosGroup/OpenSL-ES-Registry")
149 (commit "ea5104bf37bf525c25e6ae2386586048179d0fda")))
150 (file-name (git-file-name name version))
152 (base32 "0j5bm7h3ahz66f23i9abwc0y10agfkpksnj6y078x2nichq66h4f"))
154 (search-patches "opensles-add-license-file.patch"))))
155 (build-system copy-build-system)
158 (modify-phases %standard-phases
159 (add-after 'install 'clean
160 (lambda* (#:key outputs #:allow-other-keys)
161 (let* ((out (assoc-ref outputs "out")))
162 (mkdir-p (string-append out "/etc"))
163 (mkdir-p (string-append out "/include"))
164 (mkdir-p (string-append out "/share"))
166 (string-append out "/api/1.1/OpenSLES_IID.c")
167 (string-append out "/etc/OpenSLES_IID.c"))
169 (string-append out "/api/1.1/OpenSLES.h")
170 (string-append out "/include/OpenSLES.h"))
172 (string-append out "/api/1.1/OpenSLES_Platform.h")
173 (string-append out "/include/OpenSLES_Platform.h"))
175 (string-append out "/api/1.1/README.txt")
176 (string-append out "/share/README.txt"))
178 (string-append out "/LICENSE.txt")
179 (string-append out "/share/LICENSE.txt"))
180 (for-each delete-file-recursively
182 (string-append out "/api")
183 (string-append out "/specs")))
184 (for-each delete-file
186 (string-append out "/CODE_OF_CONDUCT.md")
187 (string-append out "/index.php")
188 (string-append out "/README.md"))))
190 (synopsis "Embedded Audio Acceleration")
191 (description "OpenSLES is a royalty-free, cross-platform,
192 hardware-accelerated audio API tuned for embedded systems. It provides a
193 standardized, high-performance, low-latency method to access audio
194 functionality for developers of native applications on embedded mobile
195 multimedia devices, enabling straightforward cross-platform deployment of
196 hardware and software audio capabilities, reducing implementation effort, and
197 promoting the market for advanced audio.")
198 (home-page "https://www.khronos.org/opensles/")
199 (license (license:non-copyleft "file:///LICENSE.txt"))))
201 (define-public wildmidi
210 (url "https://github.com/Mindwerks/wildmidi")
211 (commit (string-append name "-" version))))
212 (file-name (git-file-name name version))
214 (base32 "08fbbsvw6pkwwqarjwcvdp8mq4zn5sgahf025hynwc6rvf4sp167"))))
215 (build-system cmake-build-system)
217 `(#:tests? #f ; No target
222 "-DWANT_OPENAL=ON")))
226 (synopsis "Software Synthesizer")
227 (description "WildMIDI is a simple software midi player which has a core
228 softsynth library that can be use with other applications.")
229 (home-page "https://www.mindwerks.net/projects/wildmidi/")
237 (define-public webrtc-audio-processing
239 (name "webrtc-audio-processing")
245 (string-append "http://freedesktop.org/software/pulseaudio/"
246 name "/" name "-" version ".tar.xz"))
248 (base32 "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0"))))
249 (build-system gnu-build-system)
250 (synopsis "WebRTC's Audio Processing Library")
251 (description "WebRTC-Audio-Processing library based on Google's
252 implementation of WebRTC.")
254 "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/")
255 (license (license:non-copyleft "file:///COPYING"))))
257 (define-public vo-aacenc
265 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
266 name "/" name "-" version ".tar.gz"))
268 (base32 "0dhghm3c8pqrriwwyj5x9i0yf52fmdfijbgqqkvqvwarldvp86p5"))))
269 (build-system gnu-build-system)
270 (synopsis "VisualOn AAC Encoder")
271 (description "VO-AACENC is the VisualOn implementation of Advanced Audio
272 Coding (AAC) encoder.")
273 (home-page "https://sourceforge.net/projects/opencore-amr/")
274 (license license:asl2.0)))
276 (define-public tinyalsa
285 (url "https://github.com/tinyalsa/tinyalsa")
287 (file-name (git-file-name name version))
289 (base32 "0ajyvml5bnzvhiyyrn42gqwgg23ssxkfh09rvsnywhzxhd0xai4h"))))
290 (build-system gnu-build-system)
292 `(#:tests? #f ; No target
294 (modify-phases %standard-phases
298 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
299 (synopsis "ALSA interfacing library")
300 (description "TinyALSA is a small library to interface with ALSA in the
302 (home-page "https://github.com/tinyalsa/tinyalsa")
303 (license (license:non-copyleft "file:///NOTICE"))))
305 (define-public libopenmpt
313 (string-append "https://download.openmpt.org/archive/libopenmpt/src/"
314 "libopenmpt-" version "+release.autotools.tar.gz"))
316 (base32 "0h86p8mnpm98vc4v6jbvrmm02fch7dnn332i26fg3a2s1738m04d"))))
317 (build-system gnu-build-system)
320 (list (string-append "--docdir=" (assoc-ref %outputs "out")
321 "/share/doc/" ,name "-" ,version))
323 (modify-phases %standard-phases
324 (add-after 'install 'delete-static-libraries
325 (lambda* (#:key outputs #:allow-other-keys)
326 (let* ((out (assoc-ref outputs "out"))
327 (lib (string-append out "/lib")))
328 (for-each delete-file (find-files lib "\\.a$"))
331 `(("doxygen" ,doxygen)
333 ("pkg-config" ,pkg-config)))
338 ("portaudio" ,portaudio)
339 ("pulseaudio" ,pulseaudio)
341 ("sndfile" ,libsndfile)
342 ("vorbis" ,libvorbis)
344 (synopsis "Audio tracking library")
345 (description "LibOpenMPT is a cross-platform C++ and C module playback
346 library. It is based on the player code of the Open ModPlug Tracker project.")
347 (home-page "https://openmpt.org/")
348 (license (license:non-copyleft "file:///LICENSE"))))
350 (define-public libofa
358 (string-append "https://storage.googleapis.com/"
359 "google-code-archive-downloads/v2/code.google.com/"
360 "musicip-libofa/" name "-" version ".tar.gz"))
362 (base32 "184ham039l7lwhfgg0xr2vch2xnw1lwh7sid432mh879adhlc5h2"))
365 "libofa-ftbfs-1.diff"
367 "libofa-ftbfs-2.diff"))))
368 (build-system gnu-build-system)
370 `(("pkg-config" ,pkg-config)))
376 (synopsis "Open Fingerprint Architecture")
377 (description "LibOFA is an audio fingerprint library, created and provided
379 (home-page "https://code.google.com/archive/p/musicip-libofa/")
380 (license license:gpl2+)))
390 (string-append "https://sourceforge.net/projects/faac/files/faac-src/"
391 "faac-1.30/faac-1_30.tar.gz/download"))
393 (base32 "1lmj0dib3mjp84jhxc5ddvydkzzhb0gfrdh3ikcidjlcb378ghxd"))))
394 (build-system gnu-build-system)
396 `(("autoconf" ,autoconf)
397 ("automake" ,automake)
399 ("pkg-config" ,pkg-config)))
400 (synopsis "Freeware Advanced Audio Coder")
401 (description "FAAC is an MPEG-4 and MPEG-2 AAC encoder.")
402 (home-page "https://www.audiocoding.com/faac.html")
405 ;; ISO MPEG-4 reference code.
410 (define-public libtimidity
418 (string-append "https://sourceforge.net/projects/" name "/files/"
419 name "/" version "/" name "-" version ".tar.gz"))
421 (base32 "0sif6lxa058b1mg19zwjm8rl2sg8cg0443k4dgi65clz0jy7qi16"))))
422 (build-system gnu-build-system)
424 `(#:tests? #f)) ; XXX: LibTiMidity could not be initialised
426 `(("pkg-config" ,pkg-config)))
429 (synopsis "MIDI to WAVE converter library")
430 (description "LibTiMidity is a MIDI to WAVE converter library that uses
431 Gravis Ultrasound-compatible patch files to generate digital audio data from
432 General MIDI files.")
433 (home-page "http://libtimidity.sourceforge.net/")
435 ;; This project is dual-licensed.
436 ;; Either of the following licenses can be exercised.
439 license:artistic2.0))))
441 (define-public vo-amrwbenc
449 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
450 name "/" name "-" version ".tar.gz"))
452 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
453 (build-system gnu-build-system)
454 (synopsis "Adaptive Multi Rate Codec")
455 (description "VO-AMR is a library of VisualOn implementation of
456 Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
457 (home-page "https://sourceforge.net/projects/opencore-amr/")
458 (license license:asl2.0)))
460 (define-public opencore-amr
462 (name "opencore-amr")
468 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
469 name "/" name "-" version ".tar.gz"))
471 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
472 (build-system gnu-build-system)
473 (synopsis "Adaptive Multi Rate Codec")
474 (description "OpenCore-AMR is a library of OpenCORE Framework
475 implementation of Adaptive Multi Rate Narrowband and Wideband
476 (AMR-NB and AMR-WB) speech codec.")
477 (home-page "https://sourceforge.net/projects/opencore-amr/")
478 (license license:asl2.0)))
480 (define-public alsa-modular-synth
482 (name "alsa-modular-synth")
486 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
487 "/" version "/ams-" version ".tar.bz2"))
490 "056dn6b9c5nsw2jdww7z1kxrjqqfvxjzxhsd5x9gi4wkwyiv21nz"))))
491 (build-system gnu-build-system)
493 `(("alsa-lib" ,alsa-lib)
494 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
495 ;; license incompatibility.
496 ("clalsadrv" ,clalsadrv)
501 ("qtbase" ,qtbase-5)))
503 `(("pkg-config" ,pkg-config)
504 ("qttools" ,qttools)))
505 (home-page "http://alsamodular.sourceforge.net/")
506 (synopsis "Realtime modular synthesizer and effect processor")
508 "AlsaModularSynth is a digital implementation of a classical analog
509 modular synthesizer system. It uses virtual control voltages to control the
510 parameters of the modules. The control voltages which control the frequency
511 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
512 Filter) modules follow the convention of 1V / Octave.")
513 (license license:gpl2)))
522 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
525 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
526 (build-system waf-build-system)
528 `(#:tests? #f ; no check target
531 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
535 "--enable-samplerate"
540 ("libsndfile" ,libsndfile)
541 ("libsamplerate" ,libsamplerate)
543 ("ffmpeg" ,ffmpeg))) ; for libavcodec
545 `(("pkg-config" ,pkg-config)))
546 (home-page "https://aubio.org/")
547 (synopsis "Library for audio labelling")
549 "aubio is a tool designed for the extraction of annotations from audio
550 signals. Its features include segmenting a sound file before each of its
551 attacks, performing pitch detection, tapping the beat and producing MIDI
552 streams from live audio.")
553 (license license:gpl3+)))
555 (define (ardour-rpath-phase major-version)
556 `(lambda* (#:key outputs #:allow-other-keys)
557 (let ((libdir (string-append (assoc-ref outputs "out")
558 "/lib/ardour" ,major-version)))
559 (substitute* "wscript"
560 (("linker_flags = \\[\\]")
561 (string-append "linker_flags = [\""
564 libdir "/backends" ":"
565 libdir "/engines" ":"
566 libdir "/panners" ":"
567 libdir "/surfaces" ":"
568 libdir "/vamp" "\"]"))))
571 (define-public ardour
578 (url "git://git.ardour.org/ardour/ardour.git")
581 ;; Ardour expects this file to exist at build time. The revision
583 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
584 `(call-with-output-file
585 "libs/ardour/revision.cc"
587 (format port ,(string-append "#include \"ardour/revision.h\"
588 namespace ARDOUR { const char* revision = \"" version "\" ; const char* date = \"\"; }"))
592 "0k5rxh8b3d8si3lj01gfqj0pmd448d8sj4asnb205mwhwbfgn0cp"))
593 (file-name (string-append name "-" version))))
594 (build-system waf-build-system)
596 `(#:configure-flags '("--cxx11" ; required by gtkmm
598 "--no-phone-home" ; don't contact ardour.org
599 "--freedesktop" ; build .desktop file
600 "--test") ; build unit tests
602 (modify-phases %standard-phases
603 (add-after 'unpack 'set-rpath-in-LDFLAGS
604 ,(ardour-rpath-phase (version-major version)))
605 (add-after 'install 'install-freedesktop-files
606 (lambda* (#:key outputs #:allow-other-keys)
607 (let* ((out (assoc-ref outputs "out"))
608 (share (string-append out "/share"))
609 (ver ,(version-major version)))
612 (let ((dir (string-append share "/icons/hicolor/"
613 size "x" size "/apps")))
616 (string-append "gtk2_ardour/resources/Ardour-icon_"
618 (string-append dir "/ardour" ver ".png"))))
619 '("16" "22" "32" "48" "256"))
620 (install-file (string-append "build/gtk2_ardour/ardour"
622 (string-append share "/applications/"))
623 (install-file (string-append "build/gtk2_ardour/ardour"
625 (string-append share "/appdata/")))
627 #:test-target "test"))
629 `(("alsa-lib" ,alsa-lib)
643 ("libarchive" ,libarchive)
644 ("libart-lgpl" ,libart-lgpl)
645 ("libgnomecanvasmm" ,libgnomecanvasmm)
648 ("libsamplerate" ,libsamplerate)
649 ("libsndfile" ,libsndfile)
651 ("libvorbis" ,libvorbis)
652 ("libwebsockets" ,libwebsockets)
657 ("openssl" ,openssl) ; Required by libwebsockets.
659 ("python-rdflib" ,python-rdflib)
660 ("pulseaudio" ,pulseaudio)
661 ("readline" ,readline)
663 ("rubberband" ,rubberband)
666 ("soundtouch" ,soundtouch)
672 `(("cppunit" ,cppunit)
673 ("gettext" ,gettext-minimal)
676 ("pkg-config" ,pkg-config)))
677 (home-page "https://ardour.org")
678 (synopsis "Digital audio workstation")
680 "Ardour is a multi-channel digital audio workstation, allowing users to
681 record, edit, mix and master audio and MIDI projects. It is targeted at audio
682 engineers, musicians, soundtrack editors and composers.")
683 (license license:gpl2+)))
685 (define-public audacity
693 (url "https://github.com/audacity/audacity")
694 (commit (string-append "Audacity-" version))))
695 (file-name (git-file-name name version))
698 "0lklcvqkxrr2gkb9gh3422iadzl2rv9v0a8s76rwq43lj2im7546"))
699 (patches (search-patches "audacity-build-with-system-portaudio.patch"
700 "audacity-add-include.patch"))
701 (modules '((guix build utils)))
703 ;; Remove bundled libraries.
707 (delete-file-recursively (string-append "lib-src/" dir)))
708 '("expat" "ffmpeg" "lame" "libflac" "libid3tag" "libmad" "libogg"
709 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
710 "portmidi" "soundtouch" "twolame"
711 ;; FIXME: these libraries have not been packaged yet:
719 ;; FIXME: we have this library, but it differs in that the Slide
720 ;; class does not have a member "getInverseStretchedTime".
724 (build-system cmake-build-system)
726 `(("wxwidgets" ,wxwidgets)
728 ("alsa-lib" ,alsa-lib)
734 ("libid3tag" ,libid3tag)
736 ;;("libsbsms" ,libsbsms) ;bundled version is modified
737 ("libsndfile" ,libsndfile)
738 ("soundtouch" ,soundtouch)
739 ("soxr" ,soxr) ;replaces libsamplerate
742 ("libvorbis" ,libvorbis)
744 ("lilv" ,lilv) ;for lv2
745 ("suil" ,suil) ;for lv2
746 ("portmidi" ,portmidi)))
748 `(("autoconf" ,autoconf)
749 ("automake" ,automake)
750 ("gettext" ,gettext-minimal) ;for msgfmt
752 ("pkg-config" ,pkg-config)
758 ;; Loading FFmpeg dynamically is problematic.
759 "-Daudacity_use_ffmpeg=linked"
760 "-Daudacity_use_lame=system"
761 "-Daudacity_use_portsmf=system")
762 #:imported-modules ((guix build glib-or-gtk-build-system)
763 ,@%cmake-build-system-modules)
766 (guix build cmake-build-system)
767 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:))
769 (modify-phases %standard-phases
770 (add-after 'unpack 'comment-out-revision-ident
772 (substitute* "src/AboutDialog.cpp"
773 (("(.*RevisionIdent\\.h.*)" include-line)
774 (string-append "// " include-line)))))
775 (add-after 'unpack 'use-upstream-headers
776 (lambda* (#:key inputs #:allow-other-keys)
777 (substitute* '("src/NoteTrack.cpp"
780 "src/AudioIOBase.cpp")
781 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
782 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
783 (substitute* "src/prefs/MidiIOPrefs.cpp"
784 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))))
785 (add-after 'wrap-program 'glib-or-gtk-wrap
786 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))
787 ;; The test suite is not "well exercised" according to the developers,
788 ;; and fails with various errors. See
789 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
791 (home-page "https://www.audacityteam.org/")
792 (synopsis "Software for recording and editing sounds")
794 "Audacity is a multi-track audio editor designed for recording, playing
795 and editing digital audio. It features digital effects and spectrum analysis
797 (license license:gpl2+)))
799 (define-public audiofile
807 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
809 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
811 ;; CVE references according to nixpgs
813 "audiofile-fix-datatypes-in-tests.patch"
814 "audiofile-fix-sign-conversion.patch"
815 "audiofile-hurd.patch"
816 "audiofile-CVE-2015-7747.patch"
818 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
819 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
821 "audiofile-check-number-of-coefficients.patch"
823 "audiofile-overflow-in-MSADPCM.patch"
824 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
825 "audiofile-multiply-overflow.patch"
826 "audiofile-function-signature.patch"
828 "audiofile-Fail-on-error-in-parseFormat.patch"
830 "audiofile-division-by-zero.patch"
831 "audiofile-CVE-2018-13440.patch"
832 "audiofile-CVE-2018-17095.patch"))))
833 (properties `((lint-hidden-cve . ("CVE-2017-6829"
835 "CVE-2017-6827" "CVE-2017-6828"
836 "CVE-2017-6832" "CVE-2017-6835"
841 "CVE-2017-6830" "CVE-2017-6834"
842 "CVE-2017-6836" "CVE-2017-6838"
844 "CVE-2017-6831" "CVE-2017-6833"))))
845 (build-system gnu-build-system)
847 `(("alsa-lib" ,alsa-lib)))
848 (home-page "https://audiofile.68k.org/")
849 (synopsis "Library to handle various audio file formats")
850 (description "This is an open-source version of SGI's audiofile library.
851 It provides a uniform programming interface for processing of audio data to
852 and from audio files of many common formats.
854 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
855 .snd/.au, BICS, and raw data. Supported compression formats are currently
856 G.711 mu-law and A-law.")
857 (license license:lgpl2.1+)))
859 (define-public autotalent
865 (uri (string-append "http://tombaran.info/autotalent-"
869 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
870 (build-system gnu-build-system)
872 `(#:tests? #f ; no check target
874 (modify-phases %standard-phases
875 ;; no configure script
877 (add-before 'install 'prepare-target-directory
878 (lambda* (#:key outputs #:allow-other-keys)
879 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
881 (add-after 'unpack 'override-target-directory
882 (lambda* (#:key outputs #:allow-other-keys)
883 (substitute* "Makefile"
884 (("/usr/lib64/ladspa")
885 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
888 `(("ladspa" ,ladspa)))
889 (home-page "http://tombaran.info/autotalent.html")
890 (synopsis "Pitch-correction LADSPA audio plugin")
892 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
893 controls are allowable notes, strength of correction, LFO for vibrato and
895 ;; All code except the FFT routine is licensed under GPLv2+.
896 ;; The FFT routine is under BSD-3.
897 (license license:gpl2+)))
905 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
910 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
911 (patches (search-patches "azr3.patch"))))
912 (build-system gnu-build-system)
914 `(#:tests? #f ; no check target
917 (string-append "prefix=" %output)
918 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
920 (modify-phases %standard-phases
921 (add-before 'install 'fix-timestamp
923 (let ((early-1980 315619200)) ; 1980-01-02 UTC
924 (utime "azr3.1" early-1980 early-1980))
932 `(("pkg-config" ,pkg-config)))
933 (home-page "http://ll-plugins.nongnu.org/azr3/")
934 (synopsis "Tonewheel organ synthesizer")
936 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
937 with drawbars, distortion and rotating speakers. The organ has three
938 sections, two polyphonic sections with nine drawbars each and one monophonic
939 bass section with five drawbars. A standalone JACK application and LV2
940 plugins are provided.")
941 (license license:gpl2)))
949 (uri (string-append "https://calf-studio-gear.org/files/calf-"
953 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
954 (build-system gnu-build-system)
956 `(("fluidsynth" ,fluidsynth)
967 `(("pkg-config" ,pkg-config)))
969 (list (search-path-specification
970 (variable "LV2_PATH")
971 (files '("lib/lv2")))))
972 (home-page "http://calf.sourceforge.net/")
973 (synopsis "Audio plug-in pack for LV2 and JACK environments")
975 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
976 The suite contains lots of effects (delay, modulation, signal processing,
977 filters, equalizers, dynamics, distortion and mastering effects),
978 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
979 tools (analyzer, mono/stereo tools, crossovers).")
980 ;; calfjackhost is released under GPLv2+
981 ;; The plugins are released under LGPLv2.1+
982 (license (list license:lgpl2.1+ license:gpl2+))))
984 (define-public caps-plugins-lv2
986 (name "caps-plugins-lv2")
990 ;; The Github project hasn't tagged a release.
993 (url "https://github.com/moddevices/caps-lv2.git")
994 (commit "5d52a0c6e8863c058c2aab2dea9f901a90d96eb9")))
995 (file-name (git-file-name name version))
998 "0hdl7n3ra5gqgwkdfqkw8dj9gb1cgb76bn1v91w06d2w4lj9s8xa"))))
999 (build-system gnu-build-system)
1001 `(#:tests? #f ; no check target
1003 (modify-phases %standard-phases
1004 ;; no configure script
1006 (add-after 'unpack 'override-target-directory
1007 (lambda* (#:key outputs #:allow-other-keys)
1008 (substitute* (find-files "plugins" "Makefile")
1009 (("/usr/local")(assoc-ref outputs "out")))
1013 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
1014 (home-page "https://github.com/moddevices/caps-lv2")
1015 (synopsis "LV2 port of the CAPS audio plugin collection")
1017 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
1018 guitar amplification and a small range of classic effects, signal processors and
1019 generators of mostly elementary and occasionally exotic nature.")
1020 (license license:gpl3+)))
1022 (define-public infamous-plugins
1024 (name "infamous-plugins")
1029 (url "https://github.com/ssj71/infamousPlugins")
1030 (commit (string-append "v" version))))
1031 (file-name (git-file-name name version))
1034 "1r72agk5nxf5k0mghcc2j90z43j5d9i7rqjmf49jfyqnd443isip"))))
1035 (build-system cmake-build-system)
1037 `(#:tests? #f ; there are no tests
1039 (modify-phases %standard-phases
1040 (add-after 'unpack 'remove-compiler-flags
1042 (substitute* (find-files "." "CMakeLists.txt")
1043 (("-msse2 -mfpmath=sse") ""))
1045 (add-after 'unpack 'fix-build-with-newer-lv2
1047 ;; https://github.com/ssj71/infamousPlugins/commit/4c7275b1fa8ea3296446421cbd29ec2df66588c0
1048 (substitute* (find-files "src" ".*\\.cxx")
1049 (("_LV2UI_Descriptor") "LV2UI_Descriptor"))
1056 ("zita-resampler" ,zita-resampler)))
1058 `(("pkg-config" ,pkg-config)))
1059 (home-page "https://ssj71.github.io/infamousPlugins")
1060 (synopsis "LV2 plugins for live use")
1062 "The infamous plugins are a collection of LV2 audio plugins for live
1063 performances. The plugins include a cellular automaton synthesizer, an
1064 envelope follower, distortion effects, tape effects and more.")
1065 (license license:gpl2+)))
1067 (define-public snapcast
1074 (url "https://github.com/badaix/snapcast")
1075 (commit (string-append "v" version))))
1076 (file-name (git-file-name name version))
1079 "13yz8alplnqwkcns3mcli01qbyy6l3h62xx0v71ygcrz371l4g9g"))))
1080 (build-system cmake-build-system)
1082 '(#:tests? #f)) ; no included tests
1085 ("libvorbis" ,libvorbis)
1087 ("alsa-lib" ,alsa-lib)
1089 ("pulseaudio" ,pulseaudio)
1093 `(("pkg-config" ,pkg-config)))
1094 (home-page "https://github.com/badaix/snapcast")
1095 (synopsis "Synchronous multiroom audio player")
1097 "Snapcast is a multi-room client-server audio player. Clients are time
1098 synchronized with the server to play synced audio.")
1099 (license license:gpl3+)))
1101 (define-public swh-plugins
1103 (name "swh-plugins")
1108 (url "https://github.com/swh/ladspa")
1109 (commit (string-append "v" version))))
1110 (file-name (git-file-name name version))
1113 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
1115 `(("autoconf" ,autoconf)
1116 ("automake" ,automake)
1117 ("gettext" ,gettext-minimal) ;for autopoint
1118 ("libtool" ,libtool)
1120 ("pkg-config" ,pkg-config)
1124 ("perl-xml-parser" ,perl-xml-parser)))
1125 (build-system gnu-build-system)
1126 (home-page "http://plugin.org.uk")
1127 (synopsis "The SWH Plugins package for the LADSPA plugin system")
1128 (description "This package provides Steve Harris's LADSPA plugins.")
1129 (license license:gpl2+)))
1131 (define-public swh-plugins-lv2
1133 (name "swh-plugins-lv2")
1138 (url "https://github.com/swh/lv2")
1139 (commit (string-append "v" version))))
1140 (file-name (git-file-name name version))
1143 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
1144 (build-system gnu-build-system)
1146 `(#:tests? #f ; no check target
1147 #:make-flags (list "CC=gcc"
1148 (string-append "PREFIX="
1149 (assoc-ref %outputs "out")))
1151 (modify-phases %standard-phases
1152 ;; no configure script
1154 (add-after 'unpack 'patch-makefile-and-enter-directory
1155 ;; The default install target doesn't install, but the
1156 ;; "install-system" target does.
1158 (substitute* "Makefile"
1159 (("install:") "install: install-system"))
1165 `(("libxslt" ,libxslt)
1166 ("pkg-config" ,pkg-config)))
1167 (home-page "http://plugin.org.uk")
1168 (synopsis "SWH plugins in LV2 format")
1170 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
1171 classes include: dynamics (compressor, limiter), time (delay, chorus,
1172 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
1173 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
1174 (license license:gpl3+)))
1179 (version "1.0-beta-10May2006")
1182 (uri (string-append "mirror://sourceforge/taopm/Tao/"
1184 "tao-" version ".tar.gz"))
1187 "156py3g6mmglldfd0j76bn7n242hdwf49diaprjpj7crp8vgf2pz"))
1189 (search-patches "tao-add-missing-headers.patch"
1190 "tao-fix-parser-types.patch"))
1191 (modules '((guix build utils)))
1194 (substitute* "configure"
1195 (("SHELL=/bin/sh") ""))
1197 (build-system gnu-build-system)
1199 '(#:configure-flags '("TAO_RELEASE=-beta")
1201 (modify-phases %standard-phases
1202 (add-after 'unpack 'fix-references
1203 (lambda* (#:key outputs #:allow-other-keys)
1204 (substitute* "user-scripts/tao.in"
1206 (string-append (assoc-ref outputs "out") "/bin/taoparse"))
1207 (("grep") (which "grep"))
1208 (("sed -f \\$distdir/user-scripts/")
1209 (string-append (which "sed") " -f $distdir/"))
1211 (string-append "distdir="
1212 (assoc-ref outputs "out") "/share/tao")))
1214 (add-after 'install 'install-extra-files
1215 (lambda* (#:key outputs #:allow-other-keys)
1216 (let* ((out (assoc-ref outputs "out"))
1217 (share (string-append out "/share/tao/"))
1218 (inc (string-append out "/include/tao/")))
1221 (install-file "user-scripts/error.parse" share)
1222 (copy-recursively "examples" (string-append share "examples"))
1223 (for-each (lambda (file) (install-file file inc))
1224 (find-files "include" "\\.h"))
1227 `(("audiofile" ,audiofile)
1236 (home-page "http://taopm.sourceforge.net/")
1237 (synopsis "Sound Synthesis with Physical Models")
1238 (description "Tao is a software package for sound synthesis using physical
1239 models. It provides a virtual acoustic material constructed from masses and
1240 springs which can be used as the basis for building quite complex virtual
1241 musical instruments. Tao comes with a synthesis language for creating and
1242 playing instruments and a C++ API for those who would like to use it as an
1244 (license license:gpl2+)))
1246 (define-public csound
1254 (url "https://github.com/csound/csound")
1256 (file-name (git-file-name name version))
1258 (base32 "1sr9knfhbm2m0wpkjq2l5n471vnl51wy4p6j4m95zqybimzb4s2j"))))
1259 (build-system cmake-build-system)
1263 ("gettext" ,gettext-minimal)
1266 `(("alsa-lib" ,alsa-lib)
1271 ("libsndfile" ,libsndfile)
1272 ("pulseaudio" ,pulseaudio)))
1273 (home-page "https://csound.com/")
1274 (synopsis "Sound and music computing system")
1276 "Csound is a user-programmable and user-extensible sound processing
1277 language and software synthesizer.")
1278 (license license:lgpl2.1+)))
1280 (define-public midicomp
1281 ;; The latest tagged release is 9 years old and there have been
1282 ;; unreleased fixes, so we take the last commit.
1283 (let ((commit "70f76963cb0cdb3cbe03ec6e7246b1fb885d3c68")
1287 (version (git-version "0.0.8" revision commit))
1292 (url "https://github.com/markc/midicomp")
1294 (file-name (git-file-name name version))
1297 "12zh247c6v88ssy4l8v7yirh4bl2jcc1ch7f4gdry79a82kai1gf"))))
1298 (build-system cmake-build-system)
1300 `(#:tests? #f)) ; no "check" target
1301 (synopsis "Convert SMF MIDI files to and from plain text")
1303 "midicomp can manipulate SMF (Standard MIDI File) files. It can both
1304 read and write SMF files in 0 or format 1 and also read and write its own
1305 plain text format. This means a SMF file can be turned into easily
1306 parseable text, edited with any text editor or filtered through any script
1307 language, and recompiled back into a binary SMF file.")
1308 (home-page "https://github.com/markc/midicomp")
1309 (license license:agpl3))))
1311 (define-public clalsadrv
1318 "http://kokkinizita.linuxaudio.org"
1319 "/linuxaudio/downloads/clalsadrv-"
1320 version ".tar.bz2"))
1323 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
1324 (build-system gnu-build-system)
1326 `(#:tests? #f ; no "check" target
1327 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1329 (modify-phases %standard-phases
1330 (add-after 'unpack 'patch-makefile-and-enter-directory
1332 (substitute* "libs/Makefile"
1333 (("/sbin/ldconfig") "true")
1334 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1337 (add-after 'install 'install-symlink
1339 (symlink "libclalsadrv.so"
1340 (string-append (assoc-ref %outputs "out")
1341 "/lib/libclalsadrv.so.2"))
1343 ;; no configure script
1344 (delete 'configure))))
1346 `(("alsa-lib" ,alsa-lib)
1348 (home-page "https://kokkinizita.linuxaudio.org")
1349 (synopsis "C++ wrapper around the ALSA API")
1351 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
1353 (license license:gpl2+)))
1355 (define-public amb-plugins
1357 (name "amb-plugins")
1362 "http://kokkinizita.linuxaudio.org"
1363 "/linuxaudio/downloads/AMB-plugins-"
1364 version ".tar.bz2"))
1367 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
1368 (build-system gnu-build-system)
1370 `(#:tests? #f ; no "check" target
1372 (modify-phases %standard-phases
1373 ;; no configure script
1375 (add-before 'install 'prepare-target-directory
1376 (lambda* (#:key outputs #:allow-other-keys)
1377 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1379 (add-after 'unpack 'override-target-directory-and-tool-paths
1380 (lambda* (#:key outputs #:allow-other-keys)
1381 (substitute* "Makefile"
1382 (("/usr/lib/ladspa")
1383 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1384 (("/usr/bin/install") (which "install"))
1387 (home-page "https://kokkinizita.linuxaudio.org")
1388 (synopsis "LADSPA ambisonics plugins")
1390 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
1391 used within Ardour. Features include: mono and stereo to B-format panning,
1392 horizontal rotator, square, hexagon and cube decoders.")
1393 (license license:gpl2+)))
1395 (define-public mcp-plugins
1397 (name "mcp-plugins")
1402 "http://kokkinizita.linuxaudio.org"
1403 "/linuxaudio/downloads/MCP-plugins-"
1404 version ".tar.bz2"))
1407 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
1408 (build-system gnu-build-system)
1410 `(#:tests? #f ; no "check" target
1412 (modify-phases %standard-phases
1413 ;; no configure script
1415 (add-before 'install 'prepare-target-directory
1416 (lambda* (#:key outputs #:allow-other-keys)
1417 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1419 (add-after 'unpack 'override-target-directory
1420 (lambda* (#:key outputs #:allow-other-keys)
1421 (substitute* "Makefile"
1422 (("/usr") (assoc-ref outputs "out")))
1424 (home-page "https://kokkinizita.linuxaudio.org")
1425 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
1427 "This package provides various LADSPA plugins. @code{cs_chorus} and
1428 @code{cs_phaser} provide chorus and phaser effects, respectively;
1429 @code{mvclpf24} provides four implementations of the low-pass filter used in
1430 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
1431 high-pass filter by Robert Moog. The filters attempt to accurately emulate
1432 the non-linear circuit elements of their original analog counterparts.")
1433 (license license:gpl2+)))
1435 (define-public rev-plugins
1437 (name "rev-plugins")
1442 "http://kokkinizita.linuxaudio.org"
1443 "/linuxaudio/downloads/REV-plugins-"
1444 version ".tar.bz2"))
1447 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
1448 (build-system gnu-build-system)
1450 `(#:tests? #f ; no "check" target
1452 (modify-phases %standard-phases
1453 ;; no configure script
1455 (add-before 'install 'prepare-target-directory
1456 (lambda* (#:key outputs #:allow-other-keys)
1457 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1459 (add-after 'unpack 'override-target-directory
1460 (lambda* (#:key outputs #:allow-other-keys)
1461 (substitute* "Makefile"
1462 (("/usr") (assoc-ref outputs "out")))
1464 (home-page "https://kokkinizita.linuxaudio.org")
1465 (synopsis "LADSPA reverb plugin")
1467 "This package provides a stereo reverb LADSPA plugin based on the
1468 well-known greverb.")
1469 (license license:gpl2+)))
1471 (define-public fil-plugins
1473 (name "fil-plugins")
1478 "http://kokkinizita.linuxaudio.org"
1479 "/linuxaudio/downloads/FIL-plugins-"
1480 version ".tar.bz2"))
1483 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1484 (build-system gnu-build-system)
1486 `(#:tests? #f ; no "check" target
1488 (modify-phases %standard-phases
1489 ;; no configure script
1491 (add-before 'install 'prepare-target-directory
1492 (lambda* (#:key outputs #:allow-other-keys)
1493 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1495 (add-after 'unpack 'override-target-directory
1496 (lambda* (#:key outputs #:allow-other-keys)
1497 (substitute* "Makefile"
1498 (("/usr") (assoc-ref outputs "out")))
1500 (home-page "https://kokkinizita.linuxaudio.org")
1501 (synopsis "LADSPA four-band parametric equalizer plugin")
1503 "This package provides a LADSPA plugin for a four-band parametric
1504 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1505 gain controls. There is also a global bypass switch and gain control.
1507 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1508 lattice filter, which is stable even while parameters are being changed.
1510 All switches and controls are internally smoothed, so they can be used @code{live}
1511 without any clicks or zipper noises. This makes this plugin suitable for use
1512 in systems that allow automation of plugin control ports, such as Ardour, or
1514 (license license:gpl2+)))
1516 (define-public ste-plugins
1518 (name "ste-plugins")
1523 "http://kokkinizita.linuxaudio.org"
1524 "/linuxaudio/downloads/STE-plugins-"
1525 version ".tar.bz2"))
1528 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1529 (build-system gnu-build-system)
1531 `(#:tests? #f ; no "check" target
1533 (modify-phases %standard-phases
1534 ;; no configure script
1536 (add-before 'install 'prepare-target-directory
1537 (lambda* (#:key outputs #:allow-other-keys)
1538 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1540 (add-after 'unpack 'override-target-directory
1541 (lambda* (#:key outputs #:allow-other-keys)
1542 (substitute* "Makefile"
1543 (("/usr") (assoc-ref outputs "out")))
1545 (home-page "https://kokkinizita.linuxaudio.org")
1546 (synopsis "LADSPA stereo width plugin")
1548 "This package provides a LADSPA plugin to manipulate the stereo width of
1550 (license license:gpl2+)))
1552 (define-public vco-plugins
1554 (name "vco-plugins")
1559 "http://kokkinizita.linuxaudio.org"
1560 "/linuxaudio/downloads/VCO-plugins-"
1561 version ".tar.bz2"))
1564 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1565 (build-system gnu-build-system)
1567 `(#:tests? #f ; no "check" target
1569 (modify-phases %standard-phases
1570 ;; no configure script
1572 (add-before 'install 'prepare-target-directory
1573 (lambda* (#:key outputs #:allow-other-keys)
1574 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1576 (add-after 'unpack 'override-target-directory
1577 (lambda* (#:key outputs #:allow-other-keys)
1578 (substitute* "Makefile"
1579 (("/usr") (assoc-ref outputs "out"))
1580 (("/bin/cp") (which "cp")))
1582 (home-page "https://kokkinizita.linuxaudio.org")
1583 (synopsis "LADSPA plugin for synthesizer oscillators")
1585 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1588 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1589 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1590 @item Rec-VCO, a square / rectangle oscillator
1593 All oscillators are low-pass filtered to provide waveforms similar to the
1594 output of analog synthesizers such as the Moog Voyager.")
1595 (license license:gpl2+)))
1597 (define-public wah-plugins
1599 (name "wah-plugins")
1604 "http://kokkinizita.linuxaudio.org"
1605 "/linuxaudio/downloads/WAH-plugins-"
1606 version ".tar.bz2"))
1609 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1610 (build-system gnu-build-system)
1612 `(#:tests? #f ; no "check" target
1614 (modify-phases %standard-phases
1615 ;; no configure script
1617 (add-before 'install 'prepare-target-directory
1618 (lambda* (#:key outputs #:allow-other-keys)
1619 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1621 (add-after 'unpack 'override-target-directory
1622 (lambda* (#:key outputs #:allow-other-keys)
1623 (substitute* "Makefile"
1624 (("/usr") (assoc-ref outputs "out")))
1626 (home-page "https://kokkinizita.linuxaudio.org")
1627 (synopsis "LADSPA Autowah effect plugin")
1629 "This package provides a LADSPA plugin for a Wah effect with envelope
1631 (license license:gpl2+)))
1633 (define-public g2reverb
1640 "http://kokkinizita.linuxaudio.org"
1641 "/linuxaudio/downloads/g2reverb-"
1642 version ".tar.bz2"))
1645 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1646 (build-system gnu-build-system)
1648 `(#:tests? #f ; no "check" target
1650 (modify-phases %standard-phases
1651 ;; no configure script
1653 (add-before 'install 'prepare-target-directory
1654 (lambda* (#:key outputs #:allow-other-keys)
1655 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1657 (add-after 'unpack 'override-target-directory
1658 (lambda* (#:key outputs #:allow-other-keys)
1659 (substitute* "Makefile"
1660 (("/usr") (assoc-ref outputs "out")))
1662 (home-page "https://kokkinizita.linuxaudio.org")
1663 (synopsis "LADSPA stereo reverb plugin")
1665 "This package provides a LADSPA plugin for a stereo reverb effect.")
1666 (license license:gpl2+)))
1668 (define-public fluidsynth
1675 (url "https://github.com/FluidSynth/fluidsynth")
1676 (commit (string-append "v" version))))
1677 (file-name (git-file-name name version))
1680 "0r944ndn138ak9s3ivgd1wgkwkh6zp7jjnxd30hryczc6kbhkpmr"))))
1681 (build-system cmake-build-system)
1683 '(#:tests? #f ; no check target
1685 (modify-phases %standard-phases
1686 (add-after 'unpack 'fix-libdir
1688 ;; Install libraries to /lib, not /lib64.
1689 (substitute* "CMakeLists.txt"
1690 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1694 `(("libsndfile" ,libsndfile)
1695 ("alsa-lib" ,alsa-lib)
1699 ("readline" ,readline)
1702 `(("pkg-config" ,pkg-config)))
1703 (home-page "https://www.fluidsynth.org/")
1704 (synopsis "SoundFont synthesizer")
1706 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1707 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1708 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1709 also play midifiles using a Soundfont.")
1710 (license license:lgpl2.1+)))
1712 ;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1714 (define-public fluidsynth-1
1716 (inherit fluidsynth)
1719 (inherit (package-source fluidsynth))
1721 (url "https://github.com/FluidSynth/fluidsynth")
1722 (commit (string-append "v" version))))
1723 (file-name (git-file-name "fluidsynth" version))
1726 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1728 (define-public faad2
1736 (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1737 (version-major+minor version) ".0/"
1738 "faad2-" version ".tar.gz"))
1740 (base32 "0va284hndhn0ynm4lyn219qw4y8wa4agfkqgwlaji7bqp6nkyp4q"))))
1741 (build-system gnu-build-system)
1742 (home-page "https://www.audiocoding.com/faad2.html")
1743 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1745 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR, -PS, and DAB+.")
1746 (license license:gpl2+)))
1748 (define-public faust
1755 (url "https://github.com/grame-cncm/faust")
1756 (commit (string-append "v"
1757 (string-map (lambda (c)
1758 (if (char=? c #\.) #\- c))
1760 (file-name (string-append "faust-" version "-checkout"))
1763 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1764 (build-system gnu-build-system)
1766 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1769 (modify-phases %standard-phases
1770 ;; no "configure" script
1772 ;; Files appear under $out/share/faust that are read-only. The
1773 ;; install phase tries to overwrite them and fails, so we change
1774 ;; the permissions first.
1775 (add-before 'install 'fix-permissions
1777 (for-each (lambda (file)
1779 (find-files "architecture/max-msp" ".*"))
1782 `(("unzip" ,unzip)))
1783 (home-page "https://faust.grame.fr/")
1784 (synopsis "Signal processing language")
1786 "Faust is a programming language for realtime audio signal processing.")
1787 (license license:gpl2+)))
1789 (define-public faust-2
1795 (uri (string-append "https://github.com/grame-cncm/faust/"
1796 "releases/download/" version
1797 "/faust-" version ".tar.gz"))
1800 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1801 (build-system gnu-build-system)
1803 (substitute-keyword-arguments (package-arguments faust)
1804 ((#:make-flags flags)
1805 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1808 `(("llvm" ,llvm-3.8)
1811 ("ctags" ,emacs-minimal) ; for ctags
1812 ("pkg-config" ,pkg-config)))
1814 `(("libsndfile" ,libsndfile)
1815 ("libmicrohttpd" ,libmicrohttpd)
1816 ("ncurses" ,ncurses)
1817 ("openssl" ,openssl)
1820 (define-public freepats
1823 (version "20060219")
1826 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1827 version ".tar.bz2"))
1830 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1831 (build-system trivial-build-system)
1833 `(#:modules ((guix build utils))
1835 (use-modules (guix build utils))
1836 (let ((out (string-append %output "/share/freepats")))
1837 (setenv "PATH" (string-append
1838 (assoc-ref %build-inputs "bzip2") "/bin:"
1839 (assoc-ref %build-inputs "tar") "/bin"))
1840 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
1842 ;; Use absolute pattern references
1843 (substitute* "freepats.cfg"
1844 (("Tone_000") (string-append out "/Tone_000"))
1845 (("Drum_000") (string-append out "/Drum_000")))
1847 (copy-recursively "." out)
1852 (home-page "http://freepats.zenvoid.org")
1853 (synopsis "GUS compatible patches for MIDI players")
1855 "FreePats is a project to create a free and open set of GUS compatible
1856 patches that can be used with softsynths such as Timidity and WildMidi.")
1857 ;; GPLv2+ with exception for compositions using these patches.
1858 (license license:gpl2+)))
1860 (define-public guitarix
1867 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1871 "0qsfbyrrpb3bbdyq68k28mjql7kglxh8nqcw9jvja28x6x9ik5a0"))))
1872 (build-system waf-build-system)
1874 `(#:tests? #f ; no "check" target
1877 ;; Add the output lib directory to the RUNPATH.
1878 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))))
1880 `(("libsndfile" ,libsndfile)
1893 ("zita-resampler" ,zita-resampler)
1894 ("zita-convolver" ,zita-convolver)))
1898 ("intltool" ,intltool)
1899 ("gettext" ,gettext-minimal)
1900 ("pkg-config" ,pkg-config)
1902 (native-search-paths
1903 (list (search-path-specification
1904 (variable "LV2_PATH")
1905 (files '("lib/lv2")))))
1906 (home-page "https://guitarix.org/")
1907 (synopsis "Virtual guitar amplifier")
1908 (description "Guitarix is a virtual guitar amplifier running JACK.
1909 Guitarix takes the signal from your guitar as a mono-signal from your sound
1910 card. The input is processed by a main amp and a rack-section. Both can be
1911 routed separately and deliver a processed stereo-signal via JACK. You may
1912 fill the rack with effects from more than 25 built-in modules including stuff
1913 from a simple noise gate to modulation effects like flanger, phaser or
1915 (license license:gpl2+)))
1917 (define-public guitarix-lv2
1918 (package (inherit guitarix)
1919 (name "guitarix-lv2")
1921 (substitute-keyword-arguments (package-arguments guitarix)
1922 ((#:configure-flags flags)
1923 `(cons "--no-standalone" ,flags))))))
1925 (define-public rakarrack
1931 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1932 "rakarrack-" version "/rakarrack-"
1933 version ".tar.bz2"))
1936 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1937 (modules '((guix build utils)))
1940 (substitute* '("src/process.C"
1942 (("#include <Fl/") "#include <FL/"))
1944 (build-system gnu-build-system)
1946 `(("alsa-utils" ,alsa-utils)
1949 ("libxext" ,libxext)
1950 ("libxfixes" ,libxfixes)
1952 ("libxrender" ,libxrender)
1954 ("fontconfig" ,fontconfig)
1955 ("freetype" ,freetype)
1957 ("alsa-lib" ,alsa-lib)
1958 ("libsndfile" ,libsndfile)
1959 ("libsamplerate" ,libsamplerate)
1961 (home-page "http://rakarrack.sourceforge.net/")
1962 (synopsis "Audio effects processor")
1964 "Rakarrack is a richly featured multi-effects processor emulating a
1965 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1966 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1967 distortion modules and many more. Most of the effects engine is built from
1968 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1969 user interface are optimized for guitar, but Rakarrack processes signals in
1970 stereo while it does not apply internal band-limiting filtering, and thus is
1971 well suited to all musical instruments and vocals.")
1972 ;; The code is explicitly licensed under the GPL version 2 only.
1973 (license license:gpl2)))
1982 (url "https://github.com/tomszilagyi/ir.lv2")
1984 (file-name (git-file-name name version))
1987 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
1988 (build-system gnu-build-system)
1990 `(#:tests? #f ; no tests
1992 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1993 (string-append "INSTDIR="
1994 (assoc-ref %outputs "out") "/lib/lv2"))
1996 (modify-phases %standard-phases
1997 (delete 'configure) ; no configure script
1998 ;; See https://github.com/tomszilagyi/ir.lv2/pull/20
1999 (add-after 'unpack 'fix-type
2001 (substitute* '("ir_gui.cc" "lv2_ui.h")
2002 (("_LV2UI_Descriptor") "LV2UI_Descriptor"))
2005 `(("libsndfile" ,libsndfile)
2006 ("libsamplerate" ,libsamplerate)
2010 ("zita-convolver" ,zita-convolver)))
2012 `(("pkg-config" ,pkg-config)))
2013 (native-search-paths
2014 (list (search-path-specification
2015 (variable "LV2_PATH")
2016 (files '("lib/lv2")))))
2017 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
2018 (synopsis "LV2 convolution reverb")
2020 "IR is a low-latency, real-time, high performance signal convolver
2021 especially for creating reverb effects. It supports impulse responses with 1,
2022 2 or 4 channels, in any soundfile format supported by libsndfile.")
2023 (license license:gpl2+)))
2025 (define-public jack-1
2032 ;; jackaudio.org/downloads/jack-audio-connection-kit-0.125.0.tar.gz
2033 ;; no longer exists (404). Use an unofficial mirror.
2034 (uri (string-append "https://crux.ster.zone/downloads/"
2035 "jack-audio-connection-kit/"
2036 "jack-audio-connection-kit-" version ".tar.gz"))
2038 (base32 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
2039 (build-system gnu-build-system)
2041 `(#:phases (modify-phases %standard-phases
2042 (add-after 'unpack 'patch-configure
2044 (substitute* "configure"
2045 ;; Install to <out/lib> regardless of platform.
2046 (("libnn=lib64") "libnn=lib"))
2049 `(("alsa-lib" ,alsa-lib)
2050 ("readline" ,readline)))
2051 ;; uuid.h is included in the JACK type headers
2052 ;; db.h is included in the libjack metadata headers
2054 `(("libuuid" ,util-linux "lib")
2057 `(("pkg-config" ,pkg-config)))
2058 (home-page "https://jackaudio.org/")
2059 (synopsis "JACK audio connection kit")
2061 "JACK is a low-latency audio server. It can connect a number of
2062 different applications to an audio device, as well as allowing them to share
2063 audio between themselves. JACK is different from other audio server efforts
2064 in that it has been designed from the ground up to be suitable for
2065 professional audio work. This means that it focuses on two key areas:
2066 synchronous execution of all clients, and low latency operation.")
2067 ;; Most files are licensed under the GPL. However, the libjack/ tree is
2068 ;; licensed under the LGPL in order to allow for proprietary usage.
2069 (license (list license:gpl2+ license:lgpl2.1+))))
2071 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
2072 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
2073 ;; program for users who might benefit from the D-BUS features.
2074 (define-public jack-2
2075 (package (inherit jack-1)
2080 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
2081 "download/v" version "/jack2-"
2083 (file-name (string-append name "-" version ".tar.gz"))
2086 "0z11hf55a6mi8h50hfz5wry9pshlwl4mzfwgslghdh40cwv342m2"))))
2087 (build-system waf-build-system)
2089 `(#:tests? #f ; no check target
2090 #:configure-flags '("--dbus"
2093 (modify-phases %standard-phases
2094 (add-before 'configure 'set-linkflags
2096 ;; Ensure -lstdc++ is the tail of LDFLAGS or the simdtests.cpp
2097 ;; will not link with undefined reference to symbol
2098 ;; '__gxx_personality_v0@@CXXABI_1.3'
2099 (setenv "LDFLAGS" "-lstdc++")
2100 ;; Add $libdir to the RUNPATH of all the binaries.
2101 (substitute* "wscript"
2102 ((".*CFLAGS.*-Wall.*" m)
2104 " conf.env.append_unique('LINKFLAGS',"
2105 "'-Wl,-rpath=" %output "/lib')\n")))
2107 (add-after 'install 'wrap-python-scripts
2108 (lambda* (#:key inputs outputs #:allow-other-keys)
2109 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
2110 (let* ((out (assoc-ref outputs "out"))
2111 (path (getenv "PYTHONPATH")))
2112 (wrap-program (string-append out "/bin/jack_control")
2113 `("PYTHONPATH" ":" prefix (,path))))
2116 `(("alsa-lib" ,alsa-lib)
2119 ("libsamplerate" ,libsamplerate)
2121 ("python-dbus" ,python-dbus)
2122 ("readline" ,readline)))
2124 `(("pkg-config" ,pkg-config)))
2125 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
2126 (license (list license:gpl2+ license:lgpl2.1+))))
2134 (uri (string-append "https://download.drobilla.net/jalv-"
2135 version ".tar.bz2"))
2138 "1wwfn7yzbs37s2rdlfjgks63svd5g14yyzd2gdl7h0z12qncwsy2"))))
2139 (build-system waf-build-system)
2141 `(#:tests? #f ; no check target
2142 #:python ,python-2))
2150 ("qtbase" ,qtbase-5)
2153 `(("pkg-config" ,pkg-config)))
2154 (home-page "https://drobilla.net/software/jalv/")
2155 (synopsis "Simple LV2 host for JACK")
2157 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
2158 plugins and exposes their ports as JACK ports, essentially making any LV2
2159 plugin function as a JACK application.")
2160 (license license:isc)))
2162 (define-public ladspa
2169 ;; Since the official link is dead,
2170 ;; we download the tarball from Debian or Internet Archive.
2171 (uri (list (string-append "http://http.debian.net"
2172 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
2173 version ".orig.tar.gz")
2174 (string-append "https://web.archive.org/web/20140717172251/"
2175 "http://www.ladspa.org/download/ladspa_sdk_"
2179 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
2180 (build-system gnu-build-system)
2182 `(#:tests? #f ; the "test" target is a listening test only
2184 (modify-phases %standard-phases
2186 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
2188 (let ((out (assoc-ref outputs "out")))
2189 (substitute* "makefile"
2190 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
2191 (("/usr/include/") (string-append out "/include/"))
2192 (("/usr/bin/") (string-append out "/bin/"))
2193 (("-mkdirhier") "mkdir -p")
2194 (("^CC.*") "CC = gcc\n")
2195 (("^CPP.*") "CPP = g++\n")))
2198 ;; Since the home page is gone, we provide a link to the archived version.
2200 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
2201 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
2203 "LADSPA is a standard that allows software audio processors and effects
2204 to be plugged into a wide range of audio synthesis and recording packages.")
2205 (license license:lgpl2.1+)))
2210 (version "0.6.0-rc2")
2213 ;; The tilde is not permitted in the builder name, but is used
2216 "mirror://savannah/lash/lash-"
2217 (string-join (string-split version #\-) "~")
2219 (file-name (string-append name "-" version ".tar.bz2"))
2222 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
2223 (build-system gnu-build-system)
2225 '(;; Glibc no longer includes Sun RPC support, so tell the build system
2226 ;; to use libtirpc instead.
2227 #:make-flags (list (string-append "CFLAGS=-I"
2228 (assoc-ref %build-inputs "libtirpc")
2229 "/include/tirpc -ltirpc"))
2231 (modify-phases %standard-phases
2232 ;; lashd embeds an ancient version of sigsegv so we just skip it
2233 (add-after 'unpack 'skip-lashd
2235 (substitute* '("Makefile.am" "Makefile.in")
2238 #:configure-flags '("--disable-static")))
2243 ("libtirpc" ,libtirpc)
2244 ("readline" ,readline)
2245 ("python" ,python-2)))
2246 ;; According to pkg-config, packages depending on lash also need to have
2247 ;; at least the following packages declared as inputs.
2249 `(("alsa-lib" ,alsa-lib)
2251 ("libxml2" ,libxml2)))
2253 `(("pkg-config" ,pkg-config)))
2254 (home-page "https://www.nongnu.org/lash/")
2255 (synopsis "Audio application session manager")
2257 "LASH is a session management system for audio applications. It allows
2258 you to save and restore audio sessions consisting of multiple interconneced
2259 applications, restoring program state (i.e. loaded patches) and the
2260 connections between them.")
2261 (license license:gpl2+)))
2263 (define-public libbs2b
2269 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
2270 "/libbs2b-" version ".tar.lzma"))
2273 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
2274 (build-system gnu-build-system)
2275 (native-inputs `(("pkg-config" ,pkg-config)))
2276 (inputs `(("libsndfile" ,libsndfile)))
2277 (home-page "https://sourceforge.net/projects/bs2b/")
2278 (synopsis "Bauer stereophonic-to-binaural DSP")
2280 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
2281 designed to improve headphone listening of stereo audio records. Recommended
2282 for headphone prolonged listening to disable superstereo fatigue without
2283 essential distortions.")
2284 (license license:expat)))
2286 (define-public ladspa-bs2b
2288 (name "ladspa-bs2b")
2293 "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/"
2294 version "/" name "-" version ".tar.gz"))
2297 "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2"))))
2298 (build-system gnu-build-system)
2299 (native-inputs `(("pkg-config" ,pkg-config)))
2300 (inputs `(("ladspa" ,ladspa)
2301 ("libbs2b" ,libbs2b)))
2302 (home-page "https://sourceforge.net/projects/bs2b/")
2303 (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin")
2304 (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and
2305 plugins is designed to improve headphone listening of stereo audio records.
2306 Recommended for headphone prolonged listening to disable superstereo fatigue
2307 without essential distortions. This package contains a LADSPA plugin for use
2308 with applications that support them (e.g. PulseAudio).")
2309 (license license:gpl2+)))
2311 (define-public liblo
2317 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
2318 "/liblo-" version ".tar.gz"))
2321 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
2322 (build-system gnu-build-system)
2324 `(;; liblo test FAILED
2325 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
2327 (home-page "http://liblo.sourceforge.net")
2328 (synopsis "Implementation of the Open Sound Control protocol")
2330 "liblo is a lightweight library that provides an easy to use
2331 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
2332 (license license:lgpl2.1+)))
2334 (define-public rtaudio
2342 (url "https://github.com/thestk/rtaudio")
2344 (file-name (git-file-name name version))
2346 (base32 "156c2dgh6jrsyfn1y89nslvaxm4yifmxridsb708yvkaym02w2l8"))))
2347 (build-system cmake-build-system)
2349 `(("pkg-config" ,pkg-config)))
2351 `(("alsa-lib" ,alsa-lib)
2353 ("pulseaudio" ,pulseaudio)))
2354 (synopsis "Common API for real-time audio I/O")
2356 "RtAudio is a set of C++ classes that provides a common API for real-time
2357 audio input/output. It was designed with the following objectives:
2360 @item object-oriented C++ design
2361 @item simple, common API across all supported platforms
2362 @item only one source and one header file for easy inclusion in programming
2364 @item allow simultaneous multi-api support
2365 @item support dynamic connection of devices
2366 @item provide extensive audio device parameter control
2367 @item allow audio device capability probing
2368 @item automatic internal conversion for data format, channel number
2369 compensation, (de)interleaving, and byte-swapping
2371 (home-page "https://www.music.mcgill.ca/~gary/rtaudio/")
2372 ;; License is expat with a non-binding request to send modifications to
2373 ;; original developer.
2374 (license license:expat)))
2376 (define-public python-pyaudio
2378 (name "python-pyaudio")
2383 (uri (pypi-uri "PyAudio" version))
2386 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
2387 (build-system python-build-system)
2389 `(("portaudio" ,portaudio)))
2390 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
2391 (synopsis "Bindings for PortAudio v19")
2392 (description "This package provides bindings for PortAudio v19, the
2393 cross-platform audio input/output stream library.")
2394 (license license:expat)))
2396 (define-public python2-pyaudio
2397 (package-with-python2 python-pyaudio))
2399 (define-public python-pyliblo
2401 (name "python-pyliblo")
2405 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
2409 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
2410 (build-system python-build-system)
2411 (arguments `(#:tests? #f)) ;no tests
2413 `(("python-cython" ,python-cython)))
2415 `(("liblo" ,liblo)))
2416 (home-page "http://das.nasophon.de/pyliblo/")
2417 (synopsis "Python bindings for liblo")
2419 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
2420 library. It supports almost the complete functionality of liblo, allowing you
2421 to send and receive OSC messages using a nice and simple Python API. Also
2422 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
2423 (license license:lgpl2.1+)))
2425 (define-public python2-pyliblo
2426 (package-with-python2 python-pyliblo))
2428 (define-public python-soundfile
2430 (name "python-soundfile")
2431 (version "0.10.3.post1")
2435 (uri (pypi-uri "SoundFile" version))
2438 "0yqhrfz7xkvqrwdxdx2ydy4h467sk7z3gf984y1x2cq7cm1gy329"))))
2439 (build-system python-build-system)
2441 `(("python-cffi" ,python-cffi)
2442 ("python-numpy" ,python-numpy)
2443 ("libsndfile" ,libsndfile)))
2445 `(("python-pytest" ,python-pytest)))
2447 `(#:tests? #f ; missing OGG support
2449 (modify-phases %standard-phases
2450 (add-after 'unpack 'patch
2451 (lambda* (#:key inputs #:allow-other-keys)
2452 (substitute* "soundfile.py"
2453 (("_find_library\\('sndfile'\\)")
2454 (string-append "\"" (assoc-ref inputs "libsndfile")
2455 "/lib/libsndfile.so\""))))))))
2456 (home-page "https://github.com/bastibe/SoundFile")
2457 (synopsis "Python bindings for libsndfile")
2458 (description "This package provides python bindings for libsndfile based on
2460 (license license:expat)))
2462 (define-public python-python3-midi
2464 (name "python-python3-midi")
2469 (uri (pypi-uri "python3_midi" version))
2472 "1z9j1w7mpn3xhkcpxmqm5rvmj6nffb5rf14bv7n3sdh07nf6n7sf"))))
2473 (build-system python-build-system)
2474 (home-page "https://github.com/NFJones/python3-midi")
2475 (synopsis "Python MIDI API")
2476 (description "This package provides a python API to read and write MIDI
2478 (license license:expat)))
2480 (define-public audio-to-midi
2482 (name "audio-to-midi")
2488 (url "https://github.com/NFJones/audio-to-midi")
2489 (commit (string-append "v" version))))
2490 (file-name (git-file-name name version))
2493 "12wf17abn3psbsg2r2lk0xdnk8n5cd5rrvjlpxjnjfhd09n7qqgm"))))
2494 (build-system python-build-system)
2496 `(("python-cffi" ,python-cffi)
2497 ("python-cython" ,python-cython)
2498 ("python-numpy" ,python-numpy)
2499 ("python-progressbar2" ,python-progressbar2)
2500 ("python-pycparser" ,python-pycparser)
2501 ("python-python3-midi" ,python-python3-midi)
2502 ("python-soundfile" ,python-soundfile)))
2504 `(("libsndfile" ,libsndfile)))
2507 (modify-phases %standard-phases
2508 (add-after 'unpack 'fix-versions
2510 (substitute* "requirements.txt" (("==") ">=")))))))
2511 (home-page "https://github.com/NFJones/audio-to-midi")
2512 (synopsis "Convert audio to multichannel MIDI.")
2513 (description "@command{audio-to-midi} converts audio files to multichannel
2514 MIDI files. It accomplishes this by performing FFTs on all channels of the
2515 audio data at user-specified time steps. It then separates the resulting
2516 frequency analysis into equivalence classes which correspond to the twelve tone
2517 scale; the volume of each class being the average volume of its constituent
2518 frequencies. This data is then formatted to MIDI and written to disk.")
2519 (license license:expat)))
2527 (uri (string-append "https://download.drobilla.net/lilv-"
2528 version ".tar.bz2"))
2531 "1565zy0yz46cf2f25pi46msdnzkj6bbhml9gfigdpjnsdlyskfyi"))))
2532 (build-system waf-build-system)
2534 `(#:tests? #f ; no check target
2536 (modify-phases %standard-phases
2537 (add-before 'configure 'set-ldflags
2538 (lambda* (#:key outputs #:allow-other-keys)
2540 (string-append "-Wl,-rpath="
2541 (assoc-ref outputs "out") "/lib"))
2543 (add-after 'unpack 'full-store-path-to-shared-library
2544 (lambda* (#:key outputs #:allow-other-keys)
2545 (with-directory-excursion "bindings/python"
2546 (substitute* "lilv.py"
2547 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
2548 "/lib/liblilv-0.so"))))
2550 ;; Required by lilv-0.pc.
2555 ("sratom" ,sratom)))
2557 `(("python" ,python)
2558 ("pkg-config" ,pkg-config)))
2559 (home-page "https://drobilla.net/software/lilv")
2560 (synopsis "Library to simplify use of LV2 plugins in applications")
2562 "Lilv is a C library to make the use of LV2 plugins as simple as possible
2563 for applications. Lilv is the successor to SLV2, rewritten to be
2564 significantly faster and have minimal dependencies.")
2565 (license license:isc)))
2573 (uri (string-append "https://lv2plug.in/spec/lv2-"
2574 version ".tar.bz2"))
2577 "0gs7401xz23q9vajqr31aa2db8dvssgyh5zrvr4ipa6wig7yb8wh"))))
2578 (build-system waf-build-system)
2580 `(#:tests? #f ; no check target
2581 #:configure-flags '("--no-plugins")))
2583 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
2584 `(("libsndfile" ,libsndfile)))
2586 `(("pkg-config" ,pkg-config)))
2587 (home-page "https://lv2plug.in/")
2588 (synopsis "LV2 audio plugin specification")
2590 "LV2 is an open specification for audio plugins and host applications.
2591 At its core, LV2 is a simple stable interface, accompanied by extensions which
2592 add functionality to support the needs of increasingly powerful audio
2594 (license license:isc)))
2596 (define-public lv2-mda-piano
2598 (name "lv2-mda-piano")
2603 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
2605 (file-name (git-file-name name version))
2608 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
2609 (build-system gnu-build-system)
2611 `(#:make-flags (list
2613 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2614 #:tests? #f ; no check target
2615 #:phases (modify-phases %standard-phases (delete 'configure))))
2620 `(("pkg-config" ,pkg-config)))
2621 (native-search-paths
2622 (list (search-path-specification
2623 (variable "LV2_PATH")
2624 (files '("lib/lv2")))))
2625 (home-page "https://elephly.net/lv2/mdapiano.html")
2626 (synopsis "LV2 port of the mda Piano plugin")
2627 (description "An LV2 port of the mda Piano VSTi.")
2628 (license license:gpl3+)))
2630 (define-public lv2-mda-epiano
2631 (package (inherit lv2-mda-piano)
2632 (name "lv2-mda-epiano")
2634 `(#:make-flags (list
2636 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2637 #:tests? #f ; no check target
2638 #:phases (modify-phases %standard-phases (delete 'configure))))
2639 (home-page "https://elephly.net/lv2/mdaepiano.html")
2640 (synopsis "LV2 port of the mda EPiano plugin")
2641 (description "An LV2 port of the mda EPiano VSTi.")))
2650 (url "https://github.com/lvtk/lvtk")
2652 (file-name (git-file-name name version))
2655 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
2656 (build-system waf-build-system)
2658 `(#:tests? #f ; no check target
2661 (list (string-append "--boost-includes="
2662 (assoc-ref %build-inputs "boost")
2669 `(("pkg-config" ,pkg-config)))
2670 (home-page "https://github.com/lvtk/lvtk")
2671 (synopsis "C++ libraries for LV2 plugins")
2673 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2674 extensions into easy to use C++ classes. It is the successor of
2676 (license license:gpl3+)))
2678 (define-public openal
2685 "https://openal-soft.org/openal-releases/openal-soft-"
2686 version ".tar.bz2"))
2689 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2690 (build-system cmake-build-system)
2692 `(#:tests? #f ; no check target
2694 (modify-phases %standard-phases
2696 'unpack 'use-full-library-paths
2697 (lambda* (#:key inputs #:allow-other-keys)
2698 (substitute* "alc/backends/pulseaudio.cpp"
2699 (("#define PALIB \"libpulse\\.so\\.0\"")
2700 (string-append "#define PALIB \""
2701 (assoc-ref inputs "pulseaudio")
2702 "/lib/libpulse.so.0"
2704 (substitute* "alc/backends/alsa.cpp"
2705 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2706 (string-append "LoadLib(\""
2707 (assoc-ref inputs "alsa-lib")
2708 "/lib/libasound.so.2"
2712 `(("alsa-lib" ,alsa-lib)
2713 ("pulseaudio" ,pulseaudio)))
2714 (synopsis "3D audio API")
2716 "OpenAL provides capabilities for playing audio in a virtual 3D
2717 environment. Distance attenuation, doppler shift, and directional sound
2718 emitters are among the features handled by the API. More advanced effects,
2719 including air absorption, occlusion, and environmental reverb, are available
2720 through the EFX extension. It also facilitates streaming audio, multi-channel
2721 buffers, and audio capture.")
2722 (home-page "https://openal-soft.org/")
2723 (license license:lgpl2.0+)))
2725 (define-public freealut
2731 ;; Upstream url is unclear, many systems use Fedora, there is also
2732 ;; https://github.com/vancegroup/freealut though the status of it
2733 ;; (official? unofficial?) is not clear.
2735 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2736 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2737 "-" version ".tar.gz"))
2740 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2741 (build-system cmake-build-system)
2743 `(#:tests? #f)) ; no check target
2745 `(("openal" ,openal)))
2746 (synopsis "Free implementation of OpenAL's ALUT standard")
2747 (description "freealut is the OpenAL Utility Toolkit.")
2748 (home-page "https://kcat.strangesoft.net/openal.html")
2749 (license license:lgpl2.0)))
2751 (define-public patchage
2757 (uri (string-append "https://download.drobilla.net/patchage-"
2762 "0dk3fiac10m83mwss3026yz7ygc47c2iw924cwwnh2fyydc9bsy6"))))
2763 (build-system waf-build-system)
2765 `(#:tests? #f ; no check target
2766 #:python ,python-2))
2768 `(("alsa-lib" ,alsa-lib)
2774 ("dbus-glib" ,dbus-glib)))
2776 `(("pkg-config" ,pkg-config)))
2777 (home-page "https://drobilla.net/software/patchage/")
2778 (synopsis "Modular patch bay for audio and MIDI systems")
2780 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2782 (license license:gpl3+)))
2784 (define-public pcaudiolib
2788 (home-page "https://github.com/espeak-ng/pcaudiolib")
2791 (uri (git-reference (url home-page) (commit version)))
2792 (file-name (git-file-name name version))
2795 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2796 (build-system gnu-build-system)
2798 `(#:configure-flags '("--disable-static")))
2800 `(("autoconf" ,autoconf)
2801 ("automake" ,automake)
2802 ("libtool" ,libtool)
2803 ("pkg-config" ,pkg-config)
2806 `(("alsa-lib" ,alsa-lib)
2807 ("pulseaudio" ,pulseaudio)))
2808 (synopsis "Portable C audio library")
2810 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2811 different audio devices such as ALSA or PulseAudio.")
2812 (license (list license:gpl3+
2813 ;; The bundled TPCircularBuffer uses a custom license.
2814 (license:non-copyleft
2815 "file://src/TPCircularBuffer/README.markdown")))))
2817 (define-public qjackctl
2823 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2824 version "/qjackctl-" version ".tar.gz"))
2827 "065x66rr1mb2bkqr88l50rcn5c8rsiq4hp5hrlyqqg46371gzhp9"))))
2828 (build-system cmake-build-system)
2830 '(#:tests? #f)) ; no check target
2833 ("alsa-lib" ,alsa-lib)
2834 ("portaudio" ,portaudio)
2835 ("qtbase" ,qtbase-5)
2836 ("qtx11extras" ,qtx11extras)))
2838 `(("pkg-config" ,pkg-config)
2839 ("qttools" ,qttools)))
2840 (home-page "https://qjackctl.sourceforge.io/")
2841 (synopsis "Jack server control application")
2842 (description "Control a Jack server. Allows you to plug various sources
2843 into various outputs and to start, stop and configure jackd")
2844 (license license:gpl2+)))
2846 (define-public qjackrcd
2853 (url "https://github.com/orouits/qjackrcd")
2854 (commit (string-append "v" version))))
2855 (file-name (git-file-name name version))
2858 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2859 (build-system gnu-build-system)
2862 (modify-phases %standard-phases
2864 (lambda* (#:key outputs #:allow-other-keys)
2866 (string-append "PREFIX="
2867 (assoc-ref outputs "out"))))))))
2869 `(("qtbase" ,qtbase-5))) ; for qmake
2872 ("libsndfile" ,libsndfile)
2873 ("qtbase" ,qtbase-5)))
2874 (home-page "https://sourceforge.net/projects/qjackrcd/")
2875 (synopsis "Stereo audio recorder for JACK")
2876 (description "QJackRcd is a simple graphical stereo recorder for JACK
2877 supporting silence processing for automatic pause, file splitting, and
2878 background file post-processing.")
2879 (license license:gpl2+)))
2881 (define-public supercollider
2883 (name "supercollider")
2888 (url "https://github.com/supercollider/supercollider")
2889 (commit (string-append "Version-" version))
2890 ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack
2892 (file-name (git-file-name name version))
2895 "1gi7nrmjmbnjndqkmhfrkk0jchrzvnhl3f6gp6n5wgdd4mxbgxgw"))
2896 (modules '((guix build utils)
2899 ;; The build system doesn't allow us to unbundle the following
2900 ;; libraries. hidapi is also heavily patched and upstream not
2901 ;; actively maintained.
2902 '(let ((keep-dirs '("nova-simd" "nova-tt" "hidapi"
2903 "TLSF-2.4.6" "oscpack_1_1_0" "." "..")))
2904 (with-directory-excursion "./external_libraries"
2906 delete-file-recursively
2909 (and (eq? (stat:type (stat x)) 'directory)
2910 (not (member (basename x) keep-dirs)))))))
2911 ;; To find the Guix provided ableton-link library.
2912 (substitute* "lang/CMakeLists.txt"
2913 (("include\\(\\.\\./external_libraries/link/\
2914 AbletonLinkConfig\\.cmake\\)")
2915 "find_package(AbletonLink NAMES AbletonLink ableton-link \
2918 (build-system cmake-build-system)
2920 '("out" ;core language
2923 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
2924 "-DSC_QT=ON" "-DCMAKE_BUILD_TYPE=Release"
2926 ;"-DLIBSCSYNTH=ON" ; TODO: Re-enable?
2927 "-DSC_EL=off") ;scel is packaged individually as
2930 (modify-phases %standard-phases
2931 ;; HOME must be defined otherwise supercollider throws a "ERROR:
2932 ;; Primitive '_FileMkDir' failed." error when generating the doc.
2933 ;; The graphical tests also hang without it.
2934 (add-after 'unpack 'set-home-directory
2936 (setenv "HOME" (getcwd))
2938 (add-after 'unpack 'patch-scclass-dir
2939 (lambda* (#:key outputs #:allow-other-keys)
2940 (let* ((out (assoc-ref outputs "out"))
2943 "/share/SuperCollider/SCClassLibrary")))
2944 (substitute* "lang/LangSource/SC_LanguageConfig.cpp"
2946 "SC_Filesystem::instance\\(\\)\\.getDirectory"
2947 "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME"))
2948 (string-append "Path(\"" scclass-dir "\")")))
2950 (add-before 'build 'prepare-x
2953 (setenv "DISPLAY" ":0")
2955 (add-before 'install 'install-ide
2956 (lambda* (#:key outputs #:allow-other-keys)
2957 (let* ((out (assoc-ref outputs "out"))
2958 (ide (assoc-ref outputs "ide"))
2959 (scide "editors/sc-ide/scide"))
2961 (string-append ide "/bin"))
2965 `(("ableton-link" ,ableton-link)
2966 ("pkg-config" ,pkg-config)
2967 ("qttools" ,qttools)
2968 ("xorg-server" ,xorg-server-for-tests)))
2971 ("libsndfile" ,libsndfile)
2974 ("readline" ,readline) ;readline support for sclang's CLI
2975 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2976 ("eudev" ,eudev) ;for user interactions with devices
2977 ("avahi" ,avahi) ;zeroconf service discovery support
2980 ("boost-sync" ,boost-sync)
2981 ("yaml-cpp" ,yaml-cpp)
2982 ("qtbase" ,qtbase-5)
2983 ("qtdeclarative" ,qtdeclarative)
2985 ("qtwebchannel" ,qtwebchannel)
2986 ("qtwebsockets" ,qtwebsockets)))
2987 (propagated-inputs ;to get native-search-path
2988 `(("qtwebengine" ,qtwebengine)))
2989 (home-page "https://github.com/supercollider/supercollider")
2990 (synopsis "Synthesis engine and programming language")
2991 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2992 @code{supernova}) and programming language (@code{sclang}). It can be used
2993 for experimenting with sound synthesis and algorithmic composition.
2995 SuperCollider requires jackd to be installed in your user profile and your
2996 user must be allowed to access the realtime features of the kernel. Search
2997 for \"realtime\" in the index of the Guix manual to learn how to achieve this
2998 using Guix System.")
2999 (license license:gpl2+)))
3007 (uri (string-append "https://download.drobilla.net/raul-"
3008 version ".tar.bz2"))
3011 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
3012 (build-system waf-build-system)
3014 `(#:python ,python-2
3015 #:tests? #f)) ; no check target
3020 `(("pkg-config" ,pkg-config)))
3021 (home-page "https://drobilla.net/software/raul/")
3022 (synopsis "Real-time audio utility library")
3024 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
3025 aimed at audio/musical applications.")
3026 (license license:gpl2+)))
3028 (define-public raul-devel
3029 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
3031 (package (inherit raul)
3033 (version (string-append "0.8.9-" revision "."
3034 (string-take commit 9)))
3038 (url "https://git.drobilla.net/raul.git")
3040 (file-name (string-append name "-" version "-checkout"))
3043 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
3045 (define-public resample
3051 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
3055 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
3056 (build-system gnu-build-system)
3058 `(("autoconf" ,autoconf)
3059 ("automake" ,automake)
3060 ("pkg-config" ,pkg-config)
3061 ("libtool" ,libtool)))
3062 (synopsis "Sampling rate conversion and filter design utilities")
3063 (description "This package contains the @command{resample} and
3064 @command{windowfilter} command line utilities. The @command{resample} command
3065 allows changing the sampling rate of a sound file, while the
3066 @command{windowfilter} command allows designing Finite Impulse Response (FIR)
3067 filters using the so-called @emph{window method}.")
3068 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
3069 (license license:lgpl2.1+)))
3071 (define-public rubberband
3078 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
3081 (file-name (string-append name "-" version ".tar.bz2"))
3084 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
3085 (build-system gnu-build-system)
3087 `(#:tests? #f ; no check target
3089 (modify-phases %standard-phases
3090 (add-after 'unpack 'skip-jni-installation
3091 ;; ‘make install’ unconditionally installs librubberband-jni.so,
3092 ;; which is never built by ‘make all’. Skip it.
3094 (substitute* "Makefile.in"
3095 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
3098 `(("ladspa" ,ladspa)
3099 ("libsamplerate" ,libsamplerate)
3102 `(("pkg-config" ,pkg-config)))
3103 (home-page "https://breakfastquay.com/rubberband/")
3104 (synopsis "Audio time-stretching and pitch-shifting library")
3106 "Rubber Band is a library and utility program that permits changing the
3107 tempo and pitch of an audio recording independently of one another.")
3108 (license license:gpl2+)))
3110 (define-public rtmidi
3116 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
3117 "/release/rtmidi-" version ".tar.gz"))
3118 (file-name (string-append "rtmidi-" version ".tar.gz"))
3121 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))
3122 (build-system gnu-build-system)
3125 ("alsa-lib" ,alsa-lib)))
3127 `(("autoconf" ,autoconf)
3128 ("automake" ,automake)
3129 ("libtool" ,libtool)
3130 ("pkg-config" ,pkg-config)))
3131 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
3132 (synopsis "Cross-platform MIDI library for C++")
3134 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
3135 classes) that provide a common cross-platform API for realtime MIDI
3137 (license license:expat)))
3139 (define-public sratom
3145 (uri (string-append "https://download.drobilla.net/sratom-"
3146 version ".tar.bz2"))
3149 "178v90qvsp6lw4sqdmdz0bzyjkgwhv9m75ph1d1z8say5bv0p4gv"))))
3150 (build-system waf-build-system)
3151 (arguments `(#:tests? #f)) ;no check target
3153 ;; In Requires of sratom-0.pc.
3158 `(("pkg-config" ,pkg-config)))
3159 (home-page "https://drobilla.net/software/sratom/")
3160 (synopsis "Library for serialising LV2 atoms to/from RDF")
3162 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
3163 the Turtle syntax.")
3164 (license license:isc)))
3172 (uri (string-append "https://download.drobilla.net/suil-"
3173 version ".tar.bz2"))
3176 "0h0ghk1s0lrj4gh12r7390b0ybaw7awnj0vhchyy9ll0gvhqgkci"))))
3177 (build-system waf-build-system)
3179 `(#:tests? #f)) ;no check target
3186 `(("pkg-config" ,pkg-config)))
3187 (home-page "https://drobilla.net/software/suil/")
3188 (synopsis "Library for loading and wrapping LV2 plugin UIs")
3190 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
3192 Suil makes it possible to load a UI of a toolkit in a host using another
3193 toolkit. The API is designed such that hosts do not need to explicitly
3194 support specific toolkits – if Suil supports a particular toolkit, then UIs in
3195 that toolkit will work in all hosts that use Suil automatically.
3197 Suil currently supports every combination of Gtk, Qt, and X11.")
3198 (license license:isc)))
3200 (define-public libebur128
3208 (url "https://github.com/jiixyj/libebur128")
3209 (commit (string-append "v" version))))
3210 (file-name (git-file-name name version))
3212 (base32 "0n81rnm8dm1zmibkr2v3q79rsd609y0dbbsrbay18njcjva88p0g"))))
3213 (build-system cmake-build-system)
3215 `(;; Tests require proprietary .wav files. See
3216 ;; https://github.com/jiixyj/libebur128/issues/82.
3218 #:configure-flags '("-DBUILD_STATIC_LIBS=OFF")))
3219 (home-page "https://github.com/jiixyj/libebur128")
3220 (synopsis "Library implementing the EBU R 128 loudness standard")
3222 "@code{libebur128} is a C library that implements the EBU R 128 standard
3223 for loudness normalisation.")
3224 (license license:expat)))
3226 (define-public timidity++
3232 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
3233 "/TiMidity++-" version
3234 "/TiMidity++-" version ".tar.bz2"))
3237 "1xf8n6dqzvi6nr2asags12ijbj1lwk1hgl3s27vm2szib8ww07qn"))))
3238 (build-system gnu-build-system)
3241 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
3245 (string-append "--with-default-path="
3246 (assoc-ref %outputs "out") "/etc/timidity"))
3248 (modify-phases %standard-phases
3249 (add-after 'install 'install-config
3251 (let ((out (string-append (assoc-ref %outputs "out")
3254 (call-with-output-file
3255 (string-append out "/timidity.cfg")
3257 (format port (string-append "source "
3258 (assoc-ref %build-inputs "freepats")
3259 "/share/freepats/freepats.cfg")))))
3262 `(("alsa-lib" ,alsa-lib)
3267 ("libvorbis" ,libvorbis)
3269 ("ncurses" ,ncurses)
3270 ("freepats" ,freepats)))
3272 `(("pkg-config" ,pkg-config)))
3273 (home-page "http://timidity.sourceforge.net/")
3274 (synopsis "Software synthesizer for playing MIDI files")
3276 "TiMidity++ is a software synthesizer. It can play MIDI files by
3277 converting them into PCM waveform data; give it a MIDI data along with digital
3278 instrument data files, then it synthesizes them in real-time, and plays. It
3279 can not only play sounds, but also can save the generated waveforms into hard
3280 disks as various audio file formats.")
3281 (license license:gpl2+)))
3290 "https://code.soundsoftware.ac.uk"
3291 "/attachments/download/1520/vamp-plugin-sdk-"
3295 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
3296 (build-system gnu-build-system)
3298 `(#:tests? #f ; no check target
3300 (modify-phases %standard-phases
3301 (add-after 'install 'remove-libvamp-hostsdk.la
3302 (lambda* (#:key outputs #:allow-other-keys)
3303 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
3304 (for-each delete-file
3305 (let ((out (assoc-ref outputs "out")))
3306 (list (string-append out "/lib/libvamp-sdk.la")
3307 (string-append out "/lib/libvamp-hostsdk.la"))))
3310 `(("libsndfile" ,libsndfile)))
3312 `(("pkg-config" ,pkg-config)))
3313 (home-page "https://vamp-plugins.org")
3314 (synopsis "Modular and extensible audio processing system")
3316 "Vamp is an audio processing plugin system for plugins that extract
3317 descriptive information from audio data — typically referred to as audio
3318 analysis plugins or audio feature extraction plugins.")
3321 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
3323 (define-public libsbsms
3330 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
3331 "/libsbsms-" version ".tar.gz"))
3333 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
3334 (build-system gnu-build-system)
3335 (native-inputs `(("automake" ,automake)))
3338 ;; Disable the use of SSE unless on x86_64.
3339 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
3340 (%current-system))))
3344 (modify-phases %standard-phases
3346 'unpack 'fix-ar-lib-path
3347 (lambda* (#:key inputs #:allow-other-keys)
3348 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
3349 (delete-file "ar-lib")
3351 (string-append (assoc-ref inputs "automake") "/share/automake-"
3352 ,(package-version automake) "/ar-lib")
3355 (home-page "http://sbsms.sourceforge.net/")
3356 (synopsis "Library for time stretching and pitch scaling of audio")
3358 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
3359 stretching and pitch scaling of audio. This package contains the library.")
3360 ;; There is no explicit declaration of a license, but a COPYING file
3362 (license license:gpl2)))
3364 (define-public wavpack
3371 (uri (string-append "https://github.com/dbry/WavPack/releases/download/"
3372 version "/wavpack-" version ".tar.xz"))
3374 (base32 "0ycbqarw25x7208jilh86vwwiqklr7f617jps9mllqc659mnmpjb"))))
3375 (build-system gnu-build-system)
3378 (list "--disable-static"
3381 (modify-phases %standard-phases
3383 (lambda* (#:key tests? #:allow-other-keys)
3385 (invoke "./cli/wvtest" "--default" "--short"))
3387 (home-page "https://www.wavpack.com/")
3388 (synopsis "Hybrid lossless audio codec")
3390 "WavPack is an audio compression format with lossless, lossy and hybrid
3391 compression modes. This package contains command-line programs and library to
3392 encode and decode wavpack files.")
3393 (license license:bsd-3)))
3395 (define-public libmodplug
3402 "mirror://sourceforge/modplug-xmms/"
3403 name "/" version "/" name "-" version ".tar.gz"))
3406 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
3407 (build-system gnu-build-system)
3408 (home-page "http://modplug-xmms.sourceforge.net/")
3409 (synopsis "Mod file playing library")
3411 "Libmodplug renders mod music files as raw audio data, for playing or
3412 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
3413 supported. Optional features include high-quality resampling, bass expansion,
3414 surround and reverb.")
3415 (license license:public-domain)))
3417 (define-public libxmp
3423 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
3424 name "-" version ".tar.gz"))
3427 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
3428 (build-system gnu-build-system)
3429 (home-page "http://xmp.sourceforge.net/")
3430 (synopsis "Module player library")
3432 "Libxmp is a library that renders module files to PCM data. It supports
3433 over 90 mainstream and obscure module formats including Protracker (MOD),
3434 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
3435 (license license:lgpl2.1+)))
3443 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3444 name "-" version ".tar.gz"))
3447 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3448 (build-system gnu-build-system)
3450 `(("pkg-config" ,pkg-config)))
3452 `(("libxmp" ,libxmp)
3453 ("pulseaudio" ,pulseaudio)))
3454 (home-page "http://xmp.sourceforge.net/")
3455 (synopsis "Extended module player")
3457 "Xmp is a portable module player that plays over 90 mainstream and
3458 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
3459 Tracker 3 S3M and Impulse Tracker IT files.")
3460 (license license:gpl2+)))
3462 (define-public soundtouch
3470 (url "https://gitlab.com/soundtouch/soundtouch.git")
3472 (file-name (git-file-name name version))
3474 (base32 "12i6yg8vvqwyk412lxl2krbfby6hnxld8qxy0k4m5xp4g94jiq4p"))))
3475 (build-system gnu-build-system)
3477 `(("autoconf" ,autoconf)
3478 ("automake" ,automake)
3479 ("libtool" ,libtool)
3481 (home-page "https://www.surina.net/soundtouch/")
3483 "Audio processing library for changing tempo, pitch and playback rate")
3485 "SoundTouch is an audio processing library for changing the tempo, pitch
3486 and playback rates of audio streams or audio files. It is intended for
3487 application developers writing sound processing tools that require tempo/pitch
3488 control functionality, or just for playing around with the sound effects.")
3489 (license license:lgpl2.1+)))
3497 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
3498 name "-" version ".tar.bz2"))
3501 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
3502 (build-system gnu-build-system)
3505 ;; The upstream asks to identify the distribution to diagnose SoX
3507 '("--with-distro=Guix System Distribution")))
3509 `(("pkg-config" ,pkg-config)))
3511 `(("alsa-lib" ,alsa-lib)
3515 ("libid3tag" ,libid3tag)
3516 ("libltdl" ,libltdl)
3519 ("libvorbis" ,libvorbis)
3520 ("pulseaudio" ,pulseaudio)))
3521 (home-page "http://sox.sourceforge.net")
3522 (synopsis "Sound processing utility")
3524 "SoX (Sound eXchange) is a command line utility that can convert
3525 various formats of computer audio files to other formats. It can also
3526 apply various effects to these sound files, and, as an added bonus, SoX
3527 can play and record audio files.")
3528 ;; sox.c is distributed under GPL, while the files that make up
3529 ;; libsox are licensed under LGPL.
3530 (license (list license:gpl2+ license:lgpl2.1+))))
3540 (string-append "mirror://sourceforge/soxr/soxr-" version
3543 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
3544 (build-system cmake-build-system)
3545 (arguments '(#:tests? #f)) ;no 'check' target
3546 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
3547 (synopsis "One-dimensional sample-rate conversion library")
3549 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
3550 conversion. It may be used, for example, to resample PCM-encoded audio.")
3551 (license license:lgpl2.1+)))
3553 (define-public twolame
3560 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
3561 "/twolame-" version ".tar.gz"))
3563 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
3564 (build-system gnu-build-system)
3566 `(("libsndfile" ,libsndfile)))
3569 ("which" ,which))) ;used in tests/test.pl
3570 (home-page "https://www.twolame.org/")
3571 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
3573 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
3574 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
3576 (license license:lgpl2.1+)))
3578 (define-public portaudio
3581 (version "190600.20161030")
3586 "http://www.portaudio.com/archives/pa_stable_v"
3587 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
3590 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
3591 (patches (search-patches "portaudio-audacity-compat.patch"))))
3592 (build-system gnu-build-system)
3594 ;; TODO: Add ASIHPI.
3595 `(("alsa-lib" ,alsa-lib)
3597 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
3600 `(("autoconf" ,autoconf)
3601 ("automake" ,automake)
3602 ("libtool" ,libtool)
3603 ("pkg-config" ,pkg-config)))
3605 '(#:tests? #f ;no 'check' target
3606 #:parallel-build? #f ;fails on some systems
3607 #:configure-flags '("--with-pic"
3609 ;; XXX: The following prevents a build error
3610 ;; because of missing depcomp when C++ bindings are
3612 "--disable-dependency-tracking")
3614 (modify-phases %standard-phases
3615 ;; This is needed for linking the static libraries
3616 (add-after 'unpack 'build-only-position-independent-code
3618 (substitute* "configure.in"
3619 (("AC_PROG_LIBTOOL" m)
3620 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
3621 (delete-file "configure")
3623 ;; Some headers are not installed by default, but are needed by
3624 ;; packages like Kaldi.
3625 (add-after 'install 'install-missing-headers
3626 (lambda* (#:key outputs #:allow-other-keys)
3627 (install-file "src/common/pa_ringbuffer.h"
3628 (string-append (assoc-ref outputs "out") "/include"))
3630 (home-page "http://www.portaudio.com/")
3631 (synopsis "Audio I/O library")
3633 "PortAudio is a portable C/C++ audio I/O library providing a simple API
3634 to record and/or play sound using a callback function or a blocking read/write
3636 (license license:expat)))
3638 (define-public qsynth
3646 (string-append "mirror://sourceforge/qsynth/qsynth/" version
3647 "/qsynth-" version ".tar.gz")
3648 (string-append "mirror://sourceforge/qsynth/qsynth (attic)"
3649 "/qsynth-" version ".tar.gz")))
3651 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
3652 (build-system gnu-build-system)
3654 `(#:tests? #f)) ; no "check" phase
3656 `(("qttools" ,qttools)
3657 ("pkg-config" ,pkg-config)))
3659 `(("fluidsynth" ,fluidsynth)
3660 ("qtbase" ,qtbase-5)
3661 ("qtx11extras" ,qtx11extras)))
3662 (home-page "https://qsynth.sourceforge.io")
3663 (synopsis "Graphical user interface for FluidSynth")
3665 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
3666 synthesizer written in C++.")
3667 (license license:gpl2+)))
3669 (define-public rsound
3677 (url "https://github.com/Themaister/RSound")
3678 (commit (string-append "v" version))))
3679 (file-name (git-file-name name version))
3681 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
3682 (build-system gnu-build-system)
3684 `(("alsa-lib" ,alsa-lib)
3687 ("libsamplerate" ,libsamplerate)
3689 ("portaudio" ,portaudio)
3690 ("pulseaudio" ,pulseaudio)))
3693 (modify-phases %standard-phases
3695 (lambda* (#:key outputs #:allow-other-keys)
3697 (invoke "./configure"
3698 (string-append "--prefix=" (assoc-ref outputs "out"))))))
3699 ;; No 'check' target.
3701 (home-page "https://themaister.net/rsound.html")
3702 (synopsis "Networked audio system")
3704 "RSound allows you to send audio from an application and transfer it
3705 directly to a different computer on your LAN network. It is an audio daemon
3706 with a much different focus than most other audio daemons.")
3707 (license license:gpl3+)))
3709 (define-public xjackfreak
3716 (url "https://github.com/johnhldavis/xjackfreak")
3717 (commit (string-append "v" version))))
3718 (file-name (git-file-name name version))
3721 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3722 (build-system gnu-build-system)
3725 (list (string-append "docdir=" (assoc-ref %outputs "out")
3726 "/share/doc/xjackfreak"))))
3731 ("libxext" ,libxext)))
3733 `(("pkg-config" ,pkg-config)))
3734 (home-page "https://github.com/johnhldavis/xjackfreak")
3735 (synopsis "JACK audio frequency analyzer and display")
3737 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3738 Connection Kit. It can display the FFT of any input, modify it and output the
3740 (license license:gpl3+)))
3742 (define-public zita-convolver
3744 (name "zita-convolver")
3749 "http://kokkinizita.linuxaudio.org"
3750 "/linuxaudio/downloads/zita-convolver-"
3751 version ".tar.bz2"))
3753 ;; Don't optimize for a specific processor architecture.
3755 (substitute* "source/Makefile"
3756 (("^CXXFLAGS \\+= -march=native") ""))
3758 (modules '((guix build utils)))
3761 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
3762 (build-system gnu-build-system)
3764 `(#:tests? #f ; no "check" target
3766 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3767 (string-append "SUFFIX="))
3769 (modify-phases %standard-phases
3770 (add-after 'unpack 'patch-makefile-and-enter-directory
3772 (substitute* "source/Makefile"
3773 (("ldconfig") "true")
3774 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3777 (add-after 'install 'install-symlink
3779 (symlink "libzita-convolver.so"
3780 (string-append (assoc-ref %outputs "out")
3781 "/lib/libzita-convolver.so.4"))
3783 ;; no configure script
3784 (delete 'configure))))
3785 (inputs `(("fftwf" ,fftwf)))
3786 (home-page "https://kokkinizita.linuxaudio.org")
3787 (synopsis "Fast, partitioned convolution engine library")
3789 "Zita convolver is a C++ library providing a real-time convolution
3791 (license license:gpl3+)))
3793 (define-public zita-resampler
3795 (name "zita-resampler")
3800 "http://kokkinizita.linuxaudio.org"
3801 "/linuxaudio/downloads/zita-resampler-"
3802 version ".tar.bz2"))
3804 ;; Don't optimize for a specific processor architecture.
3806 (substitute* '("apps/Makefile" "source/Makefile")
3807 (("^CXXFLAGS \\+= -march=native") ""))
3809 (modules '((guix build utils)))
3812 "1my5k2dh2dkvjp6xjnf9qy6i7s28z13kw1n9pwa4a2cpwbzawfr3"))))
3813 (build-system gnu-build-system)
3815 `(#:tests? #f ; no "check" target
3817 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3818 (string-append "SUFFIX="))
3820 (modify-phases %standard-phases
3822 'unpack 'patch-makefile-and-enter-directory
3824 (substitute* "source/Makefile"
3825 (("ldconfig") "true")
3826 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3830 'install 'install-symlink
3832 (symlink "libzita-resampler.so"
3833 (string-append (assoc-ref %outputs "out")
3834 "/lib/libzita-resampler.so.1"))
3836 ;; no configure script
3837 (delete 'configure))))
3838 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
3839 (synopsis "C++ library for resampling audio signals")
3841 "Libzita-resampler is a C++ library for resampling audio signals. It is
3842 designed to be used within a real-time processing context, to be fast, and to
3843 provide high-quality sample rate conversion.")
3844 (license license:gpl3+)))
3846 (define-public zita-alsa-pcmi
3848 (name "zita-alsa-pcmi")
3853 "http://kokkinizita.linuxaudio.org"
3854 "/linuxaudio/downloads/zita-alsa-pcmi-"
3855 version ".tar.bz2"))
3858 "12d7vdg74yh21w69qi0wg57iz4876j94qbiq09bvscih6xz9y78s"))))
3859 (build-system gnu-build-system)
3861 `(#:tests? #f ; no "check" target
3863 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3864 (string-append "SUFFIX="))
3866 (modify-phases %standard-phases
3867 (add-after 'unpack 'patch-makefile-and-enter-directory
3869 (substitute* "source/Makefile"
3870 (("ldconfig") "true")
3871 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3874 (add-after 'install 'install-symlink
3876 (symlink "libzita-alsa-pcmi.so"
3877 (string-append (assoc-ref %outputs "out")
3878 "/lib/libzita-alsa-pcmi.so.0"))
3880 ;; no configure script
3881 (delete 'configure))))
3883 `(("alsa-lib" ,alsa-lib)
3885 (home-page "https://kokkinizita.linuxaudio.org")
3886 (synopsis "C++ wrapper around the ALSA API")
3888 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3889 access to ALSA PCM devices, taking care of the many functions required to
3890 open, initialise and use a hw: device in mmap mode, and providing floating
3892 (license license:gpl3+)))
3894 (define-public cuetools
3901 (url "https://github.com/svend/cuetools")
3903 (file-name (git-file-name name version))
3906 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
3907 (build-system gnu-build-system)
3908 ;; The source checkout is not bootstrapped.
3910 `(("autoconf" ,autoconf)
3911 ("automake" ,automake)
3914 (synopsis "Cue and toc file parsers and utilities")
3915 (description "Cuetools is a set of programs that are useful for manipulating
3916 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3917 files are a way to represent the layout of a data or audio CD in a
3918 machine-readable ASCII format.")
3919 (home-page "https://github.com/svend/cuetools")
3920 (license license:gpl2+)))
3922 (define-public shntool
3929 (string-append "http://etree.org/shnutils/shntool/dist/src/"
3930 "shntool-" version ".tar.gz")
3931 (string-append "mirror://debian/pool/main/s/shntool/shntool_"
3932 version ".orig.tar.gz")))
3935 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3936 (build-system gnu-build-system)
3937 (synopsis "WAVE audio data processing tool")
3938 (description "shntool is a multi-purpose WAVE data processing and reporting
3939 utility. File formats are abstracted from its core, so it can process any file
3940 that contains WAVE data, compressed or not---provided there exists a format
3941 module to handle that particular file type. It can also generate CUE files, and
3942 use them split WAVE data into multiple files.")
3943 (home-page "http://etree.org/shnutils/shntool/")
3944 ;; 'install-sh' bears the x11 license
3945 (license (list license:gpl2+ license:x11))))
3947 (define-public dcadec
3954 (url "https://github.com/foo86/dcadec")
3955 (commit (string-append "v" version))))
3956 (file-name (git-file-name name version))
3959 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
3960 (build-system gnu-build-system)
3962 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3965 (list (string-append "CC=" ,(cc-for-target))
3966 ;; Build shared library.
3968 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3969 ;; Set proper runpath.
3970 (string-append "LDFLAGS=-Wl,-rpath="
3971 (assoc-ref %outputs "out")
3974 (modify-phases %standard-phases
3975 ;; No configure script, just a hand-written Makefile.
3976 (delete 'configure))))
3977 (synopsis "DTS Coherent Acoustics decoder")
3978 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3979 with support for HD extensions.")
3980 (home-page "https://github.com/foo86/dcadec")
3981 (license license:lgpl2.1+)))
3983 (define-public bs1770gain
3987 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
3991 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3992 version "/bs1770gain-" version ".tar.gz"))
3994 (base32 "0a2dcaxvxy5m3a5sb1lhplsymvz3ypaiidc5xn9qy01h53zvyvkp"))
3995 (modules '((guix build utils)))
3999 (substitute* (find-files "." "\\.[ch]$")
4000 (("^ \\* N..o.*") ""))
4001 (substitute* "libbg/bgx.c"
4002 (("#define BG.* ") "#define BS ")
4003 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
4004 (("\"( #|N).*\"") "\"\""))
4005 (substitute* (list "config.h"
4008 (("https?://bs1770gain[^/]*/")
4011 (build-system gnu-build-system)
4012 (inputs `(("ffmpeg" ,ffmpeg)
4014 (synopsis "Tool to adjust loudness of media files")
4016 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
4017 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
4018 loudness of audio and video files to the same level.")
4019 (license license:gpl2+)))
4021 (define-public filteraudio
4022 (let ((revision "1")
4023 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
4025 (name "filteraudio")
4026 (version (string-append "0.0.0-" revision "."
4027 (string-take commit 7)))
4032 (url "https://github.com/irungentoo/filter_audio")
4034 (file-name (string-append name "-" version "-checkout"))
4037 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
4038 (build-system gnu-build-system)
4040 `(#:make-flags (list (string-append "PREFIX=" %output)
4041 (string-append "CC=" ,(cc-for-target)))
4042 #:tests? #f ; No tests
4044 (modify-phases %standard-phases
4045 ;; No configure script
4046 (delete 'configure))))
4047 (synopsis "Lightweight audio filtering library")
4048 (description "An easy to use audio filtering library made from webrtc
4049 code, used in @code{libtoxcore}.")
4050 (home-page "https://github.com/irungentoo/filter_audio")
4051 (license license:bsd-3))))
4061 (string-append "http://www.quut.com/" name "/" name
4062 "-" version ".tar.gz"))
4065 "1xkha9ss5g5qnfaybi8il0mcvp8knwg9plgh8404vh58d0pna0s9"))))
4066 (build-system gnu-build-system)
4068 `(#:test-target "tst"
4069 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
4071 (modify-phases %standard-phases
4072 (add-after 'unpack 'add-fpic-ccflag
4074 ;; The -fPIC compiler option is needed when building
4076 (substitute* "Makefile"
4078 (string-append all "CCFLAGS += -fPIC\n")))
4080 (add-before 'install 'pre-install
4082 (let ((out (assoc-ref %outputs "out")))
4083 (mkdir-p (string-append out "/inc"))
4084 (mkdir-p (string-append out "/man"))
4085 (mkdir-p (string-append out "/man/man1"))
4086 (mkdir-p (string-append out "/man/man3"))
4087 (mkdir-p (string-append out "/bin"))
4088 (mkdir-p (string-append out "/lib")))
4090 (add-after 'install 'post-install
4092 (let ((out (assoc-ref %outputs "out")))
4093 (rename-file (string-append out "/inc")
4094 (string-append out "/include"))
4095 (mkdir-p (string-append out "/include/gsm"))
4096 (copy-recursively "inc"
4097 (string-append out "/include/gsm")))
4099 (delete 'configure)))) ; no configure script
4100 (synopsis "GSM 06.10 lossy speech compression library")
4101 (description "This C library provides an encoder and a decoder for the GSM
4102 06.10 RPE-LTP lossy speech compression algorithm.")
4103 (home-page "http://quut.com/gsm/")
4104 (license (license:non-copyleft "file://COPYRIGHT"))))
4106 (define-public python-pyalsaaudio
4108 (name "python-pyalsaaudio")
4112 (uri (pypi-uri "pyalsaaudio" version))
4115 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
4116 (build-system python-build-system)
4118 `(#:tests? #f)) ; tests require access to ALSA devices.
4120 `(("alsa-lib" ,alsa-lib)))
4121 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
4122 (synopsis "ALSA wrappers for Python")
4124 "This package contains wrappers for accessing the ALSA API from Python.
4125 It is currently fairly complete for PCM devices, and has some support for
4127 (license license:psfl)))
4129 (define-public python2-pyalsaaudio
4130 (package-with-python2 python-pyalsaaudio))
4132 (define-public ldacbt
4138 (uri (string-append "https://github.com/EHfive/ldacBT"
4139 "/releases/download/v" version
4140 "/ldacBT-" version ".tar.gz"))
4143 "1d65dms4klzql29abi15i90f41h523kl6mxrz9hi6p5vg37fxn2b"))))
4144 (build-system cmake-build-system)
4145 (arguments `(#:tests? #f)) ; no check target
4146 (home-page "https://github.com/EHfive/ldacBT/")
4147 (synopsis "LDAC Bluetooth encoder and ABR library")
4148 (description "This package provides an encoder for the LDAC
4149 high-resolution Bluetooth audio streaming codec for streaming at up to 990
4150 kbps at 24 bit/96 kHz.")
4151 (license license:asl2.0)))
4153 (define-public bluez-alsa
4158 ;; The tarballs are mere snapshots and don't contain a
4159 ;; bootstrapped build system.
4162 (url "https://github.com/Arkq/bluez-alsa")
4163 (commit (string-append "v" version))))
4164 (file-name (git-file-name name version))
4167 "1jlsgxyqfhncfhx1sy3ry0dp6p95kd4agh7g2b7g51h0c4cv74h8"))))
4168 (build-system gnu-build-system)
4171 (list "--enable-ldac"
4172 (string-append "--with-alsaplugindir="
4173 (assoc-ref %outputs "out")
4175 (string-append "--with-dbusconfdir="
4176 (assoc-ref %outputs "out")
4177 "/etc/dbus-1/system.d"))))
4179 `(("autoconf" ,autoconf)
4180 ("automake" ,automake)
4181 ("libtool" ,libtool)
4182 ("pkg-config" ,pkg-config)))
4184 `(("alsa-lib" ,alsa-lib)
4190 ("ncurses" ,ncurses)
4193 (home-page "https://github.com/Arkq/bluez-alsa")
4194 (synopsis "Bluetooth ALSA backend")
4195 (description "This project is a rebirth of a direct integration between
4196 Bluez and ALSA. Since Bluez >= 5, the built-in integration has been removed
4197 in favor of 3rd party audio applications. From now on, Bluez acts as a
4198 middleware between an audio application, which implements Bluetooth audio
4199 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
4200 audio profiles in Bluez, so in theory every Bluetooth device (with audio
4201 capabilities) can be connected. In order to access the audio stream, one has
4202 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
4203 on the ALSA software PCM plugin.")
4204 (license license:expat)))
4212 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
4213 "snd-" version ".tar.gz"))
4216 "0jxkycxn6jcbs4gklk9sk3gfr0y26dz1m71nxah9rnx80wnzj6hr"))))
4217 (build-system glib-or-gtk-build-system)
4219 `(#:tests? #f ; no tests
4220 #:out-of-source? #f ; for the 'install-doc' phase
4222 (let* ((out (assoc-ref %outputs "out"))
4223 (docdir (string-append out "/share/doc/"
4224 ,name "-" ,version)))
4225 (list "--with-alsa" "--with-jack" "--with-gmp"
4226 (string-append "--with-doc-dir=" docdir)))
4228 (modify-phases %standard-phases
4229 (add-after 'install 'install-doc
4230 (lambda* (#:key outputs #:allow-other-keys)
4231 (let* ((out (assoc-ref outputs "out"))
4232 (doc (string-append out "/share/doc/"
4233 ,name "-" ,version)))
4236 (install-file f doc))
4237 (find-files "." "\\.html$"))
4238 (copy-recursively "pix" (string-append doc "/pix"))
4241 `(("pkg-config" ,pkg-config)))
4243 `(("alsa-lib" ,alsa-lib)
4250 ("libsamplerate" ,libsamplerate)
4255 ("timidity++" ,timidity++)
4256 ("vorbis-tools" ,vorbis-tools)
4257 ("wavpack" ,wavpack)))
4258 (synopsis "Sound editor")
4259 (home-page "https://ccrma.stanford.edu/software/snd/")
4261 "Snd is a sound editor modelled loosely after Emacs. It can be
4262 customized and extended using either the s7 Scheme implementation (included in
4263 the Snd sources), Ruby, or Forth.")
4264 (license (license:non-copyleft "file://COPYING"))))
4266 (define-public noise-repellent
4268 (name "noise-repellent")
4273 (url "https://github.com/lucianodato/noise-repellent")
4275 (file-name (string-append name "-" version "-checkout"))
4278 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
4279 (build-system meson-build-system)
4282 (list (string-append "--prefix=" (assoc-ref %outputs "out")
4288 `(("pkg-config" ,pkg-config)))
4289 (home-page "https://github.com/lucianodato/noise-repellent")
4290 (synopsis "LV2 plugin for broadband noise reduction")
4291 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
4292 the following features:
4295 @item Spectral gating and spectral subtraction suppression rule
4296 @item Adaptive and manual noise thresholds estimation
4297 @item Adjustable noise floor
4298 @item Adjustable offset of thresholds to perform over-subtraction
4299 @item Time smoothing and a masking estimation to reduce artifacts
4300 @item Basic onset detector to avoid transients suppression
4301 @item Whitening of the noise floor to mask artifacts and to recover higher
4303 @item Option to listen to the residual signal
4305 @item Noise profile saved with the session
4308 (license license:lgpl3+)))
4310 (define-public lv2-speech-denoiser
4311 (let ((commit "04cfba929630404f8d4f4ca5bac8d9b09a99152f")
4314 (name "lv2-speech-denoiser")
4315 (version (git-version "0" revision commit))
4320 (url "https://github.com/lucianodato/speech-denoiser/")
4322 (file-name (git-file-name name version))
4324 (base32 "189l6lz8sz5vr6bjyzgcsrvksl1w6crqsg0q65r94b5yjsmjnpr4"))))
4325 (build-system meson-build-system)
4327 `(#:meson ,meson-0.55
4328 ;; Using a "release" build is recommended for performance
4329 #:build-type "release"
4331 (modify-phases %standard-phases
4332 (add-after 'unpack 'patch-meson-build
4334 (substitute* "meson.build"
4335 (("install_folder = 'sdenoise.lv2'")
4336 "install_folder = 'lib/lv2/sdenoise.lv2'")
4337 (("build/manifest.ttl") "../build/manifest.ttl"))
4339 (add-after 'unpack 'build-rnnoise
4341 (with-directory-excursion "rnnoise"
4342 (let ((old-CFLAGS (getenv "CFLAGS")))
4343 (setenv "CFLAGS" "-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL")
4344 (setenv "CONFIG_SHELL" (which "bash"))
4345 (invoke "autoreconf" "-vif")
4346 (invoke "sh" "configure"
4347 "--disable-examples"
4352 (setenv "CFLAGS" old-CFLAGS))))))))
4356 `(("autoconf" ,autoconf)
4357 ("automake" ,automake)
4358 ("libtool" ,libtool)
4359 ("pkg-config" ,pkg-config)))
4360 (home-page "https://github.com/werman/noise-suppression-for-voice")
4361 (synopsis "Speech denoise LV2 plugin based on Xiph's RNNoise library")
4362 (description "RNNoise is a library that uses deep learning to apply
4363 noise suppression to audio sources with voice presence. This package provides
4364 an LV2 audio plugin.")
4365 (license license:lgpl3+))))
4367 (define-public cli-visualizer
4369 (name "cli-visualizer")
4375 (url "https://github.com/dpayne/cli-visualizer")
4376 (commit (string-append "v" version))))
4377 (file-name (git-file-name name version))
4379 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
4380 (build-system cmake-build-system)
4382 ;; TODO: Try using the latest googletest for versions > 1.8.
4383 `( ;; ("googletest" ,googletest-1.8)
4387 ("ncurses" ,ncurses)
4388 ("pulseaudio" ,pulseaudio)))
4391 ;; XXX Enable tests after patching them to use the system googletest.
4392 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
4394 (modify-phases %standard-phases
4395 (add-after 'install 'install-examples
4396 (lambda* (#:key outputs #:allow-other-keys)
4397 (with-directory-excursion "../source/examples"
4398 (delete-file "mac_osx_config")
4399 (for-each (lambda (file)
4402 (assoc-ref outputs "out")
4406 (home-page "https://github.com/dpayne/cli-visualizer/")
4407 (synopsis "Command-line audio visualizer")
4408 (description "@code{cli-visualizer} displays fast-Fourier
4409 transforms (FFTs) of the sound being played, as well as other graphical
4411 (license license:expat)))
4420 (url "https://github.com/karlstav/cava")
4422 (file-name (git-file-name name version))
4425 "1mziklmqifhnb4kg9ia2r56r8wjn6xp40bkpf484hsgqvnrccl86"))))
4426 (build-system gnu-build-system)
4428 `(("autoconf" ,autoconf)
4429 ("automake" ,automake)
4430 ("libtool" ,libtool)))
4433 ("ncurses" ,ncurses)
4434 ("pulseaudio" ,pulseaudio)))
4437 (list (string-append "PREFIX=" %output)
4438 (string-append "FONT_DIR=" %output "/share/consolefonts"))
4440 (let ((lib (string-append %output "/lib")))
4441 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
4443 (modify-phases %standard-phases
4445 (lambda* (#:key outputs #:allow-other-keys)
4446 (setenv "HOME" (getcwd))
4447 (invoke "sh" "autogen.sh")))
4448 (add-before 'build 'make-cava-ldflags
4449 (lambda* (#:key outputs #:allow-other-keys)
4450 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
4452 (add-after 'install 'data
4453 (lambda* (#:key outputs #:allow-other-keys)
4454 (for-each (lambda (file)
4456 (string-append (assoc-ref outputs "out")
4457 "/share/doc/examples")))
4458 (find-files "example_files"))
4460 (home-page "https://karlstav.github.io/cava/")
4461 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
4462 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
4463 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
4464 (license license:expat)))
4466 (define-public fluid-3
4467 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
4474 ;; Only one file is required, but the release bundles the whole
4475 ;; software which is 50MiB as tar and 200MiB unpacked. The website
4476 ;; directly links the soundfont release to the github file download.
4477 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
4478 commit "/share/sound/FluidR3Mono_GM.sf3"))
4479 (file-name (string-append name "-" version ".sf3"))
4482 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
4483 (build-system trivial-build-system)
4485 `(#:modules ((guix build utils))
4488 (use-modules (guix build utils))
4489 (let ((file (assoc-ref %build-inputs "source"))
4490 (out (string-append %output "/share/soundfonts")))
4492 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
4494 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
4495 (synopsis "Pro-quality GM soundfont")
4496 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
4497 (license license:expat))))
4499 (define-public libfdk
4507 (url "https://github.com/mstorsjo/fdk-aac")
4508 (commit (string-append "v" version))))
4509 (file-name (git-file-name name version))
4512 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
4513 (build-system gnu-build-system)
4515 `(("autoconf" ,autoconf)
4516 ("automake" ,automake)
4517 ("libtool" ,libtool)))
4518 (home-page "https://github.com/mstorsjo/fdk-aac")
4519 (synopsis "Fraunhofer FDK AAC library")
4520 (description "FDK is a library for encoding and decoding Advanced Audio
4521 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
4522 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
4523 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
4524 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
4525 library supports sample rates up to 96 kHz and up to eight channels (7.1
4527 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
4528 "https://www.gnu.org/licenses/license-list.html#fdk"))))
4530 (define-public libopenshot-audio
4532 (name "libopenshot-audio")
4537 (url "https://github.com/OpenShot/libopenshot-audio")
4538 (commit (string-append "v" version))))
4539 (file-name (git-file-name name version))
4542 "13if0m5mvlqly8gmbhschzb9papkgp3yqivklhb949dhy16m8zgf"))))
4543 (build-system cmake-build-system)
4545 `(("alsa-lib" ,alsa-lib)
4546 ;; The following are for JUCE GUI components:
4548 ("freetype" ,freetype)
4549 ("libxrandr" ,libxrandr)
4550 ("libxinerama" ,libxinerama)
4551 ("libxcursor" ,libxcursor)))
4553 `(#:tests? #f ;there are no tests
4555 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
4556 (assoc-ref %build-inputs "freetype")
4557 "/include/freetype2"))))
4558 (home-page "https://openshot.org")
4559 (synopsis "Audio editing and playback for OpenShot")
4560 (description "OpenShot Audio Library (libopenshot-audio) allows
4561 high-quality editing and playback of audio, and is based on the JUCE
4563 (license license:lgpl3+)))
4565 (define-public faudio
4573 (url "https://github.com/FNA-XNA/FAudio")
4575 (file-name (git-file-name name version))
4577 (base32 "0v76pvsna7dx8nb53s7x2vfpws27wi3p34l7af5niqvyh0gl4mzr"))))
4579 '(#:tests? #f ; No tests.
4580 #:configure-flags '("-DGSTREAMER=ON")))
4581 (build-system cmake-build-system)
4582 (native-inputs `(("pkg-config" ,pkg-config)))
4583 (inputs `(("gstreamer" ,gstreamer)
4584 ("gst-plugins-base" ,gst-plugins-base)
4586 (home-page "https://github.com/FNA-XNA/FAudio")
4587 (synopsis "XAudio reimplementation")
4588 (description "FAudio is an XAudio reimplementation that focuses solely on
4589 developing fully accurate DirectX Audio runtime libraries.")
4592 ;; stb & utils/{ui,wav}common are dual-licenced under either of:
4594 license:public-domain))))
4596 (define-public gnaural
4599 (version "20110606")
4603 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
4607 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
4608 (build-system gnu-build-system)
4610 `(("alsa-lib" ,alsa-lib)
4612 ("libsndfile" ,libsndfile)
4613 ("portaudio" ,portaudio)))
4615 `(("pkg-config" ,pkg-config)))
4616 (home-page "http://gnaural.sourceforge.net/")
4617 (synopsis "Binaural beat synthesizer")
4618 (description "Gnaural is a programmable auditory binaural beat synthesizer
4619 intended to be used for brainwave entrainment. Gnaural supports creation of
4620 binaural beat tracks of different frequencies and exporting of tracks into
4621 different audio formats. Gnaural can also be linked over the internet with
4622 other Gnaural instances, allowing synchronous sessions between many users.")
4623 (license license:gpl2+)))
4625 (define-public darkice
4631 (uri (string-append "https://github.com/rafael2k/darkice/releases/"
4632 "download/v" version "/darkice-"
4636 "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76"))))
4637 (build-system gnu-build-system)
4638 (native-inputs `(("pkg-config" ,pkg-config)))
4639 (inputs `(("lame" ,lame)
4640 ("libvorbis" ,libvorbis)
4642 ("twolame" ,twolame)
4643 ("alsa-lib" ,alsa-lib)
4644 ("pulseaudio" ,pulseaudio)
4646 ("libsamplerate" ,libsamplerate)))
4649 (list (string-append "--with-lame-prefix="
4650 (assoc-ref %build-inputs "lame")))))
4651 (home-page "http://www.darkice.org/")
4652 (synopsis "Live audio streamer")
4653 (description "DarkIce is a live audio streamer. It takes audio input from
4654 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
4655 stream to one or more IceCast and/or ShoutCast servers.")
4656 (license license:gpl3+)))
4658 (define-public libltc
4666 (string-append "https://github.com/x42/libltc/releases/download/v"
4667 version "/libltc-" version ".tar.gz"))
4670 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
4671 (build-system gnu-build-system)
4673 `(#:parallel-tests? #f)) ;tests fail otherwise
4675 `(("doxygen" ,doxygen)
4676 ("pkg-config" ,pkg-config)))
4677 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
4678 (description "Libltc is a POSIX-C Library for handling
4679 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
4680 (home-page "https://x42.github.io/libltc/")
4681 (license license:lgpl3+)))
4683 (define-public ttaenc
4690 (uri (string-append "mirror://sourceforge/tta/"
4692 "/ttaenc-" version "-src.tgz"))
4695 "1iixpr4b89g9g1hwn8ak8k8iflcww3r5f09a117qdidc2nqcijdj"))))
4696 (build-system gnu-build-system)
4698 `(#:tests? #f ;no tests
4700 (list (string-append "CC=" ,(cc-for-target))
4701 (string-append "INSDIR=" (assoc-ref %outputs "out") "/bin"))
4703 (modify-phases %standard-phases
4704 (delete 'configure) ; no configure
4705 (add-before 'install 'make-bindir
4706 (lambda* (#:key outputs #:allow-other-keys)
4707 (let* ((out (assoc-ref outputs "out")))
4708 (mkdir-p (string-append out "/bin"))
4710 (synopsis "TTA lossless audio encoder")
4712 "TTA performs lossless compression on multichannel 8,16 and 24 bits
4713 data of the Wav audio files. Being lossless means that no data-
4714 quality is lost in the compression - when uncompressed, the data will
4715 be identical to the original. The compression ratios of TTA depend on
4716 the type of music file being compressed, but the compression size
4717 will generally range between 30% - 70% of the original. TTA format
4718 supports both of ID3v1/v2 and APEv2 tags.")
4719 (home-page "http://tausoft.org/")
4720 (license license:gpl2+)))
4722 (define-public libsoundio
4730 (url "https://github.com/andrewrk/libsoundio")
4732 (file-name (git-file-name name version))
4735 "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x"))))
4736 (build-system cmake-build-system)
4738 `(#:tests? #f)) ;no tests included
4740 `(("alsa-lib" ,alsa-lib)
4742 ("pulseaudio" ,pulseaudio)))
4744 `(("pkg-config" ,pkg-config)))
4745 (home-page "http://libsound.io")
4746 (synopsis "C library for real-time audio input and output")
4747 (description "@code{libsoundio} is a C library providing audio input and
4748 output. The API is suitable for real-time software such as digital audio
4749 workstations as well as consumer software such as music players.")
4750 (license license:expat)))
4752 (define-public redkite
4760 (url "https://gitlab.com/iurie-sw/redkite")
4761 (commit (string-append "v" version))))
4762 (file-name (git-file-name name version))
4764 (base32 "16j9zp5i7svq3g38rfb6h257qfgnd2brrxi7cjd2pdax9xxwj40y"))))
4765 (build-system cmake-build-system)
4767 `(#:tests? #f)) ;no tests included
4769 `(("cairo" ,cairo)))
4771 `(("pkg-config" ,pkg-config)))
4772 (synopsis "Small GUI toolkit")
4773 (description "Redkite is a small GUI toolkit developed in C++17 and
4774 inspired from other well known GUI toolkits such as Qt and GTK. It is
4775 minimal on purpose and is intended to be statically linked to applications,
4776 therefore satisfying any requirements they may have to be self contained,
4777 as is the case with audio plugins.")
4778 (home-page "https://gitlab.com/geontime/redkite")
4779 (license license:gpl3+)))
4781 (define-public carla
4790 (url "https://github.com/falkTX/Carla")
4791 (commit (string-append "v" version))))
4792 (file-name (git-file-name name version))
4795 "0c3y4a6cgi4bv1mg57i3qn5ia6pqjqlaylvkapj6bmpsw71ig22g"))))
4796 (build-system gnu-build-system)
4798 `(#:tests? #f ; no "check" target
4800 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
4802 (modify-phases %standard-phases
4803 (delete 'configure) ; no configure script
4804 (add-before 'build 'set-CC-variable-and-show-features
4807 (invoke "make" "features")))
4808 (add-after 'install 'make-carla-executable
4809 (lambda* (#:key outputs #:allow-other-keys)
4810 (let ((out (assoc-ref outputs "out")))
4811 (chmod (string-append out "/share/carla/carla") #o555)
4813 (add-after 'install 'wrap-executables
4814 (lambda* (#:key outputs #:allow-other-keys)
4815 (let ((out (assoc-ref outputs "out")))
4816 (wrap-script (string-append out "/bin/carla")
4817 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
4820 `(("alsa-lib" ,alsa-lib)
4822 ("fluidsynth" ,fluidsynth)
4825 ("libsndfile" ,libsndfile)
4826 ("gtk2" ,gtk+-2) ;needed for bridging GTK2 plugins in GTK3 hosts
4828 ("python-pyliblo" ,python-pyliblo)
4829 ("python-pyqt" ,python-pyqt)
4830 ("python-rdflib" ,python-rdflib)
4831 ;; python-pyqt shows the following error without python-wrapper:
4832 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
4833 ;; (ModuleNotFoundError: No module named 'PyQt5')
4834 ("python-wrapper" ,python-wrapper)
4836 ("qtbase" ,qtbase-5)
4839 ;; For WRAP-SCRIPT above.
4840 ("guile" ,guile-2.2)))
4842 `(("pkg-config" ,pkg-config)))
4843 (home-page "https://kx.studio/Applications:Carla")
4844 (synopsis "Audio plugin host")
4845 (description "Carla is a modular audio plugin host, with features like
4846 transport control, automation of parameters via MIDI CC and remote control
4847 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
4848 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
4849 default and preferred audio driver but also supports native drivers like ALSA.")
4850 (license license:gpl2+)))
4852 (define-public ecasound
4858 (uri (string-append "https://nosignal.fi/download/ecasound-"
4861 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
4862 (build-system gnu-build-system)
4863 (native-inputs `(("pkg-config" ,pkg-config)))
4864 ;; It would be nice to add mikmod to inputs if that gets packaged
4866 (inputs `(("alsa-lib" ,alsa-lib)
4870 ("vorbis-tools" ,vorbis-tools)
4873 ("timidity++" ,timidity++)
4874 ("libsndfile" ,libsndfile)
4875 ("libsamplerate" ,libsamplerate)
4876 ("ncurses" ,ncurses)
4879 (home-page "https://nosignal.fi/ecasound/index.php")
4880 (synopsis "Multitrack audio processing")
4881 (description "Ecasound is a software package designed for multitrack audio
4882 processing. It can be used for simple tasks like audio playback, recording and
4883 format conversions, as well as for multitrack effect processing, mixing,
4884 recording and signal recycling. Ecasound supports a wide range of audio inputs,
4885 outputs and effect algorithms. Effects and audio objects can be combined in
4886 various ways, and their parameters can be controlled by operator objects like
4887 oscillators and MIDI-CCs. A versatile console mode user-interface is included
4889 ;; As an exception to the above, the C, C++ and python implementations
4890 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
4891 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
4892 ;; that are not licensed under GPL.
4893 (license (list license:gpl2 license:lgpl2.1))))
4895 (define-public libaudec
4903 (url "https://git.zrythm.org/git/libaudec")
4904 (commit (string-append "v" version))))
4905 (file-name (git-file-name name version))
4908 "1570m2dfia17dbkhd2qhx8jjihrpm7g8nnyg6n4wif4vv229s7dz"))))
4909 (build-system meson-build-system)
4911 `(#:meson ,meson-0.55
4916 `(("libsamplerate" ,libsamplerate)
4917 ("libsndfile" ,libsndfile)))
4919 `(("pkg-config" ,pkg-config)))
4920 (synopsis "Library for reading and resampling audio files")
4921 (description "libaudec is a wrapper library over ffmpeg, sndfile and
4922 libsamplerate for reading and resampling audio files, based on Robin Gareus'
4923 @code{audio_decoder} code.")
4924 (home-page "https://git.zrythm.org/cgit/libaudec")
4925 (license license:agpl3+)))
4927 (define-public lv2lint
4935 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
4937 (file-name (git-file-name name version))
4940 "1jrka0hsn4n1clri7zfkcl3c2vi52144lkpjm81l51ff8rqy8ks1"))))
4941 (build-system meson-build-system)
4944 `("-Delf-tests=true" ; for checking symbol visibility
4945 "-Donline-tests=true"))) ; for checking URI existence
4951 `(("pkg-config" ,pkg-config)))
4952 (synopsis "LV2 plugin lint tool")
4953 (description "lv2lint is an LV2 lint-like tool that checks whether a
4954 given plugin and its UI(s) match up with the provided metadata and adhere
4955 to well-known best practices.")
4956 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
4957 (license license:artistic2.0)))
4959 (define-public lv2toweb
4967 (url "https://github.com/x42/lv2toweb")
4968 (commit (string-append "v" version))))
4969 (file-name (git-file-name name version))
4972 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
4973 (build-system gnu-build-system)
4975 `(#:tests? #f ; no "check" target
4976 #:make-flags (list "CC=gcc"
4977 (string-append "PREFIX=" (assoc-ref %outputs "out")))
4979 (modify-phases %standard-phases
4980 (delete 'configure))))
4985 `(("help2man" ,help2man)
4986 ("pkg-config" ,pkg-config)))
4987 (synopsis "Documentation generator for LV2 plugins")
4989 "lv2toweb allows the user to create an xhtml page with information
4990 about the given LV2 plugin, provided that the plugin and its UI(s) match up
4991 with the provided metadata and adhere to well-known best practices.")
4992 (home-page "https://github.com/x42/lv2toweb")
4993 (license (list license:isc license:gpl2))))
4995 (define-public ztoolkit
5003 (url "https://git.zrythm.org/git/ztoolkit")
5004 (commit (string-append "v" version))))
5005 (file-name (git-file-name name version))
5008 "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1"))))
5009 (build-system meson-build-system)
5011 `(("pkg-config" ,pkg-config)))
5012 ;; These are listed as propagated inputs because they are dependencies
5016 ("libx11" ,libx11)))
5017 (synopsis "GUI toolkit for LV2 plugins")
5018 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
5019 inspired by GTK. It handles events and low level drawing on behalf of
5020 the user and provides a high-level API for managing the UI and custom
5021 widgets. ZToolkit is written in C and was created to be used for building
5022 audio plugin UIs, where the dependencies often need to be kept to a
5024 (home-page "https://git.zrythm.org/cgit/ztoolkit/")
5025 (license license:agpl3+)))
5027 (define-public libinstpatch
5029 (name "libinstpatch")
5035 (url "https://github.com/swami/libinstpatch")
5036 (commit (string-append "v" version))))
5037 (file-name (git-file-name name version))
5039 (base32 "1w3nk0vvd1cxic70n45zjip0bdsrja969myvyvkhq3ngbarbykir"))))
5040 (build-system cmake-build-system)
5042 `(#:tests? #f)) ;there are no tests
5044 `(("glib:bin" ,glib "bin")
5045 ("pkg-config" ,pkg-config)))
5048 ("libsndfile" ,libsndfile)))
5049 (home-page "http://www.swamiproject.org/")
5050 (synopsis "Instrument file software library")
5052 "libInstPatch is a library for processing digital sample based MIDI
5053 instrument \"patch\" files. The types of files libInstPatch supports are used
5054 for creating instrument sounds for wavetable synthesis. libInstPatch provides
5055 an object framework (based on GObject) to load patch files, which can then be
5056 edited, converted, compressed and saved.")
5057 (license license:lgpl2.1)))
5059 (define-public ztoolkit-rsvg
5060 (package/inherit ztoolkit
5061 (name "ztoolkit-rsvg")
5063 `(#:configure-flags `("-Denable_rsvg=true")))
5065 `(("librsvg" ,librsvg)
5066 ,@(package-propagated-inputs ztoolkit)))
5067 (synopsis "ZToolkit with SVG support")))
5069 (define-public lsp-dsp-lib
5071 (name "lsp-dsp-lib")
5076 (uri (string-append "https://github.com/sadko4u/lsp-dsp-lib/"
5077 "releases/download/" version
5078 "/lsp-dsp-lib-" version "-src.tar.gz"))
5080 (base32 "0lkar6r9jfrrqswi8nnndlm5a9kfwqjn92d81gp2yhc3p46xsswz"))))
5081 (build-system gnu-build-system)
5083 `(#:tests? #f ; no tests
5085 (list (string-append "CC=" ,(cc-for-target)))
5087 (modify-phases %standard-phases
5088 (add-after 'unpack 'omit-static-library
5090 (substitute* "src/Makefile"
5091 ((".*@.*ARTIFACT_SLIB.*") "") ; don't install it
5092 ((" \\$\\(ARTIFACT_SLIB\\)") "")))) ; don't build it
5094 (lambda* (#:key outputs #:allow-other-keys)
5095 (invoke "make" "config"
5096 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
5097 (home-page "https://github.com/sadko4u/lsp-dsp-lib")
5098 (synopsis "Digital signal processing library")
5099 (description "The LSP DSP library provides a set of functions that perform
5100 SIMD-optimized computing on several hardware architectures. All functions
5101 currently operate on IEEE-754 single-precision floating-point numbers.")
5102 (license license:lgpl3+)))
5104 (define-public codec2
5112 (url "https://github.com/drowe67/codec2")
5113 (commit (string-append "v" version))))
5114 (file-name (git-file-name name version))
5116 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
5117 (build-system cmake-build-system)
5121 ("valgrind" ,valgrind)))
5123 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
5125 (modify-phases %standard-phases
5126 (add-before 'check 'set-test-environment
5128 (setenv "HOME" "/tmp")
5130 (synopsis "Speech codec")
5132 "Codec 2 is a speech codec designed for communications quality speech
5133 between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
5135 (home-page "https://www.rowetel.com/?page_id=452")
5136 (license license:lgpl2.1)))
5138 (define-public mbelib
5139 ;; No release since 2016, use commit directly.
5140 (let ((commit "9a04ed5c78176a9965f3d43f7aa1b1f5330e771f")
5144 (version (git-version "1.3.0" revision commit))
5149 (url "https://github.com/szechyjs/mbelib")
5151 (file-name (git-file-name name version))
5153 (base32 "0a7xmf87xnjzm5b437j2vnwv39x0ascja1j04c5wj6xs1529gw8h"))))
5154 (build-system cmake-build-system)
5155 (home-page "https://github.com/szechyjs/mbelib")
5156 (synopsis "P25 Phase 1 and ProVoice vocoder")
5158 "The mbelib library provides support for the 7200x4400 bit/s codec used
5159 in P25 Phase 1, the 7100x4400 bit/s codec used in ProVoice and the @emph{Half
5160 Rate} 3600x2250 bit/s vocoder used in various radio systems.")
5161 (license (list license:bsd-3 ; test/ framework
5162 license:isc))))) ; the rest
5164 (define-public ableton-link
5166 (name "ableton-link")
5171 (url "https://github.com/Ableton/link")
5172 (commit (string-append "Link-" version))))
5173 (file-name (git-file-name name version))
5176 "0262vm0v7hmqjhqx5xikh529p3c065p1yld6ymaiz74yq1dnnjir"))
5177 (modules '((guix build utils)))
5179 (search-patches "ableton-link-system-libraries-debian.patch"))
5182 ;; Tests assume that CMake's "build" directory is a
5183 ;; sub-directory of the source tree, so we fix it.
5184 (substitute* "ci/run-tests.py"
5185 (("root_dir,") "root_dir, os.pardir,"))
5186 ;; Unbundle dependencies.
5187 (delete-file-recursively "third_party")
5188 (delete-file-recursively "modules")
5190 (build-system cmake-build-system)
5192 `(("catch" ,catch-framework)
5193 ("python" ,python) ;for running tests
5194 ("portaudio" ,portaudio) ;for portaudio examples
5195 ("qtbase" ,qtbase-5) ;for Qt examples
5196 ("qtdeclarative" ,qtdeclarative)
5197 ("qttools" ,qttools)))
5199 `(("jack" ,jack-1) ;for JACK examples
5200 ("qtquickcontrols" ,qtquickcontrols))) ;for Qt examples
5202 ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp
5203 ;; contains '#include <asio.hpp>'.
5207 '("-DLINK_BUILD_QT_EXAMPLES=ON"
5208 "-DLINK_BUILD_JACK=ON")
5210 (modify-phases %standard-phases
5212 (lambda* (#:key inputs #:allow-other-keys)
5213 (let* ((python (string-append (assoc-ref inputs "python")
5215 (run-tests (string-append "../ableton-link-"
5217 "-checkout/ci/run-tests.py")))
5218 (invoke python run-tests "--target" "LinkCoreTest")
5219 (invoke python run-tests "--target" "LinkDiscoveryTest"))))
5220 (add-before 'install 'patch-cmake
5221 (lambda* (#:key inputs #:allow-other-keys)
5222 (let* ((source (string-append "../ableton-link-"
5225 (substitute* (string-append source
5226 "cmake_include/AsioStandaloneConfig.cmake")
5227 (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./"
5228 "modules/asio-standalone/asio/include"))
5229 (string-append (assoc-ref inputs "asio")
5231 (substitute* (string-append source "AbletonLinkConfig.cmake")
5232 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include")
5233 "${CMAKE_CURRENT_LIST_DIR}/../../../include")
5234 (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp")
5235 "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp"))
5238 (lambda* (#:key outputs #:allow-other-keys)
5239 (let* ((out (assoc-ref outputs "out"))
5240 (bin (string-append out "/bin"))
5241 (lib-cmake (string-append out "/lib/cmake/ableton-link"))
5242 (source (string-append "../ableton-link-" ,version "-checkout")))
5243 (for-each (lambda (test-file)
5244 (delete-file test-file))
5245 '("bin/LinkDiscoveryTest" "bin/LinkCoreTest"))
5246 (copy-recursively "bin" bin)
5247 (copy-recursively (string-append source "/include/ableton")
5248 (string-append out "/include/ableton"))
5249 (install-file (string-append source "/AbletonLinkConfig.cmake")
5251 (install-file (string-append source
5252 "/cmake_include/AsioStandaloneConfig.cmake")
5253 (string-append lib-cmake "/cmake_include"))
5255 (home-page "https://github.com/Ableton/link")
5256 (synopsis "Synchronize musical beat, tempo, and phase across multiple applications")
5258 "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase
5259 across multiple applications running on one or more devices. Applications on devices
5260 connected to a local network discover each other automatically and form a musical
5261 session in which each participant can perform independently: anyone can start or stop
5262 while still staying in time.")
5263 (license license:gpl2+)))
5271 (uri (string-append "mirror://sourceforge/butt/butt/butt-"
5272 version "/butt-" version ".tar.gz"))
5275 "1dfspdh3f18lpp7asxpj63b9zfpvazi7shgrdacg17gd42ycayq5"))
5276 (modules '((guix build utils)))
5278 '(substitute* "src/butt.cpp"
5279 ((".*zica.*") "")))))
5280 (build-system gnu-build-system)
5283 (modify-phases %standard-phases
5284 (add-after 'install 'install-documentation
5285 (lambda* (#:key inputs outputs #:allow-other-keys)
5286 (let* ((out (assoc-ref outputs "out"))
5287 (manual (assoc-ref inputs "manual"))
5288 (doc (string-append out "/share/doc/" ,name "-" ,version)))
5289 (install-file "README" doc)
5290 (copy-file manual (string-append doc "/butt-manual.pdf"))))))))
5297 ("libsamplerate" ,libsamplerate)
5298 ("libvorbis" ,libvorbis)
5300 ("libxext" ,libxext)
5301 ("libxfixes" ,libxfixes)
5303 ("libxrender" ,libxrender)
5305 ("openssl" ,openssl)
5307 ("portaudio" ,portaudio)))
5309 `(("pkg-config" ,pkg-config)
5312 (uri (string-append "https://danielnoethen.de/butt/butt-"
5313 version "_manual.pdf"))
5316 "1w3krh7f2v5vdz18hqycnpn0qv1x6xl6pa1najgp4jbfisjc1mn8"))))))
5317 (home-page "https://danielnoethen.de/butt/")
5318 (synopsis "Audio streaming tool")
5319 (description "Butt is a tool to stream audio to a ShoutCast or
5321 (license license:gpl2+)))
5323 (define-public siggen
5331 (url "https://github.com/bleskodev/siggen")
5332 (commit "a407611b59d59c7770bbe62ba9b8e9a948cf3210")))
5333 (file-name (git-file-name name version))
5336 "0szhgfd9kddr6qsz0imp0x66jjn6ry236f35vjl82ivc1v2bllcb"))))
5337 (build-system gnu-build-system)
5339 `(#:make-flags (list (string-append "INSDIR=" %output "/bin")
5340 (string-append "MANDIR=" %output "/share/man"))
5341 #:tests? #f ; no tests
5343 (modify-phases %standard-phases
5344 ;; Patch misc.c to prevent a segfault.
5345 (add-after 'unpack 'patch-segfault
5347 (substitute* "misc.c"
5348 (("#include <stdio.h>\n" all)
5349 (string-append all "#include <string.h>\n")))))
5352 (lambda* (#:key make-flags outputs #:allow-other-keys)
5353 (let ((out (assoc-ref outputs "out")))
5354 (for-each (lambda (dir)
5355 (mkdir-p (string-append out dir)))
5356 (list "/bin" "/share/man/man1" "/share/man/man5"))
5357 (apply invoke "make" "sysinstall" make-flags)))))))
5359 `(("ncurses" ,ncurses)))
5361 `(("groff" ,groff-minimal) ; for nroff
5362 ("util-linux" ,util-linux))) ; for col
5363 (home-page "https://github.com/bleskodev/siggen")
5364 (synopsis "Signal generation tools")
5365 (description "siggen is a set of tools for imitating a laboratory signal
5366 generator, generating audio signals out of Linux's /dev/dsp audio
5367 device. There is support for mono and/or stereo and 8 or 16 bit samples.")
5368 (license license:gpl2)))
5370 (define-public mda-lv2
5377 (uri (string-append "http://download.drobilla.net/mda-lv2-"
5378 version ".tar.bz2"))
5380 (base32 "1nspk2j11l65m5r9z5isw8j749vh9a89wgx8mkrrq15f4iq12rnd"))))
5381 (build-system waf-build-system)
5383 `(#:tests? #f ; There are no tests.
5385 (list (string-append "--prefix="
5386 (assoc-ref %outputs "out")))))
5390 `(("pkg-config" ,pkg-config)))
5391 (native-search-paths
5392 (list (search-path-specification
5393 (variable "LV2_PATH")
5394 (files '("lib/lv2")))))
5395 (home-page "https://drobilla.net/software/mda-lv2")
5396 (synopsis "Audio plug-in pack for LV2")
5398 "MDA-LV2 is an LV2 port of the MDA plugins. It includes effects and a few
5399 instrument plugins.")
5400 (license license:gpl3+)))