1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
4 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
5 ;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
7 ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
9 ;;; Copyright © 2016 ng0 <ng0@n0.is>
10 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
11 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2018, 2020 Oleg Pykhalov <go.wigust@gmail.com>
13 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
14 ;;; Copyright © 2018, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
15 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
16 ;;; Copyright © 2018 Brett Gilio <brettg@gnu.org>
17 ;;; Copyright © 2018, 2019 Marius Bakke <mbakke@fastmail.com>
18 ;;; Copyright © 2018 Thorsten Wilms <t_w_@freenet.de>
19 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
20 ;;; Copyright © 2018 Brendan Tildesley <mail@brendan.scot>
21 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
22 ;;; Copyright © 2019 Leo Famulari <leo@famulari.name>
23 ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
24 ;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
25 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
26 ;;; Copyright © 2019, 2020 Alexandros Theodotou <alex@zrythm.org>
27 ;;; Copyright © 2019 Christopher Lemmer Webber <cwebber@dustycloud.org>
28 ;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
29 ;;; Copyright © 2019 Hartmt Goebel <h.goebel@crazy-compilers.com>
30 ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
31 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
32 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
34 ;;; This file is part of GNU Guix.
36 ;;; GNU Guix is free software; you can redistribute it and/or modify it
37 ;;; under the terms of the GNU General Public License as published by
38 ;;; the Free Software Foundation; either version 3 of the License, or (at
39 ;;; your option) any later version.
41 ;;; GNU Guix is distributed in the hope that it will be useful, but
42 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
43 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44 ;;; GNU General Public License for more details.
46 ;;; You should have received a copy of the GNU General Public License
47 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
49 (define-module (gnu packages audio)
50 #:use-module (gnu packages)
51 #:use-module (gnu packages algebra)
52 #:use-module (gnu packages autotools)
53 #:use-module (gnu packages avahi)
54 #:use-module (gnu packages backup)
55 #:use-module (gnu packages base)
56 #:use-module (gnu packages bison)
57 #:use-module (gnu packages boost)
58 #:use-module (gnu packages check)
59 #:use-module (gnu packages compression)
60 #:use-module (gnu packages curl)
61 #:use-module (gnu packages dbm)
62 #:use-module (gnu packages documentation)
63 #:use-module (gnu packages elf)
64 #:use-module (gnu packages emacs)
65 #:use-module (gnu packages file)
66 #:use-module (gnu packages flex)
67 #:use-module (gnu packages fltk)
68 #:use-module (gnu packages fontutils)
69 #:use-module (gnu packages gcc)
70 #:use-module (gnu packages gettext)
71 #:use-module (gnu packages glib)
72 #:use-module (gnu packages gnome)
73 #:use-module (gnu packages gnunet) ; libmicrohttpd
74 #:use-module (gnu packages gperf)
75 #:use-module (gnu packages gtk)
76 #:use-module (gnu packages guile)
77 #:use-module (gnu packages icu4c)
78 #:use-module (gnu packages image)
79 #:use-module (gnu packages libbsd)
80 #:use-module (gnu packages libusb)
81 #:use-module (gnu packages linux)
82 #:use-module (gnu packages llvm)
83 #:use-module (gnu packages man)
84 #:use-module (gnu packages maths)
85 #:use-module (gnu packages mp3) ;taglib
86 #:use-module (gnu packages multiprecision)
87 #:use-module (gnu packages music)
88 #:use-module (gnu packages ncurses)
89 #:use-module (gnu packages onc-rpc)
90 #:use-module (gnu packages perl)
91 #:use-module (gnu packages pkg-config)
92 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
93 #:use-module (gnu packages python)
94 #:use-module (gnu packages python-xyz)
95 #:use-module (gnu packages qt)
96 #:use-module (gnu packages rdf)
97 #:use-module (gnu packages readline)
98 #:use-module (gnu packages sdl)
99 #:use-module (gnu packages serialization)
100 #:use-module (gnu packages telephony)
101 #:use-module (gnu packages linphone)
102 #:use-module (gnu packages tls)
103 #:use-module (gnu packages valgrind)
104 #:use-module (gnu packages video)
105 #:use-module (gnu packages vim) ;xxd
106 #:use-module (gnu packages webkit)
107 #:use-module (gnu packages wxwidgets)
108 #:use-module (gnu packages xiph)
109 #:use-module (gnu packages xml)
110 #:use-module (gnu packages xorg)
111 #:use-module (guix build-system cmake)
112 #:use-module (guix build-system glib-or-gtk)
113 #:use-module (guix build-system gnu)
114 #:use-module (guix build-system meson)
115 #:use-module (guix build-system python)
116 #:use-module (guix build-system trivial)
117 #:use-module (guix build-system waf)
118 #:use-module (guix download)
119 #:use-module (guix git-download)
120 #:use-module ((guix licenses) #:prefix license:)
121 #:use-module (guix packages)
122 #:use-module (guix utils)
123 #:use-module (srfi srfi-1)
124 #:use-module (srfi srfi-26))
126 (define-public vo-amrwbenc
134 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
135 name "/" name "-" version ".tar.gz"))
137 (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn"))))
138 (build-system gnu-build-system)
139 (synopsis "Adaptive Multi Rate Codec")
140 (description "VO-AMR is a library of VisualOn implementation of
141 Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.")
142 (home-page "https://sourceforge.net/projects/opencore-amr/")
143 (license license:asl2.0)))
145 (define-public opencore-amr
147 (name "opencore-amr")
153 (string-append "https://sourceforge.net/projects/opencore-amr/files/"
154 name "/" name "-" version ".tar.gz"))
156 (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c"))))
157 (build-system gnu-build-system)
158 (synopsis "Adaptive Multi Rate Codec")
159 (description "OpenCore-AMR is a library of OpenCORE Framework
160 implementation of Adaptive Multi Rate Narrowband and Wideband
161 (AMR-NB and AMR-WB) speech codec.")
162 (home-page "https://sourceforge.net/projects/opencore-amr/")
163 (license license:asl2.0)))
165 (define-public alsa-modular-synth
167 (name "alsa-modular-synth")
171 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
172 "/" version "/ams-" version ".tar.bz2"))
175 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
176 (build-system gnu-build-system)
180 "CXXFLAGS=-std=gnu++11")
182 (modify-phases %standard-phases
183 ;; Insert an extra space between linker flags.
184 (add-before 'configure 'add-missing-space
186 (substitute* "configure"
187 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
188 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
191 `(("alsa-lib" ,alsa-lib)
192 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
193 ;; license incompatibility.
194 ("clalsadrv" ,clalsadrv)
201 `(("pkg-config" ,pkg-config)
204 (home-page "http://alsamodular.sourceforge.net/")
205 (synopsis "Realtime modular synthesizer and effect processor")
207 "AlsaModularSynth is a digital implementation of a classical analog
208 modular synthesizer system. It uses virtual control voltages to control the
209 parameters of the modules. The control voltages which control the frequency
210 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
211 Filter) modules follow the convention of 1V / Octave.")
212 (license license:gpl2)))
221 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
224 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
225 (build-system waf-build-system)
227 `(#:tests? #f ; no check target
230 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
234 "--enable-samplerate"
239 ("libsndfile" ,libsndfile)
240 ("libsamplerate" ,libsamplerate)
242 ("ffmpeg" ,ffmpeg))) ; for libavcodec
244 `(("pkg-config" ,pkg-config)))
245 (home-page "https://aubio.org/")
246 (synopsis "Library for audio labelling")
248 "aubio is a tool designed for the extraction of annotations from audio
249 signals. Its features include segmenting a sound file before each of its
250 attacks, performing pitch detection, tapping the beat and producing MIDI
251 streams from live audio.")
252 (license license:gpl3+)))
254 (define (ardour-rpath-phase major-version)
255 `(lambda* (#:key outputs #:allow-other-keys)
256 (let ((libdir (string-append (assoc-ref outputs "out")
257 "/lib/ardour" ,major-version)))
258 (substitute* "wscript"
259 (("linker_flags = \\[\\]")
260 (string-append "linker_flags = [\""
263 libdir "/backends" ":"
264 libdir "/engines" ":"
265 libdir "/panners" ":"
266 libdir "/surfaces" ":"
267 libdir "/vamp" "\"]"))))
270 (define-public ardour
277 (url "https://git.ardour.org/ardour/ardour.git")
280 ;; Ardour expects this file to exist at build time. The revision
282 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
283 `(call-with-output-file
284 "libs/ardour/revision.cc"
286 (format port ,(string-append "#include \"ardour/revision.h\"
287 namespace ARDOUR { const char* revision = \"" version "\" ; }"))
291 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
292 (file-name (string-append name "-" version))))
293 (build-system waf-build-system)
295 `(#:configure-flags '("--cxx11" ; required by gtkmm
296 "--no-phone-home" ; don't contact ardour.org
297 "--freedesktop" ; build .desktop file
298 "--test") ; build unit tests
300 (modify-phases %standard-phases
301 (add-after 'unpack 'set-rpath-in-LDFLAGS
302 ,(ardour-rpath-phase (version-major version)))
303 (add-after 'install 'install-freedesktop-files
304 (lambda* (#:key outputs #:allow-other-keys)
305 (let* ((out (assoc-ref outputs "out"))
306 (share (string-append out "/share"))
307 (ver ,(version-major version)))
310 (let ((dir (string-append share "/icons/hicolor/"
311 size "x" size "/apps")))
314 (string-append "gtk2_ardour/resources/Ardour-icon_"
316 (string-append dir "/ardour" ver ".png"))))
317 '("16" "22" "32" "48" "256"))
318 (install-file (string-append "build/gtk2_ardour/ardour"
320 (string-append share "/applications/"))
321 (install-file (string-append "build/gtk2_ardour/ardour"
323 (string-append share "/appdata/")))
328 `(("alsa-lib" ,alsa-lib)
341 ("libarchive" ,libarchive)
342 ("libart-lgpl" ,libart-lgpl)
343 ("libgnomecanvasmm" ,libgnomecanvasmm)
346 ("libsamplerate" ,libsamplerate)
347 ("libsndfile" ,libsndfile)
349 ("libvorbis" ,libvorbis)
355 ("python-rdflib" ,python-rdflib)
356 ("readline" ,readline)
358 ("rubberband" ,rubberband)
366 `(("cppunit" ,cppunit)
367 ("gettext" ,gettext-minimal)
370 ("pkg-config" ,pkg-config)))
371 (home-page "https://ardour.org")
372 (synopsis "Digital audio workstation")
374 "Ardour is a multi-channel digital audio workstation, allowing users to
375 record, edit, mix and master audio and MIDI projects. It is targeted at audio
376 engineers, musicians, soundtrack editors and composers.")
377 (license license:gpl2+)))
379 (define-public audacity
387 (url "https://github.com/audacity/audacity.git")
388 (commit (string-append "Audacity-" version))))
389 (file-name (git-file-name name version))
392 "0707fsnrl4vjalsi21w4blwgz024qhd0w8rdd5j5vpxf5lyk2rbk"))
393 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
394 (modules '((guix build utils)))
396 ;; Remove bundled libraries.
400 (delete-file-recursively (string-append "lib-src/" dir)))
401 '("expat" "ffmpeg" "lame" "libflac" "libid3tag" "libmad" "libogg"
402 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
403 "portaudio-v19" "portmidi" "soundtouch" "twolame"
404 ;; FIXME: these libraries have not been packaged yet:
412 ;; FIXME: we have this library, but it differs in that the Slide
413 ;; class does not have a member "getInverseStretchedTime".
417 (build-system glib-or-gtk-build-system)
419 `(("wxwidgets" ,wxwidgets)
421 ("alsa-lib" ,alsa-lib)
427 ("libid3tag" ,libid3tag)
429 ;;("libsbsms" ,libsbsms) ;bundled version is modified
430 ("libsndfile" ,libsndfile)
431 ("soundtouch" ,soundtouch)
432 ("soxr" ,soxr) ;replaces libsamplerate
435 ("libvorbis" ,libvorbis)
437 ("lilv" ,lilv) ;for lv2
438 ("suil" ,suil) ;for lv2
439 ("portaudio" ,portaudio)
440 ("portmidi" ,portmidi)))
442 `(("autoconf" ,autoconf)
443 ("automake" ,automake)
444 ("gettext" ,gettext-minimal) ;for msgfmt
446 ("pkg-config" ,pkg-config)
451 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
452 (libmad (assoc-ref %build-inputs "libmad"))
453 (portmidi (assoc-ref %build-inputs "portmidi")))
455 ;; Loading FFmpeg dynamically is problematic.
456 "--disable-dynamic-loading"
457 ;; SSE instructions are available on Intel systems only.
458 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
462 '("--enable-sse=no"))
463 ;; portmidi, libid3tag and libmad provide no .pc files, so
464 ;; pkg-config fails to find them. Force their inclusion.
465 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
466 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
467 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
468 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
469 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
470 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
471 "EXPAT_USE_SYSTEM=yes"
472 "FFMPEG_USE_SYSTEM=yes"
473 "LAME_USE_SYSTEM=yes"
474 "LIBFLAC_USE_SYSTEM=yes"
475 "LIBID3TAG_USE_SYSTEM=yes"
476 "LIBMAD_USE_SYSTEM=yes"
477 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
478 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
479 "LIBSNDFILE_USE_SYSTEM=yes"
480 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
481 "LIBSOXR_USE_SYSTEM=yes"
482 "LIBTWOLAME_USE_SYSTEM=yes"
483 "LIBVAMP_USE_SYSTEM=yes"
484 "LIBVORBIS_USE_SYSTEM=yes"
486 "PORTAUDIO_USE_SYSTEM=yes"))
488 (modify-phases %standard-phases
489 (add-after 'unpack 'fix-sbsms-check
491 ;; This check is wrong: there is no 2.2.0 release; not even the
492 ;; bundled sources match this release string.
493 (substitute* '("m4/audacity_checklib_libsbsms.m4"
495 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
497 (add-after 'unpack 'use-upstream-headers
498 (lambda* (#:key inputs #:allow-other-keys)
499 (substitute* '("src/NoteTrack.cpp"
502 "src/AudioIOBase.cpp")
503 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
504 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
505 (substitute* "src/prefs/MidiIOPrefs.cpp"
506 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
508 ;; The test suite is not "well exercised" according to the developers,
509 ;; and fails with various errors. See
510 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
512 (home-page "https://www.audacityteam.org/")
513 (synopsis "Software for recording and editing sounds")
515 "Audacity is a multi-track audio editor designed for recording, playing
516 and editing digital audio. It features digital effects and spectrum analysis
518 (license license:gpl2+)))
520 (define-public audiofile
528 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
530 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
532 ;; CVE references according to nixpgs
534 "audiofile-fix-datatypes-in-tests.patch"
535 "audiofile-fix-sign-conversion.patch"
536 "audiofile-hurd.patch"
537 "audiofile-CVE-2015-7747.patch"
539 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
540 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
542 "audiofile-Check-the-number-of-coefficients.patch"
544 "audiofile-Fix-overflow-in-MSADPCM-decodeSam.patch"
545 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
546 "audiofile-Fix-multiply-overflow-sfconvert.patch"
547 "audiofile-signature-of-multiplyCheckOverflow.patch"
549 "audiofile-Fail-on-error-in-parseFormat.patch"
551 "audiofile-division-by-zero-BlockCodec-runPull.patch"
552 "audiofile-CVE-2018-13440.patch"
553 "audiofile-CVE-2018-17095.patch"))))
554 (build-system gnu-build-system)
556 `(("alsa-lib" ,alsa-lib)))
557 (home-page "https://audiofile.68k.org/")
558 (synopsis "Library to handle various audio file formats")
559 (description "This is an open-source version of SGI's audiofile library.
560 It provides a uniform programming interface for processing of audio data to
561 and from audio files of many common formats.
563 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
564 .snd/.au, BICS, and raw data. Supported compression formats are currently
565 G.711 mu-law and A-law.")
566 (license license:lgpl2.1+)))
568 (define-public autotalent
574 (uri (string-append "http://tombaran.info/autotalent-"
578 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
579 (build-system gnu-build-system)
581 `(#:tests? #f ; no check target
583 (modify-phases %standard-phases
584 ;; no configure script
586 (add-before 'install 'prepare-target-directory
587 (lambda* (#:key outputs #:allow-other-keys)
588 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
590 (add-after 'unpack 'override-target-directory
591 (lambda* (#:key outputs #:allow-other-keys)
592 (substitute* "Makefile"
593 (("/usr/lib64/ladspa")
594 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
597 `(("ladspa" ,ladspa)))
598 (home-page "http://tombaran.info/autotalent.html")
599 (synopsis "Pitch-correction LADSPA audio plugin")
601 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
602 controls are allowable notes, strength of correction, LFO for vibrato and
604 ;; All code except the FFT routine is licensed under GPLv2+.
605 ;; The FFT routine is under BSD-3.
606 (license license:gpl2+)))
614 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
619 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
620 (patches (search-patches "azr3.patch"))))
621 (build-system gnu-build-system)
623 `(#:tests? #f ; no check target
626 (string-append "prefix=" %output)
627 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
629 (modify-phases %standard-phases
630 (add-before 'install 'fix-timestamp
632 (let ((early-1980 315619200)) ; 1980-01-02 UTC
633 (utime "azr3.1" early-1980 early-1980))
641 `(("pkg-config" ,pkg-config)))
642 (home-page "http://ll-plugins.nongnu.org/azr3/")
643 (synopsis "Tonewheel organ synthesizer")
645 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
646 with drawbars, distortion and rotating speakers. The organ has three
647 sections, two polyphonic sections with nine drawbars each and one monophonic
648 bass section with five drawbars. A standalone JACK application and LV2
649 plugins are provided.")
650 (license license:gpl2)))
658 (uri (string-append "https://calf-studio-gear.org/files/calf-"
662 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
663 (build-system gnu-build-system)
665 `(("fluidsynth" ,fluidsynth)
676 `(("pkg-config" ,pkg-config)))
678 (list (search-path-specification
679 (variable "LV2_PATH")
680 (files '("lib/lv2")))))
681 (home-page "http://calf.sourceforge.net/")
682 (synopsis "Audio plug-in pack for LV2 and JACK environments")
684 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
685 The suite contains lots of effects (delay, modulation, signal processing,
686 filters, equalizers, dynamics, distortion and mastering effects),
687 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
688 tools (analyzer, mono/stereo tools, crossovers).")
689 ;; calfjackhost is released under GPLv2+
690 ;; The plugins are released under LGPLv2.1+
691 (license (list license:lgpl2.1+ license:gpl2+))))
693 (define-public caps-plugins-lv2
695 (name "caps-plugins-lv2")
696 (version "0.9.24") ; version that has been ported.
699 ;; The Github project hasn't tagged a release.
702 ;; Actually https://github.com/moddevices/caps-lv2.git, but it's
703 ;; missing fixes for newer glibc, so using the origin of a pull
704 ;; request regarding this issue:
705 (url "https://github.com/jujudusud/caps-lv2.git")
706 (commit "9c9478b7fbd8f9714f552ebe2a6866398b0babfb")))
707 (file-name (git-file-name name version))
710 "1idfnazin3cca41zw1a8vwgnxjnkrap7bxxjamjqvgpmvydgcam1"))))
711 (build-system gnu-build-system)
713 `(#:tests? #f ; no check target
715 (modify-phases %standard-phases
716 ;; no configure script
718 (add-after 'unpack 'override-target-directory
719 (lambda* (#:key outputs #:allow-other-keys)
720 (substitute* (find-files "plugins" "Makefile")
721 (("/usr/local")(assoc-ref outputs "out")))
725 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
726 (home-page "https://github.com/moddevices/caps-lv2")
727 (synopsis "LV2 port of the CAPS audio plugin colection")
729 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
730 guitar amplification and a small range of classic effects, signal processors and
731 generators of mostly elementary and occasionally exotic nature.")
732 (license license:gpl3+)))
734 (define-public infamous-plugins
736 (name "infamous-plugins")
741 (url "https://github.com/ssj71/infamousPlugins.git")
742 (commit (string-append "v" version))))
743 (file-name (git-file-name name version))
746 "0hmqk80w4qxq09iag7b7srf2g0wigkyhzq0ywxvhz2iz0hq9k0dh"))))
747 (build-system cmake-build-system)
749 `(#:tests? #f ; there are no tests
751 (modify-phases %standard-phases
752 (add-after 'unpack 'remove-compiler-flags
754 (substitute* (find-files "." "CMakeLists.txt")
755 (("-msse2 -mfpmath=sse") ""))
762 ("zita-resampler" ,zita-resampler)))
764 `(("pkg-config" ,pkg-config)))
765 (home-page "https://ssj71.github.io/infamousPlugins")
766 (synopsis "LV2 plugins for live use")
768 "The infamous plugins are a collection of LV2 audio plugins for live
769 performances. The plugins include a cellular automaton synthesizer, an
770 envelope follower, distortion effects, tape effects and more.")
771 (license license:gpl2+)))
773 (define-public swh-plugins
780 (url "https://github.com/swh/ladspa.git")
781 (commit (string-append "v" version))))
782 (file-name (git-file-name name version))
785 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
787 `(("autoconf" ,autoconf)
788 ("automake" ,automake)
789 ("gettext" ,gettext-minimal) ;for autopoint
792 ("pkg-config" ,pkg-config)
796 ("perl-xml-parser" ,perl-xml-parser)))
797 (build-system gnu-build-system)
798 (home-page "http://plugin.org.uk")
799 (synopsis "The SWH Plugins package for the LADSPA plugin system")
800 (description "This package provides Steve Harris's LADSPA plugins.")
801 (license license:gpl2+)))
803 (define-public swh-plugins-lv2
805 (name "swh-plugins-lv2")
810 (url "https://github.com/swh/lv2.git")
811 (commit (string-append "v" version))))
812 (file-name (git-file-name name version))
815 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
816 (build-system gnu-build-system)
818 `(#:tests? #f ; no check target
819 #:make-flags (list "CC=gcc"
820 (string-append "PREFIX="
821 (assoc-ref %outputs "out")))
823 (modify-phases %standard-phases
824 ;; no configure script
826 (add-after 'unpack 'patch-makefile-and-enter-directory
827 ;; The default install target doesn't install, but the
828 ;; "install-system" target does.
830 (substitute* "Makefile"
831 (("install:") "install: install-system"))
837 `(("libxslt" ,libxslt)
838 ("pkg-config" ,pkg-config)))
839 (home-page "http://plugin.org.uk")
840 (synopsis "SWH plugins in LV2 format")
842 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
843 classes include: dynamics (compressor, limiter), time (delay, chorus,
844 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
845 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
846 (license license:gpl3+)))
848 (define-public csound
855 (url "https://github.com/csound/csound.git")
857 (file-name (git-file-name name version))
860 "14822ybqyp31z18gky2y9zadr9dkbhabg97y139py73w7v3af1bh"))))
861 (build-system cmake-build-system)
863 `(("alsa-lib" ,alsa-lib)
865 ("pulseaudio" ,pulseaudio)
866 ("libsndfile" ,libsndfile)
870 ("gettext" ,gettext-minimal)))
875 (home-page "https://csound.com/")
876 (synopsis "Sound and music computing system")
878 "Csound is a user-programmable and user-extensible sound processing
879 language and software synthesizer.")
880 (license license:lgpl2.1+)))
882 (define-public clalsadrv
889 "http://kokkinizita.linuxaudio.org"
890 "/linuxaudio/downloads/clalsadrv-"
894 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
895 (build-system gnu-build-system)
897 `(#:tests? #f ; no "check" target
898 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
900 (modify-phases %standard-phases
901 (add-after 'unpack 'patch-makefile-and-enter-directory
903 (substitute* "libs/Makefile"
904 (("/sbin/ldconfig") "true")
905 (("^LIBDIR =.*") "LIBDIR = lib\n"))
908 (add-after 'install 'install-symlink
910 (symlink "libclalsadrv.so"
911 (string-append (assoc-ref %outputs "out")
912 "/lib/libclalsadrv.so.2"))
914 ;; no configure script
915 (delete 'configure))))
917 `(("alsa-lib" ,alsa-lib)
919 (home-page "https://kokkinizita.linuxaudio.org")
920 (synopsis "C++ wrapper around the ALSA API")
922 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
924 (license license:gpl2+)))
926 (define-public amb-plugins
933 "http://kokkinizita.linuxaudio.org"
934 "/linuxaudio/downloads/AMB-plugins-"
938 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
939 (build-system gnu-build-system)
941 `(#:tests? #f ; no "check" target
943 (modify-phases %standard-phases
944 ;; no configure script
946 (add-before 'install 'prepare-target-directory
947 (lambda* (#:key outputs #:allow-other-keys)
948 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
950 (add-after 'unpack 'override-target-directory-and-tool-paths
951 (lambda* (#:key outputs #:allow-other-keys)
952 (substitute* "Makefile"
954 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
955 (("/usr/bin/install") (which "install"))
958 (home-page "https://kokkinizita.linuxaudio.org")
959 (synopsis "LADSPA ambisonics plugins")
961 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
962 used within Ardour. Features include: mono and stereo to B-format panning,
963 horizontal rotator, square, hexagon and cube decoders.")
964 (license license:gpl2+)))
966 (define-public mcp-plugins
973 "http://kokkinizita.linuxaudio.org"
974 "/linuxaudio/downloads/MCP-plugins-"
978 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
979 (build-system gnu-build-system)
981 `(#:tests? #f ; no "check" target
983 (modify-phases %standard-phases
984 ;; no configure script
986 (add-before 'install 'prepare-target-directory
987 (lambda* (#:key outputs #:allow-other-keys)
988 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
990 (add-after 'unpack 'override-target-directory
991 (lambda* (#:key outputs #:allow-other-keys)
992 (substitute* "Makefile"
993 (("/usr") (assoc-ref outputs "out")))
995 (home-page "https://kokkinizita.linuxaudio.org")
996 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
998 "This package provides various LADSPA plugins. @code{cs_chorus} and
999 @code{cs_phaser} provide chorus and phaser effects, respectively;
1000 @code{mvclpf24} provides four implementations of the low-pass filter used in
1001 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
1002 high-pass filter by Robert Moog. The filters attempt to accurately emulate
1003 the non-linear circuit elements of their original analog counterparts.")
1004 (license license:gpl2+)))
1006 (define-public rev-plugins
1008 (name "rev-plugins")
1013 "http://kokkinizita.linuxaudio.org"
1014 "/linuxaudio/downloads/REV-plugins-"
1015 version ".tar.bz2"))
1018 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
1019 (build-system gnu-build-system)
1021 `(#:tests? #f ; no "check" target
1023 (modify-phases %standard-phases
1024 ;; no configure script
1026 (add-before 'install 'prepare-target-directory
1027 (lambda* (#:key outputs #:allow-other-keys)
1028 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1030 (add-after 'unpack 'override-target-directory
1031 (lambda* (#:key outputs #:allow-other-keys)
1032 (substitute* "Makefile"
1033 (("/usr") (assoc-ref outputs "out")))
1035 (home-page "https://kokkinizita.linuxaudio.org")
1036 (synopsis "LADSPA reverb plugin")
1038 "This package provides a stereo reverb LADSPA plugin based on the
1039 well-known greverb.")
1040 (license license:gpl2+)))
1042 (define-public fil-plugins
1044 (name "fil-plugins")
1049 "http://kokkinizita.linuxaudio.org"
1050 "/linuxaudio/downloads/FIL-plugins-"
1051 version ".tar.bz2"))
1054 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1055 (build-system gnu-build-system)
1057 `(#:tests? #f ; no "check" target
1059 (modify-phases %standard-phases
1060 ;; no configure script
1062 (add-before 'install 'prepare-target-directory
1063 (lambda* (#:key outputs #:allow-other-keys)
1064 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1066 (add-after 'unpack 'override-target-directory
1067 (lambda* (#:key outputs #:allow-other-keys)
1068 (substitute* "Makefile"
1069 (("/usr") (assoc-ref outputs "out")))
1071 (home-page "https://kokkinizita.linuxaudio.org")
1072 (synopsis "LADSPA four-band parametric equalizer plugin")
1074 "This package provides a LADSPA plugin for a four-band parametric
1075 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1076 gain controls. There is also a global bypass switch and gain control.
1078 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1079 lattice filter, which is stable even while parameters are being changed.
1081 All switches and controls are internally smoothed, so they can be used @code{live}
1082 without any clicks or zipper noises. This makes this plugin suitable for use
1083 in systems that allow automation of plugin control ports, such as Ardour, or
1085 (license license:gpl2+)))
1087 (define-public ste-plugins
1089 (name "ste-plugins")
1094 "http://kokkinizita.linuxaudio.org"
1095 "/linuxaudio/downloads/STE-plugins-"
1096 version ".tar.bz2"))
1099 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1100 (build-system gnu-build-system)
1102 `(#:tests? #f ; no "check" target
1104 (modify-phases %standard-phases
1105 ;; no configure script
1107 (add-before 'install 'prepare-target-directory
1108 (lambda* (#:key outputs #:allow-other-keys)
1109 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1111 (add-after 'unpack 'override-target-directory
1112 (lambda* (#:key outputs #:allow-other-keys)
1113 (substitute* "Makefile"
1114 (("/usr") (assoc-ref outputs "out")))
1116 (home-page "https://kokkinizita.linuxaudio.org")
1117 (synopsis "LADSPA stereo width plugin")
1119 "This package provides a LADSPA plugin to manipulate the stereo width of
1121 (license license:gpl2+)))
1123 (define-public vco-plugins
1125 (name "vco-plugins")
1130 "http://kokkinizita.linuxaudio.org"
1131 "/linuxaudio/downloads/VCO-plugins-"
1132 version ".tar.bz2"))
1135 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1136 (build-system gnu-build-system)
1138 `(#:tests? #f ; no "check" target
1140 (modify-phases %standard-phases
1141 ;; no configure script
1143 (add-before 'install 'prepare-target-directory
1144 (lambda* (#:key outputs #:allow-other-keys)
1145 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1147 (add-after 'unpack 'override-target-directory
1148 (lambda* (#:key outputs #:allow-other-keys)
1149 (substitute* "Makefile"
1150 (("/usr") (assoc-ref outputs "out"))
1151 (("/bin/cp") (which "cp")))
1153 (home-page "https://kokkinizita.linuxaudio.org")
1154 (synopsis "LADSPA plugin for synthesizer oscillators")
1156 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1159 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1160 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1161 @item Rec-VCO, a square / rectangle oscillator
1164 All oscillators are low-pass filtered to provide waveforms similar to the
1165 output of analog synthesizers such as the Moog Voyager.")
1166 (license license:gpl2+)))
1168 (define-public wah-plugins
1170 (name "wah-plugins")
1175 "http://kokkinizita.linuxaudio.org"
1176 "/linuxaudio/downloads/WAH-plugins-"
1177 version ".tar.bz2"))
1180 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1181 (build-system gnu-build-system)
1183 `(#:tests? #f ; no "check" target
1185 (modify-phases %standard-phases
1186 ;; no configure script
1188 (add-before 'install 'prepare-target-directory
1189 (lambda* (#:key outputs #:allow-other-keys)
1190 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1192 (add-after 'unpack 'override-target-directory
1193 (lambda* (#:key outputs #:allow-other-keys)
1194 (substitute* "Makefile"
1195 (("/usr") (assoc-ref outputs "out")))
1197 (home-page "https://kokkinizita.linuxaudio.org")
1198 (synopsis "LADSPA Autowah effect plugin")
1200 "This package provides a LADSPA plugin for a Wah effect with envelope
1202 (license license:gpl2+)))
1204 (define-public g2reverb
1211 "http://kokkinizita.linuxaudio.org"
1212 "/linuxaudio/downloads/g2reverb-"
1213 version ".tar.bz2"))
1216 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1217 (build-system gnu-build-system)
1219 `(#:tests? #f ; no "check" target
1221 (modify-phases %standard-phases
1222 ;; no configure script
1224 (add-before 'install 'prepare-target-directory
1225 (lambda* (#:key outputs #:allow-other-keys)
1226 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1228 (add-after 'unpack 'override-target-directory
1229 (lambda* (#:key outputs #:allow-other-keys)
1230 (substitute* "Makefile"
1231 (("/usr") (assoc-ref outputs "out")))
1233 (home-page "https://kokkinizita.linuxaudio.org")
1234 (synopsis "LADSPA stereo reverb plugin")
1236 "This package provides a LADSPA plugin for a stereo reverb effect.")
1237 (license license:gpl2+)))
1239 (define-public fluidsynth
1246 (url "https://github.com/FluidSynth/fluidsynth.git")
1247 (commit (string-append "v" version))))
1248 (file-name (git-file-name name version))
1251 "09jq04hrasidf6b5gkk4aba13fq55z3bmn7bq35rdaikz26xiij4"))))
1252 (build-system cmake-build-system)
1254 '(#:tests? #f ; no check target
1256 (modify-phases %standard-phases
1257 (add-after 'unpack 'fix-libdir
1259 ;; Install libraries to /lib, not /lib64.
1260 (substitute* "CMakeLists.txt"
1261 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1265 `(("libsndfile" ,libsndfile)
1266 ("alsa-lib" ,alsa-lib)
1270 ("readline" ,readline)
1273 `(("pkg-config" ,pkg-config)))
1274 (home-page "http://www.fluidsynth.org/")
1275 (synopsis "SoundFont synthesizer")
1277 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1278 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1279 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1280 also play midifiles using a Soundfont.")
1281 (license license:lgpl2.1+)))
1283 ;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1285 (define-public fluidsynth-1
1287 (inherit fluidsynth)
1290 (inherit (package-source fluidsynth))
1292 (url "https://github.com/FluidSynth/fluidsynth")
1293 (commit (string-append "v" version))))
1294 (file-name (git-file-name "fluidsynth" version))
1297 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1299 (define-public faad2
1305 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1306 (version-major+minor version) ".0/"
1307 "faad2-" version ".tar.gz"))
1310 "089zqykqgmmysznvk0bi2pfvdqwclnn540d0zks83sv2pynpfjb5"))))
1311 (build-system gnu-build-system)
1312 (home-page "https://www.audiocoding.com/faad2.html")
1313 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1315 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
1317 (license license:gpl2)))
1319 (define-public faust
1326 (url "https://github.com/grame-cncm/faust.git")
1327 (commit (string-append "v"
1328 (string-map (lambda (c)
1329 (if (char=? c #\.) #\- c))
1331 (file-name (string-append "faust-" version "-checkout"))
1334 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1335 (build-system gnu-build-system)
1337 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1340 (modify-phases %standard-phases
1341 ;; no "configure" script
1343 ;; Files appear under $out/share/faust that are read-only. The
1344 ;; install phase tries to overwrite them and fails, so we change
1345 ;; the permissions first.
1346 (add-before 'install 'fix-permissions
1348 (for-each (lambda (file)
1350 (find-files "architecture/max-msp" ".*"))
1353 `(("unzip" ,unzip)))
1354 (home-page "https://faust.grame.fr/")
1355 (synopsis "Signal processing language")
1357 "Faust is a programming language for realtime audio signal processing.")
1358 (license license:gpl2+)))
1360 (define-public faust-2
1366 (uri (string-append "https://github.com/grame-cncm/faust/"
1367 "releases/download/" version
1368 "/faust-" version ".tar.gz"))
1371 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1372 (build-system gnu-build-system)
1374 (substitute-keyword-arguments (package-arguments faust)
1375 ((#:make-flags flags)
1376 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1379 `(("llvm" ,llvm-3.8)
1382 ("ctags" ,emacs-minimal) ; for ctags
1383 ("pkg-config" ,pkg-config)))
1385 `(("libsndfile" ,libsndfile)
1386 ("libmicrohttpd" ,libmicrohttpd)
1387 ("ncurses" ,ncurses)
1388 ("openssl" ,openssl)
1391 (define-public freepats
1394 (version "20060219")
1397 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1398 version ".tar.bz2"))
1401 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1402 (build-system trivial-build-system)
1404 `(#:modules ((guix build utils))
1406 (use-modules (guix build utils))
1407 (let ((out (string-append %output "/share/freepats")))
1408 (setenv "PATH" (string-append
1409 (assoc-ref %build-inputs "bzip2") "/bin:"
1410 (assoc-ref %build-inputs "tar") "/bin"))
1411 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
1413 ;; Use absolute pattern references
1414 (substitute* "freepats.cfg"
1415 (("Tone_000") (string-append out "/Tone_000"))
1416 (("Drum_000") (string-append out "/Drum_000")))
1418 (copy-recursively "." out)
1423 (home-page "http://freepats.zenvoid.org")
1424 (synopsis "GUS compatible patches for MIDI players")
1426 "FreePats is a project to create a free and open set of GUS compatible
1427 patches that can be used with softsynths such as Timidity and WildMidi.")
1428 ;; GPLv2+ with exception for compositions using these patches.
1429 (license license:gpl2+)))
1431 (define-public guitarix
1438 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1442 "0bw7xnrx062nwb1bfj9x660h7069ncmz77szcs8icpqxrvhs7z80"))))
1443 (build-system waf-build-system)
1445 `(#:tests? #f ; no "check" target
1449 ;; Add the output lib directory to the RUNPATH.
1450 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))
1452 (modify-phases %standard-phases
1453 (add-after 'unpack 'fix-boost-includes
1455 (substitute* "src/headers/gx_internal_plugins.h"
1456 (("namespace gx_jack" m)
1457 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1458 (substitute* '("src/headers/gx_system.h"
1459 "src/headers/gx_parameter.h"
1460 "src/headers/gx_json.h")
1461 (("namespace gx_system" m)
1462 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1465 `(("libsndfile" ,libsndfile)
1478 ("zita-resampler" ,zita-resampler)
1479 ("zita-convolver" ,zita-convolver)))
1483 ("intltool" ,intltool)
1484 ("gettext" ,gettext-minimal)
1485 ("pkg-config" ,pkg-config)))
1486 (native-search-paths
1487 (list (search-path-specification
1488 (variable "LV2_PATH")
1489 (files '("lib/lv2")))))
1490 (home-page "https://guitarix.org/")
1491 (synopsis "Virtual guitar amplifier")
1492 (description "Guitarix is a virtual guitar amplifier running JACK.
1493 Guitarix takes the signal from your guitar as a mono-signal from your sound
1494 card. The input is processed by a main amp and a rack-section. Both can be
1495 routed separately and deliver a processed stereo-signal via JACK. You may
1496 fill the rack with effects from more than 25 built-in modules including stuff
1497 from a simple noise gate to modulation effects like flanger, phaser or
1499 (license license:gpl2+)))
1501 (define-public guitarix-lv2
1502 (package (inherit guitarix)
1503 (name "guitarix-lv2")
1505 (substitute-keyword-arguments (package-arguments guitarix)
1506 ((#:configure-flags flags)
1507 `(cons "--no-standalone" ,flags))))))
1509 (define-public rakarrack
1515 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1516 "rakarrack-" version "/rakarrack-"
1517 version ".tar.bz2"))
1520 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1521 (modules '((guix build utils)))
1524 (substitute* '("src/process.C"
1526 (("#include <Fl/") "#include <FL/"))
1528 (build-system gnu-build-system)
1530 `(("alsa-utils" ,alsa-utils)
1533 ("libxext" ,libxext)
1534 ("libxfixes" ,libxfixes)
1536 ("libxrender" ,libxrender)
1538 ("fontconfig" ,fontconfig)
1539 ("freetype" ,freetype)
1541 ("alsa-lib" ,alsa-lib)
1542 ("libsndfile" ,libsndfile)
1543 ("libsamplerate" ,libsamplerate)
1545 (home-page "http://rakarrack.sourceforge.net/")
1546 (synopsis "Audio effects processor")
1548 "Rakarrack is a richly featured multi-effects processor emulating a
1549 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1550 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1551 distortion modules and many more. Most of the effects engine is built from
1552 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1553 user interface are optimized for guitar, but Rakarrack processes signals in
1554 stereo while it does not apply internal band-limiting filtering, and thus is
1555 well suited to all musical instruments and vocals.")
1556 ;; The code is explicitly licensed under the GPL version 2 only.
1557 (license license:gpl2)))
1566 (url "https://github.com/tomszilagyi/ir.lv2")
1568 (file-name (git-file-name name version))
1571 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
1572 (build-system gnu-build-system)
1574 `(#:tests? #f ; no tests
1576 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1577 (string-append "INSTDIR="
1578 (assoc-ref %outputs "out") "/lib/lv2"))
1579 #:phases (modify-phases %standard-phases
1580 (delete 'configure)))) ; no configure script
1582 `(("libsndfile" ,libsndfile)
1583 ("libsamplerate" ,libsamplerate)
1587 ("zita-convolver" ,zita-convolver)))
1589 `(("pkg-config" ,pkg-config)))
1590 (native-search-paths
1591 (list (search-path-specification
1592 (variable "LV2_PATH")
1593 (files '("lib/lv2")))))
1594 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
1595 (synopsis "LV2 convolution reverb")
1597 "IR is a low-latency, real-time, high performance signal convolver
1598 especially for creating reverb effects. It supports impulse responses with 1,
1599 2 or 4 channels, in any soundfile format supported by libsndfile.")
1600 (license license:gpl2+)))
1602 (define-public jack-1
1609 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1614 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
1615 (build-system gnu-build-system)
1617 `(#:phases (modify-phases %standard-phases
1618 (add-after 'unpack 'patch-configure
1620 (substitute* "configure"
1621 ;; Install to <out/lib> regardless of platform.
1622 (("libnn=lib64") "libnn=lib"))
1625 `(("alsa-lib" ,alsa-lib)
1626 ("readline" ,readline)))
1627 ;; uuid.h is included in the JACK type headers
1628 ;; db.h is included in the libjack metadata headers
1630 `(("libuuid" ,util-linux "lib")
1633 `(("pkg-config" ,pkg-config)))
1634 (home-page "http://jackaudio.org/")
1635 (synopsis "JACK audio connection kit")
1637 "JACK is a low-latency audio server. It can connect a number of
1638 different applications to an audio device, as well as allowing them to share
1639 audio between themselves. JACK is different from other audio server efforts
1640 in that it has been designed from the ground up to be suitable for
1641 professional audio work. This means that it focuses on two key areas:
1642 synchronous execution of all clients, and low latency operation.")
1643 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1644 ;; licensed under the LGPL in order to allow for proprietary usage.
1645 (license (list license:gpl2+ license:lgpl2.1+))))
1647 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1648 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
1649 ;; program for users who might benefit from the D-BUS features.
1650 (define-public jack-2
1651 (package (inherit jack-1)
1656 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
1657 "download/v" version "/jack2-"
1659 (file-name (string-append name "-" version ".tar.gz"))
1662 "1d1d403jn4366mqig6g8ghr8057b3rn7gs26b5p3rkal34j20qw2"))))
1663 (build-system waf-build-system)
1665 `(#:tests? #f ; no check target
1666 #:configure-flags '("--dbus"
1669 (modify-phases %standard-phases
1670 (add-before 'configure 'set-linkflags
1672 ;; Add $libdir to the RUNPATH of all the binaries.
1673 (substitute* "wscript"
1674 ((".*CFLAGS.*-Wall.*" m)
1676 " conf.env.append_unique('LINKFLAGS',"
1677 "'-Wl,-rpath=" %output "/lib')\n")))
1679 (add-after 'install 'wrap-python-scripts
1680 (lambda* (#:key inputs outputs #:allow-other-keys)
1681 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1682 (let* ((out (assoc-ref outputs "out"))
1683 (path (getenv "PYTHONPATH")))
1684 (wrap-program (string-append out "/bin/jack_control")
1685 `("PYTHONPATH" ":" prefix (,path))))
1688 `(("alsa-lib" ,alsa-lib)
1691 ("libsamplerate" ,libsamplerate)
1693 ("python-dbus" ,python-dbus)
1694 ("readline" ,readline)))
1696 `(("pkg-config" ,pkg-config)))
1697 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1698 (license (list license:gpl2+ license:lgpl2.1+))))
1706 (uri (string-append "https://download.drobilla.net/jalv-"
1707 version ".tar.bz2"))
1710 "1wwfn7yzbs37s2rdlfjgks63svd5g14yyzd2gdl7h0z12qncwsy2"))))
1711 (build-system waf-build-system)
1713 `(#:tests? #f ; no check target
1714 #:python ,python-2))
1725 `(("pkg-config" ,pkg-config)))
1726 (home-page "https://drobilla.net/software/jalv/")
1727 (synopsis "Simple LV2 host for JACK")
1729 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1730 plugins and exposes their ports as JACK ports, essentially making any LV2
1731 plugin function as a JACK application.")
1732 (license license:isc)))
1734 (define-public ladspa
1741 ;; Since the official link is dead,
1742 ;; we download the tarball from Debian or Internet Archive.
1743 (uri (list (string-append "http://http.debian.net"
1744 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1745 version ".orig.tar.gz")
1746 (string-append "https://web.archive.org/web/20140717172251/"
1747 "http://www.ladspa.org/download/ladspa_sdk_"
1751 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
1752 (build-system gnu-build-system)
1754 `(#:tests? #f ; the "test" target is a listening test only
1756 (modify-phases %standard-phases
1758 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1760 (let ((out (assoc-ref outputs "out")))
1761 (substitute* "makefile"
1762 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1763 (("/usr/include/") (string-append out "/include/"))
1764 (("/usr/bin/") (string-append out "/bin/"))
1765 (("-mkdirhier") "mkdir -p")
1766 (("^CC.*") "CC = gcc\n")
1767 (("^CPP.*") "CPP = g++\n")))
1770 ;; Since the home page is gone, we provide a link to the archived version.
1772 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
1773 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1775 "LADSPA is a standard that allows software audio processors and effects
1776 to be plugged into a wide range of audio synthesis and recording packages.")
1777 (license license:lgpl2.1+)))
1782 (version "0.6.0-rc2")
1785 ;; The tilde is not permitted in the builder name, but is used
1788 "mirror://savannah/lash/lash-"
1789 (string-join (string-split version #\-) "~")
1791 (file-name (string-append name "-" version ".tar.bz2"))
1794 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1795 (build-system gnu-build-system)
1797 '(;; Glibc no longer includes Sun RPC support, so tell the build system
1798 ;; to use libtirpc instead.
1799 #:make-flags (list (string-append "CFLAGS=-I"
1800 (assoc-ref %build-inputs "libtirpc")
1801 "/include/tirpc -ltirpc"))
1803 (modify-phases %standard-phases
1804 ;; lashd embeds an ancient version of sigsegv so we just skip it
1805 (add-after 'unpack 'skip-lashd
1807 (substitute* '("Makefile.am" "Makefile.in")
1810 #:configure-flags '("--disable-static")))
1815 ("libtirpc" ,libtirpc)
1816 ("readline" ,readline)
1817 ("python" ,python-2)))
1818 ;; According to pkg-config, packages depending on lash also need to have
1819 ;; at least the following packages declared as inputs.
1821 `(("alsa-lib" ,alsa-lib)
1823 ("libxml2" ,libxml2)))
1825 `(("pkg-config" ,pkg-config)))
1826 (home-page "https://www.nongnu.org/lash/")
1827 (synopsis "Audio application session manager")
1829 "LASH is a session management system for audio applications. It allows
1830 you to save and restore audio sessions consisting of multiple interconneced
1831 applications, restoring program state (i.e. loaded patches) and the
1832 connections between them.")
1833 (license license:gpl2+)))
1835 (define-public libbs2b
1841 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1842 "/libbs2b-" version ".tar.lzma"))
1845 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1846 (build-system gnu-build-system)
1847 (native-inputs `(("pkg-config" ,pkg-config)))
1848 (inputs `(("libsndfile" ,libsndfile)))
1849 (home-page "https://sourceforge.net/projects/bs2b/")
1850 (synopsis "Bauer stereophonic-to-binaural DSP")
1852 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1853 designed to improve headphone listening of stereo audio records. Recommended
1854 for headphone prolonged listening to disable superstereo fatigue without
1855 essential distortions.")
1856 (license license:expat)))
1858 (define-public liblo
1864 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1865 "/liblo-" version ".tar.gz"))
1868 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
1869 (build-system gnu-build-system)
1871 `(;; liblo test FAILED
1872 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1874 (home-page "http://liblo.sourceforge.net")
1875 (synopsis "Implementation of the Open Sound Control protocol")
1877 "liblo is a lightweight library that provides an easy to use
1878 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
1879 (license license:lgpl2.1+)))
1881 (define-public python-pyaudio
1883 (name "python-pyaudio")
1888 (uri (pypi-uri "PyAudio" version))
1891 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
1892 (build-system python-build-system)
1894 `(("portaudio" ,portaudio)))
1895 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
1896 (synopsis "Bindings for PortAudio v19")
1897 (description "This package provides bindings for PortAudio v19, the
1898 cross-platform audio input/output stream library.")
1899 (license license:expat)))
1901 (define-public python2-pyaudio
1902 (package-with-python2 python-pyaudio))
1904 (define-public python-pyliblo
1906 (name "python-pyliblo")
1910 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1914 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1915 (build-system python-build-system)
1916 (arguments `(#:tests? #f)) ;no tests
1918 `(("python-cython" ,python-cython)))
1920 `(("liblo" ,liblo)))
1921 (home-page "http://das.nasophon.de/pyliblo/")
1922 (synopsis "Python bindings for liblo")
1924 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1925 library. It supports almost the complete functionality of liblo, allowing you
1926 to send and receive OSC messages using a nice and simple Python API. Also
1927 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1928 (license license:lgpl2.1+)))
1930 (define-public python2-pyliblo
1931 (package-with-python2 python-pyliblo))
1939 (uri (string-append "https://download.drobilla.net/lilv-"
1940 version ".tar.bz2"))
1943 "1p3hafsxgs5d4za7n66lf5nz74qssfqpmk520cm7iq2njvvlqm2z"))))
1944 (build-system waf-build-system)
1946 `(#:tests? #f ; no check target
1948 (modify-phases %standard-phases
1949 (add-before 'configure 'set-ldflags
1950 (lambda* (#:key outputs #:allow-other-keys)
1952 (string-append "-Wl,-rpath="
1953 (assoc-ref outputs "out") "/lib"))
1955 (add-after 'unpack 'full-store-path-to-shared-library
1956 (lambda* (#:key outputs #:allow-other-keys)
1957 (with-directory-excursion "bindings/python"
1958 (substitute* "lilv.py"
1959 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
1960 "/lib/liblilv-0.so"))))
1962 ;; Required by lilv-0.pc.
1967 ("sratom" ,sratom)))
1969 `(("python" ,python)
1970 ("pkg-config" ,pkg-config)))
1971 (home-page "https://drobilla.net/software/lilv")
1972 (synopsis "Library to simplify use of LV2 plugins in applications")
1974 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1975 for applications. Lilv is the successor to SLV2, rewritten to be
1976 significantly faster and have minimal dependencies.")
1977 (license license:isc)))
1985 (uri (string-append "http://lv2plug.in/spec/lv2-"
1986 version ".tar.bz2"))
1989 "1ppippbpdpv13ibs06b0bixnazwfhiw0d0ja6hx42jnkgdyp5hyy"))))
1990 (build-system waf-build-system)
1992 `(#:tests? #f ; no check target
1993 #:configure-flags '("--no-plugins")))
1995 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1996 `(("libsndfile" ,libsndfile)))
1998 `(("pkg-config" ,pkg-config)))
1999 (home-page "http://lv2plug.in/")
2000 (synopsis "LV2 audio plugin specification")
2002 "LV2 is an open specification for audio plugins and host applications.
2003 At its core, LV2 is a simple stable interface, accompanied by extensions which
2004 add functionality to support the needs of increasingly powerful audio
2006 (license license:isc)))
2008 (define-public lv2-mda-piano
2010 (name "lv2-mda-piano")
2015 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
2017 (file-name (git-file-name name version))
2020 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
2021 (build-system gnu-build-system)
2023 `(#:make-flags (list
2025 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2026 #:tests? #f ; no check target
2027 #:phases (modify-phases %standard-phases (delete 'configure))))
2032 `(("pkg-config" ,pkg-config)))
2033 (native-search-paths
2034 (list (search-path-specification
2035 (variable "LV2_PATH")
2036 (files '("lib/lv2")))))
2037 (home-page "https://elephly.net/lv2/mdapiano.html")
2038 (synopsis "LV2 port of the mda Piano plugin")
2039 (description "An LV2 port of the mda Piano VSTi.")
2040 (license license:gpl3+)))
2042 (define-public lv2-mda-epiano
2043 (package (inherit lv2-mda-piano)
2044 (name "lv2-mda-epiano")
2046 `(#:make-flags (list
2048 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2049 #:tests? #f ; no check target
2050 #:phases (modify-phases %standard-phases (delete 'configure))))
2051 (home-page "https://elephly.net/lv2/mdaepiano.html")
2052 (synopsis "LV2 port of the mda EPiano plugin")
2053 (description "An LV2 port of the mda EPiano VSTi.")))
2062 (url "https://github.com/lvtk/lvtk.git")
2064 (file-name (git-file-name name version))
2067 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
2068 (build-system waf-build-system)
2070 `(#:tests? #f ; no check target
2073 (list (string-append "--boost-includes="
2074 (assoc-ref %build-inputs "boost")
2081 `(("pkg-config" ,pkg-config)))
2082 (home-page "https://github.com/lvtk/lvtk")
2083 (synopsis "C++ libraries for LV2 plugins")
2085 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2086 extensions into easy to use C++ classes. It is the successor of
2088 (license license:gpl3+)))
2090 (define-public openal
2097 "https://openal-soft.org/openal-releases/openal-soft-"
2098 version ".tar.bz2"))
2101 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2102 (build-system cmake-build-system)
2104 `(#:tests? #f ; no check target
2106 (modify-phases %standard-phases
2108 'unpack 'use-full-library-paths
2109 (lambda* (#:key inputs #:allow-other-keys)
2110 (substitute* "alc/backends/pulseaudio.cpp"
2111 (("#define PALIB \"libpulse\\.so\\.0\"")
2112 (string-append "#define PALIB \""
2113 (assoc-ref inputs "pulseaudio")
2114 "/lib/libpulse.so.0"
2116 (substitute* "alc/backends/alsa.cpp"
2117 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2118 (string-append "LoadLib(\""
2119 (assoc-ref inputs "alsa-lib")
2120 "/lib/libasound.so.2"
2124 `(("alsa-lib" ,alsa-lib)
2125 ("pulseaudio" ,pulseaudio)))
2126 (synopsis "3D audio API")
2128 "OpenAL provides capabilities for playing audio in a virtual 3D
2129 environment. Distance attenuation, doppler shift, and directional sound
2130 emitters are among the features handled by the API. More advanced effects,
2131 including air absorption, occlusion, and environmental reverb, are available
2132 through the EFX extension. It also facilitates streaming audio, multi-channel
2133 buffers, and audio capture.")
2134 (home-page "https://openal-soft.org/")
2135 (license license:lgpl2.0+)))
2137 (define-public freealut
2143 ;; Upstream url is unclear, many systems use Fedora, there is also
2144 ;; https://github.com/vancegroup/freealut though the status of it
2145 ;; (official? unofficial?) is not clear.
2147 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2148 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2149 "-" version ".tar.gz"))
2152 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2153 (build-system cmake-build-system)
2155 `(#:tests? #f)) ; no check target
2157 `(("openal" ,openal)))
2158 (synopsis "Free implementation of OpenAL's ALUT standard")
2159 (description "freealut is the OpenAL Utility Toolkit.")
2160 (home-page "https://kcat.strangesoft.net/openal.html")
2161 (license license:lgpl2.0)))
2163 (define-public patchage
2169 (uri (string-append "https://download.drobilla.net/patchage-"
2174 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
2175 (build-system waf-build-system)
2177 `(#:tests? #f ; no check target
2178 #:python ,python-2))
2180 `(("alsa-lib" ,alsa-lib)
2186 ("dbus-glib" ,dbus-glib)))
2188 `(("pkg-config" ,pkg-config)))
2189 (home-page "https://drobilla.net/software/patchage/")
2190 (synopsis "Modular patch bay for audio and MIDI systems")
2192 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2194 (license license:gpl3+)))
2196 (define-public pcaudiolib
2200 (home-page "https://github.com/espeak-ng/pcaudiolib")
2203 (uri (git-reference (url home-page) (commit version)))
2204 (file-name (git-file-name name version))
2207 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2208 (build-system gnu-build-system)
2210 `(#:configure-flags '("--disable-static")))
2212 `(("autoconf" ,autoconf)
2213 ("automake" ,automake)
2214 ("libtool" ,libtool)
2215 ("pkg-config" ,pkg-config)
2218 `(("alsa-lib" ,alsa-lib)
2219 ("pulseaudio" ,pulseaudio)))
2220 (synopsis "Portable C audio library")
2222 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2223 different audio devices such as ALSA or PulseAudio.")
2224 (license (list license:gpl3+
2225 ;; The bundled TPCircularBuffer uses a custom license.
2226 (license:non-copyleft
2227 "file://src/TPCircularBuffer/README.markdown")))))
2229 (define-public qjackctl
2235 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2236 version "/qjackctl-" version ".tar.gz"))
2239 "1saywsda9m124rmjp7i3n0llryaliabjxhqhvqr6dm983qy7pypk"))))
2240 (build-system gnu-build-system)
2242 '(#:tests? #f)) ; no check target
2245 ("alsa-lib" ,alsa-lib)
2247 ("qtx11extras" ,qtx11extras)))
2249 `(("pkg-config" ,pkg-config)
2250 ("qttools" ,qttools)))
2251 (home-page "https://qjackctl.sourceforge.io/")
2252 (synopsis "Jack server control application")
2253 (description "Control a Jack server. Allows you to plug various sources
2254 into various outputs and to start, stop and configure jackd")
2255 (license license:gpl2+)))
2257 (define-public qjackrcd
2264 (url "https://github.com/orouits/qjackrcd.git")
2265 (commit (string-append "v" version))))
2266 (file-name (git-file-name name version))
2269 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2270 (build-system gnu-build-system)
2273 (modify-phases %standard-phases
2275 (lambda* (#:key outputs #:allow-other-keys)
2277 (string-append "PREFIX="
2278 (assoc-ref outputs "out"))))))))
2280 `(("qtbase" ,qtbase))) ; for qmake
2283 ("libsndfile" ,libsndfile)
2284 ("qtbase" ,qtbase)))
2285 (home-page "https://sourceforge.net/projects/qjackrcd/")
2286 (synopsis "Stereo audio recorder for JACK")
2287 (description "QJackRcd is a simple graphical stereo recorder for JACK
2288 supporting silence processing for automatic pause, file splitting, and
2289 background file post-processing.")
2290 (license license:gpl2+)))
2292 (define-public supercollider
2294 (name "supercollider")
2299 "https://github.com/supercollider/supercollider"
2300 "/releases/download/Version-" version
2301 "/SuperCollider-" version "-Source-linux.tar.bz2"))
2304 "0x11g3pfw11m6v18qfpfl5w99dbmf73g4z7wvwhrj1a4qv2dn084"))))
2305 (build-system cmake-build-system)
2307 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
2309 "-DSC_EL=off") ;scel is packaged individually as
2311 #:modules ((guix build utils)
2312 (guix build cmake-build-system)
2315 (modify-phases %standard-phases
2316 (add-after 'unpack 'rm-bundled-libs
2318 ;; The build system doesn't allow us to unbundle the following
2319 ;; libraries. hidapi is also heavily patched.
2320 (let ((keep-dirs '("nova-simd" "nova-tt" "hidapi" "TLSF-2.4.6"
2321 "oscpack_1_1_0" "." "..")))
2322 (with-directory-excursion "./external_libraries"
2324 delete-file-recursively
2327 (and (eq? (stat:type (stat x)) 'directory)
2328 (not (member (basename x) keep-dirs))))))))
2330 ;; Some tests are broken (see:
2331 ;; https://github.com/supercollider/supercollider/issues/3555 and
2332 ;; https://github.com/supercollider/supercollider/issues/1736
2333 (add-after 'rm-bundled-libs 'disable-broken-tests
2335 (substitute* "testsuite/server/supernova/CMakeLists.txt"
2336 (("server_test.cpp")
2338 (("perf_counter_test.cpp")
2340 (delete-file "testsuite/server/supernova/server_test.cpp")
2341 (delete-file "testsuite/server/supernova/perf_counter_test.cpp")
2342 (substitute* "testsuite/CMakeLists.txt"
2343 (("add_subdirectory\\(sclang\\)")
2345 (delete-file "testsuite/sclang/CMakeLists.txt")
2348 `(("pkg-config" ,pkg-config)))
2351 ("libsndfile" ,libsndfile)
2354 ("readline" ,readline) ;readline support for sclang's CLI
2355 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2356 ("eudev" ,eudev) ;for user interactions with devices
2357 ("avahi" ,avahi) ;zeroconf service discovery support
2360 ("boost-sync" ,boost-sync)
2361 ("yaml-cpp" ,yaml-cpp)))
2362 (home-page "https://github.com/supercollider/supercollider")
2363 (synopsis "Synthesis engine and programming language")
2364 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2365 @code{supernova}) and programming language (@code{sclang}). It can be used
2366 for experimenting with sound synthesis and algorithmic composition.
2368 SuperCollider requires jackd to be installed in your user profile and your
2369 user must be allowed to access the realtime features of the kernel. Search
2370 for \"realtime\" in the index of the Guix manual to learn how to achieve this
2371 using Guix System.")
2372 (license license:gpl2+)))
2380 (uri (string-append "https://download.drobilla.net/raul-"
2381 version ".tar.bz2"))
2384 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2385 (build-system waf-build-system)
2387 `(#:python ,python-2
2388 #:tests? #f)) ; no check target
2393 `(("pkg-config" ,pkg-config)))
2394 (home-page "https://drobilla.net/software/raul/")
2395 (synopsis "Real-time audio utility library")
2397 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2398 aimed at audio/musical applications.")
2399 (license license:gpl2+)))
2401 (define-public raul-devel
2402 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2404 (package (inherit raul)
2406 (version (string-append "0.8.9-" revision "."
2407 (string-take commit 9)))
2411 (url "https://git.drobilla.net/raul.git")
2413 (file-name (string-append name "-" version "-checkout"))
2416 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2418 (define-public resample
2424 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
2428 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
2429 (build-system gnu-build-system)
2431 `(("autoconf" ,autoconf)
2432 ("automake" ,automake)
2433 ("pkg-config" ,pkg-config)
2434 ("libtool" ,libtool)))
2435 (synopsis "Real-time library for sampling rate conversion")
2436 (description "The @command{resample} software package contains free
2437 sampling-rate conversion and filter design utilities.")
2438 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
2439 (license license:lgpl2.1+)))
2441 (define-public rubberband
2448 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2451 (file-name (string-append name "-" version ".tar.bz2"))
2454 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
2455 (build-system gnu-build-system)
2457 `(#:tests? #f ; no check target
2459 (modify-phases %standard-phases
2460 (add-after 'unpack 'skip-jni-installation
2461 ;; ‘make install’ unconditionally installs librubberband-jni.so,
2462 ;; which is never built by ‘make all’. Skip it.
2464 (substitute* "Makefile.in"
2465 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
2468 `(("ladspa" ,ladspa)
2469 ("libsamplerate" ,libsamplerate)
2472 `(("pkg-config" ,pkg-config)))
2473 (home-page "https://breakfastquay.com/rubberband/")
2474 (synopsis "Audio time-stretching and pitch-shifting library")
2476 "Rubber Band is a library and utility program that permits changing the
2477 tempo and pitch of an audio recording independently of one another.")
2478 (license license:gpl2+)))
2480 (define-public rtmidi
2486 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
2487 "/release/rtmidi-" version ".tar.gz"))
2488 (file-name (string-append "rtmidi-" version ".tar.gz"))
2491 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))
2492 (build-system gnu-build-system)
2495 ("alsa-lib" ,alsa-lib)))
2497 `(("autoconf" ,autoconf)
2498 ("automake" ,automake)
2499 ("libtool" ,libtool)
2500 ("pkg-config" ,pkg-config)))
2501 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
2502 (synopsis "Cross-platform MIDI library for C++")
2504 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2505 classes) that provide a common cross-platform API for realtime MIDI
2507 (license license:expat)))
2509 (define-public sratom
2515 (uri (string-append "https://download.drobilla.net/sratom-"
2516 version ".tar.bz2"))
2519 "0vh0biy3ngpzzgdml309c2mqz8xq9q0hlblczb4c6alhp0a8yv0l"))))
2520 (build-system waf-build-system)
2521 (arguments `(#:tests? #f)) ;no check target
2523 ;; In Requires of sratom-0.pc.
2528 `(("pkg-config" ,pkg-config)))
2529 (home-page "https://drobilla.net/software/sratom/")
2530 (synopsis "Library for serialising LV2 atoms to/from RDF")
2532 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2533 the Turtle syntax.")
2534 (license license:isc)))
2542 (uri (string-append "https://download.drobilla.net/suil-"
2543 version ".tar.bz2"))
2546 "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06"))))
2547 (build-system waf-build-system)
2549 `(#:tests? #f)) ;no check target
2556 `(("pkg-config" ,pkg-config)))
2557 (home-page "https://drobilla.net/software/suil/")
2558 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2560 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2562 Suil makes it possible to load a UI of a toolkit in a host using another
2563 toolkit. The API is designed such that hosts do not need to explicitly
2564 support specific toolkits – if Suil supports a particular toolkit, then UIs in
2565 that toolkit will work in all hosts that use Suil automatically.
2567 Suil currently supports every combination of Gtk, Qt, and X11.")
2568 (license license:isc)))
2570 (define-public timidity++
2576 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2577 "/TiMidity++-" version
2578 "/TiMidity++-" version ".tar.bz2"))
2581 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2582 (build-system gnu-build-system)
2585 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2589 (string-append "--with-default-path="
2590 (assoc-ref %outputs "out") "/etc/timidity"))
2592 (modify-phases %standard-phases
2593 (add-after 'install 'install-config
2595 (let ((out (string-append (assoc-ref %outputs "out")
2598 (call-with-output-file
2599 (string-append out "/timidity.cfg")
2601 (format port (string-append "source "
2602 (assoc-ref %build-inputs "freepats")
2603 "/share/freepats/freepats.cfg")))))
2606 `(("alsa-lib" ,alsa-lib)
2611 ("libvorbis" ,libvorbis)
2613 ("ncurses" ,ncurses)
2614 ("freepats" ,freepats)))
2616 `(("pkg-config" ,pkg-config)))
2617 (home-page "http://timidity.sourceforge.net/")
2618 (synopsis "Software synthesizer for playing MIDI files")
2620 "TiMidity++ is a software synthesizer. It can play MIDI files by
2621 converting them into PCM waveform data; give it a MIDI data along with digital
2622 instrument data files, then it synthesizes them in real-time, and plays. It
2623 can not only play sounds, but also can save the generated waveforms into hard
2624 disks as various audio file formats.")
2625 (license license:gpl2+)))
2634 "https://code.soundsoftware.ac.uk"
2635 "/attachments/download/1520/vamp-plugin-sdk-"
2639 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
2640 (build-system gnu-build-system)
2642 `(#:tests? #f ; no check target
2644 (modify-phases %standard-phases
2645 (add-after 'install 'remove-libvamp-hostsdk.la
2646 (lambda* (#:key outputs #:allow-other-keys)
2647 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2648 (for-each delete-file
2649 (let ((out (assoc-ref outputs "out")))
2650 (list (string-append out "/lib/libvamp-sdk.la")
2651 (string-append out "/lib/libvamp-hostsdk.la"))))
2654 `(("libsndfile" ,libsndfile)))
2656 `(("pkg-config" ,pkg-config)))
2657 (home-page "https://vamp-plugins.org")
2658 (synopsis "Modular and extensible audio processing system")
2660 "Vamp is an audio processing plugin system for plugins that extract
2661 descriptive information from audio data — typically referred to as audio
2662 analysis plugins or audio feature extraction plugins.")
2665 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
2667 (define-public libsbsms
2674 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2675 "/libsbsms-" version ".tar.gz"))
2677 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2678 (build-system gnu-build-system)
2679 (native-inputs `(("automake" ,automake)))
2682 ;; Disable the use of SSE unless on x86_64.
2683 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2684 (%current-system))))
2688 (modify-phases %standard-phases
2690 'unpack 'fix-ar-lib-path
2691 (lambda* (#:key inputs #:allow-other-keys)
2692 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2693 (delete-file "ar-lib")
2695 (string-append (assoc-ref inputs "automake") "/share/automake-"
2696 ,(package-version automake) "/ar-lib")
2699 (home-page "http://sbsms.sourceforge.net/")
2700 (synopsis "Library for time stretching and pitch scaling of audio")
2702 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2703 stretching and pitch scaling of audio. This package contains the library.")
2704 ;; There is no explicit declaration of a license, but a COPYING file
2706 (license license:gpl2)))
2708 (define-public wavpack
2714 (uri (string-append "http://www.wavpack.com/"
2715 "wavpack-" version ".tar.xz"))
2718 "1qvpvfx30kvrkw7y1g6r8xj109wszg1z0qmkfm17wf3flb7v3rbp"))))
2719 (build-system gnu-build-system)
2721 '(#:configure-flags '("--disable-static")))
2722 (home-page "http://www.wavpack.com/")
2723 (synopsis "Hybrid lossless audio codec")
2725 "WavPack is an audio compression format with lossless, lossy and hybrid
2726 compression modes. This package contains command-line programs and library to
2727 encode and decode wavpack files.")
2728 (license license:bsd-3)))
2730 (define-public libmodplug
2737 "mirror://sourceforge/modplug-xmms/"
2738 name "/" version "/" name "-" version ".tar.gz"))
2741 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
2742 (build-system gnu-build-system)
2743 (home-page "http://modplug-xmms.sourceforge.net/")
2744 (synopsis "Mod file playing library")
2746 "Libmodplug renders mod music files as raw audio data, for playing or
2747 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2748 supported. Optional features include high-quality resampling, bass expansion,
2749 surround and reverb.")
2750 (license license:public-domain)))
2752 (define-public libxmp
2758 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
2759 name "-" version ".tar.gz"))
2762 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
2763 (build-system gnu-build-system)
2764 (home-page "http://xmp.sourceforge.net/")
2765 (synopsis "Module player library")
2767 "Libxmp is a library that renders module files to PCM data. It supports
2768 over 90 mainstream and obscure module formats including Protracker (MOD),
2769 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2770 (license license:lgpl2.1+)))
2778 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
2779 name "-" version ".tar.gz"))
2782 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
2783 (build-system gnu-build-system)
2785 `(("pkg-config" ,pkg-config)))
2787 `(("libxmp" ,libxmp)
2788 ("pulseaudio" ,pulseaudio)))
2789 (home-page "http://xmp.sourceforge.net/")
2790 (synopsis "Extended module player")
2792 "Xmp is a portable module player that plays over 90 mainstream and
2793 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2794 Tracker 3 S3M and Impulse Tracker IT files.")
2795 (license license:gpl2+)))
2797 (define-public soundtouch
2805 (url "https://gitlab.com/soundtouch/soundtouch.git")
2807 (file-name (git-file-name name version))
2809 (base32 "174wgm3s0inmbnkrlnspxjwm2014qhjhkbdqa5r8rbfi0nzqxzsz"))))
2810 (build-system gnu-build-system)
2812 `(("autoconf" ,autoconf)
2813 ("automake" ,automake)
2814 ("libtool" ,libtool)
2816 (home-page "https://www.surina.net/soundtouch/")
2818 "Audio processing library for changing tempo, pitch and playback rate")
2820 "SoundTouch is an audio processing library for changing the tempo, pitch
2821 and playback rates of audio streams or audio files. It is intended for
2822 application developers writing sound processing tools that require tempo/pitch
2823 control functionality, or just for playing around with the sound effects.")
2824 (license license:lgpl2.1+)))
2832 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2833 name "-" version ".tar.bz2"))
2836 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2837 (build-system gnu-build-system)
2840 ;; The upstream asks to identify the distribution to diagnose SoX
2842 '("--with-distro=Guix System Distribution")))
2844 `(("pkg-config" ,pkg-config)))
2846 `(("alsa-lib" ,alsa-lib)
2850 ("libid3tag" ,libid3tag)
2851 ("libltdl" ,libltdl)
2854 ("libvorbis" ,libvorbis)
2855 ("pulseaudio" ,pulseaudio)))
2856 (home-page "http://sox.sourceforge.net")
2857 (synopsis "Sound processing utility")
2859 "SoX (Sound eXchange) is a command line utility that can convert
2860 various formats of computer audio files to other formats. It can also
2861 apply various effects to these sound files, and, as an added bonus, SoX
2862 can play and record audio files.")
2863 ;; sox.c is distributed under GPL, while the files that make up
2864 ;; libsox are licensed under LGPL.
2865 (license (list license:gpl2+ license:lgpl2.1+))))
2875 (string-append "mirror://sourceforge/soxr/soxr-" version
2878 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
2879 (build-system cmake-build-system)
2880 (arguments '(#:tests? #f)) ;no 'check' target
2881 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
2882 (synopsis "One-dimensional sample-rate conversion library")
2884 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2885 conversion. It may be used, for example, to resample PCM-encoded audio.")
2886 (license license:lgpl2.1+)))
2888 (define-public twolame
2895 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2896 "/twolame-" version ".tar.gz"))
2898 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
2899 (build-system gnu-build-system)
2901 `(("libsndfile" ,libsndfile)))
2904 ("which" ,which))) ;used in tests/test.pl
2905 (home-page "http://www.twolame.org/")
2906 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2908 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2909 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2911 (license license:lgpl2.1+)))
2913 (define-public portaudio
2916 (version "190600.20161030")
2921 "http://www.portaudio.com/archives/pa_stable_v"
2922 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2925 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
2926 (patches (search-patches "portaudio-audacity-compat.patch"))))
2927 (build-system gnu-build-system)
2929 ;; TODO: Add ASIHPI.
2930 `(("alsa-lib" ,alsa-lib)
2932 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
2935 `(("autoconf" ,autoconf)
2936 ("automake" ,automake)
2937 ("libtool" ,libtool)
2938 ("pkg-config" ,pkg-config)))
2940 '(#:tests? #f ;no 'check' target
2941 #:parallel-build? #f ;fails on some systems
2942 #:configure-flags '("--with-pic"
2944 ;; XXX: The following prevents a build error
2945 ;; because of missing depcomp when C++ bindings are
2947 "--disable-dependency-tracking")
2949 (modify-phases %standard-phases
2950 ;; This is needed for linking the static libraries
2951 (add-after 'unpack 'build-only-position-independent-code
2953 (substitute* "configure.in"
2954 (("AC_PROG_LIBTOOL" m)
2955 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
2956 (delete-file "configure")
2958 ;; Some headers are not installed by default, but are needed by
2959 ;; packages like Kaldi.
2960 (add-after 'install 'install-missing-headers
2961 (lambda* (#:key outputs #:allow-other-keys)
2962 (install-file "src/common/pa_ringbuffer.h"
2963 (string-append (assoc-ref outputs "out") "/include"))
2965 (home-page "http://www.portaudio.com/")
2966 (synopsis "Audio I/O library")
2968 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2969 to record and/or play sound using a callback function or a blocking read/write
2971 (license license:expat)))
2973 (define-public qsynth
2980 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2981 "/qsynth-" version ".tar.gz"))
2983 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
2984 (build-system gnu-build-system)
2986 `(#:tests? #f)) ; no "check" phase
2988 `(("qttools" ,qttools)
2989 ("pkg-config" ,pkg-config)))
2991 `(("fluidsynth" ,fluidsynth)
2993 ("qtx11extras" ,qtx11extras)))
2994 (home-page "https://qsynth.sourceforge.io")
2995 (synopsis "Graphical user interface for FluidSynth")
2997 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2998 synthesizer written in C++.")
2999 (license license:gpl2+)))
3001 (define-public rsound
3009 (url "https://github.com/Themaister/RSound.git")
3010 (commit (string-append "v" version))))
3011 (file-name (git-file-name name version))
3013 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
3014 (build-system gnu-build-system)
3016 `(("alsa-lib" ,alsa-lib)
3019 ("libsamplerate" ,libsamplerate)
3021 ("portaudio" ,portaudio)
3022 ("pulseaudio" ,pulseaudio)))
3025 (modify-phases %standard-phases
3027 (lambda* (#:key outputs #:allow-other-keys)
3029 (invoke "./configure"
3030 (string-append "--prefix=" (assoc-ref outputs "out"))))))
3031 ;; No 'check' target.
3033 (home-page "https://themaister.net/rsound.html")
3034 (synopsis "Networked audio system")
3036 "RSound allows you to send audio from an application and transfer it
3037 directly to a different computer on your LAN network. It is an audio daemon
3038 with a much different focus than most other audio daemons.")
3039 (license license:gpl3+)))
3041 (define-public xjackfreak
3048 (url "https://github.com/johnhldavis/xjackfreak.git")
3049 (commit (string-append "v" version))))
3050 (file-name (git-file-name name version))
3053 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3054 (build-system gnu-build-system)
3057 (list (string-append "docdir=" (assoc-ref %outputs "out")
3058 "/share/doc/xjackfreak"))))
3063 ("libxext" ,libxext)))
3065 `(("pkg-config" ,pkg-config)))
3066 (home-page "https://github.com/johnhldavis/xjackfreak")
3067 (synopsis "JACK audio frequency analyzer and display")
3069 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3070 Connection Kit. It can display the FFT of any input, modify it and output the
3072 (license license:gpl3+)))
3074 (define-public zita-convolver
3076 (name "zita-convolver")
3081 "http://kokkinizita.linuxaudio.org"
3082 "/linuxaudio/downloads/zita-convolver-"
3083 version ".tar.bz2"))
3085 ;; Don't optimize for a specific processor architecture.
3087 (substitute* "source/Makefile"
3088 (("^CXXFLAGS \\+= -march=native") ""))
3090 (modules '((guix build utils)))
3093 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
3094 (build-system gnu-build-system)
3096 `(#:tests? #f ; no "check" target
3098 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3099 (string-append "SUFFIX="))
3101 (modify-phases %standard-phases
3102 (add-after 'unpack 'patch-makefile-and-enter-directory
3104 (substitute* "source/Makefile"
3105 (("ldconfig") "true")
3106 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3109 (add-after 'install 'install-symlink
3111 (symlink "libzita-convolver.so"
3112 (string-append (assoc-ref %outputs "out")
3113 "/lib/libzita-convolver.so.4"))
3115 ;; no configure script
3116 (delete 'configure))))
3117 (inputs `(("fftwf" ,fftwf)))
3118 (home-page "https://kokkinizita.linuxaudio.org")
3119 (synopsis "Fast, partitioned convolution engine library")
3121 "Zita convolver is a C++ library providing a real-time convolution
3123 (license license:gpl3+)))
3125 (define-public zita-resampler
3127 (name "zita-resampler")
3132 "http://kokkinizita.linuxaudio.org"
3133 "/linuxaudio/downloads/zita-resampler-"
3134 version ".tar.bz2"))
3136 ;; Don't optimize for a specific processor architecture.
3138 (substitute* '("apps/Makefile" "libs/Makefile")
3139 (("^CXXFLAGS \\+= -march=native") ""))
3141 (modules '((guix build utils)))
3144 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
3145 (build-system gnu-build-system)
3147 `(#:tests? #f ; no "check" target
3148 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3150 (modify-phases %standard-phases
3152 'unpack 'patch-makefile-and-enter-directory
3154 (substitute* "libs/Makefile"
3155 (("ldconfig") "true")
3156 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3160 'install 'install-symlink
3162 (symlink "libzita-resampler.so"
3163 (string-append (assoc-ref %outputs "out")
3164 "/lib/libzita-resampler.so.1"))
3166 ;; no configure script
3167 (delete 'configure))))
3168 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
3169 (synopsis "C++ library for resampling audio signals")
3171 "Libzita-resampler is a C++ library for resampling audio signals. It is
3172 designed to be used within a real-time processing context, to be fast, and to
3173 provide high-quality sample rate conversion.")
3174 (license license:gpl3+)))
3176 (define-public zita-alsa-pcmi
3178 (name "zita-alsa-pcmi")
3183 "http://kokkinizita.linuxaudio.org"
3184 "/linuxaudio/downloads/zita-alsa-pcmi-"
3185 version ".tar.bz2"))
3188 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
3189 (build-system gnu-build-system)
3191 `(#:tests? #f ; no "check" target
3192 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3194 (modify-phases %standard-phases
3195 (add-after 'unpack 'patch-makefile-and-enter-directory
3197 (substitute* "libs/Makefile"
3198 (("ldconfig") "true")
3199 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3202 (add-after 'install 'install-symlink
3204 (symlink "libzita-alsa-pcmi.so"
3205 (string-append (assoc-ref %outputs "out")
3206 "/lib/libzita-alsa-pcmi.so.0"))
3208 ;; no configure script
3209 (delete 'configure))))
3211 `(("alsa-lib" ,alsa-lib)
3213 (home-page "https://kokkinizita.linuxaudio.org")
3214 (synopsis "C++ wrapper around the ALSA API")
3216 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3217 access to ALSA PCM devices, taking care of the many functions required to
3218 open, initialise and use a hw: device in mmap mode, and providing floating
3220 (license license:gpl3+)))
3222 (define-public cuetools
3229 (url "https://github.com/svend/cuetools.git")
3231 (file-name (git-file-name name version))
3234 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
3235 (build-system gnu-build-system)
3236 ;; The source checkout is not bootstrapped.
3238 `(("autoconf" ,autoconf)
3239 ("automake" ,automake)
3242 (synopsis "Cue and toc file parsers and utilities")
3243 (description "Cuetools is a set of programs that are useful for manipulating
3244 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3245 files are a way to represent the layout of a data or audio CD in a
3246 machine-readable ASCII format.")
3247 (home-page "https://github.com/svend/cuetools")
3248 (license license:gpl2+)))
3250 (define-public shntool
3256 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
3257 "shntool-" version ".tar.gz"))
3260 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3261 (build-system gnu-build-system)
3262 (synopsis "WAVE audio data processing tool")
3263 (description "shntool is a multi-purpose WAVE data processing and reporting
3264 utility. File formats are abstracted from its core, so it can process any file
3265 that contains WAVE data, compressed or not---provided there exists a format
3266 module to handle that particular file type. It can also generate CUE files, and
3267 use them split WAVE data into multiple files.")
3268 (home-page "http://etree.org/shnutils/shntool/")
3269 ;; 'install-sh' bears the x11 license
3270 (license (list license:gpl2+ license:x11))))
3272 (define-public dcadec
3279 (url "https://github.com/foo86/dcadec.git")
3280 (commit (string-append "v" version))))
3281 (file-name (git-file-name name version))
3284 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
3285 (build-system gnu-build-system)
3287 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3291 ;; Build shared library.
3293 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3294 ;; Set proper runpath.
3295 (string-append "LDFLAGS=-Wl,-rpath="
3296 (assoc-ref %outputs "out")
3299 (modify-phases %standard-phases
3300 ;; No configure script, just a hand-written Makefile.
3301 (delete 'configure))))
3302 (synopsis "DTS Coherent Acoustics decoder")
3303 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3304 with support for HD extensions.")
3305 (home-page "https://github.com/foo86/dcadec")
3306 (license license:lgpl2.1+)))
3308 (define-public bs1770gain
3315 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3316 version "/bs1770gain-" version ".tar.gz"))
3318 (base32 "13hsbqj1dkpz1gbclnjxv50kr7b4gcjai6c1l38g01433h217qjc"))
3319 (modules '((guix build utils)))
3323 (substitute* (find-files "." "\\.[ch]$")
3324 (("^ \\* N..o.*") ""))
3325 (substitute* "libbg/bgx.c"
3326 (("#define BG.* ") "#define BS ")
3327 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
3328 (("\"( #|N).*\"") "\"\""))
3329 (substitute* (list "config.h"
3332 (("https?://bs1770gain[^/]*/")
3333 "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html"))
3335 (build-system gnu-build-system)
3336 (inputs `(("ffmpeg" ,ffmpeg)
3338 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
3339 (synopsis "Tool to adjust loudness of media files")
3341 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3342 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3343 loudness of audio and video files to the same level.")
3344 (license license:gpl2+)))
3346 (define-public filteraudio
3347 (let ((revision "1")
3348 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3350 (name "filteraudio")
3351 (version (string-append "0.0.0-" revision "."
3352 (string-take commit 7)))
3357 (url "https://github.com/irungentoo/filter_audio.git")
3359 (file-name (string-append name "-" version "-checkout"))
3362 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3363 (build-system gnu-build-system)
3365 '(#:make-flags (list (string-append "PREFIX=" %output)
3367 #:tests? #f ; No tests
3369 (modify-phases %standard-phases
3370 ;; No configure script
3371 (delete 'configure))))
3372 (synopsis "Lightweight audio filtering library")
3373 (description "An easy to use audio filtering library made from webrtc
3374 code, used in @code{libtoxcore}.")
3375 (home-page "https://github.com/irungentoo/filter_audio")
3376 (license license:bsd-3))))
3386 (string-append "http://www.quut.com/" name "/" name
3387 "-" version ".tar.gz"))
3390 "1xkha9ss5g5qnfaybi8il0mcvp8knwg9plgh8404vh58d0pna0s9"))))
3391 (build-system gnu-build-system)
3393 `(#:test-target "tst"
3394 #:make-flags (list (string-append "INSTALL_ROOT=" %output))
3396 (modify-phases %standard-phases
3397 (add-after 'unpack 'add-fpic-ccflag
3399 ;; The -fPIC compiler option is needed when building
3401 (substitute* "Makefile"
3403 (string-append all "CCFLAGS += -fPIC\n")))
3405 (add-before 'install 'pre-install
3407 (let ((out (assoc-ref %outputs "out")))
3408 (mkdir-p (string-append out "/inc"))
3409 (mkdir-p (string-append out "/man"))
3410 (mkdir-p (string-append out "/man/man1"))
3411 (mkdir-p (string-append out "/man/man3"))
3412 (mkdir-p (string-append out "/bin"))
3413 (mkdir-p (string-append out "/lib")))
3415 (add-after 'install 'post-install
3417 (let ((out (assoc-ref %outputs "out")))
3418 (rename-file (string-append out "/inc")
3419 (string-append out "/include"))
3420 (mkdir-p (string-append out "/include/gsm"))
3421 (copy-recursively "inc"
3422 (string-append out "/include/gsm")))
3424 (delete 'configure)))) ; no configure script
3425 (synopsis "GSM 06.10 lossy speech compression library")
3426 (description "This C library provides an encoder and a decoder for the GSM
3427 06.10 RPE-LTP lossy speech compression algorithm.")
3428 (home-page "http://quut.com/gsm/")
3429 (license (license:non-copyleft "file://COPYRIGHT"))))
3431 (define-public python-pyalsaaudio
3433 (name "python-pyalsaaudio")
3437 (uri (pypi-uri "pyalsaaudio" version))
3440 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3441 (build-system python-build-system)
3443 `(#:tests? #f)) ; tests require access to ALSA devices.
3445 `(("alsa-lib" ,alsa-lib)))
3446 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
3447 (synopsis "ALSA wrappers for Python")
3449 "This package contains wrappers for accessing the ALSA API from Python.
3450 It is currently fairly complete for PCM devices, and has some support for
3452 (license license:psfl)))
3454 (define-public python2-pyalsaaudio
3455 (package-with-python2 python-pyalsaaudio))
3457 (define-public bluez-alsa
3462 ;; The tarballs are mere snapshots and don't contain a
3463 ;; bootstrapped build system.
3466 (url "https://github.com/Arkq/bluez-alsa.git")
3467 (commit (string-append "v" version))))
3468 (file-name (git-file-name name version))
3471 "08mppgnjf1j2733bk9yf0cny6rfxxwiys0s62lz2zd2lpdl6d9lz"))))
3472 (build-system gnu-build-system)
3475 (list (string-append "--with-alsaplugindir="
3476 (assoc-ref %outputs "out")
3478 (string-append "--with-dbusconfdir="
3479 (assoc-ref %outputs "out")
3480 "/etc/dbus-1/system.d"))))
3482 `(("autoconf" ,autoconf)
3483 ("automake" ,automake)
3484 ("libtool" ,libtool)
3485 ("pkg-config" ,pkg-config)))
3487 `(("alsa-lib" ,alsa-lib)
3492 ("ncurses" ,ncurses)
3495 (home-page "https://github.com/Arkq/bluez-alsa")
3496 (synopsis "Bluetooth ALSA backend")
3497 (description "This project is a rebirth of a direct integration between
3498 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
3499 in favor of 3rd party audio applications. From now on, Bluez acts as a
3500 middleware between an audio application, which implements Bluetooth audio
3501 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
3502 audio profiles in Bluez, so in theory every Bluetooth device (with audio
3503 capabilities) can be connected. In order to access the audio stream, one has
3504 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
3505 on the ALSA software PCM plugin.")
3506 (license license:expat)))
3514 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
3515 "snd-" version ".tar.gz"))
3518 "13s8fahpsjygjdrcwmprcrz23ny3klaj2rh2xzdv3bfs69gxvhys"))))
3519 (build-system glib-or-gtk-build-system)
3521 `(#:tests? #f ; no tests
3522 #:out-of-source? #f ; for the 'install-doc' phase
3524 (let* ((out (assoc-ref %outputs "out"))
3525 (docdir (string-append out "/share/doc/"
3526 ,name "-" ,version)))
3527 (list "--with-alsa" "--with-jack" "--with-gmp"
3528 (string-append "--with-doc-dir=" docdir)))
3530 (modify-phases %standard-phases
3531 (add-after 'install 'install-doc
3532 (lambda* (#:key outputs #:allow-other-keys)
3533 (let* ((out (assoc-ref outputs "out"))
3534 (doc (string-append out "/share/doc/"
3535 ,name "-" ,version)))
3538 (install-file f doc))
3539 (find-files "." "\\.html$"))
3540 (copy-recursively "pix" (string-append doc "/pix"))
3543 `(("pkg-config" ,pkg-config)))
3545 `(("alsa-lib" ,alsa-lib)
3552 ("libsamplerate" ,libsamplerate)
3557 ("timidity++" ,timidity++)
3558 ("vorbis-tools" ,vorbis-tools)
3559 ("wavpack" ,wavpack)))
3560 (synopsis "Sound editor")
3561 (home-page "https://ccrma.stanford.edu/software/snd/")
3563 "Snd is a sound editor modelled loosely after Emacs. It can be
3564 customized and extended using either the s7 Scheme implementation (included in
3565 the Snd sources), Ruby, or Forth.")
3566 (license (license:non-copyleft "file://COPYING"))))
3568 (define-public noise-repellent
3570 (name "noise-repellent")
3575 (url "https://github.com/lucianodato/noise-repellent.git")
3577 (file-name (string-append name "-" version "-checkout"))
3580 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
3581 (build-system meson-build-system)
3584 (list (string-append "--prefix=" (assoc-ref %outputs "out")
3590 `(("pkg-config" ,pkg-config)))
3591 (home-page "https://github.com/lucianodato/noise-repellent")
3592 (synopsis "LV2 plugin for broadband noise reduction")
3593 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
3594 the following features:
3597 @item Spectral gating and spectral subtraction suppression rule
3598 @item Adaptive and manual noise thresholds estimation
3599 @item Adjustable noise floor
3600 @item Adjustable offset of thresholds to perform over-subtraction
3601 @item Time smoothing and a masking estimation to reduce artifacts
3602 @item Basic onset detector to avoid transients suppression
3603 @item Whitening of the noise floor to mask artifacts and to recover higher
3605 @item Option to listen to the residual signal
3607 @item Noise profile saved with the session
3610 (license license:lgpl3+)))
3612 (define-public cli-visualizer
3614 (name "cli-visualizer")
3620 (url "https://github.com/dpayne/cli-visualizer.git")
3621 (commit (string-append "v" version))))
3622 (file-name (git-file-name name version))
3624 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
3625 (build-system cmake-build-system)
3627 ;; TODO: Try using the latest googletest for versions > 1.8.
3628 `( ;; ("googletest" ,googletest-1.8)
3632 ("ncurses" ,ncurses)
3633 ("pulseaudio" ,pulseaudio)))
3636 ;; XXX Enable tests after patching them to use the system googletest.
3637 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
3639 (modify-phases %standard-phases
3640 (add-after 'install 'install-examples
3641 (lambda* (#:key outputs #:allow-other-keys)
3642 (with-directory-excursion "../source/examples"
3643 (delete-file "mac_osx_config")
3644 (for-each (lambda (file)
3647 (assoc-ref outputs "out")
3651 (home-page "https://github.com/dpayne/cli-visualizer/")
3652 (synopsis "Command-line audio visualizer")
3653 (description "@code{cli-visualizer} displays fast-Fourier
3654 transforms (FFTs) of the sound being played, as well as other graphical
3656 (license license:expat)))
3665 (url "https://github.com/karlstav/cava.git")
3667 (file-name (git-file-name name version))
3670 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
3671 (build-system gnu-build-system)
3673 `(("autoconf" ,autoconf)
3674 ("automake" ,automake)
3675 ("libtool" ,libtool)))
3678 ("ncurses" ,ncurses)
3679 ("pulseaudio" ,pulseaudio)))
3682 (list (string-append "PREFIX=" %output)
3683 (string-append "FONT_DIR=" %output "/share/consolefonts"))
3685 (let ((lib (string-append %output "/lib")))
3686 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
3688 (modify-phases %standard-phases
3690 (lambda* (#:key outputs #:allow-other-keys)
3691 (setenv "HOME" (getcwd))
3692 (invoke "sh" "autogen.sh")))
3693 (add-before 'build 'make-cava-ldflags
3694 (lambda* (#:key outputs #:allow-other-keys)
3695 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
3697 (add-after 'install 'data
3698 (lambda* (#:key outputs #:allow-other-keys)
3699 (for-each (lambda (file)
3701 (string-append (assoc-ref outputs "out")
3702 "/share/doc/examples")))
3703 (find-files "example_files"))
3705 (home-page "https://karlstav.github.io/cava/")
3706 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
3707 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
3708 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
3709 (license license:expat)))
3711 (define-public fluid-3
3712 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
3719 ;; Only one file is required, but the release bundles the whole
3720 ;; software which is 50MiB as tar and 200MiB unpacked. The website
3721 ;; directly links the soundfont release to the github file download.
3722 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
3723 commit "/share/sound/FluidR3Mono_GM.sf3"))
3724 (file-name (string-append name "-" version ".sf3"))
3727 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
3728 (build-system trivial-build-system)
3730 `(#:modules ((guix build utils))
3733 (use-modules (guix build utils))
3734 (let ((file (assoc-ref %build-inputs "source"))
3735 (out (string-append %output "/share/soundfonts")))
3737 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
3739 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
3740 (synopsis "Pro-quality GM soundfont")
3741 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
3742 (license license:expat))))
3744 (define-public libfdk
3752 (url "https://github.com/mstorsjo/fdk-aac")
3753 (commit (string-append "v" version))))
3754 (file-name (git-file-name name version))
3757 "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486"))))
3758 (build-system gnu-build-system)
3760 `(("autoconf" ,autoconf)
3761 ("automake" ,automake)
3762 ("libtool" ,libtool)))
3763 (home-page "https://github.com/mstorsjo/fdk-aac")
3764 (synopsis "Fraunhofer FDK AAC library")
3765 (description "FDK is a library for encoding and decoding Advanced Audio
3766 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
3767 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
3768 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
3769 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
3770 library supports sample rates up to 96 kHz and up to eight channels (7.1
3772 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
3773 "https://www.gnu.org/licenses/license-list.html#fdk"))))
3775 (define-public libopenshot-audio
3777 (name "libopenshot-audio")
3782 (url "https://github.com/OpenShot/libopenshot-audio")
3783 (commit (string-append "v" version))))
3784 (file-name (git-file-name name version))
3787 "13if0m5mvlqly8gmbhschzb9papkgp3yqivklhb949dhy16m8zgf"))))
3788 (build-system cmake-build-system)
3790 `(("alsa-lib" ,alsa-lib)
3791 ;; The following are for JUCE GUI components:
3793 ("freetype" ,freetype)
3794 ("libxrandr" ,libxrandr)
3795 ("libxinerama" ,libxinerama)
3796 ("libxcursor" ,libxcursor)))
3798 `(#:tests? #f ;there are no tests
3800 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
3801 (assoc-ref %build-inputs "freetype")
3802 "/include/freetype2"))))
3803 (home-page "https://openshot.org")
3804 (synopsis "Audio editing and playback for OpenShot")
3805 (description "OpenShot Audio Library (libopenshot-audio) allows
3806 high-quality editing and playback of audio, and is based on the JUCE
3808 (license license:lgpl3+)))
3810 (define-public faudio
3818 (url "https://github.com/FNA-XNA/FAudio.git")
3820 (file-name (git-file-name name version))
3822 (base32 "0ckpr6ffz8ssfh1y850dhip5s5jv0j6n90qz5yx1v9d6gpwf08rp"))))
3824 '(#:tests? #f ; No tests.
3825 #:configure-flags '("-DFFMPEG=ON")))
3826 (build-system cmake-build-system)
3827 (native-inputs `(("pkg-config" ,pkg-config)))
3828 (inputs `(("ffmpeg" ,ffmpeg)
3830 (home-page "https://github.com/FNA-XNA/FAudio")
3831 (synopsis "XAudio reimplementation")
3832 (description "FAudio is an XAudio reimplementation that focuses solely on
3833 developing fully accurate DirectX Audio runtime libraries.")
3834 (license license:zlib)))
3836 (define-public gnaural
3839 (version "20110606")
3843 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
3847 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
3848 (build-system gnu-build-system)
3850 `(("alsa-lib" ,alsa-lib)
3852 ("libsndfile" ,libsndfile)
3853 ("portaudio" ,portaudio)))
3855 `(("pkg-config" ,pkg-config)))
3856 (home-page "http://gnaural.sourceforge.net/")
3857 (synopsis "Binaural beat synthesizer")
3858 (description "Gnaural is a programmable auditory binaural beat synthesizer
3859 intended to be used for brainwave entrainment. Gnaural supports creation of
3860 binaural beat tracks of different frequencies and exporting of tracks into
3861 different audio formats. Gnaural can also be linked over the internet with
3862 other Gnaural instances, allowing synchronous sessions between many users.")
3863 (license license:gpl2+)))
3865 (define-public darkice
3871 (uri (string-append "mirror://sourceforge/darkice/darkice/"
3872 version "/darkice-" version ".tar.gz"))
3874 (base32 "1rlxds7ssq7nk2in4s46xws7xy9ylxsqgcz85hxjgh17lsm0y39c"))
3876 (search-patches "darkice-workaround-fpermissive-error.patch"))))
3877 (build-system gnu-build-system)
3878 (native-inputs `(("pkg-config" ,pkg-config)))
3879 (inputs `(("lame" ,lame)
3880 ("libvorbis" ,libvorbis)
3882 ("twolame" ,twolame)
3883 ("alsa-lib" ,alsa-lib)
3884 ("pulseaudio" ,pulseaudio)
3886 ("libsamplerate" ,libsamplerate)))
3889 (list (string-append "--with-lame-prefix="
3890 (assoc-ref %build-inputs "lame")))))
3891 (home-page "http://www.darkice.org/")
3892 (synopsis "Live audio streamer")
3893 (description "DarkIce is a live audio streamer. It takes audio input from
3894 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
3895 stream to one or more IceCast and/or ShoutCast servers.")
3896 (license license:gpl3+)))
3898 (define-public libltc
3906 (string-append "https://github.com/x42/libltc/releases/download/v"
3907 version "/libltc-" version ".tar.gz"))
3910 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
3911 (build-system gnu-build-system)
3913 `(#:parallel-tests? #f)) ;tests fail otherwise
3915 `(("doxygen" ,doxygen)
3916 ("pkg-config" ,pkg-config)))
3917 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
3918 (description "Libltc is a POSIX-C Library for handling
3919 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
3920 (home-page "https://x42.github.io/libltc/")
3921 (license license:lgpl3+)))
3923 (define-public redkite
3931 (url "https://gitlab.com/geontime/redkite.git")
3932 (commit (string-append "v" version))))
3933 (file-name (git-file-name name version))
3936 "1747w1kg8y9jbl11xi018d85dm38xk7843pz26sh0k5fdv87a10q"))))
3937 (build-system cmake-build-system)
3939 `(#:tests? #f)) ;no tests included
3941 `(("cairo" ,cairo)))
3943 `(("pkg-config", pkg-config)))
3944 (synopsis "Small GUI toolkit")
3945 (description "Redkite is a small GUI toolkit developed in C++17 and
3946 inspired from other well known GUI toolkits such as Qt and GTK. It is
3947 minimal on purpose and is intended to be statically linked to applications,
3948 therefore satisfying any requirements they may have to be self contained,
3949 as is the case with audio plugins.")
3950 (home-page "https://gitlab.com/geontime/redkite")
3951 (license license:gpl3+)))
3953 (define-public carla
3962 (url "https://github.com/falkTX/Carla.git")
3963 (commit (string-append "v" version))))
3964 (file-name (git-file-name name version))
3967 "0fqgncqlr86n38yy7pa118mswfacmfczj7w9xx6c6k0jav3wk29k"))))
3968 (build-system gnu-build-system)
3970 `(#:tests? #f ; no "check" target
3972 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3974 (modify-phases %standard-phases
3975 (delete 'configure) ; no configure script
3976 (add-before 'build 'set-CC-variable-and-show-features
3979 (invoke "make" "features")))
3980 (add-after 'install 'make-carla-executable
3981 (lambda* (#:key outputs #:allow-other-keys)
3982 (let ((out (assoc-ref outputs "out")))
3983 (chmod (string-append out "/share/carla/carla") #o555)
3985 (add-after 'install 'wrap-executables
3986 (lambda* (#:key outputs #:allow-other-keys)
3987 (let ((out (assoc-ref outputs "out")))
3988 (wrap-script (string-append out "/bin/carla")
3989 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
3992 `(("alsa-lib" ,alsa-lib)
3994 ("fluidsynth" ,fluidsynth)
3997 ("libsndfile" ,libsndfile)
3999 ("python-pyliblo" ,python-pyliblo)
4000 ("python-pyqt" ,python-pyqt)
4001 ("python-rdflib" ,python-rdflib)
4002 ;; python-pyqt shows the following error without python-wrapper:
4003 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
4004 ;; (ModuleNotFoundError: No module named 'PyQt5')
4005 ("python-wrapper" ,python-wrapper)
4010 ;; For WRAP-SCRIPT above.
4011 ("guile" ,guile-2.2)))
4013 `(("pkg-config" ,pkg-config)))
4014 (home-page "https://kx.studio/Applications:Carla")
4015 (synopsis "Audio plugin host")
4016 (description "Carla is a modular audio plugin host, with features like
4017 transport control, automation of parameters via MIDI CC and remote control
4018 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
4019 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
4020 default and preferred audio driver but also supports native drivers like ALSA.")
4021 (license license:gpl2+)))
4023 (define-public ecasound
4029 (uri (string-append "https://nosignal.fi/download/ecasound-"
4032 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
4033 (build-system gnu-build-system)
4034 (native-inputs `(("pkg-config" ,pkg-config)))
4035 ;; It would be nice to add mikmod to inputs if that gets packaged
4037 (inputs `(("alsa-lib" ,alsa-lib)
4041 ("vorbis-tools" ,vorbis-tools)
4044 ("timidity++" ,timidity++)
4045 ("libsndfile" ,libsndfile)
4046 ("libsamplerate" ,libsamplerate)
4047 ("ncurses" ,ncurses)
4050 (home-page "https://nosignal.fi/ecasound/index.php")
4051 (synopsis "Multitrack audio processing")
4052 (description "Ecasound is a software package designed for multitrack audio
4053 processing. It can be used for simple tasks like audio playback, recording and
4054 format conversions, as well as for multitrack effect processing, mixing,
4055 recording and signal recycling. Ecasound supports a wide range of audio inputs,
4056 outputs and effect algorithms. Effects and audio objects can be combined in
4057 various ways, and their parameters can be controlled by operator objects like
4058 oscillators and MIDI-CCs. A versatile console mode user-interface is included
4060 ;; As an exception to the above, the C, C++ and python implementations
4061 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
4062 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
4063 ;; that are not licensed under GPL.
4064 (license (list license:gpl2 license:lgpl2.1))))
4066 (define-public libaudec
4074 (url "https://git.zrythm.org/git/libaudec")
4075 (commit (string-append "v" version))))
4076 (file-name (git-file-name name version))
4079 "0lfydvs92b0hr72z71ci3yi356rjzi162pgms8dphgg18bz8dazv"))))
4080 (build-system meson-build-system)
4082 `(#:configure-flags `("-Denable_tests=true -Denable_ffmpeg=true")))
4084 `(("libsamplerate" ,libsamplerate)
4085 ("libsndfile" ,libsndfile)
4086 ("ffmpeg" ,ffmpeg)))
4088 `(("pkg-config", pkg-config)))
4089 (synopsis "Library for reading and resampling audio files")
4090 (description "libaudec is a wrapper library over ffmpeg, sndfile and
4091 libsamplerate for reading and resampling audio files, based on Robin Gareus'
4092 @code{audio_decoder} code.")
4093 (home-page "https://git.zrythm.org/cgit/libaudec")
4094 (license license:agpl3+)))
4096 (define-public lv2lint
4104 (url "https://git.open-music-kontrollers.ch/lv2/lv2lint")
4106 (file-name (git-file-name name version))
4109 "1pspwqpzl2dw1hd9ra9yr53arqbbqjn7d7j0f7p9g3iqa76vblpi"))))
4110 (build-system meson-build-system)
4113 `("-Delf-tests=true" ; for checking symbol visibility
4114 "-Donline-tests=true"))) ; for checking URI existence
4120 `(("pkg-config", pkg-config)))
4121 (synopsis "LV2 plugin lint tool")
4122 (description "lv2lint is an LV2 lint-like tool that checks whether a
4123 given plugin and its UI(s) match up with the provided metadata and adhere
4124 to well-known best practices.")
4125 (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/")
4126 (license license:artistic2.0)))
4128 (define-public lv2toweb
4136 (url "https://github.com/x42/lv2toweb")
4137 (commit (string-append "v" version))))
4138 (file-name (git-file-name name version))
4141 "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi"))))
4142 (build-system gnu-build-system)
4144 `(#:tests? #f ; no "check" target
4145 #:make-flags (list "CC=gcc"
4146 (string-append "PREFIX=" (assoc-ref %outputs "out")))
4148 (modify-phases %standard-phases
4149 (delete 'configure))))
4154 `(("help2man", help2man)
4155 ("pkg-config", pkg-config)))
4156 (synopsis "Documentation generator for LV2 plugins")
4158 "lv2toweb allows the user to create an xhtml page with information
4159 about the given LV2 plugin, provided that the plugin and its UI(s) match up
4160 with the provided metadata and adhere to well-known best practices.")
4161 (home-page "https://github.com/x42/lv2toweb")
4162 (license (list license:isc license:gpl2))))
4164 (define-public ztoolkit
4172 (url "https://git.zrythm.org/git/ztoolkit")
4173 (commit (string-append "v" version))))
4174 (file-name (git-file-name name version))
4177 "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1"))))
4178 (build-system meson-build-system)
4181 ("libx11" ,libx11)))
4183 `(("pkg-config" ,pkg-config)))
4184 (synopsis "GUI toolkit for LV2 plugins")
4185 (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily
4186 inspired by GTK. It handles events and low level drawing on behalf of
4187 the user and provides a high-level API for managing the UI and custom
4188 widgets. ZToolkit is written in C and was created to be used for building
4189 audio plugin UIs, where the dependencies often need to be kept to a
4191 (home-page "https://git.zrythm.org/cgit/ztoolkit/")
4192 (license license:agpl3+)))
4194 (define-public ztoolkit-rsvg
4197 (name "ztoolkit-rsvg")
4199 `(#:configure-flags `("-Denable_rsvg=true")))
4201 `(("librsvg" ,librsvg)
4202 ,@(package-inputs ztoolkit)))
4203 (synopsis "ZToolkit with SVG support")))
4205 (define-public codec2
4213 (url "https://github.com/drowe67/codec2.git")
4214 (commit (string-append "v" version))))
4215 (file-name (git-file-name name version))
4217 (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba"))))
4218 (build-system cmake-build-system)
4222 ("valgrind" ,valgrind)))
4224 `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules).
4226 (modify-phases %standard-phases
4227 (add-before 'check 'set-test-environment
4229 (setenv "HOME" "/tmp")
4231 (synopsis "Speech codec")
4233 "Codec 2 is a speech codec designed for communications quality speech
4234 between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF
4236 (home-page "https://www.rowetel.com/?page_id=452")
4237 (license license:lgpl2.1)))