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>
26 ;;; This file is part of GNU Guix.
28 ;;; GNU Guix is free software; you can redistribute it and/or modify it
29 ;;; under the terms of the GNU General Public License as published by
30 ;;; the Free Software Foundation; either version 3 of the License, or (at
31 ;;; your option) any later version.
33 ;;; GNU Guix is distributed in the hope that it will be useful, but
34 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
35 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 ;;; GNU General Public License for more details.
38 ;;; You should have received a copy of the GNU General Public License
39 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
41 (define-module (gnu packages audio)
42 #:use-module (guix packages)
43 #:use-module (guix download)
44 #:use-module (guix git-download)
45 #:use-module (guix utils)
46 #:use-module ((guix licenses) #:prefix license:)
47 #:use-module (guix build-system gnu)
48 #:use-module (guix build-system waf)
49 #:use-module (guix build-system trivial)
50 #:use-module (guix build-system cmake)
51 #:use-module (guix build-system python)
52 #:use-module (guix build-system glib-or-gtk)
53 #:use-module (gnu packages)
54 #:use-module (gnu packages algebra)
55 #:use-module (gnu packages autotools)
56 #:use-module (gnu packages avahi)
57 #:use-module (gnu packages boost)
58 #:use-module (gnu packages backup)
59 #:use-module (gnu packages base)
60 #:use-module (gnu packages bison)
61 #:use-module (gnu packages check)
62 #:use-module (gnu packages compression)
63 #:use-module (gnu packages curl)
64 #:use-module (gnu packages dbm)
65 #:use-module (gnu packages emacs)
66 #:use-module (gnu packages file)
67 #:use-module (gnu packages flex)
68 #:use-module (gnu packages fltk)
69 #:use-module (gnu packages fontutils)
70 #:use-module (gnu packages gettext)
71 #:use-module (gnu packages glib)
72 #:use-module (gnu packages gtk)
73 #:use-module (gnu packages gnome)
74 #:use-module (gnu packages gnunet) ; libmicrohttpd
75 #:use-module (gnu packages gperf)
76 #:use-module (gnu packages icu4c)
77 #:use-module (gnu packages image)
78 #:use-module (gnu packages ncurses)
79 #:use-module (gnu packages qt)
80 #:use-module (gnu packages libbsd)
81 #:use-module (gnu packages linux)
82 #:use-module (gnu packages libusb)
83 #:use-module (gnu packages llvm)
84 #:use-module (gnu packages mp3) ;taglib
85 #:use-module (gnu packages perl)
86 #:use-module (gnu packages pkg-config)
87 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
88 #:use-module (gnu packages python)
89 #:use-module (gnu packages python-xyz)
90 #:use-module (gnu packages rdf)
91 #:use-module (gnu packages readline)
92 #:use-module (gnu packages sdl)
93 #:use-module (gnu packages serialization)
94 #:use-module (gnu packages telephony)
95 #:use-module (gnu packages tls)
96 #:use-module (gnu packages video)
97 #:use-module (gnu packages vim) ;xxd
98 #:use-module (gnu packages webkit)
99 #:use-module (gnu packages wxwidgets)
100 #:use-module (gnu packages xiph)
101 #:use-module (gnu packages xml)
102 #:use-module (gnu packages xorg)
103 #:use-module (gnu packages maths)
104 #:use-module (gnu packages multiprecision)
105 #:use-module (gnu packages music)
106 #:use-module (srfi srfi-1)
107 #:use-module (srfi srfi-26))
109 (define-public alsa-modular-synth
111 (name "alsa-modular-synth")
115 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
116 "/" version "/ams-" version ".tar.bz2"))
119 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
120 (build-system gnu-build-system)
124 "CXXFLAGS=-std=gnu++11")
126 (modify-phases %standard-phases
127 ;; Insert an extra space between linker flags.
128 (add-before 'configure 'add-missing-space
130 (substitute* "configure"
131 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
132 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
135 `(("alsa-lib" ,alsa-lib)
136 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
137 ;; license incompatibility.
138 ("clalsadrv" ,clalsadrv)
144 ("qttools" ,qttools)))
146 `(("pkg-config" ,pkg-config)))
147 (home-page "http://alsamodular.sourceforge.net/")
148 (synopsis "Realtime modular synthesizer and effect processor")
150 "AlsaModularSynth is a digital implementation of a classical analog
151 modular synthesizer system. It uses virtual control voltages to control the
152 parameters of the modules. The control voltages which control the frequency
153 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
154 Filter) modules follow the convention of 1V / Octave.")
155 (license license:gpl2)))
164 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
167 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
168 (build-system waf-build-system)
170 `(#:tests? #f ; no check target
173 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
177 "--enable-samplerate"
182 ("libsndfile" ,libsndfile)
183 ("libsamplerate" ,libsamplerate)
185 ("ffmpeg" ,ffmpeg))) ; for libavcodec
187 `(("pkg-config" ,pkg-config)))
188 (home-page "https://aubio.org/")
189 (synopsis "Library for audio labelling")
191 "aubio is a tool designed for the extraction of annotations from audio
192 signals. Its features include segmenting a sound file before each of its
193 attacks, performing pitch detection, tapping the beat and producing MIDI
194 streams from live audio.")
195 (license license:gpl3+)))
197 (define (ardour-rpath-phase major-version)
198 `(lambda* (#:key outputs #:allow-other-keys)
199 (let ((libdir (string-append (assoc-ref outputs "out")
200 "/lib/ardour" ,major-version)))
201 (substitute* "wscript"
202 (("linker_flags = \\[\\]")
203 (string-append "linker_flags = [\""
206 libdir "/backends" ":"
207 libdir "/engines" ":"
208 libdir "/panners" ":"
209 libdir "/surfaces" ":"
210 libdir "/vamp" "\"]"))))
213 (define-public ardour
220 (url "https://git.ardour.org/ardour/ardour.git")
223 ;; Ardour expects this file to exist at build time. The revision
225 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
226 `(call-with-output-file
227 "libs/ardour/revision.cc"
229 (format port ,(string-append "#include \"ardour/revision.h\"
230 namespace ARDOUR { const char* revision = \"" version "\" ; }"))
234 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
235 (file-name (string-append name "-" version))))
236 (build-system waf-build-system)
238 `(#:configure-flags '("--cxx11" ; required by gtkmm
239 "--no-phone-home" ; don't contact ardour.org
240 "--freedesktop" ; build .desktop file
241 "--test") ; build unit tests
243 (modify-phases %standard-phases
244 (add-after 'unpack 'set-rpath-in-LDFLAGS
245 ,(ardour-rpath-phase (version-major version)))
246 (add-after 'install 'install-freedesktop-files
247 (lambda* (#:key outputs #:allow-other-keys)
248 (let* ((out (assoc-ref outputs "out"))
249 (share (string-append out "/share"))
250 (ver ,(version-major version)))
253 (let ((dir (string-append share "/icons/hicolor/"
254 size "x" size "/apps")))
257 (string-append "gtk2_ardour/resources/Ardour-icon_"
259 (string-append dir "/ardour" ver ".png"))))
260 '("16" "22" "32" "48" "256"))
261 (install-file (string-append "build/gtk2_ardour/ardour"
263 (string-append share "/applications/"))
264 (install-file (string-append "build/gtk2_ardour/ardour"
266 (string-append share "/appdata/")))
271 `(("alsa-lib" ,alsa-lib)
284 ("libarchive" ,libarchive)
285 ("libart-lgpl" ,libart-lgpl)
286 ("libgnomecanvasmm" ,libgnomecanvasmm)
289 ("libsamplerate" ,libsamplerate)
290 ("libsndfile" ,libsndfile)
292 ("libvorbis" ,libvorbis)
298 ("python-rdflib" ,python-rdflib)
299 ("readline" ,readline)
301 ("rubberband" ,rubberband)
309 `(("cppunit" ,cppunit)
310 ("gettext" ,gettext-minimal)
313 ("pkg-config" ,pkg-config)))
314 (home-page "http://ardour.org")
315 (synopsis "Digital audio workstation")
317 "Ardour is a multi-channel digital audio workstation, allowing users to
318 record, edit, mix and master audio and MIDI projects. It is targeted at audio
319 engineers, musicians, soundtrack editors and composers.")
320 (license license:gpl2+)))
322 (define-public audacity
330 (url "https://github.com/audacity/audacity.git")
331 (commit (string-append "Audacity-" version))))
332 (file-name (git-file-name name version))
335 "08w96124vv8k4myd4vifq73ningq6404x889wvg2sk016kc4dfv1"))
336 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
337 (modules '((guix build utils)))
339 ;; Remove bundled libraries.
343 (delete-file-recursively (string-append "lib-src/" dir)))
344 '("expat" "ffmpeg" "libflac" "libid3tag" "libmad" "libogg"
345 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
346 "portaudio-v19" "portmidi" "soundtouch" "twolame"
347 ;; FIXME: these libraries have not been packaged yet:
355 ;; FIXME: we have this library, but it differs in that the Slide
356 ;; class does not have a member "getInverseStretchedTime".
360 (build-system glib-or-gtk-build-system)
362 `(("wxwidgets" ,wxwidgets)
364 ("alsa-lib" ,alsa-lib)
370 ("libid3tag" ,libid3tag)
372 ;;("libsbsms" ,libsbsms) ;bundled version is modified
373 ("libsndfile" ,libsndfile)
374 ("soundtouch" ,soundtouch)
375 ("soxr" ,soxr) ;replaces libsamplerate
378 ("libvorbis" ,libvorbis)
380 ("lilv" ,lilv) ;for lv2
381 ("suil" ,suil) ;for lv2
382 ("portaudio" ,portaudio)
383 ("portmidi" ,portmidi)))
385 `(("autoconf" ,autoconf)
386 ("automake" ,automake)
387 ("gettext" ,gettext-minimal) ;for msgfmt
389 ("pkg-config" ,pkg-config)
394 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
395 (libmad (assoc-ref %build-inputs "libmad"))
396 (portmidi (assoc-ref %build-inputs "portmidi")))
398 ;; Loading FFmpeg dynamically is problematic.
399 "--disable-dynamic-loading"
400 ;; SSE instructions are available on Intel systems only.
401 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
405 '("--enable-sse=no"))
406 ;; portmidi, libid3tag and libmad provide no .pc files, so
407 ;; pkg-config fails to find them. Force their inclusion.
408 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
409 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
410 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
411 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
412 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
413 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
414 "EXPAT_USE_SYSTEM=yes"
415 "FFMPEG_USE_SYSTEM=yes"
416 "LAME_USE_SYSTEM=yes"
417 "LIBFLAC_USE_SYSTEM=yes"
418 "LIBID3TAG_USE_SYSTEM=yes"
419 "LIBMAD_USE_SYSTEM=yes"
420 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
421 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
422 "LIBSNDFILE_USE_SYSTEM=yes"
423 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
424 "LIBSOXR_USE_SYSTEM=yes"
425 "LIBTWOLAME_USE_SYSTEM=yes"
426 "LIBVAMP_USE_SYSTEM=yes"
427 "LIBVORBIS_USE_SYSTEM=yes"
429 "PORTAUDIO_USE_SYSTEM=yes"))
431 (modify-phases %standard-phases
432 (add-after 'unpack 'fix-sbsms-check
434 ;; This check is wrong: there is no 2.2.0 release; not even the
435 ;; bundled sources match this release string.
436 (substitute* '("m4/audacity_checklib_libsbsms.m4"
438 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
440 (add-after 'unpack 'use-upstream-headers
441 (lambda* (#:key inputs #:allow-other-keys)
442 (substitute* '("src/NoteTrack.cpp"
445 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
446 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
447 (substitute* "src/prefs/MidiIOPrefs.cpp"
448 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
450 ;; The test suite is not "well exercised" according to the developers,
451 ;; and fails with various errors. See
452 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
454 (home-page "https://www.audacityteam.org/")
455 (synopsis "Software for recording and editing sounds")
457 "Audacity is a multi-track audio editor designed for recording, playing
458 and editing digital audio. It features digital effects and spectrum analysis
460 (license license:gpl2+)))
462 (define-public autotalent
468 (uri (string-append "http://tombaran.info/autotalent-"
472 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
473 (build-system gnu-build-system)
475 `(#:tests? #f ; no check target
477 (modify-phases %standard-phases
478 ;; no configure script
480 (add-before 'install 'prepare-target-directory
481 (lambda* (#:key outputs #:allow-other-keys)
482 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
484 (add-after 'unpack 'override-target-directory
485 (lambda* (#:key outputs #:allow-other-keys)
486 (substitute* "Makefile"
487 (("/usr/lib64/ladspa")
488 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
491 `(("ladspa" ,ladspa)))
492 (home-page "http://tombaran.info/autotalent.html")
493 (synopsis "Pitch-correction LADSPA audio plugin")
495 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
496 controls are allowable notes, strength of correction, LFO for vibrato and
498 ;; All code except the FFT routine is licensed under GPLv2+.
499 ;; The FFT routine is under BSD-3.
500 (license license:gpl2+)))
508 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
513 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
514 (patches (search-patches "azr3.patch"))))
515 (build-system gnu-build-system)
517 `(#:tests? #f ; no check target
520 "CXXFLAGS=-std=gnu++11"
521 "CFLAGS=-std=gnu++11"
522 (string-append "prefix=" %output)
523 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
525 (modify-phases %standard-phases
526 (add-before 'install 'fix-timestamp
528 (let ((early-1980 315619200)) ; 1980-01-02 UTC
529 (utime "azr3.1" early-1980 early-1980))
537 `(("pkg-config" ,pkg-config)))
538 (home-page "http://ll-plugins.nongnu.org/azr3/")
539 (synopsis "Tonewheel organ synthesizer")
541 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
542 with drawbars, distortion and rotating speakers. The organ has three
543 sections, two polyphonic sections with nine drawbars each and one monophonic
544 bass section with five drawbars. A standalone JACK application and LV2
545 plugins are provided.")
546 (license license:gpl2)))
554 (uri (string-append "https://calf-studio-gear.org/files/calf-"
558 "0bn4j1klw2yfxz8clbmasaydifq25rdfsv0n6iisxrzcj1lx7sgh"))))
559 (build-system gnu-build-system)
561 `(("fluidsynth" ,fluidsynth)
572 `(("pkg-config" ,pkg-config)))
574 (list (search-path-specification
575 (variable "LV2_PATH")
576 (files '("lib/lv2")))))
577 (home-page "http://calf.sourceforge.net/")
578 (synopsis "Audio plug-in pack for LV2 and JACK environments")
580 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
581 The suite contains lots of effects (delay, modulation, signal processing,
582 filters, equalizers, dynamics, distortion and mastering effects),
583 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
584 tools (analyzer, mono/stereo tools, crossovers).")
585 ;; calfjackhost is released under GPLv2+
586 ;; The plugins are released under LGPLv2.1+
587 (license (list license:lgpl2.1+ license:gpl2+))))
589 (define-public caps-plugins-lv2
591 (name "caps-plugins-lv2")
592 (version "0.9.24") ; version that has been ported.
595 ;; The Github project hasn't tagged a release.
598 ;; Actually https://github.com/moddevices/caps-lv2.git, but it's
599 ;; missing fixes for newer glibc, so using the origin of a pull
600 ;; request regarding this issue:
601 (url "https://github.com/jujudusud/caps-lv2.git")
602 (commit "9c9478b7fbd8f9714f552ebe2a6866398b0babfb")))
603 (file-name (git-file-name name version))
606 "1idfnazin3cca41zw1a8vwgnxjnkrap7bxxjamjqvgpmvydgcam1"))))
607 (build-system gnu-build-system)
609 `(#:tests? #f ; no check target
611 (modify-phases %standard-phases
612 ;; no configure script
614 (add-after 'unpack 'override-target-directory
615 (lambda* (#:key outputs #:allow-other-keys)
616 (substitute* (find-files "plugins" "Makefile")
617 (("/usr/local")(assoc-ref outputs "out")))
621 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
622 (home-page "https://github.com/moddevices/caps-lv2")
623 (synopsis "LV2 port of the CAPS audio plugin colection")
625 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
626 guitar amplification and a small range of classic effects, signal processors and
627 generators of mostly elementary and occasionally exotic nature.")
628 (license license:gpl3+)))
630 (define-public infamous-plugins
632 (name "infamous-plugins")
637 (url "https://github.com/ssj71/infamousPlugins.git")
638 (commit (string-append "v" version))))
639 (file-name (git-file-name name version))
642 "0hmqk80w4qxq09iag7b7srf2g0wigkyhzq0ywxvhz2iz0hq9k0dh"))))
643 (build-system cmake-build-system)
645 `(#:tests? #f ; there are no tests
647 (modify-phases %standard-phases
648 (add-after 'unpack 'remove-compiler-flags
650 (substitute* (find-files "." "CMakeLists.txt")
651 (("-msse2 -mfpmath=sse") ""))
658 ("zita-resampler" ,zita-resampler)))
660 `(("pkg-config" ,pkg-config)))
661 (home-page "https://ssj71.github.io/infamousPlugins")
662 (synopsis "LV2 plugins for live use")
664 "The infamous plugins are a collection of LV2 audio plugins for live
665 performances. The plugins include a cellular automaton synthesizer, an
666 envelope follower, distortion effects, tape effects and more.")
667 (license license:gpl2+)))
669 (define-public swh-plugins-lv2
671 (name "swh-plugins-lv2")
676 (url "https://github.com/swh/lv2.git")
677 (commit (string-append "v" version))))
678 (file-name (git-file-name name version))
681 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
682 (build-system gnu-build-system)
684 `(#:tests? #f ; no check target
685 #:make-flags (list "CC=gcc"
686 (string-append "PREFIX="
687 (assoc-ref %outputs "out")))
689 (modify-phases %standard-phases
690 ;; no configure script
692 (add-after 'unpack 'patch-makefile-and-enter-directory
693 ;; The default install target doesn't install, but the
694 ;; "install-system" target does.
696 (substitute* "Makefile"
697 (("install:") "install: install-system"))
703 `(("libxslt" ,libxslt)
704 ("pkg-config" ,pkg-config)))
705 (home-page "http://plugin.org.uk")
706 (synopsis "SWH plugins in LV2 format")
708 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
709 classes include: dynamics (compressor, limiter), time (delay, chorus,
710 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
711 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
712 (license license:gpl3+)))
714 (define-public csound
721 (url "https://github.com/csound/csound.git")
723 (file-name (git-file-name name version))
726 "01krxcf0alw9k7p5sv0s707600an4sl7lhw3bymbwgqrj0v2p9z2"))))
727 (build-system cmake-build-system)
729 `(("alsa-lib" ,alsa-lib)
731 ("pulseaudio" ,pulseaudio)
732 ("libsndfile" ,libsndfile)
736 ("gettext" ,gettext-minimal)))
741 (home-page "https://csound.com/")
742 (synopsis "Sound and music computing system")
744 "Csound is a user-programmable and user-extensible sound processing
745 language and software synthesizer.")
746 (license license:lgpl2.1+)))
748 (define-public clalsadrv
755 "http://kokkinizita.linuxaudio.org"
756 "/linuxaudio/downloads/clalsadrv-"
760 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
761 (build-system gnu-build-system)
763 `(#:tests? #f ; no "check" target
764 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
766 (modify-phases %standard-phases
767 (add-after 'unpack 'patch-makefile-and-enter-directory
769 (substitute* "libs/Makefile"
770 (("/sbin/ldconfig") "true")
771 (("^LIBDIR =.*") "LIBDIR = lib\n"))
774 (add-after 'install 'install-symlink
776 (symlink "libclalsadrv.so"
777 (string-append (assoc-ref %outputs "out")
778 "/lib/libclalsadrv.so.2"))
780 ;; no configure script
781 (delete 'configure))))
783 `(("alsa-lib" ,alsa-lib)
785 (home-page "https://kokkinizita.linuxaudio.org")
786 (synopsis "C++ wrapper around the ALSA API")
788 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
790 (license license:gpl2+)))
792 (define-public amb-plugins
799 "http://kokkinizita.linuxaudio.org"
800 "/linuxaudio/downloads/AMB-plugins-"
804 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
805 (build-system gnu-build-system)
807 `(#:tests? #f ; no "check" target
809 (modify-phases %standard-phases
810 ;; no configure script
812 (add-before 'install 'prepare-target-directory
813 (lambda* (#:key outputs #:allow-other-keys)
814 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
816 (add-after 'unpack 'override-target-directory-and-tool-paths
817 (lambda* (#:key outputs #:allow-other-keys)
818 (substitute* "Makefile"
820 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
821 (("/usr/bin/install") (which "install"))
824 (home-page "https://kokkinizita.linuxaudio.org")
825 (synopsis "LADSPA ambisonics plugins")
827 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
828 used within Ardour. Features include: mono and stereo to B-format panning,
829 horizontal rotator, square, hexagon and cube decoders.")
830 (license license:gpl2+)))
832 (define-public mcp-plugins
839 "http://kokkinizita.linuxaudio.org"
840 "/linuxaudio/downloads/MCP-plugins-"
844 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
845 (build-system gnu-build-system)
847 `(#:tests? #f ; no "check" target
849 (modify-phases %standard-phases
850 ;; no configure script
852 (add-before 'install 'prepare-target-directory
853 (lambda* (#:key outputs #:allow-other-keys)
854 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
856 (add-after 'unpack 'override-target-directory
857 (lambda* (#:key outputs #:allow-other-keys)
858 (substitute* "Makefile"
859 (("/usr") (assoc-ref outputs "out")))
861 (home-page "https://kokkinizita.linuxaudio.org")
862 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
864 "This package provides various LADSPA plugins. @code{cs_chorus} and
865 @code{cs_phaser} provide chorus and phaser effects, respectively;
866 @code{mvclpf24} provides four implementations of the low-pass filter used in
867 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
868 high-pass filter by Robert Moog. The filters attempt to accurately emulate
869 the non-linear circuit elements of their original analog counterparts.")
870 (license license:gpl2+)))
872 (define-public rev-plugins
879 "http://kokkinizita.linuxaudio.org"
880 "/linuxaudio/downloads/REV-plugins-"
884 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
885 (build-system gnu-build-system)
887 `(#:tests? #f ; no "check" target
889 (modify-phases %standard-phases
890 ;; no configure script
892 (add-before 'install 'prepare-target-directory
893 (lambda* (#:key outputs #:allow-other-keys)
894 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
896 (add-after 'unpack 'override-target-directory
897 (lambda* (#:key outputs #:allow-other-keys)
898 (substitute* "Makefile"
899 (("/usr") (assoc-ref outputs "out")))
901 (home-page "https://kokkinizita.linuxaudio.org")
902 (synopsis "LADSPA reverb plugin")
904 "This package provides a stereo reverb LADSPA plugin based on the
905 well-known greverb.")
906 (license license:gpl2+)))
908 (define-public fil-plugins
915 "http://kokkinizita.linuxaudio.org"
916 "/linuxaudio/downloads/FIL-plugins-"
920 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
921 (build-system gnu-build-system)
923 `(#:tests? #f ; no "check" target
925 (modify-phases %standard-phases
926 ;; no configure script
928 (add-before 'install 'prepare-target-directory
929 (lambda* (#:key outputs #:allow-other-keys)
930 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
932 (add-after 'unpack 'override-target-directory
933 (lambda* (#:key outputs #:allow-other-keys)
934 (substitute* "Makefile"
935 (("/usr") (assoc-ref outputs "out")))
937 (home-page "https://kokkinizita.linuxaudio.org")
938 (synopsis "LADSPA four-band parametric equalizer plugin")
940 "This package provides a LADSPA plugin for a four-band parametric
941 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
942 gain controls. There is also a global bypass switch and gain control.
944 The 2nd order resonant filters are implemented using a Mitra-Regalia style
945 lattice filter, which is stable even while parameters are being changed.
947 All switches and controls are internally smoothed, so they can be used @code{live}
948 without any clicks or zipper noises. This makes this plugin suitable for use
949 in systems that allow automation of plugin control ports, such as Ardour, or
951 (license license:gpl2+)))
953 (define-public ste-plugins
960 "http://kokkinizita.linuxaudio.org"
961 "/linuxaudio/downloads/STE-plugins-"
965 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
966 (build-system gnu-build-system)
968 `(#:tests? #f ; no "check" target
970 (modify-phases %standard-phases
971 ;; no configure script
973 (add-before 'install 'prepare-target-directory
974 (lambda* (#:key outputs #:allow-other-keys)
975 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
977 (add-after 'unpack 'override-target-directory
978 (lambda* (#:key outputs #:allow-other-keys)
979 (substitute* "Makefile"
980 (("/usr") (assoc-ref outputs "out")))
982 (home-page "https://kokkinizita.linuxaudio.org")
983 (synopsis "LADSPA stereo width plugin")
985 "This package provides a LADSPA plugin to manipulate the stereo width of
987 (license license:gpl2+)))
989 (define-public vco-plugins
996 "http://kokkinizita.linuxaudio.org"
997 "/linuxaudio/downloads/VCO-plugins-"
1001 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1002 (build-system gnu-build-system)
1004 `(#:tests? #f ; no "check" target
1006 (modify-phases %standard-phases
1007 ;; no configure script
1009 (add-before 'install 'prepare-target-directory
1010 (lambda* (#:key outputs #:allow-other-keys)
1011 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1013 (add-after 'unpack 'override-target-directory
1014 (lambda* (#:key outputs #:allow-other-keys)
1015 (substitute* "Makefile"
1016 (("/usr") (assoc-ref outputs "out"))
1017 (("/bin/cp") (which "cp")))
1019 (home-page "https://kokkinizita.linuxaudio.org")
1020 (synopsis "LADSPA plugin for synthesizer oscillators")
1022 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1025 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1026 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1027 @item Rec-VCO, a square / rectange oscillator
1030 All oscillators are low-pass filtered to provide waveforms similar to the
1031 output of analog synthesizers such as the Moog Voyager.")
1032 (license license:gpl2+)))
1034 (define-public wah-plugins
1036 (name "wah-plugins")
1041 "http://kokkinizita.linuxaudio.org"
1042 "/linuxaudio/downloads/WAH-plugins-"
1043 version ".tar.bz2"))
1046 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1047 (build-system gnu-build-system)
1049 `(#:tests? #f ; no "check" target
1051 (modify-phases %standard-phases
1052 ;; no configure script
1054 (add-before 'install 'prepare-target-directory
1055 (lambda* (#:key outputs #:allow-other-keys)
1056 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1058 (add-after 'unpack 'override-target-directory
1059 (lambda* (#:key outputs #:allow-other-keys)
1060 (substitute* "Makefile"
1061 (("/usr") (assoc-ref outputs "out")))
1063 (home-page "https://kokkinizita.linuxaudio.org")
1064 (synopsis "LADSPA Autowah effect plugin")
1066 "This package provides a LADSPA plugin for a Wah effect with envelope
1068 (license license:gpl2+)))
1070 (define-public g2reverb
1077 "http://kokkinizita.linuxaudio.org"
1078 "/linuxaudio/downloads/g2reverb-"
1079 version ".tar.bz2"))
1082 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1083 (build-system gnu-build-system)
1085 `(#:tests? #f ; no "check" target
1087 (modify-phases %standard-phases
1088 ;; no configure script
1090 (add-before 'install 'prepare-target-directory
1091 (lambda* (#:key outputs #:allow-other-keys)
1092 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1094 (add-after 'unpack 'override-target-directory
1095 (lambda* (#:key outputs #:allow-other-keys)
1096 (substitute* "Makefile"
1097 (("/usr") (assoc-ref outputs "out")))
1099 (home-page "https://kokkinizita.linuxaudio.org")
1100 (synopsis "LADSPA stereo reverb plugin")
1102 "This package provides a LADSPA plugin for a stereo reverb effect.")
1103 (license license:gpl2+)))
1105 (define-public fluidsynth
1112 (url "https://github.com/FluidSynth/fluidsynth.git")
1113 (commit (string-append "v" version))))
1114 (file-name (string-append name "-" version "-checkout"))
1117 "0rv0apxbj0cgm8f8sqf5xr6kdi4q58ph92ip6cg716ha0ca5lr8y"))))
1118 (build-system cmake-build-system)
1120 '(#:tests? #f ; no check target
1122 (modify-phases %standard-phases
1123 (add-after 'unpack 'fix-libdir
1125 ;; Install libraries to /lib, not /lib64.
1126 (substitute* "CMakeLists.txt"
1127 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1131 `(("libsndfile" ,libsndfile)
1132 ("alsa-lib" ,alsa-lib)
1136 ("readline" ,readline)
1139 `(("pkg-config" ,pkg-config)))
1140 (home-page "http://www.fluidsynth.org/")
1141 (synopsis "SoundFont synthesizer")
1143 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1144 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1145 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1146 also play midifiles using a Soundfont.")
1147 (license license:lgpl2.1+)))
1149 ;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1151 (define-public fluidsynth-1
1153 (inherit fluidsynth)
1156 (inherit (package-source fluidsynth))
1158 (url "https://github.com/FluidSynth/fluidsynth")
1159 (commit (string-append "v" version))))
1160 (file-name (git-file-name "fluidsynth" version))
1163 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1165 (define-public faad2
1171 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1172 version "/faad2-" version ".zip"))
1175 "16f3l16c00sg0wkrkm3vzv0gy3g97x309vw788igs0cap2x1ak3z"))))
1176 (build-system gnu-build-system)
1178 `(("autoconf" ,autoconf)
1179 ("automake" ,automake)
1180 ("libtool" ,libtool)
1184 (modify-phases %standard-phases
1187 (substitute* "bootstrap" (("\r\n") "\n"))
1188 (invoke "sh" "bootstrap"))))))
1189 (home-page "http://www.audiocoding.com/faad2.html")
1190 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1192 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
1194 (license license:gpl2)))
1196 (define-public faust
1203 (url "https://github.com/grame-cncm/faust.git")
1204 (commit (string-append "v"
1205 (string-map (lambda (c)
1206 (if (char=? c #\.) #\- c))
1208 (file-name (string-append "faust-" version "-checkout"))
1211 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1212 (build-system gnu-build-system)
1214 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1217 (modify-phases %standard-phases
1218 ;; no "configure" script
1220 ;; Files appear under $out/share/faust that are read-only. The
1221 ;; install phase tries to overwrite them and fails, so we change
1222 ;; the permissions first.
1223 (add-before 'install 'fix-permissions
1225 (for-each (lambda (file)
1227 (find-files "architecture/max-msp" ".*"))
1230 `(("unzip" ,unzip)))
1231 (home-page "http://faust.grame.fr/")
1232 (synopsis "Signal processing language")
1234 "Faust is a programming language for realtime audio signal processing.")
1235 (license license:gpl2+)))
1237 (define-public faust-2
1243 (uri (string-append "https://github.com/grame-cncm/faust/"
1244 "releases/download/" version
1245 "/faust-" version ".tar.gz"))
1248 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1249 (build-system gnu-build-system)
1251 (substitute-keyword-arguments (package-arguments faust)
1252 ((#:make-flags flags)
1253 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1256 `(("llvm" ,llvm-3.8)
1259 ("ctags" ,emacs-minimal) ; for ctags
1260 ("pkg-config" ,pkg-config)))
1262 `(("libsndfile" ,libsndfile)
1263 ("libmicrohttpd" ,libmicrohttpd)
1264 ("ncurses" ,ncurses)
1265 ("openssl" ,openssl)
1268 (define-public freepats
1271 (version "20060219")
1274 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1275 version ".tar.bz2"))
1278 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1279 (build-system trivial-build-system)
1281 `(#:modules ((guix build utils))
1283 (use-modules (guix build utils))
1284 (let ((out (string-append %output "/share/freepats")))
1285 (setenv "PATH" (string-append
1286 (assoc-ref %build-inputs "bzip2") "/bin:"
1287 (assoc-ref %build-inputs "tar") "/bin"))
1288 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
1290 ;; Use absolute pattern references
1291 (substitute* "freepats.cfg"
1292 (("Tone_000") (string-append out "/Tone_000"))
1293 (("Drum_000") (string-append out "/Drum_000")))
1295 (copy-recursively "." out)
1300 (home-page "http://freepats.zenvoid.org")
1301 (synopsis "GUS compatible patches for MIDI players")
1303 "FreePats is a project to create a free and open set of GUS compatible
1304 patches that can be used with softsynths such as Timidity and WildMidi.")
1305 ;; GPLv2+ with exception for compositions using these patches.
1306 (license license:gpl2+)))
1308 (define-public guitarix
1315 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1319 "0bw7xnrx062nwb1bfj9x660h7069ncmz77szcs8icpqxrvhs7z80"))))
1320 (build-system waf-build-system)
1322 `(#:tests? #f ; no "check" target
1326 ;; Add the output lib directory to the RUNPATH.
1327 (string-append "--ldflags=-Wl,-rpath=" %output "/lib")
1328 "--cxxflags=-std=c++11")
1330 (modify-phases %standard-phases
1331 (add-after 'unpack 'fix-boost-includes
1333 (substitute* "src/headers/gx_internal_plugins.h"
1334 (("namespace gx_jack" m)
1335 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1336 (substitute* '("src/headers/gx_system.h"
1337 "src/headers/gx_parameter.h"
1338 "src/headers/gx_json.h")
1339 (("namespace gx_system" m)
1340 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1343 `(("libsndfile" ,libsndfile)
1356 ("zita-resampler" ,zita-resampler)
1357 ("zita-convolver" ,zita-convolver)))
1361 ("intltool" ,intltool)
1362 ("gettext" ,gettext-minimal)
1363 ("pkg-config" ,pkg-config)))
1364 (native-search-paths
1365 (list (search-path-specification
1366 (variable "LV2_PATH")
1367 (files '("lib/lv2")))))
1368 (home-page "http://guitarix.org/")
1369 (synopsis "Virtual guitar amplifier")
1370 (description "Guitarix is a virtual guitar amplifier running JACK.
1371 Guitarix takes the signal from your guitar as a mono-signal from your sound
1372 card. The input is processed by a main amp and a rack-section. Both can be
1373 routed separately and deliver a processed stereo-signal via JACK. You may
1374 fill the rack with effects from more than 25 built-in modules including stuff
1375 from a simple noise gate to modulation effects like flanger, phaser or
1377 (license license:gpl2+)))
1379 (define-public guitarix-lv2
1380 (package (inherit guitarix)
1381 (name "guitarix-lv2")
1383 (substitute-keyword-arguments (package-arguments guitarix)
1384 ((#:configure-flags flags)
1385 `(cons "--no-standalone" ,flags))))))
1387 (define-public rakarrack
1393 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1394 "rakarrack-" version "/rakarrack-"
1395 version ".tar.bz2"))
1398 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1399 (modules '((guix build utils)))
1402 (substitute* '("src/process.C"
1404 (("#include <Fl/") "#include <FL/"))
1406 (build-system gnu-build-system)
1408 `(("alsa-utils" ,alsa-utils)
1411 ("libxext" ,libxext)
1412 ("libxfixes" ,libxfixes)
1414 ("libxrender" ,libxrender)
1416 ("fontconfig" ,fontconfig)
1417 ("freetype" ,freetype)
1419 ("alsa-lib" ,alsa-lib)
1420 ("libsndfile" ,libsndfile)
1421 ("libsamplerate" ,libsamplerate)
1423 (home-page "http://rakarrack.sourceforge.net/")
1424 (synopsis "Audio effects processor")
1426 "Rakarrack is a richly featured multi-effects processor emulating a
1427 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1428 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1429 distortion modules and many more. Most of the effects engine is built from
1430 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1431 user interface are optimized for guitar, but Rakarrack processes signals in
1432 stereo while it does not apply internal band-limiting filtering, and thus is
1433 well suited to all musical instruments and vocals.")
1434 ;; The code is explicitly licensed under the GPL version 2 only.
1435 (license license:gpl2)))
1443 ;; The original home-page is gone. Download the tarball from an
1444 ;; archive mirror instead.
1445 (uri (list (string-append
1446 "https://web.archive.org/web/20150803095032/"
1447 "http://factorial.hu/system/files/ir.lv2-"
1450 "https://mirrors.kernel.org/gentoo/distfiles/ir.lv2-"
1451 version ".tar.gz")))
1454 "1jh2z01l9m4ar7yz0n911df07dygc7n4cl59p7qdjbh0nvkm747g"))))
1455 (build-system gnu-build-system)
1457 `(#:tests? #f ; no tests
1458 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1459 #:phases (modify-phases %standard-phases
1460 (delete 'configure)))) ; no configure script
1462 `(("libsndfile" ,libsndfile)
1463 ("libsamplerate" ,libsamplerate)
1467 ("zita-convolver" ,zita-convolver)))
1469 `(("pkg-config" ,pkg-config)))
1470 (native-search-paths
1471 (list (search-path-specification
1472 (variable "LV2_PATH")
1473 (files '("lib/lv2")))))
1474 ;; Link to an archived copy of the home-page since the original is gone.
1475 (home-page (string-append "https://web.archive.org/web/20150803095032/"
1476 "http://factorial.hu/plugins/lv2/ir"))
1477 (synopsis "LV2 convolution reverb")
1479 "IR is a low-latency, real-time, high performance signal convolver
1480 especially for creating reverb effects. It supports impulse responses with 1,
1481 2 or 4 channels, in any soundfile format supported by libsndfile.")
1482 (license license:gpl2+)))
1484 (define-public jack-1
1491 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1496 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
1497 (build-system gnu-build-system)
1499 `(#:phases (modify-phases %standard-phases
1500 (add-after 'unpack 'patch-configure
1502 (substitute* "configure"
1503 ;; Install to <out/lib> regardless of platform.
1504 (("libnn=lib64") "libnn=lib"))
1507 `(("alsa-lib" ,alsa-lib)
1508 ("readline" ,readline)))
1509 ;; uuid.h is included in the JACK type headers
1510 ;; db.h is included in the libjack metadata headers
1512 `(("libuuid" ,util-linux)
1515 `(("pkg-config" ,pkg-config)))
1516 (home-page "http://jackaudio.org/")
1517 (synopsis "JACK audio connection kit")
1519 "JACK is a low-latency audio server. It can connect a number of
1520 different applications to an audio device, as well as allowing them to share
1521 audio between themselves. JACK is different from other audio server efforts
1522 in that it has been designed from the ground up to be suitable for
1523 professional audio work. This means that it focuses on two key areas:
1524 synchronous execution of all clients, and low latency operation.")
1525 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1526 ;; licensed under the LGPL in order to allow for proprietary usage.
1527 (license (list license:gpl2+ license:lgpl2.1+))))
1529 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1530 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
1531 ;; program for users who might benefit from the D-BUS features.
1532 (define-public jack-2
1533 (package (inherit jack-1)
1538 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
1539 "download/v" version "/jack2-"
1541 (file-name (string-append name "-" version ".tar.gz"))
1544 "0crf4y9a5j9miw8r5ji4l3w5w0y2frrf7xyfsfdgacnw6vwy5vyy"))))
1545 (build-system waf-build-system)
1547 `(#:python ,python-2
1548 #:tests? #f ; no check target
1549 #:configure-flags '("--dbus"
1552 (modify-phases %standard-phases
1554 'configure 'set-linkflags
1556 ;; Add $libdir to the RUNPATH of all the binaries.
1557 (substitute* "wscript"
1558 ((".*CFLAGS.*-Wall.*" m)
1560 " conf.env.append_unique('LINKFLAGS',"
1561 "'-Wl,-rpath=" %output "/lib')\n")))
1563 (add-after 'install 'wrap-python-scripts
1564 (lambda* (#:key inputs outputs #:allow-other-keys)
1565 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1566 (let* ((out (assoc-ref outputs "out"))
1567 (path (getenv "PYTHONPATH")))
1568 (wrap-program (string-append out "/bin/jack_control")
1569 `("PYTHONPATH" ":" prefix (,path))))
1572 `(("alsa-lib" ,alsa-lib)
1575 ("libsamplerate" ,libsamplerate)
1577 ("python2-dbus" ,python2-dbus)
1578 ("readline" ,readline)))
1580 `(("pkg-config" ,pkg-config)))
1581 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1582 (license (list license:gpl2+ license:lgpl2.1+))))
1590 (uri (string-append "https://download.drobilla.net/jalv-"
1591 version ".tar.bz2"))
1594 "1x2wpzzx2cgvz3dgdcgsj8dr0w3zsasy62mvl199bsdj5fbjaili"))))
1595 (build-system waf-build-system)
1597 `(#:tests? #f ; no check target
1600 (modify-phases %standard-phases
1602 'configure 'set-flags
1604 ;; Compile with C++11, required by gtkmm.
1605 (setenv "CXXFLAGS" "-std=c++11")
1615 `(("pkg-config" ,pkg-config)))
1616 (home-page "https://drobilla.net/software/jalv/")
1617 (synopsis "Simple LV2 host for JACK")
1619 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1620 plugins and exposes their ports as JACK ports, essentially making any LV2
1621 plugin function as a JACK application.")
1622 (license license:isc)))
1624 (define-public ladspa
1631 ;; Since the official link is dead,
1632 ;; we download the tarball from Debian or Internet Archive.
1633 (uri (list (string-append "http://http.debian.net"
1634 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1635 version ".orig.tar.gz")
1636 (string-append "https://web.archive.org/web/20140717172251/"
1637 "http://www.ladspa.org/download/ladspa_sdk_"
1641 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
1642 (build-system gnu-build-system)
1644 `(#:tests? #f ; the "test" target is a listening test only
1646 (modify-phases %standard-phases
1648 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1650 (let ((out (assoc-ref outputs "out")))
1651 (substitute* "makefile"
1652 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1653 (("/usr/include/") (string-append out "/include/"))
1654 (("/usr/bin/") (string-append out "/bin/"))
1655 (("-mkdirhier") "mkdir -p")
1656 (("^CC.*") "CC = gcc\n")
1657 (("^CPP.*") "CPP = g++\n")))
1660 ;; Since the home page is gone, we provide a link to the archived version.
1662 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
1663 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1665 "LADSPA is a standard that allows software audio processors and effects
1666 to be plugged into a wide range of audio synthesis and recording packages.")
1667 (license license:lgpl2.1+)))
1672 (version "0.6.0-rc2")
1675 ;; The tilde is not permitted in the builder name, but is used
1678 "mirror://savannah/lash/lash-"
1679 (string-join (string-split version #\-) "~")
1681 (file-name (string-append name "-" version ".tar.bz2"))
1684 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1685 (build-system gnu-build-system)
1688 (modify-phases %standard-phases
1689 ;; lashd embeds an ancient version of sigsegv so we just skip it
1690 (add-after 'unpack 'skip-lashd
1692 (substitute* '("Makefile.am" "Makefile.in")
1695 #:configure-flags '("--disable-static")))
1700 ("readline" ,readline)
1701 ("python" ,python-2)))
1702 ;; According to pkg-config, packages depending on lash also need to have
1703 ;; at least the following packages declared as inputs.
1705 `(("alsa-lib" ,alsa-lib)
1707 ("libxml2" ,libxml2)))
1709 `(("pkg-config" ,pkg-config)))
1710 (home-page "https://www.nongnu.org/lash/")
1711 (synopsis "Audio application session manager")
1713 "LASH is a session management system for audio applications. It allows
1714 you to save and restore audio sessions consisting of multiple interconneced
1715 applications, restoring program state (i.e. loaded patches) and the
1716 connections between them.")
1717 (license license:gpl2+)))
1719 (define-public libbs2b
1725 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1726 "/libbs2b-" version ".tar.lzma"))
1729 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1730 (build-system gnu-build-system)
1731 (native-inputs `(("pkg-config" ,pkg-config)))
1732 (inputs `(("libsndfile" ,libsndfile)))
1733 (home-page "https://sourceforge.net/projects/bs2b/")
1734 (synopsis "Bauer stereophonic-to-binaural DSP")
1736 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1737 designed to improve headphone listening of stereo audio records. Recommended
1738 for headphone prolonged listening to disable superstereo fatigue without
1739 essential distortions.")
1740 (license license:expat)))
1742 (define-public liblo
1748 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1749 "/liblo-" version ".tar.gz"))
1752 "06wdjzxjdshr6hyl4c94yvg3jixiylap8yjs8brdfpm297gck9rh"))))
1753 (build-system gnu-build-system)
1755 `(;; liblo test FAILED
1756 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1758 (home-page "http://liblo.sourceforge.net")
1759 (synopsis "Implementation of the Open Sound Control protocol")
1761 "liblo is a lightweight library that provides an easy to use
1762 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
1763 (license license:lgpl2.1+)))
1765 (define-public python-pyaudio
1767 (name "python-pyaudio")
1772 (uri (pypi-uri "PyAudio" version))
1775 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
1776 (build-system python-build-system)
1778 `(("portaudio" ,portaudio)))
1779 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
1780 (synopsis "Bindings for PortAudio v19")
1781 (description "This package provides bindings for PortAudio v19, the
1782 cross-platform audio input/output stream library.")
1783 (license license:expat)))
1785 (define-public python2-pyaudio
1786 (package-with-python2 python-pyaudio))
1788 (define-public python-pyliblo
1790 (name "python-pyliblo")
1794 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1798 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1799 (build-system python-build-system)
1800 (arguments `(#:tests? #f)) ;no tests
1802 `(("python-cython" ,python-cython)))
1804 `(("liblo" ,liblo)))
1805 (home-page "http://das.nasophon.de/pyliblo/")
1806 (synopsis "Python bindings for liblo")
1808 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1809 library. It supports almost the complete functionality of liblo, allowing you
1810 to send and receive OSC messages using a nice and simple Python API. Also
1811 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1812 (license license:lgpl2.1+)))
1814 (define-public python2-pyliblo
1815 (package-with-python2 python-pyliblo))
1823 (uri (string-append "https://download.drobilla.net/lilv-"
1824 version ".tar.bz2"))
1827 "0f24cd7wkk5l969857g2ydz2kjjrkvvddg1g87xzzs78lsvq8fy3"))))
1828 (build-system waf-build-system)
1830 `(#:tests? #f ; no check target
1832 (modify-phases %standard-phases
1834 'configure 'set-ldflags
1835 (lambda* (#:key outputs #:allow-other-keys)
1837 (string-append "-Wl,-rpath="
1838 (assoc-ref outputs "out") "/lib"))
1840 ;; Required by lilv-0.pc.
1845 ("sratom" ,sratom)))
1847 `(("pkg-config" ,pkg-config)))
1848 (home-page "https://drobilla.net/software/lilv/")
1849 (synopsis "Library to simplify use of LV2 plugins in applications")
1851 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1852 for applications. Lilv is the successor to SLV2, rewritten to be
1853 significantly faster and have minimal dependencies.")
1854 (license license:isc)))
1862 (uri (string-append "http://lv2plug.in/spec/lv2-"
1863 version ".tar.bz2"))
1866 "1ppippbpdpv13ibs06b0bixnazwfhiw0d0ja6hx42jnkgdyp5hyy"))))
1867 (build-system waf-build-system)
1869 `(#:tests? #f ; no check target
1870 #:configure-flags '("--no-plugins")))
1872 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1873 `(("libsndfile" ,libsndfile)))
1875 `(("pkg-config" ,pkg-config)))
1876 (home-page "http://lv2plug.in/")
1877 (synopsis "LV2 audio plugin specification")
1879 "LV2 is an open specification for audio plugins and host applications.
1880 At its core, LV2 is a simple stable interface, accompanied by extensions which
1881 add functionality to support the needs of increasingly powerful audio
1883 (license license:isc)))
1885 (define-public lv2-mda-piano
1887 (name "lv2-mda-piano")
1892 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
1894 (file-name (git-file-name name version))
1897 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1898 (build-system gnu-build-system)
1900 `(#:make-flags (list
1902 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1903 #:tests? #f ; no check target
1904 #:phases (modify-phases %standard-phases (delete 'configure))))
1909 `(("pkg-config" ,pkg-config)))
1910 (native-search-paths
1911 (list (search-path-specification
1912 (variable "LV2_PATH")
1913 (files '("lib/lv2")))))
1914 (home-page "http://elephly.net/lv2/mdapiano.html")
1915 (synopsis "LV2 port of the mda Piano plugin")
1916 (description "An LV2 port of the mda Piano VSTi.")
1917 (license license:gpl3+)))
1919 (define-public lv2-mda-epiano
1920 (package (inherit lv2-mda-piano)
1921 (name "lv2-mda-epiano")
1923 `(#:make-flags (list
1925 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1926 #:tests? #f ; no check target
1927 #:phases (modify-phases %standard-phases (delete 'configure))))
1928 (home-page "http://elephly.net/lv2/mdaepiano.html")
1929 (synopsis "LV2 port of the mda EPiano plugin")
1930 (description "An LV2 port of the mda EPiano VSTi.")))
1939 (url "https://github.com/lvtk/lvtk.git")
1941 (file-name (git-file-name name version))
1944 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
1945 (build-system waf-build-system)
1947 `(#:tests? #f ; no check target
1950 (list (string-append "--boost-includes="
1951 (assoc-ref %build-inputs "boost")
1953 #:phases (modify-phases %standard-phases
1955 'configure 'set-flags
1956 (lambda* (#:key inputs #:allow-other-keys)
1957 ;; See e.g. https://github.com/lvtk/lvtk/issues/21
1960 "-L" (assoc-ref inputs "boost") "/lib "
1963 (substitute* '("src/wscript_build"
1964 "examples/wscript_build")
1965 (("cxxflags.*= \\[" line)
1966 (string-append line "\"-std=c++11\", ")))
1973 `(("pkg-config" ,pkg-config)))
1974 (home-page "https://github.com/lvtk/lvtk")
1975 (synopsis "C++ libraries for LV2 plugins")
1977 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
1978 extensions into easy to use C++ classes. It is the successor of
1980 (license license:gpl3+)))
1982 (define-public openal
1989 "http://openal-soft.org/openal-releases/openal-soft-"
1990 version ".tar.bz2"))
1993 "1sdjhkz2gd6lbnwphi1b6aw3br4wv2lik5vnqh6mxfc8a7zqfbsw"))))
1994 (build-system cmake-build-system)
1996 `(#:tests? #f ; no check target
1998 (modify-phases %standard-phases
2000 'unpack 'use-full-library-paths
2001 (lambda* (#:key inputs #:allow-other-keys)
2002 (substitute* "Alc/backends/pulseaudio.c"
2003 (("#define PALIB \"libpulse\\.so\\.0\"")
2004 (string-append "#define PALIB \""
2005 (assoc-ref inputs "pulseaudio")
2006 "/lib/libpulse.so.0"
2008 (substitute* "Alc/backends/alsa.c"
2009 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2010 (string-append "LoadLib(\""
2011 (assoc-ref inputs "alsa-lib")
2012 "/lib/libasound.so.2"
2016 `(("alsa-lib" ,alsa-lib)
2017 ("pulseaudio" ,pulseaudio)))
2018 (synopsis "3D audio API")
2020 "OpenAL provides capabilities for playing audio in a virtual 3D
2021 environment. Distance attenuation, doppler shift, and directional sound
2022 emitters are among the features handled by the API. More advanced effects,
2023 including air absorption, occlusion, and environmental reverb, are available
2024 through the EFX extension. It also facilitates streaming audio, multi-channel
2025 buffers, and audio capture.")
2026 (home-page "http://openal-soft.org/")
2027 (license license:lgpl2.0+)))
2029 (define-public freealut
2035 ;; Upstream url is unclear, many systems use Fedora, there is also
2036 ;; https://github.com/vancegroup/freealut though the status of it
2037 ;; (official? unofficial?) is not clear.
2039 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2040 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2041 "-" version ".tar.gz"))
2044 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2045 (build-system cmake-build-system)
2047 `(#:tests? #f)) ; no check target
2049 `(("openal" ,openal)))
2050 (synopsis "Free implementation of OpenAL's ALUT standard")
2051 (description "freealut is the OpenAL Utility Toolkit.")
2052 (home-page "http://kcat.strangesoft.net/openal.html")
2053 (license license:lgpl2.0)))
2055 (define-public patchage
2061 (uri (string-append "https://download.drobilla.net/patchage-"
2066 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
2067 (build-system waf-build-system)
2069 `(#:tests? #f ; no check target
2070 #:python ,python-2))
2072 `(("alsa-lib" ,alsa-lib)
2078 ("dbus-glib" ,dbus-glib)))
2080 `(("pkg-config" ,pkg-config)))
2081 (home-page "https://drobilla.net/software/patchage/")
2082 (synopsis "Modular patch bay for audio and MIDI systems")
2084 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2086 (license license:gpl3+)))
2088 (define-public pcaudiolib
2092 (home-page "https://github.com/espeak-ng/pcaudiolib")
2095 (uri (git-reference (url home-page) (commit version)))
2096 (file-name (git-file-name name version))
2099 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2100 (build-system gnu-build-system)
2102 `(#:configure-flags '("--disable-static")))
2104 `(("autoconf" ,autoconf)
2105 ("automake" ,automake)
2106 ("libtool" ,libtool)
2107 ("pkg-config" ,pkg-config)
2110 `(("alsa-lib" ,alsa-lib)
2111 ("pulseaudio" ,pulseaudio)))
2112 (synopsis "Portable C audio library")
2114 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2115 different audio devices such as ALSA or PulseAudio.")
2116 (license (list license:gpl3+
2117 ;; The bundled TPCircularBuffer uses a custom license.
2118 (license:non-copyleft
2119 "file://src/TPCircularBuffer/README.markdown")))))
2121 (define-public qjackctl
2127 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2128 version "/qjackctl-" version ".tar.gz"))
2131 "1saywsda9m124rmjp7i3n0llryaliabjxhqhvqr6dm983qy7pypk"))))
2132 (build-system gnu-build-system)
2134 '(#:tests? #f)) ; no check target
2137 ("alsa-lib" ,alsa-lib)
2139 ("qtx11extras" ,qtx11extras)))
2141 `(("pkg-config" ,pkg-config)
2142 ("qttools" ,qttools)))
2143 (home-page "https://qjackctl.sourceforge.io/")
2144 (synopsis "Jack server control application")
2145 (description "Control a Jack server. Allows you to plug various sources
2146 into various outputs and to start, stop and configure jackd")
2147 (license license:gpl2+)))
2149 (define-public qjackrcd
2156 (url "https://github.com/orouits/qjackrcd.git")
2157 (commit (string-append "v" version))))
2158 (file-name (git-file-name name version))
2161 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2162 (build-system gnu-build-system)
2165 (modify-phases %standard-phases
2167 (lambda* (#:key outputs #:allow-other-keys)
2169 (string-append "PREFIX="
2170 (assoc-ref outputs "out"))))))))
2172 `(("qtbase" ,qtbase))) ; for qmake
2175 ("libsndfile" ,libsndfile)
2176 ("qtbase" ,qtbase)))
2177 (home-page "https://sourceforge.net/projects/qjackrcd/")
2178 (synopsis "Stereo audio recorder for JACK")
2179 (description "QJackRcd is a simple graphical stereo recorder for JACK
2180 supporting silence processing for automatic pause, file splitting, and
2181 background file post-processing.")
2182 (license license:gpl2+)))
2184 (define-public supercollider
2186 (name "supercollider")
2191 "https://github.com/supercollider/supercollider"
2192 "/releases/download/Version-" version
2193 "/SuperCollider-" version "-Source-linux.tar.bz2"))
2196 "0ynz1ydcpsd5h57h1n4a7avm6p1cif5a8rkmz4qpr46pr8z9p6iq"))))
2197 (build-system cmake-build-system)
2199 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
2201 "-DSC_EL=off") ;scel is packaged individually as
2203 #:modules ((guix build utils)
2204 (guix build cmake-build-system)
2207 (modify-phases %standard-phases
2208 (add-after 'unpack 'fix-build-with-boost-1.68
2210 (substitute* "server/supernova/utilities/time_tag.hpp"
2211 (("(time_duration offset = .+ microseconds\\().*" _ m)
2212 (string-append m "static_cast<long>(get_nanoseconds()/1000));\n")))
2214 (add-after 'unpack 'rm-bundled-libs
2216 ;; The build system doesn't allow us to unbundle the following
2217 ;; libraries. hidapi is also heavily patched and upstream not
2218 ;; actively maintained.
2219 (let ((keep-dirs '("nova-simd" "nova-tt" "hidapi" "TLSF-2.4.6"
2220 "oscpack_1_1_0" "." "..")))
2221 (with-directory-excursion "./external_libraries"
2223 delete-file-recursively
2226 (and (eq? (stat:type (stat x)) 'directory)
2227 (not (member (basename x) keep-dirs))))))))
2229 ;; Some tests are broken (see:
2230 ;; https://github.com/supercollider/supercollider/issues/3555 and
2231 ;; https://github.com/supercollider/supercollider/issues/1736
2232 (add-after 'rm-bundled-libs 'disable-broken-tests
2234 (substitute* "testsuite/server/supernova/CMakeLists.txt"
2235 (("server_test.cpp")
2237 (("perf_counter_test.cpp")
2239 (delete-file "testsuite/server/supernova/server_test.cpp")
2240 (delete-file "testsuite/server/supernova/perf_counter_test.cpp")
2241 (substitute* "testsuite/CMakeLists.txt"
2242 (("add_subdirectory\\(sclang\\)")
2244 (delete-file "testsuite/sclang/CMakeLists.txt")
2247 `(("pkg-config" ,pkg-config)))
2250 ("libsndfile" ,libsndfile)
2253 ("readline" ,readline) ;readline support for sclang's CLI
2254 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2255 ("eudev" ,eudev) ;for user interactions with devices
2256 ("avahi" ,avahi) ;zeroconf service discovery support
2259 ("boost-sync" ,boost-sync)
2260 ("yaml-cpp" ,yaml-cpp)))
2261 (home-page "https://github.com/supercollider/supercollider")
2262 (synopsis "Synthesis engine and programming language")
2263 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2264 @code{supernova}) and programming language (@code{sclang}). It can be used
2265 for experimenting with sound synthesis and algorithmic composition.
2267 SuperCollider requires jackd to be installed in your user profile and your
2268 user must be allowed to access the realtime features of the kernel. Search
2269 for \"realtime\" in the index of the Guix manual to learn how to achieve this
2270 using Guix System.")
2271 (license license:gpl2+)))
2279 (uri (string-append "https://download.drobilla.net/raul-"
2280 version ".tar.bz2"))
2283 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2284 (build-system waf-build-system)
2286 `(#:python ,python-2
2287 #:tests? #f)) ; no check target
2292 `(("pkg-config" ,pkg-config)))
2293 (home-page "https://drobilla.net/software/raul/")
2294 (synopsis "Real-time audio utility library")
2296 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2297 aimed at audio/musical applications.")
2298 (license license:gpl2+)))
2300 (define-public raul-devel
2301 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2303 (package (inherit raul)
2305 (version (string-append "0.8.9-" revision "."
2306 (string-take commit 9)))
2310 (url "https://git.drobilla.net/raul.git")
2312 (file-name (string-append name "-" version "-checkout"))
2315 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2317 (define-public rubberband
2324 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2327 (file-name (string-append name "-" version ".tar.bz2"))
2330 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
2331 (build-system gnu-build-system)
2333 `(#:tests? #f ; no check target
2335 (modify-phases %standard-phases
2336 (add-after 'unpack 'skip-jni-installation
2337 ;; ‘make install’ unconditionally installs librubberband-jni.so,
2338 ;; which is never built by ‘make all’. Skip it.
2340 (substitute* "Makefile.in"
2341 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
2344 `(("ladspa" ,ladspa)
2345 ("libsamplerate" ,libsamplerate)
2348 `(("pkg-config" ,pkg-config)))
2349 (home-page "https://breakfastquay.com/rubberband/")
2350 (synopsis "Audio time-stretching and pitch-shifting library")
2352 "Rubber Band is a library and utility program that permits changing the
2353 tempo and pitch of an audio recording independently of one another.")
2354 (license license:gpl2+)))
2356 (define-public rtmidi
2363 (url "https://github.com/powertab/rtmidi.git")
2365 (file-name (git-file-name name version))
2368 "106v177y3nrjv2l1yskch4phpqd8h97b67zj0jiq9pc3c69jr1ay"))))
2369 (build-system gnu-build-system)
2371 `(#:tests? #f ;no "check" target
2373 (modify-phases %standard-phases
2374 (add-before 'build 'fix-makefile
2376 (substitute* "Makefile"
2378 (("RtMidi.h RtError.h") "RtMidi.h"))
2380 (add-before 'install 'make-target-dirs
2382 (let ((out (assoc-ref %outputs "out")))
2383 (mkdir-p (string-append out "/bin"))
2384 (mkdir (string-append out "/lib"))
2385 (mkdir (string-append out "/include")))
2389 ("alsa-lib" ,alsa-lib)))
2391 `(("autoconf" ,autoconf)
2392 ("automake" ,automake)
2393 ("libtool" ,libtool)
2394 ("pkg-config" ,pkg-config)))
2395 (home-page "https://github.com/powertab/rtmidi")
2396 (synopsis "Cross-platform MIDI library for C++")
2398 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2399 classes) that provide a common cross-platform API for realtime MIDI
2401 (license license:expat)))
2403 (define-public sratom
2409 (uri (string-append "https://download.drobilla.net/sratom-"
2410 version ".tar.bz2"))
2413 "0lz883ravxjf7r9wwbx2gx9m8vhyiavxrl9jdxfppjxnsralll8a"))))
2414 (build-system waf-build-system)
2415 (arguments `(#:tests? #f)) ; no check target
2421 `(("pkg-config" ,pkg-config)))
2422 (home-page "https://drobilla.net/software/sratom/")
2423 (synopsis "Library for serialising LV2 atoms to/from RDF")
2425 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2426 the Turtle syntax.")
2427 (license license:isc)))
2435 (uri (string-append "https://download.drobilla.net/suil-"
2436 version ".tar.bz2"))
2439 "0ay7hl6nr6ip1nn9k2m8ri3b52b6sx9mhixmcy4fy3kr2a88ksd1"))))
2440 (build-system waf-build-system)
2442 `(#:tests? #f ; no check target
2444 '("CXXFLAGS=-std=gnu++11")))
2451 `(("pkg-config" ,pkg-config)))
2452 (home-page "https://drobilla.net/software/suil/")
2453 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2455 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2457 Suil makes it possible to load a UI of a toolkit in a host using another
2458 toolkit. The API is designed such that hosts do not need to explicitly
2459 support specific toolkits – if Suil supports a particular toolkit, then UIs in
2460 that toolkit will work in all hosts that use Suil automatically.
2462 Suil currently supports every combination of Gtk, Qt, and X11.")
2463 (license license:isc)))
2465 (define-public timidity++
2471 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2472 "/TiMidity++-" version
2473 "/TiMidity++-" version ".tar.bz2"))
2476 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2477 (build-system gnu-build-system)
2480 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2484 (string-append "--with-default-path="
2485 (assoc-ref %outputs "out") "/etc/timidity"))
2487 (modify-phases %standard-phases
2488 (add-after 'install 'install-config
2490 (let ((out (string-append (assoc-ref %outputs "out")
2493 (call-with-output-file
2494 (string-append out "/timidity.cfg")
2496 (format port (string-append "source "
2497 (assoc-ref %build-inputs "freepats")
2498 "/share/freepats/freepats.cfg")))))
2501 `(("alsa-lib" ,alsa-lib)
2507 ("ncurses" ,ncurses)
2508 ("freepats" ,freepats)))
2510 `(("pkg-config" ,pkg-config)))
2511 (home-page "http://timidity.sourceforge.net/")
2512 (synopsis "Software synthesizer for playing MIDI files")
2514 "TiMidity++ is a software synthesizer. It can play MIDI files by
2515 converting them into PCM waveform data; give it a MIDI data along with digital
2516 instrument data files, then it synthesizes them in real-time, and plays. It
2517 can not only play sounds, but also can save the generated waveforms into hard
2518 disks as various audio file formats.")
2519 (license license:gpl2+)))
2528 "https://code.soundsoftware.ac.uk"
2529 "/attachments/download/1520/vamp-plugin-sdk-"
2533 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
2534 (build-system gnu-build-system)
2536 `(#:tests? #f ; no check target
2538 (modify-phases %standard-phases
2539 (add-after 'install 'remove-libvamp-hostsdk.la
2540 (lambda* (#:key outputs #:allow-other-keys)
2541 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2542 (for-each delete-file
2543 (let ((out (assoc-ref outputs "out")))
2544 (list (string-append out "/lib/libvamp-sdk.la")
2545 (string-append out "/lib/libvamp-hostsdk.la"))))
2548 `(("libsndfile" ,libsndfile)))
2550 `(("pkg-config" ,pkg-config)))
2551 (home-page "http://vamp-plugins.org")
2552 (synopsis "Modular and extensible audio processing system")
2554 "Vamp is an audio processing plugin system for plugins that extract
2555 descriptive information from audio data — typically referred to as audio
2556 analysis plugins or audio feature extraction plugins.")
2559 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
2561 (define-public libsbsms
2568 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2569 "/libsbsms-" version ".tar.gz"))
2571 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2572 (build-system gnu-build-system)
2573 (native-inputs `(("automake" ,automake)))
2576 ;; Disable the use of SSE unless on x86_64.
2577 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2578 (%current-system))))
2582 (modify-phases %standard-phases
2584 'unpack 'fix-ar-lib-path
2585 (lambda* (#:key inputs #:allow-other-keys)
2586 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2587 (delete-file "ar-lib")
2589 (string-append (assoc-ref inputs "automake") "/share/automake-"
2590 ,(package-version automake) "/ar-lib")
2593 (home-page "http://sbsms.sourceforge.net/")
2594 (synopsis "Library for time stretching and pitch scaling of audio")
2596 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2597 stretching and pitch scaling of audio. This package contains the library.")
2598 ;; There is no explicit declaration of a license, but a COPYING file
2600 (license license:gpl2)))
2602 (define-public wavpack
2608 (uri (string-append "http://www.wavpack.com/"
2609 name "-" version ".tar.bz2"))
2610 (patches (search-patches "wavpack-CVE-2018-6767.patch"
2611 "wavpack-CVE-2018-7253.patch"
2612 "wavpack-CVE-2018-7254.patch"))
2615 "0i19c6krc0p9krwrqy9s5xahaafigqzxcn31piidmlaqadyn4f8r"))))
2616 (build-system gnu-build-system)
2617 (home-page "http://www.wavpack.com/")
2618 (synopsis "Hybrid lossless audio codec")
2620 "WavPack is an audio compression format with lossless, lossy and hybrid
2621 compression modes. This package contains command-line programs and library to
2622 encode and decode wavpack files.")
2623 (license license:bsd-3)))
2625 (define-public libmodplug
2632 "mirror://sourceforge/modplug-xmms/"
2633 name "/" version "/" name "-" version ".tar.gz"))
2636 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
2637 (build-system gnu-build-system)
2638 (home-page "http://modplug-xmms.sourceforge.net/")
2639 (synopsis "Mod file playing library")
2641 "Libmodplug renders mod music files as raw audio data, for playing or
2642 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2643 supported. Optional features include high-quality resampling, bass expansion,
2644 surround and reverb.")
2645 (license license:public-domain)))
2647 (define-public libxmp
2653 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
2654 name "-" version ".tar.gz"))
2657 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
2658 (build-system gnu-build-system)
2659 (home-page "http://xmp.sourceforge.net/")
2660 (synopsis "Module player library")
2662 "Libxmp is a library that renders module files to PCM data. It supports
2663 over 90 mainstream and obscure module formats including Protracker (MOD),
2664 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2665 (license license:lgpl2.1+)))
2673 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
2674 name "-" version ".tar.gz"))
2677 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
2678 (build-system gnu-build-system)
2680 `(("pkg-config" ,pkg-config)))
2682 `(("libxmp" ,libxmp)
2683 ("pulseaudio" ,pulseaudio)))
2684 (home-page "http://xmp.sourceforge.net/")
2685 (synopsis "Extended module player")
2687 "Xmp is a portable module player that plays over 90 mainstream and
2688 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2689 Tracker 3 S3M and Impulse Tracker IT files.")
2690 (license license:gpl2+)))
2692 (define-public soundtouch
2700 (url "https://gitlab.com/soundtouch/soundtouch.git")
2702 (file-name (git-file-name name version))
2704 (base32 "0p6jzgfgqw061702dmd2b6r4arz48ac3mmx2qkvvzf8s5jjzykdh"))))
2705 (build-system gnu-build-system)
2707 `(("autoconf" ,autoconf)
2708 ("automake" ,automake)
2709 ("libtool" ,libtool)
2711 (home-page "http://www.surina.net/soundtouch/")
2713 "Audio processing library for changing tempo, pitch and playback rate")
2715 "SoundTouch is an audio processing library for changing the tempo, pitch
2716 and playback rates of audio streams or audio files. It is intended for
2717 application developers writing sound processing tools that require tempo/pitch
2718 control functionality, or just for playing around with the sound effects.")
2719 (license license:lgpl2.1+)))
2727 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2728 name "-" version ".tar.bz2"))
2731 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2732 (build-system gnu-build-system)
2735 ;; The upstream asks to identify the distribution to diagnose SoX
2737 '("--with-distro=Guix System Distribution")))
2739 `(("pkg-config" ,pkg-config)))
2741 `(("alsa-lib" ,alsa-lib)
2745 ("libid3tag" ,libid3tag)
2746 ("libltdl" ,libltdl)
2749 ("libvorbis" ,libvorbis)
2750 ("pulseaudio" ,pulseaudio)))
2751 (home-page "http://sox.sourceforge.net")
2752 (synopsis "Sound processing utility")
2754 "SoX (Sound eXchange) is a command line utility that can convert
2755 various formats of computer audio files to other formats. It can also
2756 apply various effects to these sound files, and, as an added bonus, SoX
2757 can play and record audio files.")
2758 ;; sox.c is distributed under GPL, while the files that make up
2759 ;; libsox are licensed under LGPL.
2760 (license (list license:gpl2+ license:lgpl2.1+))))
2770 (string-append "mirror://sourceforge/soxr/soxr-" version
2773 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
2774 (build-system cmake-build-system)
2775 (arguments '(#:tests? #f)) ;no 'check' target
2776 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
2777 (synopsis "One-dimensional sample-rate conversion library")
2779 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2780 conversion. It may be used, for example, to resample PCM-encoded audio.")
2781 (license license:lgpl2.1+)))
2783 (define-public twolame
2790 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2791 "/twolame-" version ".tar.gz"))
2793 (base32 "0ahiqqng5pidwhj1wzph4vxxgxxgcfa3gl0gywipzx2ii7s35wwq"))
2794 (modules '((guix build utils)))
2795 ;; The tests break with Perl 5.24:
2796 ;; https://github.com/njh/twolame/issues/21
2797 ;; TODO: Remove this snippet when upgrading twolame.
2800 (substitute* "tests/test.pl" (("\\(@_\\)") "($_[0])"))
2802 (build-system gnu-build-system)
2804 `(("libsndfile" ,libsndfile)))
2807 ("which" ,which))) ;used in tests/test.pl
2808 (home-page "http://www.twolame.org/")
2809 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2811 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2812 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2814 (license license:lgpl2.1+)))
2816 (define-public portaudio
2819 (version "190600.20161030")
2824 "http://www.portaudio.com/archives/pa_stable_v"
2825 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2828 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
2829 (patches (search-patches "portaudio-audacity-compat.patch"))))
2830 (build-system gnu-build-system)
2832 ;; TODO: Add ASIHPI.
2833 `(("alsa-lib" ,alsa-lib)
2835 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
2838 `(("autoconf" ,autoconf)
2839 ("automake" ,automake)
2840 ("libtool" ,libtool)
2841 ("pkg-config" ,pkg-config)))
2843 '(#:tests? #f ;no 'check' target
2844 #:configure-flags '("--with-pic")
2846 (modify-phases %standard-phases
2847 ;; This is needed for linking the static libraries
2848 (add-after 'unpack 'build-only-position-independent-code
2850 (substitute* "configure.in"
2851 (("AC_PROG_LIBTOOL" m)
2852 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
2853 (delete-file "configure")
2855 ;; Some headers are not installed by default, but are needed by
2856 ;; packages like Kaldi.
2857 (add-after 'install 'install-missing-headers
2858 (lambda* (#:key outputs #:allow-other-keys)
2859 (install-file "src/common/pa_ringbuffer.h"
2860 (string-append (assoc-ref outputs "out") "/include"))
2862 (home-page "http://www.portaudio.com/")
2863 (synopsis "Audio I/O library")
2865 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2866 to record and/or play sound using a callback function or a blocking read/write
2868 (license license:expat)))
2870 (define-public qsynth
2877 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2878 "/qsynth-" version ".tar.gz"))
2880 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
2881 (build-system gnu-build-system)
2883 `(#:tests? #f)) ; no "check" phase
2885 `(("qttools" ,qttools)
2886 ("pkg-config" ,pkg-config)))
2888 `(("fluidsynth" ,fluidsynth)
2890 ("qtx11extras" ,qtx11extras)))
2891 (home-page "https://qsynth.sourceforge.io")
2892 (synopsis "Graphical user interface for FluidSynth")
2894 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2895 synthesizer written in C++.")
2896 (license license:gpl2+)))
2898 (define-public rsound
2906 (url "https://github.com/Themaister/RSound.git")
2907 (commit (string-append "v" version))))
2908 (file-name (git-file-name name version))
2910 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
2911 (build-system gnu-build-system)
2913 `(("alsa-lib" ,alsa-lib)
2916 ("libsamplerate" ,libsamplerate)
2918 ("portaudio" ,portaudio)
2919 ("pulseaudio" ,pulseaudio)))
2922 (modify-phases %standard-phases
2924 (lambda* (#:key outputs #:allow-other-keys)
2926 (invoke "./configure"
2927 (string-append "--prefix=" (assoc-ref outputs "out"))))))
2928 ;; No 'check' target.
2930 (home-page "http://themaister.net/rsound.html")
2931 (synopsis "Networked audio system")
2933 "RSound allows you to send audio from an application and transfer it
2934 directly to a different computer on your LAN network. It is an audio daemon
2935 with a much different focus than most other audio daemons.")
2936 (license license:gpl3+)))
2938 (define-public xjackfreak
2945 (url "https://github.com/johnhldavis/xjackfreak.git")
2946 (commit (string-append "v" version))))
2947 (file-name (git-file-name name version))
2950 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
2951 (build-system gnu-build-system)
2954 (list (string-append "docdir=" (assoc-ref %outputs "out")
2955 "/share/doc/xjackfreak"))))
2960 ("libxext" ,libxext)))
2962 `(("pkg-config" ,pkg-config)))
2963 (home-page "https://github.com/johnhldavis/xjackfreak")
2964 (synopsis "JACK audio frequency analyzer and display")
2966 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
2967 Connection Kit. It can display the FFT of any input, modify it and output the
2969 (license license:gpl3+)))
2971 (define-public zita-convolver
2973 (name "zita-convolver")
2978 "http://kokkinizita.linuxaudio.org"
2979 "/linuxaudio/downloads/zita-convolver-"
2980 version ".tar.bz2"))
2982 ;; Don't optimize for a specific processor architecture.
2984 (substitute* "libs/Makefile"
2985 (("^CXXFLAGS \\+= -march=native") ""))
2987 (modules '((guix build utils)))
2990 "14qrnczhp5mbwhky64il7kxc4hl1mmh495v60va7i2qnhasr6zmz"))))
2991 (build-system gnu-build-system)
2993 `(#:tests? #f ; no "check" target
2994 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2996 (modify-phases %standard-phases
2997 (add-after 'unpack 'patch-makefile-and-enter-directory
2999 (substitute* "libs/Makefile"
3000 (("ldconfig") "true")
3001 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3004 (add-after 'install 'install-symlink
3006 (symlink "libzita-convolver.so"
3007 (string-append (assoc-ref %outputs "out")
3008 "/lib/libzita-convolver.so.3"))
3010 ;; no configure script
3011 (delete 'configure))))
3012 (inputs `(("fftwf" ,fftwf)))
3013 (home-page "https://kokkinizita.linuxaudio.org")
3014 (synopsis "Fast, partitioned convolution engine library")
3016 "Zita convolver is a C++ library providing a real-time convolution
3018 (license license:gpl3+)))
3020 (define-public zita-resampler
3022 (name "zita-resampler")
3027 "http://kokkinizita.linuxaudio.org"
3028 "/linuxaudio/downloads/zita-resampler-"
3029 version ".tar.bz2"))
3031 ;; Don't optimize for a specific processor architecture.
3033 (substitute* '("apps/Makefile" "libs/Makefile")
3034 (("^CXXFLAGS \\+= -march=native") ""))
3036 (modules '((guix build utils)))
3039 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
3040 (build-system gnu-build-system)
3042 `(#:tests? #f ; no "check" target
3043 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3045 (modify-phases %standard-phases
3047 'unpack 'patch-makefile-and-enter-directory
3049 (substitute* "libs/Makefile"
3050 (("ldconfig") "true")
3051 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3055 'install 'install-symlink
3057 (symlink "libzita-resampler.so"
3058 (string-append (assoc-ref %outputs "out")
3059 "/lib/libzita-resampler.so.1"))
3061 ;; no configure script
3062 (delete 'configure))))
3063 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
3064 (synopsis "C++ library for resampling audio signals")
3066 "Libzita-resampler is a C++ library for resampling audio signals. It is
3067 designed to be used within a real-time processing context, to be fast, and to
3068 provide high-quality sample rate conversion.")
3069 (license license:gpl3+)))
3071 (define-public zita-alsa-pcmi
3073 (name "zita-alsa-pcmi")
3078 "http://kokkinizita.linuxaudio.org"
3079 "/linuxaudio/downloads/zita-alsa-pcmi-"
3080 version ".tar.bz2"))
3083 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
3084 (build-system gnu-build-system)
3086 `(#:tests? #f ; no "check" target
3087 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3089 (modify-phases %standard-phases
3090 (add-after 'unpack 'patch-makefile-and-enter-directory
3092 (substitute* "libs/Makefile"
3093 (("ldconfig") "true")
3094 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3097 (add-after 'install 'install-symlink
3099 (symlink "libzita-alsa-pcmi.so"
3100 (string-append (assoc-ref %outputs "out")
3101 "/lib/libzita-alsa-pcmi.so.0"))
3103 ;; no configure script
3104 (delete 'configure))))
3106 `(("alsa-lib" ,alsa-lib)
3108 (home-page "https://kokkinizita.linuxaudio.org")
3109 (synopsis "C++ wrapper around the ALSA API")
3111 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3112 access to ALSA PCM devices, taking care of the many functions required to
3113 open, initialise and use a hw: device in mmap mode, and providing floating
3115 (license license:gpl3+)))
3117 (define-public cuetools
3124 (url "https://github.com/svend/cuetools.git")
3126 (file-name (git-file-name name version))
3129 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
3130 (build-system gnu-build-system)
3131 ;; The source checkout is not bootstrapped.
3133 `(("autoconf" ,autoconf)
3134 ("automake" ,automake)
3137 (synopsis "Cue and toc file parsers and utilities")
3138 (description "Cuetools is a set of programs that are useful for manipulating
3139 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3140 files are a way to represent the layout of a data or audio CD in a
3141 machine-readable ASCII format.")
3142 (home-page "https://github.com/svend/cuetools")
3143 (license license:gpl2+)))
3145 (define-public shntool
3151 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
3152 "shntool-" version ".tar.gz"))
3155 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3156 (build-system gnu-build-system)
3157 (synopsis "WAVE audio data processing tool")
3158 (description "shntool is a multi-purpose WAVE data processing and reporting
3159 utility. File formats are abstracted from its core, so it can process any file
3160 that contains WAVE data, compressed or not---provided there exists a format
3161 module to handle that particular file type. It can also generate CUE files, and
3162 use them split WAVE data into multiple files.")
3163 (home-page "http://etree.org/shnutils/shntool/")
3164 ;; 'install-sh' bears the x11 license
3165 (license (list license:gpl2+ license:x11))))
3167 (define-public dcadec
3174 (url "https://github.com/foo86/dcadec.git")
3175 (commit (string-append "v" version))))
3176 (file-name (git-file-name name version))
3179 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
3180 (build-system gnu-build-system)
3182 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3186 ;; Build shared library.
3188 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3189 ;; Set proper runpath.
3190 (string-append "LDFLAGS=-Wl,-rpath="
3191 (assoc-ref %outputs "out")
3194 (modify-phases %standard-phases
3195 ;; No configure script, just a hand-written Makefile.
3196 (delete 'configure))))
3197 (synopsis "DTS Coherent Acoustics decoder")
3198 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3199 with support for HD extensions.")
3200 (home-page "https://github.com/foo86/dcadec")
3201 (license license:lgpl2.1+)))
3203 (define-public bs1770gain
3210 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3211 version "/bs1770gain-" version ".tar.gz"))
3214 "1p6yz5q7czyf9ard65sp4kawdlkg40cfscr3b24znymmhs3p7rbk"))
3215 (modules '((guix build utils)))
3219 (substitute* "bs1770gain/bs1770gain.c"
3220 (("\"N.*\"") "\"\""))
3221 (substitute* "configure"
3223 "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html\n"))))))
3224 (build-system gnu-build-system)
3225 (inputs `(("ffmpeg" ,ffmpeg)
3227 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
3228 (synopsis "Tool to adjust loudness of media files")
3230 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3231 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3232 loudness of audio and video files to the same level.")
3233 (license license:gpl2+)))
3235 (define-public filteraudio
3236 (let ((revision "1")
3237 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3239 (name "filteraudio")
3240 (version (string-append "0.0.0-" revision "."
3241 (string-take commit 7)))
3246 (url "https://github.com/irungentoo/filter_audio.git")
3248 (file-name (string-append name "-" version "-checkout"))
3251 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3252 (build-system gnu-build-system)
3254 '(#:make-flags (list (string-append "PREFIX=" %output)
3256 #:tests? #f ; No tests
3258 (modify-phases %standard-phases
3259 ;; No configure script
3260 (delete 'configure))))
3261 (synopsis "Lightweight audio filtering library")
3262 (description "An easy to use audio filtering library made from webrtc
3263 code, used in @code{libtoxcore}.")
3264 (home-page "https://github.com/irungentoo/filter_audio")
3265 (license license:bsd-3))))
3275 (string-append "http://www.quut.com/" name "/" name
3276 "-" version ".tar.gz"))
3279 "041amvpz8cvxykl3pwqldrzxligmmzcg8ncdnxbg32rlqf3q1xh4"))))
3280 (build-system gnu-build-system)
3282 `(#:test-target "tst"
3284 (modify-phases %standard-phases
3285 (add-before 'install 'pre-install
3287 (let ((out (assoc-ref %outputs "out")))
3288 (substitute* "Makefile"
3289 (("INSTALL_ROOT\t=")
3290 (string-append "INSTALL_ROOT\t=\t" out)))
3291 (mkdir-p (string-append out "/inc"))
3292 (mkdir-p (string-append out "/man"))
3293 (mkdir-p (string-append out "/man/man1"))
3294 (mkdir-p (string-append out "/man/man3"))
3295 (mkdir-p (string-append out "/bin"))
3296 (mkdir-p (string-append out "/lib")))
3298 (add-after 'install 'post-install
3300 (let ((out (assoc-ref %outputs "out")))
3301 (rename-file (string-append out "/inc")
3302 (string-append out "/include"))
3303 (mkdir-p (string-append out "/include/gsm"))
3304 (copy-recursively "inc"
3305 (string-append out "/include/gsm")))
3307 (delete 'configure)))) ; no configure script
3308 (synopsis "GSM 06.10 lossy speech compression library")
3309 (description "This C library provides an encoder and a decoder for the GSM
3310 06.10 RPE-LTP lossy speech compression algorithm.")
3311 (home-page "http://quut.com/gsm/")
3312 (license (license:non-copyleft "file://COPYRIGHT"))))
3314 (define-public python-pyalsaaudio
3316 (name "python-pyalsaaudio")
3320 (uri (pypi-uri "pyalsaaudio" version))
3323 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3324 (build-system python-build-system)
3326 `(#:tests? #f)) ; tests require access to ALSA devices.
3328 `(("alsa-lib" ,alsa-lib)))
3329 (home-page "http://larsimmisch.github.io/pyalsaaudio/")
3330 (synopsis "ALSA wrappers for Python")
3332 "This package contains wrappers for accessing the ALSA API from Python.
3333 It is currently fairly complete for PCM devices, and has some support for
3335 (license license:psfl)))
3337 (define-public python2-pyalsaaudio
3338 (package-with-python2 python-pyalsaaudio))
3340 (define-public bluez-alsa
3345 ;; The tarballs are mere snapshots and don't contain a
3346 ;; bootstrapped build system.
3349 (url "https://github.com/Arkq/bluez-alsa.git")
3350 (commit (string-append "v" version))))
3351 (file-name (string-append name "-" version "-checkout"))
3354 "1qinf41wl2ihx54zmmhanycihwjkn7dn1cicq6pp4rqbiv79b95x"))))
3355 (build-system gnu-build-system)
3357 `(("autoconf" ,autoconf)
3358 ("automake" ,automake)
3359 ("libtool" ,libtool)
3360 ("pkg-config" ,pkg-config)))
3362 `(("alsa-lib" ,alsa-lib)
3366 ("ncurses" ,ncurses)
3369 (home-page "https://github.com/Arkq/bluez-alsa")
3370 (synopsis "Bluetooth ALSA backend")
3371 (description "This project is a rebirth of a direct integration between
3372 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
3373 in favor of 3rd party audio applications. From now on, Bluez acts as a
3374 middleware between an audio application, which implements Bluetooth audio
3375 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
3376 audio profiles in Bluez, so in theory every Bluetooth device (with audio
3377 capabilities) can be connected. In order to access the audio stream, one has
3378 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
3379 on the ALSA software PCM plugin.")
3380 (license license:expat)))
3388 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
3389 "snd-" version ".tar.gz"))
3392 "0sk6iyykwi2mm3f1g4r0iqbsrwk3zmyagp6jjqkh8njbq42cjr1y"))))
3393 (build-system glib-or-gtk-build-system)
3395 `(#:tests? #f ; no tests
3396 #:out-of-source? #f ; for the 'install-doc' phase
3398 (let* ((out (assoc-ref %outputs "out"))
3399 (docdir (string-append out "/share/doc/snd")))
3400 (list "--with-alsa" "--with-jack" "--with-gmp"
3401 (string-append "--with-doc-dir=" docdir)))
3403 (modify-phases %standard-phases
3404 (add-after 'install 'install-doc
3405 (lambda* (#:key outputs #:allow-other-keys)
3406 (let* ((out (assoc-ref outputs "out"))
3407 (doc (string-append out "/share/doc/"
3408 ,name "-" ,version)))
3411 (install-file f doc))
3412 (find-files "." "\\.html$|COPYING"))
3413 (copy-recursively "pix" (string-append doc "/pix"))
3416 `(("pkg-config" ,pkg-config)))
3418 `(("alsa-lib" ,alsa-lib)
3425 ("libsamplerate" ,libsamplerate)
3430 ("timidity++" ,timidity++)
3431 ("vorbis-tools" ,vorbis-tools)
3432 ("wavpack" ,wavpack)))
3433 (synopsis "Sound editor")
3434 (home-page "https://ccrma.stanford.edu/software/snd/")
3436 "Snd is a sound editor modelled loosely after Emacs. It can be
3437 customized and extended using either the s7 Scheme implementation (included in
3438 the Snd sources), Ruby, or Forth.")
3439 (license (license:non-copyleft "file://COPYING"))))
3441 (define-public noise-repellent
3443 (name "noise-repellent")
3448 (url "https://github.com/lucianodato/noise-repellent.git")
3450 (file-name (string-append name "-" version "-checkout"))
3453 "0rd3dlmk3vivjmcr6x2x860y0j1d49c2j95j6ny50v184mwvn11j"))))
3454 (build-system gnu-build-system)
3458 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3459 #:tests? #f ; there are none
3461 (modify-phases %standard-phases
3462 (delete 'configure))))
3467 `(("pkg-config" ,pkg-config)))
3468 (home-page "https://github.com/lucianodato/noise-repellent")
3469 (synopsis "LV2 plugin for broadband noise reduction")
3470 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
3471 the following features:
3474 @item Spectral gating and spectral subtraction suppression rule
3475 @item Adaptive and manual noise thresholds estimation
3476 @item Adjustable noise floor
3477 @item Adjustable offset of thresholds to perform over-subtraction
3478 @item Time smoothing and a masking estimation to reduce artifacts
3479 @item Basic onset detector to avoid transients suppression
3480 @item Whitening of the noise floor to mask artifacts and to recover higher
3482 @item Option to listen to the residual signal
3484 @item Noise profile saved with the session
3487 (license license:lgpl3+)))
3489 (define-public cli-visualizer
3491 (name "cli-visualizer")
3497 (url "https://github.com/dpayne/cli-visualizer.git")
3499 (file-name (git-file-name name version))
3502 "0mirp8bk398di5xyq95iprmdyvplfghxqmrfj7jdnpy554vx7ppc"))))
3503 (build-system gnu-build-system)
3505 `(("which" ,which)))
3508 ("googletest" ,googletest)
3509 ("ncurses" ,ncurses)
3510 ("pulseaudio" ,pulseaudio)))
3512 '(#:test-target "test"
3514 (list (string-append "PREFIX=" %output "/bin/") "ENABLE_PULSE=1")
3516 (modify-phases %standard-phases
3517 (add-after 'unpack 'remove-sudo
3519 (substitute* "install.sh" (("sudo") ""))
3521 (add-before 'check 'set-check-environment
3523 (setenv "CXX" "g++")
3526 (add-before 'install 'make-prefix
3528 (mkdir-p (string-append (assoc-ref %outputs "out") "/bin"))
3530 (add-after 'install 'data
3532 (for-each (lambda (file)
3534 (string-append (assoc-ref %outputs "out")
3536 (find-files "examples"))
3538 (home-page "https://github.com/dpayne/cli-visualizer/")
3539 (synopsis "Command-line audio visualizer")
3540 (description "@code{cli-visualizer} displays fast-Fourier
3541 transforms (FFTs) of the sound being played, as well as other graphical
3543 (license license:expat)))
3552 (url "https://github.com/karlstav/cava.git")
3554 (file-name (git-file-name name version))
3557 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
3558 (build-system gnu-build-system)
3560 `(("autoconf" ,autoconf)
3561 ("automake" ,automake)
3562 ("libtool" ,libtool)))
3565 ("ncurses" ,ncurses)
3566 ("pulseaudio" ,pulseaudio)))
3569 (list (string-append "PREFIX=" %output)
3570 (string-append "FONT_DIR=" %output "/share/consolefonts"))
3572 (let ((lib (string-append %output "/lib")))
3573 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
3575 (modify-phases %standard-phases
3577 (lambda* (#:key outputs #:allow-other-keys)
3578 (setenv "HOME" (getcwd))
3579 (invoke "sh" "autogen.sh")))
3580 (add-before 'build 'make-cava-ldflags
3581 (lambda* (#:key outputs #:allow-other-keys)
3582 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
3584 (add-after 'install 'data
3585 (lambda* (#:key outputs #:allow-other-keys)
3586 (for-each (lambda (file)
3588 (string-append (assoc-ref outputs "out")
3589 "/share/doc/examples")))
3590 (find-files "example_files"))
3592 (home-page "https://karlstav.github.io/cava/")
3593 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
3594 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
3595 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
3596 (license license:expat)))
3598 (define-public fluid-3
3599 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
3606 ;; Only one file is required, but the release bundles the whole
3607 ;; software which is 50MiB as tar and 200MiB unpacked. The website
3608 ;; directly links the soundfont release to the github file download.
3609 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
3610 commit "/share/sound/FluidR3Mono_GM.sf3"))
3611 (file-name (string-append name "-" version ".sf3"))
3614 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
3615 (build-system trivial-build-system)
3617 `(#:modules ((guix build utils))
3620 (use-modules (guix build utils))
3621 (let ((file (assoc-ref %build-inputs "source"))
3622 (out (string-append %output "/share/soundfonts")))
3624 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
3626 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
3627 (synopsis "Pro-quality GM soundfont")
3628 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
3629 (license license:expat))))
3631 (define-public libfdk
3632 (let ((commit "2326faaf8f2cdf2c3a9108ccdaf1d7551aec543e")
3636 ;; The latest upstream revision, with many bug fixes.
3637 (version (git-version "0.1.6" revision commit))
3642 (url "https://github.com/mstorsjo/fdk-aac")
3644 (file-name (git-file-name name version))
3647 "0yy6ndd9d61bwl283vl1r5kva2a4acc0f4r9g0sza156f2abr9ws"))))
3648 (build-system gnu-build-system)
3650 `(("autoconf" ,autoconf)
3651 ("automake" ,automake)
3652 ("libtool" ,libtool)))
3653 (home-page "https://github.com/mstorsjo/fdk-aac")
3654 (synopsis "Fraunhofer FDK AAC library")
3655 (description "FDK is a library for encoding and decoding Advanced Audio
3656 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
3657 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
3658 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
3659 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
3660 library supports sample rates up to 96 kHz and up to eight channels (7.1
3662 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
3663 "https://www.gnu.org/licenses/license-list.html#fdk")))))
3665 (define-public libopenshot-audio
3667 (name "libopenshot-audio")
3672 (url "https://github.com/OpenShot/libopenshot-audio")
3673 (commit (string-append "v" version))))
3674 (file-name (git-file-name name version))
3677 "1fvp6nmf30xzkmcznakh8dv5vn9d7nq051pqcqv638hsfppkmcrl"))))
3678 (build-system cmake-build-system)
3680 `(("alsa-lib" ,alsa-lib)
3681 ;; The following are for JUCE GUI components:
3683 ("freetype" ,freetype)
3684 ("libxrandr" ,libxrandr)
3685 ("libxinerama" ,libxinerama)
3686 ("libxcursor" ,libxcursor)))
3688 `(#:tests? #f ;there are no tests
3690 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
3691 (assoc-ref %build-inputs "freetype")
3692 "/include/freetype2"))))
3693 (home-page "https://openshot.org")
3694 (synopsis "Audio editing and playback for OpenShot")
3695 (description "OpenShot Audio Library (libopenshot-audio) allows
3696 high-quality editing and playback of audio, and is based on the JUCE
3698 (license license:lgpl3+)))
3700 (define-public faudio
3708 (url "https://github.com/FNA-XNA/FAudio.git")
3710 (file-name (string-append name "-" version "-checkout"))
3712 (base32 "1wf6skc5agaikc9qgwk8bx56sad31fafs53lqqn4jmx8i76pl0lw"))))
3714 '(#:tests? #f ; No tests.
3715 #:configure-flags '("-DFFMPEG=ON")))
3716 (build-system cmake-build-system)
3717 (native-inputs `(("pkg-config" ,pkg-config)))
3718 (inputs `(("ffmpeg" ,ffmpeg)
3720 (home-page "https://github.com/FNA-XNA/FAudio")
3721 (synopsis "XAudio reimplementation")
3722 (description "FAudio is an XAudio reimplementation that focuses solely on
3723 developing fully accurate DirectX Audio runtime libraries.")
3724 (license license:zlib)))
3726 (define-public gnaural
3729 (version "20110606")
3733 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
3737 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
3738 (build-system gnu-build-system)
3740 `(("alsa-lib" ,alsa-lib)
3742 ("libsndfile" ,libsndfile)
3743 ("portaudio" ,portaudio)))
3745 `(("pkg-config" ,pkg-config)))
3746 (home-page "http://gnaural.sourceforge.net/")
3747 (synopsis "Binaural beat synthesizer")
3748 (description "Gnaural is a programmable auditory binaural beat synthesizer
3749 intended to be used for brainwave entrainment. Gnaural supports creation of
3750 binaural beat tracks of different frequencies and exporting of tracks into
3751 different audio formats. Gnaural can also be linked over the internet with
3752 other Gnaural instances, allowing synchronous sessions between many users.")
3753 (license license:gpl2+)))
3755 (define-public darkice
3761 (uri (string-append "mirror://sourceforge/darkice/darkice/"
3762 version "/darkice-" version ".tar.gz"))
3764 (base32 "1rlxds7ssq7nk2in4s46xws7xy9ylxsqgcz85hxjgh17lsm0y39c"))
3766 (search-patches "darkice-workaround-fpermissive-error.patch"))))
3767 (build-system gnu-build-system)
3768 (native-inputs `(("pkg-config" ,pkg-config)))
3769 (inputs `(("lame" ,lame)
3770 ("libvorbis" ,libvorbis)
3772 ("twolame" ,twolame)
3773 ("alsa-lib" ,alsa-lib)
3774 ("pulseaudio" ,pulseaudio)
3776 ("libsamplerate" ,libsamplerate)))
3779 (list (string-append "--with-lame-prefix="
3780 (assoc-ref %build-inputs "lame")))))
3781 (home-page "http://www.darkice.org/")
3782 (synopsis "Live audio streamer")
3783 (description "DarkIce is a live audio streamer. It takes audio input from
3784 a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
3785 stream to one or more IceCast and/or ShoutCast servers.")
3786 (license license:gpl3+)))