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 "\" ; }"))
216 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
217 (file-name (string-append name "-" version))))
218 (build-system waf-build-system)
220 `(#:configure-flags '("--cxx11" ; required by gtkmm
221 "--no-phone-home" ; don't contact ardour.org
222 "--freedesktop" ; install .desktop file
223 "--test") ; build unit tests
225 (modify-phases %standard-phases
227 'unpack 'set-rpath-in-LDFLAGS
228 ,(ardour-rpath-phase (version-major version))))
232 `(("alsa-lib" ,alsa-lib)
241 ("libart-lgpl" ,libart-lgpl)
242 ("libgnomecanvasmm" ,libgnomecanvasmm)
245 ("libsndfile" ,libsndfile)
246 ("libsamplerate" ,libsamplerate)
249 ("libvorbis" ,libvorbis)
262 ("readline" ,readline)
264 ("rubberband" ,rubberband)
265 ("libarchive" ,libarchive)
267 ("python-rdflib" ,python-rdflib)))
272 ("gettext" ,gettext-minimal)
273 ("pkg-config" ,pkg-config)))
274 (home-page "http://ardour.org")
275 (synopsis "Digital audio workstation")
277 "Ardour is a multi-channel digital audio workstation, allowing users to
278 record, edit, mix and master audio and MIDI projects. It is targeted at audio
279 engineers, musicians, soundtrack editors and composers.")
280 (license license:gpl2+)))
282 (define-public audacity
289 (uri (string-append "https://github.com/audacity/audacity/archive"
290 "/Audacity-" version ".tar.gz"))
292 (base32 "1n05r8b4rnf9fas0py0is8cm97s3h65dgvqkk040aym5d1x6wd7z"))
293 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
294 (modules '((guix build utils)))
296 ;; Remove bundled libraries.
300 (delete-file-recursively (string-append "lib-src/" dir)))
301 '("expat" "ffmpeg" "libflac" "libid3tag" "libmad" "libogg"
302 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
303 "portaudio-v19" "portmidi" "soundtouch" "twolame"
304 ;; FIXME: these libraries have not been packaged yet:
312 ;; FIXME: we have this library, but it differs in that the Slide
313 ;; class does not have a member "getInverseStretchedTime".
317 (build-system gnu-build-system)
319 `(("wxwidgets" ,wxwidgets)
321 ("alsa-lib" ,alsa-lib)
327 ("libid3tag" ,libid3tag)
329 ;;("libsbsms" ,libsbsms) ;bundled version is modified
330 ("libsndfile" ,libsndfile)
331 ("soundtouch" ,soundtouch)
332 ("soxr" ,soxr) ;replaces libsamplerate
335 ("libvorbis" ,libvorbis)
337 ("lilv" ,lilv) ;for lv2
338 ("suil" ,suil) ;for lv2
339 ("portaudio" ,portaudio)
340 ("portmidi" ,portmidi)))
342 `(("autoconf" ,autoconf)
343 ("automake" ,automake)
344 ("gettext" ,gettext-minimal) ;for msgfmt
346 ("pkg-config" ,pkg-config)
351 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
352 (libmad (assoc-ref %build-inputs "libmad"))
353 (portmidi (assoc-ref %build-inputs "portmidi")))
355 ;; Loading FFmpeg dynamically is problematic.
356 "--disable-dynamic-loading"
357 ;; SSE instructions are available on Intel systems only.
358 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
362 '("--enable-sse=no"))
363 ;; portmidi, libid3tag and libmad provide no .pc files, so
364 ;; pkg-config fails to find them. Force their inclusion.
365 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
366 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
367 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
368 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
369 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
370 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
371 "EXPAT_USE_SYSTEM=yes"
372 "FFMPEG_USE_SYSTEM=yes"
373 "LAME_USE_SYSTEM=yes"
374 "LIBFLAC_USE_SYSTEM=yes"
375 "LIBID3TAG_USE_SYSTEM=yes"
376 "LIBMAD_USE_SYSTEM=yes"
377 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
378 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
379 "LIBSNDFILE_USE_SYSTEM=yes"
380 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
381 "LIBSOXR_USE_SYSTEM=yes"
382 "LIBTWOLAME_USE_SYSTEM=yes"
383 "LIBVAMP_USE_SYSTEM=yes"
384 "LIBVORBIS_USE_SYSTEM=yes"
386 "PORTAUDIO_USE_SYSTEM=yes"))
388 (modify-phases %standard-phases
389 (add-after 'unpack 'fix-sbsms-check
391 ;; This check is wrong: there is no 2.2.0 release; not even the
392 ;; bundled sources match this release string.
393 (substitute* '("m4/audacity_checklib_libsbsms.m4"
395 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
397 (add-after 'unpack 'use-upstream-headers
398 (lambda* (#:key inputs #:allow-other-keys)
399 (substitute* '("src/NoteTrack.cpp"
402 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
403 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
404 (substitute* "src/prefs/MidiIOPrefs.cpp"
405 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
407 ;; The test suite is not "well exercised" according to the developers,
408 ;; and fails with various errors. See
409 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
411 (home-page "http://audacity.sourceforge.net/")
412 (synopsis "Software for recording and editing sounds")
414 "Audacity is a multi-track audio editor designed for recording, playing
415 and editing digital audio. It features digital effects and spectrum analysis
417 (license license:gpl2+)))
425 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
430 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
431 (patches (search-patches "azr3.patch"))))
432 (build-system gnu-build-system)
434 `(#:tests? #f ; no check target
437 "CXXFLAGS=-std=gnu++11"
438 "CFLAGS=-std=gnu++11"
439 (string-append "prefix=" %output)
440 (string-append "pkgdatadir=" %output "/share/azr3-jack"))))
447 `(("pkg-config" ,pkg-config)))
448 (home-page "http://ll-plugins.nongnu.org/azr3/")
449 (synopsis "Tonewheel organ synthesizer")
451 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
452 with drawbars, distortion and rotating speakers. The organ has three
453 sections, two polyphonic sections with nine drawbars each and one monophonic
454 bass section with five drawbars. A standalone JACK application and LV2
455 plugins are provided.")
456 (license license:gpl2)))
464 (uri (string-append "http://calf-studio-gear.org/files/calf-"
468 "0dijv2j7vlp76l10s4v8gbav26ibaqk8s24ci74vrc398xy00cib"))))
469 (build-system gnu-build-system)
471 `(("fluidsynth" ,fluidsynth)
482 `(("pkg-config" ,pkg-config)))
484 (list (search-path-specification
485 (variable "LV2_PATH")
486 (files '("lib/lv2")))))
487 (home-page "http://calf.sourceforge.net/")
488 (synopsis "Audio plug-in pack for LV2 and JACK environments")
490 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
491 The suite contains lots of effects (delay, modulation, signal processing,
492 filters, equalizers, dynamics, distortion and mastering effects),
493 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
494 tools (analyzer, mono/stereo tools, crossovers).")
495 ;; calfjackhost is released under GPLv2+
496 ;; The plugins are released under LGPLv2.1+
497 (license (list license:lgpl2.1+ license:gpl2+))))
499 (define-public espeak
505 (uri (string-append "mirror://sourceforge/espeak/espeak/"
506 "espeak-" (version-major+minor version)
507 "/espeak-" version "-source.zip"))
510 "0n86gwh9pw0jqqpdz7mxggllfr8k0r7pc67ayy7w5z6z79kig6mz"))
511 (modules '((guix build utils)))
513 ;; remove prebuilt binaries
515 (delete-file-recursively "linux_32bit")
517 (build-system gnu-build-system)
519 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
520 (string-append "DATADIR="
521 (assoc-ref %outputs "out")
522 "/share/espeak-data")
523 (string-append "LDFLAGS=-Wl,-rpath="
524 (assoc-ref %outputs "out")
527 #:tests? #f ; no check target
529 (modify-phases %standard-phases
533 ;; We use version 19 of the PortAudio library, so we must copy the
534 ;; corresponding file to be sure that espeak compiles correctly.
535 (copy-file "portaudio19.h" "portaudio.h")
536 (substitute* "Makefile"
540 `(("portaudio" ,portaudio)
541 ("pulseaudio" ,pulseaudio)))
542 (native-inputs `(("unzip" ,unzip)))
543 (home-page "http://espeak.sourceforge.net/")
544 (synopsis "Software speech synthesizer")
545 (description "eSpeak is a software speech synthesizer for English and
546 other languages. eSpeak uses a \"formant synthesis\" method. This allows many
547 languages to be provided in a small size. The speech is clear, and can be used
548 at high speeds, but is not as natural or smooth as larger synthesizers which are
549 based on human speech recordings.")
550 (license license:gpl3+)))
552 (define-public infamous-plugins
554 (name "infamous-plugins")
558 (uri (string-append "https://github.com/ssj71/infamousPlugins/"
559 "archive/v" version ".tar.gz"))
560 (file-name (string-append name "-" version ".tar.gz"))
563 "0qm3ak07vc1l3f5c3c2lq9gkfknlxwn8ks03cysw1pk8hj7dwnv6"))))
564 (build-system cmake-build-system)
566 `(#:tests? #f ; There are no tests
568 (modify-phases %standard-phases
569 (add-after 'unpack 'remove-compiler-flags
571 (substitute* '("src/casynth/CMakeLists.txt"
572 "src/cheapdist/CMakeLists.txt"
573 "src/duffer/CMakeLists.txt"
574 "src/envfollower/CMakeLists.txt"
575 "src/ewham/CMakeLists.txt"
576 "src/hip2b/CMakeLists.txt"
577 "src/lushlife/CMakeLists.txt"
578 "src/powercut/CMakeLists.txt"
579 "src/powerup/CMakeLists.txt"
580 "src/stuck/CMakeLists.txt")
581 (("-msse2 -mfpmath=sse") ""))
588 ("zita-resampler" ,zita-resampler)))
590 `(("pkg-config" ,pkg-config)))
591 (home-page "http://ssj71.github.io/infamousPlugins")
592 (synopsis "LV2 plugins for live use")
594 "The infamous plugins are a collection of LV2 audio plugins for live
595 performances. The plugins include a cellular automaton synthesizer, an
596 envelope follower, distortion effects, tape effects and more.")
597 (license license:gpl2+)))
599 (define-public swh-plugins-lv2
601 (name "swh-plugins-lv2")
605 (uri (string-append "https://github.com/swh/"
606 "lv2/archive/v" version ".tar.gz"))
607 (file-name (string-append name "-" version ".tar.gz"))
610 "0j1mih0lp4fds07knp5i32in515sh0df1qi6694pmyz2wqnm295w"))))
611 (build-system gnu-build-system)
613 `(#:tests? #f ; no check target
614 #:make-flags (list "CC=gcc"
615 (string-append "PREFIX="
616 (assoc-ref %outputs "out")))
618 (modify-phases %standard-phases
619 ;; no configure script
621 (add-after 'unpack 'patch-makefile-and-enter-directory
622 ;; The default install target doesn't install, but the
623 ;; "install-system" target does.
625 (substitute* "Makefile"
626 (("install:") "install: install-system"))
632 `(("libxslt" ,libxslt)
633 ("pkg-config" ,pkg-config)))
634 (home-page "http://plugin.org.uk")
635 (synopsis "SWH plugins in LV2 format")
637 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
638 classes include: dynamics (compressor, limiter), time (delay, chorus,
639 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
640 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
641 (license license:gpl3+)))
643 (define-public csound
650 "https://github.com/csound/csound/archive/"
652 (file-name (string-append name "-" version ".tar.gz"))
655 "0xqpqws4jsv7fyawcjzwaw544qbfh29xq164kdf30a9v1n3yklp4"))))
656 (build-system cmake-build-system)
658 `(("alsa-lib" ,alsa-lib)
660 ("pulseaudio" ,pulseaudio)
661 ("libsndfile" ,libsndfile)
665 ("gettext" ,gettext-minimal)))
670 (home-page "http://csound.github.io/")
671 (synopsis "Sound and music computing system")
673 "Csound is a user-programmable and user-extensible sound processing
674 language and software synthesizer.")
675 (license license:lgpl2.1+)))
677 (define-public clalsadrv
684 "http://kokkinizita.linuxaudio.org"
685 "/linuxaudio/downloads/clalsadrv-"
689 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
690 (build-system gnu-build-system)
692 `(#:tests? #f ; no "check" target
693 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
695 (modify-phases %standard-phases
696 (add-after 'unpack 'patch-makefile-and-enter-directory
698 (substitute* "libs/Makefile"
699 (("/sbin/ldconfig") "true")
700 (("^LIBDIR =.*") "LIBDIR = lib\n"))
703 (add-after 'install 'install-symlink
705 (symlink "libclalsadrv.so"
706 (string-append (assoc-ref %outputs "out")
707 "/lib/libclalsadrv.so.2"))))
708 ;; no configure script
709 (delete 'configure))))
711 `(("alsa-lib" ,alsa-lib)
713 (home-page "https://kokkinizita.linuxaudio.org")
714 (synopsis "C++ wrapper around the ALSA API")
716 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
718 (license license:gpl2+)))
720 (define-public amb-plugins
727 "http://kokkinizita.linuxaudio.org"
728 "/linuxaudio/downloads/AMB-plugins-"
732 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
733 (build-system gnu-build-system)
735 `(#:tests? #f ; no "check" target
737 (modify-phases %standard-phases
738 ;; no configure script
740 (add-before 'install 'prepare-target-directory
741 (lambda* (#:key outputs #:allow-other-keys)
742 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
744 (add-after 'unpack 'override-target-directory-and-tool-paths
745 (lambda* (#:key outputs #:allow-other-keys)
746 (substitute* "Makefile"
748 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
749 (("/usr/bin/install") (which "install"))
752 (home-page "https://kokkinizita.linuxaudio.org")
753 (synopsis "LADSPA ambisonics plugins")
755 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
756 used within Ardour. Features include: mono and stereo to B-format panning,
757 horizontal rotator, square, hexagon and cube decoders.")
758 (license license:gpl2+)))
760 (define-public mcp-plugins
767 "http://kokkinizita.linuxaudio.org"
768 "/linuxaudio/downloads/MCP-plugins-"
772 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
773 (build-system gnu-build-system)
775 `(#:tests? #f ; no "check" target
777 (modify-phases %standard-phases
778 ;; no configure script
780 (add-before 'install 'prepare-target-directory
781 (lambda* (#:key outputs #:allow-other-keys)
782 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
784 (add-after 'unpack 'override-target-directory
785 (lambda* (#:key outputs #:allow-other-keys)
786 (substitute* "Makefile"
787 (("/usr") (assoc-ref outputs "out")))
789 (home-page "https://kokkinizita.linuxaudio.org")
790 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
792 "This package provides various LADSPA plugins. @code{cs_chorus} and
793 @code{cs_phaser} provide chorus and phaser effects, respectively;
794 @code{mvclpf24} provides four implementations of the low-pass filter used in
795 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
796 high-pass filter by Robert Moog. The filters attempt to accurately emulate
797 the non-linear circuit elements of their original analog counterparts.")
798 (license license:gpl2+)))
800 (define-public rev-plugins
807 "http://kokkinizita.linuxaudio.org"
808 "/linuxaudio/downloads/REV-plugins-"
812 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
813 (build-system gnu-build-system)
815 `(#:tests? #f ; no "check" target
817 (modify-phases %standard-phases
818 ;; no configure script
820 (add-before 'install 'prepare-target-directory
821 (lambda* (#:key outputs #:allow-other-keys)
822 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
824 (add-after 'unpack 'override-target-directory
825 (lambda* (#:key outputs #:allow-other-keys)
826 (substitute* "Makefile"
827 (("/usr") (assoc-ref outputs "out")))
829 (home-page "https://kokkinizita.linuxaudio.org")
830 (synopsis "LADSPA reverb plugin")
832 "This package provides a stereo reverb LADSPA plugin based on the
833 well-known greverb.")
834 (license license:gpl2+)))
836 (define-public fil-plugins
843 "http://kokkinizita.linuxaudio.org"
844 "/linuxaudio/downloads/FIL-plugins-"
848 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
849 (build-system gnu-build-system)
851 `(#:tests? #f ; no "check" target
853 (modify-phases %standard-phases
854 ;; no configure script
856 (add-before 'install 'prepare-target-directory
857 (lambda* (#:key outputs #:allow-other-keys)
858 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
860 (add-after 'unpack 'override-target-directory
861 (lambda* (#:key outputs #:allow-other-keys)
862 (substitute* "Makefile"
863 (("/usr") (assoc-ref outputs "out")))
865 (home-page "https://kokkinizita.linuxaudio.org")
866 (synopsis "LADSPA four-band parametric equalizer plugin")
868 "This package provides a LADSPA plugin for a four-band parametric
869 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
870 gain controls. There is also a global bypass switch and gain control.
872 The 2nd order resonant filters are implemented using a Mitra-Regalia style
873 lattice filter, which is stable even while parameters are being changed.
875 All switches and controls are internally smoothed, so they can be used 'live'
876 without any clicks or zipper noises. This makes this plugin suitable for use
877 in systems that allow automation of plugin control ports, such as Ardour, or
879 (license license:gpl2+)))
881 (define-public ste-plugins
888 "http://kokkinizita.linuxaudio.org"
889 "/linuxaudio/downloads/STE-plugins-"
893 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
894 (build-system gnu-build-system)
896 `(#:tests? #f ; no "check" target
898 (modify-phases %standard-phases
899 ;; no configure script
901 (add-before 'install 'prepare-target-directory
902 (lambda* (#:key outputs #:allow-other-keys)
903 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
905 (add-after 'unpack 'override-target-directory
906 (lambda* (#:key outputs #:allow-other-keys)
907 (substitute* "Makefile"
908 (("/usr") (assoc-ref outputs "out")))
910 (home-page "https://kokkinizita.linuxaudio.org")
911 (synopsis "LADSPA stereo width plugin")
913 "This package provides a LADSPA plugin to manipulate the stereo width of
915 (license license:gpl2+)))
917 (define-public vco-plugins
924 "http://kokkinizita.linuxaudio.org"
925 "/linuxaudio/downloads/VCO-plugins-"
929 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
930 (build-system gnu-build-system)
932 `(#:tests? #f ; no "check" target
934 (modify-phases %standard-phases
935 ;; no configure script
937 (add-before 'install 'prepare-target-directory
938 (lambda* (#:key outputs #:allow-other-keys)
939 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
941 (add-after 'unpack 'override-target-directory
942 (lambda* (#:key outputs #:allow-other-keys)
943 (substitute* "Makefile"
944 (("/usr") (assoc-ref outputs "out"))
945 (("/bin/cp") (which "cp")))
947 (home-page "https://kokkinizita.linuxaudio.org")
948 (synopsis "LADSPA plugin for synthesizer oscillators")
950 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
953 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
954 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
955 @item Rec-VCO, a square / rectange oscillator
958 All oscillators are low-pass filtered to provide waveforms similar to the
959 output of analog synthesizers such as the Moog Voyager.")
960 (license license:gpl2+)))
962 (define-public wah-plugins
969 "http://kokkinizita.linuxaudio.org"
970 "/linuxaudio/downloads/WAH-plugins-"
974 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
975 (build-system gnu-build-system)
977 `(#:tests? #f ; no "check" target
979 (modify-phases %standard-phases
980 ;; no configure script
982 (add-before 'install 'prepare-target-directory
983 (lambda* (#:key outputs #:allow-other-keys)
984 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
986 (add-after 'unpack 'override-target-directory
987 (lambda* (#:key outputs #:allow-other-keys)
988 (substitute* "Makefile"
989 (("/usr") (assoc-ref outputs "out")))
991 (home-page "https://kokkinizita.linuxaudio.org")
992 (synopsis "LADSPA Autowah effect plugin")
994 "This package provides a LADSPA plugin for a Wah effect with envelope
996 (license license:gpl2+)))
998 (define-public g2reverb
1005 "http://kokkinizita.linuxaudio.org"
1006 "/linuxaudio/downloads/g2reverb-"
1007 version ".tar.bz2"))
1010 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1011 (build-system gnu-build-system)
1013 `(#:tests? #f ; no "check" target
1015 (modify-phases %standard-phases
1016 ;; no configure script
1018 (add-before 'install 'prepare-target-directory
1019 (lambda* (#:key outputs #:allow-other-keys)
1020 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1022 (add-after 'unpack 'override-target-directory
1023 (lambda* (#:key outputs #:allow-other-keys)
1024 (substitute* "Makefile"
1025 (("/usr") (assoc-ref outputs "out")))
1027 (home-page "https://kokkinizita.linuxaudio.org")
1028 (synopsis "LADSPA stereo reverb plugin")
1030 "This package provides a LADSPA plugin for a stereo reverb effect.")
1031 (license license:gpl2+)))
1033 (define-public fluidsynth
1040 (url "https://github.com/FluidSynth/fluidsynth.git")
1041 (commit (string-append "v" version))))
1042 (file-name (string-append name "-" version "-checkout"))
1045 "04jlgq1d1hd8r9cnmkl3lgf1fgm7kgy4hh9nfddap41fm1wp121p"))))
1046 (build-system cmake-build-system)
1048 '(#:tests? #f ; no check target
1050 (modify-phases %standard-phases
1051 (add-after 'unpack 'fix-libdir
1053 ;; Install libraries to /lib, not /lib64.
1054 (substitute* "CMakeLists.txt"
1055 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1059 `(("libsndfile" ,libsndfile)
1060 ("alsa-lib" ,alsa-lib)
1064 ("readline" ,readline)
1067 `(("pkg-config" ,pkg-config)))
1068 (home-page "http://www.fluidsynth.org/")
1069 (synopsis "SoundFont synthesizer")
1071 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1072 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1073 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1074 also play midifiles using a Soundfont.")
1075 (license license:lgpl2.1+)))
1077 (define-public faad2
1083 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1084 version "/faad2-" version ".zip"))
1087 "16f3l16c00sg0wkrkm3vzv0gy3g97x309vw788igs0cap2x1ak3z"))))
1088 (build-system gnu-build-system)
1090 `(("autoconf" ,autoconf)
1091 ("automake" ,automake)
1092 ("libtool" ,libtool)
1096 (modify-phases %standard-phases
1099 (substitute* "bootstrap" (("\r\n") "\n"))
1100 (zero? (system* "sh" "bootstrap")))))))
1101 (home-page "http://www.audiocoding.com/faad2.html")
1102 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1104 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
1106 (license license:gpl2)))
1108 (define-public faust
1115 (url "https://github.com/grame-cncm/faust.git")
1116 (commit (string-append "v"
1117 (string-map (lambda (c)
1118 (if (char=? c #\.) #\- c))
1120 (file-name (string-append "faust-" version "-checkout"))
1123 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1124 (build-system gnu-build-system)
1126 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1129 (modify-phases %standard-phases
1130 ;; no "configure" script
1132 ;; Files appear under $out/share/faust that are read-only. The
1133 ;; install phase tries to overwrite them and fails, so we change
1134 ;; the permissions first.
1135 (add-before 'install 'fix-permissions
1137 (for-each (lambda (file)
1139 (find-files "architecture/max-msp" ".*"))
1142 `(("unzip" ,unzip)))
1143 (home-page "http://faust.grame.fr/")
1144 (synopsis "Signal processing language")
1146 "Faust is a programming language for realtime audio signal processing.")
1147 (license license:gpl2+)))
1149 (define-public faust-2
1156 (url "https://github.com/grame-cncm/faust.git")
1157 (commit (string-append "v"
1158 (string-map (lambda (c)
1159 (if (char=? c #\.) #\- c))
1161 (file-name (string-append "faust-" version "-checkout"))
1164 "06km0ygwxxwgw1lqldccqidxhmjfz8ck0wnbd95qk5sg8sbpc068"))))
1165 (build-system gnu-build-system)
1167 (substitute-keyword-arguments (package-arguments faust)
1168 ((#:make-flags flags)
1169 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1172 `(("llvm" ,llvm-with-rtti)
1175 ("ctags" ,emacs-minimal) ; for ctags
1176 ("pkg-config" ,pkg-config)))
1178 `(("libsndfile" ,libsndfile)
1179 ("libmicrohttpd" ,libmicrohttpd)
1180 ("ncurses" ,ncurses)
1181 ("openssl" ,openssl)
1184 (define-public freepats
1187 (version "20060219")
1190 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1191 version ".tar.bz2"))
1194 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1195 (build-system trivial-build-system)
1197 `(#:modules ((guix build utils))
1199 (use-modules (guix build utils))
1200 (let ((out (string-append %output "/share/freepats")))
1201 (setenv "PATH" (string-append
1202 (assoc-ref %build-inputs "bzip2") "/bin:"
1203 (assoc-ref %build-inputs "tar") "/bin"))
1204 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
1206 ;; Use absolute pattern references
1207 (substitute* "freepats.cfg"
1208 (("Tone_000") (string-append out "/Tone_000"))
1209 (("Drum_000") (string-append out "/Drum_000")))
1211 (copy-recursively "." out)))))
1215 (home-page "http://freepats.zenvoid.org")
1216 (synopsis "GUS compatible patches for MIDI players")
1218 "FreePats is a project to create a free and open set of GUS compatible
1219 patches that can be used with softsynths such as Timidity and WildMidi.")
1220 ;; GPLv2+ with exception for compositions using these patches.
1221 (license license:gpl2+)))
1223 (define-public guitarix
1230 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1234 "1g5949jwh2n755xjs3kcbdb8a1wxr5mn0m115wdnk27dxcdn93b0"))))
1235 (build-system waf-build-system)
1237 `(#:tests? #f ; no "check" target
1241 ;; Add the output lib directory to the RUNPATH.
1242 (string-append "--ldflags=-Wl,-rpath=" %output "/lib")
1243 "--cxxflags=-std=c++11")))
1245 `(("libsndfile" ,libsndfile)
1257 ("zita-resampler" ,zita-resampler)
1258 ("zita-convolver" ,zita-convolver)))
1262 ("intltool" ,intltool)
1263 ("gettext" ,gettext-minimal)
1264 ("pkg-config" ,pkg-config)))
1265 (native-search-paths
1266 (list (search-path-specification
1267 (variable "LV2_PATH")
1268 (files '("lib/lv2")))))
1269 (home-page "http://guitarix.org/")
1270 (synopsis "Virtual guitar amplifier")
1271 (description "Guitarix is a virtual guitar amplifier running JACK.
1272 Guitarix takes the signal from your guitar as a mono-signal from your sound
1273 card. The input is processed by a main amp and a rack-section. Both can be
1274 routed separately and deliver a processed stereo-signal via JACK. You may
1275 fill the rack with effects from more than 25 built-in modules including stuff
1276 from a simple noise gate to modulation effects like flanger, phaser or
1278 (license license:gpl2+)))
1280 (define-public guitarix-lv2
1281 (package (inherit guitarix)
1282 (name "guitarix-lv2")
1284 (substitute-keyword-arguments (package-arguments guitarix)
1285 ((#:configure-flags flags)
1286 `(cons "--lv2-only" ,flags))))))
1288 (define-public rakarrack
1294 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1295 "rakarrack-" version "/rakarrack-"
1296 version ".tar.bz2"))
1299 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1300 (modules '((guix build utils)))
1303 (substitute* '("src/process.C"
1305 (("#include <Fl/") "#include <FL/"))
1307 (build-system gnu-build-system)
1309 `(("alsa-utils" ,alsa-utils)
1312 ("libxext" ,libxext)
1313 ("libxfixes" ,libxfixes)
1315 ("libxrender" ,libxrender)
1317 ("fontconfig" ,fontconfig)
1318 ("freetype" ,freetype)
1320 ("alsa-lib" ,alsa-lib)
1321 ("libsndfile" ,libsndfile)
1322 ("libsamplerate" ,libsamplerate)
1324 (home-page "http://rakarrack.sourceforge.net/")
1325 (synopsis "Audio effects processor")
1327 "Rakarrack is a richly featured multi-effects processor emulating a
1328 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1329 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1330 distortion modules and many more. Most of the effects engine is built from
1331 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1332 user interface are optimized for guitar, but Rakarrack processes signals in
1333 stereo while it does not apply internal band-limiting filtering, and thus is
1334 well suited to all musical instruments and vocals.")
1335 ;; The code is explicitly licensed under the GPL version 2 only.
1336 (license license:gpl2)))
1344 ;; The original home-page is gone. Download the tarball from an
1345 ;; archive mirror instead.
1346 (uri (list (string-append
1347 "https://web.archive.org/web/20150803095032/"
1348 "http://factorial.hu/system/files/ir.lv2-"
1351 "https://mirrors.kernel.org/gentoo/distfiles/ir.lv2-"
1352 version ".tar.gz")))
1355 "1jh2z01l9m4ar7yz0n911df07dygc7n4cl59p7qdjbh0nvkm747g"))))
1356 (build-system gnu-build-system)
1358 `(#:tests? #f ; no tests
1359 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1360 #:phases (modify-phases %standard-phases
1361 (delete 'configure)))) ; no configure script
1363 `(("libsndfile" ,libsndfile)
1364 ("libsamplerate" ,libsamplerate)
1368 ("zita-convolver" ,zita-convolver)))
1370 `(("pkg-config" ,pkg-config)))
1371 (native-search-paths
1372 (list (search-path-specification
1373 (variable "LV2_PATH")
1374 (files '("lib/lv2")))))
1375 ;; Link to an archived copy of the home-page since the original is gone.
1376 (home-page (string-append "https://web.archive.org/web/20150803095032/"
1377 "http://factorial.hu/plugins/lv2/ir"))
1378 (synopsis "LV2 convolution reverb")
1380 "IR is a low-latency, real-time, high performance signal convolver
1381 especially for creating reverb effects. It supports impulse responses with 1,
1382 2 or 4 channels, in any soundfile format supported by libsndfile.")
1383 (license license:gpl2+)))
1385 (define-public jack-1
1392 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1397 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
1398 (build-system gnu-build-system)
1400 `(("alsa-lib" ,alsa-lib)
1401 ("readline" ,readline)))
1402 ;; uuid.h is included in the JACK type headers
1403 ;; db.h is included in the libjack metadata headers
1405 `(("libuuid" ,util-linux)
1408 `(("pkg-config" ,pkg-config)))
1409 (home-page "http://jackaudio.org/")
1410 (synopsis "JACK audio connection kit")
1412 "JACK is a low-latency audio server. It can connect a number of
1413 different applications to an audio device, as well as allowing them to share
1414 audio between themselves. JACK is different from other audio server efforts
1415 in that it has been designed from the ground up to be suitable for
1416 professional audio work. This means that it focuses on two key areas:
1417 synchronous execution of all clients, and low latency operation.")
1418 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1419 ;; licensed under the LGPL in order to allow for proprietary usage.
1420 (license (list license:gpl2+ license:lgpl2.1+))))
1422 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1423 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
1424 ;; program for users who might benefit from the D-BUS features.
1425 (define-public jack-2
1426 (package (inherit jack-1)
1431 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
1432 "download/v" version "/jack2-"
1434 (file-name (string-append name "-" version ".tar.gz"))
1437 "0crf4y9a5j9miw8r5ji4l3w5w0y2frrf7xyfsfdgacnw6vwy5vyy"))))
1438 (build-system waf-build-system)
1440 `(#:python ,python-2
1441 #:tests? #f ; no check target
1442 #:configure-flags '("--dbus"
1445 (modify-phases %standard-phases
1447 'configure 'set-linkflags
1449 ;; Add $libdir to the RUNPATH of all the binaries.
1450 (substitute* "wscript"
1451 ((".*CFLAGS.*-Wall.*" m)
1453 " conf.env.append_unique('LINKFLAGS',"
1454 "'-Wl,-rpath=" %output "/lib')\n")))))
1455 (add-after 'install 'wrap-python-scripts
1456 (lambda* (#:key inputs outputs #:allow-other-keys)
1457 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1458 (let* ((out (assoc-ref outputs "out"))
1459 (path (getenv "PYTHONPATH")))
1460 (wrap-program (string-append out "/bin/jack_control")
1461 `("PYTHONPATH" ":" prefix (,path))))
1464 `(("alsa-lib" ,alsa-lib)
1467 ("libsamplerate" ,libsamplerate)
1469 ("python2-dbus" ,python2-dbus)
1470 ("readline" ,readline)))
1472 `(("pkg-config" ,pkg-config)))
1473 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1474 (license (list license:gpl2+ license:lgpl2.1+))))
1482 (uri (string-append "http://download.drobilla.net/jalv-"
1483 version ".tar.bz2"))
1486 "1x2wpzzx2cgvz3dgdcgsj8dr0w3zsasy62mvl199bsdj5fbjaili"))))
1487 (build-system waf-build-system)
1489 `(#:tests? #f ; no check target
1491 (modify-phases %standard-phases
1493 'configure 'set-flags
1495 ;; Compile with C++11, required by gtkmm.
1496 (setenv "CXXFLAGS" "-std=c++11")
1506 `(("pkg-config" ,pkg-config)))
1507 (home-page "http://drobilla.net/software/jalv/")
1508 (synopsis "Simple LV2 host for JACK")
1510 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1511 plugins and exposes their ports as JACK ports, essentially making any LV2
1512 plugin function as a JACK application.")
1513 (license license:isc)))
1515 (define-public ladspa
1522 ;; Since the official link is dead,
1523 ;; we download the tarball from Debian or Internet Archive.
1524 (uri (list (string-append "http://http.debian.net"
1525 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1526 version ".orig.tar.gz")
1527 (string-append "https://web.archive.org/web/20140717172251/"
1528 "http://www.ladspa.org/download/ladspa_sdk_"
1532 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
1533 (build-system gnu-build-system)
1535 `(#:tests? #f ; the "test" target is a listening test only
1539 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1541 (let ((out (assoc-ref outputs "out")))
1542 (substitute* "makefile"
1543 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1544 (("/usr/include/") (string-append out "/include/"))
1545 (("/usr/bin/") (string-append out "/bin/"))
1546 (("-mkdirhier") "mkdir -p")
1547 (("^CC.*") "CC = gcc\n")
1548 (("^CPP.*") "CPP = g++\n"))))
1549 (alist-delete 'build %standard-phases))))
1550 ;; Since the home page is gone, we provide a link to the archived version.
1552 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
1553 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1555 "LADSPA is a standard that allows software audio processors and effects
1556 to be plugged into a wide range of audio synthesis and recording packages.")
1557 (license license:lgpl2.1+)))
1562 (version "0.6.0-rc2")
1565 ;; The tilde is not permitted in the builder name, but is used
1568 "mirror://savannah/lash/lash-"
1569 (string-join (string-split version #\-) "~")
1571 (file-name (string-append name "-" version ".tar.bz2"))
1574 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1575 (build-system gnu-build-system)
1578 (modify-phases %standard-phases
1579 ;; lashd embeds an ancient version of sigsegv so we just skip it
1580 (add-after 'unpack 'skip-lashd
1582 (substitute* '("Makefile.am" "Makefile.in")
1585 #:configure-flags '("--disable-static")))
1590 ("readline" ,readline)
1591 ("python" ,python-2)))
1592 ;; According to pkg-config, packages depending on lash also need to have
1593 ;; at least the following packages declared as inputs.
1595 `(("alsa-lib" ,alsa-lib)
1597 ("libxml2" ,libxml2)))
1599 `(("pkg-config" ,pkg-config)))
1600 (home-page "https://www.nongnu.org/lash/")
1601 (synopsis "Audio application session manager")
1603 "LASH is a session management system for audio applications. It allows
1604 you to save and restore audio sessions consisting of multiple interconneced
1605 applications, restoring program state (i.e. loaded patches) and the
1606 connections between them.")
1607 (license license:gpl2+)))
1609 (define-public libbs2b
1615 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1616 "/libbs2b-" version ".tar.lzma"))
1619 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1620 (build-system gnu-build-system)
1621 (native-inputs `(("pkg-config" ,pkg-config)))
1622 (inputs `(("libsndfile" ,libsndfile)))
1623 (home-page "https://sourceforge.net/projects/bs2b/")
1624 (synopsis "Bauer stereophonic-to-binaural DSP")
1626 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1627 designed to improve headphone listening of stereo audio records. Recommended
1628 for headphone prolonged listening to disable superstereo fatigue without
1629 essential distortions.")
1630 (license license:expat)))
1632 (define-public liblo
1638 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1639 "/liblo-" version ".tar.gz"))
1642 "0sn0ckc1d0845mhsaa62wf7f9v0c0ykiq796a30ja5096kib9qdc"))))
1643 (build-system gnu-build-system)
1645 `(;; liblo test FAILED
1646 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1648 (home-page "http://liblo.sourceforge.net")
1649 (synopsis "Implementation of the Open Sound Control protocol")
1651 "liblo is a lightweight library that provides an easy to use
1652 implementation of the Open Sound Control (@dfn{OSC}) protocol.")
1653 (license license:lgpl2.1+)))
1655 (define-public python-pyaudio
1657 (name "python-pyaudio")
1664 "https://pypi.python.org/packages/ab/42/"
1665 "b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b"
1666 "/PyAudio-" version ".tar.gz"))
1669 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
1670 (build-system python-build-system)
1672 `(("portaudio" ,portaudio)))
1673 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
1674 (synopsis "Bindings for PortAudio v19")
1675 (description "This package provides bindings for PortAudio v19, the
1676 cross-platform audio input/output stream library.")
1677 (license license:expat)))
1679 (define-public python2-pyaudio
1680 (package-with-python2 python-pyaudio))
1682 (define-public python-pyliblo
1684 (name "python-pyliblo")
1688 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1692 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1693 (build-system python-build-system)
1694 (arguments `(#:tests? #f)) ;no tests
1696 `(("python-cython" ,python-cython)))
1698 `(("liblo" ,liblo)))
1699 (home-page "http://das.nasophon.de/pyliblo/")
1700 (synopsis "Python bindings for liblo")
1702 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1703 library. It supports almost the complete functionality of liblo, allowing you
1704 to send and receive OSC messages using a nice and simple Python API. Also
1705 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1706 (license license:lgpl2.1+)))
1708 (define-public python2-pyliblo
1709 (package-with-python2 python-pyliblo))
1717 (uri (string-append "http://download.drobilla.net/lilv-"
1718 version ".tar.bz2"))
1721 "08m5a372pr1l7aii9s3pic5nm68gynx1n1bc7bnlswziq6qnbv7p"))))
1722 (build-system waf-build-system)
1724 `(#:tests? #f ; no check target
1726 (modify-phases %standard-phases
1728 'configure 'set-ldflags
1729 (lambda* (#:key outputs #:allow-other-keys)
1731 (string-append "-Wl,-rpath="
1732 (assoc-ref outputs "out") "/lib")))))))
1733 ;; required by lilv-0.pc
1737 ("sratom" ,sratom)))
1741 `(("pkg-config" ,pkg-config)))
1742 (home-page "http://drobilla.net/software/lilv/")
1743 (synopsis "Library to simplify use of LV2 plugins in applications")
1745 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1746 for applications. Lilv is the successor to SLV2, rewritten to be
1747 significantly faster and have minimal dependencies.")
1748 (license license:isc)))
1756 (uri (string-append "http://lv2plug.in/spec/lv2-"
1757 version ".tar.bz2"))
1760 "0chxwys3vnn3nxc9x2vchm74s9sx0vfra6y893byy12ci61jc1dq"))))
1761 (build-system waf-build-system)
1763 `(#:tests? #f ; no check target
1764 #:configure-flags '("--no-plugins")))
1766 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1767 `(("libsndfile" ,libsndfile)))
1769 `(("pkg-config" ,pkg-config)))
1770 (home-page "http://lv2plug.in/")
1771 (synopsis "LV2 audio plugin specification")
1773 "LV2 is an open specification for audio plugins and host applications.
1774 At its core, LV2 is a simple stable interface, accompanied by extensions which
1775 add functionality to support the needs of increasingly powerful audio
1777 (license license:isc)))
1779 (define-public lv2-devel
1780 (let ((commit "39c7c726cd52b2863fcea356cafe1bcab2ba7f37")
1782 (package (inherit lv2)
1784 (version (string-append "1.15.3-" revision "." (string-take commit 7)))
1788 (url "http://lv2plug.in/git/lv2.git")
1790 (file-name (git-file-name name version))
1793 "1gp2rd99dfmpibvpixrqn115mrhybzf3if3h8bssf6siyi13f29r")))))))
1795 (define-public lv2-mda-piano
1797 (name "lv2-mda-piano")
1802 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
1804 (file-name (git-file-name name version))
1807 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1808 (build-system gnu-build-system)
1810 `(#:make-flags (list
1812 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1813 #:tests? #f ; no check target
1814 #:phases (modify-phases %standard-phases (delete 'configure))))
1819 `(("pkg-config" ,pkg-config)))
1820 (native-search-paths
1821 (list (search-path-specification
1822 (variable "LV2_PATH")
1823 (files '("lib/lv2")))))
1824 (home-page "http://elephly.net/lv2/mdapiano.html")
1825 (synopsis "LV2 port of the mda Piano plugin")
1826 (description "An LV2 port of the mda Piano VSTi.")
1827 (license license:gpl3+)))
1829 (define-public lv2-mda-epiano
1830 (package (inherit lv2-mda-piano)
1831 (name "lv2-mda-epiano")
1833 `(#:make-flags (list
1835 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1836 #:tests? #f ; no check target
1837 #:phases (modify-phases %standard-phases (delete 'configure))))
1838 (home-page "http://elephly.net/lv2/mdaepiano.html")
1839 (synopsis "LV2 port of the mda EPiano plugin")
1840 (description "An LV2 port of the mda EPiano VSTi.")))
1848 (uri (string-append "https://github.com/lvtk/lvtk/archive/"
1851 (file-name (string-append name "-" version ".tar.gz"))
1854 "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd"))))
1855 (build-system waf-build-system)
1857 `(#:tests? #f ; no check target
1860 (list (string-append "--boost-includes="
1861 (assoc-ref %build-inputs "boost")
1863 #:phases (modify-phases %standard-phases
1865 'configure 'set-flags
1866 (lambda* (#:key inputs #:allow-other-keys)
1867 ;; See e.g. https://github.com/lvtk/lvtk/issues/21
1870 "-L" (assoc-ref inputs "boost") "/lib "
1873 (substitute* '("src/wscript_build"
1874 "examples/wscript_build")
1875 (("cxxflags.*= \\[" line)
1876 (string-append line "\"-std=c++11\", ")))
1883 `(("pkg-config" ,pkg-config)))
1884 (home-page "https://github.com/lvtk/lvtk")
1885 (synopsis "C++ libraries for LV2 plugins")
1887 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
1888 extensions into easy to use C++ classes. It is the successor of
1890 (license license:gpl3+)))
1892 (define-public openal
1899 "http://kcat.strangesoft.net/openal-releases/openal-soft-"
1900 version ".tar.bz2"))
1903 "051k5fy8pk4fd9ha3qaqcv08xwbks09xl5qs4ijqq2qz5xaghhd3"))))
1904 (build-system cmake-build-system)
1906 `(#:tests? #f ; no check target
1908 (modify-phases %standard-phases
1910 'unpack 'use-full-library-paths
1911 (lambda* (#:key inputs #:allow-other-keys)
1912 (substitute* "Alc/backends/pulseaudio.c"
1913 (("#define PALIB \"libpulse\\.so\\.0\"")
1914 (string-append "#define PALIB \""
1915 (assoc-ref inputs "pulseaudio")
1916 "/lib/libpulse.so.0"
1918 (substitute* "Alc/backends/alsa.c"
1919 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
1920 (string-append "LoadLib(\""
1921 (assoc-ref inputs "alsa-lib")
1922 "/lib/libasound.so.2"
1926 `(("alsa-lib" ,alsa-lib)
1927 ("pulseaudio" ,pulseaudio)))
1928 (synopsis "3D audio API")
1930 "OpenAL provides capabilities for playing audio in a virtual 3D
1931 environment. Distance attenuation, doppler shift, and directional sound
1932 emitters are among the features handled by the API. More advanced effects,
1933 including air absorption, occlusion, and environmental reverb, are available
1934 through the EFX extension. It also facilitates streaming audio, multi-channel
1935 buffers, and audio capture.")
1936 (home-page "http://kcat.strangesoft.net/openal.html")
1937 (license license:lgpl2.0+)))
1939 (define-public freealut
1945 ;; Upstream url is unclear, many systems use Fedora, there is also
1946 ;; https://github.com/vancegroup/freealut though the status of it
1947 ;; (official? unofficial?) is not clear.
1949 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
1950 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
1951 "-" version ".tar.gz"))
1954 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
1955 (build-system cmake-build-system)
1957 `(#:tests? #f)) ; no check target
1959 `(("openal" ,openal)))
1960 (synopsis "Free implementation of OpenAL's ALUT standard")
1961 (description "freealut is the OpenAL Utility Toolkit.")
1962 (home-page "http://kcat.strangesoft.net/openal.html")
1963 (license license:lgpl2.0)))
1965 (define-public patchage
1971 (uri (string-append "http://download.drobilla.net/patchage-"
1976 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
1977 (build-system waf-build-system)
1978 (arguments `(#:tests? #f)) ; no check target
1980 `(("alsa-lib" ,alsa-lib)
1986 ("dbus-glib" ,dbus-glib)))
1988 `(("pkg-config" ,pkg-config)))
1989 (home-page "http://drobilla.net/software/patchage/")
1990 (synopsis "Modular patch bay for audio and MIDI systems")
1992 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
1994 (license license:gpl3+)))
1996 (define-public qjackctl
2002 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2003 version "/qjackctl-" version ".tar.gz"))
2006 "0lx81dfwanc10vrny1vzi0wx73ph82dlz99ffjzsigj3cqzz6x4s"))))
2007 (build-system gnu-build-system)
2009 '(#:tests? #f)) ; no check target
2012 ("alsa-lib" ,alsa-lib)
2014 ("qtx11extras" ,qtx11extras)))
2016 `(("pkg-config" ,pkg-config)
2017 ("qttools" ,qttools)))
2018 (home-page "https://qjackctl.sourceforge.io/")
2019 (synopsis "Jack server control application")
2020 (description "Control a Jack server. Allows you to plug various sources
2021 into various outputs and to start, stop and configure jackd")
2022 (license license:gpl2+)))
2024 (define-public qjackrcd
2031 (url "https://github.com/orouits/qjackrcd.git")
2032 (commit (string-append "v" version))))
2033 (file-name (git-file-name name version))
2036 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2037 (build-system gnu-build-system)
2040 (modify-phases %standard-phases
2042 (lambda* (#:key outputs #:allow-other-keys)
2043 (zero? (system* "qmake"
2044 (string-append "PREFIX="
2045 (assoc-ref outputs "out")))))))))
2047 `(("qtbase" ,qtbase))) ; for qmake
2050 ("libsndfile" ,libsndfile)
2051 ("qtbase" ,qtbase)))
2052 (home-page "https://sourceforge.net/projects/qjackrcd/")
2053 (synopsis "Stereo audio recorder for JACK")
2054 (description "QJackRcd is a simple graphical stereo recorder for JACK
2055 supporting silence processing for automatic pause, file splitting, and
2056 background file post-processing.")
2057 (license license:gpl2+)))
2065 (uri (string-append "http://download.drobilla.net/raul-"
2066 version ".tar.bz2"))
2069 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2070 (build-system waf-build-system)
2072 `(#:python ,python-2
2073 #:tests? #f)) ; no check target
2078 `(("pkg-config" ,pkg-config)))
2079 (home-page "http://drobilla.net/software/raul/")
2080 (synopsis "Real-time audio utility library")
2082 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2083 aimed at audio/musical applications.")
2084 (license license:gpl2+)))
2086 (define-public raul-devel
2087 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2089 (package (inherit raul)
2091 (version (string-append "0.8.9-" revision "."
2092 (string-take commit 9)))
2096 (url "http://git.drobilla.net/raul.git")
2098 (file-name (string-append name "-" version "-checkout"))
2101 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2103 (define-public rubberband
2110 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2113 (file-name (string-append name "-" version ".tar.bz2"))
2116 "05amrbrxx0da3w7m237q51799r8xgs4ffqabi2qv06hq8dpcj386"))))
2117 (build-system gnu-build-system)
2118 (arguments `(#:tests? #f)) ; no check target
2120 `(("ladspa" ,ladspa)
2121 ("libsamplerate" ,libsamplerate)
2124 `(("pkg-config" ,pkg-config)))
2125 (home-page "http://breakfastquay.com/rubberband/")
2126 (synopsis "Audio time-stretching and pitch-shifting library")
2128 "Rubber Band is a library and utility program that permits changing the
2129 tempo and pitch of an audio recording independently of one another.")
2130 (license license:gpl2+)))
2132 (define-public rtmidi
2139 (string-append "https://github.com/powertab/rtmidi/archive/"
2141 (file-name (string-append name "-" version ".tar.gz"))
2144 "0d49lapnmdgmjxh4vw57h6xk74nn5r0zwysv7jbd7m8kqhpq5rjj"))))
2145 (build-system gnu-build-system)
2147 `(#:tests? #f ;no "check" target
2148 #:phases (modify-phases %standard-phases
2151 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
2153 'build 'fix-makefile
2155 (substitute* "Makefile"
2157 (("RtMidi.h RtError.h") "RtMidi.h"))
2160 'install 'make-target-dirs
2162 (let ((out (assoc-ref %outputs "out")))
2163 (mkdir-p (string-append out "/bin"))
2164 (mkdir (string-append out "/lib"))
2165 (mkdir (string-append out "/include")))
2169 ("alsa-lib" ,alsa-lib)))
2171 `(("autoconf" ,autoconf)
2172 ("automake" ,automake)
2173 ("libtool" ,libtool)
2174 ("pkg-config" ,pkg-config)))
2175 (home-page "https://github.com/powertab/rtmidi")
2176 (synopsis "Cross-platform MIDI library for C++")
2178 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2179 classes) that provide a common cross-platform API for realtime MIDI
2181 (license license:expat)))
2183 (define-public sratom
2189 (uri (string-append "http://download.drobilla.net/sratom-"
2190 version ".tar.bz2"))
2193 "0hrxd9i66s06bpn6i3s9ka95134g3sm8yscmif7qgdzhyjqw42j4"))))
2194 (build-system waf-build-system)
2195 (arguments `(#:tests? #f)) ; no check target
2201 `(("pkg-config" ,pkg-config)))
2202 (home-page "http://drobilla.net/software/sratom/")
2203 (synopsis "Library for serialising LV2 atoms to/from RDF")
2205 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2206 the Turtle syntax.")
2207 (license license:isc)))
2215 (uri (string-append "http://download.drobilla.net/suil-"
2216 version ".tar.bz2"))
2219 "0j489gm3fhnmwmbgw30bvd4byw1vsy4yazdlnji8jzhcz0qwb5cq"))))
2220 (build-system waf-build-system)
2222 `(#:tests? #f ; no check target
2224 '("CXXFLAGS=-std=gnu++11")))
2231 `(("pkg-config" ,pkg-config)))
2232 (home-page "http://drobilla.net/software/suil/")
2233 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2235 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2237 Suil makes it possible to load a UI of a toolkit in a host using another
2238 toolkit. The API is designed such that hosts do not need to explicitly
2239 support specific toolkits – if Suil supports a particular toolkit, then UIs in
2240 that toolkit will work in all hosts that use Suil automatically.
2242 Suil currently supports every combination of Gtk, Qt, and X11.")
2243 (license license:isc)))
2245 (define-public timidity++
2251 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2252 "/TiMidity++-" version
2253 "/TiMidity++-" version ".tar.bz2"))
2256 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2257 (build-system gnu-build-system)
2260 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2264 (string-append "--with-default-path="
2265 (assoc-ref %outputs "out") "/etc/timidity"))
2267 (modify-phases %standard-phases
2268 (add-after 'install 'install-config
2270 (let ((out (string-append (assoc-ref %outputs "out")
2273 (call-with-output-file
2274 (string-append out "/timidity.cfg")
2276 (format port (string-append "source "
2277 (assoc-ref %build-inputs "freepats")
2278 "/share/freepats/freepats.cfg")))))
2281 `(("alsa-lib" ,alsa-lib)
2287 ("ncurses" ,ncurses)
2288 ("freepats" ,freepats)))
2290 `(("pkg-config" ,pkg-config)))
2291 (home-page "http://timidity.sourceforge.net/")
2292 (synopsis "Software synthesizer for playing MIDI files")
2294 "TiMidity++ is a software synthesizer. It can play MIDI files by
2295 converting them into PCM waveform data; give it a MIDI data along with digital
2296 instrument data files, then it synthesizes them in real-time, and plays. It
2297 can not only play sounds, but also can save the generated waveforms into hard
2298 disks as various audio file formats.")
2299 (license license:gpl2+)))
2308 "https://code.soundsoftware.ac.uk"
2309 "/attachments/download/1520/vamp-plugin-sdk-"
2313 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
2314 (build-system gnu-build-system)
2316 `(#:tests? #f ; no check target
2318 (modify-phases %standard-phases
2319 (add-after 'install 'remove-libvamp-hostsdk.la
2320 (lambda* (#:key outputs #:allow-other-keys)
2321 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2322 (for-each delete-file
2323 (let ((out (assoc-ref outputs "out")))
2324 (list (string-append out "/lib/libvamp-sdk.la")
2325 (string-append out "/lib/libvamp-hostsdk.la"))))
2328 `(("libsndfile" ,libsndfile)))
2330 `(("pkg-config" ,pkg-config)))
2331 (home-page "http://vamp-plugins.org")
2332 (synopsis "Modular and extensible audio processing system")
2334 "Vamp is an audio processing plugin system for plugins that extract
2335 descriptive information from audio data — typically referred to as audio
2336 analysis plugins or audio feature extraction plugins.")
2339 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
2341 (define-public libsbsms
2348 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2349 "/libsbsms-" version ".tar.gz"))
2351 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2352 (build-system gnu-build-system)
2353 (native-inputs `(("automake" ,automake)))
2356 ;; Disable the use of SSE unless on x86_64.
2357 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2358 (%current-system))))
2362 (modify-phases %standard-phases
2364 'unpack 'fix-ar-lib-path
2365 (lambda* (#:key inputs #:allow-other-keys)
2366 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2367 (delete-file "ar-lib")
2369 (string-append (assoc-ref inputs "automake") "/share/automake-"
2370 ,(package-version automake) "/ar-lib")
2372 (home-page "http://sbsms.sourceforge.net/")
2373 (synopsis "Library for time stretching and pitch scaling of audio")
2375 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2376 stretching and pitch scaling of audio. This package contains the library.")
2377 ;; There is no explicit declaration of a license, but a COPYING file
2379 (license license:gpl2)))
2381 (define-public wavpack
2387 (uri (string-append "http://www.wavpack.com/"
2388 name "-" version ".tar.bz2"))
2389 (patches (search-patches "wavpack-CVE-2018-6767.patch"
2390 "wavpack-CVE-2018-7253.patch"
2391 "wavpack-CVE-2018-7254.patch"))
2394 "0i19c6krc0p9krwrqy9s5xahaafigqzxcn31piidmlaqadyn4f8r"))))
2395 (build-system gnu-build-system)
2396 (home-page "http://www.wavpack.com/")
2397 (synopsis "Hybrid lossless audio codec")
2399 "WavPack is an audio compression format with lossless, lossy and hybrid
2400 compression modes. This package contains command-line programs and library to
2401 encode and decode wavpack files.")
2402 (license license:bsd-3)))
2404 (define-public libmodplug
2411 "mirror://sourceforge/modplug-xmms/"
2412 name "/" version "/" name "-" version ".tar.gz"))
2415 "1bfsladg7h6vnii47dd66f5vh1ir7qv12mfb8n36qiwrxq92sikp"))))
2416 (build-system gnu-build-system)
2417 (home-page "http://modplug-xmms.sourceforge.net/")
2418 (synopsis "Mod file playing library")
2420 "Libmodplug renders mod music files as raw audio data, for playing or
2421 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2422 supported. Optional features include high-quality resampling, bass expansion,
2423 surround and reverb.")
2424 (license license:public-domain)))
2426 (define-public libxmp
2432 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
2433 name "-" version ".tar.gz"))
2436 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
2437 (build-system gnu-build-system)
2438 (home-page "http://xmp.sourceforge.net/")
2439 (synopsis "Module player library")
2441 "Libxmp is a library that renders module files to PCM data. It supports
2442 over 90 mainstream and obscure module formats including Protracker (MOD),
2443 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2444 (license license:lgpl2.1+)))
2452 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
2453 name "-" version ".tar.gz"))
2456 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
2457 (build-system gnu-build-system)
2459 `(("pkg-config" ,pkg-config)))
2461 `(("libxmp" ,libxmp)
2462 ("pulseaudio" ,pulseaudio)))
2463 (home-page "http://xmp.sourceforge.net/")
2464 (synopsis "Extended module player")
2466 "Xmp is a portable module player that plays over 90 mainstream and
2467 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2468 Tracker 3 S3M and Impulse Tracker IT files.")
2469 (license license:gpl2+)))
2471 (define-public soundtouch
2480 "http://www.surina.net/soundtouch/soundtouch-" version ".tar.gz"))
2482 (base32 "0sqn3wk4qz20vf0vz853l6dl1gnj1yhqxfwxqsc5lp529kbn2h9x"))))
2483 (build-system gnu-build-system)
2485 `(("autoconf" ,autoconf)
2486 ("automake" ,automake)
2487 ("libtool" ,libtool)
2489 (home-page "http://www.surina.net/soundtouch/")
2491 "Audio processing library for changing tempo, pitch and playback rate")
2493 "SoundTouch is an audio processing library for changing the tempo, pitch
2494 and playback rates of audio streams or audio files. It is intended for
2495 application developers writing sound processing tools that require tempo/pitch
2496 control functionality, or just for playing around with the sound effects.")
2497 (license license:lgpl2.1+)))
2505 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2506 name "-" version ".tar.bz2"))
2509 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2510 (build-system gnu-build-system)
2513 ;; The upstream asks to identify the distribution to diagnose SoX
2515 '("--with-distro=Guix System Distribution")))
2517 `(("pkg-config" ,pkg-config)))
2519 `(("alsa-lib" ,alsa-lib)
2523 ("libid3tag" ,libid3tag)
2524 ("libltdl" ,libltdl)
2527 ("libvorbis" ,libvorbis)
2528 ("pulseaudio" ,pulseaudio)))
2529 (home-page "http://sox.sourceforge.net")
2530 (synopsis "Sound processing utility")
2532 "SoX (Sound eXchange) is a command line utility that can convert
2533 various formats of computer audio files to other formats. It can also
2534 apply various effects to these sound files, and, as an added bonus, SoX
2535 can play and record audio files.")
2536 ;; sox.c is distributed under GPL, while the files that make up
2537 ;; libsox are licensed under LGPL.
2538 (license (list license:gpl2+ license:lgpl2.1+))))
2548 (string-append "mirror://sourceforge/soxr/soxr-" version
2551 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
2552 (build-system cmake-build-system)
2553 (arguments '(#:tests? #f)) ;no 'check' target
2554 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
2555 (synopsis "One-dimensional sample-rate conversion library")
2557 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2558 conversion. It may be used, for example, to resample PCM-encoded audio.")
2559 (license license:lgpl2.1+)))
2561 (define-public twolame
2568 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2569 "/twolame-" version ".tar.gz"))
2571 (base32 "0ahiqqng5pidwhj1wzph4vxxgxxgcfa3gl0gywipzx2ii7s35wwq"))
2572 (modules '((guix build utils)))
2573 ;; The tests break with Perl 5.24:
2574 ;; https://github.com/njh/twolame/issues/21
2575 ;; TODO: Remove this snippet when upgrading twolame.
2578 (substitute* "tests/test.pl" (("\\(@_\\)") "($_[0])"))
2580 (build-system gnu-build-system)
2582 `(("libsndfile" ,libsndfile)))
2585 ("which" ,which))) ;used in tests/test.pl
2586 (home-page "http://www.twolame.org/")
2587 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2589 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2590 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2592 (license license:lgpl2.1+)))
2594 (define-public portaudio
2597 (version "190600.20161030")
2602 "http://www.portaudio.com/archives/pa_stable_v"
2603 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2606 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
2607 (patches (search-patches "portaudio-audacity-compat.patch"))))
2608 (build-system gnu-build-system)
2610 ;; TODO: Add ASIHPI.
2611 `(("alsa-lib" ,alsa-lib)
2614 `(("autoconf" ,autoconf)
2615 ("automake" ,automake)
2616 ("libtool" ,libtool)
2617 ("pkg-config" ,pkg-config)))
2620 ;; Autoreconf is necessary because the audacity-compat patch modifies
2622 (modify-phases %standard-phases
2623 (add-after 'unpack 'autoreconf
2625 (zero? (system* "autoreconf" "-vif")))))
2626 #:tests? #f)) ;no 'check' target
2627 (home-page "http://www.portaudio.com/")
2628 (synopsis "Audio I/O library")
2630 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2631 to record and/or play sound using a callback function or a blocking read/write
2633 (license license:expat)))
2635 (define-public qsynth
2642 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2643 "/qsynth-" version ".tar.gz"))
2646 "1sr6vrz8z9r99j9xcix86lgcqldragb2ajmq1bnhr58d99sda584"))))
2647 (build-system gnu-build-system)
2649 `(#:tests? #f ; no "check" phase
2651 '("CXXFLAGS=-std=gnu++11")))
2653 `(("qttools" ,qttools)
2654 ("pkg-config" ,pkg-config)))
2656 `(("fluidsynth" ,fluidsynth)
2658 ("qtx11extras" ,qtx11extras)))
2659 (home-page "http://qsynth.sourceforge.net")
2660 (synopsis "Graphical user interface for FluidSynth")
2662 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2663 synthesizer written in C++.")
2664 (license license:gpl2+)))
2666 (define-public rsound
2673 (uri (string-append "https://github.com/Themaister/RSound/archive/v"
2675 (file-name (string-append name "-" version))
2677 (base32 "1wzs40c0k5zpkmm5ffl6c17xmr399sxli7ys0fbb9ib0fd334knx"))))
2678 (build-system gnu-build-system)
2680 `(("alsa-lib" ,alsa-lib)
2683 ("libsamplerate" ,libsamplerate)
2685 ("portaudio" ,portaudio)
2686 ("pulseaudio" ,pulseaudio)))
2689 (modify-phases %standard-phases
2691 (lambda* (#:key outputs #:allow-other-keys)
2694 (system* "./configure"
2695 (string-append "--prefix=" (assoc-ref outputs "out")))))))
2696 ;; No 'check' target.
2698 (home-page "http://themaister.net/rsound.html")
2699 (synopsis "Networked audio system")
2701 "RSound allows you to send audio from an application and transfer it
2702 directly to a different computer on your LAN network. It is an audio daemon
2703 with a much different focus than most other audio daemons.")
2704 (license license:gpl3+)))
2706 (define-public xjackfreak
2713 "https://github.com/johnhldavis/xjackfreak/archive/v"
2715 (file-name (string-append name "-" version ".tar.gz"))
2718 "0xj6gpxfnw9jbdgwgm0x23xgfvj2kwmwb1nk0drw8lxgcchkq7d9"))))
2719 (build-system gnu-build-system)
2722 (list (string-append "docdir=" (assoc-ref %outputs "out")
2723 "/share/doc/xjackfreak"))))
2728 ("libxext" ,libxext)))
2730 `(("pkg-config" ,pkg-config)))
2731 (home-page "https://github.com/johnhldavis/xjackfreak")
2732 (synopsis "JACK audio frequency analyzer and display")
2734 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
2735 Connection Kit. It can display the FFT of any input, modify it and output the
2737 (license license:gpl3+)))
2739 (define-public zita-convolver
2741 (name "zita-convolver")
2746 "http://kokkinizita.linuxaudio.org"
2747 "/linuxaudio/downloads/zita-convolver-"
2748 version ".tar.bz2"))
2750 ;; Don't optimize for a specific processor architecture.
2752 (substitute* "libs/Makefile"
2753 (("^CXXFLAGS \\+= -march=native") ""))
2755 (modules '((guix build utils)))
2758 "14qrnczhp5mbwhky64il7kxc4hl1mmh495v60va7i2qnhasr6zmz"))))
2759 (build-system gnu-build-system)
2761 `(#:tests? #f ; no "check" target
2762 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2764 (modify-phases %standard-phases
2765 (add-after 'unpack 'patch-makefile-and-enter-directory
2767 (substitute* "libs/Makefile"
2768 (("ldconfig") "true")
2769 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2771 (add-after 'install 'install-symlink
2773 (symlink "libzita-convolver.so"
2774 (string-append (assoc-ref %outputs "out")
2775 "/lib/libzita-convolver.so.3"))))
2776 ;; no configure script
2777 (delete 'configure))))
2778 (inputs `(("fftwf" ,fftwf)))
2779 (home-page "https://kokkinizita.linuxaudio.org")
2780 (synopsis "Fast, partitioned convolution engine library")
2782 "Zita convolver is a C++ library providing a real-time convolution
2784 (license license:gpl3+)))
2786 (define-public zita-resampler
2788 (name "zita-resampler")
2793 "http://kokkinizita.linuxaudio.org"
2794 "/linuxaudio/downloads/zita-resampler-"
2795 version ".tar.bz2"))
2797 ;; Don't optimize for a specific processor architecture.
2799 (substitute* '("apps/Makefile" "libs/Makefile")
2800 (("^CXXFLAGS \\+= -march=native") ""))
2802 (modules '((guix build utils)))
2805 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
2806 (build-system gnu-build-system)
2808 `(#:tests? #f ; no "check" target
2809 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2811 (modify-phases %standard-phases
2813 'unpack 'patch-makefile-and-enter-directory
2815 (substitute* "libs/Makefile"
2816 (("ldconfig") "true")
2817 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2821 'install 'install-symlink
2823 (symlink "libzita-resampler.so"
2824 (string-append (assoc-ref %outputs "out")
2825 "/lib/libzita-resampler.so.1"))))
2826 ;; no configure script
2827 (delete 'configure))))
2828 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
2829 (synopsis "C++ library for resampling audio signals")
2831 "Libzita-resampler is a C++ library for resampling audio signals. It is
2832 designed to be used within a real-time processing context, to be fast, and to
2833 provide high-quality sample rate conversion.")
2834 (license license:gpl3+)))
2836 (define-public zita-alsa-pcmi
2838 (name "zita-alsa-pcmi")
2843 "http://kokkinizita.linuxaudio.org"
2844 "/linuxaudio/downloads/zita-alsa-pcmi-"
2845 version ".tar.bz2"))
2848 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
2849 (build-system gnu-build-system)
2851 `(#:tests? #f ; no "check" target
2852 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2854 (modify-phases %standard-phases
2855 (add-after 'unpack 'patch-makefile-and-enter-directory
2857 (substitute* "libs/Makefile"
2858 (("ldconfig") "true")
2859 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2862 (add-after 'install 'install-symlink
2864 (symlink "libzita-alsa-pcmi.so"
2865 (string-append (assoc-ref %outputs "out")
2866 "/lib/libzita-alsa-pcmi.so.0"))))
2867 ;; no configure script
2868 (delete 'configure))))
2870 `(("alsa-lib" ,alsa-lib)
2872 (home-page "https://kokkinizita.linuxaudio.org")
2873 (synopsis "C++ wrapper around the ALSA API")
2875 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
2876 access to ALSA PCM devices, taking care of the many functions required to
2877 open, initialise and use a hw: device in mmap mode, and providing floating
2879 (license license:gpl3+)))
2881 (define-public cuetools
2887 (uri (string-append "https://github.com/svend/cuetools/archive/"
2889 (file-name (string-append name "-" version ".tar.gz"))
2892 "01xi3rvdmil9nawsha04iagjylqr1l9v9vlzk99scs8c207l58i4"))))
2893 (build-system gnu-build-system)
2894 ;; The source tarball is not bootstrapped.
2896 `(("autoconf" ,autoconf)
2897 ("automake" ,automake)
2900 (synopsis "Cue and toc file parsers and utilities")
2901 (description "Cuetools is a set of programs that are useful for manipulating
2902 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
2903 files are a way to represent the layout of a data or audio CD in a
2904 machine-readable ASCII format.")
2905 (home-page "https://github.com/svend/cuetools")
2906 (license license:gpl2+)))
2908 (define-public shntool
2914 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
2915 "shntool-" version ".tar.gz"))
2918 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
2919 (build-system gnu-build-system)
2920 (synopsis "WAVE audio data processing tool")
2921 (description "shntool is a multi-purpose WAVE data processing and reporting
2922 utility. File formats are abstracted from its core, so it can process any file
2923 that contains WAVE data, compressed or not---provided there exists a format
2924 module to handle that particular file type. It can also generate CUE files, and
2925 use them split WAVE data into multiple files.")
2926 (home-page "http://etree.org/shnutils/shntool/")
2927 ;; 'install-sh' bears the x11 license
2928 (license (list license:gpl2+ license:x11))))
2930 (define-public dcadec
2936 (uri (string-append "https://github.com/foo86/dcadec/archive/v"
2938 (file-name (string-append name "-" version ".tar.gz"))
2941 "0i0dpypgqkhhi4v1fmsp2way6w9kbcix3c7q79pmg39yvrzj17gd"))))
2942 (build-system gnu-build-system)
2944 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
2948 ;; Build shared library.
2950 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2951 ;; Set proper runpath.
2952 (string-append "LDFLAGS=-Wl,-rpath="
2953 (assoc-ref %outputs "out")
2956 (modify-phases %standard-phases
2957 ;; No configure script, just a hand-written Makefile.
2958 (delete 'configure))))
2959 (synopsis "DTS Coherent Acoustics decoder")
2960 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
2961 with support for HD extensions.")
2962 (home-page "https://github.com/foo86/dcadec")
2963 (license license:lgpl2.1+)))
2965 (define-public bs1770gain
2972 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
2973 version "/bs1770gain-" version ".tar.gz"))
2976 "0n9skdap1vnl6w52fx0gsrjlk7w3xgdwi62ycyf96h29rx059z6a"))))
2977 (build-system gnu-build-system)
2978 (inputs `(("ffmpeg" ,ffmpeg)
2980 (home-page "http://bs1770gain.sourceforge.net/")
2981 (synopsis "Tool to adjust loudness of media files")
2983 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
2984 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
2985 loudness of audio and video files to the same level.")
2986 (license license:gpl2+)))
2988 (define-public filteraudio
2989 (let ((revision "1")
2990 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
2992 (name "filteraudio")
2993 (version (string-append "0.0.0-" revision "."
2994 (string-take commit 7)))
2999 (url "https://github.com/irungentoo/filter_audio.git")
3001 (file-name (string-append name "-" version "-checkout"))
3004 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3005 (build-system gnu-build-system)
3007 '(#:make-flags (list (string-append "PREFIX=" %output)
3009 #:tests? #f ; No tests
3011 (modify-phases %standard-phases
3012 ;; No configure script
3013 (delete 'configure))))
3014 (synopsis "Lightweight audio filtering library")
3015 (description "An easy to use audio filtering library made from webrtc
3016 code, used in @code{libtoxcore}.")
3017 (home-page "https://github.com/irungentoo/filter_audio")
3018 (license license:bsd-3))))
3028 (string-append "http://www.quut.com/" name "/" name
3029 "-" version ".tar.gz"))
3032 "00bns0d4wwrvc60lj2w7wz4yk49q1f6rpdrwqzrxsha9d78mfnl5"))))
3033 (build-system gnu-build-system)
3035 `(#:test-target "tst"
3037 (modify-phases %standard-phases
3038 (add-before 'install 'pre-install
3040 (let ((out (assoc-ref %outputs "out")))
3041 (substitute* "Makefile"
3042 (("INSTALL_ROOT\t=")
3043 (string-append "INSTALL_ROOT\t=\t" out)))
3044 (mkdir-p (string-append out "/inc"))
3045 (mkdir-p (string-append out "/man"))
3046 (mkdir-p (string-append out "/man/man1"))
3047 (mkdir-p (string-append out "/man/man3"))
3048 (mkdir-p (string-append out "/bin"))
3049 (mkdir-p (string-append out "/lib")))))
3050 (add-after 'install 'post-install
3052 (let ((out (assoc-ref %outputs "out")))
3053 (rename-file (string-append out "/inc")
3054 (string-append out "/include"))
3055 (mkdir-p (string-append out "/include/gsm"))
3056 (copy-recursively "inc"
3057 (string-append out "/include/gsm")))))
3058 (delete 'configure))))
3059 (synopsis "GSM 06.10 lossy speech compression library")
3060 (description "This C library provides an encoder and a decoder for the GSM
3061 06.10 RPE-LTP lossy speech compression algorithm.")
3062 (home-page "http://quut.com/gsm/")
3063 (license (license:non-copyleft "file://COPYRIGHT"))))
3065 (define-public python-pyalsaaudio
3067 (name "python-pyalsaaudio")
3071 (uri (pypi-uri "pyalsaaudio" version))
3074 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3075 (build-system python-build-system)
3077 `(#:tests? #f)) ; tests require access to ALSA devices.
3079 `(("alsa-lib" ,alsa-lib)))
3080 (home-page "http://larsimmisch.github.io/pyalsaaudio/")
3081 (synopsis "ALSA wrappers for Python")
3083 "This package contains wrappers for accessing the ALSA API from Python.
3084 It is currently fairly complete for PCM devices, and has some support for
3086 (license license:psfl)))
3088 (define-public python2-pyalsaaudio
3089 (package-with-python2 python-pyalsaaudio))
3091 (define-public bluez-alsa
3096 ;; The tarballs are mere snapshots and don't contain a
3097 ;; bootstrapped build system.
3100 (url "https://github.com/Arkq/bluez-alsa.git")
3101 (commit (string-append "v" version))))
3102 (file-name (string-append name "-" version "-checkout"))
3105 "1qinf41wl2ihx54zmmhanycihwjkn7dn1cicq6pp4rqbiv79b95x"))))
3106 (build-system gnu-build-system)
3108 `(("autoconf" ,autoconf)
3109 ("automake" ,automake)
3110 ("libtool" ,libtool)
3111 ("pkg-config" ,pkg-config)))
3113 `(("alsa-lib" ,alsa-lib)
3117 ("ncurses" ,ncurses)
3120 (home-page "https://github.com/Arkq/bluez-alsa")
3121 (synopsis "Bluetooth ALSA backend")
3122 (description "This project is a rebirth of a direct integration between
3123 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
3124 in favor of 3rd party audio applications. From now on, Bluez acts as a
3125 middleware between an audio application, which implements Bluetooth audio
3126 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
3127 audio profiles in Bluez, so in theory every Bluetooth device (with audio
3128 capabilities) can be connected. In order to access the audio stream, one has
3129 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
3130 on the ALSA software PCM plugin.")
3131 (license license:expat)))
3139 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
3140 "snd-" version ".tar.gz"))
3143 "1vm0dy5qlycqkima7y5ajzvazyjybifa803fabjcpncjz08c26vp"))))
3144 (build-system glib-or-gtk-build-system)
3146 '(#:tests? #f ; no tests
3147 #:out-of-source? #f ; for the 'install-doc' phase
3149 (let* ((out (assoc-ref %outputs "out"))
3150 (docdir (string-append out "/share/doc/snd")))
3151 (list "--with-alsa" "--with-jack" "--with-gmp"
3152 (string-append "--with-doc-dir=" docdir)))
3154 (modify-phases %standard-phases
3155 (add-after 'install 'install-doc
3156 (lambda* (#:key outputs #:allow-other-keys)
3157 (let* ((out (assoc-ref outputs "out"))
3158 (docdir (string-append out "/share/doc/snd")))
3162 (install-file f docdir))
3163 (find-files "." "\\.html$|COPYING"))
3164 (copy-recursively "pix" (string-append docdir "/pix"))
3167 `(("pkg-config" ,pkg-config)))
3169 `(("alsa-lib" ,alsa-lib)
3176 ("libsamplerate" ,libsamplerate)
3181 ("timidity++" ,timidity++)
3182 ("vorbis-tools" ,vorbis-tools)
3183 ("wavpack" ,wavpack)))
3184 (synopsis "Sound editor")
3185 (home-page "https://ccrma.stanford.edu/software/snd/")
3187 "Snd is a sound editor modelled loosely after Emacs. It can be
3188 customized and extended using either the s7 Scheme implementation (included in
3189 the Snd sources), Ruby, or Forth.")
3190 (license (license:non-copyleft "file://COPYING"))))
3192 (define-public noise-repellent
3194 (name "noise-repellent")
3199 (url "https://github.com/lucianodato/noise-repellent.git")
3201 (file-name (string-append name "-" version "-checkout"))
3204 "0rd3dlmk3vivjmcr6x2x860y0j1d49c2j95j6ny50v184mwvn11j"))))
3205 (build-system gnu-build-system)
3209 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3210 #:tests? #f ; there are none
3212 (modify-phases %standard-phases
3213 (delete 'configure))))
3218 `(("pkg-config" ,pkg-config)))
3219 (home-page "https://github.com/lucianodato/noise-repellent")
3220 (synopsis "LV2 plugin for broadband noise reduction")
3221 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
3222 the following features:
3225 @item Spectral gating and spectral subtraction suppression rule
3226 @item Adaptive and manual noise thresholds estimation
3227 @item Adjustable noise floor
3228 @item Adjustable offset of thresholds to perform over-subtraction
3229 @item Time smoothing and a masking estimation to reduce artifacts
3230 @item Basic onset detector to avoid transients suppression
3231 @item Whitening of the noise floor to mask artifacts and to recover higher
3233 @item Option to listen to the residual signal
3235 @item Noise profile saved with the session
3238 (license license:lgpl3+)))
3240 (define-public cli-visualizer
3242 (name "cli-visualizer")
3247 (uri (string-append "https://github.com/dpayne/cli-visualizer/archive/"
3249 (file-name (string-append name "-" version ".tar.gz"))
3252 "07zkm87f2fr8kc6531zrkya7q81sdanm6813y2f54mg13g41y6hi"))))
3253 (build-system gnu-build-system)
3255 `(("which" ,which)))
3258 ("googletest" ,googletest)
3259 ("ncurses" ,ncurses)
3260 ("pulseaudio" ,pulseaudio)))
3262 '(#:test-target "test"
3264 (list (string-append "PREFIX=" %output "/bin/") "ENABLE_PULSE=1")
3266 (modify-phases %standard-phases
3267 (add-after 'unpack 'remove-sudo
3269 (substitute* "install.sh" (("sudo") ""))
3271 (add-before 'check 'set-check-environment
3273 (setenv "CXX" "g++")
3276 (add-before 'install 'make-prefix
3278 (mkdir-p (string-append (assoc-ref %outputs "out") "/bin"))
3280 (add-after 'install 'data
3282 (for-each (lambda (file)
3284 (string-append (assoc-ref %outputs "out")
3286 (find-files "examples"))
3288 (home-page "https://github.com/dpayne/cli-visualizer/")
3289 (synopsis "Command-line audio visualizer")
3290 (description "@code{cli-visualizer} displays fast-Fourier
3291 transforms (FFTs) of the sound being played, as well as other graphical
3293 (license license:expat)))
3302 "https://github.com/karlstav/cava/archive/"
3304 (file-name (string-append name "-" version ".tar.gz"))
3307 "1p24lz3h4d0h82ffylqr7mq8a8x1c66flm2r2bsv1liw51n1rma2"))))
3308 (build-system gnu-build-system)
3310 `(("autoconf" ,autoconf)
3311 ("automake" ,automake)
3312 ("libtool" ,libtool)))
3315 ("ncurses" ,ncurses)
3316 ("pulseaudio" ,pulseaudio)))
3319 (list (string-append "PREFIX=" %output)
3320 (string-append "FONT_DIR=" %output "/usr/share/consolefonts"))
3322 (let ((lib (string-append %output "/lib")))
3323 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
3325 (modify-phases %standard-phases
3327 (lambda* (#:key outputs #:allow-other-keys)
3328 (setenv "HOME" (getcwd))
3329 (invoke "sh" "autogen.sh")))
3330 (add-before 'build 'make-cava-ldflags
3331 (lambda* (#:key outputs #:allow-other-keys)
3332 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))))
3333 (add-after 'install 'data
3334 (lambda* (#:key outputs #:allow-other-keys)
3335 (for-each (lambda (file)
3337 (string-append (assoc-ref outputs "out")
3338 "/share/doc/examples")))
3339 (find-files "example_files")))))))
3340 (home-page "https://karlstav.github.io/cava/")
3341 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
3342 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
3343 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
3344 (license license:expat)))
3346 (define-public fluid-3
3347 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
3354 ;; Only one file is required, but the release bundles the whole
3355 ;; software which is 50MiB as tar and 200MiB unpacked. The website
3356 ;; directly links the soundfont release to the github file download.
3357 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
3358 commit "/share/sound/FluidR3Mono_GM.sf3"))
3359 (file-name (string-append name "-" version ".sf3"))
3362 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
3363 (build-system trivial-build-system)
3365 `(#:modules ((guix build utils))
3368 (use-modules (guix build utils))
3369 (let ((file (assoc-ref %build-inputs "source"))
3370 (out (string-append %output "/share/soundfonts")))
3372 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))))))
3373 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
3374 (synopsis "Pro-quality GM soundfont")
3375 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
3376 (license license:expat))))