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 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>
32 ;;; This file is part of GNU Guix.
34 ;;; GNU Guix is free software; you can redistribute it and/or modify it
35 ;;; under the terms of the GNU General Public License as published by
36 ;;; the Free Software Foundation; either version 3 of the License, or (at
37 ;;; your option) any later version.
39 ;;; GNU Guix is distributed in the hope that it will be useful, but
40 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
41 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42 ;;; GNU General Public License for more details.
44 ;;; You should have received a copy of the GNU General Public License
45 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
47 (define-module (gnu packages audio)
48 #:use-module (gnu packages)
49 #:use-module (gnu packages algebra)
50 #:use-module (gnu packages autotools)
51 #:use-module (gnu packages avahi)
52 #:use-module (gnu packages backup)
53 #:use-module (gnu packages base)
54 #:use-module (gnu packages bison)
55 #:use-module (gnu packages boost)
56 #:use-module (gnu packages check)
57 #:use-module (gnu packages compression)
58 #:use-module (gnu packages curl)
59 #:use-module (gnu packages dbm)
60 #:use-module (gnu packages documentation)
61 #:use-module (gnu packages emacs)
62 #:use-module (gnu packages file)
63 #:use-module (gnu packages flex)
64 #:use-module (gnu packages fltk)
65 #:use-module (gnu packages fontutils)
66 #:use-module (gnu packages gcc)
67 #:use-module (gnu packages gettext)
68 #:use-module (gnu packages glib)
69 #:use-module (gnu packages gnome)
70 #:use-module (gnu packages gnunet) ; libmicrohttpd
71 #:use-module (gnu packages gperf)
72 #:use-module (gnu packages gtk)
73 #:use-module (gnu packages guile)
74 #:use-module (gnu packages icu4c)
75 #:use-module (gnu packages image)
76 #:use-module (gnu packages libbsd)
77 #:use-module (gnu packages libusb)
78 #:use-module (gnu packages linux)
79 #:use-module (gnu packages llvm)
80 #:use-module (gnu packages maths)
81 #:use-module (gnu packages mp3) ;taglib
82 #:use-module (gnu packages multiprecision)
83 #:use-module (gnu packages music)
84 #:use-module (gnu packages ncurses)
85 #:use-module (gnu packages onc-rpc)
86 #:use-module (gnu packages perl)
87 #:use-module (gnu packages pkg-config)
88 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
89 #:use-module (gnu packages python)
90 #:use-module (gnu packages python-xyz)
91 #:use-module (gnu packages qt)
92 #:use-module (gnu packages rdf)
93 #:use-module (gnu packages readline)
94 #:use-module (gnu packages sdl)
95 #:use-module (gnu packages serialization)
96 #:use-module (gnu packages telephony)
97 #:use-module (gnu packages tls)
98 #:use-module (gnu packages video)
99 #:use-module (gnu packages vim) ;xxd
100 #:use-module (gnu packages webkit)
101 #:use-module (gnu packages wxwidgets)
102 #:use-module (gnu packages xiph)
103 #:use-module (gnu packages xml)
104 #:use-module (gnu packages xorg)
105 #:use-module (guix build-system cmake)
106 #:use-module (guix build-system glib-or-gtk)
107 #:use-module (guix build-system gnu)
108 #:use-module (guix build-system meson)
109 #:use-module (guix build-system python)
110 #:use-module (guix build-system trivial)
111 #:use-module (guix build-system waf)
112 #:use-module (guix download)
113 #:use-module (guix git-download)
114 #:use-module ((guix licenses) #:prefix license:)
115 #:use-module (guix packages)
116 #:use-module (guix utils)
117 #:use-module (srfi srfi-1)
118 #:use-module (srfi srfi-26))
120 (define-public alsa-modular-synth
122 (name "alsa-modular-synth")
126 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
127 "/" version "/ams-" version ".tar.bz2"))
130 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
131 (build-system gnu-build-system)
135 "CXXFLAGS=-std=gnu++11")
137 (modify-phases %standard-phases
138 ;; Insert an extra space between linker flags.
139 (add-before 'configure 'add-missing-space
141 (substitute* "configure"
142 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
143 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
146 `(("alsa-lib" ,alsa-lib)
147 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
148 ;; license incompatibility.
149 ("clalsadrv" ,clalsadrv)
155 ("qttools" ,qttools)))
157 `(("pkg-config" ,pkg-config)
159 (home-page "http://alsamodular.sourceforge.net/")
160 (synopsis "Realtime modular synthesizer and effect processor")
162 "AlsaModularSynth is a digital implementation of a classical analog
163 modular synthesizer system. It uses virtual control voltages to control the
164 parameters of the modules. The control voltages which control the frequency
165 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
166 Filter) modules follow the convention of 1V / Octave.")
167 (license license:gpl2)))
176 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
179 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
180 (build-system waf-build-system)
182 `(#:tests? #f ; no check target
185 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
189 "--enable-samplerate"
194 ("libsndfile" ,libsndfile)
195 ("libsamplerate" ,libsamplerate)
197 ("ffmpeg" ,ffmpeg))) ; for libavcodec
199 `(("pkg-config" ,pkg-config)))
200 (home-page "https://aubio.org/")
201 (synopsis "Library for audio labelling")
203 "aubio is a tool designed for the extraction of annotations from audio
204 signals. Its features include segmenting a sound file before each of its
205 attacks, performing pitch detection, tapping the beat and producing MIDI
206 streams from live audio.")
207 (license license:gpl3+)))
209 (define (ardour-rpath-phase major-version)
210 `(lambda* (#:key outputs #:allow-other-keys)
211 (let ((libdir (string-append (assoc-ref outputs "out")
212 "/lib/ardour" ,major-version)))
213 (substitute* "wscript"
214 (("linker_flags = \\[\\]")
215 (string-append "linker_flags = [\""
218 libdir "/backends" ":"
219 libdir "/engines" ":"
220 libdir "/panners" ":"
221 libdir "/surfaces" ":"
222 libdir "/vamp" "\"]"))))
225 (define-public ardour
232 (url "https://git.ardour.org/ardour/ardour.git")
235 ;; Ardour expects this file to exist at build time. The revision
237 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
238 `(call-with-output-file
239 "libs/ardour/revision.cc"
241 (format port ,(string-append "#include \"ardour/revision.h\"
242 namespace ARDOUR { const char* revision = \"" version "\" ; }"))
246 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
247 (file-name (string-append name "-" version))))
248 (build-system waf-build-system)
250 `(#:configure-flags '("--cxx11" ; required by gtkmm
251 "--no-phone-home" ; don't contact ardour.org
252 "--freedesktop" ; build .desktop file
253 "--test") ; build unit tests
255 (modify-phases %standard-phases
256 (add-after 'unpack 'set-rpath-in-LDFLAGS
257 ,(ardour-rpath-phase (version-major version)))
258 (add-after 'install 'install-freedesktop-files
259 (lambda* (#:key outputs #:allow-other-keys)
260 (let* ((out (assoc-ref outputs "out"))
261 (share (string-append out "/share"))
262 (ver ,(version-major version)))
265 (let ((dir (string-append share "/icons/hicolor/"
266 size "x" size "/apps")))
269 (string-append "gtk2_ardour/resources/Ardour-icon_"
271 (string-append dir "/ardour" ver ".png"))))
272 '("16" "22" "32" "48" "256"))
273 (install-file (string-append "build/gtk2_ardour/ardour"
275 (string-append share "/applications/"))
276 (install-file (string-append "build/gtk2_ardour/ardour"
278 (string-append share "/appdata/")))
283 `(("alsa-lib" ,alsa-lib)
296 ("libarchive" ,libarchive)
297 ("libart-lgpl" ,libart-lgpl)
298 ("libgnomecanvasmm" ,libgnomecanvasmm)
301 ("libsamplerate" ,libsamplerate)
302 ("libsndfile" ,libsndfile)
304 ("libvorbis" ,libvorbis)
310 ("python-rdflib" ,python-rdflib)
311 ("readline" ,readline)
313 ("rubberband" ,rubberband)
321 `(("cppunit" ,cppunit)
322 ("gettext" ,gettext-minimal)
325 ("pkg-config" ,pkg-config)))
326 (home-page "https://ardour.org")
327 (synopsis "Digital audio workstation")
329 "Ardour is a multi-channel digital audio workstation, allowing users to
330 record, edit, mix and master audio and MIDI projects. It is targeted at audio
331 engineers, musicians, soundtrack editors and composers.")
332 (license license:gpl2+)))
334 (define-public audacity
342 (url "https://github.com/audacity/audacity.git")
343 (commit (string-append "Audacity-" version))))
344 (file-name (git-file-name name version))
347 "0707fsnrl4vjalsi21w4blwgz024qhd0w8rdd5j5vpxf5lyk2rbk"))
348 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
349 (modules '((guix build utils)))
351 ;; Remove bundled libraries.
355 (delete-file-recursively (string-append "lib-src/" dir)))
356 '("expat" "ffmpeg" "lame" "libflac" "libid3tag" "libmad" "libogg"
357 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
358 "portaudio-v19" "portmidi" "soundtouch" "twolame"
359 ;; FIXME: these libraries have not been packaged yet:
367 ;; FIXME: we have this library, but it differs in that the Slide
368 ;; class does not have a member "getInverseStretchedTime".
372 (build-system glib-or-gtk-build-system)
374 `(("wxwidgets" ,wxwidgets)
376 ("alsa-lib" ,alsa-lib)
382 ("libid3tag" ,libid3tag)
384 ;;("libsbsms" ,libsbsms) ;bundled version is modified
385 ("libsndfile" ,libsndfile)
386 ("soundtouch" ,soundtouch)
387 ("soxr" ,soxr) ;replaces libsamplerate
390 ("libvorbis" ,libvorbis)
392 ("lilv" ,lilv) ;for lv2
393 ("suil" ,suil) ;for lv2
394 ("portaudio" ,portaudio)
395 ("portmidi" ,portmidi)))
397 `(("autoconf" ,autoconf)
398 ("automake" ,automake)
399 ("gettext" ,gettext-minimal) ;for msgfmt
401 ("pkg-config" ,pkg-config)
406 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
407 (libmad (assoc-ref %build-inputs "libmad"))
408 (portmidi (assoc-ref %build-inputs "portmidi")))
410 ;; Loading FFmpeg dynamically is problematic.
411 "--disable-dynamic-loading"
412 ;; SSE instructions are available on Intel systems only.
413 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
417 '("--enable-sse=no"))
418 ;; portmidi, libid3tag and libmad provide no .pc files, so
419 ;; pkg-config fails to find them. Force their inclusion.
420 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
421 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
422 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
423 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
424 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
425 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
426 "EXPAT_USE_SYSTEM=yes"
427 "FFMPEG_USE_SYSTEM=yes"
428 "LAME_USE_SYSTEM=yes"
429 "LIBFLAC_USE_SYSTEM=yes"
430 "LIBID3TAG_USE_SYSTEM=yes"
431 "LIBMAD_USE_SYSTEM=yes"
432 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
433 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
434 "LIBSNDFILE_USE_SYSTEM=yes"
435 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
436 "LIBSOXR_USE_SYSTEM=yes"
437 "LIBTWOLAME_USE_SYSTEM=yes"
438 "LIBVAMP_USE_SYSTEM=yes"
439 "LIBVORBIS_USE_SYSTEM=yes"
441 "PORTAUDIO_USE_SYSTEM=yes"))
443 (modify-phases %standard-phases
444 (add-after 'unpack 'fix-sbsms-check
446 ;; This check is wrong: there is no 2.2.0 release; not even the
447 ;; bundled sources match this release string.
448 (substitute* '("m4/audacity_checklib_libsbsms.m4"
450 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
452 (add-after 'unpack 'use-upstream-headers
453 (lambda* (#:key inputs #:allow-other-keys)
454 (substitute* '("src/NoteTrack.cpp"
457 "src/AudioIOBase.cpp")
458 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
459 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
460 (substitute* "src/prefs/MidiIOPrefs.cpp"
461 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
463 ;; The test suite is not "well exercised" according to the developers,
464 ;; and fails with various errors. See
465 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
467 (home-page "https://www.audacityteam.org/")
468 (synopsis "Software for recording and editing sounds")
470 "Audacity is a multi-track audio editor designed for recording, playing
471 and editing digital audio. It features digital effects and spectrum analysis
473 (license license:gpl2+)))
475 (define-public audiofile
483 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
485 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
487 ;; CVE references according to nixpgs
489 "audiofile-fix-datatypes-in-tests.patch"
490 "audiofile-fix-sign-conversion.patch"
491 "audiofile-hurd.patch"
492 "audiofile-CVE-2015-7747.patch"
494 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
495 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
497 "audiofile-Check-the-number-of-coefficients.patch"
499 "audiofile-Fix-overflow-in-MSADPCM-decodeSam.patch"
500 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
501 "audiofile-Fix-multiply-overflow-sfconvert.patch"
502 "audiofile-signature-of-multiplyCheckOverflow.patch"
504 "audiofile-Fail-on-error-in-parseFormat.patch"
506 "audiofile-division-by-zero-BlockCodec-runPull.patch"
507 "audiofile-CVE-2018-13440.patch"
508 "audiofile-CVE-2018-17095.patch"))))
509 (build-system gnu-build-system)
511 `(("alsa-lib" ,alsa-lib)))
512 (home-page "https://audiofile.68k.org/")
513 (synopsis "Library to handle various audio file formats")
514 (description "This is an open-source version of SGI's audiofile library.
515 It provides a uniform programming interface for processing of audio data to
516 and from audio files of many common formats.
518 Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
519 .snd/.au, BICS, and raw data. Supported compression formats are currently
520 G.711 mu-law and A-law.")
521 (license license:lgpl2.1+)))
523 (define-public autotalent
529 (uri (string-append "http://tombaran.info/autotalent-"
533 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
534 (build-system gnu-build-system)
536 `(#:tests? #f ; no check target
538 (modify-phases %standard-phases
539 ;; no configure script
541 (add-before 'install 'prepare-target-directory
542 (lambda* (#:key outputs #:allow-other-keys)
543 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
545 (add-after 'unpack 'override-target-directory
546 (lambda* (#:key outputs #:allow-other-keys)
547 (substitute* "Makefile"
548 (("/usr/lib64/ladspa")
549 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
552 `(("ladspa" ,ladspa)))
553 (home-page "http://tombaran.info/autotalent.html")
554 (synopsis "Pitch-correction LADSPA audio plugin")
556 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
557 controls are allowable notes, strength of correction, LFO for vibrato and
559 ;; All code except the FFT routine is licensed under GPLv2+.
560 ;; The FFT routine is under BSD-3.
561 (license license:gpl2+)))
569 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
574 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
575 (patches (search-patches "azr3.patch"))))
576 (build-system gnu-build-system)
578 `(#:tests? #f ; no check target
581 (string-append "prefix=" %output)
582 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
584 (modify-phases %standard-phases
585 (add-before 'install 'fix-timestamp
587 (let ((early-1980 315619200)) ; 1980-01-02 UTC
588 (utime "azr3.1" early-1980 early-1980))
596 `(("pkg-config" ,pkg-config)))
597 (home-page "http://ll-plugins.nongnu.org/azr3/")
598 (synopsis "Tonewheel organ synthesizer")
600 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
601 with drawbars, distortion and rotating speakers. The organ has three
602 sections, two polyphonic sections with nine drawbars each and one monophonic
603 bass section with five drawbars. A standalone JACK application and LV2
604 plugins are provided.")
605 (license license:gpl2)))
613 (uri (string-append "https://calf-studio-gear.org/files/calf-"
617 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
618 (build-system gnu-build-system)
620 `(("fluidsynth" ,fluidsynth)
631 `(("pkg-config" ,pkg-config)))
633 (list (search-path-specification
634 (variable "LV2_PATH")
635 (files '("lib/lv2")))))
636 (home-page "http://calf.sourceforge.net/")
637 (synopsis "Audio plug-in pack for LV2 and JACK environments")
639 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
640 The suite contains lots of effects (delay, modulation, signal processing,
641 filters, equalizers, dynamics, distortion and mastering effects),
642 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
643 tools (analyzer, mono/stereo tools, crossovers).")
644 ;; calfjackhost is released under GPLv2+
645 ;; The plugins are released under LGPLv2.1+
646 (license (list license:lgpl2.1+ license:gpl2+))))
648 (define-public caps-plugins-lv2
650 (name "caps-plugins-lv2")
651 (version "0.9.24") ; version that has been ported.
654 ;; The Github project hasn't tagged a release.
657 ;; Actually https://github.com/moddevices/caps-lv2.git, but it's
658 ;; missing fixes for newer glibc, so using the origin of a pull
659 ;; request regarding this issue:
660 (url "https://github.com/jujudusud/caps-lv2.git")
661 (commit "9c9478b7fbd8f9714f552ebe2a6866398b0babfb")))
662 (file-name (git-file-name name version))
665 "1idfnazin3cca41zw1a8vwgnxjnkrap7bxxjamjqvgpmvydgcam1"))))
666 (build-system gnu-build-system)
668 `(#:tests? #f ; no check target
670 (modify-phases %standard-phases
671 ;; no configure script
673 (add-after 'unpack 'override-target-directory
674 (lambda* (#:key outputs #:allow-other-keys)
675 (substitute* (find-files "plugins" "Makefile")
676 (("/usr/local")(assoc-ref outputs "out")))
680 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
681 (home-page "https://github.com/moddevices/caps-lv2")
682 (synopsis "LV2 port of the CAPS audio plugin colection")
684 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
685 guitar amplification and a small range of classic effects, signal processors and
686 generators of mostly elementary and occasionally exotic nature.")
687 (license license:gpl3+)))
689 (define-public infamous-plugins
691 (name "infamous-plugins")
696 (url "https://github.com/ssj71/infamousPlugins.git")
697 (commit (string-append "v" version))))
698 (file-name (git-file-name name version))
701 "0hmqk80w4qxq09iag7b7srf2g0wigkyhzq0ywxvhz2iz0hq9k0dh"))))
702 (build-system cmake-build-system)
704 `(#:tests? #f ; there are no tests
706 (modify-phases %standard-phases
707 (add-after 'unpack 'remove-compiler-flags
709 (substitute* (find-files "." "CMakeLists.txt")
710 (("-msse2 -mfpmath=sse") ""))
717 ("zita-resampler" ,zita-resampler)))
719 `(("pkg-config" ,pkg-config)))
720 (home-page "https://ssj71.github.io/infamousPlugins")
721 (synopsis "LV2 plugins for live use")
723 "The infamous plugins are a collection of LV2 audio plugins for live
724 performances. The plugins include a cellular automaton synthesizer, an
725 envelope follower, distortion effects, tape effects and more.")
726 (license license:gpl2+)))
728 (define-public swh-plugins
735 (url "https://github.com/swh/ladspa.git")
736 (commit (string-append "v" version))))
737 (file-name (git-file-name name version))
740 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
742 `(("autoconf" ,autoconf)
743 ("automake" ,automake)
744 ("gettext" ,gettext-minimal) ;for autopoint
747 ("pkg-config" ,pkg-config)
751 ("perl-xml-parser" ,perl-xml-parser)))
752 (build-system gnu-build-system)
753 (home-page "http://plugin.org.uk")
754 (synopsis "The SWH Plugins package for the LADSPA plugin system")
755 (description "This package provides Steve Harris's LADSPA plugins.")
756 (license license:gpl2+)))
758 (define-public swh-plugins-lv2
760 (name "swh-plugins-lv2")
765 (url "https://github.com/swh/lv2.git")
766 (commit (string-append "v" version))))
767 (file-name (git-file-name name version))
770 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
771 (build-system gnu-build-system)
773 `(#:tests? #f ; no check target
774 #:make-flags (list "CC=gcc"
775 (string-append "PREFIX="
776 (assoc-ref %outputs "out")))
778 (modify-phases %standard-phases
779 ;; no configure script
781 (add-after 'unpack 'patch-makefile-and-enter-directory
782 ;; The default install target doesn't install, but the
783 ;; "install-system" target does.
785 (substitute* "Makefile"
786 (("install:") "install: install-system"))
792 `(("libxslt" ,libxslt)
793 ("pkg-config" ,pkg-config)))
794 (home-page "http://plugin.org.uk")
795 (synopsis "SWH plugins in LV2 format")
797 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
798 classes include: dynamics (compressor, limiter), time (delay, chorus,
799 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
800 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
801 (license license:gpl3+)))
803 (define-public csound
810 (url "https://github.com/csound/csound.git")
812 (file-name (git-file-name name version))
815 "14822ybqyp31z18gky2y9zadr9dkbhabg97y139py73w7v3af1bh"))))
816 (build-system cmake-build-system)
818 `(("alsa-lib" ,alsa-lib)
820 ("pulseaudio" ,pulseaudio)
821 ("libsndfile" ,libsndfile)
825 ("gettext" ,gettext-minimal)))
830 (home-page "https://csound.com/")
831 (synopsis "Sound and music computing system")
833 "Csound is a user-programmable and user-extensible sound processing
834 language and software synthesizer.")
835 (license license:lgpl2.1+)))
837 (define-public clalsadrv
844 "http://kokkinizita.linuxaudio.org"
845 "/linuxaudio/downloads/clalsadrv-"
849 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
850 (build-system gnu-build-system)
852 `(#:tests? #f ; no "check" target
853 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
855 (modify-phases %standard-phases
856 (add-after 'unpack 'patch-makefile-and-enter-directory
858 (substitute* "libs/Makefile"
859 (("/sbin/ldconfig") "true")
860 (("^LIBDIR =.*") "LIBDIR = lib\n"))
863 (add-after 'install 'install-symlink
865 (symlink "libclalsadrv.so"
866 (string-append (assoc-ref %outputs "out")
867 "/lib/libclalsadrv.so.2"))
869 ;; no configure script
870 (delete 'configure))))
872 `(("alsa-lib" ,alsa-lib)
874 (home-page "https://kokkinizita.linuxaudio.org")
875 (synopsis "C++ wrapper around the ALSA API")
877 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
879 (license license:gpl2+)))
881 (define-public amb-plugins
888 "http://kokkinizita.linuxaudio.org"
889 "/linuxaudio/downloads/AMB-plugins-"
893 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
894 (build-system gnu-build-system)
896 `(#:tests? #f ; no "check" target
898 (modify-phases %standard-phases
899 ;; no configure script
901 (add-before 'install 'prepare-target-directory
902 (lambda* (#:key outputs #:allow-other-keys)
903 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
905 (add-after 'unpack 'override-target-directory-and-tool-paths
906 (lambda* (#:key outputs #:allow-other-keys)
907 (substitute* "Makefile"
909 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
910 (("/usr/bin/install") (which "install"))
913 (home-page "https://kokkinizita.linuxaudio.org")
914 (synopsis "LADSPA ambisonics plugins")
916 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
917 used within Ardour. Features include: mono and stereo to B-format panning,
918 horizontal rotator, square, hexagon and cube decoders.")
919 (license license:gpl2+)))
921 (define-public mcp-plugins
928 "http://kokkinizita.linuxaudio.org"
929 "/linuxaudio/downloads/MCP-plugins-"
933 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
934 (build-system gnu-build-system)
936 `(#:tests? #f ; no "check" target
938 (modify-phases %standard-phases
939 ;; no configure script
941 (add-before 'install 'prepare-target-directory
942 (lambda* (#:key outputs #:allow-other-keys)
943 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
945 (add-after 'unpack 'override-target-directory
946 (lambda* (#:key outputs #:allow-other-keys)
947 (substitute* "Makefile"
948 (("/usr") (assoc-ref outputs "out")))
950 (home-page "https://kokkinizita.linuxaudio.org")
951 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
953 "This package provides various LADSPA plugins. @code{cs_chorus} and
954 @code{cs_phaser} provide chorus and phaser effects, respectively;
955 @code{mvclpf24} provides four implementations of the low-pass filter used in
956 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
957 high-pass filter by Robert Moog. The filters attempt to accurately emulate
958 the non-linear circuit elements of their original analog counterparts.")
959 (license license:gpl2+)))
961 (define-public rev-plugins
968 "http://kokkinizita.linuxaudio.org"
969 "/linuxaudio/downloads/REV-plugins-"
973 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
974 (build-system gnu-build-system)
976 `(#:tests? #f ; no "check" target
978 (modify-phases %standard-phases
979 ;; no configure script
981 (add-before 'install 'prepare-target-directory
982 (lambda* (#:key outputs #:allow-other-keys)
983 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
985 (add-after 'unpack 'override-target-directory
986 (lambda* (#:key outputs #:allow-other-keys)
987 (substitute* "Makefile"
988 (("/usr") (assoc-ref outputs "out")))
990 (home-page "https://kokkinizita.linuxaudio.org")
991 (synopsis "LADSPA reverb plugin")
993 "This package provides a stereo reverb LADSPA plugin based on the
994 well-known greverb.")
995 (license license:gpl2+)))
997 (define-public fil-plugins
1004 "http://kokkinizita.linuxaudio.org"
1005 "/linuxaudio/downloads/FIL-plugins-"
1006 version ".tar.bz2"))
1009 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1010 (build-system gnu-build-system)
1012 `(#:tests? #f ; no "check" target
1014 (modify-phases %standard-phases
1015 ;; no configure script
1017 (add-before 'install 'prepare-target-directory
1018 (lambda* (#:key outputs #:allow-other-keys)
1019 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1021 (add-after 'unpack 'override-target-directory
1022 (lambda* (#:key outputs #:allow-other-keys)
1023 (substitute* "Makefile"
1024 (("/usr") (assoc-ref outputs "out")))
1026 (home-page "https://kokkinizita.linuxaudio.org")
1027 (synopsis "LADSPA four-band parametric equalizer plugin")
1029 "This package provides a LADSPA plugin for a four-band parametric
1030 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1031 gain controls. There is also a global bypass switch and gain control.
1033 The 2nd order resonant filters are implemented using a Mitra-Regalia style
1034 lattice filter, which is stable even while parameters are being changed.
1036 All switches and controls are internally smoothed, so they can be used @code{live}
1037 without any clicks or zipper noises. This makes this plugin suitable for use
1038 in systems that allow automation of plugin control ports, such as Ardour, or
1040 (license license:gpl2+)))
1042 (define-public ste-plugins
1044 (name "ste-plugins")
1049 "http://kokkinizita.linuxaudio.org"
1050 "/linuxaudio/downloads/STE-plugins-"
1051 version ".tar.bz2"))
1054 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
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 stereo width plugin")
1074 "This package provides a LADSPA plugin to manipulate the stereo width of
1076 (license license:gpl2+)))
1078 (define-public vco-plugins
1080 (name "vco-plugins")
1085 "http://kokkinizita.linuxaudio.org"
1086 "/linuxaudio/downloads/VCO-plugins-"
1087 version ".tar.bz2"))
1090 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1091 (build-system gnu-build-system)
1093 `(#:tests? #f ; no "check" target
1095 (modify-phases %standard-phases
1096 ;; no configure script
1098 (add-before 'install 'prepare-target-directory
1099 (lambda* (#:key outputs #:allow-other-keys)
1100 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1102 (add-after 'unpack 'override-target-directory
1103 (lambda* (#:key outputs #:allow-other-keys)
1104 (substitute* "Makefile"
1105 (("/usr") (assoc-ref outputs "out"))
1106 (("/bin/cp") (which "cp")))
1108 (home-page "https://kokkinizita.linuxaudio.org")
1109 (synopsis "LADSPA plugin for synthesizer oscillators")
1111 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1114 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1115 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1116 @item Rec-VCO, a square / rectangle oscillator
1119 All oscillators are low-pass filtered to provide waveforms similar to the
1120 output of analog synthesizers such as the Moog Voyager.")
1121 (license license:gpl2+)))
1123 (define-public wah-plugins
1125 (name "wah-plugins")
1130 "http://kokkinizita.linuxaudio.org"
1131 "/linuxaudio/downloads/WAH-plugins-"
1132 version ".tar.bz2"))
1135 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
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")))
1152 (home-page "https://kokkinizita.linuxaudio.org")
1153 (synopsis "LADSPA Autowah effect plugin")
1155 "This package provides a LADSPA plugin for a Wah effect with envelope
1157 (license license:gpl2+)))
1159 (define-public g2reverb
1166 "http://kokkinizita.linuxaudio.org"
1167 "/linuxaudio/downloads/g2reverb-"
1168 version ".tar.bz2"))
1171 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1172 (build-system gnu-build-system)
1174 `(#:tests? #f ; no "check" target
1176 (modify-phases %standard-phases
1177 ;; no configure script
1179 (add-before 'install 'prepare-target-directory
1180 (lambda* (#:key outputs #:allow-other-keys)
1181 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1183 (add-after 'unpack 'override-target-directory
1184 (lambda* (#:key outputs #:allow-other-keys)
1185 (substitute* "Makefile"
1186 (("/usr") (assoc-ref outputs "out")))
1188 (home-page "https://kokkinizita.linuxaudio.org")
1189 (synopsis "LADSPA stereo reverb plugin")
1191 "This package provides a LADSPA plugin for a stereo reverb effect.")
1192 (license license:gpl2+)))
1194 (define-public fluidsynth
1201 (url "https://github.com/FluidSynth/fluidsynth.git")
1202 (commit (string-append "v" version))))
1203 (file-name (git-file-name name version))
1206 "09jq04hrasidf6b5gkk4aba13fq55z3bmn7bq35rdaikz26xiij4"))))
1207 (build-system cmake-build-system)
1209 '(#:tests? #f ; no check target
1211 (modify-phases %standard-phases
1212 (add-after 'unpack 'fix-libdir
1214 ;; Install libraries to /lib, not /lib64.
1215 (substitute* "CMakeLists.txt"
1216 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1220 `(("libsndfile" ,libsndfile)
1221 ("alsa-lib" ,alsa-lib)
1225 ("readline" ,readline)
1228 `(("pkg-config" ,pkg-config)))
1229 (home-page "http://www.fluidsynth.org/")
1230 (synopsis "SoundFont synthesizer")
1232 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1233 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1234 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1235 also play midifiles using a Soundfont.")
1236 (license license:lgpl2.1+)))
1238 ;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1240 (define-public fluidsynth-1
1242 (inherit fluidsynth)
1245 (inherit (package-source fluidsynth))
1247 (url "https://github.com/FluidSynth/fluidsynth")
1248 (commit (string-append "v" version))))
1249 (file-name (git-file-name "fluidsynth" version))
1252 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1254 (define-public faad2
1260 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1261 (version-major+minor version) ".0/"
1262 "faad2-" version ".tar.gz"))
1265 "089zqykqgmmysznvk0bi2pfvdqwclnn540d0zks83sv2pynpfjb5"))))
1266 (build-system gnu-build-system)
1267 (home-page "https://www.audiocoding.com/faad2.html")
1268 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1270 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
1272 (license license:gpl2)))
1274 (define-public faust
1281 (url "https://github.com/grame-cncm/faust.git")
1282 (commit (string-append "v"
1283 (string-map (lambda (c)
1284 (if (char=? c #\.) #\- c))
1286 (file-name (string-append "faust-" version "-checkout"))
1289 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1290 (build-system gnu-build-system)
1292 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1295 (modify-phases %standard-phases
1296 ;; no "configure" script
1298 ;; Files appear under $out/share/faust that are read-only. The
1299 ;; install phase tries to overwrite them and fails, so we change
1300 ;; the permissions first.
1301 (add-before 'install 'fix-permissions
1303 (for-each (lambda (file)
1305 (find-files "architecture/max-msp" ".*"))
1308 `(("unzip" ,unzip)))
1309 (home-page "https://faust.grame.fr/")
1310 (synopsis "Signal processing language")
1312 "Faust is a programming language for realtime audio signal processing.")
1313 (license license:gpl2+)))
1315 (define-public faust-2
1321 (uri (string-append "https://github.com/grame-cncm/faust/"
1322 "releases/download/" version
1323 "/faust-" version ".tar.gz"))
1326 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1327 (build-system gnu-build-system)
1329 (substitute-keyword-arguments (package-arguments faust)
1330 ((#:make-flags flags)
1331 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1334 `(("llvm" ,llvm-3.8)
1337 ("ctags" ,emacs-minimal) ; for ctags
1338 ("pkg-config" ,pkg-config)))
1340 `(("libsndfile" ,libsndfile)
1341 ("libmicrohttpd" ,libmicrohttpd)
1342 ("ncurses" ,ncurses)
1343 ("openssl" ,openssl)
1346 (define-public freepats
1349 (version "20060219")
1352 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1353 version ".tar.bz2"))
1356 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1357 (build-system trivial-build-system)
1359 `(#:modules ((guix build utils))
1361 (use-modules (guix build utils))
1362 (let ((out (string-append %output "/share/freepats")))
1363 (setenv "PATH" (string-append
1364 (assoc-ref %build-inputs "bzip2") "/bin:"
1365 (assoc-ref %build-inputs "tar") "/bin"))
1366 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
1368 ;; Use absolute pattern references
1369 (substitute* "freepats.cfg"
1370 (("Tone_000") (string-append out "/Tone_000"))
1371 (("Drum_000") (string-append out "/Drum_000")))
1373 (copy-recursively "." out)
1378 (home-page "http://freepats.zenvoid.org")
1379 (synopsis "GUS compatible patches for MIDI players")
1381 "FreePats is a project to create a free and open set of GUS compatible
1382 patches that can be used with softsynths such as Timidity and WildMidi.")
1383 ;; GPLv2+ with exception for compositions using these patches.
1384 (license license:gpl2+)))
1386 (define-public guitarix
1393 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1397 "0bw7xnrx062nwb1bfj9x660h7069ncmz77szcs8icpqxrvhs7z80"))))
1398 (build-system waf-build-system)
1400 `(#:tests? #f ; no "check" target
1404 ;; Add the output lib directory to the RUNPATH.
1405 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))
1407 (modify-phases %standard-phases
1408 (add-after 'unpack 'fix-boost-includes
1410 (substitute* "src/headers/gx_internal_plugins.h"
1411 (("namespace gx_jack" m)
1412 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1413 (substitute* '("src/headers/gx_system.h"
1414 "src/headers/gx_parameter.h"
1415 "src/headers/gx_json.h")
1416 (("namespace gx_system" m)
1417 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1420 `(("libsndfile" ,libsndfile)
1433 ("zita-resampler" ,zita-resampler)
1434 ("zita-convolver" ,zita-convolver)))
1438 ("intltool" ,intltool)
1439 ("gettext" ,gettext-minimal)
1440 ("pkg-config" ,pkg-config)))
1441 (native-search-paths
1442 (list (search-path-specification
1443 (variable "LV2_PATH")
1444 (files '("lib/lv2")))))
1445 (home-page "http://guitarix.org/")
1446 (synopsis "Virtual guitar amplifier")
1447 (description "Guitarix is a virtual guitar amplifier running JACK.
1448 Guitarix takes the signal from your guitar as a mono-signal from your sound
1449 card. The input is processed by a main amp and a rack-section. Both can be
1450 routed separately and deliver a processed stereo-signal via JACK. You may
1451 fill the rack with effects from more than 25 built-in modules including stuff
1452 from a simple noise gate to modulation effects like flanger, phaser or
1454 (license license:gpl2+)))
1456 (define-public guitarix-lv2
1457 (package (inherit guitarix)
1458 (name "guitarix-lv2")
1460 (substitute-keyword-arguments (package-arguments guitarix)
1461 ((#:configure-flags flags)
1462 `(cons "--no-standalone" ,flags))))))
1464 (define-public rakarrack
1470 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1471 "rakarrack-" version "/rakarrack-"
1472 version ".tar.bz2"))
1475 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1476 (modules '((guix build utils)))
1479 (substitute* '("src/process.C"
1481 (("#include <Fl/") "#include <FL/"))
1483 (build-system gnu-build-system)
1485 `(("alsa-utils" ,alsa-utils)
1488 ("libxext" ,libxext)
1489 ("libxfixes" ,libxfixes)
1491 ("libxrender" ,libxrender)
1493 ("fontconfig" ,fontconfig)
1494 ("freetype" ,freetype)
1496 ("alsa-lib" ,alsa-lib)
1497 ("libsndfile" ,libsndfile)
1498 ("libsamplerate" ,libsamplerate)
1500 (home-page "http://rakarrack.sourceforge.net/")
1501 (synopsis "Audio effects processor")
1503 "Rakarrack is a richly featured multi-effects processor emulating a
1504 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1505 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1506 distortion modules and many more. Most of the effects engine is built from
1507 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1508 user interface are optimized for guitar, but Rakarrack processes signals in
1509 stereo while it does not apply internal band-limiting filtering, and thus is
1510 well suited to all musical instruments and vocals.")
1511 ;; The code is explicitly licensed under the GPL version 2 only.
1512 (license license:gpl2)))
1521 (url "https://github.com/tomszilagyi/ir.lv2")
1523 (file-name (git-file-name name version))
1526 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
1527 (build-system gnu-build-system)
1529 `(#:tests? #f ; no tests
1531 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1532 (string-append "INSTDIR="
1533 (assoc-ref %outputs "out") "/lib/lv2"))
1534 #:phases (modify-phases %standard-phases
1535 (delete 'configure)))) ; no configure script
1537 `(("libsndfile" ,libsndfile)
1538 ("libsamplerate" ,libsamplerate)
1542 ("zita-convolver" ,zita-convolver)))
1544 `(("pkg-config" ,pkg-config)))
1545 (native-search-paths
1546 (list (search-path-specification
1547 (variable "LV2_PATH")
1548 (files '("lib/lv2")))))
1549 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
1550 (synopsis "LV2 convolution reverb")
1552 "IR is a low-latency, real-time, high performance signal convolver
1553 especially for creating reverb effects. It supports impulse responses with 1,
1554 2 or 4 channels, in any soundfile format supported by libsndfile.")
1555 (license license:gpl2+)))
1557 (define-public jack-1
1564 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1569 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
1570 (build-system gnu-build-system)
1572 `(#:phases (modify-phases %standard-phases
1573 (add-after 'unpack 'patch-configure
1575 (substitute* "configure"
1576 ;; Install to <out/lib> regardless of platform.
1577 (("libnn=lib64") "libnn=lib"))
1580 `(("alsa-lib" ,alsa-lib)
1581 ("readline" ,readline)))
1582 ;; uuid.h is included in the JACK type headers
1583 ;; db.h is included in the libjack metadata headers
1585 `(("libuuid" ,util-linux)
1588 `(("pkg-config" ,pkg-config)))
1589 (home-page "http://jackaudio.org/")
1590 (synopsis "JACK audio connection kit")
1592 "JACK is a low-latency audio server. It can connect a number of
1593 different applications to an audio device, as well as allowing them to share
1594 audio between themselves. JACK is different from other audio server efforts
1595 in that it has been designed from the ground up to be suitable for
1596 professional audio work. This means that it focuses on two key areas:
1597 synchronous execution of all clients, and low latency operation.")
1598 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1599 ;; licensed under the LGPL in order to allow for proprietary usage.
1600 (license (list license:gpl2+ license:lgpl2.1+))))
1602 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1603 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
1604 ;; program for users who might benefit from the D-BUS features.
1605 (define-public jack-2
1606 (package (inherit jack-1)
1611 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
1612 "download/v" version "/jack2-"
1614 (file-name (string-append name "-" version ".tar.gz"))
1617 "1d1d403jn4366mqig6g8ghr8057b3rn7gs26b5p3rkal34j20qw2"))))
1618 (build-system waf-build-system)
1620 `(#:tests? #f ; no check target
1621 #:configure-flags '("--dbus"
1624 (modify-phases %standard-phases
1625 (add-before 'configure 'set-linkflags
1627 ;; Add $libdir to the RUNPATH of all the binaries.
1628 (substitute* "wscript"
1629 ((".*CFLAGS.*-Wall.*" m)
1631 " conf.env.append_unique('LINKFLAGS',"
1632 "'-Wl,-rpath=" %output "/lib')\n")))
1634 (add-after 'install 'wrap-python-scripts
1635 (lambda* (#:key inputs outputs #:allow-other-keys)
1636 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1637 (let* ((out (assoc-ref outputs "out"))
1638 (path (getenv "PYTHONPATH")))
1639 (wrap-program (string-append out "/bin/jack_control")
1640 `("PYTHONPATH" ":" prefix (,path))))
1643 `(("alsa-lib" ,alsa-lib)
1646 ("libsamplerate" ,libsamplerate)
1648 ("python-dbus" ,python-dbus)
1649 ("readline" ,readline)))
1651 `(("pkg-config" ,pkg-config)))
1652 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1653 (license (list license:gpl2+ license:lgpl2.1+))))
1661 (uri (string-append "https://download.drobilla.net/jalv-"
1662 version ".tar.bz2"))
1665 "1wwfn7yzbs37s2rdlfjgks63svd5g14yyzd2gdl7h0z12qncwsy2"))))
1666 (build-system waf-build-system)
1668 `(#:tests? #f ; no check target
1669 #:python ,python-2))
1680 `(("pkg-config" ,pkg-config)))
1681 (home-page "https://drobilla.net/software/jalv/")
1682 (synopsis "Simple LV2 host for JACK")
1684 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1685 plugins and exposes their ports as JACK ports, essentially making any LV2
1686 plugin function as a JACK application.")
1687 (license license:isc)))
1689 (define-public ladspa
1696 ;; Since the official link is dead,
1697 ;; we download the tarball from Debian or Internet Archive.
1698 (uri (list (string-append "http://http.debian.net"
1699 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1700 version ".orig.tar.gz")
1701 (string-append "https://web.archive.org/web/20140717172251/"
1702 "http://www.ladspa.org/download/ladspa_sdk_"
1706 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
1707 (build-system gnu-build-system)
1709 `(#:tests? #f ; the "test" target is a listening test only
1711 (modify-phases %standard-phases
1713 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1715 (let ((out (assoc-ref outputs "out")))
1716 (substitute* "makefile"
1717 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1718 (("/usr/include/") (string-append out "/include/"))
1719 (("/usr/bin/") (string-append out "/bin/"))
1720 (("-mkdirhier") "mkdir -p")
1721 (("^CC.*") "CC = gcc\n")
1722 (("^CPP.*") "CPP = g++\n")))
1725 ;; Since the home page is gone, we provide a link to the archived version.
1727 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
1728 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1730 "LADSPA is a standard that allows software audio processors and effects
1731 to be plugged into a wide range of audio synthesis and recording packages.")
1732 (license license:lgpl2.1+)))
1737 (version "0.6.0-rc2")
1740 ;; The tilde is not permitted in the builder name, but is used
1743 "mirror://savannah/lash/lash-"
1744 (string-join (string-split version #\-) "~")
1746 (file-name (string-append name "-" version ".tar.bz2"))
1749 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1750 (build-system gnu-build-system)
1752 '(;; Glibc no longer includes Sun RPC support, so tell the build system
1753 ;; to use libtirpc instead.
1754 #:make-flags (list (string-append "CFLAGS=-I"
1755 (assoc-ref %build-inputs "libtirpc")
1756 "/include/tirpc -ltirpc"))
1758 (modify-phases %standard-phases
1759 ;; lashd embeds an ancient version of sigsegv so we just skip it
1760 (add-after 'unpack 'skip-lashd
1762 (substitute* '("Makefile.am" "Makefile.in")
1765 #:configure-flags '("--disable-static")))
1770 ("libtirpc" ,libtirpc)
1771 ("readline" ,readline)
1772 ("python" ,python-2)))
1773 ;; According to pkg-config, packages depending on lash also need to have
1774 ;; at least the following packages declared as inputs.
1776 `(("alsa-lib" ,alsa-lib)
1778 ("libxml2" ,libxml2)))
1780 `(("pkg-config" ,pkg-config)))
1781 (home-page "https://www.nongnu.org/lash/")
1782 (synopsis "Audio application session manager")
1784 "LASH is a session management system for audio applications. It allows
1785 you to save and restore audio sessions consisting of multiple interconneced
1786 applications, restoring program state (i.e. loaded patches) and the
1787 connections between them.")
1788 (license license:gpl2+)))
1790 (define-public libbs2b
1796 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1797 "/libbs2b-" version ".tar.lzma"))
1800 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1801 (build-system gnu-build-system)
1802 (native-inputs `(("pkg-config" ,pkg-config)))
1803 (inputs `(("libsndfile" ,libsndfile)))
1804 (home-page "https://sourceforge.net/projects/bs2b/")
1805 (synopsis "Bauer stereophonic-to-binaural DSP")
1807 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1808 designed to improve headphone listening of stereo audio records. Recommended
1809 for headphone prolonged listening to disable superstereo fatigue without
1810 essential distortions.")
1811 (license license:expat)))
1813 (define-public liblo
1819 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1820 "/liblo-" version ".tar.gz"))
1823 "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb"))))
1824 (build-system gnu-build-system)
1826 `(;; liblo test FAILED
1827 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1829 (home-page "http://liblo.sourceforge.net")
1830 (synopsis "Implementation of the Open Sound Control protocol")
1832 "liblo is a lightweight library that provides an easy to use
1833 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
1834 (license license:lgpl2.1+)))
1836 (define-public python-pyaudio
1838 (name "python-pyaudio")
1843 (uri (pypi-uri "PyAudio" version))
1846 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
1847 (build-system python-build-system)
1849 `(("portaudio" ,portaudio)))
1850 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
1851 (synopsis "Bindings for PortAudio v19")
1852 (description "This package provides bindings for PortAudio v19, the
1853 cross-platform audio input/output stream library.")
1854 (license license:expat)))
1856 (define-public python2-pyaudio
1857 (package-with-python2 python-pyaudio))
1859 (define-public python-pyliblo
1861 (name "python-pyliblo")
1865 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1869 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1870 (build-system python-build-system)
1871 (arguments `(#:tests? #f)) ;no tests
1873 `(("python-cython" ,python-cython)))
1875 `(("liblo" ,liblo)))
1876 (home-page "http://das.nasophon.de/pyliblo/")
1877 (synopsis "Python bindings for liblo")
1879 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1880 library. It supports almost the complete functionality of liblo, allowing you
1881 to send and receive OSC messages using a nice and simple Python API. Also
1882 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1883 (license license:lgpl2.1+)))
1885 (define-public python2-pyliblo
1886 (package-with-python2 python-pyliblo))
1894 (uri (string-append "https://download.drobilla.net/lilv-"
1895 version ".tar.bz2"))
1898 "1p3hafsxgs5d4za7n66lf5nz74qssfqpmk520cm7iq2njvvlqm2z"))))
1899 (build-system waf-build-system)
1901 `(#:tests? #f ; no check target
1903 (modify-phases %standard-phases
1904 (add-before 'configure 'set-ldflags
1905 (lambda* (#:key outputs #:allow-other-keys)
1907 (string-append "-Wl,-rpath="
1908 (assoc-ref outputs "out") "/lib"))
1910 (add-after 'unpack 'full-store-path-to-shared-library
1911 (lambda* (#:key outputs #:allow-other-keys)
1912 (with-directory-excursion "bindings/python"
1913 (substitute* "lilv.py"
1914 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
1915 "/lib/liblilv-0.so"))))
1917 ;; Required by lilv-0.pc.
1922 ("sratom" ,sratom)))
1924 `(("python" ,python)
1925 ("pkg-config" ,pkg-config)))
1926 (home-page "https://drobilla.net/software/lilv")
1927 (synopsis "Library to simplify use of LV2 plugins in applications")
1929 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1930 for applications. Lilv is the successor to SLV2, rewritten to be
1931 significantly faster and have minimal dependencies.")
1932 (license license:isc)))
1940 (uri (string-append "http://lv2plug.in/spec/lv2-"
1941 version ".tar.bz2"))
1944 "1ppippbpdpv13ibs06b0bixnazwfhiw0d0ja6hx42jnkgdyp5hyy"))))
1945 (build-system waf-build-system)
1947 `(#:tests? #f ; no check target
1948 #:configure-flags '("--no-plugins")))
1950 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1951 `(("libsndfile" ,libsndfile)))
1953 `(("pkg-config" ,pkg-config)))
1954 (home-page "http://lv2plug.in/")
1955 (synopsis "LV2 audio plugin specification")
1957 "LV2 is an open specification for audio plugins and host applications.
1958 At its core, LV2 is a simple stable interface, accompanied by extensions which
1959 add functionality to support the needs of increasingly powerful audio
1961 (license license:isc)))
1963 (define-public lv2-mda-piano
1965 (name "lv2-mda-piano")
1970 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
1972 (file-name (git-file-name name version))
1975 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1976 (build-system gnu-build-system)
1978 `(#:make-flags (list
1980 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1981 #:tests? #f ; no check target
1982 #:phases (modify-phases %standard-phases (delete 'configure))))
1987 `(("pkg-config" ,pkg-config)))
1988 (native-search-paths
1989 (list (search-path-specification
1990 (variable "LV2_PATH")
1991 (files '("lib/lv2")))))
1992 (home-page "https://elephly.net/lv2/mdapiano.html")
1993 (synopsis "LV2 port of the mda Piano plugin")
1994 (description "An LV2 port of the mda Piano VSTi.")
1995 (license license:gpl3+)))
1997 (define-public lv2-mda-epiano
1998 (package (inherit lv2-mda-piano)
1999 (name "lv2-mda-epiano")
2001 `(#:make-flags (list
2003 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2004 #:tests? #f ; no check target
2005 #:phases (modify-phases %standard-phases (delete 'configure))))
2006 (home-page "https://elephly.net/lv2/mdaepiano.html")
2007 (synopsis "LV2 port of the mda EPiano plugin")
2008 (description "An LV2 port of the mda EPiano VSTi.")))
2017 (url "https://github.com/lvtk/lvtk.git")
2019 (file-name (git-file-name name version))
2022 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
2023 (build-system waf-build-system)
2025 `(#:tests? #f ; no check target
2028 (list (string-append "--boost-includes="
2029 (assoc-ref %build-inputs "boost")
2036 `(("pkg-config" ,pkg-config)))
2037 (home-page "https://github.com/lvtk/lvtk")
2038 (synopsis "C++ libraries for LV2 plugins")
2040 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2041 extensions into easy to use C++ classes. It is the successor of
2043 (license license:gpl3+)))
2045 (define-public openal
2052 "https://openal-soft.org/openal-releases/openal-soft-"
2053 version ".tar.bz2"))
2056 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
2057 (build-system cmake-build-system)
2059 `(#:tests? #f ; no check target
2061 (modify-phases %standard-phases
2063 'unpack 'use-full-library-paths
2064 (lambda* (#:key inputs #:allow-other-keys)
2065 (substitute* "alc/backends/pulseaudio.cpp"
2066 (("#define PALIB \"libpulse\\.so\\.0\"")
2067 (string-append "#define PALIB \""
2068 (assoc-ref inputs "pulseaudio")
2069 "/lib/libpulse.so.0"
2071 (substitute* "alc/backends/alsa.cpp"
2072 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2073 (string-append "LoadLib(\""
2074 (assoc-ref inputs "alsa-lib")
2075 "/lib/libasound.so.2"
2079 `(("alsa-lib" ,alsa-lib)
2080 ("pulseaudio" ,pulseaudio)))
2081 (synopsis "3D audio API")
2083 "OpenAL provides capabilities for playing audio in a virtual 3D
2084 environment. Distance attenuation, doppler shift, and directional sound
2085 emitters are among the features handled by the API. More advanced effects,
2086 including air absorption, occlusion, and environmental reverb, are available
2087 through the EFX extension. It also facilitates streaming audio, multi-channel
2088 buffers, and audio capture.")
2089 (home-page "https://openal-soft.org/")
2090 (license license:lgpl2.0+)))
2092 (define-public freealut
2098 ;; Upstream url is unclear, many systems use Fedora, there is also
2099 ;; https://github.com/vancegroup/freealut though the status of it
2100 ;; (official? unofficial?) is not clear.
2102 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2103 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2104 "-" version ".tar.gz"))
2107 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2108 (build-system cmake-build-system)
2110 `(#:tests? #f)) ; no check target
2112 `(("openal" ,openal)))
2113 (synopsis "Free implementation of OpenAL's ALUT standard")
2114 (description "freealut is the OpenAL Utility Toolkit.")
2115 (home-page "https://kcat.strangesoft.net/openal.html")
2116 (license license:lgpl2.0)))
2118 (define-public patchage
2124 (uri (string-append "https://download.drobilla.net/patchage-"
2129 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
2130 (build-system waf-build-system)
2132 `(#:tests? #f ; no check target
2133 #:python ,python-2))
2135 `(("alsa-lib" ,alsa-lib)
2141 ("dbus-glib" ,dbus-glib)))
2143 `(("pkg-config" ,pkg-config)))
2144 (home-page "https://drobilla.net/software/patchage/")
2145 (synopsis "Modular patch bay for audio and MIDI systems")
2147 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2149 (license license:gpl3+)))
2151 (define-public pcaudiolib
2155 (home-page "https://github.com/espeak-ng/pcaudiolib")
2158 (uri (git-reference (url home-page) (commit version)))
2159 (file-name (git-file-name name version))
2162 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2163 (build-system gnu-build-system)
2165 `(#:configure-flags '("--disable-static")))
2167 `(("autoconf" ,autoconf)
2168 ("automake" ,automake)
2169 ("libtool" ,libtool)
2170 ("pkg-config" ,pkg-config)
2173 `(("alsa-lib" ,alsa-lib)
2174 ("pulseaudio" ,pulseaudio)))
2175 (synopsis "Portable C audio library")
2177 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2178 different audio devices such as ALSA or PulseAudio.")
2179 (license (list license:gpl3+
2180 ;; The bundled TPCircularBuffer uses a custom license.
2181 (license:non-copyleft
2182 "file://src/TPCircularBuffer/README.markdown")))))
2184 (define-public qjackctl
2190 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2191 version "/qjackctl-" version ".tar.gz"))
2194 "1saywsda9m124rmjp7i3n0llryaliabjxhqhvqr6dm983qy7pypk"))))
2195 (build-system gnu-build-system)
2197 '(#:tests? #f)) ; no check target
2200 ("alsa-lib" ,alsa-lib)
2202 ("qtx11extras" ,qtx11extras)))
2204 `(("pkg-config" ,pkg-config)
2205 ("qttools" ,qttools)))
2206 (home-page "https://qjackctl.sourceforge.io/")
2207 (synopsis "Jack server control application")
2208 (description "Control a Jack server. Allows you to plug various sources
2209 into various outputs and to start, stop and configure jackd")
2210 (license license:gpl2+)))
2212 (define-public qjackrcd
2219 (url "https://github.com/orouits/qjackrcd.git")
2220 (commit (string-append "v" version))))
2221 (file-name (git-file-name name version))
2224 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2225 (build-system gnu-build-system)
2228 (modify-phases %standard-phases
2230 (lambda* (#:key outputs #:allow-other-keys)
2232 (string-append "PREFIX="
2233 (assoc-ref outputs "out"))))))))
2235 `(("qtbase" ,qtbase))) ; for qmake
2238 ("libsndfile" ,libsndfile)
2239 ("qtbase" ,qtbase)))
2240 (home-page "https://sourceforge.net/projects/qjackrcd/")
2241 (synopsis "Stereo audio recorder for JACK")
2242 (description "QJackRcd is a simple graphical stereo recorder for JACK
2243 supporting silence processing for automatic pause, file splitting, and
2244 background file post-processing.")
2245 (license license:gpl2+)))
2247 (define-public supercollider
2249 (name "supercollider")
2254 "https://github.com/supercollider/supercollider"
2255 "/releases/download/Version-" version
2256 "/SuperCollider-" version "-Source-linux.tar.bz2"))
2259 "0x11g3pfw11m6v18qfpfl5w99dbmf73g4z7wvwhrj1a4qv2dn084"))))
2260 (build-system cmake-build-system)
2262 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
2264 "-DSC_EL=off") ;scel is packaged individually as
2266 #:modules ((guix build utils)
2267 (guix build cmake-build-system)
2270 (modify-phases %standard-phases
2271 (add-after 'unpack 'rm-bundled-libs
2273 ;; The build system doesn't allow us to unbundle the following
2274 ;; libraries. hidapi is also heavily patched.
2275 (let ((keep-dirs '("nova-simd" "nova-tt" "hidapi" "TLSF-2.4.6"
2276 "oscpack_1_1_0" "." "..")))
2277 (with-directory-excursion "./external_libraries"
2279 delete-file-recursively
2282 (and (eq? (stat:type (stat x)) 'directory)
2283 (not (member (basename x) keep-dirs))))))))
2285 ;; Some tests are broken (see:
2286 ;; https://github.com/supercollider/supercollider/issues/3555 and
2287 ;; https://github.com/supercollider/supercollider/issues/1736
2288 (add-after 'rm-bundled-libs 'disable-broken-tests
2290 (substitute* "testsuite/server/supernova/CMakeLists.txt"
2291 (("server_test.cpp")
2293 (("perf_counter_test.cpp")
2295 (delete-file "testsuite/server/supernova/server_test.cpp")
2296 (delete-file "testsuite/server/supernova/perf_counter_test.cpp")
2297 (substitute* "testsuite/CMakeLists.txt"
2298 (("add_subdirectory\\(sclang\\)")
2300 (delete-file "testsuite/sclang/CMakeLists.txt")
2303 `(("pkg-config" ,pkg-config)))
2306 ("libsndfile" ,libsndfile)
2309 ("readline" ,readline) ;readline support for sclang's CLI
2310 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2311 ("eudev" ,eudev) ;for user interactions with devices
2312 ("avahi" ,avahi) ;zeroconf service discovery support
2315 ("boost-sync" ,boost-sync)
2316 ("yaml-cpp" ,yaml-cpp)))
2317 (home-page "https://github.com/supercollider/supercollider")
2318 (synopsis "Synthesis engine and programming language")
2319 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2320 @code{supernova}) and programming language (@code{sclang}). It can be used
2321 for experimenting with sound synthesis and algorithmic composition.
2323 SuperCollider requires jackd to be installed in your user profile and your
2324 user must be allowed to access the realtime features of the kernel. Search
2325 for \"realtime\" in the index of the Guix manual to learn how to achieve this
2326 using Guix System.")
2327 (license license:gpl2+)))
2335 (uri (string-append "https://download.drobilla.net/raul-"
2336 version ".tar.bz2"))
2339 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2340 (build-system waf-build-system)
2342 `(#:python ,python-2
2343 #:tests? #f)) ; no check target
2348 `(("pkg-config" ,pkg-config)))
2349 (home-page "https://drobilla.net/software/raul/")
2350 (synopsis "Real-time audio utility library")
2352 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2353 aimed at audio/musical applications.")
2354 (license license:gpl2+)))
2356 (define-public raul-devel
2357 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2359 (package (inherit raul)
2361 (version (string-append "0.8.9-" revision "."
2362 (string-take commit 9)))
2366 (url "https://git.drobilla.net/raul.git")
2368 (file-name (string-append name "-" version "-checkout"))
2371 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2373 (define-public resample
2379 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
2383 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
2384 (build-system gnu-build-system)
2386 `(("autoconf" ,autoconf)
2387 ("automake" ,automake)
2388 ("pkg-config" ,pkg-config)
2389 ("libtool" ,libtool)))
2390 (synopsis "Real-time library for sampling rate conversion")
2391 (description "The @command{resample} software package contains free
2392 sampling-rate conversion and filter design utilities.")
2393 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
2394 (license license:lgpl2.1+)))
2396 (define-public rubberband
2403 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2406 (file-name (string-append name "-" version ".tar.bz2"))
2409 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
2410 (build-system gnu-build-system)
2412 `(#:tests? #f ; no check target
2414 (modify-phases %standard-phases
2415 (add-after 'unpack 'skip-jni-installation
2416 ;; ‘make install’ unconditionally installs librubberband-jni.so,
2417 ;; which is never built by ‘make all’. Skip it.
2419 (substitute* "Makefile.in"
2420 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
2423 `(("ladspa" ,ladspa)
2424 ("libsamplerate" ,libsamplerate)
2427 `(("pkg-config" ,pkg-config)))
2428 (home-page "https://breakfastquay.com/rubberband/")
2429 (synopsis "Audio time-stretching and pitch-shifting library")
2431 "Rubber Band is a library and utility program that permits changing the
2432 tempo and pitch of an audio recording independently of one another.")
2433 (license license:gpl2+)))
2435 (define-public rtmidi
2441 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
2442 "/release/rtmidi-" version ".tar.gz"))
2443 (file-name (string-append "rtmidi-" version ".tar.gz"))
2446 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))
2447 (build-system gnu-build-system)
2450 (modify-phases %standard-phases
2451 (add-before 'bootstrap 'noconfigure
2453 (setenv "NOCONFIGURE" "yes")
2457 ("alsa-lib" ,alsa-lib)))
2459 `(("autoconf" ,autoconf)
2460 ("automake" ,automake)
2461 ("libtool" ,libtool)
2462 ("pkg-config" ,pkg-config)))
2463 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
2464 (synopsis "Cross-platform MIDI library for C++")
2466 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2467 classes) that provide a common cross-platform API for realtime MIDI
2469 (license license:expat)))
2471 (define-public sratom
2477 (uri (string-append "https://download.drobilla.net/sratom-"
2478 version ".tar.bz2"))
2481 "0vh0biy3ngpzzgdml309c2mqz8xq9q0hlblczb4c6alhp0a8yv0l"))))
2482 (build-system waf-build-system)
2483 (arguments `(#:tests? #f)) ;no check target
2485 ;; In Requires of sratom-0.pc.
2490 `(("pkg-config" ,pkg-config)))
2491 (home-page "https://drobilla.net/software/sratom/")
2492 (synopsis "Library for serialising LV2 atoms to/from RDF")
2494 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2495 the Turtle syntax.")
2496 (license license:isc)))
2504 (uri (string-append "https://download.drobilla.net/suil-"
2505 version ".tar.bz2"))
2508 "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06"))))
2509 (build-system waf-build-system)
2511 `(#:tests? #f)) ;no check target
2518 `(("pkg-config" ,pkg-config)))
2519 (home-page "https://drobilla.net/software/suil/")
2520 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2522 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2524 Suil makes it possible to load a UI of a toolkit in a host using another
2525 toolkit. The API is designed such that hosts do not need to explicitly
2526 support specific toolkits – if Suil supports a particular toolkit, then UIs in
2527 that toolkit will work in all hosts that use Suil automatically.
2529 Suil currently supports every combination of Gtk, Qt, and X11.")
2530 (license license:isc)))
2532 (define-public timidity++
2538 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2539 "/TiMidity++-" version
2540 "/TiMidity++-" version ".tar.bz2"))
2543 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2544 (build-system gnu-build-system)
2547 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2551 (string-append "--with-default-path="
2552 (assoc-ref %outputs "out") "/etc/timidity"))
2554 (modify-phases %standard-phases
2555 (add-after 'install 'install-config
2557 (let ((out (string-append (assoc-ref %outputs "out")
2560 (call-with-output-file
2561 (string-append out "/timidity.cfg")
2563 (format port (string-append "source "
2564 (assoc-ref %build-inputs "freepats")
2565 "/share/freepats/freepats.cfg")))))
2568 `(("alsa-lib" ,alsa-lib)
2573 ("libvorbis" ,libvorbis)
2575 ("ncurses" ,ncurses)
2576 ("freepats" ,freepats)))
2578 `(("pkg-config" ,pkg-config)))
2579 (home-page "http://timidity.sourceforge.net/")
2580 (synopsis "Software synthesizer for playing MIDI files")
2582 "TiMidity++ is a software synthesizer. It can play MIDI files by
2583 converting them into PCM waveform data; give it a MIDI data along with digital
2584 instrument data files, then it synthesizes them in real-time, and plays. It
2585 can not only play sounds, but also can save the generated waveforms into hard
2586 disks as various audio file formats.")
2587 (license license:gpl2+)))
2596 "https://code.soundsoftware.ac.uk"
2597 "/attachments/download/1520/vamp-plugin-sdk-"
2601 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
2602 (build-system gnu-build-system)
2604 `(#:tests? #f ; no check target
2606 (modify-phases %standard-phases
2607 (add-after 'install 'remove-libvamp-hostsdk.la
2608 (lambda* (#:key outputs #:allow-other-keys)
2609 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2610 (for-each delete-file
2611 (let ((out (assoc-ref outputs "out")))
2612 (list (string-append out "/lib/libvamp-sdk.la")
2613 (string-append out "/lib/libvamp-hostsdk.la"))))
2616 `(("libsndfile" ,libsndfile)))
2618 `(("pkg-config" ,pkg-config)))
2619 (home-page "https://vamp-plugins.org")
2620 (synopsis "Modular and extensible audio processing system")
2622 "Vamp is an audio processing plugin system for plugins that extract
2623 descriptive information from audio data — typically referred to as audio
2624 analysis plugins or audio feature extraction plugins.")
2627 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
2629 (define-public libsbsms
2636 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2637 "/libsbsms-" version ".tar.gz"))
2639 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2640 (build-system gnu-build-system)
2641 (native-inputs `(("automake" ,automake)))
2644 ;; Disable the use of SSE unless on x86_64.
2645 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2646 (%current-system))))
2650 (modify-phases %standard-phases
2652 'unpack 'fix-ar-lib-path
2653 (lambda* (#:key inputs #:allow-other-keys)
2654 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2655 (delete-file "ar-lib")
2657 (string-append (assoc-ref inputs "automake") "/share/automake-"
2658 ,(package-version automake) "/ar-lib")
2661 (home-page "http://sbsms.sourceforge.net/")
2662 (synopsis "Library for time stretching and pitch scaling of audio")
2664 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2665 stretching and pitch scaling of audio. This package contains the library.")
2666 ;; There is no explicit declaration of a license, but a COPYING file
2668 (license license:gpl2)))
2670 (define-public wavpack
2676 (uri (string-append "http://www.wavpack.com/"
2677 "wavpack-" version ".tar.xz"))
2680 "1qvpvfx30kvrkw7y1g6r8xj109wszg1z0qmkfm17wf3flb7v3rbp"))))
2681 (build-system gnu-build-system)
2683 '(#:configure-flags '("--disable-static")))
2684 (home-page "http://www.wavpack.com/")
2685 (synopsis "Hybrid lossless audio codec")
2687 "WavPack is an audio compression format with lossless, lossy and hybrid
2688 compression modes. This package contains command-line programs and library to
2689 encode and decode wavpack files.")
2690 (license license:bsd-3)))
2692 (define-public libmodplug
2699 "mirror://sourceforge/modplug-xmms/"
2700 name "/" version "/" name "-" version ".tar.gz"))
2703 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
2704 (build-system gnu-build-system)
2705 (home-page "http://modplug-xmms.sourceforge.net/")
2706 (synopsis "Mod file playing library")
2708 "Libmodplug renders mod music files as raw audio data, for playing or
2709 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2710 supported. Optional features include high-quality resampling, bass expansion,
2711 surround and reverb.")
2712 (license license:public-domain)))
2714 (define-public libxmp
2720 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
2721 name "-" version ".tar.gz"))
2724 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
2725 (build-system gnu-build-system)
2726 (home-page "http://xmp.sourceforge.net/")
2727 (synopsis "Module player library")
2729 "Libxmp is a library that renders module files to PCM data. It supports
2730 over 90 mainstream and obscure module formats including Protracker (MOD),
2731 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2732 (license license:lgpl2.1+)))
2740 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
2741 name "-" version ".tar.gz"))
2744 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
2745 (build-system gnu-build-system)
2747 `(("pkg-config" ,pkg-config)))
2749 `(("libxmp" ,libxmp)
2750 ("pulseaudio" ,pulseaudio)))
2751 (home-page "http://xmp.sourceforge.net/")
2752 (synopsis "Extended module player")
2754 "Xmp is a portable module player that plays over 90 mainstream and
2755 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2756 Tracker 3 S3M and Impulse Tracker IT files.")
2757 (license license:gpl2+)))
2759 (define-public soundtouch
2767 (url "https://gitlab.com/soundtouch/soundtouch.git")
2769 (file-name (git-file-name name version))
2771 (base32 "174wgm3s0inmbnkrlnspxjwm2014qhjhkbdqa5r8rbfi0nzqxzsz"))))
2772 (build-system gnu-build-system)
2774 `(("autoconf" ,autoconf)
2775 ("automake" ,automake)
2776 ("libtool" ,libtool)
2778 (home-page "https://www.surina.net/soundtouch/")
2780 "Audio processing library for changing tempo, pitch and playback rate")
2782 "SoundTouch is an audio processing library for changing the tempo, pitch
2783 and playback rates of audio streams or audio files. It is intended for
2784 application developers writing sound processing tools that require tempo/pitch
2785 control functionality, or just for playing around with the sound effects.")
2786 (license license:lgpl2.1+)))
2794 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2795 name "-" version ".tar.bz2"))
2798 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2799 (build-system gnu-build-system)
2802 ;; The upstream asks to identify the distribution to diagnose SoX
2804 '("--with-distro=Guix System Distribution")))
2806 `(("pkg-config" ,pkg-config)))
2808 `(("alsa-lib" ,alsa-lib)
2812 ("libid3tag" ,libid3tag)
2813 ("libltdl" ,libltdl)
2816 ("libvorbis" ,libvorbis)
2817 ("pulseaudio" ,pulseaudio)))
2818 (home-page "http://sox.sourceforge.net")
2819 (synopsis "Sound processing utility")
2821 "SoX (Sound eXchange) is a command line utility that can convert
2822 various formats of computer audio files to other formats. It can also
2823 apply various effects to these sound files, and, as an added bonus, SoX
2824 can play and record audio files.")
2825 ;; sox.c is distributed under GPL, while the files that make up
2826 ;; libsox are licensed under LGPL.
2827 (license (list license:gpl2+ license:lgpl2.1+))))
2837 (string-append "mirror://sourceforge/soxr/soxr-" version
2840 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
2841 (build-system cmake-build-system)
2842 (arguments '(#:tests? #f)) ;no 'check' target
2843 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
2844 (synopsis "One-dimensional sample-rate conversion library")
2846 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2847 conversion. It may be used, for example, to resample PCM-encoded audio.")
2848 (license license:lgpl2.1+)))
2850 (define-public twolame
2857 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2858 "/twolame-" version ".tar.gz"))
2860 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
2861 (build-system gnu-build-system)
2863 `(("libsndfile" ,libsndfile)))
2866 ("which" ,which))) ;used in tests/test.pl
2867 (home-page "http://www.twolame.org/")
2868 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2870 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2871 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2873 (license license:lgpl2.1+)))
2875 (define-public portaudio
2878 (version "190600.20161030")
2883 "http://www.portaudio.com/archives/pa_stable_v"
2884 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2887 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
2888 (patches (search-patches "portaudio-audacity-compat.patch"))))
2889 (build-system gnu-build-system)
2891 ;; TODO: Add ASIHPI.
2892 `(("alsa-lib" ,alsa-lib)
2894 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
2897 `(("autoconf" ,autoconf)
2898 ("automake" ,automake)
2899 ("libtool" ,libtool)
2900 ("pkg-config" ,pkg-config)))
2902 '(#:tests? #f ;no 'check' target
2903 #:parallel-build? #f ;fails on some systems
2904 #:configure-flags '("--with-pic"
2906 ;; XXX: The following prevents a build error
2907 ;; because of missing depcomp when C++ bindings are
2909 "--disable-dependency-tracking")
2911 (modify-phases %standard-phases
2912 ;; This is needed for linking the static libraries
2913 (add-after 'unpack 'build-only-position-independent-code
2915 (substitute* "configure.in"
2916 (("AC_PROG_LIBTOOL" m)
2917 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
2918 (delete-file "configure")
2920 ;; Some headers are not installed by default, but are needed by
2921 ;; packages like Kaldi.
2922 (add-after 'install 'install-missing-headers
2923 (lambda* (#:key outputs #:allow-other-keys)
2924 (install-file "src/common/pa_ringbuffer.h"
2925 (string-append (assoc-ref outputs "out") "/include"))
2927 (home-page "http://www.portaudio.com/")
2928 (synopsis "Audio I/O library")
2930 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2931 to record and/or play sound using a callback function or a blocking read/write
2933 (license license:expat)))
2935 (define-public qsynth
2942 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2943 "/qsynth-" version ".tar.gz"))
2945 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
2946 (build-system gnu-build-system)
2948 `(#:tests? #f)) ; no "check" phase
2950 `(("qttools" ,qttools)
2951 ("pkg-config" ,pkg-config)))
2953 `(("fluidsynth" ,fluidsynth)
2955 ("qtx11extras" ,qtx11extras)))
2956 (home-page "https://qsynth.sourceforge.io")
2957 (synopsis "Graphical user interface for FluidSynth")
2959 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2960 synthesizer written in C++.")
2961 (license license:gpl2+)))
2963 (define-public rsound
2971 (url "https://github.com/Themaister/RSound.git")
2972 (commit (string-append "v" version))))
2973 (file-name (git-file-name name version))
2975 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
2976 (build-system gnu-build-system)
2978 `(("alsa-lib" ,alsa-lib)
2981 ("libsamplerate" ,libsamplerate)
2983 ("portaudio" ,portaudio)
2984 ("pulseaudio" ,pulseaudio)))
2987 (modify-phases %standard-phases
2989 (lambda* (#:key outputs #:allow-other-keys)
2991 (invoke "./configure"
2992 (string-append "--prefix=" (assoc-ref outputs "out"))))))
2993 ;; No 'check' target.
2995 (home-page "https://themaister.net/rsound.html")
2996 (synopsis "Networked audio system")
2998 "RSound allows you to send audio from an application and transfer it
2999 directly to a different computer on your LAN network. It is an audio daemon
3000 with a much different focus than most other audio daemons.")
3001 (license license:gpl3+)))
3003 (define-public xjackfreak
3010 (url "https://github.com/johnhldavis/xjackfreak.git")
3011 (commit (string-append "v" version))))
3012 (file-name (git-file-name name version))
3015 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
3016 (build-system gnu-build-system)
3019 (list (string-append "docdir=" (assoc-ref %outputs "out")
3020 "/share/doc/xjackfreak"))))
3025 ("libxext" ,libxext)))
3027 `(("pkg-config" ,pkg-config)))
3028 (home-page "https://github.com/johnhldavis/xjackfreak")
3029 (synopsis "JACK audio frequency analyzer and display")
3031 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3032 Connection Kit. It can display the FFT of any input, modify it and output the
3034 (license license:gpl3+)))
3036 (define-public zita-convolver
3038 (name "zita-convolver")
3043 "http://kokkinizita.linuxaudio.org"
3044 "/linuxaudio/downloads/zita-convolver-"
3045 version ".tar.bz2"))
3047 ;; Don't optimize for a specific processor architecture.
3049 (substitute* "source/Makefile"
3050 (("^CXXFLAGS \\+= -march=native") ""))
3052 (modules '((guix build utils)))
3055 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
3056 (build-system gnu-build-system)
3058 `(#:tests? #f ; no "check" target
3060 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3061 (string-append "SUFFIX="))
3063 (modify-phases %standard-phases
3064 (add-after 'unpack 'patch-makefile-and-enter-directory
3066 (substitute* "source/Makefile"
3067 (("ldconfig") "true")
3068 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3071 (add-after 'install 'install-symlink
3073 (symlink "libzita-convolver.so"
3074 (string-append (assoc-ref %outputs "out")
3075 "/lib/libzita-convolver.so.4"))
3077 ;; no configure script
3078 (delete 'configure))))
3079 (inputs `(("fftwf" ,fftwf)))
3080 (home-page "https://kokkinizita.linuxaudio.org")
3081 (synopsis "Fast, partitioned convolution engine library")
3083 "Zita convolver is a C++ library providing a real-time convolution
3085 (license license:gpl3+)))
3087 (define-public zita-resampler
3089 (name "zita-resampler")
3094 "http://kokkinizita.linuxaudio.org"
3095 "/linuxaudio/downloads/zita-resampler-"
3096 version ".tar.bz2"))
3098 ;; Don't optimize for a specific processor architecture.
3100 (substitute* '("apps/Makefile" "libs/Makefile")
3101 (("^CXXFLAGS \\+= -march=native") ""))
3103 (modules '((guix build utils)))
3106 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
3107 (build-system gnu-build-system)
3109 `(#:tests? #f ; no "check" target
3110 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3112 (modify-phases %standard-phases
3114 'unpack 'patch-makefile-and-enter-directory
3116 (substitute* "libs/Makefile"
3117 (("ldconfig") "true")
3118 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3122 'install 'install-symlink
3124 (symlink "libzita-resampler.so"
3125 (string-append (assoc-ref %outputs "out")
3126 "/lib/libzita-resampler.so.1"))
3128 ;; no configure script
3129 (delete 'configure))))
3130 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
3131 (synopsis "C++ library for resampling audio signals")
3133 "Libzita-resampler is a C++ library for resampling audio signals. It is
3134 designed to be used within a real-time processing context, to be fast, and to
3135 provide high-quality sample rate conversion.")
3136 (license license:gpl3+)))
3138 (define-public zita-alsa-pcmi
3140 (name "zita-alsa-pcmi")
3145 "http://kokkinizita.linuxaudio.org"
3146 "/linuxaudio/downloads/zita-alsa-pcmi-"
3147 version ".tar.bz2"))
3150 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
3151 (build-system gnu-build-system)
3153 `(#:tests? #f ; no "check" target
3154 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3156 (modify-phases %standard-phases
3157 (add-after 'unpack 'patch-makefile-and-enter-directory
3159 (substitute* "libs/Makefile"
3160 (("ldconfig") "true")
3161 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3164 (add-after 'install 'install-symlink
3166 (symlink "libzita-alsa-pcmi.so"
3167 (string-append (assoc-ref %outputs "out")
3168 "/lib/libzita-alsa-pcmi.so.0"))
3170 ;; no configure script
3171 (delete 'configure))))
3173 `(("alsa-lib" ,alsa-lib)
3175 (home-page "https://kokkinizita.linuxaudio.org")
3176 (synopsis "C++ wrapper around the ALSA API")
3178 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3179 access to ALSA PCM devices, taking care of the many functions required to
3180 open, initialise and use a hw: device in mmap mode, and providing floating
3182 (license license:gpl3+)))
3184 (define-public cuetools
3191 (url "https://github.com/svend/cuetools.git")
3193 (file-name (git-file-name name version))
3196 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
3197 (build-system gnu-build-system)
3198 ;; The source checkout is not bootstrapped.
3200 `(("autoconf" ,autoconf)
3201 ("automake" ,automake)
3204 (synopsis "Cue and toc file parsers and utilities")
3205 (description "Cuetools is a set of programs that are useful for manipulating
3206 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3207 files are a way to represent the layout of a data or audio CD in a
3208 machine-readable ASCII format.")
3209 (home-page "https://github.com/svend/cuetools")
3210 (license license:gpl2+)))
3212 (define-public shntool
3218 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
3219 "shntool-" version ".tar.gz"))
3222 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3223 (build-system gnu-build-system)
3224 (synopsis "WAVE audio data processing tool")
3225 (description "shntool is a multi-purpose WAVE data processing and reporting
3226 utility. File formats are abstracted from its core, so it can process any file
3227 that contains WAVE data, compressed or not---provided there exists a format
3228 module to handle that particular file type. It can also generate CUE files, and
3229 use them split WAVE data into multiple files.")
3230 (home-page "http://etree.org/shnutils/shntool/")
3231 ;; 'install-sh' bears the x11 license
3232 (license (list license:gpl2+ license:x11))))
3234 (define-public dcadec
3241 (url "https://github.com/foo86/dcadec.git")
3242 (commit (string-append "v" version))))
3243 (file-name (git-file-name name version))
3246 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
3247 (build-system gnu-build-system)
3249 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3253 ;; Build shared library.
3255 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3256 ;; Set proper runpath.
3257 (string-append "LDFLAGS=-Wl,-rpath="
3258 (assoc-ref %outputs "out")
3261 (modify-phases %standard-phases
3262 ;; No configure script, just a hand-written Makefile.
3263 (delete 'configure))))
3264 (synopsis "DTS Coherent Acoustics decoder")
3265 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3266 with support for HD extensions.")
3267 (home-page "https://github.com/foo86/dcadec")
3268 (license license:lgpl2.1+)))
3270 (define-public bs1770gain
3277 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3278 version "/bs1770gain-" version ".tar.gz"))
3280 (base32 "15nvlh9bg0a52cpg2mii17mlzmxszwivjjalbb4np1v5nj8l5fk6"))
3281 (modules '((guix build utils)))
3285 (substitute* (find-files "." "\\.[ch]$")
3286 (("^ \\* N..o.*") ""))
3287 (substitute* "libbg/bgx.c"
3288 (("#define BG.* ") "#define BS ")
3289 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
3290 (("\"( #|N).*\"") "\"\""))
3291 (substitute* (list "config.h"
3294 (("https?://bs1770gain[^/]*/")
3295 "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html"))
3297 (build-system gnu-build-system)
3298 (inputs `(("ffmpeg" ,ffmpeg)
3300 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
3301 (synopsis "Tool to adjust loudness of media files")
3303 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3304 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3305 loudness of audio and video files to the same level.")
3306 (license license:gpl2+)))
3308 (define-public filteraudio
3309 (let ((revision "1")
3310 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3312 (name "filteraudio")
3313 (version (string-append "0.0.0-" revision "."
3314 (string-take commit 7)))
3319 (url "https://github.com/irungentoo/filter_audio.git")
3321 (file-name (string-append name "-" version "-checkout"))
3324 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3325 (build-system gnu-build-system)
3327 '(#:make-flags (list (string-append "PREFIX=" %output)
3329 #:tests? #f ; No tests
3331 (modify-phases %standard-phases
3332 ;; No configure script
3333 (delete 'configure))))
3334 (synopsis "Lightweight audio filtering library")
3335 (description "An easy to use audio filtering library made from webrtc
3336 code, used in @code{libtoxcore}.")
3337 (home-page "https://github.com/irungentoo/filter_audio")
3338 (license license:bsd-3))))
3348 (string-append "http://www.quut.com/" name "/" name
3349 "-" version ".tar.gz"))
3352 "041amvpz8cvxykl3pwqldrzxligmmzcg8ncdnxbg32rlqf3q1xh4"))))
3353 (build-system gnu-build-system)
3355 `(#:test-target "tst"
3357 (modify-phases %standard-phases
3358 (add-before 'install 'pre-install
3360 (let ((out (assoc-ref %outputs "out")))
3361 (substitute* "Makefile"
3362 (("INSTALL_ROOT\t=")
3363 (string-append "INSTALL_ROOT\t=\t" out)))
3364 (mkdir-p (string-append out "/inc"))
3365 (mkdir-p (string-append out "/man"))
3366 (mkdir-p (string-append out "/man/man1"))
3367 (mkdir-p (string-append out "/man/man3"))
3368 (mkdir-p (string-append out "/bin"))
3369 (mkdir-p (string-append out "/lib")))
3371 (add-after 'install 'post-install
3373 (let ((out (assoc-ref %outputs "out")))
3374 (rename-file (string-append out "/inc")
3375 (string-append out "/include"))
3376 (mkdir-p (string-append out "/include/gsm"))
3377 (copy-recursively "inc"
3378 (string-append out "/include/gsm")))
3380 (delete 'configure)))) ; no configure script
3381 (synopsis "GSM 06.10 lossy speech compression library")
3382 (description "This C library provides an encoder and a decoder for the GSM
3383 06.10 RPE-LTP lossy speech compression algorithm.")
3384 (home-page "http://quut.com/gsm/")
3385 (license (license:non-copyleft "file://COPYRIGHT"))))
3387 (define-public python-pyalsaaudio
3389 (name "python-pyalsaaudio")
3393 (uri (pypi-uri "pyalsaaudio" version))
3396 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3397 (build-system python-build-system)
3399 `(#:tests? #f)) ; tests require access to ALSA devices.
3401 `(("alsa-lib" ,alsa-lib)))
3402 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
3403 (synopsis "ALSA wrappers for Python")
3405 "This package contains wrappers for accessing the ALSA API from Python.
3406 It is currently fairly complete for PCM devices, and has some support for
3408 (license license:psfl)))
3410 (define-public python2-pyalsaaudio
3411 (package-with-python2 python-pyalsaaudio))
3413 (define-public bluez-alsa
3418 ;; The tarballs are mere snapshots and don't contain a
3419 ;; bootstrapped build system.
3422 (url "https://github.com/Arkq/bluez-alsa.git")
3423 (commit (string-append "v" version))))
3424 (file-name (git-file-name name version))
3427 "08mppgnjf1j2733bk9yf0cny6rfxxwiys0s62lz2zd2lpdl6d9lz"))))
3428 (build-system gnu-build-system)
3431 (list (string-append "--with-alsaplugindir="
3432 (assoc-ref %outputs "out")
3434 (string-append "--with-dbusconfdir="
3435 (assoc-ref %outputs "out")
3436 "/etc/dbus-1/system.d"))))
3438 `(("autoconf" ,autoconf)
3439 ("automake" ,automake)
3440 ("libtool" ,libtool)
3441 ("pkg-config" ,pkg-config)))
3443 `(("alsa-lib" ,alsa-lib)
3448 ("ncurses" ,ncurses)
3451 (home-page "https://github.com/Arkq/bluez-alsa")
3452 (synopsis "Bluetooth ALSA backend")
3453 (description "This project is a rebirth of a direct integration between
3454 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
3455 in favor of 3rd party audio applications. From now on, Bluez acts as a
3456 middleware between an audio application, which implements Bluetooth audio
3457 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
3458 audio profiles in Bluez, so in theory every Bluetooth device (with audio
3459 capabilities) can be connected. In order to access the audio stream, one has
3460 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
3461 on the ALSA software PCM plugin.")
3462 (license license:expat)))
3470 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
3471 "snd-" version ".tar.gz"))
3474 "13s8fahpsjygjdrcwmprcrz23ny3klaj2rh2xzdv3bfs69gxvhys"))))
3475 (build-system glib-or-gtk-build-system)
3477 `(#:tests? #f ; no tests
3478 #:out-of-source? #f ; for the 'install-doc' phase
3480 (let* ((out (assoc-ref %outputs "out"))
3481 (docdir (string-append out "/share/doc/"
3482 ,name "-" ,version)))
3483 (list "--with-alsa" "--with-jack" "--with-gmp"
3484 (string-append "--with-doc-dir=" docdir)))
3486 (modify-phases %standard-phases
3487 (add-after 'install 'install-doc
3488 (lambda* (#:key outputs #:allow-other-keys)
3489 (let* ((out (assoc-ref outputs "out"))
3490 (doc (string-append out "/share/doc/"
3491 ,name "-" ,version)))
3494 (install-file f doc))
3495 (find-files "." "\\.html$"))
3496 (copy-recursively "pix" (string-append doc "/pix"))
3499 `(("pkg-config" ,pkg-config)))
3501 `(("alsa-lib" ,alsa-lib)
3508 ("libsamplerate" ,libsamplerate)
3513 ("timidity++" ,timidity++)
3514 ("vorbis-tools" ,vorbis-tools)
3515 ("wavpack" ,wavpack)))
3516 (synopsis "Sound editor")
3517 (home-page "https://ccrma.stanford.edu/software/snd/")
3519 "Snd is a sound editor modelled loosely after Emacs. It can be
3520 customized and extended using either the s7 Scheme implementation (included in
3521 the Snd sources), Ruby, or Forth.")
3522 (license (license:non-copyleft "file://COPYING"))))
3524 (define-public noise-repellent
3526 (name "noise-repellent")
3531 (url "https://github.com/lucianodato/noise-repellent.git")
3533 (file-name (string-append name "-" version "-checkout"))
3536 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
3537 (build-system meson-build-system)
3540 (list (string-append "--prefix=" (assoc-ref %outputs "out")
3546 `(("pkg-config" ,pkg-config)))
3547 (home-page "https://github.com/lucianodato/noise-repellent")
3548 (synopsis "LV2 plugin for broadband noise reduction")
3549 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
3550 the following features:
3553 @item Spectral gating and spectral subtraction suppression rule
3554 @item Adaptive and manual noise thresholds estimation
3555 @item Adjustable noise floor
3556 @item Adjustable offset of thresholds to perform over-subtraction
3557 @item Time smoothing and a masking estimation to reduce artifacts
3558 @item Basic onset detector to avoid transients suppression
3559 @item Whitening of the noise floor to mask artifacts and to recover higher
3561 @item Option to listen to the residual signal
3563 @item Noise profile saved with the session
3566 (license license:lgpl3+)))
3568 (define-public cli-visualizer
3570 (name "cli-visualizer")
3576 (url "https://github.com/dpayne/cli-visualizer.git")
3577 (commit (string-append "v" version))))
3578 (file-name (git-file-name name version))
3580 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
3581 (build-system cmake-build-system)
3583 ;; TODO: Try using the latest googletest for versions > 1.8.
3584 `( ;; ("googletest" ,googletest-1.8)
3588 ("ncurses" ,ncurses)
3589 ("pulseaudio" ,pulseaudio)))
3592 ;; XXX Enable tests after patching them to use the system googletest.
3593 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
3595 (modify-phases %standard-phases
3596 (add-after 'install 'install-examples
3597 (lambda* (#:key outputs #:allow-other-keys)
3598 (with-directory-excursion "../source/examples"
3599 (delete-file "mac_osx_config")
3600 (for-each (lambda (file)
3603 (assoc-ref outputs "out")
3607 (home-page "https://github.com/dpayne/cli-visualizer/")
3608 (synopsis "Command-line audio visualizer")
3609 (description "@code{cli-visualizer} displays fast-Fourier
3610 transforms (FFTs) of the sound being played, as well as other graphical
3612 (license license:expat)))
3621 (url "https://github.com/karlstav/cava.git")
3623 (file-name (git-file-name name version))
3626 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
3627 (build-system gnu-build-system)
3629 `(("autoconf" ,autoconf)
3630 ("automake" ,automake)
3631 ("libtool" ,libtool)))
3634 ("ncurses" ,ncurses)
3635 ("pulseaudio" ,pulseaudio)))
3638 (list (string-append "PREFIX=" %output)
3639 (string-append "FONT_DIR=" %output "/share/consolefonts"))
3641 (let ((lib (string-append %output "/lib")))
3642 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
3644 (modify-phases %standard-phases
3646 (lambda* (#:key outputs #:allow-other-keys)
3647 (setenv "HOME" (getcwd))
3648 (invoke "sh" "autogen.sh")))
3649 (add-before 'build 'make-cava-ldflags
3650 (lambda* (#:key outputs #:allow-other-keys)
3651 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
3653 (add-after 'install 'data
3654 (lambda* (#:key outputs #:allow-other-keys)
3655 (for-each (lambda (file)
3657 (string-append (assoc-ref outputs "out")
3658 "/share/doc/examples")))
3659 (find-files "example_files"))
3661 (home-page "https://karlstav.github.io/cava/")
3662 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
3663 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
3664 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
3665 (license license:expat)))
3667 (define-public fluid-3
3668 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
3675 ;; Only one file is required, but the release bundles the whole
3676 ;; software which is 50MiB as tar and 200MiB unpacked. The website
3677 ;; directly links the soundfont release to the github file download.
3678 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
3679 commit "/share/sound/FluidR3Mono_GM.sf3"))
3680 (file-name (string-append name "-" version ".sf3"))
3683 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
3684 (build-system trivial-build-system)
3686 `(#:modules ((guix build utils))
3689 (use-modules (guix build utils))
3690 (let ((file (assoc-ref %build-inputs "source"))
3691 (out (string-append %output "/share/soundfonts")))
3693 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
3695 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
3696 (synopsis "Pro-quality GM soundfont")
3697 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
3698 (license license:expat))))
3700 (define-public libfdk
3701 (let ((commit "2326faaf8f2cdf2c3a9108ccdaf1d7551aec543e")
3705 ;; The latest upstream revision, with many bug fixes.
3706 (version (git-version "0.1.6" revision commit))
3711 (url "https://github.com/mstorsjo/fdk-aac")
3713 (file-name (git-file-name name version))
3716 "0yy6ndd9d61bwl283vl1r5kva2a4acc0f4r9g0sza156f2abr9ws"))))
3717 (build-system gnu-build-system)
3719 `(("autoconf" ,autoconf)
3720 ("automake" ,automake)
3721 ("libtool" ,libtool)))
3722 (home-page "https://github.com/mstorsjo/fdk-aac")
3723 (synopsis "Fraunhofer FDK AAC library")
3724 (description "FDK is a library for encoding and decoding Advanced Audio
3725 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
3726 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
3727 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
3728 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
3729 library supports sample rates up to 96 kHz and up to eight channels (7.1
3731 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
3732 "https://www.gnu.org/licenses/license-list.html#fdk")))))
3734 (define-public libopenshot-audio
3736 (name "libopenshot-audio")
3741 (url "https://github.com/OpenShot/libopenshot-audio")
3742 (commit (string-append "v" version))))
3743 (file-name (git-file-name name version))
3746 "1fvp6nmf30xzkmcznakh8dv5vn9d7nq051pqcqv638hsfppkmcrl"))))
3747 (build-system cmake-build-system)
3749 `(("alsa-lib" ,alsa-lib)
3750 ;; The following are for JUCE GUI components:
3752 ("freetype" ,freetype)
3753 ("libxrandr" ,libxrandr)
3754 ("libxinerama" ,libxinerama)
3755 ("libxcursor" ,libxcursor)))
3757 `(#:tests? #f ;there are no tests
3759 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
3760 (assoc-ref %build-inputs "freetype")
3761 "/include/freetype2"))))
3762 (home-page "https://openshot.org")
3763 (synopsis "Audio editing and playback for OpenShot")
3764 (description "OpenShot Audio Library (libopenshot-audio) allows
3765 high-quality editing and playback of audio, and is based on the JUCE
3767 (license license:lgpl3+)))
3769 (define-public faudio
3777 (url "https://github.com/FNA-XNA/FAudio.git")
3779 (file-name (git-file-name name version))
3781 (base32 "0ckpr6ffz8ssfh1y850dhip5s5jv0j6n90qz5yx1v9d6gpwf08rp"))))
3783 '(#:tests? #f ; No tests.
3784 #:configure-flags '("-DFFMPEG=ON")))
3785 (build-system cmake-build-system)
3786 (native-inputs `(("pkg-config" ,pkg-config)))
3787 (inputs `(("ffmpeg" ,ffmpeg)
3789 (home-page "https://github.com/FNA-XNA/FAudio")
3790 (synopsis "XAudio reimplementation")
3791 (description "FAudio is an XAudio reimplementation that focuses solely on
3792 developing fully accurate DirectX Audio runtime libraries.")
3793 (license license:zlib)))
3795 (define-public gnaural
3798 (version "20110606")
3802 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
3806 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
3807 (build-system gnu-build-system)
3809 `(("alsa-lib" ,alsa-lib)
3811 ("libsndfile" ,libsndfile)
3812 ("portaudio" ,portaudio)))
3814 `(("pkg-config" ,pkg-config)))
3815 (home-page "http://gnaural.sourceforge.net/")
3816 (synopsis "Binaural beat synthesizer")
3817 (description "Gnaural is a programmable auditory binaural beat synthesizer
3818 intended to be used for brainwave entrainment. Gnaural supports creation of
3819 binaural beat tracks of different frequencies and exporting of tracks into
3820 different audio formats. Gnaural can also be linked over the internet with
3821 other Gnaural instances, allowing synchronous sessions between many users.")
3822 (license license:gpl2+)))
3824 (define-public darkice
3830 (uri (string-append "mirror://sourceforge/darkice/darkice/"
3831 version "/darkice-" version ".tar.gz"))
3833 (base32 "1rlxds7ssq7nk2in4s46xws7xy9ylxsqgcz85hxjgh17lsm0y39c"))
3835 (search-patches "darkice-workaround-fpermissive-error.patch"))))
3836 (build-system gnu-build-system)
3837 (native-inputs `(("pkg-config" ,pkg-config)))
3838 (inputs `(("lame" ,lame)
3839 ("libvorbis" ,libvorbis)
3841 ("twolame" ,twolame)
3842 ("alsa-lib" ,alsa-lib)
3843 ("pulseaudio" ,pulseaudio)
3845 ("libsamplerate" ,libsamplerate)))
3848 (list (string-append "--with-lame-prefix="
3849 (assoc-ref %build-inputs "lame")))))
3850 (home-page "http://www.darkice.org/")
3851 (synopsis "Live audio streamer")
3852 (description "DarkIce is a live audio streamer. It takes audio input from
3853 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
3854 stream to one or more IceCast and/or ShoutCast servers.")
3855 (license license:gpl3+)))
3857 (define-public libltc
3865 (string-append "https://github.com/x42/libltc/releases/download/v"
3866 version "/libltc-" version ".tar.gz"))
3869 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
3870 (build-system gnu-build-system)
3872 `(#:parallel-tests? #f)) ;tests fail otherwise
3874 `(("doxygen" ,doxygen)
3875 ("pkg-config" ,pkg-config)))
3876 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
3877 (description "Libltc is a POSIX-C Library for handling
3878 @dfn{Linear/Longitudinal Time Code} (LTC) data.")
3879 (home-page "https://x42.github.io/libltc/")
3880 (license license:lgpl3+)))
3882 (define-public redkite
3890 (url "https://gitlab.com/geontime/redkite.git")
3891 (commit (string-append "v" version))))
3892 (file-name (git-file-name name version))
3895 "1i874izajbdhlfacwwj84qrsxf7g4y6nblzxalrkzaap9sa7d1r6"))))
3896 (build-system cmake-build-system)
3898 `(#:tests? #f)) ;no tests included
3900 `(("cairo" ,cairo)))
3902 `(("pkg-config", pkg-config)))
3903 (synopsis "Small GUI toolkit")
3904 (description "Redkite is a small GUI toolkit developed in C++17 and
3905 inspired from other well known GUI toolkits such as Qt and GTK. It is
3906 minimal on purpose and is intended to be statically linked to applications,
3907 therefore satisfying any requirements they may have to be self contained,
3908 as is the case with audio plugins.")
3909 (home-page "https://gitlab.com/geontime/redkite")
3910 (license license:gpl3+)))
3912 (define-public carla
3921 (url "https://github.com/falkTX/Carla.git")
3922 (commit (string-append "v" version))))
3923 (file-name (git-file-name name version))
3926 "0fqgncqlr86n38yy7pa118mswfacmfczj7w9xx6c6k0jav3wk29k"))))
3927 (build-system gnu-build-system)
3929 `(#:tests? #f ; no "check" target
3931 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3933 (modify-phases %standard-phases
3934 (delete 'configure) ; no configure script
3935 (add-before 'build 'set-CC-variable-and-show-features
3938 (invoke "make" "features")))
3939 (add-after 'install 'make-carla-executable
3940 (lambda* (#:key outputs #:allow-other-keys)
3941 (let ((out (assoc-ref outputs "out")))
3942 (chmod (string-append out "/share/carla/carla") #o555)
3944 (add-after 'install 'wrap-executables
3945 (lambda* (#:key outputs #:allow-other-keys)
3946 (let ((out (assoc-ref outputs "out")))
3947 (wrap-script (string-append out "/bin/carla")
3948 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
3951 `(("alsa-lib" ,alsa-lib)
3953 ("fluidsynth" ,fluidsynth)
3956 ("libsndfile" ,libsndfile)
3958 ("python-pyliblo" ,python-pyliblo)
3959 ("python-pyqt" ,python-pyqt)
3960 ("python-rdflib" ,python-rdflib)
3961 ;; python-pyqt shows the following error without python-wrapper:
3962 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
3963 ;; (ModuleNotFoundError: No module named 'PyQt5')
3964 ("python-wrapper" ,python-wrapper)
3969 ;; For WRAP-SCRIPT above.
3970 ("guile" ,guile-2.2)))
3972 `(("pkg-config" ,pkg-config)))
3973 (home-page "https://kx.studio/Applications:Carla")
3974 (synopsis "Audio plugin host")
3975 (description "Carla is a modular audio plugin host, with features like
3976 transport control, automation of parameters via MIDI CC and remote control
3977 over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
3978 and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
3979 default and preferred audio driver but also supports native drivers like ALSA.")
3980 (license license:gpl2+)))
3982 (define-public ecasound
3988 (uri (string-append "https://nosignal.fi/download/ecasound-"
3991 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
3992 (build-system gnu-build-system)
3993 (native-inputs `(("pkg-config" ,pkg-config)))
3994 ;; It would be nice to add mikmod to inputs if that gets packaged
3996 (inputs `(("alsa-lib" ,alsa-lib)
4000 ("vorbis-tools" ,vorbis-tools)
4003 ("timidity++" ,timidity++)
4004 ("libsndfile" ,libsndfile)
4005 ("libsamplerate" ,libsamplerate)
4006 ("ncurses" ,ncurses)
4009 (home-page "https://nosignal.fi/ecasound/index.php")
4010 (synopsis "Multitrack audio processing")
4011 (description "Ecasound is a software package designed for multitrack audio
4012 processing. It can be used for simple tasks like audio playback, recording and
4013 format conversions, as well as for multitrack effect processing, mixing,
4014 recording and signal recycling. Ecasound supports a wide range of audio inputs,
4015 outputs and effect algorithms. Effects and audio objects can be combined in
4016 various ways, and their parameters can be controlled by operator objects like
4017 oscillators and MIDI-CCs. A versatile console mode user-interface is included
4019 ;; As an exception to the above, the C, C++ and python implementations
4020 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
4021 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
4022 ;; that are not licensed under GPL.
4023 (license (list license:gpl2 license:lgpl2.1))))
4025 (define-public libaudec
4033 (url "https://git.zrythm.org/git/libaudec")
4034 (commit (string-append "v" version))))
4035 (file-name (git-file-name name version))
4038 "0lfydvs92b0hr72z71ci3yi356rjzi162pgms8dphgg18bz8dazv"))))
4039 (build-system meson-build-system)
4041 `(#:configure-flags `("-Denable_tests=true -Denable_ffmpeg=true")))
4043 `(("libsamplerate" ,libsamplerate)
4044 ("libsndfile" ,libsndfile)
4045 ("ffmpeg" ,ffmpeg)))
4047 `(("pkg-config", pkg-config)))
4048 (synopsis "Library for reading and resampling audio files")
4049 (description "libaudec is a wrapper library over ffmpeg, sndfile and
4050 libsamplerate for reading and resampling audio files, based on Robin Gareus'
4051 @code{audio_decoder} code.")
4052 (home-page "https://git.zrythm.org/cgit/libaudec")
4053 (license license:agpl3+)))