1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 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 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2018 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@posteo.net>
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>
27 ;;; This file is part of GNU Guix.
29 ;;; GNU Guix is free software; you can redistribute it and/or modify it
30 ;;; under the terms of the GNU General Public License as published by
31 ;;; the Free Software Foundation; either version 3 of the License, or (at
32 ;;; your option) any later version.
34 ;;; GNU Guix is distributed in the hope that it will be useful, but
35 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
36 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 ;;; GNU General Public License for more details.
39 ;;; You should have received a copy of the GNU General Public License
40 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
42 (define-module (gnu packages audio)
43 #:use-module (guix packages)
44 #:use-module (guix download)
45 #:use-module (guix git-download)
46 #:use-module (guix utils)
47 #:use-module ((guix licenses) #:prefix license:)
48 #:use-module (guix build-system gnu)
49 #:use-module (guix build-system waf)
50 #:use-module (guix build-system trivial)
51 #:use-module (guix build-system cmake)
52 #:use-module (guix build-system python)
53 #:use-module (guix build-system glib-or-gtk)
54 #:use-module (gnu packages)
55 #:use-module (gnu packages algebra)
56 #:use-module (gnu packages autotools)
57 #:use-module (gnu packages avahi)
58 #:use-module (gnu packages boost)
59 #:use-module (gnu packages backup)
60 #:use-module (gnu packages base)
61 #:use-module (gnu packages bison)
62 #:use-module (gnu packages check)
63 #:use-module (gnu packages compression)
64 #:use-module (gnu packages curl)
65 #:use-module (gnu packages dbm)
66 #:use-module (gnu packages emacs)
67 #:use-module (gnu packages file)
68 #:use-module (gnu packages flex)
69 #:use-module (gnu packages fltk)
70 #:use-module (gnu packages fontutils)
71 #:use-module (gnu packages gcc)
72 #:use-module (gnu packages gettext)
73 #:use-module (gnu packages glib)
74 #:use-module (gnu packages gtk)
75 #:use-module (gnu packages gnome)
76 #:use-module (gnu packages gnunet) ; libmicrohttpd
77 #:use-module (gnu packages gperf)
78 #:use-module (gnu packages icu4c)
79 #:use-module (gnu packages image)
80 #:use-module (gnu packages ncurses)
81 #:use-module (gnu packages onc-rpc)
82 #:use-module (gnu packages qt)
83 #:use-module (gnu packages libbsd)
84 #:use-module (gnu packages linux)
85 #:use-module (gnu packages libusb)
86 #:use-module (gnu packages llvm)
87 #:use-module (gnu packages mp3) ;taglib
88 #:use-module (gnu packages perl)
89 #:use-module (gnu packages pkg-config)
90 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
91 #:use-module (gnu packages python)
92 #:use-module (gnu packages python-xyz)
93 #:use-module (gnu packages rdf)
94 #:use-module (gnu packages readline)
95 #:use-module (gnu packages sdl)
96 #:use-module (gnu packages serialization)
97 #:use-module (gnu packages telephony)
98 #:use-module (gnu packages tls)
99 #:use-module (gnu packages video)
100 #:use-module (gnu packages vim) ;xxd
101 #:use-module (gnu packages webkit)
102 #:use-module (gnu packages wxwidgets)
103 #:use-module (gnu packages xiph)
104 #:use-module (gnu packages xml)
105 #:use-module (gnu packages xorg)
106 #:use-module (gnu packages maths)
107 #:use-module (gnu packages multiprecision)
108 #:use-module (gnu packages music)
109 #:use-module (srfi srfi-1)
110 #:use-module (srfi srfi-26))
112 (define-public alsa-modular-synth
114 (name "alsa-modular-synth")
118 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
119 "/" version "/ams-" version ".tar.bz2"))
122 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
123 (build-system gnu-build-system)
127 "CXXFLAGS=-std=gnu++11")
129 (modify-phases %standard-phases
130 ;; Insert an extra space between linker flags.
131 (add-before 'configure 'add-missing-space
133 (substitute* "configure"
134 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
135 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
138 `(("alsa-lib" ,alsa-lib)
139 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
140 ;; license incompatibility.
141 ("clalsadrv" ,clalsadrv)
147 ("qttools" ,qttools)))
149 `(("pkg-config" ,pkg-config)
151 (home-page "http://alsamodular.sourceforge.net/")
152 (synopsis "Realtime modular synthesizer and effect processor")
154 "AlsaModularSynth is a digital implementation of a classical analog
155 modular synthesizer system. It uses virtual control voltages to control the
156 parameters of the modules. The control voltages which control the frequency
157 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
158 Filter) modules follow the convention of 1V / Octave.")
159 (license license:gpl2)))
168 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
171 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
172 (build-system waf-build-system)
174 `(#:tests? #f ; no check target
177 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
181 "--enable-samplerate"
186 ("libsndfile" ,libsndfile)
187 ("libsamplerate" ,libsamplerate)
189 ("ffmpeg" ,ffmpeg))) ; for libavcodec
191 `(("pkg-config" ,pkg-config)))
192 (home-page "https://aubio.org/")
193 (synopsis "Library for audio labelling")
195 "aubio is a tool designed for the extraction of annotations from audio
196 signals. Its features include segmenting a sound file before each of its
197 attacks, performing pitch detection, tapping the beat and producing MIDI
198 streams from live audio.")
199 (license license:gpl3+)))
201 (define (ardour-rpath-phase major-version)
202 `(lambda* (#:key outputs #:allow-other-keys)
203 (let ((libdir (string-append (assoc-ref outputs "out")
204 "/lib/ardour" ,major-version)))
205 (substitute* "wscript"
206 (("linker_flags = \\[\\]")
207 (string-append "linker_flags = [\""
210 libdir "/backends" ":"
211 libdir "/engines" ":"
212 libdir "/panners" ":"
213 libdir "/surfaces" ":"
214 libdir "/vamp" "\"]"))))
217 (define-public ardour
224 (url "https://git.ardour.org/ardour/ardour.git")
227 ;; Ardour expects this file to exist at build time. The revision
229 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
230 `(call-with-output-file
231 "libs/ardour/revision.cc"
233 (format port ,(string-append "#include \"ardour/revision.h\"
234 namespace ARDOUR { const char* revision = \"" version "\" ; }"))
238 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
239 (file-name (string-append name "-" version))))
240 (build-system waf-build-system)
242 `(#:configure-flags '("--cxx11" ; required by gtkmm
243 "--no-phone-home" ; don't contact ardour.org
244 "--freedesktop" ; build .desktop file
245 "--test") ; build unit tests
247 (modify-phases %standard-phases
248 (add-after 'unpack 'set-rpath-in-LDFLAGS
249 ,(ardour-rpath-phase (version-major version)))
250 (add-after 'install 'install-freedesktop-files
251 (lambda* (#:key outputs #:allow-other-keys)
252 (let* ((out (assoc-ref outputs "out"))
253 (share (string-append out "/share"))
254 (ver ,(version-major version)))
257 (let ((dir (string-append share "/icons/hicolor/"
258 size "x" size "/apps")))
261 (string-append "gtk2_ardour/resources/Ardour-icon_"
263 (string-append dir "/ardour" ver ".png"))))
264 '("16" "22" "32" "48" "256"))
265 (install-file (string-append "build/gtk2_ardour/ardour"
267 (string-append share "/applications/"))
268 (install-file (string-append "build/gtk2_ardour/ardour"
270 (string-append share "/appdata/")))
275 `(("alsa-lib" ,alsa-lib)
288 ("libarchive" ,libarchive)
289 ("libart-lgpl" ,libart-lgpl)
290 ("libgnomecanvasmm" ,libgnomecanvasmm)
293 ("libsamplerate" ,libsamplerate)
294 ("libsndfile" ,libsndfile)
296 ("libvorbis" ,libvorbis)
302 ("python-rdflib" ,python-rdflib)
303 ("readline" ,readline)
305 ("rubberband" ,rubberband)
313 `(("cppunit" ,cppunit)
314 ("gettext" ,gettext-minimal)
317 ("pkg-config" ,pkg-config)))
318 (home-page "http://ardour.org")
319 (synopsis "Digital audio workstation")
321 "Ardour is a multi-channel digital audio workstation, allowing users to
322 record, edit, mix and master audio and MIDI projects. It is targeted at audio
323 engineers, musicians, soundtrack editors and composers.")
324 (license license:gpl2+)))
326 (define-public audacity
334 (url "https://github.com/audacity/audacity.git")
335 (commit (string-append "Audacity-" version))))
336 (file-name (git-file-name name version))
339 "08w96124vv8k4myd4vifq73ningq6404x889wvg2sk016kc4dfv1"))
340 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
341 (modules '((guix build utils)))
343 ;; Remove bundled libraries.
347 (delete-file-recursively (string-append "lib-src/" dir)))
348 '("expat" "ffmpeg" "libflac" "libid3tag" "libmad" "libogg"
349 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
350 "portaudio-v19" "portmidi" "soundtouch" "twolame"
351 ;; FIXME: these libraries have not been packaged yet:
359 ;; FIXME: we have this library, but it differs in that the Slide
360 ;; class does not have a member "getInverseStretchedTime".
364 (build-system glib-or-gtk-build-system)
366 `(("wxwidgets" ,wxwidgets)
368 ("alsa-lib" ,alsa-lib)
374 ("libid3tag" ,libid3tag)
376 ;;("libsbsms" ,libsbsms) ;bundled version is modified
377 ("libsndfile" ,libsndfile)
378 ("soundtouch" ,soundtouch)
379 ("soxr" ,soxr) ;replaces libsamplerate
382 ("libvorbis" ,libvorbis)
384 ("lilv" ,lilv) ;for lv2
385 ("suil" ,suil) ;for lv2
386 ("portaudio" ,portaudio)
387 ("portmidi" ,portmidi)))
389 `(("autoconf" ,autoconf)
390 ("automake" ,automake)
391 ("gettext" ,gettext-minimal) ;for msgfmt
393 ("pkg-config" ,pkg-config)
398 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
399 (libmad (assoc-ref %build-inputs "libmad"))
400 (portmidi (assoc-ref %build-inputs "portmidi")))
402 ;; Loading FFmpeg dynamically is problematic.
403 "--disable-dynamic-loading"
404 ;; SSE instructions are available on Intel systems only.
405 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
409 '("--enable-sse=no"))
410 ;; portmidi, libid3tag and libmad provide no .pc files, so
411 ;; pkg-config fails to find them. Force their inclusion.
412 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
413 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
414 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
415 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
416 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
417 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
418 "EXPAT_USE_SYSTEM=yes"
419 "FFMPEG_USE_SYSTEM=yes"
420 "LAME_USE_SYSTEM=yes"
421 "LIBFLAC_USE_SYSTEM=yes"
422 "LIBID3TAG_USE_SYSTEM=yes"
423 "LIBMAD_USE_SYSTEM=yes"
424 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
425 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
426 "LIBSNDFILE_USE_SYSTEM=yes"
427 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
428 "LIBSOXR_USE_SYSTEM=yes"
429 "LIBTWOLAME_USE_SYSTEM=yes"
430 "LIBVAMP_USE_SYSTEM=yes"
431 "LIBVORBIS_USE_SYSTEM=yes"
433 "PORTAUDIO_USE_SYSTEM=yes"))
435 (modify-phases %standard-phases
436 (add-after 'unpack 'fix-sbsms-check
438 ;; This check is wrong: there is no 2.2.0 release; not even the
439 ;; bundled sources match this release string.
440 (substitute* '("m4/audacity_checklib_libsbsms.m4"
442 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
444 (add-after 'unpack 'use-upstream-headers
445 (lambda* (#:key inputs #:allow-other-keys)
446 (substitute* '("src/NoteTrack.cpp"
449 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
450 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
451 (substitute* "src/prefs/MidiIOPrefs.cpp"
452 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
454 ;; The test suite is not "well exercised" according to the developers,
455 ;; and fails with various errors. See
456 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
458 (home-page "https://www.audacityteam.org/")
459 (synopsis "Software for recording and editing sounds")
461 "Audacity is a multi-track audio editor designed for recording, playing
462 and editing digital audio. It features digital effects and spectrum analysis
464 (license license:gpl2+)))
466 (define-public autotalent
472 (uri (string-append "http://tombaran.info/autotalent-"
476 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
477 (build-system gnu-build-system)
479 `(#:tests? #f ; no check target
481 (modify-phases %standard-phases
482 ;; no configure script
484 (add-before 'install 'prepare-target-directory
485 (lambda* (#:key outputs #:allow-other-keys)
486 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
488 (add-after 'unpack 'override-target-directory
489 (lambda* (#:key outputs #:allow-other-keys)
490 (substitute* "Makefile"
491 (("/usr/lib64/ladspa")
492 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
495 `(("ladspa" ,ladspa)))
496 (home-page "http://tombaran.info/autotalent.html")
497 (synopsis "Pitch-correction LADSPA audio plugin")
499 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
500 controls are allowable notes, strength of correction, LFO for vibrato and
502 ;; All code except the FFT routine is licensed under GPLv2+.
503 ;; The FFT routine is under BSD-3.
504 (license license:gpl2+)))
512 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
517 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
518 (patches (search-patches "azr3.patch"))))
519 (build-system gnu-build-system)
521 `(#:tests? #f ; no check target
524 (string-append "prefix=" %output)
525 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
527 (modify-phases %standard-phases
528 (add-before 'install 'fix-timestamp
530 (let ((early-1980 315619200)) ; 1980-01-02 UTC
531 (utime "azr3.1" early-1980 early-1980))
539 `(("pkg-config" ,pkg-config)))
540 (home-page "http://ll-plugins.nongnu.org/azr3/")
541 (synopsis "Tonewheel organ synthesizer")
543 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
544 with drawbars, distortion and rotating speakers. The organ has three
545 sections, two polyphonic sections with nine drawbars each and one monophonic
546 bass section with five drawbars. A standalone JACK application and LV2
547 plugins are provided.")
548 (license license:gpl2)))
556 (uri (string-append "https://calf-studio-gear.org/files/calf-"
560 "0bn4j1klw2yfxz8clbmasaydifq25rdfsv0n6iisxrzcj1lx7sgh"))))
561 (build-system gnu-build-system)
563 `(("fluidsynth" ,fluidsynth)
574 `(("pkg-config" ,pkg-config)))
576 (list (search-path-specification
577 (variable "LV2_PATH")
578 (files '("lib/lv2")))))
579 (home-page "http://calf.sourceforge.net/")
580 (synopsis "Audio plug-in pack for LV2 and JACK environments")
582 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
583 The suite contains lots of effects (delay, modulation, signal processing,
584 filters, equalizers, dynamics, distortion and mastering effects),
585 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
586 tools (analyzer, mono/stereo tools, crossovers).")
587 ;; calfjackhost is released under GPLv2+
588 ;; The plugins are released under LGPLv2.1+
589 (license (list license:lgpl2.1+ license:gpl2+))))
591 (define-public caps-plugins-lv2
593 (name "caps-plugins-lv2")
594 (version "0.9.24") ; version that has been ported.
597 ;; The Github project hasn't tagged a release.
600 ;; Actually https://github.com/moddevices/caps-lv2.git, but it's
601 ;; missing fixes for newer glibc, so using the origin of a pull
602 ;; request regarding this issue:
603 (url "https://github.com/jujudusud/caps-lv2.git")
604 (commit "9c9478b7fbd8f9714f552ebe2a6866398b0babfb")))
605 (file-name (git-file-name name version))
608 "1idfnazin3cca41zw1a8vwgnxjnkrap7bxxjamjqvgpmvydgcam1"))))
609 (build-system gnu-build-system)
611 `(#:tests? #f ; no check target
613 (modify-phases %standard-phases
614 ;; no configure script
616 (add-after 'unpack 'override-target-directory
617 (lambda* (#:key outputs #:allow-other-keys)
618 (substitute* (find-files "plugins" "Makefile")
619 (("/usr/local")(assoc-ref outputs "out")))
623 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
624 (home-page "https://github.com/moddevices/caps-lv2")
625 (synopsis "LV2 port of the CAPS audio plugin colection")
627 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
628 guitar amplification and a small range of classic effects, signal processors and
629 generators of mostly elementary and occasionally exotic nature.")
630 (license license:gpl3+)))
632 (define-public infamous-plugins
634 (name "infamous-plugins")
639 (url "https://github.com/ssj71/infamousPlugins.git")
640 (commit (string-append "v" version))))
641 (file-name (git-file-name name version))
644 "0hmqk80w4qxq09iag7b7srf2g0wigkyhzq0ywxvhz2iz0hq9k0dh"))))
645 (build-system cmake-build-system)
647 `(#:tests? #f ; there are no tests
649 (modify-phases %standard-phases
650 (add-after 'unpack 'remove-compiler-flags
652 (substitute* (find-files "." "CMakeLists.txt")
653 (("-msse2 -mfpmath=sse") ""))
660 ("zita-resampler" ,zita-resampler)))
662 `(("pkg-config" ,pkg-config)))
663 (home-page "https://ssj71.github.io/infamousPlugins")
664 (synopsis "LV2 plugins for live use")
666 "The infamous plugins are a collection of LV2 audio plugins for live
667 performances. The plugins include a cellular automaton synthesizer, an
668 envelope follower, distortion effects, tape effects and more.")
669 (license license:gpl2+)))
671 (define-public swh-plugins-lv2
673 (name "swh-plugins-lv2")
678 (url "https://github.com/swh/lv2.git")
679 (commit (string-append "v" version))))
680 (file-name (git-file-name name version))
683 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
684 (build-system gnu-build-system)
686 `(#:tests? #f ; no check target
687 #:make-flags (list "CC=gcc"
688 (string-append "PREFIX="
689 (assoc-ref %outputs "out")))
691 (modify-phases %standard-phases
692 ;; no configure script
694 (add-after 'unpack 'patch-makefile-and-enter-directory
695 ;; The default install target doesn't install, but the
696 ;; "install-system" target does.
698 (substitute* "Makefile"
699 (("install:") "install: install-system"))
705 `(("libxslt" ,libxslt)
706 ("pkg-config" ,pkg-config)))
707 (home-page "http://plugin.org.uk")
708 (synopsis "SWH plugins in LV2 format")
710 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
711 classes include: dynamics (compressor, limiter), time (delay, chorus,
712 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
713 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
714 (license license:gpl3+)))
716 (define-public csound
723 (url "https://github.com/csound/csound.git")
725 (file-name (git-file-name name version))
728 "14822ybqyp31z18gky2y9zadr9dkbhabg97y139py73w7v3af1bh"))))
729 (build-system cmake-build-system)
731 `(("alsa-lib" ,alsa-lib)
733 ("pulseaudio" ,pulseaudio)
734 ("libsndfile" ,libsndfile)
738 ("gettext" ,gettext-minimal)))
743 (home-page "https://csound.com/")
744 (synopsis "Sound and music computing system")
746 "Csound is a user-programmable and user-extensible sound processing
747 language and software synthesizer.")
748 (license license:lgpl2.1+)))
750 (define-public clalsadrv
757 "http://kokkinizita.linuxaudio.org"
758 "/linuxaudio/downloads/clalsadrv-"
762 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
763 (build-system gnu-build-system)
765 `(#:tests? #f ; no "check" target
766 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
768 (modify-phases %standard-phases
769 (add-after 'unpack 'patch-makefile-and-enter-directory
771 (substitute* "libs/Makefile"
772 (("/sbin/ldconfig") "true")
773 (("^LIBDIR =.*") "LIBDIR = lib\n"))
776 (add-after 'install 'install-symlink
778 (symlink "libclalsadrv.so"
779 (string-append (assoc-ref %outputs "out")
780 "/lib/libclalsadrv.so.2"))
782 ;; no configure script
783 (delete 'configure))))
785 `(("alsa-lib" ,alsa-lib)
787 (home-page "https://kokkinizita.linuxaudio.org")
788 (synopsis "C++ wrapper around the ALSA API")
790 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
792 (license license:gpl2+)))
794 (define-public amb-plugins
801 "http://kokkinizita.linuxaudio.org"
802 "/linuxaudio/downloads/AMB-plugins-"
806 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
807 (build-system gnu-build-system)
809 `(#:tests? #f ; no "check" target
811 (modify-phases %standard-phases
812 ;; no configure script
814 (add-before 'install 'prepare-target-directory
815 (lambda* (#:key outputs #:allow-other-keys)
816 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
818 (add-after 'unpack 'override-target-directory-and-tool-paths
819 (lambda* (#:key outputs #:allow-other-keys)
820 (substitute* "Makefile"
822 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
823 (("/usr/bin/install") (which "install"))
826 (home-page "https://kokkinizita.linuxaudio.org")
827 (synopsis "LADSPA ambisonics plugins")
829 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
830 used within Ardour. Features include: mono and stereo to B-format panning,
831 horizontal rotator, square, hexagon and cube decoders.")
832 (license license:gpl2+)))
834 (define-public mcp-plugins
841 "http://kokkinizita.linuxaudio.org"
842 "/linuxaudio/downloads/MCP-plugins-"
846 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
847 (build-system gnu-build-system)
849 `(#:tests? #f ; no "check" target
851 (modify-phases %standard-phases
852 ;; no configure script
854 (add-before 'install 'prepare-target-directory
855 (lambda* (#:key outputs #:allow-other-keys)
856 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
858 (add-after 'unpack 'override-target-directory
859 (lambda* (#:key outputs #:allow-other-keys)
860 (substitute* "Makefile"
861 (("/usr") (assoc-ref outputs "out")))
863 (home-page "https://kokkinizita.linuxaudio.org")
864 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
866 "This package provides various LADSPA plugins. @code{cs_chorus} and
867 @code{cs_phaser} provide chorus and phaser effects, respectively;
868 @code{mvclpf24} provides four implementations of the low-pass filter used in
869 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
870 high-pass filter by Robert Moog. The filters attempt to accurately emulate
871 the non-linear circuit elements of their original analog counterparts.")
872 (license license:gpl2+)))
874 (define-public rev-plugins
881 "http://kokkinizita.linuxaudio.org"
882 "/linuxaudio/downloads/REV-plugins-"
886 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
887 (build-system gnu-build-system)
889 `(#:tests? #f ; no "check" target
891 (modify-phases %standard-phases
892 ;; no configure script
894 (add-before 'install 'prepare-target-directory
895 (lambda* (#:key outputs #:allow-other-keys)
896 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
898 (add-after 'unpack 'override-target-directory
899 (lambda* (#:key outputs #:allow-other-keys)
900 (substitute* "Makefile"
901 (("/usr") (assoc-ref outputs "out")))
903 (home-page "https://kokkinizita.linuxaudio.org")
904 (synopsis "LADSPA reverb plugin")
906 "This package provides a stereo reverb LADSPA plugin based on the
907 well-known greverb.")
908 (license license:gpl2+)))
910 (define-public fil-plugins
917 "http://kokkinizita.linuxaudio.org"
918 "/linuxaudio/downloads/FIL-plugins-"
922 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
923 (build-system gnu-build-system)
925 `(#:tests? #f ; no "check" target
927 (modify-phases %standard-phases
928 ;; no configure script
930 (add-before 'install 'prepare-target-directory
931 (lambda* (#:key outputs #:allow-other-keys)
932 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
934 (add-after 'unpack 'override-target-directory
935 (lambda* (#:key outputs #:allow-other-keys)
936 (substitute* "Makefile"
937 (("/usr") (assoc-ref outputs "out")))
939 (home-page "https://kokkinizita.linuxaudio.org")
940 (synopsis "LADSPA four-band parametric equalizer plugin")
942 "This package provides a LADSPA plugin for a four-band parametric
943 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
944 gain controls. There is also a global bypass switch and gain control.
946 The 2nd order resonant filters are implemented using a Mitra-Regalia style
947 lattice filter, which is stable even while parameters are being changed.
949 All switches and controls are internally smoothed, so they can be used @code{live}
950 without any clicks or zipper noises. This makes this plugin suitable for use
951 in systems that allow automation of plugin control ports, such as Ardour, or
953 (license license:gpl2+)))
955 (define-public ste-plugins
962 "http://kokkinizita.linuxaudio.org"
963 "/linuxaudio/downloads/STE-plugins-"
967 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
968 (build-system gnu-build-system)
970 `(#:tests? #f ; no "check" target
972 (modify-phases %standard-phases
973 ;; no configure script
975 (add-before 'install 'prepare-target-directory
976 (lambda* (#:key outputs #:allow-other-keys)
977 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
979 (add-after 'unpack 'override-target-directory
980 (lambda* (#:key outputs #:allow-other-keys)
981 (substitute* "Makefile"
982 (("/usr") (assoc-ref outputs "out")))
984 (home-page "https://kokkinizita.linuxaudio.org")
985 (synopsis "LADSPA stereo width plugin")
987 "This package provides a LADSPA plugin to manipulate the stereo width of
989 (license license:gpl2+)))
991 (define-public vco-plugins
998 "http://kokkinizita.linuxaudio.org"
999 "/linuxaudio/downloads/VCO-plugins-"
1000 version ".tar.bz2"))
1003 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1004 (build-system gnu-build-system)
1006 `(#:tests? #f ; no "check" target
1008 (modify-phases %standard-phases
1009 ;; no configure script
1011 (add-before 'install 'prepare-target-directory
1012 (lambda* (#:key outputs #:allow-other-keys)
1013 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1015 (add-after 'unpack 'override-target-directory
1016 (lambda* (#:key outputs #:allow-other-keys)
1017 (substitute* "Makefile"
1018 (("/usr") (assoc-ref outputs "out"))
1019 (("/bin/cp") (which "cp")))
1021 (home-page "https://kokkinizita.linuxaudio.org")
1022 (synopsis "LADSPA plugin for synthesizer oscillators")
1024 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1027 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1028 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1029 @item Rec-VCO, a square / rectangle oscillator
1032 All oscillators are low-pass filtered to provide waveforms similar to the
1033 output of analog synthesizers such as the Moog Voyager.")
1034 (license license:gpl2+)))
1036 (define-public wah-plugins
1038 (name "wah-plugins")
1043 "http://kokkinizita.linuxaudio.org"
1044 "/linuxaudio/downloads/WAH-plugins-"
1045 version ".tar.bz2"))
1048 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1049 (build-system gnu-build-system)
1051 `(#:tests? #f ; no "check" target
1053 (modify-phases %standard-phases
1054 ;; no configure script
1056 (add-before 'install 'prepare-target-directory
1057 (lambda* (#:key outputs #:allow-other-keys)
1058 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1060 (add-after 'unpack 'override-target-directory
1061 (lambda* (#:key outputs #:allow-other-keys)
1062 (substitute* "Makefile"
1063 (("/usr") (assoc-ref outputs "out")))
1065 (home-page "https://kokkinizita.linuxaudio.org")
1066 (synopsis "LADSPA Autowah effect plugin")
1068 "This package provides a LADSPA plugin for a Wah effect with envelope
1070 (license license:gpl2+)))
1072 (define-public g2reverb
1079 "http://kokkinizita.linuxaudio.org"
1080 "/linuxaudio/downloads/g2reverb-"
1081 version ".tar.bz2"))
1084 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1085 (build-system gnu-build-system)
1087 `(#:tests? #f ; no "check" target
1089 (modify-phases %standard-phases
1090 ;; no configure script
1092 (add-before 'install 'prepare-target-directory
1093 (lambda* (#:key outputs #:allow-other-keys)
1094 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1096 (add-after 'unpack 'override-target-directory
1097 (lambda* (#:key outputs #:allow-other-keys)
1098 (substitute* "Makefile"
1099 (("/usr") (assoc-ref outputs "out")))
1101 (home-page "https://kokkinizita.linuxaudio.org")
1102 (synopsis "LADSPA stereo reverb plugin")
1104 "This package provides a LADSPA plugin for a stereo reverb effect.")
1105 (license license:gpl2+)))
1107 (define-public fluidsynth
1114 (url "https://github.com/FluidSynth/fluidsynth.git")
1115 (commit (string-append "v" version))))
1116 (file-name (git-file-name name version))
1119 "1s32c0jxjica2agy0mp36vgvpgj2vl5i5zvacd6igmbam0x4gs7c"))))
1120 (build-system cmake-build-system)
1122 '(#:tests? #f ; no check target
1124 (modify-phases %standard-phases
1125 (add-after 'unpack 'fix-libdir
1127 ;; Install libraries to /lib, not /lib64.
1128 (substitute* "CMakeLists.txt"
1129 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1133 `(("libsndfile" ,libsndfile)
1134 ("alsa-lib" ,alsa-lib)
1138 ("readline" ,readline)
1141 `(("pkg-config" ,pkg-config)))
1142 (home-page "http://www.fluidsynth.org/")
1143 (synopsis "SoundFont synthesizer")
1145 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1146 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1147 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1148 also play midifiles using a Soundfont.")
1149 (license license:lgpl2.1+)))
1151 ;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1153 (define-public fluidsynth-1
1155 (inherit fluidsynth)
1158 (inherit (package-source fluidsynth))
1160 (url "https://github.com/FluidSynth/fluidsynth")
1161 (commit (string-append "v" version))))
1162 (file-name (git-file-name "fluidsynth" version))
1165 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1167 (define-public faad2
1173 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1174 (version-major+minor version) ".0/"
1175 "faad2-" version ".tar.gz"))
1178 "089zqykqgmmysznvk0bi2pfvdqwclnn540d0zks83sv2pynpfjb5"))))
1179 (build-system gnu-build-system)
1180 (home-page "https://www.audiocoding.com/faad2.html")
1181 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1183 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
1185 (license license:gpl2)))
1187 (define-public faust
1194 (url "https://github.com/grame-cncm/faust.git")
1195 (commit (string-append "v"
1196 (string-map (lambda (c)
1197 (if (char=? c #\.) #\- c))
1199 (file-name (string-append "faust-" version "-checkout"))
1202 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1203 (build-system gnu-build-system)
1205 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1208 (modify-phases %standard-phases
1209 ;; no "configure" script
1211 ;; Files appear under $out/share/faust that are read-only. The
1212 ;; install phase tries to overwrite them and fails, so we change
1213 ;; the permissions first.
1214 (add-before 'install 'fix-permissions
1216 (for-each (lambda (file)
1218 (find-files "architecture/max-msp" ".*"))
1221 `(("unzip" ,unzip)))
1222 (home-page "http://faust.grame.fr/")
1223 (synopsis "Signal processing language")
1225 "Faust is a programming language for realtime audio signal processing.")
1226 (license license:gpl2+)))
1228 (define-public faust-2
1234 (uri (string-append "https://github.com/grame-cncm/faust/"
1235 "releases/download/" version
1236 "/faust-" version ".tar.gz"))
1239 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1240 (build-system gnu-build-system)
1242 (substitute-keyword-arguments (package-arguments faust)
1243 ((#:make-flags flags)
1244 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1247 `(("llvm" ,llvm-3.8)
1250 ("ctags" ,emacs-minimal) ; for ctags
1251 ("pkg-config" ,pkg-config)))
1253 `(("libsndfile" ,libsndfile)
1254 ("libmicrohttpd" ,libmicrohttpd)
1255 ("ncurses" ,ncurses)
1256 ("openssl" ,openssl)
1259 (define-public freepats
1262 (version "20060219")
1265 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1266 version ".tar.bz2"))
1269 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1270 (build-system trivial-build-system)
1272 `(#:modules ((guix build utils))
1274 (use-modules (guix build utils))
1275 (let ((out (string-append %output "/share/freepats")))
1276 (setenv "PATH" (string-append
1277 (assoc-ref %build-inputs "bzip2") "/bin:"
1278 (assoc-ref %build-inputs "tar") "/bin"))
1279 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
1281 ;; Use absolute pattern references
1282 (substitute* "freepats.cfg"
1283 (("Tone_000") (string-append out "/Tone_000"))
1284 (("Drum_000") (string-append out "/Drum_000")))
1286 (copy-recursively "." out)
1291 (home-page "http://freepats.zenvoid.org")
1292 (synopsis "GUS compatible patches for MIDI players")
1294 "FreePats is a project to create a free and open set of GUS compatible
1295 patches that can be used with softsynths such as Timidity and WildMidi.")
1296 ;; GPLv2+ with exception for compositions using these patches.
1297 (license license:gpl2+)))
1299 (define-public guitarix
1306 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1310 "0bw7xnrx062nwb1bfj9x660h7069ncmz77szcs8icpqxrvhs7z80"))))
1311 (build-system waf-build-system)
1313 `(#:tests? #f ; no "check" target
1317 ;; Add the output lib directory to the RUNPATH.
1318 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))
1320 (modify-phases %standard-phases
1321 (add-after 'unpack 'fix-boost-includes
1323 (substitute* "src/headers/gx_internal_plugins.h"
1324 (("namespace gx_jack" m)
1325 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1326 (substitute* '("src/headers/gx_system.h"
1327 "src/headers/gx_parameter.h"
1328 "src/headers/gx_json.h")
1329 (("namespace gx_system" m)
1330 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1333 `(("libsndfile" ,libsndfile)
1346 ("zita-resampler" ,zita-resampler)
1347 ("zita-convolver" ,zita-convolver)))
1351 ("intltool" ,intltool)
1352 ("gettext" ,gettext-minimal)
1353 ("pkg-config" ,pkg-config)))
1354 (native-search-paths
1355 (list (search-path-specification
1356 (variable "LV2_PATH")
1357 (files '("lib/lv2")))))
1358 (home-page "http://guitarix.org/")
1359 (synopsis "Virtual guitar amplifier")
1360 (description "Guitarix is a virtual guitar amplifier running JACK.
1361 Guitarix takes the signal from your guitar as a mono-signal from your sound
1362 card. The input is processed by a main amp and a rack-section. Both can be
1363 routed separately and deliver a processed stereo-signal via JACK. You may
1364 fill the rack with effects from more than 25 built-in modules including stuff
1365 from a simple noise gate to modulation effects like flanger, phaser or
1367 (license license:gpl2+)))
1369 (define-public guitarix-lv2
1370 (package (inherit guitarix)
1371 (name "guitarix-lv2")
1373 (substitute-keyword-arguments (package-arguments guitarix)
1374 ((#:configure-flags flags)
1375 `(cons "--no-standalone" ,flags))))))
1377 (define-public rakarrack
1383 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1384 "rakarrack-" version "/rakarrack-"
1385 version ".tar.bz2"))
1388 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1389 (modules '((guix build utils)))
1392 (substitute* '("src/process.C"
1394 (("#include <Fl/") "#include <FL/"))
1396 (build-system gnu-build-system)
1398 `(("alsa-utils" ,alsa-utils)
1401 ("libxext" ,libxext)
1402 ("libxfixes" ,libxfixes)
1404 ("libxrender" ,libxrender)
1406 ("fontconfig" ,fontconfig)
1407 ("freetype" ,freetype)
1409 ("alsa-lib" ,alsa-lib)
1410 ("libsndfile" ,libsndfile)
1411 ("libsamplerate" ,libsamplerate)
1413 (home-page "http://rakarrack.sourceforge.net/")
1414 (synopsis "Audio effects processor")
1416 "Rakarrack is a richly featured multi-effects processor emulating a
1417 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1418 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1419 distortion modules and many more. Most of the effects engine is built from
1420 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1421 user interface are optimized for guitar, but Rakarrack processes signals in
1422 stereo while it does not apply internal band-limiting filtering, and thus is
1423 well suited to all musical instruments and vocals.")
1424 ;; The code is explicitly licensed under the GPL version 2 only.
1425 (license license:gpl2)))
1433 ;; The original home-page is gone. Download the tarball from an
1434 ;; archive mirror instead.
1435 (uri (list (string-append
1436 "https://web.archive.org/web/20150803095032/"
1437 "http://factorial.hu/system/files/ir.lv2-"
1440 "https://mirrors.kernel.org/gentoo/distfiles/ir.lv2-"
1441 version ".tar.gz")))
1444 "1jh2z01l9m4ar7yz0n911df07dygc7n4cl59p7qdjbh0nvkm747g"))))
1445 (build-system gnu-build-system)
1447 `(#:tests? #f ; no tests
1448 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1449 #:phases (modify-phases %standard-phases
1450 (delete 'configure)))) ; no configure script
1452 `(("libsndfile" ,libsndfile)
1453 ("libsamplerate" ,libsamplerate)
1457 ("zita-convolver" ,zita-convolver)))
1459 `(("pkg-config" ,pkg-config)))
1460 (native-search-paths
1461 (list (search-path-specification
1462 (variable "LV2_PATH")
1463 (files '("lib/lv2")))))
1464 ;; Link to an archived copy of the home-page since the original is gone.
1465 (home-page (string-append "https://web.archive.org/web/20150803095032/"
1466 "http://factorial.hu/plugins/lv2/ir"))
1467 (synopsis "LV2 convolution reverb")
1469 "IR is a low-latency, real-time, high performance signal convolver
1470 especially for creating reverb effects. It supports impulse responses with 1,
1471 2 or 4 channels, in any soundfile format supported by libsndfile.")
1472 (license license:gpl2+)))
1474 (define-public jack-1
1481 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1486 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
1487 (build-system gnu-build-system)
1489 `(#:phases (modify-phases %standard-phases
1490 (add-after 'unpack 'patch-configure
1492 (substitute* "configure"
1493 ;; Install to <out/lib> regardless of platform.
1494 (("libnn=lib64") "libnn=lib"))
1497 `(("alsa-lib" ,alsa-lib)
1498 ("readline" ,readline)))
1499 ;; uuid.h is included in the JACK type headers
1500 ;; db.h is included in the libjack metadata headers
1502 `(("libuuid" ,util-linux)
1505 `(("pkg-config" ,pkg-config)))
1506 (home-page "http://jackaudio.org/")
1507 (synopsis "JACK audio connection kit")
1509 "JACK is a low-latency audio server. It can connect a number of
1510 different applications to an audio device, as well as allowing them to share
1511 audio between themselves. JACK is different from other audio server efforts
1512 in that it has been designed from the ground up to be suitable for
1513 professional audio work. This means that it focuses on two key areas:
1514 synchronous execution of all clients, and low latency operation.")
1515 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1516 ;; licensed under the LGPL in order to allow for proprietary usage.
1517 (license (list license:gpl2+ license:lgpl2.1+))))
1519 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1520 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
1521 ;; program for users who might benefit from the D-BUS features.
1522 (define-public jack-2
1523 (package (inherit jack-1)
1528 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
1529 "download/v" version "/jack2-"
1531 (file-name (string-append name "-" version ".tar.gz"))
1534 "1d1d403jn4366mqig6g8ghr8057b3rn7gs26b5p3rkal34j20qw2"))))
1535 (build-system waf-build-system)
1537 `(#:tests? #f ; no check target
1538 #:configure-flags '("--dbus"
1541 (modify-phases %standard-phases
1542 (add-before 'configure 'set-linkflags
1544 ;; Add $libdir to the RUNPATH of all the binaries.
1545 (substitute* "wscript"
1546 ((".*CFLAGS.*-Wall.*" m)
1548 " conf.env.append_unique('LINKFLAGS',"
1549 "'-Wl,-rpath=" %output "/lib')\n")))
1551 (add-after 'install 'wrap-python-scripts
1552 (lambda* (#:key inputs outputs #:allow-other-keys)
1553 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1554 (let* ((out (assoc-ref outputs "out"))
1555 (path (getenv "PYTHONPATH")))
1556 (wrap-program (string-append out "/bin/jack_control")
1557 `("PYTHONPATH" ":" prefix (,path))))
1560 `(("alsa-lib" ,alsa-lib)
1563 ("libsamplerate" ,libsamplerate)
1565 ("python-dbus" ,python-dbus)
1566 ("readline" ,readline)))
1568 `(("pkg-config" ,pkg-config)))
1569 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1570 (license (list license:gpl2+ license:lgpl2.1+))))
1578 (uri (string-append "https://download.drobilla.net/jalv-"
1579 version ".tar.bz2"))
1582 "1wwfn7yzbs37s2rdlfjgks63svd5g14yyzd2gdl7h0z12qncwsy2"))))
1583 (build-system waf-build-system)
1585 `(#:tests? #f ; no check target
1586 #:python ,python-2))
1597 `(("pkg-config" ,pkg-config)))
1598 (home-page "https://drobilla.net/software/jalv/")
1599 (synopsis "Simple LV2 host for JACK")
1601 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1602 plugins and exposes their ports as JACK ports, essentially making any LV2
1603 plugin function as a JACK application.")
1604 (license license:isc)))
1606 (define-public ladspa
1613 ;; Since the official link is dead,
1614 ;; we download the tarball from Debian or Internet Archive.
1615 (uri (list (string-append "http://http.debian.net"
1616 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1617 version ".orig.tar.gz")
1618 (string-append "https://web.archive.org/web/20140717172251/"
1619 "http://www.ladspa.org/download/ladspa_sdk_"
1623 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
1624 (build-system gnu-build-system)
1626 `(#:tests? #f ; the "test" target is a listening test only
1628 (modify-phases %standard-phases
1630 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1632 (let ((out (assoc-ref outputs "out")))
1633 (substitute* "makefile"
1634 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1635 (("/usr/include/") (string-append out "/include/"))
1636 (("/usr/bin/") (string-append out "/bin/"))
1637 (("-mkdirhier") "mkdir -p")
1638 (("^CC.*") "CC = gcc\n")
1639 (("^CPP.*") "CPP = g++\n")))
1642 ;; Since the home page is gone, we provide a link to the archived version.
1644 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
1645 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1647 "LADSPA is a standard that allows software audio processors and effects
1648 to be plugged into a wide range of audio synthesis and recording packages.")
1649 (license license:lgpl2.1+)))
1654 (version "0.6.0-rc2")
1657 ;; The tilde is not permitted in the builder name, but is used
1660 "mirror://savannah/lash/lash-"
1661 (string-join (string-split version #\-) "~")
1663 (file-name (string-append name "-" version ".tar.bz2"))
1666 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1667 (build-system gnu-build-system)
1669 '(;; Glibc no longer includes Sun RPC support, so tell the build system
1670 ;; to use libtirpc instead.
1671 #:make-flags (list (string-append "CFLAGS=-I"
1672 (assoc-ref %build-inputs "libtirpc")
1673 "/include/tirpc -ltirpc"))
1675 (modify-phases %standard-phases
1676 ;; lashd embeds an ancient version of sigsegv so we just skip it
1677 (add-after 'unpack 'skip-lashd
1679 (substitute* '("Makefile.am" "Makefile.in")
1682 #:configure-flags '("--disable-static")))
1687 ("libtirpc" ,libtirpc)
1688 ("readline" ,readline)
1689 ("python" ,python-2)))
1690 ;; According to pkg-config, packages depending on lash also need to have
1691 ;; at least the following packages declared as inputs.
1693 `(("alsa-lib" ,alsa-lib)
1695 ("libxml2" ,libxml2)))
1697 `(("pkg-config" ,pkg-config)))
1698 (home-page "https://www.nongnu.org/lash/")
1699 (synopsis "Audio application session manager")
1701 "LASH is a session management system for audio applications. It allows
1702 you to save and restore audio sessions consisting of multiple interconneced
1703 applications, restoring program state (i.e. loaded patches) and the
1704 connections between them.")
1705 (license license:gpl2+)))
1707 (define-public libbs2b
1713 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1714 "/libbs2b-" version ".tar.lzma"))
1717 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1718 (build-system gnu-build-system)
1719 (native-inputs `(("pkg-config" ,pkg-config)))
1720 (inputs `(("libsndfile" ,libsndfile)))
1721 (home-page "https://sourceforge.net/projects/bs2b/")
1722 (synopsis "Bauer stereophonic-to-binaural DSP")
1724 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1725 designed to improve headphone listening of stereo audio records. Recommended
1726 for headphone prolonged listening to disable superstereo fatigue without
1727 essential distortions.")
1728 (license license:expat)))
1730 (define-public liblo
1736 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1737 "/liblo-" version ".tar.gz"))
1740 "06wdjzxjdshr6hyl4c94yvg3jixiylap8yjs8brdfpm297gck9rh"))))
1741 (build-system gnu-build-system)
1743 `(;; liblo test FAILED
1744 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1746 (home-page "http://liblo.sourceforge.net")
1747 (synopsis "Implementation of the Open Sound Control protocol")
1749 "liblo is a lightweight library that provides an easy to use
1750 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
1751 (license license:lgpl2.1+)))
1753 (define-public python-pyaudio
1755 (name "python-pyaudio")
1760 (uri (pypi-uri "PyAudio" version))
1763 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
1764 (build-system python-build-system)
1766 `(("portaudio" ,portaudio)))
1767 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
1768 (synopsis "Bindings for PortAudio v19")
1769 (description "This package provides bindings for PortAudio v19, the
1770 cross-platform audio input/output stream library.")
1771 (license license:expat)))
1773 (define-public python2-pyaudio
1774 (package-with-python2 python-pyaudio))
1776 (define-public python-pyliblo
1778 (name "python-pyliblo")
1782 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1786 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1787 (build-system python-build-system)
1788 (arguments `(#:tests? #f)) ;no tests
1790 `(("python-cython" ,python-cython)))
1792 `(("liblo" ,liblo)))
1793 (home-page "http://das.nasophon.de/pyliblo/")
1794 (synopsis "Python bindings for liblo")
1796 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1797 library. It supports almost the complete functionality of liblo, allowing you
1798 to send and receive OSC messages using a nice and simple Python API. Also
1799 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1800 (license license:lgpl2.1+)))
1802 (define-public python2-pyliblo
1803 (package-with-python2 python-pyliblo))
1811 (uri (string-append "https://download.drobilla.net/lilv-"
1812 version ".tar.bz2"))
1815 "1p3hafsxgs5d4za7n66lf5nz74qssfqpmk520cm7iq2njvvlqm2z"))))
1816 (build-system waf-build-system)
1818 `(#:tests? #f ; no check target
1820 (modify-phases %standard-phases
1821 (add-before 'configure 'set-ldflags
1822 (lambda* (#:key outputs #:allow-other-keys)
1824 (string-append "-Wl,-rpath="
1825 (assoc-ref outputs "out") "/lib"))
1827 (add-after 'unpack 'full-store-path-to-shared-library
1828 (lambda* (#:key outputs #:allow-other-keys)
1829 (with-directory-excursion "bindings/python"
1830 (substitute* "lilv.py"
1831 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
1832 "/lib/liblilv-0.so"))))
1834 ;; Required by lilv-0.pc.
1839 ("sratom" ,sratom)))
1841 `(("python" ,python)
1842 ("pkg-config" ,pkg-config)))
1843 (home-page "https://drobilla.net/software/lilv")
1844 (synopsis "Library to simplify use of LV2 plugins in applications")
1846 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1847 for applications. Lilv is the successor to SLV2, rewritten to be
1848 significantly faster and have minimal dependencies.")
1849 (license license:isc)))
1857 (uri (string-append "http://lv2plug.in/spec/lv2-"
1858 version ".tar.bz2"))
1861 "1ppippbpdpv13ibs06b0bixnazwfhiw0d0ja6hx42jnkgdyp5hyy"))))
1862 (build-system waf-build-system)
1864 `(#:tests? #f ; no check target
1865 #:configure-flags '("--no-plugins")))
1867 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1868 `(("libsndfile" ,libsndfile)))
1870 `(("pkg-config" ,pkg-config)))
1871 (home-page "http://lv2plug.in/")
1872 (synopsis "LV2 audio plugin specification")
1874 "LV2 is an open specification for audio plugins and host applications.
1875 At its core, LV2 is a simple stable interface, accompanied by extensions which
1876 add functionality to support the needs of increasingly powerful audio
1878 (license license:isc)))
1880 (define-public lv2-mda-piano
1882 (name "lv2-mda-piano")
1887 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
1889 (file-name (git-file-name name version))
1892 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1893 (build-system gnu-build-system)
1895 `(#:make-flags (list
1897 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1898 #:tests? #f ; no check target
1899 #:phases (modify-phases %standard-phases (delete 'configure))))
1904 `(("pkg-config" ,pkg-config)))
1905 (native-search-paths
1906 (list (search-path-specification
1907 (variable "LV2_PATH")
1908 (files '("lib/lv2")))))
1909 (home-page "http://elephly.net/lv2/mdapiano.html")
1910 (synopsis "LV2 port of the mda Piano plugin")
1911 (description "An LV2 port of the mda Piano VSTi.")
1912 (license license:gpl3+)))
1914 (define-public lv2-mda-epiano
1915 (package (inherit lv2-mda-piano)
1916 (name "lv2-mda-epiano")
1918 `(#:make-flags (list
1920 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1921 #:tests? #f ; no check target
1922 #:phases (modify-phases %standard-phases (delete 'configure))))
1923 (home-page "http://elephly.net/lv2/mdaepiano.html")
1924 (synopsis "LV2 port of the mda EPiano plugin")
1925 (description "An LV2 port of the mda EPiano VSTi.")))
1934 (url "https://github.com/lvtk/lvtk.git")
1936 (file-name (git-file-name name version))
1939 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
1940 (build-system waf-build-system)
1942 `(#:tests? #f ; no check target
1945 (list (string-append "--boost-includes="
1946 (assoc-ref %build-inputs "boost")
1953 `(("pkg-config" ,pkg-config)))
1954 (home-page "https://github.com/lvtk/lvtk")
1955 (synopsis "C++ libraries for LV2 plugins")
1957 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
1958 extensions into easy to use C++ classes. It is the successor of
1960 (license license:gpl3+)))
1962 (define-public openal
1969 "http://openal-soft.org/openal-releases/openal-soft-"
1970 version ".tar.bz2"))
1973 "1sdjhkz2gd6lbnwphi1b6aw3br4wv2lik5vnqh6mxfc8a7zqfbsw"))))
1974 (build-system cmake-build-system)
1976 `(#:tests? #f ; no check target
1978 (modify-phases %standard-phases
1980 'unpack 'use-full-library-paths
1981 (lambda* (#:key inputs #:allow-other-keys)
1982 (substitute* "Alc/backends/pulseaudio.c"
1983 (("#define PALIB \"libpulse\\.so\\.0\"")
1984 (string-append "#define PALIB \""
1985 (assoc-ref inputs "pulseaudio")
1986 "/lib/libpulse.so.0"
1988 (substitute* "Alc/backends/alsa.c"
1989 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
1990 (string-append "LoadLib(\""
1991 (assoc-ref inputs "alsa-lib")
1992 "/lib/libasound.so.2"
1996 `(;; FIXME: On i686-linux, GCC 7 hits an internal compiler error
1997 ;; upon building utils/makehrtf.c:3281:
1998 ;; "internal compiler error: in gen_rtx_SUBREG, at emit-rtl.c:908"
1999 ;; https://ci.guix.gnu.org/log/r2fjx9m75m9rifg2yjbnn853wqy2547n-openal-1.19.1
2000 ;; Remove this when the default compiler is GCC 9 or later.
2003 `(("alsa-lib" ,alsa-lib)
2004 ("pulseaudio" ,pulseaudio)))
2005 (synopsis "3D audio API")
2007 "OpenAL provides capabilities for playing audio in a virtual 3D
2008 environment. Distance attenuation, doppler shift, and directional sound
2009 emitters are among the features handled by the API. More advanced effects,
2010 including air absorption, occlusion, and environmental reverb, are available
2011 through the EFX extension. It also facilitates streaming audio, multi-channel
2012 buffers, and audio capture.")
2013 (home-page "http://openal-soft.org/")
2014 (license license:lgpl2.0+)))
2016 (define-public freealut
2022 ;; Upstream url is unclear, many systems use Fedora, there is also
2023 ;; https://github.com/vancegroup/freealut though the status of it
2024 ;; (official? unofficial?) is not clear.
2026 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2027 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2028 "-" version ".tar.gz"))
2031 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2032 (build-system cmake-build-system)
2034 `(#:tests? #f)) ; no check target
2036 `(("openal" ,openal)))
2037 (synopsis "Free implementation of OpenAL's ALUT standard")
2038 (description "freealut is the OpenAL Utility Toolkit.")
2039 (home-page "http://kcat.strangesoft.net/openal.html")
2040 (license license:lgpl2.0)))
2042 (define-public patchage
2048 (uri (string-append "https://download.drobilla.net/patchage-"
2053 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
2054 (build-system waf-build-system)
2056 `(#:tests? #f ; no check target
2057 #:python ,python-2))
2059 `(("alsa-lib" ,alsa-lib)
2065 ("dbus-glib" ,dbus-glib)))
2067 `(("pkg-config" ,pkg-config)))
2068 (home-page "https://drobilla.net/software/patchage/")
2069 (synopsis "Modular patch bay for audio and MIDI systems")
2071 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2073 (license license:gpl3+)))
2075 (define-public pcaudiolib
2079 (home-page "https://github.com/espeak-ng/pcaudiolib")
2082 (uri (git-reference (url home-page) (commit version)))
2083 (file-name (git-file-name name version))
2086 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2087 (build-system gnu-build-system)
2089 `(#:configure-flags '("--disable-static")))
2091 `(("autoconf" ,autoconf)
2092 ("automake" ,automake)
2093 ("libtool" ,libtool)
2094 ("pkg-config" ,pkg-config)
2097 `(("alsa-lib" ,alsa-lib)
2098 ("pulseaudio" ,pulseaudio)))
2099 (synopsis "Portable C audio library")
2101 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2102 different audio devices such as ALSA or PulseAudio.")
2103 (license (list license:gpl3+
2104 ;; The bundled TPCircularBuffer uses a custom license.
2105 (license:non-copyleft
2106 "file://src/TPCircularBuffer/README.markdown")))))
2108 (define-public qjackctl
2114 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2115 version "/qjackctl-" version ".tar.gz"))
2118 "1saywsda9m124rmjp7i3n0llryaliabjxhqhvqr6dm983qy7pypk"))))
2119 (build-system gnu-build-system)
2121 '(#:tests? #f)) ; no check target
2124 ("alsa-lib" ,alsa-lib)
2126 ("qtx11extras" ,qtx11extras)))
2128 `(("pkg-config" ,pkg-config)
2129 ("qttools" ,qttools)))
2130 (home-page "https://qjackctl.sourceforge.io/")
2131 (synopsis "Jack server control application")
2132 (description "Control a Jack server. Allows you to plug various sources
2133 into various outputs and to start, stop and configure jackd")
2134 (license license:gpl2+)))
2136 (define-public qjackrcd
2143 (url "https://github.com/orouits/qjackrcd.git")
2144 (commit (string-append "v" version))))
2145 (file-name (git-file-name name version))
2148 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2149 (build-system gnu-build-system)
2152 (modify-phases %standard-phases
2154 (lambda* (#:key outputs #:allow-other-keys)
2156 (string-append "PREFIX="
2157 (assoc-ref outputs "out"))))))))
2159 `(("qtbase" ,qtbase))) ; for qmake
2162 ("libsndfile" ,libsndfile)
2163 ("qtbase" ,qtbase)))
2164 (home-page "https://sourceforge.net/projects/qjackrcd/")
2165 (synopsis "Stereo audio recorder for JACK")
2166 (description "QJackRcd is a simple graphical stereo recorder for JACK
2167 supporting silence processing for automatic pause, file splitting, and
2168 background file post-processing.")
2169 (license license:gpl2+)))
2171 (define-public supercollider
2173 (name "supercollider")
2178 "https://github.com/supercollider/supercollider"
2179 "/releases/download/Version-" version
2180 "/SuperCollider-" version "-Source-linux.tar.bz2"))
2182 (search-patches "supercollider-boost-1.70-build-fix.patch"))
2185 "0srm6wbazidkrd4ckjy4ypyhkdwcnx2i7k9msjyngalh0mrc9zz1"))))
2186 (build-system cmake-build-system)
2188 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
2190 "-DSC_EL=off") ;scel is packaged individually as
2192 #:modules ((guix build utils)
2193 (guix build cmake-build-system)
2196 (modify-phases %standard-phases
2197 (add-after 'unpack 'rm-bundled-libs
2199 ;; The build system doesn't allow us to unbundle the following
2200 ;; libraries. hidapi is also heavily patched and upstream not
2201 ;; actively maintained.
2202 (let ((keep-dirs '("nova-simd" "nova-tt" "hidapi" "TLSF-2.4.6"
2203 "oscpack_1_1_0" "." "..")))
2204 (with-directory-excursion "./external_libraries"
2206 delete-file-recursively
2209 (and (eq? (stat:type (stat x)) 'directory)
2210 (not (member (basename x) keep-dirs))))))))
2212 ;; Some tests are broken (see:
2213 ;; https://github.com/supercollider/supercollider/issues/3555 and
2214 ;; https://github.com/supercollider/supercollider/issues/1736
2215 (add-after 'rm-bundled-libs 'disable-broken-tests
2217 (substitute* "testsuite/server/supernova/CMakeLists.txt"
2218 (("server_test.cpp")
2220 (("perf_counter_test.cpp")
2222 (delete-file "testsuite/server/supernova/server_test.cpp")
2223 (delete-file "testsuite/server/supernova/perf_counter_test.cpp")
2224 (substitute* "testsuite/CMakeLists.txt"
2225 (("add_subdirectory\\(sclang\\)")
2227 (delete-file "testsuite/sclang/CMakeLists.txt")
2230 `(("pkg-config" ,pkg-config)))
2233 ("libsndfile" ,libsndfile)
2236 ("readline" ,readline) ;readline support for sclang's CLI
2237 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2238 ("eudev" ,eudev) ;for user interactions with devices
2239 ("avahi" ,avahi) ;zeroconf service discovery support
2242 ("boost-sync" ,boost-sync)
2243 ("yaml-cpp" ,yaml-cpp)))
2244 (home-page "https://github.com/supercollider/supercollider")
2245 (synopsis "Synthesis engine and programming language")
2246 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2247 @code{supernova}) and programming language (@code{sclang}). It can be used
2248 for experimenting with sound synthesis and algorithmic composition.
2250 SuperCollider requires jackd to be installed in your user profile and your
2251 user must be allowed to access the realtime features of the kernel. Search
2252 for \"realtime\" in the index of the Guix manual to learn how to achieve this
2253 using Guix System.")
2254 (license license:gpl2+)))
2262 (uri (string-append "https://download.drobilla.net/raul-"
2263 version ".tar.bz2"))
2266 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2267 (build-system waf-build-system)
2269 `(#:python ,python-2
2270 #:tests? #f)) ; no check target
2275 `(("pkg-config" ,pkg-config)))
2276 (home-page "https://drobilla.net/software/raul/")
2277 (synopsis "Real-time audio utility library")
2279 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2280 aimed at audio/musical applications.")
2281 (license license:gpl2+)))
2283 (define-public raul-devel
2284 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2286 (package (inherit raul)
2288 (version (string-append "0.8.9-" revision "."
2289 (string-take commit 9)))
2293 (url "https://git.drobilla.net/raul.git")
2295 (file-name (string-append name "-" version "-checkout"))
2298 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2300 (define-public rubberband
2307 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2310 (file-name (string-append name "-" version ".tar.bz2"))
2313 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
2314 (build-system gnu-build-system)
2316 `(#:tests? #f ; no check target
2318 (modify-phases %standard-phases
2319 (add-after 'unpack 'skip-jni-installation
2320 ;; ‘make install’ unconditionally installs librubberband-jni.so,
2321 ;; which is never built by ‘make all’. Skip it.
2323 (substitute* "Makefile.in"
2324 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
2327 `(("ladspa" ,ladspa)
2328 ("libsamplerate" ,libsamplerate)
2331 `(("pkg-config" ,pkg-config)))
2332 (home-page "https://breakfastquay.com/rubberband/")
2333 (synopsis "Audio time-stretching and pitch-shifting library")
2335 "Rubber Band is a library and utility program that permits changing the
2336 tempo and pitch of an audio recording independently of one another.")
2337 (license license:gpl2+)))
2339 (define-public rtmidi
2346 (url "https://github.com/powertab/rtmidi.git")
2348 (file-name (git-file-name name version))
2351 "106v177y3nrjv2l1yskch4phpqd8h97b67zj0jiq9pc3c69jr1ay"))))
2352 (build-system gnu-build-system)
2354 `(#:tests? #f ;no "check" target
2356 (modify-phases %standard-phases
2357 (add-before 'build 'fix-makefile
2359 (substitute* "Makefile"
2361 (("RtMidi.h RtError.h") "RtMidi.h"))
2363 (add-before 'install 'make-target-dirs
2365 (let ((out (assoc-ref %outputs "out")))
2366 (mkdir-p (string-append out "/bin"))
2367 (mkdir (string-append out "/lib"))
2368 (mkdir (string-append out "/include")))
2372 ("alsa-lib" ,alsa-lib)))
2374 `(("autoconf" ,autoconf)
2375 ("automake" ,automake)
2376 ("libtool" ,libtool)
2377 ("pkg-config" ,pkg-config)))
2378 (home-page "https://github.com/powertab/rtmidi")
2379 (synopsis "Cross-platform MIDI library for C++")
2381 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2382 classes) that provide a common cross-platform API for realtime MIDI
2384 (license license:expat)))
2386 (define-public sratom
2392 (uri (string-append "https://download.drobilla.net/sratom-"
2393 version ".tar.bz2"))
2396 "0vh0biy3ngpzzgdml309c2mqz8xq9q0hlblczb4c6alhp0a8yv0l"))))
2397 (build-system waf-build-system)
2398 (arguments `(#:tests? #f)) ; no check target
2404 `(("pkg-config" ,pkg-config)))
2405 (home-page "https://drobilla.net/software/sratom/")
2406 (synopsis "Library for serialising LV2 atoms to/from RDF")
2408 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2409 the Turtle syntax.")
2410 (license license:isc)))
2418 (uri (string-append "https://download.drobilla.net/suil-"
2419 version ".tar.bz2"))
2422 "0ay7hl6nr6ip1nn9k2m8ri3b52b6sx9mhixmcy4fy3kr2a88ksd1"))))
2423 (build-system waf-build-system)
2425 `(#:tests? #f)) ;no check target
2432 `(("pkg-config" ,pkg-config)))
2433 (home-page "https://drobilla.net/software/suil/")
2434 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2436 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2438 Suil makes it possible to load a UI of a toolkit in a host using another
2439 toolkit. The API is designed such that hosts do not need to explicitly
2440 support specific toolkits – if Suil supports a particular toolkit, then UIs in
2441 that toolkit will work in all hosts that use Suil automatically.
2443 Suil currently supports every combination of Gtk, Qt, and X11.")
2444 (license license:isc)))
2446 (define-public timidity++
2452 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2453 "/TiMidity++-" version
2454 "/TiMidity++-" version ".tar.bz2"))
2457 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2458 (build-system gnu-build-system)
2461 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2465 (string-append "--with-default-path="
2466 (assoc-ref %outputs "out") "/etc/timidity"))
2468 (modify-phases %standard-phases
2469 (add-after 'install 'install-config
2471 (let ((out (string-append (assoc-ref %outputs "out")
2474 (call-with-output-file
2475 (string-append out "/timidity.cfg")
2477 (format port (string-append "source "
2478 (assoc-ref %build-inputs "freepats")
2479 "/share/freepats/freepats.cfg")))))
2482 `(("alsa-lib" ,alsa-lib)
2488 ("ncurses" ,ncurses)
2489 ("freepats" ,freepats)))
2491 `(("pkg-config" ,pkg-config)))
2492 (home-page "http://timidity.sourceforge.net/")
2493 (synopsis "Software synthesizer for playing MIDI files")
2495 "TiMidity++ is a software synthesizer. It can play MIDI files by
2496 converting them into PCM waveform data; give it a MIDI data along with digital
2497 instrument data files, then it synthesizes them in real-time, and plays. It
2498 can not only play sounds, but also can save the generated waveforms into hard
2499 disks as various audio file formats.")
2500 (license license:gpl2+)))
2509 "https://code.soundsoftware.ac.uk"
2510 "/attachments/download/1520/vamp-plugin-sdk-"
2514 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
2515 (build-system gnu-build-system)
2517 `(#:tests? #f ; no check target
2519 (modify-phases %standard-phases
2520 (add-after 'install 'remove-libvamp-hostsdk.la
2521 (lambda* (#:key outputs #:allow-other-keys)
2522 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2523 (for-each delete-file
2524 (let ((out (assoc-ref outputs "out")))
2525 (list (string-append out "/lib/libvamp-sdk.la")
2526 (string-append out "/lib/libvamp-hostsdk.la"))))
2529 `(("libsndfile" ,libsndfile)))
2531 `(("pkg-config" ,pkg-config)))
2532 (home-page "http://vamp-plugins.org")
2533 (synopsis "Modular and extensible audio processing system")
2535 "Vamp is an audio processing plugin system for plugins that extract
2536 descriptive information from audio data — typically referred to as audio
2537 analysis plugins or audio feature extraction plugins.")
2540 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
2542 (define-public libsbsms
2549 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2550 "/libsbsms-" version ".tar.gz"))
2552 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2553 (build-system gnu-build-system)
2554 (native-inputs `(("automake" ,automake)))
2557 ;; Disable the use of SSE unless on x86_64.
2558 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2559 (%current-system))))
2563 (modify-phases %standard-phases
2565 'unpack 'fix-ar-lib-path
2566 (lambda* (#:key inputs #:allow-other-keys)
2567 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2568 (delete-file "ar-lib")
2570 (string-append (assoc-ref inputs "automake") "/share/automake-"
2571 ,(package-version automake) "/ar-lib")
2574 (home-page "http://sbsms.sourceforge.net/")
2575 (synopsis "Library for time stretching and pitch scaling of audio")
2577 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2578 stretching and pitch scaling of audio. This package contains the library.")
2579 ;; There is no explicit declaration of a license, but a COPYING file
2581 (license license:gpl2)))
2583 (define-public wavpack
2589 (uri (string-append "http://www.wavpack.com/"
2590 name "-" version ".tar.bz2"))
2591 (patches (search-patches "wavpack-CVE-2018-6767.patch"
2592 "wavpack-CVE-2018-7253.patch"
2593 "wavpack-CVE-2018-7254.patch"))
2596 "0i19c6krc0p9krwrqy9s5xahaafigqzxcn31piidmlaqadyn4f8r"))))
2597 (build-system gnu-build-system)
2598 (home-page "http://www.wavpack.com/")
2599 (synopsis "Hybrid lossless audio codec")
2601 "WavPack is an audio compression format with lossless, lossy and hybrid
2602 compression modes. This package contains command-line programs and library to
2603 encode and decode wavpack files.")
2604 (license license:bsd-3)))
2606 (define-public libmodplug
2613 "mirror://sourceforge/modplug-xmms/"
2614 name "/" version "/" name "-" version ".tar.gz"))
2617 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
2618 (build-system gnu-build-system)
2619 (home-page "http://modplug-xmms.sourceforge.net/")
2620 (synopsis "Mod file playing library")
2622 "Libmodplug renders mod music files as raw audio data, for playing or
2623 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2624 supported. Optional features include high-quality resampling, bass expansion,
2625 surround and reverb.")
2626 (license license:public-domain)))
2628 (define-public libxmp
2634 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
2635 name "-" version ".tar.gz"))
2638 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
2639 (build-system gnu-build-system)
2640 (home-page "http://xmp.sourceforge.net/")
2641 (synopsis "Module player library")
2643 "Libxmp is a library that renders module files to PCM data. It supports
2644 over 90 mainstream and obscure module formats including Protracker (MOD),
2645 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2646 (license license:lgpl2.1+)))
2654 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
2655 name "-" version ".tar.gz"))
2658 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
2659 (build-system gnu-build-system)
2661 `(("pkg-config" ,pkg-config)))
2663 `(("libxmp" ,libxmp)
2664 ("pulseaudio" ,pulseaudio)))
2665 (home-page "http://xmp.sourceforge.net/")
2666 (synopsis "Extended module player")
2668 "Xmp is a portable module player that plays over 90 mainstream and
2669 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2670 Tracker 3 S3M and Impulse Tracker IT files.")
2671 (license license:gpl2+)))
2673 (define-public soundtouch
2681 (url "https://gitlab.com/soundtouch/soundtouch.git")
2683 (file-name (git-file-name name version))
2685 (base32 "0p6jzgfgqw061702dmd2b6r4arz48ac3mmx2qkvvzf8s5jjzykdh"))))
2686 (build-system gnu-build-system)
2688 `(("autoconf" ,autoconf)
2689 ("automake" ,automake)
2690 ("libtool" ,libtool)
2692 (home-page "http://www.surina.net/soundtouch/")
2694 "Audio processing library for changing tempo, pitch and playback rate")
2696 "SoundTouch is an audio processing library for changing the tempo, pitch
2697 and playback rates of audio streams or audio files. It is intended for
2698 application developers writing sound processing tools that require tempo/pitch
2699 control functionality, or just for playing around with the sound effects.")
2700 (license license:lgpl2.1+)))
2708 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2709 name "-" version ".tar.bz2"))
2712 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2713 (build-system gnu-build-system)
2716 ;; The upstream asks to identify the distribution to diagnose SoX
2718 '("--with-distro=Guix System Distribution")))
2720 `(("pkg-config" ,pkg-config)))
2722 `(("alsa-lib" ,alsa-lib)
2726 ("libid3tag" ,libid3tag)
2727 ("libltdl" ,libltdl)
2730 ("libvorbis" ,libvorbis)
2731 ("pulseaudio" ,pulseaudio)))
2732 (home-page "http://sox.sourceforge.net")
2733 (synopsis "Sound processing utility")
2735 "SoX (Sound eXchange) is a command line utility that can convert
2736 various formats of computer audio files to other formats. It can also
2737 apply various effects to these sound files, and, as an added bonus, SoX
2738 can play and record audio files.")
2739 ;; sox.c is distributed under GPL, while the files that make up
2740 ;; libsox are licensed under LGPL.
2741 (license (list license:gpl2+ license:lgpl2.1+))))
2751 (string-append "mirror://sourceforge/soxr/soxr-" version
2754 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
2755 (build-system cmake-build-system)
2756 (arguments '(#:tests? #f)) ;no 'check' target
2757 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
2758 (synopsis "One-dimensional sample-rate conversion library")
2760 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2761 conversion. It may be used, for example, to resample PCM-encoded audio.")
2762 (license license:lgpl2.1+)))
2764 (define-public twolame
2771 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2772 "/twolame-" version ".tar.gz"))
2774 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
2775 (build-system gnu-build-system)
2777 `(("libsndfile" ,libsndfile)))
2780 ("which" ,which))) ;used in tests/test.pl
2781 (home-page "http://www.twolame.org/")
2782 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2784 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2785 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2787 (license license:lgpl2.1+)))
2789 (define-public portaudio
2792 (version "190600.20161030")
2797 "http://www.portaudio.com/archives/pa_stable_v"
2798 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2801 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
2802 (patches (search-patches "portaudio-audacity-compat.patch"))))
2803 (build-system gnu-build-system)
2805 ;; TODO: Add ASIHPI.
2806 `(("alsa-lib" ,alsa-lib)
2808 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
2811 `(("autoconf" ,autoconf)
2812 ("automake" ,automake)
2813 ("libtool" ,libtool)
2814 ("pkg-config" ,pkg-config)))
2816 '(#:tests? #f ;no 'check' target
2817 #:configure-flags '("--with-pic")
2819 (modify-phases %standard-phases
2820 ;; This is needed for linking the static libraries
2821 (add-after 'unpack 'build-only-position-independent-code
2823 (substitute* "configure.in"
2824 (("AC_PROG_LIBTOOL" m)
2825 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
2826 (delete-file "configure")
2828 ;; Some headers are not installed by default, but are needed by
2829 ;; packages like Kaldi.
2830 (add-after 'install 'install-missing-headers
2831 (lambda* (#:key outputs #:allow-other-keys)
2832 (install-file "src/common/pa_ringbuffer.h"
2833 (string-append (assoc-ref outputs "out") "/include"))
2835 (home-page "http://www.portaudio.com/")
2836 (synopsis "Audio I/O library")
2838 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2839 to record and/or play sound using a callback function or a blocking read/write
2841 (license license:expat)))
2843 (define-public qsynth
2850 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2851 "/qsynth-" version ".tar.gz"))
2853 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
2854 (build-system gnu-build-system)
2856 `(#:tests? #f)) ; no "check" phase
2858 `(("qttools" ,qttools)
2859 ("pkg-config" ,pkg-config)))
2861 `(("fluidsynth" ,fluidsynth)
2863 ("qtx11extras" ,qtx11extras)))
2864 (home-page "https://qsynth.sourceforge.io")
2865 (synopsis "Graphical user interface for FluidSynth")
2867 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2868 synthesizer written in C++.")
2869 (license license:gpl2+)))
2871 (define-public rsound
2879 (url "https://github.com/Themaister/RSound.git")
2880 (commit (string-append "v" version))))
2881 (file-name (git-file-name name version))
2883 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
2884 (build-system gnu-build-system)
2886 `(("alsa-lib" ,alsa-lib)
2889 ("libsamplerate" ,libsamplerate)
2891 ("portaudio" ,portaudio)
2892 ("pulseaudio" ,pulseaudio)))
2895 (modify-phases %standard-phases
2897 (lambda* (#:key outputs #:allow-other-keys)
2899 (invoke "./configure"
2900 (string-append "--prefix=" (assoc-ref outputs "out"))))))
2901 ;; No 'check' target.
2903 (home-page "http://themaister.net/rsound.html")
2904 (synopsis "Networked audio system")
2906 "RSound allows you to send audio from an application and transfer it
2907 directly to a different computer on your LAN network. It is an audio daemon
2908 with a much different focus than most other audio daemons.")
2909 (license license:gpl3+)))
2911 (define-public xjackfreak
2918 (url "https://github.com/johnhldavis/xjackfreak.git")
2919 (commit (string-append "v" version))))
2920 (file-name (git-file-name name version))
2923 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
2924 (build-system gnu-build-system)
2927 (list (string-append "docdir=" (assoc-ref %outputs "out")
2928 "/share/doc/xjackfreak"))))
2933 ("libxext" ,libxext)))
2935 `(("pkg-config" ,pkg-config)))
2936 (home-page "https://github.com/johnhldavis/xjackfreak")
2937 (synopsis "JACK audio frequency analyzer and display")
2939 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
2940 Connection Kit. It can display the FFT of any input, modify it and output the
2942 (license license:gpl3+)))
2944 (define-public zita-convolver
2946 (name "zita-convolver")
2951 "http://kokkinizita.linuxaudio.org"
2952 "/linuxaudio/downloads/zita-convolver-"
2953 version ".tar.bz2"))
2955 ;; Don't optimize for a specific processor architecture.
2957 (substitute* "source/Makefile"
2958 (("^CXXFLAGS \\+= -march=native") ""))
2960 (modules '((guix build utils)))
2963 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
2964 (build-system gnu-build-system)
2966 `(#:tests? #f ; no "check" target
2968 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2969 (string-append "SUFFIX="))
2971 (modify-phases %standard-phases
2972 (add-after 'unpack 'patch-makefile-and-enter-directory
2974 (substitute* "source/Makefile"
2975 (("ldconfig") "true")
2976 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2979 (add-after 'install 'install-symlink
2981 (symlink "libzita-convolver.so"
2982 (string-append (assoc-ref %outputs "out")
2983 "/lib/libzita-convolver.so.4"))
2985 ;; no configure script
2986 (delete 'configure))))
2987 (inputs `(("fftwf" ,fftwf)))
2988 (home-page "https://kokkinizita.linuxaudio.org")
2989 (synopsis "Fast, partitioned convolution engine library")
2991 "Zita convolver is a C++ library providing a real-time convolution
2993 (license license:gpl3+)))
2995 (define-public zita-resampler
2997 (name "zita-resampler")
3002 "http://kokkinizita.linuxaudio.org"
3003 "/linuxaudio/downloads/zita-resampler-"
3004 version ".tar.bz2"))
3006 ;; Don't optimize for a specific processor architecture.
3008 (substitute* '("apps/Makefile" "libs/Makefile")
3009 (("^CXXFLAGS \\+= -march=native") ""))
3011 (modules '((guix build utils)))
3014 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
3015 (build-system gnu-build-system)
3017 `(#:tests? #f ; no "check" target
3018 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3020 (modify-phases %standard-phases
3022 'unpack 'patch-makefile-and-enter-directory
3024 (substitute* "libs/Makefile"
3025 (("ldconfig") "true")
3026 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3030 'install 'install-symlink
3032 (symlink "libzita-resampler.so"
3033 (string-append (assoc-ref %outputs "out")
3034 "/lib/libzita-resampler.so.1"))
3036 ;; no configure script
3037 (delete 'configure))))
3038 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
3039 (synopsis "C++ library for resampling audio signals")
3041 "Libzita-resampler is a C++ library for resampling audio signals. It is
3042 designed to be used within a real-time processing context, to be fast, and to
3043 provide high-quality sample rate conversion.")
3044 (license license:gpl3+)))
3046 (define-public zita-alsa-pcmi
3048 (name "zita-alsa-pcmi")
3053 "http://kokkinizita.linuxaudio.org"
3054 "/linuxaudio/downloads/zita-alsa-pcmi-"
3055 version ".tar.bz2"))
3058 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
3059 (build-system gnu-build-system)
3061 `(#:tests? #f ; no "check" target
3062 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3064 (modify-phases %standard-phases
3065 (add-after 'unpack 'patch-makefile-and-enter-directory
3067 (substitute* "libs/Makefile"
3068 (("ldconfig") "true")
3069 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3072 (add-after 'install 'install-symlink
3074 (symlink "libzita-alsa-pcmi.so"
3075 (string-append (assoc-ref %outputs "out")
3076 "/lib/libzita-alsa-pcmi.so.0"))
3078 ;; no configure script
3079 (delete 'configure))))
3081 `(("alsa-lib" ,alsa-lib)
3083 (home-page "https://kokkinizita.linuxaudio.org")
3084 (synopsis "C++ wrapper around the ALSA API")
3086 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3087 access to ALSA PCM devices, taking care of the many functions required to
3088 open, initialise and use a hw: device in mmap mode, and providing floating
3090 (license license:gpl3+)))
3092 (define-public cuetools
3099 (url "https://github.com/svend/cuetools.git")
3101 (file-name (git-file-name name version))
3104 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
3105 (build-system gnu-build-system)
3106 ;; The source checkout is not bootstrapped.
3108 `(("autoconf" ,autoconf)
3109 ("automake" ,automake)
3112 (synopsis "Cue and toc file parsers and utilities")
3113 (description "Cuetools is a set of programs that are useful for manipulating
3114 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3115 files are a way to represent the layout of a data or audio CD in a
3116 machine-readable ASCII format.")
3117 (home-page "https://github.com/svend/cuetools")
3118 (license license:gpl2+)))
3120 (define-public shntool
3126 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
3127 "shntool-" version ".tar.gz"))
3130 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3131 (build-system gnu-build-system)
3132 (synopsis "WAVE audio data processing tool")
3133 (description "shntool is a multi-purpose WAVE data processing and reporting
3134 utility. File formats are abstracted from its core, so it can process any file
3135 that contains WAVE data, compressed or not---provided there exists a format
3136 module to handle that particular file type. It can also generate CUE files, and
3137 use them split WAVE data into multiple files.")
3138 (home-page "http://etree.org/shnutils/shntool/")
3139 ;; 'install-sh' bears the x11 license
3140 (license (list license:gpl2+ license:x11))))
3142 (define-public dcadec
3149 (url "https://github.com/foo86/dcadec.git")
3150 (commit (string-append "v" version))))
3151 (file-name (git-file-name name version))
3154 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
3155 (build-system gnu-build-system)
3157 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3161 ;; Build shared library.
3163 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3164 ;; Set proper runpath.
3165 (string-append "LDFLAGS=-Wl,-rpath="
3166 (assoc-ref %outputs "out")
3169 (modify-phases %standard-phases
3170 ;; No configure script, just a hand-written Makefile.
3171 (delete 'configure))))
3172 (synopsis "DTS Coherent Acoustics decoder")
3173 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3174 with support for HD extensions.")
3175 (home-page "https://github.com/foo86/dcadec")
3176 (license license:lgpl2.1+)))
3178 (define-public bs1770gain
3185 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3186 version "/bs1770gain-" version ".tar.gz"))
3188 (base32 "0nnqixvw3x7i22nsr54n4bgm35z9nh3d9qj5s75cfd3ajjsjndyh"))
3189 (modules '((guix build utils)))
3193 (substitute* "libbg/bgx.c"
3194 (("#define BS.* ") "#define BS ")
3195 (("BS.*NO?.*N.*S.*E.*N.*SE?") "NO")
3196 (("\"( #|N).*\"") "\"\""))
3197 (substitute* (list "config.h"
3200 (("https?://bs1770gain[^/]*/")
3201 "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html"))
3203 (build-system gnu-build-system)
3204 (inputs `(("ffmpeg" ,ffmpeg)
3206 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
3207 (synopsis "Tool to adjust loudness of media files")
3209 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3210 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3211 loudness of audio and video files to the same level.")
3212 (license license:gpl2+)))
3214 (define-public filteraudio
3215 (let ((revision "1")
3216 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3218 (name "filteraudio")
3219 (version (string-append "0.0.0-" revision "."
3220 (string-take commit 7)))
3225 (url "https://github.com/irungentoo/filter_audio.git")
3227 (file-name (string-append name "-" version "-checkout"))
3230 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3231 (build-system gnu-build-system)
3233 '(#:make-flags (list (string-append "PREFIX=" %output)
3235 #:tests? #f ; No tests
3237 (modify-phases %standard-phases
3238 ;; No configure script
3239 (delete 'configure))))
3240 (synopsis "Lightweight audio filtering library")
3241 (description "An easy to use audio filtering library made from webrtc
3242 code, used in @code{libtoxcore}.")
3243 (home-page "https://github.com/irungentoo/filter_audio")
3244 (license license:bsd-3))))
3254 (string-append "http://www.quut.com/" name "/" name
3255 "-" version ".tar.gz"))
3258 "041amvpz8cvxykl3pwqldrzxligmmzcg8ncdnxbg32rlqf3q1xh4"))))
3259 (build-system gnu-build-system)
3261 `(#:test-target "tst"
3263 (modify-phases %standard-phases
3264 (add-before 'install 'pre-install
3266 (let ((out (assoc-ref %outputs "out")))
3267 (substitute* "Makefile"
3268 (("INSTALL_ROOT\t=")
3269 (string-append "INSTALL_ROOT\t=\t" out)))
3270 (mkdir-p (string-append out "/inc"))
3271 (mkdir-p (string-append out "/man"))
3272 (mkdir-p (string-append out "/man/man1"))
3273 (mkdir-p (string-append out "/man/man3"))
3274 (mkdir-p (string-append out "/bin"))
3275 (mkdir-p (string-append out "/lib")))
3277 (add-after 'install 'post-install
3279 (let ((out (assoc-ref %outputs "out")))
3280 (rename-file (string-append out "/inc")
3281 (string-append out "/include"))
3282 (mkdir-p (string-append out "/include/gsm"))
3283 (copy-recursively "inc"
3284 (string-append out "/include/gsm")))
3286 (delete 'configure)))) ; no configure script
3287 (synopsis "GSM 06.10 lossy speech compression library")
3288 (description "This C library provides an encoder and a decoder for the GSM
3289 06.10 RPE-LTP lossy speech compression algorithm.")
3290 (home-page "http://quut.com/gsm/")
3291 (license (license:non-copyleft "file://COPYRIGHT"))))
3293 (define-public python-pyalsaaudio
3295 (name "python-pyalsaaudio")
3299 (uri (pypi-uri "pyalsaaudio" version))
3302 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3303 (build-system python-build-system)
3305 `(#:tests? #f)) ; tests require access to ALSA devices.
3307 `(("alsa-lib" ,alsa-lib)))
3308 (home-page "http://larsimmisch.github.io/pyalsaaudio/")
3309 (synopsis "ALSA wrappers for Python")
3311 "This package contains wrappers for accessing the ALSA API from Python.
3312 It is currently fairly complete for PCM devices, and has some support for
3314 (license license:psfl)))
3316 (define-public python2-pyalsaaudio
3317 (package-with-python2 python-pyalsaaudio))
3319 (define-public bluez-alsa
3324 ;; The tarballs are mere snapshots and don't contain a
3325 ;; bootstrapped build system.
3328 (url "https://github.com/Arkq/bluez-alsa.git")
3329 (commit (string-append "v" version))))
3330 (file-name (string-append name "-" version "-checkout"))
3333 "1qinf41wl2ihx54zmmhanycihwjkn7dn1cicq6pp4rqbiv79b95x"))))
3334 (build-system gnu-build-system)
3336 `(("autoconf" ,autoconf)
3337 ("automake" ,automake)
3338 ("libtool" ,libtool)
3339 ("pkg-config" ,pkg-config)))
3341 `(("alsa-lib" ,alsa-lib)
3345 ("ncurses" ,ncurses)
3348 (home-page "https://github.com/Arkq/bluez-alsa")
3349 (synopsis "Bluetooth ALSA backend")
3350 (description "This project is a rebirth of a direct integration between
3351 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
3352 in favor of 3rd party audio applications. From now on, Bluez acts as a
3353 middleware between an audio application, which implements Bluetooth audio
3354 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
3355 audio profiles in Bluez, so in theory every Bluetooth device (with audio
3356 capabilities) can be connected. In order to access the audio stream, one has
3357 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
3358 on the ALSA software PCM plugin.")
3359 (license license:expat)))
3367 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
3368 "snd-" version ".tar.gz"))
3371 "0s2qv8sznvw6559bi39qj9p072azh9qcb2b86w6w8clz2azjaa76"))))
3372 (build-system glib-or-gtk-build-system)
3374 `(#:tests? #f ; no tests
3375 #:out-of-source? #f ; for the 'install-doc' phase
3377 (let* ((out (assoc-ref %outputs "out"))
3378 (docdir (string-append out "/share/doc/"
3379 ,name "-" ,version)))
3380 (list "--with-alsa" "--with-jack" "--with-gmp"
3381 (string-append "--with-doc-dir=" docdir)))
3383 (modify-phases %standard-phases
3384 (add-after 'install 'install-doc
3385 (lambda* (#:key outputs #:allow-other-keys)
3386 (let* ((out (assoc-ref outputs "out"))
3387 (doc (string-append out "/share/doc/"
3388 ,name "-" ,version)))
3391 (install-file f doc))
3392 (find-files "." "\\.html$"))
3393 (copy-recursively "pix" (string-append doc "/pix"))
3396 `(("pkg-config" ,pkg-config)))
3398 `(("alsa-lib" ,alsa-lib)
3405 ("libsamplerate" ,libsamplerate)
3410 ("timidity++" ,timidity++)
3411 ("vorbis-tools" ,vorbis-tools)
3412 ("wavpack" ,wavpack)))
3413 (synopsis "Sound editor")
3414 (home-page "https://ccrma.stanford.edu/software/snd/")
3416 "Snd is a sound editor modelled loosely after Emacs. It can be
3417 customized and extended using either the s7 Scheme implementation (included in
3418 the Snd sources), Ruby, or Forth.")
3419 (license (license:non-copyleft "file://COPYING"))))
3421 (define-public noise-repellent
3423 (name "noise-repellent")
3428 (url "https://github.com/lucianodato/noise-repellent.git")
3430 (file-name (string-append name "-" version "-checkout"))
3433 "0rd3dlmk3vivjmcr6x2x860y0j1d49c2j95j6ny50v184mwvn11j"))))
3434 (build-system gnu-build-system)
3438 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3439 #:tests? #f ; there are none
3441 (modify-phases %standard-phases
3442 (delete 'configure))))
3447 `(("pkg-config" ,pkg-config)))
3448 (home-page "https://github.com/lucianodato/noise-repellent")
3449 (synopsis "LV2 plugin for broadband noise reduction")
3450 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
3451 the following features:
3454 @item Spectral gating and spectral subtraction suppression rule
3455 @item Adaptive and manual noise thresholds estimation
3456 @item Adjustable noise floor
3457 @item Adjustable offset of thresholds to perform over-subtraction
3458 @item Time smoothing and a masking estimation to reduce artifacts
3459 @item Basic onset detector to avoid transients suppression
3460 @item Whitening of the noise floor to mask artifacts and to recover higher
3462 @item Option to listen to the residual signal
3464 @item Noise profile saved with the session
3467 (license license:lgpl3+)))
3469 (define-public cli-visualizer
3471 (name "cli-visualizer")
3477 (url "https://github.com/dpayne/cli-visualizer.git")
3479 (file-name (git-file-name name version))
3482 "0mirp8bk398di5xyq95iprmdyvplfghxqmrfj7jdnpy554vx7ppc"))))
3483 (build-system gnu-build-system)
3485 `(("which" ,which)))
3488 ("googletest" ,googletest)
3489 ("ncurses" ,ncurses)
3490 ("pulseaudio" ,pulseaudio)))
3492 '(#:test-target "test"
3494 (list (string-append "PREFIX=" %output "/bin/") "ENABLE_PULSE=1")
3496 (modify-phases %standard-phases
3497 (add-after 'unpack 'remove-sudo
3499 (substitute* "install.sh" (("sudo") ""))
3501 (add-before 'check 'set-check-environment
3503 (setenv "CXX" "g++")
3506 (add-before 'install 'make-prefix
3508 (mkdir-p (string-append (assoc-ref %outputs "out") "/bin"))
3510 (add-after 'install 'data
3512 (for-each (lambda (file)
3514 (string-append (assoc-ref %outputs "out")
3516 (find-files "examples"))
3518 (home-page "https://github.com/dpayne/cli-visualizer/")
3519 (synopsis "Command-line audio visualizer")
3520 (description "@code{cli-visualizer} displays fast-Fourier
3521 transforms (FFTs) of the sound being played, as well as other graphical
3523 (license license:expat)))
3532 (url "https://github.com/karlstav/cava.git")
3534 (file-name (git-file-name name version))
3537 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
3538 (build-system gnu-build-system)
3540 `(("autoconf" ,autoconf)
3541 ("automake" ,automake)
3542 ("libtool" ,libtool)))
3545 ("ncurses" ,ncurses)
3546 ("pulseaudio" ,pulseaudio)))
3549 (list (string-append "PREFIX=" %output)
3550 (string-append "FONT_DIR=" %output "/share/consolefonts"))
3552 (let ((lib (string-append %output "/lib")))
3553 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
3555 (modify-phases %standard-phases
3557 (lambda* (#:key outputs #:allow-other-keys)
3558 (setenv "HOME" (getcwd))
3559 (invoke "sh" "autogen.sh")))
3560 (add-before 'build 'make-cava-ldflags
3561 (lambda* (#:key outputs #:allow-other-keys)
3562 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
3564 (add-after 'install 'data
3565 (lambda* (#:key outputs #:allow-other-keys)
3566 (for-each (lambda (file)
3568 (string-append (assoc-ref outputs "out")
3569 "/share/doc/examples")))
3570 (find-files "example_files"))
3572 (home-page "https://karlstav.github.io/cava/")
3573 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
3574 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
3575 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
3576 (license license:expat)))
3578 (define-public fluid-3
3579 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
3586 ;; Only one file is required, but the release bundles the whole
3587 ;; software which is 50MiB as tar and 200MiB unpacked. The website
3588 ;; directly links the soundfont release to the github file download.
3589 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
3590 commit "/share/sound/FluidR3Mono_GM.sf3"))
3591 (file-name (string-append name "-" version ".sf3"))
3594 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
3595 (build-system trivial-build-system)
3597 `(#:modules ((guix build utils))
3600 (use-modules (guix build utils))
3601 (let ((file (assoc-ref %build-inputs "source"))
3602 (out (string-append %output "/share/soundfonts")))
3604 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
3606 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
3607 (synopsis "Pro-quality GM soundfont")
3608 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
3609 (license license:expat))))
3611 (define-public libfdk
3612 (let ((commit "2326faaf8f2cdf2c3a9108ccdaf1d7551aec543e")
3616 ;; The latest upstream revision, with many bug fixes.
3617 (version (git-version "0.1.6" revision commit))
3622 (url "https://github.com/mstorsjo/fdk-aac")
3624 (file-name (git-file-name name version))
3627 "0yy6ndd9d61bwl283vl1r5kva2a4acc0f4r9g0sza156f2abr9ws"))))
3628 (build-system gnu-build-system)
3630 `(("autoconf" ,autoconf)
3631 ("automake" ,automake)
3632 ("libtool" ,libtool)))
3633 (home-page "https://github.com/mstorsjo/fdk-aac")
3634 (synopsis "Fraunhofer FDK AAC library")
3635 (description "FDK is a library for encoding and decoding Advanced Audio
3636 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
3637 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
3638 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
3639 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
3640 library supports sample rates up to 96 kHz and up to eight channels (7.1
3642 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
3643 "https://www.gnu.org/licenses/license-list.html#fdk")))))
3645 (define-public libopenshot-audio
3647 (name "libopenshot-audio")
3652 (url "https://github.com/OpenShot/libopenshot-audio")
3653 (commit (string-append "v" version))))
3654 (file-name (git-file-name name version))
3657 "1fvp6nmf30xzkmcznakh8dv5vn9d7nq051pqcqv638hsfppkmcrl"))))
3658 (build-system cmake-build-system)
3660 `(("alsa-lib" ,alsa-lib)
3661 ;; The following are for JUCE GUI components:
3663 ("freetype" ,freetype)
3664 ("libxrandr" ,libxrandr)
3665 ("libxinerama" ,libxinerama)
3666 ("libxcursor" ,libxcursor)))
3668 `(#:tests? #f ;there are no tests
3670 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
3671 (assoc-ref %build-inputs "freetype")
3672 "/include/freetype2"))))
3673 (home-page "https://openshot.org")
3674 (synopsis "Audio editing and playback for OpenShot")
3675 (description "OpenShot Audio Library (libopenshot-audio) allows
3676 high-quality editing and playback of audio, and is based on the JUCE
3678 (license license:lgpl3+)))
3680 (define-public faudio
3688 (url "https://github.com/FNA-XNA/FAudio.git")
3690 (file-name (string-append name "-" version "-checkout"))
3692 (base32 "0fagik55jmy3qmb27nhg0zxash1ahfkxphx8m8gs0pimqqrdrd9d"))))
3694 '(#:tests? #f ; No tests.
3695 #:configure-flags '("-DFFMPEG=ON")))
3696 (build-system cmake-build-system)
3697 (native-inputs `(("pkg-config" ,pkg-config)))
3698 (inputs `(("ffmpeg" ,ffmpeg)
3700 (home-page "https://github.com/FNA-XNA/FAudio")
3701 (synopsis "XAudio reimplementation")
3702 (description "FAudio is an XAudio reimplementation that focuses solely on
3703 developing fully accurate DirectX Audio runtime libraries.")
3704 (license license:zlib)))
3706 (define-public gnaural
3709 (version "20110606")
3713 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
3717 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
3718 (build-system gnu-build-system)
3720 `(("alsa-lib" ,alsa-lib)
3722 ("libsndfile" ,libsndfile)
3723 ("portaudio" ,portaudio)))
3725 `(("pkg-config" ,pkg-config)))
3726 (home-page "http://gnaural.sourceforge.net/")
3727 (synopsis "Binaural beat synthesizer")
3728 (description "Gnaural is a programmable auditory binaural beat synthesizer
3729 intended to be used for brainwave entrainment. Gnaural supports creation of
3730 binaural beat tracks of different frequencies and exporting of tracks into
3731 different audio formats. Gnaural can also be linked over the internet with
3732 other Gnaural instances, allowing synchronous sessions between many users.")
3733 (license license:gpl2+)))
3735 (define-public darkice
3741 (uri (string-append "mirror://sourceforge/darkice/darkice/"
3742 version "/darkice-" version ".tar.gz"))
3744 (base32 "1rlxds7ssq7nk2in4s46xws7xy9ylxsqgcz85hxjgh17lsm0y39c"))
3746 (search-patches "darkice-workaround-fpermissive-error.patch"))))
3747 (build-system gnu-build-system)
3748 (native-inputs `(("pkg-config" ,pkg-config)))
3749 (inputs `(("lame" ,lame)
3750 ("libvorbis" ,libvorbis)
3752 ("twolame" ,twolame)
3753 ("alsa-lib" ,alsa-lib)
3754 ("pulseaudio" ,pulseaudio)
3756 ("libsamplerate" ,libsamplerate)))
3759 (list (string-append "--with-lame-prefix="
3760 (assoc-ref %build-inputs "lame")))))
3761 (home-page "http://www.darkice.org/")
3762 (synopsis "Live audio streamer")
3763 (description "DarkIce is a live audio streamer. It takes audio input from
3764 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
3765 stream to one or more IceCast and/or ShoutCast servers.")
3766 (license license:gpl3+)))