1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016, 2017, 2018 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 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
9 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
10 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
11 ;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
13 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
15 ;;; This file is part of GNU Guix.
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30 (define-module (gnu packages audio)
31 #:use-module (guix packages)
32 #:use-module (guix download)
33 #:use-module (guix git-download)
34 #:use-module (guix utils)
35 #:use-module ((guix licenses) #:prefix license:)
36 #:use-module (guix build-system gnu)
37 #:use-module (guix build-system waf)
38 #:use-module (guix build-system trivial)
39 #:use-module (guix build-system cmake)
40 #:use-module (guix build-system python)
41 #:use-module (guix build-system glib-or-gtk)
42 #:use-module (gnu packages)
43 #:use-module (gnu packages algebra)
44 #:use-module (gnu packages autotools)
45 #:use-module (gnu packages avahi)
46 #:use-module (gnu packages boost)
47 #:use-module (gnu packages backup)
48 #:use-module (gnu packages base)
49 #:use-module (gnu packages bison)
50 #:use-module (gnu packages check)
51 #:use-module (gnu packages compression)
52 #:use-module (gnu packages curl)
53 #:use-module (gnu packages databases)
54 #:use-module (gnu packages emacs)
55 #:use-module (gnu packages file)
56 #:use-module (gnu packages flex)
57 #:use-module (gnu packages fltk)
58 #:use-module (gnu packages fontutils)
59 #:use-module (gnu packages gettext)
60 #:use-module (gnu packages glib)
61 #:use-module (gnu packages gtk)
62 #:use-module (gnu packages gnome)
63 #:use-module (gnu packages gnunet) ; libmicrohttpd
64 #:use-module (gnu packages gperf)
65 #:use-module (gnu packages image)
66 #:use-module (gnu packages ncurses)
67 #:use-module (gnu packages qt)
68 #:use-module (gnu packages libbsd)
69 #:use-module (gnu packages linux)
70 #:use-module (gnu packages llvm)
71 #:use-module (gnu packages mp3) ;taglib
72 #:use-module (gnu packages perl)
73 #:use-module (gnu packages pkg-config)
74 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
75 #:use-module (gnu packages python)
76 #:use-module (gnu packages rdf)
77 #:use-module (gnu packages readline)
78 #:use-module (gnu packages telephony)
79 #:use-module (gnu packages tls)
80 #:use-module (gnu packages video)
81 #:use-module (gnu packages vim) ;xxd
82 #:use-module (gnu packages webkit)
83 #:use-module (gnu packages wxwidgets)
84 #:use-module (gnu packages xiph)
85 #:use-module (gnu packages xml)
86 #:use-module (gnu packages xorg)
87 #:use-module (gnu packages maths)
88 #:use-module (gnu packages multiprecision)
89 #:use-module (gnu packages music)
90 #:use-module (srfi srfi-1)
91 #:use-module (srfi srfi-26))
93 (define-public alsa-modular-synth
95 (name "alsa-modular-synth")
99 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
100 "/" version "/ams-" version ".tar.bz2"))
103 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
104 (build-system gnu-build-system)
108 "CXXFLAGS=-std=gnu++11")
110 (modify-phases %standard-phases
111 ;; Insert an extra space between linker flags.
112 (add-before 'configure 'add-missing-space
114 (substitute* "configure"
115 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
116 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
119 `(("alsa-lib" ,alsa-lib)
120 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
121 ;; license incompatibility.
122 ("clalsadrv" ,clalsadrv)
128 ("qttools" ,qttools)))
130 `(("pkg-config" ,pkg-config)))
131 (home-page "http://alsamodular.sourceforge.net/")
132 (synopsis "Realtime modular synthesizer and effect processor")
134 "AlsaModularSynth is a digital implementation of a classical analog
135 modular synthesizer system. It uses virtual control voltages to control the
136 parameters of the modules. The control voltages which control the frequency
137 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
138 Filter) modules follow the convention of 1V / Octave.")
139 (license license:gpl2)))
148 "http://aubio.org/pub/aubio-" version ".tar.bz2"))
151 "15f6nf76y7iyl2kl4ny7ky0zpxfxr8j3902afvd6ydnnkh5dzmr5"))))
152 (build-system waf-build-system)
154 `(#:tests? #f ; no check target
159 "--enable-samplerate"
160 ;; enable compilation with avcodec once available
165 ("libsndfile" ,libsndfile)
166 ("libsamplerate" ,libsamplerate)
169 `(("pkg-config" ,pkg-config)))
170 (home-page "http://aubio.org/")
171 (synopsis "Library for audio labelling")
173 "aubio is a tool designed for the extraction of annotations from audio
174 signals. Its features include segmenting a sound file before each of its
175 attacks, performing pitch detection, tapping the beat and producing MIDI
176 streams from live audio.")
177 (license license:gpl3+)))
179 (define (ardour-rpath-phase major-version)
180 `(lambda* (#:key outputs #:allow-other-keys)
181 (let ((libdir (string-append (assoc-ref outputs "out")
182 "/lib/ardour" ,major-version)))
183 (substitute* "wscript"
184 (("linker_flags = \\[\\]")
185 (string-append "linker_flags = [\""
188 libdir "/backends" ":"
189 libdir "/engines" ":"
190 libdir "/panners" ":"
191 libdir "/surfaces" ":"
192 libdir "/vamp" "\"]"))))
195 (define-public ardour
202 (url "https://git.ardour.org/ardour/ardour.git")
205 ;; Ardour expects this file to exist at build time. The revision
207 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
208 `(call-with-output-file
209 "libs/ardour/revision.cc"
211 (format port ,(string-append "#include \"ardour/revision.h\"
212 namespace ARDOUR { const char* revision = \"" version "\" ; }")))))
215 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
216 (file-name (string-append name "-" version))))
217 (build-system waf-build-system)
219 `(#:configure-flags '("--cxx11" ; required by gtkmm
220 "--no-phone-home" ; don't contact ardour.org
221 "--freedesktop" ; install .desktop file
222 "--test") ; build unit tests
224 (modify-phases %standard-phases
226 'unpack 'set-rpath-in-LDFLAGS
227 ,(ardour-rpath-phase (version-major version))))
231 `(("alsa-lib" ,alsa-lib)
240 ("libart-lgpl" ,libart-lgpl)
241 ("libgnomecanvasmm" ,libgnomecanvasmm)
244 ("libsndfile" ,libsndfile)
245 ("libsamplerate" ,libsamplerate)
248 ("libvorbis" ,libvorbis)
261 ("readline" ,readline)
263 ("rubberband" ,rubberband)
264 ("libarchive" ,libarchive)
266 ("python-rdflib" ,python-rdflib)))
271 ("gettext" ,gettext-minimal)
272 ("pkg-config" ,pkg-config)))
273 (home-page "http://ardour.org")
274 (synopsis "Digital audio workstation")
276 "Ardour is a multi-channel digital audio workstation, allowing users to
277 record, edit, mix and master audio and MIDI projects. It is targeted at audio
278 engineers, musicians, soundtrack editors and composers.")
279 (license license:gpl2+)))
281 (define-public audacity
288 (uri (string-append "https://github.com/audacity/audacity/archive"
289 "/Audacity-" version ".tar.gz"))
291 (base32 "1n05r8b4rnf9fas0py0is8cm97s3h65dgvqkk040aym5d1x6wd7z"))
292 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
293 (modules '((guix build utils)))
295 ;; Remove bundled libraries.
299 (delete-file-recursively (string-append "lib-src/" dir)))
300 '("expat" "ffmpeg" "libflac" "libid3tag" "libmad" "libogg"
301 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
302 "portaudio-v19" "portmidi" "soundtouch" "twolame"
303 ;; FIXME: these libraries have not been packaged yet:
311 ;; FIXME: we have this library, but it differs in that the Slide
312 ;; class does not have a member "getInverseStretchedTime".
316 (build-system gnu-build-system)
318 `(("wxwidgets" ,wxwidgets)
320 ("alsa-lib" ,alsa-lib)
326 ("libid3tag" ,libid3tag)
328 ;;("libsbsms" ,libsbsms) ;bundled version is modified
329 ("libsndfile" ,libsndfile)
330 ("soundtouch" ,soundtouch)
331 ("soxr" ,soxr) ;replaces libsamplerate
334 ("libvorbis" ,libvorbis)
336 ("lilv" ,lilv) ;for lv2
337 ("suil" ,suil) ;for lv2
338 ("portaudio" ,portaudio)
339 ("portmidi" ,portmidi)))
341 `(("autoconf" ,autoconf)
342 ("automake" ,automake)
343 ("gettext" ,gettext-minimal) ;for msgfmt
345 ("pkg-config" ,pkg-config)
350 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
351 (libmad (assoc-ref %build-inputs "libmad"))
352 (portmidi (assoc-ref %build-inputs "portmidi")))
354 ;; Loading FFmpeg dynamically is problematic.
355 "--disable-dynamic-loading"
356 ;; SSE instructions are available on Intel systems only.
357 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
361 '("--enable-sse=no"))
362 ;; portmidi, libid3tag and libmad provide no .pc files, so
363 ;; pkg-config fails to find them. Force their inclusion.
364 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
365 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
366 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
367 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
368 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
369 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
370 "EXPAT_USE_SYSTEM=yes"
371 "FFMPEG_USE_SYSTEM=yes"
372 "LAME_USE_SYSTEM=yes"
373 "LIBFLAC_USE_SYSTEM=yes"
374 "LIBID3TAG_USE_SYSTEM=yes"
375 "LIBMAD_USE_SYSTEM=yes"
376 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
377 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
378 "LIBSNDFILE_USE_SYSTEM=yes"
379 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
380 "LIBSOXR_USE_SYSTEM=yes"
381 "LIBTWOLAME_USE_SYSTEM=yes"
382 "LIBVAMP_USE_SYSTEM=yes"
383 "LIBVORBIS_USE_SYSTEM=yes"
385 "PORTAUDIO_USE_SYSTEM=yes"))
387 (modify-phases %standard-phases
388 (add-after 'unpack 'fix-sbsms-check
390 ;; This check is wrong: there is no 2.2.0 release; not even the
391 ;; bundled sources match this release string.
392 (substitute* '("m4/audacity_checklib_libsbsms.m4"
394 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
396 (add-after 'unpack 'use-upstream-headers
397 (lambda* (#:key inputs #:allow-other-keys)
398 (substitute* '("src/NoteTrack.cpp"
401 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
402 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
403 (substitute* "src/prefs/MidiIOPrefs.cpp"
404 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
406 ;; The test suite is not "well exercised" according to the developers,
407 ;; and fails with various errors. See
408 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
410 (home-page "http://audacity.sourceforge.net/")
411 (synopsis "Software for recording and editing sounds")
413 "Audacity is a multi-track audio editor designed for recording, playing
414 and editing digital audio. It features digital effects and spectrum analysis
416 (license license:gpl2+)))
424 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
429 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
430 (patches (search-patches "azr3.patch"))))
431 (build-system gnu-build-system)
433 `(#:tests? #f ; no check target
436 "CXXFLAGS=-std=gnu++11"
437 "CFLAGS=-std=gnu++11"
438 (string-append "prefix=" %output)
439 (string-append "pkgdatadir=" %output "/share/azr3-jack"))))
446 `(("pkg-config" ,pkg-config)))
447 (home-page "http://ll-plugins.nongnu.org/azr3/")
448 (synopsis "Tonewheel organ synthesizer")
450 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
451 with drawbars, distortion and rotating speakers. The organ has three
452 sections, two polyphonic sections with nine drawbars each and one monophonic
453 bass section with five drawbars. A standalone JACK application and LV2
454 plugins are provided.")
455 (license license:gpl2)))
463 (uri (string-append "http://calf-studio-gear.org/files/calf-"
467 "0dijv2j7vlp76l10s4v8gbav26ibaqk8s24ci74vrc398xy00cib"))))
468 (build-system gnu-build-system)
470 `(("fluidsynth" ,fluidsynth)
481 `(("pkg-config" ,pkg-config)))
483 (list (search-path-specification
484 (variable "LV2_PATH")
485 (files '("lib/lv2")))))
486 (home-page "http://calf.sourceforge.net/")
487 (synopsis "Audio plug-in pack for LV2 and JACK environments")
489 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
490 The suite contains lots of effects (delay, modulation, signal processing,
491 filters, equalizers, dynamics, distortion and mastering effects),
492 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
493 tools (analyzer, mono/stereo tools, crossovers).")
494 ;; calfjackhost is released under GPLv2+
495 ;; The plugins are released under LGPLv2.1+
496 (license (list license:lgpl2.1+ license:gpl2+))))
498 (define-public espeak
504 (uri (string-append "mirror://sourceforge/espeak/espeak/"
505 "espeak-" (version-major+minor version)
506 "/espeak-" version "-source.zip"))
509 "0n86gwh9pw0jqqpdz7mxggllfr8k0r7pc67ayy7w5z6z79kig6mz"))
510 (modules '((guix build utils)))
512 ;; remove prebuilt binaries
513 '(delete-file-recursively "linux_32bit"))))
514 (build-system gnu-build-system)
516 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
517 (string-append "DATADIR="
518 (assoc-ref %outputs "out")
519 "/share/espeak-data")
520 (string-append "LDFLAGS=-Wl,-rpath="
521 (assoc-ref %outputs "out")
524 #:tests? #f ; no check target
526 (modify-phases %standard-phases
530 ;; We use version 19 of the PortAudio library, so we must copy the
531 ;; corresponding file to be sure that espeak compiles correctly.
532 (copy-file "portaudio19.h" "portaudio.h")
533 (substitute* "Makefile"
537 `(("portaudio" ,portaudio)
538 ("pulseaudio" ,pulseaudio)))
539 (native-inputs `(("unzip" ,unzip)))
540 (home-page "http://espeak.sourceforge.net/")
541 (synopsis "Software speech synthesizer")
542 (description "eSpeak is a software speech synthesizer for English and
543 other languages. eSpeak uses a \"formant synthesis\" method. This allows many
544 languages to be provided in a small size. The speech is clear, and can be used
545 at high speeds, but is not as natural or smooth as larger synthesizers which are
546 based on human speech recordings.")
547 (license license:gpl3+)))
549 (define-public infamous-plugins
551 (name "infamous-plugins")
555 (uri (string-append "https://github.com/ssj71/infamousPlugins/"
556 "archive/v" version ".tar.gz"))
557 (file-name (string-append name "-" version ".tar.gz"))
560 "0qm3ak07vc1l3f5c3c2lq9gkfknlxwn8ks03cysw1pk8hj7dwnv6"))))
561 (build-system cmake-build-system)
563 `(#:tests? #f ; There are no tests
565 (modify-phases %standard-phases
566 (add-after 'unpack 'remove-compiler-flags
568 (substitute* '("src/casynth/CMakeLists.txt"
569 "src/cheapdist/CMakeLists.txt"
570 "src/duffer/CMakeLists.txt"
571 "src/envfollower/CMakeLists.txt"
572 "src/ewham/CMakeLists.txt"
573 "src/hip2b/CMakeLists.txt"
574 "src/lushlife/CMakeLists.txt"
575 "src/powercut/CMakeLists.txt"
576 "src/powerup/CMakeLists.txt"
577 "src/stuck/CMakeLists.txt")
578 (("-msse2 -mfpmath=sse") ""))
585 ("zita-resampler" ,zita-resampler)))
587 `(("pkg-config" ,pkg-config)))
588 (home-page "http://ssj71.github.io/infamousPlugins")
589 (synopsis "LV2 plugins for live use")
591 "The infamous plugins are a collection of LV2 audio plugins for live
592 performances. The plugins include a cellular automaton synthesizer, an
593 envelope follower, distortion effects, tape effects and more.")
594 (license license:gpl2+)))
596 (define-public swh-plugins-lv2
598 (name "swh-plugins-lv2")
602 (uri (string-append "https://github.com/swh/"
603 "lv2/archive/v" version ".tar.gz"))
604 (file-name (string-append name "-" version ".tar.gz"))
607 "0j1mih0lp4fds07knp5i32in515sh0df1qi6694pmyz2wqnm295w"))))
608 (build-system gnu-build-system)
610 `(#:tests? #f ; no check target
611 #:make-flags (list "CC=gcc"
612 (string-append "PREFIX="
613 (assoc-ref %outputs "out")))
615 (modify-phases %standard-phases
616 ;; no configure script
618 (add-after 'unpack 'patch-makefile-and-enter-directory
619 ;; The default install target doesn't install, but the
620 ;; "install-system" target does.
622 (substitute* "Makefile"
623 (("install:") "install: install-system"))
629 `(("libxslt" ,libxslt)
630 ("pkg-config" ,pkg-config)))
631 (home-page "http://plugin.org.uk")
632 (synopsis "SWH plugins in LV2 format")
634 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
635 classes include: dynamics (compressor, limiter), time (delay, chorus,
636 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
637 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
638 (license license:gpl3+)))
640 (define-public csound
647 "https://github.com/csound/csound/archive/"
649 (file-name (string-append name "-" version ".tar.gz"))
652 "0xqpqws4jsv7fyawcjzwaw544qbfh29xq164kdf30a9v1n3yklp4"))))
653 (build-system cmake-build-system)
655 `(("alsa-lib" ,alsa-lib)
657 ("pulseaudio" ,pulseaudio)
658 ("libsndfile" ,libsndfile)
662 ("gettext" ,gettext-minimal)))
667 (home-page "http://csound.github.io/")
668 (synopsis "Sound and music computing system")
670 "Csound is a user-programmable and user-extensible sound processing
671 language and software synthesizer.")
672 (license license:lgpl2.1+)))
674 (define-public clalsadrv
681 "http://kokkinizita.linuxaudio.org"
682 "/linuxaudio/downloads/clalsadrv-"
686 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
687 (build-system gnu-build-system)
689 `(#:tests? #f ; no "check" target
690 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
692 (modify-phases %standard-phases
693 (add-after 'unpack 'patch-makefile-and-enter-directory
695 (substitute* "libs/Makefile"
696 (("/sbin/ldconfig") "true")
697 (("^LIBDIR =.*") "LIBDIR = lib\n"))
700 (add-after 'install 'install-symlink
702 (symlink "libclalsadrv.so"
703 (string-append (assoc-ref %outputs "out")
704 "/lib/libclalsadrv.so.2"))))
705 ;; no configure script
706 (delete 'configure))))
708 `(("alsa-lib" ,alsa-lib)
710 (home-page "https://kokkinizita.linuxaudio.org")
711 (synopsis "C++ wrapper around the ALSA API")
713 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
715 (license license:gpl2+)))
717 (define-public amb-plugins
724 "http://kokkinizita.linuxaudio.org"
725 "/linuxaudio/downloads/AMB-plugins-"
729 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
730 (build-system gnu-build-system)
732 `(#:tests? #f ; no "check" target
734 (modify-phases %standard-phases
735 ;; no configure script
737 (add-before 'install 'prepare-target-directory
738 (lambda* (#:key outputs #:allow-other-keys)
739 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
741 (add-after 'unpack 'override-target-directory-and-tool-paths
742 (lambda* (#:key outputs #:allow-other-keys)
743 (substitute* "Makefile"
745 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
746 (("/usr/bin/install") (which "install"))
749 (home-page "https://kokkinizita.linuxaudio.org")
750 (synopsis "LADSPA ambisonics plugins")
752 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
753 used within Ardour. Features include: mono and stereo to B-format panning,
754 horizontal rotator, square, hexagon and cube decoders.")
755 (license license:gpl2+)))
757 (define-public mcp-plugins
764 "http://kokkinizita.linuxaudio.org"
765 "/linuxaudio/downloads/MCP-plugins-"
769 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
770 (build-system gnu-build-system)
772 `(#:tests? #f ; no "check" target
774 (modify-phases %standard-phases
775 ;; no configure script
777 (add-before 'install 'prepare-target-directory
778 (lambda* (#:key outputs #:allow-other-keys)
779 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
781 (add-after 'unpack 'override-target-directory
782 (lambda* (#:key outputs #:allow-other-keys)
783 (substitute* "Makefile"
784 (("/usr") (assoc-ref outputs "out")))
786 (home-page "https://kokkinizita.linuxaudio.org")
787 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
789 "This package provides various LADSPA plugins. @code{cs_chorus} and
790 @code{cs_phaser} provide chorus and phaser effects, respectively;
791 @code{mvclpf24} provides four implementations of the low-pass filter used in
792 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
793 high-pass filter by Robert Moog. The filters attempt to accurately emulate
794 the non-linear circuit elements of their original analog counterparts.")
795 (license license:gpl2+)))
797 (define-public rev-plugins
804 "http://kokkinizita.linuxaudio.org"
805 "/linuxaudio/downloads/REV-plugins-"
809 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
810 (build-system gnu-build-system)
812 `(#:tests? #f ; no "check" target
814 (modify-phases %standard-phases
815 ;; no configure script
817 (add-before 'install 'prepare-target-directory
818 (lambda* (#:key outputs #:allow-other-keys)
819 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
821 (add-after 'unpack 'override-target-directory
822 (lambda* (#:key outputs #:allow-other-keys)
823 (substitute* "Makefile"
824 (("/usr") (assoc-ref outputs "out")))
826 (home-page "https://kokkinizita.linuxaudio.org")
827 (synopsis "LADSPA reverb plugin")
829 "This package provides a stereo reverb LADSPA plugin based on the
830 well-known greverb.")
831 (license license:gpl2+)))
833 (define-public fil-plugins
840 "http://kokkinizita.linuxaudio.org"
841 "/linuxaudio/downloads/FIL-plugins-"
845 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
846 (build-system gnu-build-system)
848 `(#:tests? #f ; no "check" target
850 (modify-phases %standard-phases
851 ;; no configure script
853 (add-before 'install 'prepare-target-directory
854 (lambda* (#:key outputs #:allow-other-keys)
855 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
857 (add-after 'unpack 'override-target-directory
858 (lambda* (#:key outputs #:allow-other-keys)
859 (substitute* "Makefile"
860 (("/usr") (assoc-ref outputs "out")))
862 (home-page "https://kokkinizita.linuxaudio.org")
863 (synopsis "LADSPA four-band parametric equalizer plugin")
865 "This package provides a LADSPA plugin for a four-band parametric
866 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
867 gain controls. There is also a global bypass switch and gain control.
869 The 2nd order resonant filters are implemented using a Mitra-Regalia style
870 lattice filter, which is stable even while parameters are being changed.
872 All switches and controls are internally smoothed, so they can be used 'live'
873 without any clicks or zipper noises. This makes this plugin suitable for use
874 in systems that allow automation of plugin control ports, such as Ardour, or
876 (license license:gpl2+)))
878 (define-public ste-plugins
885 "http://kokkinizita.linuxaudio.org"
886 "/linuxaudio/downloads/STE-plugins-"
890 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
891 (build-system gnu-build-system)
893 `(#:tests? #f ; no "check" target
895 (modify-phases %standard-phases
896 ;; no configure script
898 (add-before 'install 'prepare-target-directory
899 (lambda* (#:key outputs #:allow-other-keys)
900 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
902 (add-after 'unpack 'override-target-directory
903 (lambda* (#:key outputs #:allow-other-keys)
904 (substitute* "Makefile"
905 (("/usr") (assoc-ref outputs "out")))
907 (home-page "https://kokkinizita.linuxaudio.org")
908 (synopsis "LADSPA stereo width plugin")
910 "This package provides a LADSPA plugin to manipulate the stereo width of
912 (license license:gpl2+)))
914 (define-public vco-plugins
921 "http://kokkinizita.linuxaudio.org"
922 "/linuxaudio/downloads/VCO-plugins-"
926 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
927 (build-system gnu-build-system)
929 `(#:tests? #f ; no "check" target
931 (modify-phases %standard-phases
932 ;; no configure script
934 (add-before 'install 'prepare-target-directory
935 (lambda* (#:key outputs #:allow-other-keys)
936 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
938 (add-after 'unpack 'override-target-directory
939 (lambda* (#:key outputs #:allow-other-keys)
940 (substitute* "Makefile"
941 (("/usr") (assoc-ref outputs "out"))
942 (("/bin/cp") (which "cp")))
944 (home-page "https://kokkinizita.linuxaudio.org")
945 (synopsis "LADSPA plugin for synthesizer oscillators")
947 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
950 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
951 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
952 @item Rec-VCO, a square / rectange oscillator
955 All oscillators are low-pass filtered to provide waveforms similar to the
956 output of analog synthesizers such as the Moog Voyager.")
957 (license license:gpl2+)))
959 (define-public wah-plugins
966 "http://kokkinizita.linuxaudio.org"
967 "/linuxaudio/downloads/WAH-plugins-"
971 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
972 (build-system gnu-build-system)
974 `(#:tests? #f ; no "check" target
976 (modify-phases %standard-phases
977 ;; no configure script
979 (add-before 'install 'prepare-target-directory
980 (lambda* (#:key outputs #:allow-other-keys)
981 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
983 (add-after 'unpack 'override-target-directory
984 (lambda* (#:key outputs #:allow-other-keys)
985 (substitute* "Makefile"
986 (("/usr") (assoc-ref outputs "out")))
988 (home-page "https://kokkinizita.linuxaudio.org")
989 (synopsis "LADSPA Autowah effect plugin")
991 "This package provides a LADSPA plugin for a Wah effect with envelope
993 (license license:gpl2+)))
995 (define-public g2reverb
1002 "http://kokkinizita.linuxaudio.org"
1003 "/linuxaudio/downloads/g2reverb-"
1004 version ".tar.bz2"))
1007 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1008 (build-system gnu-build-system)
1010 `(#:tests? #f ; no "check" target
1012 (modify-phases %standard-phases
1013 ;; no configure script
1015 (add-before 'install 'prepare-target-directory
1016 (lambda* (#:key outputs #:allow-other-keys)
1017 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1019 (add-after 'unpack 'override-target-directory
1020 (lambda* (#:key outputs #:allow-other-keys)
1021 (substitute* "Makefile"
1022 (("/usr") (assoc-ref outputs "out")))
1024 (home-page "https://kokkinizita.linuxaudio.org")
1025 (synopsis "LADSPA stereo reverb plugin")
1027 "This package provides a LADSPA plugin for a stereo reverb effect.")
1028 (license license:gpl2+)))
1030 (define-public fluidsynth
1037 (url "https://github.com/FluidSynth/fluidsynth.git")
1038 (commit (string-append "v" version))))
1039 (file-name (string-append name "-" version "-checkout"))
1042 "0krvmb1idnf95l2ydzfcb08ayyx3n4m71hf9fgwv3srzaikvpf3q"))))
1043 (build-system cmake-build-system)
1045 '(#:tests? #f ; no check phase
1047 (modify-phases %standard-phases
1048 (add-after 'unpack 'fix-libdir
1050 (substitute* "CMakeLists.txt"
1051 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1055 `(("libsndfile" ,libsndfile)
1056 ("alsa-lib" ,alsa-lib)
1060 ("readline" ,readline)
1063 `(("pkg-config" ,pkg-config)))
1064 (home-page "http://www.fluidsynth.org/")
1065 (synopsis "SoundFont synthesizer")
1067 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1068 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1069 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1070 also play midifiles using a Soundfont.")
1071 (license license:lgpl2.1+)))
1073 (define-public faad2
1079 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1080 version "/faad2-" version ".zip"))
1083 "16f3l16c00sg0wkrkm3vzv0gy3g97x309vw788igs0cap2x1ak3z"))))
1084 (build-system gnu-build-system)
1086 `(("autoconf" ,autoconf)
1087 ("automake" ,automake)
1088 ("libtool" ,libtool)
1092 (modify-phases %standard-phases
1093 (add-after 'unpack 'bootstrap
1095 (substitute* "bootstrap" (("\r\n") "\n"))
1096 (zero? (system* "sh" "bootstrap")))))))
1097 (home-page "http://www.audiocoding.com/faad2.html")
1098 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1100 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
1102 (license license:gpl2)))
1104 (define-public faust
1111 (url "https://github.com/grame-cncm/faust.git")
1112 (commit (string-append "v"
1113 (string-map (lambda (c)
1114 (if (char=? c #\.) #\- c))
1116 (file-name (string-append "faust-" version "-checkout"))
1119 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1120 (build-system gnu-build-system)
1122 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1125 (modify-phases %standard-phases
1126 ;; no "configure" script
1128 ;; Files appear under $out/share/faust that are read-only. The
1129 ;; install phase tries to overwrite them and fails, so we change
1130 ;; the permissions first.
1131 (add-before 'install 'fix-permissions
1133 (for-each (lambda (file)
1135 (find-files "architecture/max-msp" ".*"))
1138 `(("unzip" ,unzip)))
1139 (home-page "http://faust.grame.fr/")
1140 (synopsis "Signal processing language")
1142 "Faust is a programming language for realtime audio signal processing.")
1143 (license license:gpl2+)))
1145 (define-public faust-2
1152 (url "https://github.com/grame-cncm/faust.git")
1153 (commit (string-append "v"
1154 (string-map (lambda (c)
1155 (if (char=? c #\.) #\- c))
1159 "06km0ygwxxwgw1lqldccqidxhmjfz8ck0wnbd95qk5sg8sbpc068"))))
1160 (build-system gnu-build-system)
1162 (substitute-keyword-arguments (package-arguments faust)
1163 ((#:make-flags flags)
1164 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1167 `(("llvm" ,llvm-with-rtti)
1170 ("ctags" ,emacs-minimal) ; for ctags
1171 ("pkg-config" ,pkg-config)))
1173 `(("libsndfile" ,libsndfile)
1174 ("libmicrohttpd" ,libmicrohttpd)
1175 ("ncurses" ,ncurses)
1176 ("openssl" ,openssl)
1179 (define-public freepats
1182 (version "20060219")
1185 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1186 version ".tar.bz2"))
1189 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1190 (build-system trivial-build-system)
1192 `(#:modules ((guix build utils))
1194 (use-modules (guix build utils))
1195 (let ((out (string-append %output "/share/freepats")))
1196 (setenv "PATH" (string-append
1197 (assoc-ref %build-inputs "bzip2") "/bin:"
1198 (assoc-ref %build-inputs "tar") "/bin"))
1199 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
1201 ;; Use absolute pattern references
1202 (substitute* "freepats.cfg"
1203 (("Tone_000") (string-append out "/Tone_000"))
1204 (("Drum_000") (string-append out "/Drum_000")))
1206 (copy-recursively "." out)))))
1210 (home-page "http://freepats.zenvoid.org")
1211 (synopsis "GUS compatible patches for MIDI players")
1213 "FreePats is a project to create a free and open set of GUS compatible
1214 patches that can be used with softsynths such as Timidity and WildMidi.")
1215 ;; GPLv2+ with exception for compositions using these patches.
1216 (license license:gpl2+)))
1218 (define-public guitarix
1225 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1229 "1g5949jwh2n755xjs3kcbdb8a1wxr5mn0m115wdnk27dxcdn93b0"))))
1230 (build-system waf-build-system)
1232 `(#:tests? #f ; no "check" target
1236 ;; Add the output lib directory to the RUNPATH.
1237 (string-append "--ldflags=-Wl,-rpath=" %output "/lib")
1238 "--cxxflags=-std=c++11")))
1240 `(("libsndfile" ,libsndfile)
1252 ("zita-resampler" ,zita-resampler)
1253 ("zita-convolver" ,zita-convolver)))
1257 ("intltool" ,intltool)
1258 ("gettext" ,gettext-minimal)
1259 ("pkg-config" ,pkg-config)))
1260 (native-search-paths
1261 (list (search-path-specification
1262 (variable "LV2_PATH")
1263 (files '("lib/lv2")))))
1264 (home-page "http://guitarix.org/")
1265 (synopsis "Virtual guitar amplifier")
1266 (description "Guitarix is a virtual guitar amplifier running JACK.
1267 Guitarix takes the signal from your guitar as a mono-signal from your sound
1268 card. The input is processed by a main amp and a rack-section. Both can be
1269 routed separately and deliver a processed stereo-signal via JACK. You may
1270 fill the rack with effects from more than 25 built-in modules including stuff
1271 from a simple noise gate to modulation effects like flanger, phaser or
1273 (license license:gpl2+)))
1275 (define-public guitarix-lv2
1276 (package (inherit guitarix)
1277 (name "guitarix-lv2")
1279 (substitute-keyword-arguments (package-arguments guitarix)
1280 ((#:configure-flags flags)
1281 `(cons "--lv2-only" ,flags))))))
1283 (define-public rakarrack
1289 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1290 "rakarrack-" version "/rakarrack-"
1291 version ".tar.bz2"))
1294 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1295 (modules '((guix build utils)))
1298 (substitute* '("src/process.C"
1300 (("#include <Fl/") "#include <FL/"))
1302 (build-system gnu-build-system)
1304 `(("alsa-utils" ,alsa-utils)
1307 ("libxext" ,libxext)
1308 ("libxfixes" ,libxfixes)
1310 ("libxrender" ,libxrender)
1312 ("fontconfig" ,fontconfig)
1313 ("freetype" ,freetype)
1315 ("alsa-lib" ,alsa-lib)
1316 ("libsndfile" ,libsndfile)
1317 ("libsamplerate" ,libsamplerate)
1319 (home-page "http://rakarrack.sourceforge.net/")
1320 (synopsis "Audio effects processor")
1322 "Rakarrack is a richly featured multi-effects processor emulating a
1323 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1324 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1325 distortion modules and many more. Most of the effects engine is built from
1326 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1327 user interface are optimized for guitar, but Rakarrack processes signals in
1328 stereo while it does not apply internal band-limiting filtering, and thus is
1329 well suited to all musical instruments and vocals.")
1330 ;; The code is explicitly licensed under the GPL version 2 only.
1331 (license license:gpl2)))
1339 ;; The original home-page is gone. Download the tarball from an
1340 ;; archive mirror instead.
1341 (uri (list (string-append
1342 "https://web.archive.org/web/20150803095032/"
1343 "http://factorial.hu/system/files/ir.lv2-"
1346 "https://mirrors.kernel.org/gentoo/distfiles/ir.lv2-"
1347 version ".tar.gz")))
1350 "1jh2z01l9m4ar7yz0n911df07dygc7n4cl59p7qdjbh0nvkm747g"))))
1351 (build-system gnu-build-system)
1353 `(#:tests? #f ; no tests
1354 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1355 #:phases (modify-phases %standard-phases
1356 (delete 'configure)))) ; no configure script
1358 `(("libsndfile" ,libsndfile)
1359 ("libsamplerate" ,libsamplerate)
1363 ("zita-convolver" ,zita-convolver)))
1365 `(("pkg-config" ,pkg-config)))
1366 (native-search-paths
1367 (list (search-path-specification
1368 (variable "LV2_PATH")
1369 (files '("lib/lv2")))))
1370 ;; Link to an archived copy of the home-page since the original is gone.
1371 (home-page (string-append "https://web.archive.org/web/20150803095032/"
1372 "http://factorial.hu/plugins/lv2/ir"))
1373 (synopsis "LV2 convolution reverb")
1375 "IR is a low-latency, real-time, high performance signal convolver
1376 especially for creating reverb effects. It supports impulse responses with 1,
1377 2 or 4 channels, in any soundfile format supported by libsndfile.")
1378 (license license:gpl2+)))
1380 (define-public jack-1
1387 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1392 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
1393 (build-system gnu-build-system)
1395 `(("alsa-lib" ,alsa-lib)
1396 ("readline" ,readline)))
1397 ;; uuid.h is included in the JACK type headers
1398 ;; db.h is included in the libjack metadata headers
1400 `(("libuuid" ,util-linux)
1403 `(("pkg-config" ,pkg-config)))
1404 (home-page "http://jackaudio.org/")
1405 (synopsis "JACK audio connection kit")
1407 "JACK is a low-latency audio server. It can connect a number of
1408 different applications to an audio device, as well as allowing them to share
1409 audio between themselves. JACK is different from other audio server efforts
1410 in that it has been designed from the ground up to be suitable for
1411 professional audio work. This means that it focuses on two key areas:
1412 synchronous execution of all clients, and low latency operation.")
1413 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1414 ;; licensed under the LGPL in order to allow for proprietary usage.
1415 (license (list license:gpl2+ license:lgpl2.1+))))
1417 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1418 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
1419 ;; program for users who might benefit from the D-BUS features.
1420 (define-public jack-2
1421 (package (inherit jack-1)
1426 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
1427 "download/v" version "/jack2-"
1429 (file-name (string-append name "-" version ".tar.gz"))
1432 "0crf4y9a5j9miw8r5ji4l3w5w0y2frrf7xyfsfdgacnw6vwy5vyy"))))
1433 (build-system waf-build-system)
1435 `(#:python ,python-2
1436 #:tests? #f ; no check target
1437 #:configure-flags '("--dbus"
1440 (modify-phases %standard-phases
1442 'configure 'set-linkflags
1444 ;; Add $libdir to the RUNPATH of all the binaries.
1445 (substitute* "wscript"
1446 ((".*CFLAGS.*-Wall.*" m)
1448 " conf.env.append_unique('LINKFLAGS',"
1449 "'-Wl,-rpath=" %output "/lib')\n")))))
1450 (add-after 'install 'wrap-python-scripts
1451 (lambda* (#:key inputs outputs #:allow-other-keys)
1452 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1453 (let* ((out (assoc-ref outputs "out"))
1454 (path (getenv "PYTHONPATH")))
1455 (wrap-program (string-append out "/bin/jack_control")
1456 `("PYTHONPATH" ":" prefix (,path))))
1459 `(("alsa-lib" ,alsa-lib)
1462 ("libsamplerate" ,libsamplerate)
1464 ("python2-dbus" ,python2-dbus)
1465 ("readline" ,readline)))
1467 `(("pkg-config" ,pkg-config)))
1468 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1469 (license (list license:gpl2+ license:lgpl2.1+))))
1477 (uri (string-append "http://download.drobilla.net/jalv-"
1478 version ".tar.bz2"))
1481 "1x2wpzzx2cgvz3dgdcgsj8dr0w3zsasy62mvl199bsdj5fbjaili"))))
1482 (build-system waf-build-system)
1484 `(#:tests? #f ; no check target
1486 (modify-phases %standard-phases
1488 'configure 'set-flags
1490 ;; Compile with C++11, required by gtkmm.
1491 (setenv "CXXFLAGS" "-std=c++11")
1501 `(("pkg-config" ,pkg-config)))
1502 (home-page "http://drobilla.net/software/jalv/")
1503 (synopsis "Simple LV2 host for JACK")
1505 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1506 plugins and exposes their ports as JACK ports, essentially making any LV2
1507 plugin function as a JACK application.")
1508 (license license:isc)))
1510 (define-public ladspa
1517 ;; Since the official link is dead,
1518 ;; we download the tarball from Debian or Internet Archive.
1519 (uri (list (string-append "http://http.debian.net"
1520 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1521 version ".orig.tar.gz")
1522 (string-append "https://web.archive.org/web/20140717172251/"
1523 "http://www.ladspa.org/download/ladspa_sdk_"
1527 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
1528 (build-system gnu-build-system)
1530 `(#:tests? #f ; the "test" target is a listening test only
1534 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1536 (let ((out (assoc-ref outputs "out")))
1537 (substitute* "makefile"
1538 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1539 (("/usr/include/") (string-append out "/include/"))
1540 (("/usr/bin/") (string-append out "/bin/"))
1541 (("-mkdirhier") "mkdir -p")
1542 (("^CC.*") "CC = gcc\n")
1543 (("^CPP.*") "CPP = g++\n"))))
1544 (alist-delete 'build %standard-phases))))
1545 ;; Since the home page is gone, we provide a link to the archived version.
1547 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
1548 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1550 "LADSPA is a standard that allows software audio processors and effects
1551 to be plugged into a wide range of audio synthesis and recording packages.")
1552 (license license:lgpl2.1+)))
1557 (version "0.6.0-rc2")
1560 ;; The tilde is not permitted in the builder name, but is used
1563 "mirror://savannah/lash/lash-"
1564 (string-join (string-split version #\-) "~")
1566 (file-name (string-append name "-" version ".tar.bz2"))
1569 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1570 (build-system gnu-build-system)
1573 (modify-phases %standard-phases
1574 ;; lashd embeds an ancient version of sigsegv so we just skip it
1575 (add-after 'unpack 'skip-lashd
1577 (substitute* '("Makefile.am" "Makefile.in")
1580 #:configure-flags '("--disable-static")))
1585 ("readline" ,readline)
1586 ("python" ,python-2)))
1587 ;; According to pkg-config, packages depending on lash also need to have
1588 ;; at least the following packages declared as inputs.
1590 `(("alsa-lib" ,alsa-lib)
1592 ("libxml2" ,libxml2)))
1594 `(("pkg-config" ,pkg-config)))
1595 (home-page "https://www.nongnu.org/lash/")
1596 (synopsis "Audio application session manager")
1598 "LASH is a session management system for audio applications. It allows
1599 you to save and restore audio sessions consisting of multiple interconneced
1600 applications, restoring program state (i.e. loaded patches) and the
1601 connections between them.")
1602 (license license:gpl2+)))
1604 (define-public libbs2b
1610 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1611 "/libbs2b-" version ".tar.lzma"))
1614 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1615 (build-system gnu-build-system)
1616 (native-inputs `(("pkg-config" ,pkg-config)))
1617 (inputs `(("libsndfile" ,libsndfile)))
1618 (home-page "https://sourceforge.net/projects/bs2b/")
1619 (synopsis "Bauer stereophonic-to-binaural DSP")
1621 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1622 designed to improve headphone listening of stereo audio records. Recommended
1623 for headphone prolonged listening to disable superstereo fatigue without
1624 essential distortions.")
1625 (license license:expat)))
1627 (define-public liblo
1633 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1634 "/liblo-" version ".tar.gz"))
1637 "02drgnpirvl2ihvzgsmn02agr5sj3vipzzw9vma56qlkgfvak56s"))))
1638 (build-system gnu-build-system)
1640 `(;; liblo test FAILED
1641 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1643 (home-page "http://liblo.sourceforge.net")
1644 (synopsis "Implementation of the Open Sound Control protocol")
1646 "liblo is a lightweight library that provides an easy to use
1647 implementation of the Open Sound Control (OSC) protocol.")
1648 (license license:lgpl2.1+)))
1650 (define-public python-pyaudio
1652 (name "python-pyaudio")
1659 "https://pypi.python.org/packages/ab/42/"
1660 "b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b"
1661 "/PyAudio-" version ".tar.gz"))
1664 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
1665 (build-system python-build-system)
1667 `(("portaudio" ,portaudio)))
1668 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
1669 (synopsis "Bindings for PortAudio v19")
1670 (description "This package provides bindings for PortAudio v19, the
1671 cross-platform audio input/output stream library.")
1672 (license license:expat)))
1674 (define-public python2-pyaudio
1675 (package-with-python2 python-pyaudio))
1677 (define-public python-pyliblo
1679 (name "python-pyliblo")
1683 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1687 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1688 (build-system python-build-system)
1689 (arguments `(#:tests? #f)) ;no tests
1691 `(("python-cython" ,python-cython)))
1693 `(("liblo" ,liblo)))
1694 (home-page "http://das.nasophon.de/pyliblo/")
1695 (synopsis "Python bindings for liblo")
1697 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1698 library. It supports almost the complete functionality of liblo, allowing you
1699 to send and receive OSC messages using a nice and simple Python API. Also
1700 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1701 (license license:lgpl2.1+)))
1703 (define-public python2-pyliblo
1704 (package-with-python2 python-pyliblo))
1712 (uri (string-append "http://download.drobilla.net/lilv-"
1713 version ".tar.bz2"))
1716 "08m5a372pr1l7aii9s3pic5nm68gynx1n1bc7bnlswziq6qnbv7p"))))
1717 (build-system waf-build-system)
1719 `(#:tests? #f ; no check target
1721 (modify-phases %standard-phases
1723 'configure 'set-ldflags
1724 (lambda* (#:key outputs #:allow-other-keys)
1726 (string-append "-Wl,-rpath="
1727 (assoc-ref outputs "out") "/lib")))))))
1728 ;; required by lilv-0.pc
1732 ("sratom" ,sratom)))
1736 `(("pkg-config" ,pkg-config)))
1737 (home-page "http://drobilla.net/software/lilv/")
1738 (synopsis "Library to simplify use of LV2 plugins in applications")
1740 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1741 for applications. Lilv is the successor to SLV2, rewritten to be
1742 significantly faster and have minimal dependencies.")
1743 (license license:isc)))
1751 (uri (string-append "http://lv2plug.in/spec/lv2-"
1752 version ".tar.bz2"))
1755 "0chxwys3vnn3nxc9x2vchm74s9sx0vfra6y893byy12ci61jc1dq"))))
1756 (build-system waf-build-system)
1758 `(#:tests? #f ; no check target
1759 #:configure-flags '("--no-plugins")))
1761 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1762 `(("libsndfile" ,libsndfile)))
1764 `(("pkg-config" ,pkg-config)))
1765 (home-page "http://lv2plug.in/")
1766 (synopsis "LV2 audio plugin specification")
1768 "LV2 is an open specification for audio plugins and host applications.
1769 At its core, LV2 is a simple stable interface, accompanied by extensions which
1770 add functionality to support the needs of increasingly powerful audio
1772 (license license:isc)))
1774 (define-public lv2-devel
1775 (let ((commit "39c7c726cd52b2863fcea356cafe1bcab2ba7f37")
1777 (package (inherit lv2)
1779 (version (string-append "1.15.3-" revision "." (string-take commit 7)))
1783 (url "http://lv2plug.in/git/lv2.git")
1787 "1gp2rd99dfmpibvpixrqn115mrhybzf3if3h8bssf6siyi13f29r")))))))
1789 (define-public lv2-mda-piano
1791 (name "lv2-mda-piano")
1796 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
1800 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1801 (build-system gnu-build-system)
1803 `(#:make-flags (list
1805 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1806 #:tests? #f ; no check target
1807 #:phases (modify-phases %standard-phases (delete 'configure))))
1812 `(("pkg-config" ,pkg-config)))
1813 (native-search-paths
1814 (list (search-path-specification
1815 (variable "LV2_PATH")
1816 (files '("lib/lv2")))))
1817 (home-page "http://elephly.net/lv2/mdapiano.html")
1818 (synopsis "LV2 port of the mda Piano plugin")
1819 (description "An LV2 port of the mda Piano VSTi.")
1820 (license license:gpl3+)))
1822 (define-public lv2-mda-epiano
1823 (package (inherit lv2-mda-piano)
1824 (name "lv2-mda-epiano")
1826 `(#:make-flags (list
1828 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1829 #:tests? #f ; no check target
1830 #:phases (modify-phases %standard-phases (delete 'configure))))
1831 (home-page "http://elephly.net/lv2/mdaepiano.html")
1832 (synopsis "LV2 port of the mda EPiano plugin")
1833 (description "An LV2 port of the mda EPiano VSTi.")))
1841 (uri (string-append "https://github.com/lvtk/lvtk/archive/"
1844 (file-name (string-append name "-" version ".tar.gz"))
1847 "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd"))))
1848 (build-system waf-build-system)
1850 `(#:tests? #f ; no check target
1853 (list (string-append "--boost-includes="
1854 (assoc-ref %build-inputs "boost")
1856 #:phases (modify-phases %standard-phases
1858 'configure 'set-flags
1859 (lambda* (#:key inputs #:allow-other-keys)
1860 ;; See e.g. https://github.com/lvtk/lvtk/issues/21
1863 "-L" (assoc-ref inputs "boost") "/lib "
1866 (substitute* '("src/wscript_build"
1867 "examples/wscript_build")
1868 (("cxxflags.*= \\[" line)
1869 (string-append line "\"-std=c++11\", ")))
1876 `(("pkg-config" ,pkg-config)))
1877 (home-page "https://github.com/lvtk/lvtk")
1878 (synopsis "C++ libraries for LV2 plugins")
1880 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
1881 extensions into easy to use C++ classes. It is the successor of
1883 (license license:gpl3+)))
1885 (define-public openal
1892 "http://kcat.strangesoft.net/openal-releases/openal-soft-"
1893 version ".tar.bz2"))
1896 "051k5fy8pk4fd9ha3qaqcv08xwbks09xl5qs4ijqq2qz5xaghhd3"))))
1897 (build-system cmake-build-system)
1899 `(#:tests? #f ; no check target
1901 (modify-phases %standard-phases
1903 'unpack 'use-full-library-paths
1904 (lambda* (#:key inputs #:allow-other-keys)
1905 (substitute* "Alc/backends/pulseaudio.c"
1906 (("#define PALIB \"libpulse\\.so\\.0\"")
1907 (string-append "#define PALIB \""
1908 (assoc-ref inputs "pulseaudio")
1909 "/lib/libpulse.so.0"
1911 (substitute* "Alc/backends/alsa.c"
1912 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
1913 (string-append "LoadLib(\""
1914 (assoc-ref inputs "alsa-lib")
1915 "/lib/libasound.so.2"
1919 `(("alsa-lib" ,alsa-lib)
1920 ("pulseaudio" ,pulseaudio)))
1921 (synopsis "3D audio API")
1923 "OpenAL provides capabilities for playing audio in a virtual 3D
1924 environment. Distance attenuation, doppler shift, and directional sound
1925 emitters are among the features handled by the API. More advanced effects,
1926 including air absorption, occlusion, and environmental reverb, are available
1927 through the EFX extension. It also facilitates streaming audio, multi-channel
1928 buffers, and audio capture.")
1929 (home-page "http://kcat.strangesoft.net/openal.html")
1930 (license license:lgpl2.0+)))
1932 (define-public freealut
1938 ;; Upstream url is unclear, many systems use Fedora, there is also
1939 ;; https://github.com/vancegroup/freealut though the status of it
1940 ;; (official? unofficial?) is not clear.
1942 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
1943 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
1944 "-" version ".tar.gz"))
1947 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
1948 (build-system cmake-build-system)
1950 `(#:tests? #f)) ; no check target
1952 `(("openal" ,openal)))
1953 (synopsis "Free implementation of OpenAL's ALUT standard")
1954 (description "freealut is the OpenAL Utility Toolkit.")
1955 (home-page "http://kcat.strangesoft.net/openal.html")
1956 (license license:lgpl2.0)))
1958 (define-public patchage
1964 (uri (string-append "http://download.drobilla.net/patchage-"
1969 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
1970 (build-system waf-build-system)
1971 (arguments `(#:tests? #f)) ; no check target
1973 `(("alsa-lib" ,alsa-lib)
1979 ("dbus-glib" ,dbus-glib)))
1981 `(("pkg-config" ,pkg-config)))
1982 (home-page "http://drobilla.net/software/patchage/")
1983 (synopsis "Modular patch bay for audio and MIDI systems")
1985 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
1987 (license license:gpl3+)))
1989 (define-public qjackctl
1995 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
1996 version "/qjackctl-" version ".tar.gz"))
1999 "0lx81dfwanc10vrny1vzi0wx73ph82dlz99ffjzsigj3cqzz6x4s"))))
2000 (build-system gnu-build-system)
2002 '(#:tests? #f)) ; no check target
2005 ("alsa-lib" ,alsa-lib)
2007 ("qtx11extras" ,qtx11extras)))
2009 `(("pkg-config" ,pkg-config)
2010 ("qttools" ,qttools)))
2011 (home-page "https://qjackctl.sourceforge.io/")
2012 (synopsis "Jack server control application")
2013 (description "Control a Jack server. Allows you to plug various sources
2014 into various outputs and to start, stop and configure jackd")
2015 (license license:gpl2+)))
2017 (define-public qjackrcd
2024 (url "https://github.com/orouits/qjackrcd.git")
2025 (commit (string-append "v" version))))
2028 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2029 (build-system gnu-build-system)
2032 (modify-phases %standard-phases
2034 (lambda* (#:key outputs #:allow-other-keys)
2035 (zero? (system* "qmake"
2036 (string-append "PREFIX="
2037 (assoc-ref outputs "out")))))))))
2039 `(("qtbase" ,qtbase))) ; for qmake
2042 ("libsndfile" ,libsndfile)
2043 ("qtbase" ,qtbase)))
2044 (home-page "https://sourceforge.net/projects/qjackrcd/")
2045 (synopsis "Stereo audio recorder for JACK")
2046 (description "QJackRcd is a simple graphical stereo recorder for JACK
2047 supporting silence processing for automatic pause, file splitting, and
2048 background file post-processing.")
2049 (license license:gpl2+)))
2057 (uri (string-append "http://download.drobilla.net/raul-"
2058 version ".tar.bz2"))
2061 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2062 (build-system waf-build-system)
2064 `(#:python ,python-2
2065 #:tests? #f)) ; no check target
2070 `(("pkg-config" ,pkg-config)))
2071 (home-page "http://drobilla.net/software/raul/")
2072 (synopsis "Real-time audio utility library")
2074 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2075 aimed at audio/musical applications.")
2076 (license license:gpl2+)))
2078 (define-public raul-devel
2079 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2081 (package (inherit raul)
2083 (version (string-append "0.8.9-" revision "."
2084 (string-take commit 9)))
2088 (url "http://git.drobilla.net/raul.git")
2090 (file-name (string-append name "-" version "-checkout"))
2093 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2095 (define-public rubberband
2102 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2107 "05amrbrxx0da3w7m237q51799r8xgs4ffqabi2qv06hq8dpcj386"))))
2108 (build-system gnu-build-system)
2109 (arguments `(#:tests? #f)) ; no check target
2111 `(("ladspa" ,ladspa)
2112 ("libsamplerate" ,libsamplerate)
2115 `(("pkg-config" ,pkg-config)))
2116 (home-page "http://breakfastquay.com/rubberband/")
2117 (synopsis "Audio time-stretching and pitch-shifting library")
2119 "Rubber Band is a library and utility program that permits changing the
2120 tempo and pitch of an audio recording independently of one another.")
2121 (license license:gpl2+)))
2123 (define-public rtmidi
2130 (string-append "https://github.com/powertab/rtmidi/archive/"
2132 (file-name (string-append name "-" version ".tar.gz"))
2135 "0d49lapnmdgmjxh4vw57h6xk74nn5r0zwysv7jbd7m8kqhpq5rjj"))))
2136 (build-system gnu-build-system)
2138 `(#:tests? #f ;no "check" target
2139 #:phases (modify-phases %standard-phases
2142 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
2144 'build 'fix-makefile
2146 (substitute* "Makefile"
2148 (("RtMidi.h RtError.h") "RtMidi.h"))
2151 'install 'make-target-dirs
2153 (let ((out (assoc-ref %outputs "out")))
2154 (mkdir-p (string-append out "/bin"))
2155 (mkdir (string-append out "/lib"))
2156 (mkdir (string-append out "/include")))
2160 ("alsa-lib" ,alsa-lib)))
2162 `(("autoconf" ,autoconf)
2163 ("automake" ,automake)
2164 ("libtool" ,libtool)
2165 ("pkg-config" ,pkg-config)))
2166 (home-page "https://github.com/powertab/rtmidi")
2167 (synopsis "Cross-platform MIDI library for C++")
2169 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2170 classes) that provide a common cross-platform API for realtime MIDI
2172 (license license:expat)))
2174 (define-public sratom
2180 (uri (string-append "http://download.drobilla.net/sratom-"
2181 version ".tar.bz2"))
2184 "0hrxd9i66s06bpn6i3s9ka95134g3sm8yscmif7qgdzhyjqw42j4"))))
2185 (build-system waf-build-system)
2186 (arguments `(#:tests? #f)) ; no check target
2192 `(("pkg-config" ,pkg-config)))
2193 (home-page "http://drobilla.net/software/sratom/")
2194 (synopsis "Library for serialising LV2 atoms to/from RDF")
2196 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2197 the Turtle syntax.")
2198 (license license:isc)))
2206 (uri (string-append "http://download.drobilla.net/suil-"
2207 version ".tar.bz2"))
2210 "0j489gm3fhnmwmbgw30bvd4byw1vsy4yazdlnji8jzhcz0qwb5cq"))))
2211 (build-system waf-build-system)
2213 `(#:tests? #f ; no check target
2215 '("CXXFLAGS=-std=gnu++11")))
2222 `(("pkg-config" ,pkg-config)))
2223 (home-page "http://drobilla.net/software/suil/")
2224 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2226 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2228 Suil makes it possible to load a UI of a toolkit in a host using another
2229 toolkit. The API is designed such that hosts do not need to explicitly
2230 support specific toolkits – if Suil supports a particular toolkit, then UIs in
2231 that toolkit will work in all hosts that use Suil automatically.
2233 Suil currently supports every combination of Gtk, Qt, and X11.")
2234 (license license:isc)))
2236 (define-public timidity++
2242 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2243 "/TiMidity++-" version
2244 "/TiMidity++-" version ".tar.bz2"))
2247 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2248 (build-system gnu-build-system)
2251 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2255 (string-append "--with-default-path="
2256 (assoc-ref %outputs "out") "/etc/timidity"))
2258 (modify-phases %standard-phases
2259 (add-after 'install 'install-config
2261 (let ((out (string-append (assoc-ref %outputs "out")
2264 (call-with-output-file
2265 (string-append out "/timidity.cfg")
2267 (format port (string-append "source "
2268 (assoc-ref %build-inputs "freepats")
2269 "/share/freepats/freepats.cfg")))))
2272 `(("alsa-lib" ,alsa-lib)
2278 ("ncurses" ,ncurses)
2279 ("freepats" ,freepats)))
2281 `(("pkg-config" ,pkg-config)))
2282 (home-page "http://timidity.sourceforge.net/")
2283 (synopsis "Software synthesizer for playing MIDI files")
2285 "TiMidity++ is a software synthesizer. It can play MIDI files by
2286 converting them into PCM waveform data; give it a MIDI data along with digital
2287 instrument data files, then it synthesizes them in real-time, and plays. It
2288 can not only play sounds, but also can save the generated waveforms into hard
2289 disks as various audio file formats.")
2290 (license license:gpl2+)))
2299 "https://code.soundsoftware.ac.uk"
2300 "/attachments/download/1520/vamp-plugin-sdk-"
2304 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
2305 (build-system gnu-build-system)
2307 `(#:tests? #f ; no check target
2309 (modify-phases %standard-phases
2310 (add-after 'install 'remove-libvamp-hostsdk.la
2311 (lambda* (#:key outputs #:allow-other-keys)
2312 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2313 (for-each delete-file
2314 (let ((out (assoc-ref outputs "out")))
2315 (list (string-append out "/lib/libvamp-sdk.la")
2316 (string-append out "/lib/libvamp-hostsdk.la"))))
2319 `(("libsndfile" ,libsndfile)))
2321 `(("pkg-config" ,pkg-config)))
2322 (home-page "http://vamp-plugins.org")
2323 (synopsis "Modular and extensible audio processing system")
2325 "Vamp is an audio processing plugin system for plugins that extract
2326 descriptive information from audio data — typically referred to as audio
2327 analysis plugins or audio feature extraction plugins.")
2330 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
2332 (define-public libsbsms
2339 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2340 "/libsbsms-" version ".tar.gz"))
2342 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2343 (build-system gnu-build-system)
2344 (native-inputs `(("automake" ,automake)))
2347 ;; Disable the use of SSE unless on x86_64.
2348 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2349 (%current-system))))
2353 (modify-phases %standard-phases
2355 'unpack 'fix-ar-lib-path
2356 (lambda* (#:key inputs #:allow-other-keys)
2357 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2358 (delete-file "ar-lib")
2360 (string-append (assoc-ref inputs "automake") "/share/automake-"
2361 ,(package-version automake) "/ar-lib")
2363 (home-page "http://sbsms.sourceforge.net/")
2364 (synopsis "Library for time stretching and pitch scaling of audio")
2366 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2367 stretching and pitch scaling of audio. This package contains the library.")
2368 ;; There is no explicit declaration of a license, but a COPYING file
2370 (license license:gpl2)))
2372 (define-public wavpack
2378 (uri (string-append "http://www.wavpack.com/"
2379 name "-" version ".tar.bz2"))
2380 (patches (search-patches "wavpack-CVE-2018-7253.patch"
2381 "wavpack-CVE-2018-7254.patch"))
2384 "0i19c6krc0p9krwrqy9s5xahaafigqzxcn31piidmlaqadyn4f8r"))))
2385 (build-system gnu-build-system)
2386 (home-page "http://www.wavpack.com/")
2387 (synopsis "Hybrid lossless audio codec")
2389 "WavPack is an audio compression format with lossless, lossy and hybrid
2390 compression modes. This package contains command-line programs and library to
2391 encode and decode wavpack files.")
2392 (license license:bsd-3)))
2394 (define-public libmodplug
2401 "mirror://sourceforge/modplug-xmms/"
2402 name "/" version "/" name "-" version ".tar.gz"))
2405 "1bfsladg7h6vnii47dd66f5vh1ir7qv12mfb8n36qiwrxq92sikp"))))
2406 (build-system gnu-build-system)
2407 (home-page "http://modplug-xmms.sourceforge.net/")
2408 (synopsis "Mod file playing library")
2410 "Libmodplug renders mod music files as raw audio data, for playing or
2411 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2412 supported. Optional features include high-quality resampling, bass expansion,
2413 surround and reverb.")
2414 (license license:public-domain)))
2416 (define-public libxmp
2422 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
2423 name "-" version ".tar.gz"))
2426 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
2427 (build-system gnu-build-system)
2428 (home-page "http://xmp.sourceforge.net/")
2429 (synopsis "Module player library")
2431 "Libxmp is a library that renders module files to PCM data. It supports
2432 over 90 mainstream and obscure module formats including Protracker (MOD),
2433 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2434 (license license:lgpl2.1+)))
2442 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
2443 name "-" version ".tar.gz"))
2446 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
2447 (build-system gnu-build-system)
2449 `(("pkg-config" ,pkg-config)))
2451 `(("libxmp" ,libxmp)
2452 ("pulseaudio" ,pulseaudio)))
2453 (home-page "http://xmp.sourceforge.net/")
2454 (synopsis "Extended module player")
2456 "Xmp is a portable module player that plays over 90 mainstream and
2457 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2458 Tracker 3 S3M and Impulse Tracker IT files.")
2459 (license license:gpl2+)))
2461 (define-public soundtouch
2470 "http://www.surina.net/soundtouch/soundtouch-" version ".tar.gz"))
2472 (base32 "0sqn3wk4qz20vf0vz853l6dl1gnj1yhqxfwxqsc5lp529kbn2h9x"))))
2473 (build-system gnu-build-system)
2475 `(("autoconf" ,autoconf)
2476 ("automake" ,automake)
2477 ("libtool" ,libtool)
2481 (modify-phases %standard-phases
2482 (add-after 'unpack 'bootstrap
2484 (zero? (system* "sh" "bootstrap")))))))
2485 (home-page "http://www.surina.net/soundtouch/")
2487 "Audio processing library for changing tempo, pitch and playback rate")
2489 "SoundTouch is an audio processing library for changing the tempo, pitch
2490 and playback rates of audio streams or audio files. It is intended for
2491 application developers writing sound processing tools that require tempo/pitch
2492 control functionality, or just for playing around with the sound effects.")
2493 (license license:lgpl2.1+)))
2501 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2502 name "-" version ".tar.bz2"))
2505 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2506 (build-system gnu-build-system)
2509 ;; The upstream asks to identify the distribution to diagnose SoX
2511 '("--with-distro=Guix System Distribution")))
2513 `(("pkg-config" ,pkg-config)))
2515 `(("alsa-lib" ,alsa-lib)
2519 ("libid3tag" ,libid3tag)
2520 ("libltdl" ,libltdl)
2523 ("libvorbis" ,libvorbis)
2524 ("pulseaudio" ,pulseaudio)))
2525 (home-page "http://sox.sourceforge.net")
2526 (synopsis "Sound processing utility")
2528 "SoX (Sound eXchange) is a command line utility that can convert
2529 various formats of computer audio files to other formats. It can also
2530 apply various effects to these sound files, and, as an added bonus, SoX
2531 can play and record audio files.")
2532 ;; sox.c is distributed under GPL, while the files that make up
2533 ;; libsox are licensed under LGPL.
2534 (license (list license:gpl2+ license:lgpl2.1+))))
2544 (string-append "mirror://sourceforge/soxr/soxr-" version
2547 (base32 "0xf2w3piwz9gfr1xqyrj4k685q5dy53kq3igv663i4f4y4sg9rjl"))))
2548 (build-system cmake-build-system)
2549 (arguments '(#:tests? #f)) ;no 'check' target
2550 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
2551 (synopsis "One-dimensional sample-rate conversion library")
2553 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2554 conversion. It may be used, for example, to resample PCM-encoded audio.")
2555 (license license:lgpl2.1+)))
2557 (define-public twolame
2564 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2565 "/twolame-" version ".tar.gz"))
2567 (base32 "0ahiqqng5pidwhj1wzph4vxxgxxgcfa3gl0gywipzx2ii7s35wwq"))
2568 (modules '((guix build utils)))
2569 ;; The tests break with Perl 5.24:
2570 ;; https://github.com/njh/twolame/issues/21
2571 ;; TODO: Remove this snippet when upgrading twolame.
2574 (substitute* "tests/test.pl" (("\\(@_\\)") "($_[0])"))
2576 (build-system gnu-build-system)
2578 `(("libsndfile" ,libsndfile)))
2581 ("which" ,which))) ;used in tests/test.pl
2582 (home-page "http://www.twolame.org/")
2583 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2585 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2586 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2588 (license license:lgpl2.1+)))
2590 (define-public portaudio
2593 (version "190600.20161030")
2598 "http://www.portaudio.com/archives/pa_stable_v"
2599 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2602 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
2603 (patches (search-patches "portaudio-audacity-compat.patch"))))
2604 (build-system gnu-build-system)
2606 ;; TODO: Add ASIHPI.
2607 `(("alsa-lib" ,alsa-lib)
2610 `(("autoconf" ,autoconf)
2611 ("automake" ,automake)
2612 ("libtool" ,libtool)
2613 ("pkg-config" ,pkg-config)))
2616 ;; Autoreconf is necessary because the audacity-compat patch modifies
2618 (modify-phases %standard-phases
2619 (add-after 'unpack 'autoreconf
2621 (zero? (system* "autoreconf" "-vif")))))
2622 #:tests? #f)) ;no 'check' target
2623 (home-page "http://www.portaudio.com/")
2624 (synopsis "Audio I/O library")
2626 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2627 to record and/or play sound using a callback function or a blocking read/write
2629 (license license:expat)))
2631 (define-public qsynth
2638 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2639 "/qsynth-" version ".tar.gz"))
2642 "1sr6vrz8z9r99j9xcix86lgcqldragb2ajmq1bnhr58d99sda584"))))
2643 (build-system gnu-build-system)
2645 `(#:tests? #f ; no "check" phase
2647 '("CXXFLAGS=-std=gnu++11")))
2649 `(("qttools" ,qttools)
2650 ("pkg-config" ,pkg-config)))
2652 `(("fluidsynth" ,fluidsynth)
2654 ("qtx11extras" ,qtx11extras)))
2655 (home-page "http://qsynth.sourceforge.net")
2656 (synopsis "Graphical user interface for FluidSynth")
2658 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2659 synthesizer written in C++.")
2660 (license license:gpl2+)))
2662 (define-public rsound
2669 (uri (string-append "https://github.com/Themaister/RSound/archive/v"
2671 (file-name (string-append name "-" version))
2673 (base32 "1wzs40c0k5zpkmm5ffl6c17xmr399sxli7ys0fbb9ib0fd334knx"))))
2674 (build-system gnu-build-system)
2676 `(("alsa-lib" ,alsa-lib)
2679 ("libsamplerate" ,libsamplerate)
2681 ("portaudio" ,portaudio)
2682 ("pulseaudio" ,pulseaudio)))
2685 (modify-phases %standard-phases
2687 (lambda* (#:key outputs #:allow-other-keys)
2690 (system* "./configure"
2691 (string-append "--prefix=" (assoc-ref outputs "out")))))))
2692 ;; No 'check' target.
2694 (home-page "http://themaister.net/rsound.html")
2695 (synopsis "Networked audio system")
2697 "RSound allows you to send audio from an application and transfer it
2698 directly to a different computer on your LAN network. It is an audio daemon
2699 with a much different focus than most other audio daemons.")
2700 (license license:gpl3+)))
2702 (define-public xjackfreak
2709 "https://github.com/johnhldavis/xjackfreak/archive/v"
2711 (file-name (string-append name "-" version ".tar.gz"))
2714 "0xj6gpxfnw9jbdgwgm0x23xgfvj2kwmwb1nk0drw8lxgcchkq7d9"))))
2715 (build-system gnu-build-system)
2718 (list (string-append "docdir=" (assoc-ref %outputs "out")
2719 "/share/doc/xjackfreak"))))
2724 ("libxext" ,libxext)))
2726 `(("pkg-config" ,pkg-config)))
2727 (home-page "https://github.com/johnhldavis/xjackfreak")
2728 (synopsis "JACK audio frequency analyzer and display")
2730 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
2731 Connection Kit. It can display the FFT of any input, modify it and output the
2733 (license license:gpl3+)))
2735 (define-public zita-convolver
2737 (name "zita-convolver")
2742 "http://kokkinizita.linuxaudio.org"
2743 "/linuxaudio/downloads/zita-convolver-"
2744 version ".tar.bz2"))
2746 ;; Don't optimize for a specific processor architecture.
2747 '(substitute* "libs/Makefile"
2748 (("^CXXFLAGS \\+= -march=native") "")))
2749 (modules '((guix build utils)))
2752 "14qrnczhp5mbwhky64il7kxc4hl1mmh495v60va7i2qnhasr6zmz"))))
2753 (build-system gnu-build-system)
2755 `(#:tests? #f ; no "check" target
2756 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2758 (modify-phases %standard-phases
2759 (add-after 'unpack 'patch-makefile-and-enter-directory
2761 (substitute* "libs/Makefile"
2762 (("ldconfig") "true")
2763 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2765 (add-after 'install 'install-symlink
2767 (symlink "libzita-convolver.so"
2768 (string-append (assoc-ref %outputs "out")
2769 "/lib/libzita-convolver.so.3"))))
2770 ;; no configure script
2771 (delete 'configure))))
2772 (inputs `(("fftwf" ,fftwf)))
2773 (home-page "https://kokkinizita.linuxaudio.org")
2774 (synopsis "Fast, partitioned convolution engine library")
2776 "Zita convolver is a C++ library providing a real-time convolution
2778 (license license:gpl3+)))
2780 (define-public zita-resampler
2782 (name "zita-resampler")
2787 "http://kokkinizita.linuxaudio.org"
2788 "/linuxaudio/downloads/zita-resampler-"
2789 version ".tar.bz2"))
2791 ;; Don't optimize for a specific processor architecture.
2792 '(substitute* '("apps/Makefile" "libs/Makefile")
2793 (("^CXXFLAGS \\+= -march=native") "")))
2794 (modules '((guix build utils)))
2797 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
2798 (build-system gnu-build-system)
2800 `(#:tests? #f ; no "check" target
2801 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2803 (modify-phases %standard-phases
2805 'unpack 'patch-makefile-and-enter-directory
2807 (substitute* "libs/Makefile"
2808 (("ldconfig") "true")
2809 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2813 'install 'install-symlink
2815 (symlink "libzita-resampler.so"
2816 (string-append (assoc-ref %outputs "out")
2817 "/lib/libzita-resampler.so.1"))))
2818 ;; no configure script
2819 (delete 'configure))))
2820 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
2821 (synopsis "C++ library for resampling audio signals")
2823 "Libzita-resampler is a C++ library for resampling audio signals. It is
2824 designed to be used within a real-time processing context, to be fast, and to
2825 provide high-quality sample rate conversion.")
2826 (license license:gpl3+)))
2828 (define-public zita-alsa-pcmi
2830 (name "zita-alsa-pcmi")
2835 "http://kokkinizita.linuxaudio.org"
2836 "/linuxaudio/downloads/zita-alsa-pcmi-"
2837 version ".tar.bz2"))
2840 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
2841 (build-system gnu-build-system)
2843 `(#:tests? #f ; no "check" target
2844 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2846 (modify-phases %standard-phases
2847 (add-after 'unpack 'patch-makefile-and-enter-directory
2849 (substitute* "libs/Makefile"
2850 (("ldconfig") "true")
2851 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2854 (add-after 'install 'install-symlink
2856 (symlink "libzita-alsa-pcmi.so"
2857 (string-append (assoc-ref %outputs "out")
2858 "/lib/libzita-alsa-pcmi.so.0"))))
2859 ;; no configure script
2860 (delete 'configure))))
2862 `(("alsa-lib" ,alsa-lib)
2864 (home-page "https://kokkinizita.linuxaudio.org")
2865 (synopsis "C++ wrapper around the ALSA API")
2867 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
2868 access to ALSA PCM devices, taking care of the many functions required to
2869 open, initialise and use a hw: device in mmap mode, and providing floating
2871 (license license:gpl3+)))
2873 (define-public cuetools
2879 (uri (string-append "https://github.com/svend/cuetools/archive/"
2881 (file-name (string-append name "-" version ".tar.gz"))
2884 "01xi3rvdmil9nawsha04iagjylqr1l9v9vlzk99scs8c207l58i4"))))
2885 (build-system gnu-build-system)
2886 ;; The source tarball is not bootstrapped.
2889 (modify-phases %standard-phases
2890 (add-after 'unpack 'bootstrap
2891 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
2892 ;; Bootstrapping tools
2894 `(("autoconf" ,autoconf)
2895 ("automake" ,automake)
2898 (synopsis "Cue and toc file parsers and utilities")
2899 (description "Cuetools is a set of programs that are useful for manipulating
2900 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
2901 files are a way to represent the layout of a data or audio CD in a
2902 machine-readable ASCII format.")
2903 (home-page "https://github.com/svend/cuetools")
2904 (license license:gpl2+)))
2906 (define-public shntool
2912 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
2913 "shntool-" version ".tar.gz"))
2916 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
2917 (build-system gnu-build-system)
2918 (synopsis "WAVE audio data processing tool")
2919 (description "shntool is a multi-purpose WAVE data processing and reporting
2920 utility. File formats are abstracted from its core, so it can process any file
2921 that contains WAVE data, compressed or not---provided there exists a format
2922 module to handle that particular file type. It can also generate CUE files, and
2923 use them split WAVE data into multiple files.")
2924 (home-page "http://etree.org/shnutils/shntool/")
2925 ;; 'install-sh' bears the x11 license
2926 (license (list license:gpl2+ license:x11))))
2928 (define-public dcadec
2934 (uri (string-append "https://github.com/foo86/dcadec/archive/v"
2936 (file-name (string-append name "-" version ".tar.gz"))
2939 "0i0dpypgqkhhi4v1fmsp2way6w9kbcix3c7q79pmg39yvrzj17gd"))))
2940 (build-system gnu-build-system)
2942 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
2946 ;; Build shared library.
2948 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2949 ;; Set proper runpath.
2950 (string-append "LDFLAGS=-Wl,-rpath="
2951 (assoc-ref %outputs "out")
2954 (modify-phases %standard-phases
2955 ;; No configure script, just a hand-written Makefile.
2956 (delete 'configure))))
2957 (synopsis "DTS Coherent Acoustics decoder")
2958 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
2959 with support for HD extensions.")
2960 (home-page "https://github.com/foo86/dcadec")
2961 (license license:lgpl2.1+)))
2963 (define-public bs1770gain
2970 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
2971 version "/bs1770gain-" version ".tar.gz"))
2974 "0n9skdap1vnl6w52fx0gsrjlk7w3xgdwi62ycyf96h29rx059z6a"))))
2975 (build-system gnu-build-system)
2976 (inputs `(("ffmpeg" ,ffmpeg)
2978 (home-page "http://bs1770gain.sourceforge.net/")
2979 (synopsis "Tool to adjust loudness of media files")
2981 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
2982 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
2983 loudness of audio and video files to the same level.")
2984 (license license:gpl2+)))
2986 (define-public filteraudio
2987 (let ((revision "1")
2988 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
2990 (name "filteraudio")
2991 (version (string-append "0.0.0-" revision "."
2992 (string-take commit 7)))
2997 (url "https://github.com/irungentoo/filter_audio.git")
2999 (file-name (string-append name "-" version "-checkout"))
3002 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3003 (build-system gnu-build-system)
3005 '(#:make-flags (list (string-append "PREFIX=" %output)
3007 #:tests? #f ; No tests
3009 (modify-phases %standard-phases
3010 ;; No configure script
3011 (delete 'configure))))
3012 (synopsis "Lightweight audio filtering library")
3013 (description "An easy to use audio filtering library made from webrtc
3014 code, used in @code{libtoxcore}.")
3015 (home-page "https://github.com/irungentoo/filter_audio")
3016 (license license:bsd-3))))
3026 (string-append "http://www.quut.com/" name "/" name
3027 "-" version ".tar.gz"))
3030 "00bns0d4wwrvc60lj2w7wz4yk49q1f6rpdrwqzrxsha9d78mfnl5"))))
3031 (build-system gnu-build-system)
3033 `(#:test-target "tst"
3035 (modify-phases %standard-phases
3036 (add-before 'install 'pre-install
3038 (let ((out (assoc-ref %outputs "out")))
3039 (substitute* "Makefile"
3040 (("INSTALL_ROOT\t=")
3041 (string-append "INSTALL_ROOT\t=\t" out)))
3042 (mkdir-p (string-append out "/inc"))
3043 (mkdir-p (string-append out "/man"))
3044 (mkdir-p (string-append out "/man/man1"))
3045 (mkdir-p (string-append out "/man/man3"))
3046 (mkdir-p (string-append out "/bin"))
3047 (mkdir-p (string-append out "/lib")))))
3048 (add-after 'install 'post-install
3050 (let ((out (assoc-ref %outputs "out")))
3051 (rename-file (string-append out "/inc")
3052 (string-append out "/include"))
3053 (mkdir-p (string-append out "/include/gsm"))
3054 (copy-recursively "inc"
3055 (string-append out "/include/gsm")))))
3056 (delete 'configure))))
3057 (synopsis "GSM 06.10 lossy speech compression library")
3058 (description "This C library provides an encoder and a decoder for the GSM
3059 06.10 RPE-LTP lossy speech compression algorithm.")
3060 (home-page "http://quut.com/gsm/")
3061 (license (license:non-copyleft "file://COPYRIGHT"))))
3063 (define-public python-pyalsaaudio
3065 (name "python-pyalsaaudio")
3069 (uri (pypi-uri "pyalsaaudio" version))
3072 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3073 (build-system python-build-system)
3075 `(#:tests? #f)) ; tests require access to ALSA devices.
3077 `(("alsa-lib" ,alsa-lib)))
3078 (home-page "http://larsimmisch.github.io/pyalsaaudio/")
3079 (synopsis "ALSA wrappers for Python")
3081 "This package contains wrappers for accessing the ALSA API from Python.
3082 It is currently fairly complete for PCM devices, and has some support for
3084 (license license:psfl)))
3086 (define-public python2-pyalsaaudio
3087 (package-with-python2 python-pyalsaaudio))
3089 (define-public bluez-alsa
3094 ;; The tarballs are mere snapshots and don't contain a
3095 ;; bootstrapped build system.
3098 (url "https://github.com/Arkq/bluez-alsa.git")
3099 (commit (string-append "v" version))))
3100 (file-name (string-append name "-" version "-checkout"))
3103 "1qinf41wl2ihx54zmmhanycihwjkn7dn1cicq6pp4rqbiv79b95x"))))
3104 (build-system gnu-build-system)
3107 (modify-phases %standard-phases
3108 (add-after 'unpack 'bootstrap
3110 (zero? (system* "autoreconf" "-vif")))))))
3112 `(("autoconf" ,autoconf)
3113 ("automake" ,automake)
3114 ("libtool" ,libtool)
3115 ("pkg-config" ,pkg-config)))
3117 `(("alsa-lib" ,alsa-lib)
3121 ("ncurses" ,ncurses)
3124 (home-page "https://github.com/Arkq/bluez-alsa")
3125 (synopsis "Bluetooth ALSA backend")
3126 (description "This project is a rebirth of a direct integration between
3127 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
3128 in favor of 3rd party audio applications. From now on, Bluez acts as a
3129 middleware between an audio application, which implements Bluetooth audio
3130 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
3131 audio profiles in Bluez, so in theory every Bluetooth device (with audio
3132 capabilities) can be connected. In order to access the audio stream, one has
3133 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
3134 on the ALSA software PCM plugin.")
3135 (license license:expat)))
3143 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
3144 "snd-" version ".tar.gz"))
3147 "1vm0dy5qlycqkima7y5ajzvazyjybifa803fabjcpncjz08c26vp"))))
3148 (build-system glib-or-gtk-build-system)
3150 '(#:tests? #f ; no tests
3151 #:out-of-source? #f ; for the 'install-doc' phase
3153 (let* ((out (assoc-ref %outputs "out"))
3154 (docdir (string-append out "/share/doc/snd")))
3155 (list "--with-alsa" "--with-jack" "--with-gmp"
3156 (string-append "--with-doc-dir=" docdir)))
3158 (modify-phases %standard-phases
3159 (add-after 'install 'install-doc
3160 (lambda* (#:key outputs #:allow-other-keys)
3161 (let* ((out (assoc-ref outputs "out"))
3162 (docdir (string-append out "/share/doc/snd")))
3166 (install-file f docdir))
3167 (find-files "." "\\.html$|COPYING"))
3168 (copy-recursively "pix" (string-append docdir "/pix"))
3171 `(("pkg-config" ,pkg-config)))
3173 `(("alsa-lib" ,alsa-lib)
3180 ("libsamplerate" ,libsamplerate)
3185 ("timidity++" ,timidity++)
3186 ("vorbis-tools" ,vorbis-tools)
3187 ("wavpack" ,wavpack)))
3188 (synopsis "Sound editor")
3189 (home-page "https://ccrma.stanford.edu/software/snd/")
3191 "Snd is a sound editor modelled loosely after Emacs. It can be
3192 customized and extended using either the s7 Scheme implementation (included in
3193 the Snd sources), Ruby, or Forth.")
3194 (license (license:non-copyleft "file://COPYING"))))
3196 (define-public noise-repellent
3198 (name "noise-repellent")
3203 (url "https://github.com/lucianodato/noise-repellent.git")
3205 (file-name (string-append name "-" version "-checkout"))
3208 "0rd3dlmk3vivjmcr6x2x860y0j1d49c2j95j6ny50v184mwvn11j"))))
3209 (build-system gnu-build-system)
3213 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3214 #:tests? #f ; there are none
3216 (modify-phases %standard-phases
3217 (delete 'configure))))
3222 `(("pkg-config" ,pkg-config)))
3223 (home-page "https://github.com/lucianodato/noise-repellent")
3224 (synopsis "LV2 plugin for broadband noise reduction")
3225 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
3226 the following features:
3229 @item Spectral gating and spectral subtraction suppression rule
3230 @item Adaptive and manual noise thresholds estimation
3231 @item Adjustable noise floor
3232 @item Adjustable offset of thresholds to perform over-subtraction
3233 @item Time smoothing and a masking estimation to reduce artifacts
3234 @item Basic onset detector to avoid transients suppression
3235 @item Whitening of the noise floor to mask artifacts and to recover higher
3237 @item Option to listen to the residual signal
3239 @item Noise profile saved with the session
3242 (license license:lgpl3+)))
3244 (define-public cli-visualizer
3246 (name "cli-visualizer")
3251 (uri (string-append "https://github.com/dpayne/cli-visualizer/archive/"
3253 (file-name (string-append name "-" version ".tar.gz"))
3256 "07zkm87f2fr8kc6531zrkya7q81sdanm6813y2f54mg13g41y6hi"))))
3257 (build-system gnu-build-system)
3259 `(("which" ,which)))
3262 ("googletest" ,googletest)
3263 ("ncurses" ,ncurses)
3264 ("pulseaudio" ,pulseaudio)))
3266 '(#:test-target "test"
3268 (list (string-append "PREFIX=" %output "/bin/") "ENABLE_PULSE=1")
3270 (modify-phases %standard-phases
3271 (add-after 'unpack 'remove-sudo
3273 (substitute* "install.sh" (("sudo") ""))
3275 (add-before 'check 'set-check-environment
3277 (setenv "CXX" "g++")
3280 (add-before 'install 'make-prefix
3282 (mkdir-p (string-append (assoc-ref %outputs "out") "/bin"))
3284 (add-after 'install 'data
3286 (for-each (lambda (file)
3288 (string-append (assoc-ref %outputs "out")
3290 (find-files "examples"))
3292 (home-page "https://github.com/dpayne/cli-visualizer/")
3293 (synopsis "Command-line audio visualizer")
3294 (description "@code{cli-visualizer} displays fast-Fourier
3295 transforms (FFTs) of the sound being played, as well as other graphical
3297 (license license:expat)))
3306 "https://github.com/karlstav/cava/archive/"
3308 (file-name (string-append name "-" version ".tar.gz"))
3311 "1p24lz3h4d0h82ffylqr7mq8a8x1c66flm2r2bsv1liw51n1rma2"))))
3312 (build-system gnu-build-system)
3314 `(("autoconf" ,autoconf)
3315 ("automake" ,automake)
3316 ("libtool" ,libtool)))
3319 ("ncurses" ,ncurses)
3320 ("pulseaudio" ,pulseaudio)))
3323 (list (string-append "PREFIX=" %output)
3324 (string-append "FONT_DIR=" %output "/usr/share/consolefonts"))
3326 (let ((lib (string-append %output "/lib")))
3327 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
3329 (modify-phases %standard-phases
3330 (add-after 'unpack 'bootstrap
3331 (lambda* (#:key outputs #:allow-other-keys)
3332 (setenv "HOME" (getcwd))
3333 (invoke "sh" "autogen.sh")))
3334 (add-before 'build 'make-cava-ldflags
3335 (lambda* (#:key outputs #:allow-other-keys)
3336 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))))
3337 (add-after 'install 'data
3338 (lambda* (#:key outputs #:allow-other-keys)
3339 (for-each (lambda (file)
3341 (string-append (assoc-ref outputs "out")
3342 "/share/doc/examples")))
3343 (find-files "example_files")))))))
3344 (home-page "https://karlstav.github.io/cava/")
3345 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
3346 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
3347 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
3348 (license license:expat)))
3350 (define-public fluid-3
3351 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
3358 ;; Only one file is required, but the release bundles the whole
3359 ;; software which is 50MiB as tar and 200MiB unpacked. The website
3360 ;; directly links the soundfont release to the github file download.
3361 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
3362 commit "/share/sound/FluidR3Mono_GM.sf3"))
3363 (file-name (string-append name "-" version ".sf3"))
3366 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
3367 (build-system trivial-build-system)
3369 `(#:modules ((guix build utils))
3372 (use-modules (guix build utils))
3373 (let ((file (assoc-ref %build-inputs "source"))
3374 (out (string-append %output "/share/soundfonts")))
3376 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))))))
3377 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
3378 (synopsis "Pro-quality GM soundfont")
3379 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
3380 (license license:expat))))