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>
25 ;;; This file is part of GNU Guix.
27 ;;; GNU Guix is free software; you can redistribute it and/or modify it
28 ;;; under the terms of the GNU General Public License as published by
29 ;;; the Free Software Foundation; either version 3 of the License, or (at
30 ;;; your option) any later version.
32 ;;; GNU Guix is distributed in the hope that it will be useful, but
33 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
34 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 ;;; GNU General Public License for more details.
37 ;;; You should have received a copy of the GNU General Public License
38 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
40 (define-module (gnu packages audio)
41 #:use-module (guix packages)
42 #:use-module (guix download)
43 #:use-module (guix git-download)
44 #:use-module (guix utils)
45 #:use-module ((guix licenses) #:prefix license:)
46 #:use-module (guix build-system gnu)
47 #:use-module (guix build-system waf)
48 #:use-module (guix build-system trivial)
49 #:use-module (guix build-system cmake)
50 #:use-module (guix build-system python)
51 #:use-module (guix build-system glib-or-gtk)
52 #:use-module (gnu packages)
53 #:use-module (gnu packages algebra)
54 #:use-module (gnu packages autotools)
55 #:use-module (gnu packages avahi)
56 #:use-module (gnu packages boost)
57 #:use-module (gnu packages backup)
58 #:use-module (gnu packages base)
59 #:use-module (gnu packages bison)
60 #:use-module (gnu packages check)
61 #:use-module (gnu packages compression)
62 #:use-module (gnu packages curl)
63 #:use-module (gnu packages dbm)
64 #:use-module (gnu packages emacs)
65 #:use-module (gnu packages file)
66 #:use-module (gnu packages flex)
67 #:use-module (gnu packages fltk)
68 #:use-module (gnu packages fontutils)
69 #:use-module (gnu packages gettext)
70 #:use-module (gnu packages glib)
71 #:use-module (gnu packages gtk)
72 #:use-module (gnu packages gnome)
73 #:use-module (gnu packages gnunet) ; libmicrohttpd
74 #:use-module (gnu packages gperf)
75 #:use-module (gnu packages icu4c)
76 #:use-module (gnu packages image)
77 #:use-module (gnu packages ncurses)
78 #:use-module (gnu packages qt)
79 #:use-module (gnu packages libbsd)
80 #:use-module (gnu packages linux)
81 #:use-module (gnu packages libusb)
82 #:use-module (gnu packages llvm)
83 #:use-module (gnu packages mp3) ;taglib
84 #:use-module (gnu packages perl)
85 #:use-module (gnu packages pkg-config)
86 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
87 #:use-module (gnu packages python)
88 #:use-module (gnu packages python-xyz)
89 #:use-module (gnu packages rdf)
90 #:use-module (gnu packages readline)
91 #:use-module (gnu packages sdl)
92 #:use-module (gnu packages serialization)
93 #:use-module (gnu packages telephony)
94 #:use-module (gnu packages tls)
95 #:use-module (gnu packages video)
96 #:use-module (gnu packages vim) ;xxd
97 #:use-module (gnu packages webkit)
98 #:use-module (gnu packages wxwidgets)
99 #:use-module (gnu packages xiph)
100 #:use-module (gnu packages xml)
101 #:use-module (gnu packages xorg)
102 #:use-module (gnu packages maths)
103 #:use-module (gnu packages multiprecision)
104 #:use-module (gnu packages music)
105 #:use-module (srfi srfi-1)
106 #:use-module (srfi srfi-26))
108 (define-public alsa-modular-synth
110 (name "alsa-modular-synth")
114 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
115 "/" version "/ams-" version ".tar.bz2"))
118 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
119 (build-system gnu-build-system)
123 "CXXFLAGS=-std=gnu++11")
125 (modify-phases %standard-phases
126 ;; Insert an extra space between linker flags.
127 (add-before 'configure 'add-missing-space
129 (substitute* "configure"
130 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
131 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
134 `(("alsa-lib" ,alsa-lib)
135 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
136 ;; license incompatibility.
137 ("clalsadrv" ,clalsadrv)
143 ("qttools" ,qttools)))
145 `(("pkg-config" ,pkg-config)))
146 (home-page "http://alsamodular.sourceforge.net/")
147 (synopsis "Realtime modular synthesizer and effect processor")
149 "AlsaModularSynth is a digital implementation of a classical analog
150 modular synthesizer system. It uses virtual control voltages to control the
151 parameters of the modules. The control voltages which control the frequency
152 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
153 Filter) modules follow the convention of 1V / Octave.")
154 (license license:gpl2)))
163 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
166 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
167 (build-system waf-build-system)
169 `(#:tests? #f ; no check target
172 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
176 "--enable-samplerate"
177 ;; TODO: enable compilation with avcodec once available.
182 ("libsndfile" ,libsndfile)
183 ("libsamplerate" ,libsamplerate)
186 `(("pkg-config" ,pkg-config)))
187 (home-page "https://aubio.org/")
188 (synopsis "Library for audio labelling")
190 "aubio is a tool designed for the extraction of annotations from audio
191 signals. Its features include segmenting a sound file before each of its
192 attacks, performing pitch detection, tapping the beat and producing MIDI
193 streams from live audio.")
194 (license license:gpl3+)))
196 (define (ardour-rpath-phase major-version)
197 `(lambda* (#:key outputs #:allow-other-keys)
198 (let ((libdir (string-append (assoc-ref outputs "out")
199 "/lib/ardour" ,major-version)))
200 (substitute* "wscript"
201 (("linker_flags = \\[\\]")
202 (string-append "linker_flags = [\""
205 libdir "/backends" ":"
206 libdir "/engines" ":"
207 libdir "/panners" ":"
208 libdir "/surfaces" ":"
209 libdir "/vamp" "\"]"))))
212 (define-public ardour
219 (url "https://git.ardour.org/ardour/ardour.git")
222 ;; Ardour expects this file to exist at build time. The revision
224 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
225 `(call-with-output-file
226 "libs/ardour/revision.cc"
228 (format port ,(string-append "#include \"ardour/revision.h\"
229 namespace ARDOUR { const char* revision = \"" version "\" ; }"))
233 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
234 (file-name (string-append name "-" version))))
235 (build-system waf-build-system)
237 `(#:configure-flags '("--cxx11" ; required by gtkmm
238 "--no-phone-home" ; don't contact ardour.org
239 "--freedesktop" ; build .desktop file
240 "--test") ; build unit tests
242 (modify-phases %standard-phases
243 (add-after 'unpack 'set-rpath-in-LDFLAGS
244 ,(ardour-rpath-phase (version-major version)))
245 (add-after 'install 'install-freedesktop-files
246 (lambda* (#:key outputs #:allow-other-keys)
247 (let* ((out (assoc-ref outputs "out"))
248 (share (string-append out "/share"))
249 (ver ,(version-major version)))
252 (let ((dir (string-append share "/icons/hicolor/"
253 size "x" size "/apps")))
256 (string-append "gtk2_ardour/resources/Ardour-icon_"
258 (string-append dir "/ardour" ver ".png"))))
259 '("16" "22" "32" "48" "256"))
260 (install-file (string-append "build/gtk2_ardour/ardour"
262 (string-append share "/applications/"))
263 (install-file (string-append "build/gtk2_ardour/ardour"
265 (string-append share "/appdata/")))
270 `(("alsa-lib" ,alsa-lib)
283 ("libarchive" ,libarchive)
284 ("libart-lgpl" ,libart-lgpl)
285 ("libgnomecanvasmm" ,libgnomecanvasmm)
288 ("libsamplerate" ,libsamplerate)
289 ("libsndfile" ,libsndfile)
291 ("libvorbis" ,libvorbis)
297 ("python-rdflib" ,python-rdflib)
298 ("readline" ,readline)
300 ("rubberband" ,rubberband)
308 `(("cppunit" ,cppunit)
309 ("gettext" ,gettext-minimal)
312 ("pkg-config" ,pkg-config)))
313 (home-page "http://ardour.org")
314 (synopsis "Digital audio workstation")
316 "Ardour is a multi-channel digital audio workstation, allowing users to
317 record, edit, mix and master audio and MIDI projects. It is targeted at audio
318 engineers, musicians, soundtrack editors and composers.")
319 (license license:gpl2+)))
321 (define-public audacity
329 (url "https://github.com/audacity/audacity.git")
330 (commit (string-append "Audacity-" version))))
331 (file-name (git-file-name name version))
334 "10maxmjxbmjybj7n4m7a9bbm7g8xxw8f8vbsf7c9ih5j2gr15ihs"))
335 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
336 (modules '((guix build utils)))
338 ;; Remove bundled libraries.
342 (delete-file-recursively (string-append "lib-src/" dir)))
343 '("expat" "ffmpeg" "libflac" "libid3tag" "libmad" "libogg"
344 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
345 "portaudio-v19" "portmidi" "soundtouch" "twolame"
346 ;; FIXME: these libraries have not been packaged yet:
354 ;; FIXME: we have this library, but it differs in that the Slide
355 ;; class does not have a member "getInverseStretchedTime".
359 (build-system glib-or-gtk-build-system)
361 `(("wxwidgets" ,wxwidgets)
363 ("alsa-lib" ,alsa-lib)
369 ("libid3tag" ,libid3tag)
371 ;;("libsbsms" ,libsbsms) ;bundled version is modified
372 ("libsndfile" ,libsndfile)
373 ("soundtouch" ,soundtouch)
374 ("soxr" ,soxr) ;replaces libsamplerate
377 ("libvorbis" ,libvorbis)
379 ("lilv" ,lilv) ;for lv2
380 ("suil" ,suil) ;for lv2
381 ("portaudio" ,portaudio)
382 ("portmidi" ,portmidi)))
384 `(("autoconf" ,autoconf)
385 ("automake" ,automake)
386 ("gettext" ,gettext-minimal) ;for msgfmt
388 ("pkg-config" ,pkg-config)
393 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
394 (libmad (assoc-ref %build-inputs "libmad"))
395 (portmidi (assoc-ref %build-inputs "portmidi")))
397 ;; Loading FFmpeg dynamically is problematic.
398 "--disable-dynamic-loading"
399 ;; SSE instructions are available on Intel systems only.
400 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
404 '("--enable-sse=no"))
405 ;; portmidi, libid3tag and libmad provide no .pc files, so
406 ;; pkg-config fails to find them. Force their inclusion.
407 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
408 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
409 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
410 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
411 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
412 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
413 "EXPAT_USE_SYSTEM=yes"
414 "FFMPEG_USE_SYSTEM=yes"
415 "LAME_USE_SYSTEM=yes"
416 "LIBFLAC_USE_SYSTEM=yes"
417 "LIBID3TAG_USE_SYSTEM=yes"
418 "LIBMAD_USE_SYSTEM=yes"
419 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
420 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
421 "LIBSNDFILE_USE_SYSTEM=yes"
422 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
423 "LIBSOXR_USE_SYSTEM=yes"
424 "LIBTWOLAME_USE_SYSTEM=yes"
425 "LIBVAMP_USE_SYSTEM=yes"
426 "LIBVORBIS_USE_SYSTEM=yes"
428 "PORTAUDIO_USE_SYSTEM=yes"))
430 (modify-phases %standard-phases
431 (add-after 'unpack 'fix-sbsms-check
433 ;; This check is wrong: there is no 2.2.0 release; not even the
434 ;; bundled sources match this release string.
435 (substitute* '("m4/audacity_checklib_libsbsms.m4"
437 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
439 (add-after 'unpack 'use-upstream-headers
440 (lambda* (#:key inputs #:allow-other-keys)
441 (substitute* '("src/NoteTrack.cpp"
444 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
445 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
446 (substitute* "src/prefs/MidiIOPrefs.cpp"
447 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
449 ;; The test suite is not "well exercised" according to the developers,
450 ;; and fails with various errors. See
451 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
453 (home-page "https://www.audacityteam.org/")
454 (synopsis "Software for recording and editing sounds")
456 "Audacity is a multi-track audio editor designed for recording, playing
457 and editing digital audio. It features digital effects and spectrum analysis
459 (license license:gpl2+)))
461 (define-public autotalent
467 (uri (string-append "http://tombaran.info/autotalent-"
471 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
472 (build-system gnu-build-system)
474 `(#:tests? #f ; no check target
476 (modify-phases %standard-phases
477 ;; no configure script
479 (add-before 'install 'prepare-target-directory
480 (lambda* (#:key outputs #:allow-other-keys)
481 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
483 (add-after 'unpack 'override-target-directory
484 (lambda* (#:key outputs #:allow-other-keys)
485 (substitute* "Makefile"
486 (("/usr/lib64/ladspa")
487 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
490 `(("ladspa" ,ladspa)))
491 (home-page "http://tombaran.info/autotalent.html")
492 (synopsis "Pitch-correction LADSPA audio plugin")
494 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
495 controls are allowable notes, strength of correction, LFO for vibrato and
497 ;; All code except the FFT routine is licensed under GPLv2+.
498 ;; The FFT routine is under BSD-3.
499 (license license:gpl2+)))
507 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
512 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
513 (patches (search-patches "azr3.patch"))))
514 (build-system gnu-build-system)
516 `(#:tests? #f ; no check target
519 "CXXFLAGS=-std=gnu++11"
520 "CFLAGS=-std=gnu++11"
521 (string-append "prefix=" %output)
522 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
524 (modify-phases %standard-phases
525 (add-before 'install 'fix-timestamp
527 (let ((early-1980 315619200)) ; 1980-01-02 UTC
528 (utime "azr3.1" early-1980 early-1980))
536 `(("pkg-config" ,pkg-config)))
537 (home-page "http://ll-plugins.nongnu.org/azr3/")
538 (synopsis "Tonewheel organ synthesizer")
540 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
541 with drawbars, distortion and rotating speakers. The organ has three
542 sections, two polyphonic sections with nine drawbars each and one monophonic
543 bass section with five drawbars. A standalone JACK application and LV2
544 plugins are provided.")
545 (license license:gpl2)))
553 (uri (string-append "https://calf-studio-gear.org/files/calf-"
557 "0bn4j1klw2yfxz8clbmasaydifq25rdfsv0n6iisxrzcj1lx7sgh"))))
558 (build-system gnu-build-system)
560 `(("fluidsynth" ,fluidsynth)
571 `(("pkg-config" ,pkg-config)))
573 (list (search-path-specification
574 (variable "LV2_PATH")
575 (files '("lib/lv2")))))
576 (home-page "http://calf.sourceforge.net/")
577 (synopsis "Audio plug-in pack for LV2 and JACK environments")
579 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
580 The suite contains lots of effects (delay, modulation, signal processing,
581 filters, equalizers, dynamics, distortion and mastering effects),
582 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
583 tools (analyzer, mono/stereo tools, crossovers).")
584 ;; calfjackhost is released under GPLv2+
585 ;; The plugins are released under LGPLv2.1+
586 (license (list license:lgpl2.1+ license:gpl2+))))
588 (define-public caps-plugins-lv2
590 (name "caps-plugins-lv2")
591 (version "0.9.24") ; version that has been ported.
594 ;; The Github project hasn't tagged a release.
597 ;; Actually https://github.com/moddevices/caps-lv2.git, but it's
598 ;; missing fixes for newer glibc, so using the origin of a pull
599 ;; request regarding this issue:
600 (url "https://github.com/jujudusud/caps-lv2.git")
601 (commit "9c9478b7fbd8f9714f552ebe2a6866398b0babfb")))
602 (file-name (git-file-name name version))
605 "1idfnazin3cca41zw1a8vwgnxjnkrap7bxxjamjqvgpmvydgcam1"))))
606 (build-system gnu-build-system)
608 `(#:tests? #f ; no check target
610 (modify-phases %standard-phases
611 ;; no configure script
613 (add-after 'unpack 'override-target-directory
614 (lambda* (#:key outputs #:allow-other-keys)
615 (substitute* (find-files "plugins" "Makefile")
616 (("/usr/local")(assoc-ref outputs "out")))
620 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
621 (home-page "https://github.com/moddevices/caps-lv2")
622 (synopsis "LV2 port of the CAPS audio plugin colection")
624 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
625 guitar amplification and a small range of classic effects, signal processors and
626 generators of mostly elementary and occasionally exotic nature.")
627 (license license:gpl3+)))
629 (define-public infamous-plugins
631 (name "infamous-plugins")
636 (url "https://github.com/ssj71/infamousPlugins.git")
637 (commit (string-append "v" version))))
638 (file-name (git-file-name name version))
641 "0hmqk80w4qxq09iag7b7srf2g0wigkyhzq0ywxvhz2iz0hq9k0dh"))))
642 (build-system cmake-build-system)
644 `(#:tests? #f ; there are no tests
646 (modify-phases %standard-phases
647 (add-after 'unpack 'remove-compiler-flags
649 (substitute* (find-files "." "CMakeLists.txt")
650 (("-msse2 -mfpmath=sse") ""))
657 ("zita-resampler" ,zita-resampler)))
659 `(("pkg-config" ,pkg-config)))
660 (home-page "https://ssj71.github.io/infamousPlugins")
661 (synopsis "LV2 plugins for live use")
663 "The infamous plugins are a collection of LV2 audio plugins for live
664 performances. The plugins include a cellular automaton synthesizer, an
665 envelope follower, distortion effects, tape effects and more.")
666 (license license:gpl2+)))
668 (define-public swh-plugins-lv2
670 (name "swh-plugins-lv2")
675 (url "https://github.com/swh/lv2.git")
676 (commit (string-append "v" version))))
677 (file-name (git-file-name name version))
680 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
681 (build-system gnu-build-system)
683 `(#:tests? #f ; no check target
684 #:make-flags (list "CC=gcc"
685 (string-append "PREFIX="
686 (assoc-ref %outputs "out")))
688 (modify-phases %standard-phases
689 ;; no configure script
691 (add-after 'unpack 'patch-makefile-and-enter-directory
692 ;; The default install target doesn't install, but the
693 ;; "install-system" target does.
695 (substitute* "Makefile"
696 (("install:") "install: install-system"))
702 `(("libxslt" ,libxslt)
703 ("pkg-config" ,pkg-config)))
704 (home-page "http://plugin.org.uk")
705 (synopsis "SWH plugins in LV2 format")
707 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
708 classes include: dynamics (compressor, limiter), time (delay, chorus,
709 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
710 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
711 (license license:gpl3+)))
713 (define-public csound
720 (url "https://github.com/csound/csound.git")
722 (file-name (git-file-name name version))
725 "01krxcf0alw9k7p5sv0s707600an4sl7lhw3bymbwgqrj0v2p9z2"))))
726 (build-system cmake-build-system)
728 `(("alsa-lib" ,alsa-lib)
730 ("pulseaudio" ,pulseaudio)
731 ("libsndfile" ,libsndfile)
735 ("gettext" ,gettext-minimal)))
740 (home-page "https://csound.com/")
741 (synopsis "Sound and music computing system")
743 "Csound is a user-programmable and user-extensible sound processing
744 language and software synthesizer.")
745 (license license:lgpl2.1+)))
747 (define-public clalsadrv
754 "http://kokkinizita.linuxaudio.org"
755 "/linuxaudio/downloads/clalsadrv-"
759 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
760 (build-system gnu-build-system)
762 `(#:tests? #f ; no "check" target
763 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
765 (modify-phases %standard-phases
766 (add-after 'unpack 'patch-makefile-and-enter-directory
768 (substitute* "libs/Makefile"
769 (("/sbin/ldconfig") "true")
770 (("^LIBDIR =.*") "LIBDIR = lib\n"))
773 (add-after 'install 'install-symlink
775 (symlink "libclalsadrv.so"
776 (string-append (assoc-ref %outputs "out")
777 "/lib/libclalsadrv.so.2"))
779 ;; no configure script
780 (delete 'configure))))
782 `(("alsa-lib" ,alsa-lib)
784 (home-page "https://kokkinizita.linuxaudio.org")
785 (synopsis "C++ wrapper around the ALSA API")
787 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
789 (license license:gpl2+)))
791 (define-public amb-plugins
798 "http://kokkinizita.linuxaudio.org"
799 "/linuxaudio/downloads/AMB-plugins-"
803 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
804 (build-system gnu-build-system)
806 `(#:tests? #f ; no "check" target
808 (modify-phases %standard-phases
809 ;; no configure script
811 (add-before 'install 'prepare-target-directory
812 (lambda* (#:key outputs #:allow-other-keys)
813 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
815 (add-after 'unpack 'override-target-directory-and-tool-paths
816 (lambda* (#:key outputs #:allow-other-keys)
817 (substitute* "Makefile"
819 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
820 (("/usr/bin/install") (which "install"))
823 (home-page "https://kokkinizita.linuxaudio.org")
824 (synopsis "LADSPA ambisonics plugins")
826 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
827 used within Ardour. Features include: mono and stereo to B-format panning,
828 horizontal rotator, square, hexagon and cube decoders.")
829 (license license:gpl2+)))
831 (define-public mcp-plugins
838 "http://kokkinizita.linuxaudio.org"
839 "/linuxaudio/downloads/MCP-plugins-"
843 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
844 (build-system gnu-build-system)
846 `(#:tests? #f ; no "check" target
848 (modify-phases %standard-phases
849 ;; no configure script
851 (add-before 'install 'prepare-target-directory
852 (lambda* (#:key outputs #:allow-other-keys)
853 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
855 (add-after 'unpack 'override-target-directory
856 (lambda* (#:key outputs #:allow-other-keys)
857 (substitute* "Makefile"
858 (("/usr") (assoc-ref outputs "out")))
860 (home-page "https://kokkinizita.linuxaudio.org")
861 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
863 "This package provides various LADSPA plugins. @code{cs_chorus} and
864 @code{cs_phaser} provide chorus and phaser effects, respectively;
865 @code{mvclpf24} provides four implementations of the low-pass filter used in
866 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
867 high-pass filter by Robert Moog. The filters attempt to accurately emulate
868 the non-linear circuit elements of their original analog counterparts.")
869 (license license:gpl2+)))
871 (define-public rev-plugins
878 "http://kokkinizita.linuxaudio.org"
879 "/linuxaudio/downloads/REV-plugins-"
883 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
884 (build-system gnu-build-system)
886 `(#:tests? #f ; no "check" target
888 (modify-phases %standard-phases
889 ;; no configure script
891 (add-before 'install 'prepare-target-directory
892 (lambda* (#:key outputs #:allow-other-keys)
893 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
895 (add-after 'unpack 'override-target-directory
896 (lambda* (#:key outputs #:allow-other-keys)
897 (substitute* "Makefile"
898 (("/usr") (assoc-ref outputs "out")))
900 (home-page "https://kokkinizita.linuxaudio.org")
901 (synopsis "LADSPA reverb plugin")
903 "This package provides a stereo reverb LADSPA plugin based on the
904 well-known greverb.")
905 (license license:gpl2+)))
907 (define-public fil-plugins
914 "http://kokkinizita.linuxaudio.org"
915 "/linuxaudio/downloads/FIL-plugins-"
919 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
920 (build-system gnu-build-system)
922 `(#:tests? #f ; no "check" target
924 (modify-phases %standard-phases
925 ;; no configure script
927 (add-before 'install 'prepare-target-directory
928 (lambda* (#:key outputs #:allow-other-keys)
929 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
931 (add-after 'unpack 'override-target-directory
932 (lambda* (#:key outputs #:allow-other-keys)
933 (substitute* "Makefile"
934 (("/usr") (assoc-ref outputs "out")))
936 (home-page "https://kokkinizita.linuxaudio.org")
937 (synopsis "LADSPA four-band parametric equalizer plugin")
939 "This package provides a LADSPA plugin for a four-band parametric
940 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
941 gain controls. There is also a global bypass switch and gain control.
943 The 2nd order resonant filters are implemented using a Mitra-Regalia style
944 lattice filter, which is stable even while parameters are being changed.
946 All switches and controls are internally smoothed, so they can be used @code{live}
947 without any clicks or zipper noises. This makes this plugin suitable for use
948 in systems that allow automation of plugin control ports, such as Ardour, or
950 (license license:gpl2+)))
952 (define-public ste-plugins
959 "http://kokkinizita.linuxaudio.org"
960 "/linuxaudio/downloads/STE-plugins-"
964 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
965 (build-system gnu-build-system)
967 `(#:tests? #f ; no "check" target
969 (modify-phases %standard-phases
970 ;; no configure script
972 (add-before 'install 'prepare-target-directory
973 (lambda* (#:key outputs #:allow-other-keys)
974 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
976 (add-after 'unpack 'override-target-directory
977 (lambda* (#:key outputs #:allow-other-keys)
978 (substitute* "Makefile"
979 (("/usr") (assoc-ref outputs "out")))
981 (home-page "https://kokkinizita.linuxaudio.org")
982 (synopsis "LADSPA stereo width plugin")
984 "This package provides a LADSPA plugin to manipulate the stereo width of
986 (license license:gpl2+)))
988 (define-public vco-plugins
995 "http://kokkinizita.linuxaudio.org"
996 "/linuxaudio/downloads/VCO-plugins-"
1000 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1001 (build-system gnu-build-system)
1003 `(#:tests? #f ; no "check" target
1005 (modify-phases %standard-phases
1006 ;; no configure script
1008 (add-before 'install 'prepare-target-directory
1009 (lambda* (#:key outputs #:allow-other-keys)
1010 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1012 (add-after 'unpack 'override-target-directory
1013 (lambda* (#:key outputs #:allow-other-keys)
1014 (substitute* "Makefile"
1015 (("/usr") (assoc-ref outputs "out"))
1016 (("/bin/cp") (which "cp")))
1018 (home-page "https://kokkinizita.linuxaudio.org")
1019 (synopsis "LADSPA plugin for synthesizer oscillators")
1021 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1024 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1025 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
1026 @item Rec-VCO, a square / rectange oscillator
1029 All oscillators are low-pass filtered to provide waveforms similar to the
1030 output of analog synthesizers such as the Moog Voyager.")
1031 (license license:gpl2+)))
1033 (define-public wah-plugins
1035 (name "wah-plugins")
1040 "http://kokkinizita.linuxaudio.org"
1041 "/linuxaudio/downloads/WAH-plugins-"
1042 version ".tar.bz2"))
1045 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1046 (build-system gnu-build-system)
1048 `(#:tests? #f ; no "check" target
1050 (modify-phases %standard-phases
1051 ;; no configure script
1053 (add-before 'install 'prepare-target-directory
1054 (lambda* (#:key outputs #:allow-other-keys)
1055 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1057 (add-after 'unpack 'override-target-directory
1058 (lambda* (#:key outputs #:allow-other-keys)
1059 (substitute* "Makefile"
1060 (("/usr") (assoc-ref outputs "out")))
1062 (home-page "https://kokkinizita.linuxaudio.org")
1063 (synopsis "LADSPA Autowah effect plugin")
1065 "This package provides a LADSPA plugin for a Wah effect with envelope
1067 (license license:gpl2+)))
1069 (define-public g2reverb
1076 "http://kokkinizita.linuxaudio.org"
1077 "/linuxaudio/downloads/g2reverb-"
1078 version ".tar.bz2"))
1081 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1082 (build-system gnu-build-system)
1084 `(#:tests? #f ; no "check" target
1086 (modify-phases %standard-phases
1087 ;; no configure script
1089 (add-before 'install 'prepare-target-directory
1090 (lambda* (#:key outputs #:allow-other-keys)
1091 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1093 (add-after 'unpack 'override-target-directory
1094 (lambda* (#:key outputs #:allow-other-keys)
1095 (substitute* "Makefile"
1096 (("/usr") (assoc-ref outputs "out")))
1098 (home-page "https://kokkinizita.linuxaudio.org")
1099 (synopsis "LADSPA stereo reverb plugin")
1101 "This package provides a LADSPA plugin for a stereo reverb effect.")
1102 (license license:gpl2+)))
1104 (define-public fluidsynth
1111 (url "https://github.com/FluidSynth/fluidsynth.git")
1112 (commit (string-append "v" version))))
1113 (file-name (string-append name "-" version "-checkout"))
1116 "0rv0apxbj0cgm8f8sqf5xr6kdi4q58ph92ip6cg716ha0ca5lr8y"))))
1117 (build-system cmake-build-system)
1119 '(#:tests? #f ; no check target
1121 (modify-phases %standard-phases
1122 (add-after 'unpack 'fix-libdir
1124 ;; Install libraries to /lib, not /lib64.
1125 (substitute* "CMakeLists.txt"
1126 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1130 `(("libsndfile" ,libsndfile)
1131 ("alsa-lib" ,alsa-lib)
1135 ("readline" ,readline)
1138 `(("pkg-config" ,pkg-config)))
1139 (home-page "http://www.fluidsynth.org/")
1140 (synopsis "SoundFont synthesizer")
1142 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1143 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1144 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1145 also play midifiles using a Soundfont.")
1146 (license license:lgpl2.1+)))
1148 ;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1150 (define-public fluidsynth-1
1152 (inherit fluidsynth)
1155 (inherit (package-source fluidsynth))
1157 (url "https://github.com/FluidSynth/fluidsynth")
1158 (commit (string-append "v" version))))
1159 (file-name (git-file-name "fluidsynth" version))
1162 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1164 (define-public faad2
1170 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1171 version "/faad2-" version ".zip"))
1174 "16f3l16c00sg0wkrkm3vzv0gy3g97x309vw788igs0cap2x1ak3z"))))
1175 (build-system gnu-build-system)
1177 `(("autoconf" ,autoconf)
1178 ("automake" ,automake)
1179 ("libtool" ,libtool)
1183 (modify-phases %standard-phases
1186 (substitute* "bootstrap" (("\r\n") "\n"))
1187 (invoke "sh" "bootstrap"))))))
1188 (home-page "http://www.audiocoding.com/faad2.html")
1189 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1191 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
1193 (license license:gpl2)))
1195 (define-public faust
1202 (url "https://github.com/grame-cncm/faust.git")
1203 (commit (string-append "v"
1204 (string-map (lambda (c)
1205 (if (char=? c #\.) #\- c))
1207 (file-name (string-append "faust-" version "-checkout"))
1210 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1211 (build-system gnu-build-system)
1213 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1216 (modify-phases %standard-phases
1217 ;; no "configure" script
1219 ;; Files appear under $out/share/faust that are read-only. The
1220 ;; install phase tries to overwrite them and fails, so we change
1221 ;; the permissions first.
1222 (add-before 'install 'fix-permissions
1224 (for-each (lambda (file)
1226 (find-files "architecture/max-msp" ".*"))
1229 `(("unzip" ,unzip)))
1230 (home-page "http://faust.grame.fr/")
1231 (synopsis "Signal processing language")
1233 "Faust is a programming language for realtime audio signal processing.")
1234 (license license:gpl2+)))
1236 (define-public faust-2
1242 (uri (string-append "https://github.com/grame-cncm/faust/"
1243 "releases/download/" version
1244 "/faust-" version ".tar.gz"))
1247 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
1248 (build-system gnu-build-system)
1250 (substitute-keyword-arguments (package-arguments faust)
1251 ((#:make-flags flags)
1252 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1255 `(("llvm" ,llvm-3.8)
1258 ("ctags" ,emacs-minimal) ; for ctags
1259 ("pkg-config" ,pkg-config)))
1261 `(("libsndfile" ,libsndfile)
1262 ("libmicrohttpd" ,libmicrohttpd)
1263 ("ncurses" ,ncurses)
1264 ("openssl" ,openssl)
1267 (define-public freepats
1270 (version "20060219")
1273 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1274 version ".tar.bz2"))
1277 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1278 (build-system trivial-build-system)
1280 `(#:modules ((guix build utils))
1282 (use-modules (guix build utils))
1283 (let ((out (string-append %output "/share/freepats")))
1284 (setenv "PATH" (string-append
1285 (assoc-ref %build-inputs "bzip2") "/bin:"
1286 (assoc-ref %build-inputs "tar") "/bin"))
1287 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
1289 ;; Use absolute pattern references
1290 (substitute* "freepats.cfg"
1291 (("Tone_000") (string-append out "/Tone_000"))
1292 (("Drum_000") (string-append out "/Drum_000")))
1294 (copy-recursively "." out)
1299 (home-page "http://freepats.zenvoid.org")
1300 (synopsis "GUS compatible patches for MIDI players")
1302 "FreePats is a project to create a free and open set of GUS compatible
1303 patches that can be used with softsynths such as Timidity and WildMidi.")
1304 ;; GPLv2+ with exception for compositions using these patches.
1305 (license license:gpl2+)))
1307 (define-public guitarix
1314 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1318 "0bw7xnrx062nwb1bfj9x660h7069ncmz77szcs8icpqxrvhs7z80"))))
1319 (build-system waf-build-system)
1321 `(#:tests? #f ; no "check" target
1325 ;; Add the output lib directory to the RUNPATH.
1326 (string-append "--ldflags=-Wl,-rpath=" %output "/lib")
1327 "--cxxflags=-std=c++11")
1329 (modify-phases %standard-phases
1330 (add-after 'unpack 'fix-boost-includes
1332 (substitute* "src/headers/gx_internal_plugins.h"
1333 (("namespace gx_jack" m)
1334 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1335 (substitute* '("src/headers/gx_system.h"
1336 "src/headers/gx_parameter.h"
1337 "src/headers/gx_json.h")
1338 (("namespace gx_system" m)
1339 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1342 `(("libsndfile" ,libsndfile)
1355 ("zita-resampler" ,zita-resampler)
1356 ("zita-convolver" ,zita-convolver)))
1360 ("intltool" ,intltool)
1361 ("gettext" ,gettext-minimal)
1362 ("pkg-config" ,pkg-config)))
1363 (native-search-paths
1364 (list (search-path-specification
1365 (variable "LV2_PATH")
1366 (files '("lib/lv2")))))
1367 (home-page "http://guitarix.org/")
1368 (synopsis "Virtual guitar amplifier")
1369 (description "Guitarix is a virtual guitar amplifier running JACK.
1370 Guitarix takes the signal from your guitar as a mono-signal from your sound
1371 card. The input is processed by a main amp and a rack-section. Both can be
1372 routed separately and deliver a processed stereo-signal via JACK. You may
1373 fill the rack with effects from more than 25 built-in modules including stuff
1374 from a simple noise gate to modulation effects like flanger, phaser or
1376 (license license:gpl2+)))
1378 (define-public guitarix-lv2
1379 (package (inherit guitarix)
1380 (name "guitarix-lv2")
1382 (substitute-keyword-arguments (package-arguments guitarix)
1383 ((#:configure-flags flags)
1384 `(cons "--no-standalone" ,flags))))))
1386 (define-public rakarrack
1392 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1393 "rakarrack-" version "/rakarrack-"
1394 version ".tar.bz2"))
1397 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1398 (modules '((guix build utils)))
1401 (substitute* '("src/process.C"
1403 (("#include <Fl/") "#include <FL/"))
1405 (build-system gnu-build-system)
1407 `(("alsa-utils" ,alsa-utils)
1410 ("libxext" ,libxext)
1411 ("libxfixes" ,libxfixes)
1413 ("libxrender" ,libxrender)
1415 ("fontconfig" ,fontconfig)
1416 ("freetype" ,freetype)
1418 ("alsa-lib" ,alsa-lib)
1419 ("libsndfile" ,libsndfile)
1420 ("libsamplerate" ,libsamplerate)
1422 (home-page "http://rakarrack.sourceforge.net/")
1423 (synopsis "Audio effects processor")
1425 "Rakarrack is a richly featured multi-effects processor emulating a
1426 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1427 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1428 distortion modules and many more. Most of the effects engine is built from
1429 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1430 user interface are optimized for guitar, but Rakarrack processes signals in
1431 stereo while it does not apply internal band-limiting filtering, and thus is
1432 well suited to all musical instruments and vocals.")
1433 ;; The code is explicitly licensed under the GPL version 2 only.
1434 (license license:gpl2)))
1442 ;; The original home-page is gone. Download the tarball from an
1443 ;; archive mirror instead.
1444 (uri (list (string-append
1445 "https://web.archive.org/web/20150803095032/"
1446 "http://factorial.hu/system/files/ir.lv2-"
1449 "https://mirrors.kernel.org/gentoo/distfiles/ir.lv2-"
1450 version ".tar.gz")))
1453 "1jh2z01l9m4ar7yz0n911df07dygc7n4cl59p7qdjbh0nvkm747g"))))
1454 (build-system gnu-build-system)
1456 `(#:tests? #f ; no tests
1457 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1458 #:phases (modify-phases %standard-phases
1459 (delete 'configure)))) ; no configure script
1461 `(("libsndfile" ,libsndfile)
1462 ("libsamplerate" ,libsamplerate)
1466 ("zita-convolver" ,zita-convolver)))
1468 `(("pkg-config" ,pkg-config)))
1469 (native-search-paths
1470 (list (search-path-specification
1471 (variable "LV2_PATH")
1472 (files '("lib/lv2")))))
1473 ;; Link to an archived copy of the home-page since the original is gone.
1474 (home-page (string-append "https://web.archive.org/web/20150803095032/"
1475 "http://factorial.hu/plugins/lv2/ir"))
1476 (synopsis "LV2 convolution reverb")
1478 "IR is a low-latency, real-time, high performance signal convolver
1479 especially for creating reverb effects. It supports impulse responses with 1,
1480 2 or 4 channels, in any soundfile format supported by libsndfile.")
1481 (license license:gpl2+)))
1483 (define-public jack-1
1490 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1495 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
1496 (build-system gnu-build-system)
1498 `(#:phases (modify-phases %standard-phases
1499 (add-after 'unpack 'patch-configure
1501 (substitute* "configure"
1502 ;; Install to <out/lib> regardless of platform.
1503 (("libnn=lib64") "libnn=lib"))
1506 `(("alsa-lib" ,alsa-lib)
1507 ("readline" ,readline)))
1508 ;; uuid.h is included in the JACK type headers
1509 ;; db.h is included in the libjack metadata headers
1511 `(("libuuid" ,util-linux)
1514 `(("pkg-config" ,pkg-config)))
1515 (home-page "http://jackaudio.org/")
1516 (synopsis "JACK audio connection kit")
1518 "JACK is a low-latency audio server. It can connect a number of
1519 different applications to an audio device, as well as allowing them to share
1520 audio between themselves. JACK is different from other audio server efforts
1521 in that it has been designed from the ground up to be suitable for
1522 professional audio work. This means that it focuses on two key areas:
1523 synchronous execution of all clients, and low latency operation.")
1524 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1525 ;; licensed under the LGPL in order to allow for proprietary usage.
1526 (license (list license:gpl2+ license:lgpl2.1+))))
1528 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1529 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
1530 ;; program for users who might benefit from the D-BUS features.
1531 (define-public jack-2
1532 (package (inherit jack-1)
1537 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
1538 "download/v" version "/jack2-"
1540 (file-name (string-append name "-" version ".tar.gz"))
1543 "0crf4y9a5j9miw8r5ji4l3w5w0y2frrf7xyfsfdgacnw6vwy5vyy"))))
1544 (build-system waf-build-system)
1546 `(#:python ,python-2
1547 #:tests? #f ; no check target
1548 #:configure-flags '("--dbus"
1551 (modify-phases %standard-phases
1553 'configure 'set-linkflags
1555 ;; Add $libdir to the RUNPATH of all the binaries.
1556 (substitute* "wscript"
1557 ((".*CFLAGS.*-Wall.*" m)
1559 " conf.env.append_unique('LINKFLAGS',"
1560 "'-Wl,-rpath=" %output "/lib')\n")))
1562 (add-after 'install 'wrap-python-scripts
1563 (lambda* (#:key inputs outputs #:allow-other-keys)
1564 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1565 (let* ((out (assoc-ref outputs "out"))
1566 (path (getenv "PYTHONPATH")))
1567 (wrap-program (string-append out "/bin/jack_control")
1568 `("PYTHONPATH" ":" prefix (,path))))
1571 `(("alsa-lib" ,alsa-lib)
1574 ("libsamplerate" ,libsamplerate)
1576 ("python2-dbus" ,python2-dbus)
1577 ("readline" ,readline)))
1579 `(("pkg-config" ,pkg-config)))
1580 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1581 (license (list license:gpl2+ license:lgpl2.1+))))
1589 (uri (string-append "https://download.drobilla.net/jalv-"
1590 version ".tar.bz2"))
1593 "1x2wpzzx2cgvz3dgdcgsj8dr0w3zsasy62mvl199bsdj5fbjaili"))))
1594 (build-system waf-build-system)
1596 `(#:tests? #f ; no check target
1599 (modify-phases %standard-phases
1601 'configure 'set-flags
1603 ;; Compile with C++11, required by gtkmm.
1604 (setenv "CXXFLAGS" "-std=c++11")
1614 `(("pkg-config" ,pkg-config)))
1615 (home-page "https://drobilla.net/software/jalv/")
1616 (synopsis "Simple LV2 host for JACK")
1618 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1619 plugins and exposes their ports as JACK ports, essentially making any LV2
1620 plugin function as a JACK application.")
1621 (license license:isc)))
1623 (define-public ladspa
1630 ;; Since the official link is dead,
1631 ;; we download the tarball from Debian or Internet Archive.
1632 (uri (list (string-append "http://http.debian.net"
1633 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1634 version ".orig.tar.gz")
1635 (string-append "https://web.archive.org/web/20140717172251/"
1636 "http://www.ladspa.org/download/ladspa_sdk_"
1640 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
1641 (build-system gnu-build-system)
1643 `(#:tests? #f ; the "test" target is a listening test only
1645 (modify-phases %standard-phases
1647 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1649 (let ((out (assoc-ref outputs "out")))
1650 (substitute* "makefile"
1651 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1652 (("/usr/include/") (string-append out "/include/"))
1653 (("/usr/bin/") (string-append out "/bin/"))
1654 (("-mkdirhier") "mkdir -p")
1655 (("^CC.*") "CC = gcc\n")
1656 (("^CPP.*") "CPP = g++\n")))
1659 ;; Since the home page is gone, we provide a link to the archived version.
1661 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
1662 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1664 "LADSPA is a standard that allows software audio processors and effects
1665 to be plugged into a wide range of audio synthesis and recording packages.")
1666 (license license:lgpl2.1+)))
1671 (version "0.6.0-rc2")
1674 ;; The tilde is not permitted in the builder name, but is used
1677 "mirror://savannah/lash/lash-"
1678 (string-join (string-split version #\-) "~")
1680 (file-name (string-append name "-" version ".tar.bz2"))
1683 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1684 (build-system gnu-build-system)
1687 (modify-phases %standard-phases
1688 ;; lashd embeds an ancient version of sigsegv so we just skip it
1689 (add-after 'unpack 'skip-lashd
1691 (substitute* '("Makefile.am" "Makefile.in")
1694 #:configure-flags '("--disable-static")))
1699 ("readline" ,readline)
1700 ("python" ,python-2)))
1701 ;; According to pkg-config, packages depending on lash also need to have
1702 ;; at least the following packages declared as inputs.
1704 `(("alsa-lib" ,alsa-lib)
1706 ("libxml2" ,libxml2)))
1708 `(("pkg-config" ,pkg-config)))
1709 (home-page "https://www.nongnu.org/lash/")
1710 (synopsis "Audio application session manager")
1712 "LASH is a session management system for audio applications. It allows
1713 you to save and restore audio sessions consisting of multiple interconneced
1714 applications, restoring program state (i.e. loaded patches) and the
1715 connections between them.")
1716 (license license:gpl2+)))
1718 (define-public libbs2b
1724 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1725 "/libbs2b-" version ".tar.lzma"))
1728 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1729 (build-system gnu-build-system)
1730 (native-inputs `(("pkg-config" ,pkg-config)))
1731 (inputs `(("libsndfile" ,libsndfile)))
1732 (home-page "https://sourceforge.net/projects/bs2b/")
1733 (synopsis "Bauer stereophonic-to-binaural DSP")
1735 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1736 designed to improve headphone listening of stereo audio records. Recommended
1737 for headphone prolonged listening to disable superstereo fatigue without
1738 essential distortions.")
1739 (license license:expat)))
1741 (define-public liblo
1747 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1748 "/liblo-" version ".tar.gz"))
1751 "06wdjzxjdshr6hyl4c94yvg3jixiylap8yjs8brdfpm297gck9rh"))))
1752 (build-system gnu-build-system)
1754 `(;; liblo test FAILED
1755 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1757 (home-page "http://liblo.sourceforge.net")
1758 (synopsis "Implementation of the Open Sound Control protocol")
1760 "liblo is a lightweight library that provides an easy to use
1761 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
1762 (license license:lgpl2.1+)))
1764 (define-public python-pyaudio
1766 (name "python-pyaudio")
1771 (uri (pypi-uri "PyAudio" version))
1774 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
1775 (build-system python-build-system)
1777 `(("portaudio" ,portaudio)))
1778 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
1779 (synopsis "Bindings for PortAudio v19")
1780 (description "This package provides bindings for PortAudio v19, the
1781 cross-platform audio input/output stream library.")
1782 (license license:expat)))
1784 (define-public python2-pyaudio
1785 (package-with-python2 python-pyaudio))
1787 (define-public python-pyliblo
1789 (name "python-pyliblo")
1793 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1797 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1798 (build-system python-build-system)
1799 (arguments `(#:tests? #f)) ;no tests
1801 `(("python-cython" ,python-cython)))
1803 `(("liblo" ,liblo)))
1804 (home-page "http://das.nasophon.de/pyliblo/")
1805 (synopsis "Python bindings for liblo")
1807 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1808 library. It supports almost the complete functionality of liblo, allowing you
1809 to send and receive OSC messages using a nice and simple Python API. Also
1810 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1811 (license license:lgpl2.1+)))
1813 (define-public python2-pyliblo
1814 (package-with-python2 python-pyliblo))
1822 (uri (string-append "https://download.drobilla.net/lilv-"
1823 version ".tar.bz2"))
1826 "0f24cd7wkk5l969857g2ydz2kjjrkvvddg1g87xzzs78lsvq8fy3"))))
1827 (build-system waf-build-system)
1829 `(#:tests? #f ; no check target
1831 (modify-phases %standard-phases
1833 'configure 'set-ldflags
1834 (lambda* (#:key outputs #:allow-other-keys)
1836 (string-append "-Wl,-rpath="
1837 (assoc-ref outputs "out") "/lib"))
1839 ;; Required by lilv-0.pc.
1844 ("sratom" ,sratom)))
1846 `(("pkg-config" ,pkg-config)))
1847 (home-page "https://drobilla.net/software/lilv/")
1848 (synopsis "Library to simplify use of LV2 plugins in applications")
1850 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1851 for applications. Lilv is the successor to SLV2, rewritten to be
1852 significantly faster and have minimal dependencies.")
1853 (license license:isc)))
1861 (uri (string-append "http://lv2plug.in/spec/lv2-"
1862 version ".tar.bz2"))
1865 "1ppippbpdpv13ibs06b0bixnazwfhiw0d0ja6hx42jnkgdyp5hyy"))))
1866 (build-system waf-build-system)
1868 `(#:tests? #f ; no check target
1869 #:configure-flags '("--no-plugins")))
1871 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1872 `(("libsndfile" ,libsndfile)))
1874 `(("pkg-config" ,pkg-config)))
1875 (home-page "http://lv2plug.in/")
1876 (synopsis "LV2 audio plugin specification")
1878 "LV2 is an open specification for audio plugins and host applications.
1879 At its core, LV2 is a simple stable interface, accompanied by extensions which
1880 add functionality to support the needs of increasingly powerful audio
1882 (license license:isc)))
1884 (define-public lv2-mda-piano
1886 (name "lv2-mda-piano")
1891 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
1893 (file-name (git-file-name name version))
1896 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1897 (build-system gnu-build-system)
1899 `(#:make-flags (list
1901 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1902 #:tests? #f ; no check target
1903 #:phases (modify-phases %standard-phases (delete 'configure))))
1908 `(("pkg-config" ,pkg-config)))
1909 (native-search-paths
1910 (list (search-path-specification
1911 (variable "LV2_PATH")
1912 (files '("lib/lv2")))))
1913 (home-page "http://elephly.net/lv2/mdapiano.html")
1914 (synopsis "LV2 port of the mda Piano plugin")
1915 (description "An LV2 port of the mda Piano VSTi.")
1916 (license license:gpl3+)))
1918 (define-public lv2-mda-epiano
1919 (package (inherit lv2-mda-piano)
1920 (name "lv2-mda-epiano")
1922 `(#:make-flags (list
1924 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1925 #:tests? #f ; no check target
1926 #:phases (modify-phases %standard-phases (delete 'configure))))
1927 (home-page "http://elephly.net/lv2/mdaepiano.html")
1928 (synopsis "LV2 port of the mda EPiano plugin")
1929 (description "An LV2 port of the mda EPiano VSTi.")))
1938 (url "https://github.com/lvtk/lvtk.git")
1940 (file-name (git-file-name name version))
1943 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
1944 (build-system waf-build-system)
1946 `(#:tests? #f ; no check target
1949 (list (string-append "--boost-includes="
1950 (assoc-ref %build-inputs "boost")
1952 #:phases (modify-phases %standard-phases
1954 'configure 'set-flags
1955 (lambda* (#:key inputs #:allow-other-keys)
1956 ;; See e.g. https://github.com/lvtk/lvtk/issues/21
1959 "-L" (assoc-ref inputs "boost") "/lib "
1962 (substitute* '("src/wscript_build"
1963 "examples/wscript_build")
1964 (("cxxflags.*= \\[" line)
1965 (string-append line "\"-std=c++11\", ")))
1972 `(("pkg-config" ,pkg-config)))
1973 (home-page "https://github.com/lvtk/lvtk")
1974 (synopsis "C++ libraries for LV2 plugins")
1976 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
1977 extensions into easy to use C++ classes. It is the successor of
1979 (license license:gpl3+)))
1981 (define-public openal
1988 "http://openal-soft.org/openal-releases/openal-soft-"
1989 version ".tar.bz2"))
1992 "1sdjhkz2gd6lbnwphi1b6aw3br4wv2lik5vnqh6mxfc8a7zqfbsw"))))
1993 (build-system cmake-build-system)
1995 `(#:tests? #f ; no check target
1997 (modify-phases %standard-phases
1999 'unpack 'use-full-library-paths
2000 (lambda* (#:key inputs #:allow-other-keys)
2001 (substitute* "Alc/backends/pulseaudio.c"
2002 (("#define PALIB \"libpulse\\.so\\.0\"")
2003 (string-append "#define PALIB \""
2004 (assoc-ref inputs "pulseaudio")
2005 "/lib/libpulse.so.0"
2007 (substitute* "Alc/backends/alsa.c"
2008 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2009 (string-append "LoadLib(\""
2010 (assoc-ref inputs "alsa-lib")
2011 "/lib/libasound.so.2"
2015 `(("alsa-lib" ,alsa-lib)
2016 ("pulseaudio" ,pulseaudio)))
2017 (synopsis "3D audio API")
2019 "OpenAL provides capabilities for playing audio in a virtual 3D
2020 environment. Distance attenuation, doppler shift, and directional sound
2021 emitters are among the features handled by the API. More advanced effects,
2022 including air absorption, occlusion, and environmental reverb, are available
2023 through the EFX extension. It also facilitates streaming audio, multi-channel
2024 buffers, and audio capture.")
2025 (home-page "http://openal-soft.org/")
2026 (license license:lgpl2.0+)))
2028 (define-public freealut
2034 ;; Upstream url is unclear, many systems use Fedora, there is also
2035 ;; https://github.com/vancegroup/freealut though the status of it
2036 ;; (official? unofficial?) is not clear.
2038 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2039 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2040 "-" version ".tar.gz"))
2043 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2044 (build-system cmake-build-system)
2046 `(#:tests? #f)) ; no check target
2048 `(("openal" ,openal)))
2049 (synopsis "Free implementation of OpenAL's ALUT standard")
2050 (description "freealut is the OpenAL Utility Toolkit.")
2051 (home-page "http://kcat.strangesoft.net/openal.html")
2052 (license license:lgpl2.0)))
2054 (define-public patchage
2060 (uri (string-append "https://download.drobilla.net/patchage-"
2065 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
2066 (build-system waf-build-system)
2068 `(#:tests? #f ; no check target
2069 #:python ,python-2))
2071 `(("alsa-lib" ,alsa-lib)
2077 ("dbus-glib" ,dbus-glib)))
2079 `(("pkg-config" ,pkg-config)))
2080 (home-page "https://drobilla.net/software/patchage/")
2081 (synopsis "Modular patch bay for audio and MIDI systems")
2083 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2085 (license license:gpl3+)))
2087 (define-public pcaudiolib
2091 (home-page "https://github.com/espeak-ng/pcaudiolib")
2094 (uri (git-reference (url home-page) (commit version)))
2095 (file-name (git-file-name name version))
2098 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2099 (build-system gnu-build-system)
2101 `(#:configure-flags '("--disable-static")))
2103 `(("autoconf" ,autoconf)
2104 ("automake" ,automake)
2105 ("libtool" ,libtool)
2106 ("pkg-config" ,pkg-config)
2109 `(("alsa-lib" ,alsa-lib)
2110 ("pulseaudio" ,pulseaudio)))
2111 (synopsis "Portable C audio library")
2113 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2114 different audio devices such as ALSA or PulseAudio.")
2115 (license (list license:gpl3+
2116 ;; The bundled TPCircularBuffer uses a custom license.
2117 (license:non-copyleft
2118 "file://src/TPCircularBuffer/README.markdown")))))
2120 (define-public qjackctl
2126 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2127 version "/qjackctl-" version ".tar.gz"))
2130 "1g6a5j74p45yisl28bw4fcc9nr6b710ikk459p4mp6djh9gs8v95"))))
2131 (build-system gnu-build-system)
2133 '(#:tests? #f)) ; no check target
2136 ("alsa-lib" ,alsa-lib)
2138 ("qtx11extras" ,qtx11extras)))
2140 `(("pkg-config" ,pkg-config)
2141 ("qttools" ,qttools)))
2142 (home-page "https://qjackctl.sourceforge.io/")
2143 (synopsis "Jack server control application")
2144 (description "Control a Jack server. Allows you to plug various sources
2145 into various outputs and to start, stop and configure jackd")
2146 (license license:gpl2+)))
2148 (define-public qjackrcd
2155 (url "https://github.com/orouits/qjackrcd.git")
2156 (commit (string-append "v" version))))
2157 (file-name (git-file-name name version))
2160 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2161 (build-system gnu-build-system)
2164 (modify-phases %standard-phases
2166 (lambda* (#:key outputs #:allow-other-keys)
2168 (string-append "PREFIX="
2169 (assoc-ref outputs "out"))))))))
2171 `(("qtbase" ,qtbase))) ; for qmake
2174 ("libsndfile" ,libsndfile)
2175 ("qtbase" ,qtbase)))
2176 (home-page "https://sourceforge.net/projects/qjackrcd/")
2177 (synopsis "Stereo audio recorder for JACK")
2178 (description "QJackRcd is a simple graphical stereo recorder for JACK
2179 supporting silence processing for automatic pause, file splitting, and
2180 background file post-processing.")
2181 (license license:gpl2+)))
2183 (define-public supercollider
2185 (name "supercollider")
2190 "https://github.com/supercollider/supercollider"
2191 "/releases/download/Version-" version
2192 "/SuperCollider-" version "-Source-linux.tar.bz2"))
2195 "0ynz1ydcpsd5h57h1n4a7avm6p1cif5a8rkmz4qpr46pr8z9p6iq"))))
2196 (build-system cmake-build-system)
2198 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
2200 "-DSC_EL=off") ;scel is packaged individually as
2202 #:modules ((guix build utils)
2203 (guix build cmake-build-system)
2206 (modify-phases %standard-phases
2207 (add-after 'unpack 'fix-build-with-boost-1.68
2209 (substitute* "server/supernova/utilities/time_tag.hpp"
2210 (("(time_duration offset = .+ microseconds\\().*" _ m)
2211 (string-append m "static_cast<long>(get_nanoseconds()/1000));\n")))
2213 (add-after 'unpack 'rm-bundled-libs
2215 ;; The build system doesn't allow us to unbundle the following
2216 ;; libraries. hidapi is also heavily patched and upstream not
2217 ;; actively maintained.
2218 (let ((keep-dirs '("nova-simd" "nova-tt" "hidapi" "TLSF-2.4.6"
2219 "oscpack_1_1_0" "." "..")))
2220 (with-directory-excursion "./external_libraries"
2222 delete-file-recursively
2225 (and (eq? (stat:type (stat x)) 'directory)
2226 (not (member (basename x) keep-dirs))))))))
2228 ;; Some tests are broken (see:
2229 ;; https://github.com/supercollider/supercollider/issues/3555 and
2230 ;; https://github.com/supercollider/supercollider/issues/1736
2231 (add-after 'rm-bundled-libs 'disable-broken-tests
2233 (substitute* "testsuite/server/supernova/CMakeLists.txt"
2234 (("server_test.cpp")
2236 (("perf_counter_test.cpp")
2238 (delete-file "testsuite/server/supernova/server_test.cpp")
2239 (delete-file "testsuite/server/supernova/perf_counter_test.cpp")
2240 (substitute* "testsuite/CMakeLists.txt"
2241 (("add_subdirectory\\(sclang\\)")
2243 (delete-file "testsuite/sclang/CMakeLists.txt")
2246 `(("pkg-config" ,pkg-config)))
2249 ("libsndfile" ,libsndfile)
2252 ("readline" ,readline) ;readline support for sclang's CLI
2253 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2254 ("eudev" ,eudev) ;for user interactions with devices
2255 ("avahi" ,avahi) ;zeroconf service discovery support
2258 ("boost-sync" ,boost-sync)
2259 ("yaml-cpp" ,yaml-cpp)))
2260 (home-page "https://github.com/supercollider/supercollider")
2261 (synopsis "Synthesis engine and programming language")
2262 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2263 @code{supernova}) and programming language (@code{sclang}). It can be used
2264 for experimenting with sound synthesis and algorithmic composition.
2266 SuperCollider requires jackd to be installed in your user profile and your
2267 user must be allowed to access the realtime features of the kernel. Search
2268 for \"realtime\" in the index of the Guix manual to learn how to achieve this
2269 using Guix System.")
2270 (license license:gpl2+)))
2278 (uri (string-append "https://download.drobilla.net/raul-"
2279 version ".tar.bz2"))
2282 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2283 (build-system waf-build-system)
2285 `(#:python ,python-2
2286 #:tests? #f)) ; no check target
2291 `(("pkg-config" ,pkg-config)))
2292 (home-page "https://drobilla.net/software/raul/")
2293 (synopsis "Real-time audio utility library")
2295 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2296 aimed at audio/musical applications.")
2297 (license license:gpl2+)))
2299 (define-public raul-devel
2300 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2302 (package (inherit raul)
2304 (version (string-append "0.8.9-" revision "."
2305 (string-take commit 9)))
2309 (url "https://git.drobilla.net/raul.git")
2311 (file-name (string-append name "-" version "-checkout"))
2314 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2316 (define-public rubberband
2323 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2326 (file-name (string-append name "-" version ".tar.bz2"))
2329 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
2330 (build-system gnu-build-system)
2332 `(#:tests? #f ; no check target
2334 (modify-phases %standard-phases
2335 (add-after 'unpack 'skip-jni-installation
2336 ;; ‘make install’ unconditionally installs librubberband-jni.so,
2337 ;; which is never built by ‘make all’. Skip it.
2339 (substitute* "Makefile.in"
2340 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
2343 `(("ladspa" ,ladspa)
2344 ("libsamplerate" ,libsamplerate)
2347 `(("pkg-config" ,pkg-config)))
2348 (home-page "https://breakfastquay.com/rubberband/")
2349 (synopsis "Audio time-stretching and pitch-shifting library")
2351 "Rubber Band is a library and utility program that permits changing the
2352 tempo and pitch of an audio recording independently of one another.")
2353 (license license:gpl2+)))
2355 (define-public rtmidi
2362 (url "https://github.com/powertab/rtmidi.git")
2364 (file-name (git-file-name name version))
2367 "106v177y3nrjv2l1yskch4phpqd8h97b67zj0jiq9pc3c69jr1ay"))))
2368 (build-system gnu-build-system)
2370 `(#:tests? #f ;no "check" target
2372 (modify-phases %standard-phases
2373 (add-before 'build 'fix-makefile
2375 (substitute* "Makefile"
2377 (("RtMidi.h RtError.h") "RtMidi.h"))
2379 (add-before 'install 'make-target-dirs
2381 (let ((out (assoc-ref %outputs "out")))
2382 (mkdir-p (string-append out "/bin"))
2383 (mkdir (string-append out "/lib"))
2384 (mkdir (string-append out "/include")))
2388 ("alsa-lib" ,alsa-lib)))
2390 `(("autoconf" ,autoconf)
2391 ("automake" ,automake)
2392 ("libtool" ,libtool)
2393 ("pkg-config" ,pkg-config)))
2394 (home-page "https://github.com/powertab/rtmidi")
2395 (synopsis "Cross-platform MIDI library for C++")
2397 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2398 classes) that provide a common cross-platform API for realtime MIDI
2400 (license license:expat)))
2402 (define-public sratom
2408 (uri (string-append "https://download.drobilla.net/sratom-"
2409 version ".tar.bz2"))
2412 "0lz883ravxjf7r9wwbx2gx9m8vhyiavxrl9jdxfppjxnsralll8a"))))
2413 (build-system waf-build-system)
2414 (arguments `(#:tests? #f)) ; no check target
2420 `(("pkg-config" ,pkg-config)))
2421 (home-page "https://drobilla.net/software/sratom/")
2422 (synopsis "Library for serialising LV2 atoms to/from RDF")
2424 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2425 the Turtle syntax.")
2426 (license license:isc)))
2434 (uri (string-append "https://download.drobilla.net/suil-"
2435 version ".tar.bz2"))
2438 "00d43m0nai63ajb7rkm9v084jcih206y17ib3160zcvzc885ji4z"))))
2439 (build-system waf-build-system)
2441 `(#:tests? #f ; no check target
2443 '("CXXFLAGS=-std=gnu++11")))
2450 `(("pkg-config" ,pkg-config)))
2451 (home-page "https://drobilla.net/software/suil/")
2452 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2454 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2456 Suil makes it possible to load a UI of a toolkit in a host using another
2457 toolkit. The API is designed such that hosts do not need to explicitly
2458 support specific toolkits – if Suil supports a particular toolkit, then UIs in
2459 that toolkit will work in all hosts that use Suil automatically.
2461 Suil currently supports every combination of Gtk, Qt, and X11.")
2462 (license license:isc)))
2464 (define-public timidity++
2470 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2471 "/TiMidity++-" version
2472 "/TiMidity++-" version ".tar.bz2"))
2475 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2476 (build-system gnu-build-system)
2479 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2483 (string-append "--with-default-path="
2484 (assoc-ref %outputs "out") "/etc/timidity"))
2486 (modify-phases %standard-phases
2487 (add-after 'install 'install-config
2489 (let ((out (string-append (assoc-ref %outputs "out")
2492 (call-with-output-file
2493 (string-append out "/timidity.cfg")
2495 (format port (string-append "source "
2496 (assoc-ref %build-inputs "freepats")
2497 "/share/freepats/freepats.cfg")))))
2500 `(("alsa-lib" ,alsa-lib)
2506 ("ncurses" ,ncurses)
2507 ("freepats" ,freepats)))
2509 `(("pkg-config" ,pkg-config)))
2510 (home-page "http://timidity.sourceforge.net/")
2511 (synopsis "Software synthesizer for playing MIDI files")
2513 "TiMidity++ is a software synthesizer. It can play MIDI files by
2514 converting them into PCM waveform data; give it a MIDI data along with digital
2515 instrument data files, then it synthesizes them in real-time, and plays. It
2516 can not only play sounds, but also can save the generated waveforms into hard
2517 disks as various audio file formats.")
2518 (license license:gpl2+)))
2527 "https://code.soundsoftware.ac.uk"
2528 "/attachments/download/1520/vamp-plugin-sdk-"
2532 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
2533 (build-system gnu-build-system)
2535 `(#:tests? #f ; no check target
2537 (modify-phases %standard-phases
2538 (add-after 'install 'remove-libvamp-hostsdk.la
2539 (lambda* (#:key outputs #:allow-other-keys)
2540 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2541 (for-each delete-file
2542 (let ((out (assoc-ref outputs "out")))
2543 (list (string-append out "/lib/libvamp-sdk.la")
2544 (string-append out "/lib/libvamp-hostsdk.la"))))
2547 `(("libsndfile" ,libsndfile)))
2549 `(("pkg-config" ,pkg-config)))
2550 (home-page "http://vamp-plugins.org")
2551 (synopsis "Modular and extensible audio processing system")
2553 "Vamp is an audio processing plugin system for plugins that extract
2554 descriptive information from audio data — typically referred to as audio
2555 analysis plugins or audio feature extraction plugins.")
2558 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
2560 (define-public libsbsms
2567 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2568 "/libsbsms-" version ".tar.gz"))
2570 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2571 (build-system gnu-build-system)
2572 (native-inputs `(("automake" ,automake)))
2575 ;; Disable the use of SSE unless on x86_64.
2576 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2577 (%current-system))))
2581 (modify-phases %standard-phases
2583 'unpack 'fix-ar-lib-path
2584 (lambda* (#:key inputs #:allow-other-keys)
2585 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2586 (delete-file "ar-lib")
2588 (string-append (assoc-ref inputs "automake") "/share/automake-"
2589 ,(package-version automake) "/ar-lib")
2592 (home-page "http://sbsms.sourceforge.net/")
2593 (synopsis "Library for time stretching and pitch scaling of audio")
2595 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2596 stretching and pitch scaling of audio. This package contains the library.")
2597 ;; There is no explicit declaration of a license, but a COPYING file
2599 (license license:gpl2)))
2601 (define-public wavpack
2607 (uri (string-append "http://www.wavpack.com/"
2608 name "-" version ".tar.bz2"))
2609 (patches (search-patches "wavpack-CVE-2018-6767.patch"
2610 "wavpack-CVE-2018-7253.patch"
2611 "wavpack-CVE-2018-7254.patch"))
2614 "0i19c6krc0p9krwrqy9s5xahaafigqzxcn31piidmlaqadyn4f8r"))))
2615 (build-system gnu-build-system)
2616 (home-page "http://www.wavpack.com/")
2617 (synopsis "Hybrid lossless audio codec")
2619 "WavPack is an audio compression format with lossless, lossy and hybrid
2620 compression modes. This package contains command-line programs and library to
2621 encode and decode wavpack files.")
2622 (license license:bsd-3)))
2624 (define-public libmodplug
2631 "mirror://sourceforge/modplug-xmms/"
2632 name "/" version "/" name "-" version ".tar.gz"))
2635 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
2636 (build-system gnu-build-system)
2637 (home-page "http://modplug-xmms.sourceforge.net/")
2638 (synopsis "Mod file playing library")
2640 "Libmodplug renders mod music files as raw audio data, for playing or
2641 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2642 supported. Optional features include high-quality resampling, bass expansion,
2643 surround and reverb.")
2644 (license license:public-domain)))
2646 (define-public libxmp
2652 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
2653 name "-" version ".tar.gz"))
2656 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
2657 (build-system gnu-build-system)
2658 (home-page "http://xmp.sourceforge.net/")
2659 (synopsis "Module player library")
2661 "Libxmp is a library that renders module files to PCM data. It supports
2662 over 90 mainstream and obscure module formats including Protracker (MOD),
2663 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2664 (license license:lgpl2.1+)))
2672 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
2673 name "-" version ".tar.gz"))
2676 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
2677 (build-system gnu-build-system)
2679 `(("pkg-config" ,pkg-config)))
2681 `(("libxmp" ,libxmp)
2682 ("pulseaudio" ,pulseaudio)))
2683 (home-page "http://xmp.sourceforge.net/")
2684 (synopsis "Extended module player")
2686 "Xmp is a portable module player that plays over 90 mainstream and
2687 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2688 Tracker 3 S3M and Impulse Tracker IT files.")
2689 (license license:gpl2+)))
2691 (define-public soundtouch
2699 (url "https://gitlab.com/soundtouch/soundtouch.git")
2701 (file-name (git-file-name name version))
2703 (base32 "0p6jzgfgqw061702dmd2b6r4arz48ac3mmx2qkvvzf8s5jjzykdh"))))
2704 (build-system gnu-build-system)
2706 `(("autoconf" ,autoconf)
2707 ("automake" ,automake)
2708 ("libtool" ,libtool)
2710 (home-page "http://www.surina.net/soundtouch/")
2712 "Audio processing library for changing tempo, pitch and playback rate")
2714 "SoundTouch is an audio processing library for changing the tempo, pitch
2715 and playback rates of audio streams or audio files. It is intended for
2716 application developers writing sound processing tools that require tempo/pitch
2717 control functionality, or just for playing around with the sound effects.")
2718 (license license:lgpl2.1+)))
2726 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2727 name "-" version ".tar.bz2"))
2730 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2731 (build-system gnu-build-system)
2734 ;; The upstream asks to identify the distribution to diagnose SoX
2736 '("--with-distro=Guix System Distribution")))
2738 `(("pkg-config" ,pkg-config)))
2740 `(("alsa-lib" ,alsa-lib)
2744 ("libid3tag" ,libid3tag)
2745 ("libltdl" ,libltdl)
2748 ("libvorbis" ,libvorbis)
2749 ("pulseaudio" ,pulseaudio)))
2750 (home-page "http://sox.sourceforge.net")
2751 (synopsis "Sound processing utility")
2753 "SoX (Sound eXchange) is a command line utility that can convert
2754 various formats of computer audio files to other formats. It can also
2755 apply various effects to these sound files, and, as an added bonus, SoX
2756 can play and record audio files.")
2757 ;; sox.c is distributed under GPL, while the files that make up
2758 ;; libsox are licensed under LGPL.
2759 (license (list license:gpl2+ license:lgpl2.1+))))
2769 (string-append "mirror://sourceforge/soxr/soxr-" version
2772 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
2773 (build-system cmake-build-system)
2774 (arguments '(#:tests? #f)) ;no 'check' target
2775 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
2776 (synopsis "One-dimensional sample-rate conversion library")
2778 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2779 conversion. It may be used, for example, to resample PCM-encoded audio.")
2780 (license license:lgpl2.1+)))
2782 (define-public twolame
2789 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2790 "/twolame-" version ".tar.gz"))
2792 (base32 "0ahiqqng5pidwhj1wzph4vxxgxxgcfa3gl0gywipzx2ii7s35wwq"))
2793 (modules '((guix build utils)))
2794 ;; The tests break with Perl 5.24:
2795 ;; https://github.com/njh/twolame/issues/21
2796 ;; TODO: Remove this snippet when upgrading twolame.
2799 (substitute* "tests/test.pl" (("\\(@_\\)") "($_[0])"))
2801 (build-system gnu-build-system)
2803 `(("libsndfile" ,libsndfile)))
2806 ("which" ,which))) ;used in tests/test.pl
2807 (home-page "http://www.twolame.org/")
2808 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2810 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2811 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2813 (license license:lgpl2.1+)))
2815 (define-public portaudio
2818 (version "190600.20161030")
2823 "http://www.portaudio.com/archives/pa_stable_v"
2824 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2827 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
2828 (patches (search-patches "portaudio-audacity-compat.patch"))))
2829 (build-system gnu-build-system)
2831 ;; TODO: Add ASIHPI.
2832 `(("alsa-lib" ,alsa-lib)
2834 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
2837 `(("autoconf" ,autoconf)
2838 ("automake" ,automake)
2839 ("libtool" ,libtool)
2840 ("pkg-config" ,pkg-config)))
2842 '(#:tests? #f ;no 'check' target
2843 #:configure-flags '("--with-pic")
2845 (modify-phases %standard-phases
2846 ;; This is needed for linking the static libraries
2847 (add-after 'unpack 'build-only-position-independent-code
2849 (substitute* "configure.in"
2850 (("AC_PROG_LIBTOOL" m)
2851 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
2852 (delete-file "configure")
2854 ;; Some headers are not installed by default, but are needed by
2855 ;; packages like Kaldi.
2856 (add-after 'install 'install-missing-headers
2857 (lambda* (#:key outputs #:allow-other-keys)
2858 (install-file "src/common/pa_ringbuffer.h"
2859 (string-append (assoc-ref outputs "out") "/include"))
2861 (home-page "http://www.portaudio.com/")
2862 (synopsis "Audio I/O library")
2864 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2865 to record and/or play sound using a callback function or a blocking read/write
2867 (license license:expat)))
2869 (define-public qsynth
2876 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2877 "/qsynth-" version ".tar.gz"))
2879 (base32 "0h4hhja8qbyzd6v24flw9wr4mwl03nplryx1gyrppn7sg13l1sx6"))))
2880 (build-system gnu-build-system)
2882 `(#:tests? #f ; no "check" phase
2884 '("CXXFLAGS=-std=gnu++11")))
2886 `(("qttools" ,qttools)
2887 ("pkg-config" ,pkg-config)))
2889 `(("fluidsynth" ,fluidsynth)
2891 ("qtx11extras" ,qtx11extras)))
2892 (home-page "http://qsynth.sourceforge.net")
2893 (synopsis "Graphical user interface for FluidSynth")
2895 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2896 synthesizer written in C++.")
2897 (license license:gpl2+)))
2899 (define-public rsound
2907 (url "https://github.com/Themaister/RSound.git")
2908 (commit (string-append "v" version))))
2909 (file-name (git-file-name name version))
2911 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
2912 (build-system gnu-build-system)
2914 `(("alsa-lib" ,alsa-lib)
2917 ("libsamplerate" ,libsamplerate)
2919 ("portaudio" ,portaudio)
2920 ("pulseaudio" ,pulseaudio)))
2923 (modify-phases %standard-phases
2925 (lambda* (#:key outputs #:allow-other-keys)
2927 (invoke "./configure"
2928 (string-append "--prefix=" (assoc-ref outputs "out"))))))
2929 ;; No 'check' target.
2931 (home-page "http://themaister.net/rsound.html")
2932 (synopsis "Networked audio system")
2934 "RSound allows you to send audio from an application and transfer it
2935 directly to a different computer on your LAN network. It is an audio daemon
2936 with a much different focus than most other audio daemons.")
2937 (license license:gpl3+)))
2939 (define-public xjackfreak
2946 (url "https://github.com/johnhldavis/xjackfreak.git")
2947 (commit (string-append "v" version))))
2948 (file-name (git-file-name name version))
2951 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
2952 (build-system gnu-build-system)
2955 (list (string-append "docdir=" (assoc-ref %outputs "out")
2956 "/share/doc/xjackfreak"))))
2961 ("libxext" ,libxext)))
2963 `(("pkg-config" ,pkg-config)))
2964 (home-page "https://github.com/johnhldavis/xjackfreak")
2965 (synopsis "JACK audio frequency analyzer and display")
2967 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
2968 Connection Kit. It can display the FFT of any input, modify it and output the
2970 (license license:gpl3+)))
2972 (define-public zita-convolver
2974 (name "zita-convolver")
2979 "http://kokkinizita.linuxaudio.org"
2980 "/linuxaudio/downloads/zita-convolver-"
2981 version ".tar.bz2"))
2983 ;; Don't optimize for a specific processor architecture.
2985 (substitute* "libs/Makefile"
2986 (("^CXXFLAGS \\+= -march=native") ""))
2988 (modules '((guix build utils)))
2991 "14qrnczhp5mbwhky64il7kxc4hl1mmh495v60va7i2qnhasr6zmz"))))
2992 (build-system gnu-build-system)
2994 `(#:tests? #f ; no "check" target
2995 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2997 (modify-phases %standard-phases
2998 (add-after 'unpack 'patch-makefile-and-enter-directory
3000 (substitute* "libs/Makefile"
3001 (("ldconfig") "true")
3002 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3005 (add-after 'install 'install-symlink
3007 (symlink "libzita-convolver.so"
3008 (string-append (assoc-ref %outputs "out")
3009 "/lib/libzita-convolver.so.3"))
3011 ;; no configure script
3012 (delete 'configure))))
3013 (inputs `(("fftwf" ,fftwf)))
3014 (home-page "https://kokkinizita.linuxaudio.org")
3015 (synopsis "Fast, partitioned convolution engine library")
3017 "Zita convolver is a C++ library providing a real-time convolution
3019 (license license:gpl3+)))
3021 (define-public zita-resampler
3023 (name "zita-resampler")
3028 "http://kokkinizita.linuxaudio.org"
3029 "/linuxaudio/downloads/zita-resampler-"
3030 version ".tar.bz2"))
3032 ;; Don't optimize for a specific processor architecture.
3034 (substitute* '("apps/Makefile" "libs/Makefile")
3035 (("^CXXFLAGS \\+= -march=native") ""))
3037 (modules '((guix build utils)))
3040 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
3041 (build-system gnu-build-system)
3043 `(#:tests? #f ; no "check" target
3044 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3046 (modify-phases %standard-phases
3048 'unpack 'patch-makefile-and-enter-directory
3050 (substitute* "libs/Makefile"
3051 (("ldconfig") "true")
3052 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3056 'install 'install-symlink
3058 (symlink "libzita-resampler.so"
3059 (string-append (assoc-ref %outputs "out")
3060 "/lib/libzita-resampler.so.1"))
3062 ;; no configure script
3063 (delete 'configure))))
3064 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
3065 (synopsis "C++ library for resampling audio signals")
3067 "Libzita-resampler is a C++ library for resampling audio signals. It is
3068 designed to be used within a real-time processing context, to be fast, and to
3069 provide high-quality sample rate conversion.")
3070 (license license:gpl3+)))
3072 (define-public zita-alsa-pcmi
3074 (name "zita-alsa-pcmi")
3079 "http://kokkinizita.linuxaudio.org"
3080 "/linuxaudio/downloads/zita-alsa-pcmi-"
3081 version ".tar.bz2"))
3084 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
3085 (build-system gnu-build-system)
3087 `(#:tests? #f ; no "check" target
3088 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3090 (modify-phases %standard-phases
3091 (add-after 'unpack 'patch-makefile-and-enter-directory
3093 (substitute* "libs/Makefile"
3094 (("ldconfig") "true")
3095 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3098 (add-after 'install 'install-symlink
3100 (symlink "libzita-alsa-pcmi.so"
3101 (string-append (assoc-ref %outputs "out")
3102 "/lib/libzita-alsa-pcmi.so.0"))
3104 ;; no configure script
3105 (delete 'configure))))
3107 `(("alsa-lib" ,alsa-lib)
3109 (home-page "https://kokkinizita.linuxaudio.org")
3110 (synopsis "C++ wrapper around the ALSA API")
3112 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3113 access to ALSA PCM devices, taking care of the many functions required to
3114 open, initialise and use a hw: device in mmap mode, and providing floating
3116 (license license:gpl3+)))
3118 (define-public cuetools
3125 (url "https://github.com/svend/cuetools.git")
3127 (file-name (git-file-name name version))
3130 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
3131 (build-system gnu-build-system)
3132 ;; The source checkout is not bootstrapped.
3134 `(("autoconf" ,autoconf)
3135 ("automake" ,automake)
3138 (synopsis "Cue and toc file parsers and utilities")
3139 (description "Cuetools is a set of programs that are useful for manipulating
3140 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3141 files are a way to represent the layout of a data or audio CD in a
3142 machine-readable ASCII format.")
3143 (home-page "https://github.com/svend/cuetools")
3144 (license license:gpl2+)))
3146 (define-public shntool
3152 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
3153 "shntool-" version ".tar.gz"))
3156 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3157 (build-system gnu-build-system)
3158 (synopsis "WAVE audio data processing tool")
3159 (description "shntool is a multi-purpose WAVE data processing and reporting
3160 utility. File formats are abstracted from its core, so it can process any file
3161 that contains WAVE data, compressed or not---provided there exists a format
3162 module to handle that particular file type. It can also generate CUE files, and
3163 use them split WAVE data into multiple files.")
3164 (home-page "http://etree.org/shnutils/shntool/")
3165 ;; 'install-sh' bears the x11 license
3166 (license (list license:gpl2+ license:x11))))
3168 (define-public dcadec
3175 (url "https://github.com/foo86/dcadec.git")
3176 (commit (string-append "v" version))))
3177 (file-name (git-file-name name version))
3180 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
3181 (build-system gnu-build-system)
3183 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3187 ;; Build shared library.
3189 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3190 ;; Set proper runpath.
3191 (string-append "LDFLAGS=-Wl,-rpath="
3192 (assoc-ref %outputs "out")
3195 (modify-phases %standard-phases
3196 ;; No configure script, just a hand-written Makefile.
3197 (delete 'configure))))
3198 (synopsis "DTS Coherent Acoustics decoder")
3199 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3200 with support for HD extensions.")
3201 (home-page "https://github.com/foo86/dcadec")
3202 (license license:lgpl2.1+)))
3204 (define-public bs1770gain
3211 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3212 version "/bs1770gain-" version ".tar.gz"))
3215 "1p6yz5q7czyf9ard65sp4kawdlkg40cfscr3b24znymmhs3p7rbk"))
3216 (modules '((guix build utils)))
3220 (substitute* "bs1770gain/bs1770gain.c"
3221 (("\"N.*\"") "\"\""))
3222 (substitute* "configure"
3224 "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html\n"))))))
3225 (build-system gnu-build-system)
3226 (inputs `(("ffmpeg" ,ffmpeg)
3228 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
3229 (synopsis "Tool to adjust loudness of media files")
3231 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3232 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3233 loudness of audio and video files to the same level.")
3234 (license license:gpl2+)))
3236 (define-public filteraudio
3237 (let ((revision "1")
3238 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3240 (name "filteraudio")
3241 (version (string-append "0.0.0-" revision "."
3242 (string-take commit 7)))
3247 (url "https://github.com/irungentoo/filter_audio.git")
3249 (file-name (string-append name "-" version "-checkout"))
3252 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3253 (build-system gnu-build-system)
3255 '(#:make-flags (list (string-append "PREFIX=" %output)
3257 #:tests? #f ; No tests
3259 (modify-phases %standard-phases
3260 ;; No configure script
3261 (delete 'configure))))
3262 (synopsis "Lightweight audio filtering library")
3263 (description "An easy to use audio filtering library made from webrtc
3264 code, used in @code{libtoxcore}.")
3265 (home-page "https://github.com/irungentoo/filter_audio")
3266 (license license:bsd-3))))
3276 (string-append "http://www.quut.com/" name "/" name
3277 "-" version ".tar.gz"))
3280 "041amvpz8cvxykl3pwqldrzxligmmzcg8ncdnxbg32rlqf3q1xh4"))))
3281 (build-system gnu-build-system)
3283 `(#:test-target "tst"
3285 (modify-phases %standard-phases
3286 (add-before 'install 'pre-install
3288 (let ((out (assoc-ref %outputs "out")))
3289 (substitute* "Makefile"
3290 (("INSTALL_ROOT\t=")
3291 (string-append "INSTALL_ROOT\t=\t" out)))
3292 (mkdir-p (string-append out "/inc"))
3293 (mkdir-p (string-append out "/man"))
3294 (mkdir-p (string-append out "/man/man1"))
3295 (mkdir-p (string-append out "/man/man3"))
3296 (mkdir-p (string-append out "/bin"))
3297 (mkdir-p (string-append out "/lib")))
3299 (add-after 'install 'post-install
3301 (let ((out (assoc-ref %outputs "out")))
3302 (rename-file (string-append out "/inc")
3303 (string-append out "/include"))
3304 (mkdir-p (string-append out "/include/gsm"))
3305 (copy-recursively "inc"
3306 (string-append out "/include/gsm")))
3308 (delete 'configure)))) ; no configure script
3309 (synopsis "GSM 06.10 lossy speech compression library")
3310 (description "This C library provides an encoder and a decoder for the GSM
3311 06.10 RPE-LTP lossy speech compression algorithm.")
3312 (home-page "http://quut.com/gsm/")
3313 (license (license:non-copyleft "file://COPYRIGHT"))))
3315 (define-public python-pyalsaaudio
3317 (name "python-pyalsaaudio")
3321 (uri (pypi-uri "pyalsaaudio" version))
3324 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3325 (build-system python-build-system)
3327 `(#:tests? #f)) ; tests require access to ALSA devices.
3329 `(("alsa-lib" ,alsa-lib)))
3330 (home-page "http://larsimmisch.github.io/pyalsaaudio/")
3331 (synopsis "ALSA wrappers for Python")
3333 "This package contains wrappers for accessing the ALSA API from Python.
3334 It is currently fairly complete for PCM devices, and has some support for
3336 (license license:psfl)))
3338 (define-public python2-pyalsaaudio
3339 (package-with-python2 python-pyalsaaudio))
3341 (define-public bluez-alsa
3346 ;; The tarballs are mere snapshots and don't contain a
3347 ;; bootstrapped build system.
3350 (url "https://github.com/Arkq/bluez-alsa.git")
3351 (commit (string-append "v" version))))
3352 (file-name (string-append name "-" version "-checkout"))
3355 "1qinf41wl2ihx54zmmhanycihwjkn7dn1cicq6pp4rqbiv79b95x"))))
3356 (build-system gnu-build-system)
3358 `(("autoconf" ,autoconf)
3359 ("automake" ,automake)
3360 ("libtool" ,libtool)
3361 ("pkg-config" ,pkg-config)))
3363 `(("alsa-lib" ,alsa-lib)
3367 ("ncurses" ,ncurses)
3370 (home-page "https://github.com/Arkq/bluez-alsa")
3371 (synopsis "Bluetooth ALSA backend")
3372 (description "This project is a rebirth of a direct integration between
3373 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
3374 in favor of 3rd party audio applications. From now on, Bluez acts as a
3375 middleware between an audio application, which implements Bluetooth audio
3376 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
3377 audio profiles in Bluez, so in theory every Bluetooth device (with audio
3378 capabilities) can be connected. In order to access the audio stream, one has
3379 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
3380 on the ALSA software PCM plugin.")
3381 (license license:expat)))
3389 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
3390 "snd-" version ".tar.gz"))
3393 "16j3fqyw361wdsr1076f0p3va2y7wdzq1lvr4ijz1ajmbxdlc723"))))
3394 (build-system glib-or-gtk-build-system)
3396 `(#:tests? #f ; no tests
3397 #:out-of-source? #f ; for the 'install-doc' phase
3399 (let* ((out (assoc-ref %outputs "out"))
3400 (docdir (string-append out "/share/doc/snd")))
3401 (list "--with-alsa" "--with-jack" "--with-gmp"
3402 (string-append "--with-doc-dir=" docdir)))
3404 (modify-phases %standard-phases
3405 (add-after 'install 'install-doc
3406 (lambda* (#:key outputs #:allow-other-keys)
3407 (let* ((out (assoc-ref outputs "out"))
3408 (doc (string-append out "/share/doc/"
3409 ,name "-" ,version)))
3412 (install-file f doc))
3413 (find-files "." "\\.html$|COPYING"))
3414 (copy-recursively "pix" (string-append doc "/pix"))
3417 `(("pkg-config" ,pkg-config)))
3419 `(("alsa-lib" ,alsa-lib)
3426 ("libsamplerate" ,libsamplerate)
3431 ("timidity++" ,timidity++)
3432 ("vorbis-tools" ,vorbis-tools)
3433 ("wavpack" ,wavpack)))
3434 (synopsis "Sound editor")
3435 (home-page "https://ccrma.stanford.edu/software/snd/")
3437 "Snd is a sound editor modelled loosely after Emacs. It can be
3438 customized and extended using either the s7 Scheme implementation (included in
3439 the Snd sources), Ruby, or Forth.")
3440 (license (license:non-copyleft "file://COPYING"))))
3442 (define-public noise-repellent
3444 (name "noise-repellent")
3449 (url "https://github.com/lucianodato/noise-repellent.git")
3451 (file-name (string-append name "-" version "-checkout"))
3454 "0rd3dlmk3vivjmcr6x2x860y0j1d49c2j95j6ny50v184mwvn11j"))))
3455 (build-system gnu-build-system)
3459 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3460 #:tests? #f ; there are none
3462 (modify-phases %standard-phases
3463 (delete 'configure))))
3468 `(("pkg-config" ,pkg-config)))
3469 (home-page "https://github.com/lucianodato/noise-repellent")
3470 (synopsis "LV2 plugin for broadband noise reduction")
3471 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
3472 the following features:
3475 @item Spectral gating and spectral subtraction suppression rule
3476 @item Adaptive and manual noise thresholds estimation
3477 @item Adjustable noise floor
3478 @item Adjustable offset of thresholds to perform over-subtraction
3479 @item Time smoothing and a masking estimation to reduce artifacts
3480 @item Basic onset detector to avoid transients suppression
3481 @item Whitening of the noise floor to mask artifacts and to recover higher
3483 @item Option to listen to the residual signal
3485 @item Noise profile saved with the session
3488 (license license:lgpl3+)))
3490 (define-public cli-visualizer
3492 (name "cli-visualizer")
3498 (url "https://github.com/dpayne/cli-visualizer.git")
3500 (file-name (git-file-name name version))
3503 "0mirp8bk398di5xyq95iprmdyvplfghxqmrfj7jdnpy554vx7ppc"))))
3504 (build-system gnu-build-system)
3506 `(("which" ,which)))
3509 ("googletest" ,googletest)
3510 ("ncurses" ,ncurses)
3511 ("pulseaudio" ,pulseaudio)))
3513 '(#:test-target "test"
3515 (list (string-append "PREFIX=" %output "/bin/") "ENABLE_PULSE=1")
3517 (modify-phases %standard-phases
3518 (add-after 'unpack 'remove-sudo
3520 (substitute* "install.sh" (("sudo") ""))
3522 (add-before 'check 'set-check-environment
3524 (setenv "CXX" "g++")
3527 (add-before 'install 'make-prefix
3529 (mkdir-p (string-append (assoc-ref %outputs "out") "/bin"))
3531 (add-after 'install 'data
3533 (for-each (lambda (file)
3535 (string-append (assoc-ref %outputs "out")
3537 (find-files "examples"))
3539 (home-page "https://github.com/dpayne/cli-visualizer/")
3540 (synopsis "Command-line audio visualizer")
3541 (description "@code{cli-visualizer} displays fast-Fourier
3542 transforms (FFTs) of the sound being played, as well as other graphical
3544 (license license:expat)))
3553 (url "https://github.com/karlstav/cava.git")
3555 (file-name (git-file-name name version))
3558 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
3559 (build-system gnu-build-system)
3561 `(("autoconf" ,autoconf)
3562 ("automake" ,automake)
3563 ("libtool" ,libtool)))
3566 ("ncurses" ,ncurses)
3567 ("pulseaudio" ,pulseaudio)))
3570 (list (string-append "PREFIX=" %output)
3571 (string-append "FONT_DIR=" %output "/usr/share/consolefonts"))
3573 (let ((lib (string-append %output "/lib")))
3574 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
3576 (modify-phases %standard-phases
3578 (lambda* (#:key outputs #:allow-other-keys)
3579 (setenv "HOME" (getcwd))
3580 (invoke "sh" "autogen.sh")))
3581 (add-before 'build 'make-cava-ldflags
3582 (lambda* (#:key outputs #:allow-other-keys)
3583 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
3585 (add-after 'install 'data
3586 (lambda* (#:key outputs #:allow-other-keys)
3587 (for-each (lambda (file)
3589 (string-append (assoc-ref outputs "out")
3590 "/share/doc/examples")))
3591 (find-files "example_files"))
3593 (home-page "https://karlstav.github.io/cava/")
3594 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
3595 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
3596 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
3597 (license license:expat)))
3599 (define-public fluid-3
3600 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
3607 ;; Only one file is required, but the release bundles the whole
3608 ;; software which is 50MiB as tar and 200MiB unpacked. The website
3609 ;; directly links the soundfont release to the github file download.
3610 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
3611 commit "/share/sound/FluidR3Mono_GM.sf3"))
3612 (file-name (string-append name "-" version ".sf3"))
3615 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
3616 (build-system trivial-build-system)
3618 `(#:modules ((guix build utils))
3621 (use-modules (guix build utils))
3622 (let ((file (assoc-ref %build-inputs "source"))
3623 (out (string-append %output "/share/soundfonts")))
3625 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
3627 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
3628 (synopsis "Pro-quality GM soundfont")
3629 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
3630 (license license:expat))))
3632 (define-public libfdk
3633 (let ((commit "2326faaf8f2cdf2c3a9108ccdaf1d7551aec543e")
3637 ;; The latest upstream revision, with many bug fixes.
3638 (version (git-version "0.1.6" revision commit))
3643 (url "https://github.com/mstorsjo/fdk-aac")
3645 (file-name (git-file-name name version))
3648 "0yy6ndd9d61bwl283vl1r5kva2a4acc0f4r9g0sza156f2abr9ws"))))
3649 (build-system gnu-build-system)
3651 `(("autoconf" ,autoconf)
3652 ("automake" ,automake)
3653 ("libtool" ,libtool)))
3654 (home-page "https://github.com/mstorsjo/fdk-aac")
3655 (synopsis "Fraunhofer FDK AAC library")
3656 (description "FDK is a library for encoding and decoding Advanced Audio
3657 Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
3658 Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
3659 LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
3660 and AAC-ELD (enhanced low delay) for real-time communication. The encoding
3661 library supports sample rates up to 96 kHz and up to eight channels (7.1
3663 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
3664 "https://www.gnu.org/licenses/license-list.html#fdk")))))
3666 (define-public libopenshot-audio
3668 (name "libopenshot-audio")
3673 (url "https://github.com/OpenShot/libopenshot-audio")
3674 (commit (string-append "v" version))))
3675 (file-name (git-file-name name version))
3678 "1fvp6nmf30xzkmcznakh8dv5vn9d7nq051pqcqv638hsfppkmcrl"))))
3679 (build-system cmake-build-system)
3681 `(("alsa-lib" ,alsa-lib)
3682 ;; The following are for JUCE GUI components:
3684 ("freetype" ,freetype)
3685 ("libxrandr" ,libxrandr)
3686 ("libxinerama" ,libxinerama)
3687 ("libxcursor" ,libxcursor)))
3689 `(#:tests? #f ;there are no tests
3691 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
3692 (assoc-ref %build-inputs "freetype")
3693 "/include/freetype2"))))
3694 (home-page "https://openshot.org")
3695 (synopsis "Audio editing and playback for OpenShot")
3696 (description "OpenShot Audio Library (libopenshot-audio) allows
3697 high-quality editing and playback of audio, and is based on the JUCE
3699 (license license:lgpl3+)))
3701 (define-public faudio
3709 (url "https://github.com/FNA-XNA/FAudio.git")
3711 (file-name (string-append name "-" version "-checkout"))
3713 (base32 "1dja2ykixk1ycqda116cg9fy4qg364dqj88amfln0r9pnsj2kbxk"))))
3715 '(#:tests? #f ; No tests.
3716 #:configure-flags '("-DFFMPEG=ON")))
3717 (build-system cmake-build-system)
3718 (native-inputs `(("pkg-config" ,pkg-config)))
3719 (inputs `(("ffmpeg" ,ffmpeg)
3721 (home-page "https://github.com/FNA-XNA/FAudio")
3722 (synopsis "XAudio reimplementation")
3723 (description "FAudio is an XAudio reimplementation that focuses solely on
3724 developing fully accurate DirectX Audio runtime libraries.")
3725 (license license:zlib)))