1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016 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>
8 ;;; This file is part of GNU Guix.
10 ;;; GNU Guix is free software; you can redistribute it and/or modify it
11 ;;; under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 3 of the License, or (at
13 ;;; your option) any later version.
15 ;;; GNU Guix is distributed in the hope that it will be useful, but
16 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23 (define-module (gnu packages audio)
24 #:use-module (guix packages)
25 #:use-module (guix download)
26 #:use-module (guix git-download)
27 #:use-module (guix utils)
28 #:use-module ((guix licenses) #:prefix license:)
29 #:use-module (guix build-system gnu)
30 #:use-module (guix build-system waf)
31 #:use-module (guix build-system trivial)
32 #:use-module (guix build-system cmake)
33 #:use-module (guix build-system python)
34 #:use-module (gnu packages)
35 #:use-module (gnu packages algebra)
36 #:use-module (gnu packages autotools)
37 #:use-module (gnu packages avahi)
38 #:use-module (gnu packages boost)
39 #:use-module (gnu packages base)
40 #:use-module (gnu packages bison)
41 #:use-module (gnu packages compression)
42 #:use-module (gnu packages curl)
43 #:use-module (gnu packages databases)
44 #:use-module (gnu packages file)
45 #:use-module (gnu packages flex)
46 #:use-module (gnu packages fltk)
47 #:use-module (gnu packages fontutils)
48 #:use-module (gnu packages gettext)
49 #:use-module (gnu packages glib)
50 #:use-module (gnu packages gtk)
51 #:use-module (gnu packages gnome)
52 #:use-module (gnu packages gperf)
53 #:use-module (gnu packages image)
54 #:use-module (gnu packages ncurses)
55 #:use-module (gnu packages qt)
56 #:use-module (gnu packages linux)
57 #:use-module (gnu packages mp3) ;taglib
58 #:use-module (gnu packages perl)
59 #:use-module (gnu packages pkg-config)
60 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
61 #:use-module (gnu packages python)
62 #:use-module (gnu packages rdf)
63 #:use-module (gnu packages readline)
64 #:use-module (gnu packages webkit)
65 #:use-module (gnu packages xiph)
66 #:use-module (gnu packages xml)
67 #:use-module (gnu packages xorg)
68 #:use-module (gnu packages zip)
69 #:use-module (srfi srfi-1))
71 (define-public alsa-modular-synth
73 (name "alsa-modular-synth")
77 (uri (string-append "mirror://sourceforge/alsamodular/ams-"
81 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
82 (build-system gnu-build-system)
84 `(#:configure-flags '("--enable-qt5")
86 (modify-phases %standard-phases
87 ;; Insert an extra space between linker flags.
88 (add-before 'configure 'add-missing-space
90 (substitute* "configure"
91 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
92 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
95 `(("alsa-lib" ,alsa-lib)
96 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
97 ;; license incompatibility.
98 ("clalsadrv" ,clalsadrv)
105 `(("pkg-config" ,pkg-config)))
106 (home-page "http://alsamodular.sourceforge.net/")
107 (synopsis "Realtime modular synthesizer and effect processor")
109 "AlsaModularSynth is a digital implementation of a classical analog
110 modular synthesizer system. It uses virtual control voltages to control the
111 parameters of the modules. The control voltages which control the frequency
112 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
113 Filter) modules follow the convention of 1V / Octave.")
114 (license license:gpl2)))
123 "http://aubio.org/pub/aubio-" version ".tar.bz2"))
126 "15f6nf76y7iyl2kl4ny7ky0zpxfxr8j3902afvd6ydnnkh5dzmr5"))))
127 (build-system waf-build-system)
129 `(#:tests? #f ; no check target
134 "--enable-samplerate"
135 ;; enable compilation with avcodec once available
140 ("libsndfile" ,libsndfile)
141 ("libsamplerate" ,libsamplerate)
144 `(("pkg-config" ,pkg-config)))
145 (home-page "http://aubio.org/")
146 (synopsis "Library for audio labelling")
148 "aubio is a tool designed for the extraction of annotations from audio
149 signals. Its features include segmenting a sound file before each of its
150 attacks, performing pitch detection, tapping the beat and producing MIDI
151 streams from live audio.")
152 (license license:gpl3+)))
154 (define (ardour-rpath-phase major-version)
155 `(lambda* (#:key outputs #:allow-other-keys)
156 (let ((libdir (string-append (assoc-ref outputs "out")
157 "/lib/ardour" ,major-version)))
158 (substitute* "wscript"
159 (("linker_flags = \\[\\]")
160 (string-append "linker_flags = [\""
163 libdir "/backends" ":"
164 libdir "/engines" ":"
165 libdir "/panners" ":"
166 libdir "/surfaces" ":"
167 libdir "/vamp" "\"]"))))
170 (define-public ardour
177 (url "git://git.ardour.org/ardour/ardour.git")
180 ;; Ardour expects this file to exist at build time. The revision
182 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
183 '(call-with-output-file
184 "libs/ardour/revision.cc"
186 (format port "#include \"ardour/revision.h\"
187 namespace ARDOUR { const char* revision = \"4.7-219-g0e36f8e\" ; }"))))
190 "149gswphz77m3pkzsn2nqbm6yvcfa3fva560bcvjzlgb73f64q5l"))
191 (file-name (string-append name "-" version))))
192 (build-system waf-build-system)
194 `(#:configure-flags '("--cxx11") ; required by gtkmm
196 (modify-phases %standard-phases
198 'unpack 'set-rpath-in-LDFLAGS
199 ,(ardour-rpath-phase (version-prefix version 1))))
200 #:tests? #f ; no check target
203 `(("alsa-lib" ,alsa-lib)
211 ("libart-lgpl" ,libart-lgpl)
212 ("libgnomecanvasmm" ,libgnomecanvasmm)
215 ("libsndfile" ,libsndfile)
216 ("libsamplerate" ,libsamplerate)
219 ("libvorbis" ,libvorbis)
233 ("rubberband" ,rubberband)
235 ("python-rdflib" ,python-rdflib)))
238 ("pkg-config" ,pkg-config)))
239 (home-page "http://ardour.org")
240 (synopsis "Digital audio workstation")
242 "Ardour is a multi-channel digital audio workstation, allowing users to
243 record, edit, mix and master audio and MIDI projects. It is targeted at audio
244 engineers, musicians, soundtrack editors and composers.")
245 (license license:gpl2+)))
253 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
258 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))))
259 (build-system gnu-build-system)
261 `(#:tests? #f ; no check target
264 (string-append "prefix=" %output)
265 (string-append "pkgdatadir=" %output "/share/azr3-jack"))))
272 `(("pkg-config" ,pkg-config)))
273 (home-page "http://ll-plugins.nongnu.org/azr3/")
274 (synopsis "Tonewheel organ synthesizer")
276 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
277 with drawbars, distortion and rotating speakers. The organ has three
278 sections, two polyphonic sections with nine drawbars each and one monophonic
279 bass section with five drawbars. A standalone JACK application and LV2
280 plugins are provided.")
281 (license license:gpl2)))
289 (uri (string-append "http://calf-studio-gear.org/files/calf-"
293 "019fwg00jv217a5r767z7szh7vdrarybac0pr2sk26xp81kibrx9"))))
294 (build-system gnu-build-system)
296 `(("fluidsynth" ,fluidsynth)
307 `(("pkg-config" ,pkg-config)))
309 (list (search-path-specification
310 (variable "LV2_PATH")
311 (files '("lib/lv2")))))
312 (home-page "http://calf.sourceforge.net/")
313 (synopsis "Audio plug-in pack for LV2 and JACK environments")
315 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
316 The suite contains lots of effects (delay, modulation, signal processing,
317 filters, equalizers, dynamics, distortion and mastering effects),
318 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
319 tools (analyzer, mono/stereo tools, crossovers).")
320 ;; calfjackhost is released under GPLv2+
321 ;; The plugins are released under LGPLv2.1+
322 (license (list license:lgpl2.1+ license:gpl2+))))
324 (define-public csound
331 "mirror://sourceforge/csound/csound6/Csound"
332 version "/Csound" version ".tar.gz"))
335 "0a1sni6lr7qpwywpggbkp0ia3h9bwwgf9i87gsag8ra2h30v82hd"))
336 (patches (search-patches "csound-header-ordering.patch"))))
337 (build-system cmake-build-system)
339 ;; Work around this error on x86_64 with libc 2.22+:
340 ;; libmvec.so.1: error adding symbols: DSO missing from command line
341 (if (string-prefix? "x86_64" (or (%current-target-system) (%current-system)))
342 '(#:configure-flags '("-DCMAKE_EXE_LINKER_FLAGS=-lmvec"))
345 `(("alsa-lib" ,alsa-lib)
347 ("pulseaudio" ,pulseaudio)
348 ("libsndfile" ,libsndfile)
352 ("gettext" ,gnu-gettext)))
357 (home-page "http://csound.github.io/")
358 (synopsis "Sound and music computing system")
360 "Csound is a user-programmable and user-extensible sound processing
361 language and software synthesizer.")
362 (license license:lgpl2.1+)))
364 (define-public clalsadrv
371 "http://kokkinizita.linuxaudio.org"
372 "/linuxaudio/downloads/clalsadrv-"
376 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
377 (build-system gnu-build-system)
379 `(#:tests? #f ; no "check" target
380 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
383 'unpack 'patch-makefile-and-enter-directory
385 (substitute* "libs/Makefile"
386 (("/sbin/ldconfig") "true")
387 (("^LIBDIR =.*") "LIBDIR = lib\n"))
394 (symlink "libclalsadrv.so"
395 (string-append (assoc-ref %outputs "out")
396 "/lib/libclalsadrv.so.2")))
397 ;; no configure script
398 (alist-delete 'configure %standard-phases)))))
400 `(("alsa-lib" ,alsa-lib)
402 (home-page "http://kokkinizita.linuxaudio.org")
403 (synopsis "C++ wrapper around the ALSA API")
405 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
407 (license license:gpl2+)))
409 (define-public amb-plugins
416 "http://kokkinizita.linuxaudio.org"
417 "/linuxaudio/downloads/AMB-plugins-"
421 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
422 (build-system gnu-build-system)
424 `(#:tests? #f ; no "check" target
426 (modify-phases %standard-phases
427 ;; no configure script
429 (add-before 'install 'prepare-target-directory
430 (lambda* (#:key outputs #:allow-other-keys)
431 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
433 (add-after 'unpack 'override-target-directory-and-tool-paths
434 (lambda* (#:key outputs #:allow-other-keys)
435 (substitute* "Makefile"
437 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
438 (("/usr/bin/install") (which "install"))
441 (home-page "http://kokkinizita.linuxaudio.org")
442 (synopsis "LADSPA ambisonics plugins")
444 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
445 used within Ardour. Features include: mono and stereo to B-format panning,
446 horizontal rotator, square, hexagon and cube decoders.")
447 (license license:gpl2+)))
449 (define-public mcp-plugins
456 "http://kokkinizita.linuxaudio.org"
457 "/linuxaudio/downloads/MCP-plugins-"
461 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
462 (build-system gnu-build-system)
464 `(#:tests? #f ; no "check" target
466 (modify-phases %standard-phases
467 ;; no configure script
469 (add-before 'install 'prepare-target-directory
470 (lambda* (#:key outputs #:allow-other-keys)
471 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
473 (add-after 'unpack 'override-target-directory
474 (lambda* (#:key outputs #:allow-other-keys)
475 (substitute* "Makefile"
476 (("/usr") (assoc-ref outputs "out")))
478 (home-page "http://kokkinizita.linuxaudio.org")
479 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
481 "This package provides various LADSPA plugins. @code{cs_chorus} and
482 @code{cs_phaser} provide chorus and phaser effects, respectively;
483 @code{mvclpf24} provides four implementations of the low-pass filter used in
484 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
485 high-pass filter by Robert Moog. The filters attempt to accurately emulate
486 the non-linear circuit elements of their original analog counterparts.")
487 (license license:gpl2+)))
489 (define-public rev-plugins
496 "http://kokkinizita.linuxaudio.org"
497 "/linuxaudio/downloads/REV-plugins-"
501 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
502 (build-system gnu-build-system)
504 `(#:tests? #f ; no "check" target
506 (modify-phases %standard-phases
507 ;; no configure script
509 (add-before 'install 'prepare-target-directory
510 (lambda* (#:key outputs #:allow-other-keys)
511 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
513 (add-after 'unpack 'override-target-directory
514 (lambda* (#:key outputs #:allow-other-keys)
515 (substitute* "Makefile"
516 (("/usr") (assoc-ref outputs "out")))
518 (home-page "http://kokkinizita.linuxaudio.org")
519 (synopsis "LADSPA reverb plugin")
521 "This package provides a stereo reverb LADSPA plugin based on the
522 well-known greverb.")
523 (license license:gpl2+)))
525 (define-public fil-plugins
532 "http://kokkinizita.linuxaudio.org"
533 "/linuxaudio/downloads/FIL-plugins-"
537 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
538 (build-system gnu-build-system)
540 `(#:tests? #f ; no "check" target
542 (modify-phases %standard-phases
543 ;; no configure script
545 (add-before 'install 'prepare-target-directory
546 (lambda* (#:key outputs #:allow-other-keys)
547 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
549 (add-after 'unpack 'override-target-directory
550 (lambda* (#:key outputs #:allow-other-keys)
551 (substitute* "Makefile"
552 (("/usr") (assoc-ref outputs "out")))
554 (home-page "http://kokkinizita.linuxaudio.org")
555 (synopsis "LADSPA four-band parametric equalizer plugin")
557 "This package provides a LADSPA plugin for a four-band parametric
558 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
559 gain controls. There is also a global bypass switch and gain control.
561 The 2nd order resonant filters are implemented using a Mitra-Regalia style
562 lattice filter, which is stable even while parameters are being changed.
564 All switches and controls are internally smoothed, so they can be used 'live'
565 without any clicks or zipper noises. This makes this plugin suitable for use
566 in systems that allow automation of plugin control ports, such as Ardour, or
568 (license license:gpl2+)))
570 (define-public ste-plugins
577 "http://kokkinizita.linuxaudio.org"
578 "/linuxaudio/downloads/STE-plugins-"
582 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
583 (build-system gnu-build-system)
585 `(#:tests? #f ; no "check" target
587 (modify-phases %standard-phases
588 ;; no configure script
590 (add-before 'install 'prepare-target-directory
591 (lambda* (#:key outputs #:allow-other-keys)
592 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
594 (add-after 'unpack 'override-target-directory
595 (lambda* (#:key outputs #:allow-other-keys)
596 (substitute* "Makefile"
597 (("/usr") (assoc-ref outputs "out")))
599 (home-page "http://kokkinizita.linuxaudio.org")
600 (synopsis "LADSPA stereo width plugin")
602 "This package provides a LADSPA plugin to manipulate the stereo width of
604 (license license:gpl2+)))
606 (define-public vco-plugins
613 "http://kokkinizita.linuxaudio.org"
614 "/linuxaudio/downloads/VCO-plugins-"
618 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
619 (build-system gnu-build-system)
621 `(#:tests? #f ; no "check" target
623 (modify-phases %standard-phases
624 ;; no configure script
626 (add-before 'install 'prepare-target-directory
627 (lambda* (#:key outputs #:allow-other-keys)
628 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
630 (add-after 'unpack 'override-target-directory
631 (lambda* (#:key outputs #:allow-other-keys)
632 (substitute* "Makefile"
633 (("/usr") (assoc-ref outputs "out"))
634 (("/bin/cp") (which "cp")))
636 (home-page "http://kokkinizita.linuxaudio.org")
637 (synopsis "LADSPA plugin for synthesizer oscillators")
639 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
642 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
643 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
644 @item Rec-VCO, a square / rectange oscillator
647 All oscillators are low-pass filtered to provide waveforms similar to the
648 output of analog synthesizers such as the Moog Voyager.")
649 (license license:gpl2+)))
651 (define-public wah-plugins
658 "http://kokkinizita.linuxaudio.org"
659 "/linuxaudio/downloads/WAH-plugins-"
663 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
664 (build-system gnu-build-system)
666 `(#:tests? #f ; no "check" target
668 (modify-phases %standard-phases
669 ;; no configure script
671 (add-before 'install 'prepare-target-directory
672 (lambda* (#:key outputs #:allow-other-keys)
673 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
675 (add-after 'unpack 'override-target-directory
676 (lambda* (#:key outputs #:allow-other-keys)
677 (substitute* "Makefile"
678 (("/usr") (assoc-ref outputs "out")))
680 (home-page "http://kokkinizita.linuxaudio.org")
681 (synopsis "LADSPA Autowah effect plugin")
683 "This package provides a LADSPA plugin for a Wah effect with envelope
685 (license license:gpl2+)))
687 (define-public g2reverb
694 "http://kokkinizita.linuxaudio.org"
695 "/linuxaudio/downloads/g2reverb-"
699 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
700 (build-system gnu-build-system)
702 `(#:tests? #f ; no "check" target
704 (modify-phases %standard-phases
705 ;; no configure script
707 (add-before 'install 'prepare-target-directory
708 (lambda* (#:key outputs #:allow-other-keys)
709 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
711 (add-after 'unpack 'override-target-directory
712 (lambda* (#:key outputs #:allow-other-keys)
713 (substitute* "Makefile"
714 (("/usr") (assoc-ref outputs "out")))
716 (home-page "http://kokkinizita.linuxaudio.org")
717 (synopsis "LADSPA stereo reverb plugin")
719 "This package provides a LADSPA plugin for a stereo reverb effect.")
720 (license license:gpl2+)))
722 (define-public fluidsynth
729 "mirror://sourceforge/fluidsynth/fluidsynth-"
730 version "/fluidsynth-" version ".tar.gz"))
733 "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
734 (build-system gnu-build-system)
739 'remove-broken-symlinks
740 (lambda _ (delete-file-recursively "m4") #t)
743 `(("libsndfile" ,libsndfile)
744 ("alsa-lib" ,alsa-lib)
748 ("readline" ,readline)
751 `(("pkg-config" ,pkg-config)))
752 (home-page "http://www.fluidsynth.org/")
753 (synopsis "SoundFont synthesizer")
755 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
756 specifications. FluidSynth reads and handles MIDI events from the MIDI input
757 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
758 also play midifiles using a Soundfont.")
759 (license license:gpl2+)))
768 "mirror://sourceforge/faac/faad2-" version ".zip"))
771 "16f3l16c00sg0wkrkm3vzv0gy3g97x309vw788igs0cap2x1ak3z"))))
772 (build-system gnu-build-system)
774 `(("autoconf" ,autoconf)
775 ("automake" ,automake)
783 (substitute* "bootstrap" (("\r\n") "\n"))
784 (zero? (system* "sh" "bootstrap")))
786 (home-page "http://www.audiocoding.com/faad2.html")
787 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
789 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
791 (license license:gpl2)))
800 "mirror://sourceforge/faudiostream/faust-" version ".zip"))
803 "068vl9536zn0j4pknwfcchzi90rx5pk64wbcbd67z32w0csx8xm1"))
805 ;; Remove prebuilt library
806 '(delete-file "architecture/android/libs/armeabi-v7a/libfaust_dsp.so"))))
807 (build-system gnu-build-system)
809 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
812 (modify-phases %standard-phases
813 ;; no "configure" script
814 (delete 'configure))))
817 (home-page "http://faust.grame.fr/")
818 (synopsis "Signal processing language")
820 "Faust is a programming language for realtime audio signal processing.")
821 (license license:gpl2+)))
823 (define-public freepats
829 (uri (string-append "http://freepats.zenvoid.org/freepats-"
833 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
834 (build-system trivial-build-system)
836 `(#:modules ((guix build utils))
838 (use-modules (guix build utils))
839 (let ((out (string-append %output "/share/freepats")))
840 (setenv "PATH" (string-append
841 (assoc-ref %build-inputs "bzip2") "/bin:"
842 (assoc-ref %build-inputs "tar") "/bin"))
843 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
845 ;; Use absolute pattern references
846 (substitute* "freepats.cfg"
847 (("Tone_000") (string-append out "/Tone_000"))
848 (("Drum_000") (string-append out "/Drum_000")))
850 (copy-recursively "." out)))))
854 (home-page "http://freepats.zenvoid.org")
855 (synopsis "GUS compatible patches for MIDI players")
857 "FreePats is a project to create a free and open set of GUS compatible
858 patches that can be used with softsynths such as Timidity and WildMidi.")
859 ;; GPLv2+ with exception for compositions using these patches.
860 (license license:gpl2+)))
862 (define-public guitarix
869 "mirror://sourceforge/guitarix/guitarix2-"
873 "0pamaq8iybsaglq6y1m1rlmz4wgbs2r6m24bj7x4fwg4grjvzjl8"))))
874 (build-system waf-build-system)
876 `(#:tests? #f ; no "check" target
880 ;; Add the output lib directory to the RUNPATH.
881 (string-append "--ldflags=-Wl,-rpath=" %output "/lib")
882 "--cxxflags=-std=c++11")))
884 `(("libsndfile" ,libsndfile)
894 ("webkitgtk/gtk+-2" ,webkitgtk/gtk+-2)
897 ("zita-resampler" ,zita-resampler)
898 ("zita-convolver" ,zita-convolver)))
902 ("intltool" ,intltool)
903 ("gettext" ,gnu-gettext)
904 ("pkg-config" ,pkg-config)))
906 (list (search-path-specification
907 (variable "LV2_PATH")
908 (files '("lib/lv2")))))
909 (home-page "http://guitarix.org/")
910 (synopsis "Virtual guitar amplifier")
911 (description "Guitarix is a virtual guitar amplifier running JACK.
912 Guitarix takes the signal from your guitar as a mono-signal from your sound
913 card. The input is processed by a main amp and a rack-section. Both can be
914 routed separately and deliver a processed stereo-signal via JACK. You may
915 fill the rack with effects from more than 25 built-in modules including stuff
916 from a simple noise gate to modulation effects like flanger, phaser or
918 (license license:gpl2+)))
920 (define-public rakarrack
926 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
927 "rakarrack-" version "/rakarrack-"
931 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
932 (modules '((guix build utils)))
935 (substitute* '("src/process.C"
937 (("#include <Fl/") "#include <FL/"))
939 (build-system gnu-build-system)
941 `(("alsa-utils" ,alsa-utils)
945 ("libxfixes" ,libxfixes)
947 ("libxrender" ,libxrender)
949 ("fontconfig" ,fontconfig)
950 ("freetype" ,freetype)
952 ("alsa-lib" ,alsa-lib)
953 ("libsndfile" ,libsndfile)
954 ("libsamplerate" ,libsamplerate)
956 (home-page "http://rakarrack.sourceforge.net/")
957 (synopsis "Audio effects processor")
959 "Rakarrack is a richly featured multi-effects processor emulating a
960 guitar effects pedalboard. Effects include compressor, expander, noise gate,
961 equalizers, exciter, flangers, chorus, various delay and reverb effects,
962 distortion modules and many more. Most of the effects engine is built from
963 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
964 user interface are optimized for guitar, but Rakarrack processes signals in
965 stereo while it does not apply internal band-limiting filtering, and thus is
966 well suited to all musical instruments and vocals.")
967 ;; The code is explicitly licensed under the GPL version 2 only.
968 (license license:gpl2)))
977 "http://factorial.hu/system/files/ir.lv2-"
981 "1jh2z01l9m4ar7yz0n911df07dygc7n4cl59p7qdjbh0nvkm747g"))))
982 (build-system gnu-build-system)
984 `(#:tests? #f ;no "check" target
985 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
987 ;; no configure script
988 (alist-delete 'configure %standard-phases)))
990 `(("libsndfile" ,libsndfile)
991 ("libsamplerate" ,libsamplerate)
995 ("zita-convolver" ,zita-convolver)))
997 `(("pkg-config" ,pkg-config)))
999 (list (search-path-specification
1000 (variable "LV2_PATH")
1001 (files '("lib/lv2")))))
1002 (home-page "http://factorial.hu/plugins/lv2/ir")
1003 (synopsis "LV2 convolution reverb")
1005 "IR is a low-latency, real-time, high performance signal convolver
1006 especially for creating reverb effects. It supports impulse responses with 1,
1007 2 or 4 channels, in any soundfile format supported by libsndfile.")
1008 (license license:gpl2+)))
1010 (define-public jack-1
1017 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1022 "1mk1wnx33anp6haxfjjkfhwbaknfblsvj35nxvz0hvspcmhdyhpb"))))
1023 (build-system gnu-build-system)
1025 `(("alsa-lib" ,alsa-lib)
1026 ("readline" ,readline)))
1027 ;; uuid.h is included in the JACK type headers
1028 ;; db.h is included in the libjack metadata headers
1030 `(("libuuid" ,util-linux)
1033 `(("pkg-config" ,pkg-config)))
1034 (home-page "http://jackaudio.org/")
1035 (synopsis "JACK audio connection kit")
1037 "JACK is a low-latency audio server. It can connect a number of
1038 different applications to an audio device, as well as allowing them to share
1039 audio between themselves. JACK is different from other audio server efforts
1040 in that it has been designed from the ground up to be suitable for
1041 professional audio work. This means that it focuses on two key areas:
1042 synchronous execution of all clients, and low latency operation.")
1043 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1044 ;; licensed under the LGPL in order to allow for proprietary usage.
1045 (license (list license:gpl2+ license:lgpl2.1+))))
1047 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1048 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
1049 ;; program for users who might benefit from the D-BUS features.
1050 (define-public jack-2
1051 (package (inherit jack-1)
1057 "https://github.com/jackaudio/jack2/archive/v"
1060 (file-name (string-append name "-" version ".tar.gz"))
1063 "03b0iiyk3ng3vh5s8gaqwn565vik7910p56mlbk512bw3dhbdwc8"))))
1064 (build-system waf-build-system)
1066 `(#:python ,python-2
1067 #:tests? #f ; no check target
1068 #:configure-flags '("--dbus"
1071 (modify-phases %standard-phases
1073 'configure 'set-linkflags
1075 ;; Add $libdir to the RUNPATH of all the binaries.
1076 (substitute* "wscript"
1077 ((".*CFLAGS.*-Wall.*" m)
1079 " conf.env.append_unique('LINKFLAGS',"
1080 "'-Wl,-rpath=" %output "/lib')\n")))))
1081 (add-after 'install 'wrap-python-scripts
1082 (lambda* (#:key inputs outputs #:allow-other-keys)
1083 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1084 (let* ((out (assoc-ref outputs "out"))
1085 (path (getenv "PYTHONPATH")))
1086 (wrap-program (string-append out "/bin/jack_control")
1087 `("PYTHONPATH" ":" prefix (,path))))
1090 `(("alsa-lib" ,alsa-lib)
1093 ("libsamplerate" ,libsamplerate)
1095 ("python2-dbus" ,python2-dbus)
1096 ("readline" ,readline)))
1098 `(("pkg-config" ,pkg-config)))
1099 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1100 (license (list license:gpl2+ license:lgpl2.1+))))
1108 (uri (string-append "http://download.drobilla.net/jalv-"
1109 version ".tar.bz2"))
1112 "1f1hcq74n3ziw8bk97mn5a1vgw028dxikv3fchaxd430pbbhqgl9"))))
1113 (build-system waf-build-system)
1115 `(#:tests? #f ; no check target
1117 (modify-phases %standard-phases
1119 'configure 'set-flags
1121 ;; Compile with C++11, required by gtkmm.
1122 (setenv "CXXFLAGS" "-std=c++11")
1132 `(("pkg-config" ,pkg-config)))
1133 (home-page "http://drobilla.net/software/jalv/")
1134 (synopsis "Simple LV2 host for JACK")
1136 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1137 plugins and exposes their ports as JACK ports, essentially making any LV2
1138 plugin function as a JACK application.")
1139 (license license:isc)))
1141 (define-public ladspa
1148 ;; Since the official link is dead,
1149 ;; we download the tarball from Debian or Internet Archive.
1150 (uri (list (string-append "http://http.debian.net"
1151 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1152 version ".orig.tar.gz")
1153 (string-append "https://web.archive.org/web/20140717172251/"
1154 "http://www.ladspa.org/download/ladspa_sdk_"
1158 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
1159 (build-system gnu-build-system)
1161 `(#:tests? #f ; the "test" target is a listening test only
1165 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1167 (let ((out (assoc-ref outputs "out")))
1168 (substitute* "makefile"
1169 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1170 (("/usr/include/") (string-append out "/include/"))
1171 (("/usr/bin/") (string-append out "/bin/"))
1172 (("-mkdirhier") "mkdir -p")
1173 (("^CC.*") "CC = gcc\n")
1174 (("^CPP.*") "CPP = g++\n"))))
1175 (alist-delete 'build %standard-phases))))
1176 ;; Since the home page is gone, we provide a link to the archived version.
1178 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
1179 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1181 "LADSPA is a standard that allows software audio processors and effects
1182 to be plugged into a wide range of audio synthesis and recording packages.")
1183 (license license:lgpl2.1+)))
1188 (version "0.6.0-rc2")
1191 ;; The tilde is not permitted in the builder name, but is used
1194 "mirror://savannah/lash/lash-"
1195 (string-join (string-split version #\-) "~")
1197 (file-name (string-append name "-" version ".tar.bz2"))
1200 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1201 (build-system gnu-build-system)
1206 ("readline" ,readline)
1207 ("python" ,python-2)))
1208 ;; According to pkg-config, packages depending on lash also need to have
1209 ;; at least the following packages declared as inputs.
1211 `(("alsa-lib" ,alsa-lib)
1213 ("libxml2" ,libxml2)))
1215 `(("pkg-config" ,pkg-config)))
1216 (home-page "http://www.nongnu.org/lash/")
1217 (synopsis "Audio application session manager")
1219 "LASH is a session management system for audio applications. It allows
1220 you to save and restore audio sessions consisting of multiple interconneced
1221 applications, restoring program state (i.e. loaded patches) and the
1222 connections between them.")
1223 (license license:gpl2+)))
1225 (define-public libbs2b
1232 "mirror://sourceforge/bs2b/libbs2b-" version ".tar.lzma"))
1235 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1236 (build-system gnu-build-system)
1237 (native-inputs `(("pkg-config" ,pkg-config)))
1238 (inputs `(("libsndfile" ,libsndfile)))
1239 (home-page "http://sourceforge.net/projects/bs2b/")
1240 (synopsis "Bauer stereophonic-to-binaural DSP")
1242 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1243 designed to improve headphone listening of stereo audio records. Recommended
1244 for headphone prolonged listening to disable superstereo fatigue without
1245 essential distortions.")
1246 (license license:expat)))
1248 (define-public liblo
1255 "mirror://sourceforge/liblo/liblo-"
1260 "02drgnpirvl2ihvzgsmn02agr5sj3vipzzw9vma56qlkgfvak56s"))))
1261 (build-system gnu-build-system)
1263 `(;; liblo test FAILED
1264 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1266 (home-page "http://liblo.sourceforge.net")
1267 (synopsis "Implementation of the Open Sound Control protocol")
1269 "liblo is a lightweight library that provides an easy to use
1270 implementation of the Open Sound Control (OSC) protocol.")
1271 (license license:lgpl2.1+)))
1273 (define-public python-pyliblo
1275 (name "python-pyliblo")
1279 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1283 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1284 (build-system python-build-system)
1285 (arguments `(#:tests? #f)) ;no tests
1287 `(("python-cython" ,python-cython)
1289 (home-page "http://das.nasophon.de/pyliblo/")
1290 (synopsis "Python bindings for liblo")
1292 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1293 library. It supports almost the complete functionality of liblo, allowing you
1294 to send and receive OSC messages using a nice and simple Python API. Also
1295 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1296 (license license:lgpl2.1+)))
1298 (define-public python2-pyliblo
1299 (package-with-python2 python-pyliblo))
1307 (uri (string-append "http://download.drobilla.net/lilv-"
1312 "0aj2plkx56iar8vzjbq2l7hi7sp0ml99m0h44rgwai2x4vqkk2j2"))))
1313 (build-system waf-build-system)
1315 `(#:tests? #f ; no check target
1317 (modify-phases %standard-phases
1319 'configure 'set-ldflags
1320 (lambda* (#:key outputs #:allow-other-keys)
1322 (string-append "-Wl,-rpath="
1323 (assoc-ref outputs "out") "/lib")))))))
1324 ;; required by lilv-0.pc
1328 ("sratom" ,sratom)))
1332 `(("pkg-config" ,pkg-config)))
1333 (home-page "http://drobilla.net/software/lilv/")
1334 (synopsis "Library to simplify use of LV2 plugins in applications")
1336 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1337 for applications. Lilv is the successor to SLV2, rewritten to be
1338 significantly faster and have minimal dependencies.")
1339 (license license:isc)))
1347 (uri (string-append "http://lv2plug.in/spec/lv2-"
1352 "1saq0vwqy5zjdkgc5ahs8kcabxfmff2mmg68fiqrkv8hiw9m6jks"))))
1353 (build-system waf-build-system)
1355 `(#:tests? #f ; no check target
1356 #:configure-flags '("--no-plugins")))
1358 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1359 `(("libsndfile" ,libsndfile)))
1361 `(("pkg-config" ,pkg-config)))
1362 (home-page "http://lv2plug.in/")
1363 (synopsis "LV2 audio plugin specification")
1365 "LV2 is an open specification for audio plugins and host applications.
1366 At its core, LV2 is a simple stable interface, accompanied by extensions which
1367 add functionality to support the needs of increasingly powerful audio
1369 (license license:isc)))
1371 (define-public lv2-mda-piano
1373 (name "lv2-mda-piano")
1378 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
1382 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1383 (build-system gnu-build-system)
1385 `(#:make-flags (list
1387 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1388 #:tests? #f ; no check target
1389 #:phases (alist-delete 'configure %standard-phases)))
1394 `(("pkg-config" ,pkg-config)))
1395 (native-search-paths
1396 (list (search-path-specification
1397 (variable "LV2_PATH")
1398 (files '("lib/lv2")))))
1399 (home-page "http://elephly.net/lv2/mdapiano.html")
1400 (synopsis "LV2 port of the mda Piano plugin")
1401 (description "An LV2 port of the mda Piano VSTi.")
1402 (license license:gpl3+)))
1404 (define-public lv2-mda-epiano
1405 (package (inherit lv2-mda-piano)
1406 (name "lv2-mda-epiano")
1408 `(#:make-flags (list
1410 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1411 #:tests? #f ; no check target
1412 #:phases (alist-delete 'configure %standard-phases)))
1413 (home-page "http://elephly.net/lv2/mdaepiano.html")
1414 (synopsis "LV2 port of the mda EPiano plugin")
1415 (description "An LV2 port of the mda EPiano VSTi.")))
1423 (uri (string-append "https://github.com/lvtk/lvtk/archive/"
1426 (file-name (string-append name "-" version ".tar.gz"))
1429 "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd"))))
1430 (build-system waf-build-system)
1432 `(#:tests? #f ; no check target
1435 (list (string-append "--boost-includes="
1436 (assoc-ref %build-inputs "boost")
1438 #:phases (modify-phases %standard-phases
1440 'configure 'set-flags
1441 (lambda* (#:key inputs #:allow-other-keys)
1442 ;; See e.g. https://github.com/lvtk/lvtk/issues/21
1445 "-L" (assoc-ref inputs "boost") "/lib "
1446 "-lboost_system")))))))
1451 `(("pkg-config" ,pkg-config)))
1452 (home-page "https://github.com/lvtk/lvtk")
1453 (synopsis "C++ libraries for LV2 plugins")
1455 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
1456 extensions into easy to use C++ classes. It is the successor of
1458 (license license:gpl3+)))
1460 (define-public openal
1467 "http://kcat.strangesoft.net/openal-releases/openal-soft-"
1468 version ".tar.bz2"))
1471 "0mmhdqiyb3c9dzvxspm8h2v8jibhi8pfjxnf6m0wn744y1ia2a8f"))))
1472 (build-system cmake-build-system)
1474 `(#:tests? #f ; no check target
1476 (modify-phases %standard-phases
1478 'unpack 'use-full-library-paths
1479 (lambda* (#:key inputs #:allow-other-keys)
1480 (substitute* "Alc/backends/pulseaudio.c"
1481 (("#define PALIB \"libpulse\\.so\\.0\"")
1482 (string-append "#define PALIB \""
1483 (assoc-ref inputs "pulseaudio")
1484 "/lib/libpulse.so.0"
1486 (substitute* "Alc/backends/alsa.c"
1487 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
1488 (string-append "LoadLib(\""
1489 (assoc-ref inputs "alsa-lib")
1490 "/lib/libasound.so.2"
1494 `(("alsa-lib" ,alsa-lib)
1495 ("pulseaudio" ,pulseaudio)))
1496 (synopsis "3D audio API")
1498 "OpenAL provides capabilities for playing audio in a virtual 3D
1499 environment. Distance attenuation, doppler shift, and directional sound
1500 emitters are among the features handled by the API. More advanced effects,
1501 including air absorption, occlusion, and environmental reverb, are available
1502 through the EFX extension. It also facilitates streaming audio, multi-channel
1503 buffers, and audio capture.")
1504 (home-page "http://kcat.strangesoft.net/openal.html")
1505 (license license:lgpl2.0+)))
1507 (define-public patchage
1513 (uri (string-append "http://download.drobilla.net/patchage-"
1518 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
1519 (build-system waf-build-system)
1520 (arguments `(#:tests? #f)) ; no check target
1522 `(("alsa-lib" ,alsa-lib)
1528 ("dbus-glib" ,dbus-glib)))
1530 `(("pkg-config" ,pkg-config)))
1531 (home-page "http://drobilla.net/software/patchage/")
1532 (synopsis "Modular patch bay for audio and MIDI systems")
1534 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
1536 (license license:gpl3+)))
1544 (uri (string-append "http://download.drobilla.net/raul-"
1545 version ".tar.bz2"))
1548 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
1549 (build-system waf-build-system)
1551 `(#:python ,python-2
1552 #:tests? #f)) ; no check target
1557 `(("pkg-config" ,pkg-config)))
1558 (home-page "http://drobilla.net/software/raul/")
1559 (synopsis "Real-time audio utility library")
1561 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
1562 aimed at audio/musical applications.")
1563 (license license:gpl2+)))
1565 (define-public rubberband
1572 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
1577 "05amrbrxx0da3w7m237q51799r8xgs4ffqabi2qv06hq8dpcj386"))))
1578 (build-system gnu-build-system)
1579 (arguments `(#:tests? #f)) ; no check target
1581 `(("ladspa" ,ladspa)
1582 ("libsamplerate" ,libsamplerate)
1585 `(("pkg-config" ,pkg-config)))
1586 (home-page "http://breakfastquay.com/rubberband/")
1587 (synopsis "Audio time-stretching and pitch-shifting library")
1589 "Rubber Band is a library and utility program that permits changing the
1590 tempo and pitch of an audio recording independently of one another.")
1591 (license license:gpl2+)))
1593 (define-public rtmidi
1600 (string-append "https://github.com/powertab/rtmidi/archive/"
1602 (file-name (string-append name "-" version ".tar.gz"))
1605 "0d49lapnmdgmjxh4vw57h6xk74nn5r0zwysv7jbd7m8kqhpq5rjj"))))
1606 (build-system gnu-build-system)
1608 `(#:tests? #f ;no "check" target
1609 #:phases (modify-phases %standard-phases
1611 'configure 'autoconf
1612 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
1614 'build 'fix-makefile
1616 (substitute* "Makefile"
1618 (("RtMidi.h RtError.h") "RtMidi.h"))
1621 'install 'make-target-dirs
1623 (let ((out (assoc-ref %outputs "out")))
1624 (mkdir-p (string-append out "/bin"))
1625 (mkdir (string-append out "/lib"))
1626 (mkdir (string-append out "/include")))
1630 ("alsa-lib" ,alsa-lib)))
1632 `(("autoconf" ,autoconf)
1633 ("automake" ,automake)
1634 ("libtool" ,libtool)
1635 ("pkg-config" ,pkg-config)))
1636 (home-page "https://github.com/powertab/rtmidi")
1637 (synopsis "Cross-platform MIDI library for C++")
1639 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
1640 classes) that provide a common cross-platform API for realtime MIDI
1642 (license license:expat)))
1644 (define-public sratom
1650 (uri (string-append "http://download.drobilla.net/sratom-"
1655 "080jjiyxjnj7hf25844hd9rb01grvzz1rk8mxcdnakywmspbxfd4"))))
1656 (build-system waf-build-system)
1657 (arguments `(#:tests? #f)) ; no check target
1663 `(("pkg-config" ,pkg-config)))
1664 (home-page "http://drobilla.net/software/sratom/")
1665 (synopsis "Library for serialising LV2 atoms to/from RDF")
1667 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
1668 the Turtle syntax.")
1669 (license license:isc)))
1677 (uri (string-append "http://download.drobilla.net/suil-"
1682 "1s3adyiw7sa5gfvm5wasa61qa23629kprxyv6w8hbxdiwp0hhxkq"))))
1683 (build-system waf-build-system)
1684 (arguments `(#:tests? #f)) ; no check target
1690 `(("pkg-config" ,pkg-config)))
1691 (home-page "http://drobilla.net/software/suil/")
1692 (synopsis "Library for loading and wrapping LV2 plugin UIs")
1694 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
1696 Suil makes it possible to load a UI of a toolkit in a host using another
1697 toolkit. The API is designed such that hosts do not need to explicitly
1698 support specific toolkits – if Suil supports a particular toolkit, then UIs in
1699 that toolkit will work in all hosts that use Suil automatically.
1701 Suil currently supports every combination of Gtk 2, Qt 4, and X11.")
1702 (license license:isc)))
1704 (define-public timidity++
1711 "mirror://sourceforge/timidity/TiMidity++-"
1712 version ".tar.bz2"))
1715 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
1716 (build-system gnu-build-system)
1719 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
1723 (string-append "--with-default-path="
1724 (assoc-ref %outputs "out") "/etc/timidity"))
1727 'install 'install-config
1729 (let ((out (string-append (assoc-ref %outputs "out")
1732 (call-with-output-file
1733 (string-append out "/timidity.cfg")
1735 (format port (string-append "source "
1736 (assoc-ref %build-inputs "freepats")
1737 "/share/freepats/freepats.cfg"))))))
1740 `(("alsa-lib" ,alsa-lib)
1746 ("ncurses" ,ncurses)
1747 ("freepats" ,freepats)))
1749 `(("pkg-config" ,pkg-config)))
1750 (home-page "http://timidity.sourceforge.net/")
1751 (synopsis "Software synthesizer for playing MIDI files")
1753 "TiMidity++ is a software synthesizer. It can play MIDI files by
1754 converting them into PCM waveform data; give it a MIDI data along with digital
1755 instrument data files, then it synthesizes them in real-time, and plays. It
1756 can not only play sounds, but also can save the generated waveforms into hard
1757 disks as various audio file formats.")
1758 (license license:gpl2+)))
1767 "https://code.soundsoftware.ac.uk"
1768 "/attachments/download/1520/vamp-plugin-sdk-"
1772 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
1773 (build-system gnu-build-system)
1775 `(#:tests? #f ; no check target
1778 'install 'remove-libvamp-hostsdk.la
1779 (lambda* (#:key outputs #:allow-other-keys)
1780 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
1781 (for-each delete-file
1782 (let ((out (assoc-ref outputs "out")))
1783 (list (string-append out "/lib/libvamp-sdk.la")
1784 (string-append out "/lib/libvamp-hostsdk.la"))))
1788 `(("libsndfile" ,libsndfile)))
1790 `(("pkg-config" ,pkg-config)))
1791 (home-page "http://vamp-plugins.org")
1792 (synopsis "Modular and extensible audio processing system")
1794 "Vamp is an audio processing plugin system for plugins that extract
1795 descriptive information from audio data — typically referred to as audio
1796 analysis plugins or audio feature extraction plugins.")
1799 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
1801 (define-public libsbsms
1808 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
1809 "/libsbsms-" version ".tar.gz"))
1811 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
1812 (build-system gnu-build-system)
1813 (native-inputs `(("automake" ,automake)))
1816 ;; Disable the use of SSE unless on x86_64.
1817 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
1818 (%current-system))))
1822 (modify-phases %standard-phases
1824 'unpack 'fix-ar-lib-path
1825 (lambda* (#:key inputs #:allow-other-keys)
1826 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
1827 (delete-file "ar-lib")
1829 (string-append (assoc-ref inputs "automake") "/share/automake-"
1830 ,(package-version automake) "/ar-lib")
1832 (home-page "http://sbsms.sourceforge.net/")
1833 (synopsis "Library for time stretching and pitch scaling of audio")
1835 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
1836 stretching and pitch scaling of audio. This package contains the library.")
1837 ;; There is no explicit declaration of a license, but a COPYING file
1839 (license license:gpl2)))
1841 (define-public wavpack
1847 (uri (string-append "http://www.wavpack.com/"
1848 name "-" version ".tar.bz2"))
1851 "191h8hv8qk72hfh1crg429i9yq3cminwqb249sy9zadbn1wy7b9c"))))
1852 (build-system gnu-build-system)
1855 ;; wavpack.pc.in lacks path substitution for 'exec_prefix'.
1856 (list (string-append "--libdir=" %output "/lib"))))
1857 (home-page "http://www.wavpack.com/")
1858 (synopsis "Hybrid lossless audio codec")
1860 "WavPack is an audio compression format with lossless, lossy and hybrid
1861 compression modes. This package contains command-line programs and library to
1862 encode and decode wavpack files.")
1863 (license license:bsd-3)))
1865 (define-public libmodplug
1872 "mirror://sourceforge/project/modplug-xmms/"
1873 name "/" version "/" name "-" version ".tar.gz"))
1876 "1bfsladg7h6vnii47dd66f5vh1ir7qv12mfb8n36qiwrxq92sikp"))))
1877 (build-system gnu-build-system)
1878 (home-page "http://modplug-xmms.sourceforge.net/")
1879 (synopsis "Mod file playing library")
1881 "Libmodplug renders mod music files as raw audio data, for playing or
1882 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
1883 supported. Optional features include high-quality resampling, bass expansion,
1884 surround and reverb.")
1885 (license license:public-domain)))
1887 (define-public libxmp
1893 (uri (string-append "mirror://sourceforge/xmp/libxmp/"
1894 name "-" version ".tar.gz"))
1897 "1gm5xa0ca7ypcbj3bkmj3k1vvzl7nkch8gjyrm8p1a9vgzr0n761"))))
1898 (build-system gnu-build-system)
1899 (home-page "http://xmp.sourceforge.net/")
1900 (synopsis "Module player library")
1902 "Libxmp is a library that renders module files to PCM data. It supports
1903 over 90 mainstream and obscure module formats including Protracker (MOD),
1904 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
1905 (license license:lgpl2.1+)))
1913 (uri (string-append "mirror://sourceforge/xmp/xmp/"
1914 name "-" version ".tar.gz"))
1917 "0gjylvvmq7ha0nhcjg56qfp0xxpsrcsj7y5r914svd5x1ppmzm5n"))))
1918 (build-system gnu-build-system)
1920 `(("pkg-config" ,pkg-config)))
1922 `(("libxmp" ,libxmp)
1923 ("pulseaudio" ,pulseaudio)))
1924 (home-page "http://xmp.sourceforge.net/")
1925 (synopsis "Extended module player")
1927 "Xmp is a portable module player that plays over 90 mainstream and
1928 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
1929 Tracker 3 S3M and Impulse Tracker IT files.")
1930 (license license:gpl2+)))
1932 (define-public soundtouch
1941 "http://www.surina.net/soundtouch/soundtouch-" version ".tar.gz"))
1943 (base32 "0sqn3wk4qz20vf0vz853l6dl1gnj1yhqxfwxqsc5lp529kbn2h9x"))))
1944 (build-system gnu-build-system)
1946 `(("autoconf" ,autoconf)
1947 ("automake" ,automake)
1948 ("libtool" ,libtool)
1955 (zero? (system* "sh" "bootstrap")))
1957 (home-page "http://www.surina.net/soundtouch/")
1959 "Audio processing library for changing tempo, pitch and playback rate")
1961 "SoundTouch is an audio processing library for changing the tempo, pitch
1962 and playback rates of audio streams or audio files. It is intended for
1963 application developers writing sound processing tools that require tempo/pitch
1964 control functionality, or just for playing around with the sound effects.")
1965 (license license:lgpl2.1+)))
1973 (uri (string-append "mirror://sourceforge/sox/sox-"
1974 version ".tar.bz2"))
1977 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
1978 (build-system gnu-build-system)
1981 ;; The upstream asks to identify the distribution to diagnose SoX
1983 '("--with-distro=Guix System Distribution")))
1985 `(("pkg-config" ,pkg-config)))
1987 `(("alsa-lib" ,alsa-lib)
1991 ("libid3tag" ,libid3tag)
1992 ("libltdl" ,libltdl)
1995 ("libvorbis" ,libvorbis)
1996 ("pulseaudio" ,pulseaudio)))
1997 (home-page "http://sox.sourceforge.net")
1998 (synopsis "Sound processing utility")
2000 "SoX (Sound eXchange) is a command line utility that can convert
2001 various formats of computer audio files to other formats. It can also
2002 apply various effects to these sound files, and, as an added bonus, SoX
2003 can play and record audio files.")
2004 ;; sox.c is distributed under GPL, while the files that make up
2005 ;; libsox are licensed under LGPL.
2006 (license (list license:gpl2+ license:lgpl2.1+))))
2016 (string-append "mirror://sourceforge/soxr/soxr-" version
2019 (base32 "1hmadwqfpg15vhwq9pa1sl5xslibrjpk6hpq2s9hfmx1s5l6ihfw"))))
2020 (build-system cmake-build-system)
2021 (arguments '(#:tests? #f)) ;no 'check' target
2022 (home-page "http://sourceforge.net/p/soxr/wiki/Home/")
2023 (synopsis "One-dimensional sample-rate conversion library")
2025 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2026 conversion. It may be used, for example, to resample PCM-encoded audio.")
2027 (license license:lgpl2.1+)))
2029 (define-public twolame
2037 "mirror://sourceforge/twolame/twolame-" version ".tar.gz"))
2039 (base32 "0ahiqqng5pidwhj1wzph4vxxgxxgcfa3gl0gywipzx2ii7s35wwq"))))
2040 (build-system gnu-build-system)
2042 `(("libsndfile" ,libsndfile)))
2045 ("which" ,which))) ;used in tests/test.pl
2046 (home-page "http://www.twolame.org/")
2047 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2049 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2050 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2052 (license license:lgpl2.1+)))
2054 (define-public portaudio
2057 (version "19.20140130")
2062 "http://www.portaudio.com/archives/pa_stable_v"
2063 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2066 (base32 "0mwddk4qzybaf85wqfhxqlf0c5im9il8z03rd4n127k8y2jj9q4g"))
2067 (patches (search-patches "portaudio-audacity-compat.patch"))))
2068 (build-system gnu-build-system)
2070 ;; TODO: Add ASIHPI.
2071 `(("alsa-lib" ,alsa-lib)
2074 `(("autoconf" ,autoconf)
2075 ("automake" ,automake)
2076 ("libtool" ,libtool)
2077 ("pkg-config" ,pkg-config)))
2080 ;; Autoreconf is necessary because the audacity-compat patch modifies
2085 (zero? (system* "autoreconf" "-vif")))
2087 #:tests? #f)) ;no 'check' target
2088 (home-page "http://www.portaudio.com/")
2089 (synopsis "Audio I/O library")
2091 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2092 to record and/or play sound using a callback function or a blocking read/write
2094 (license license:expat)))
2096 (define-public qsynth
2104 "mirror://sourceforge/qsynth/qsynth-" version ".tar.gz"))
2106 (base32 "034p6mbwrjnxd9b6h20cidxi4ilkk3cgpjp154j0jzjs1ipf7x2h"))))
2107 (build-system gnu-build-system)
2109 `(#:tests? #f)) ; no "check" phase
2112 ("fluidsynth" ,fluidsynth)))
2113 (home-page "http://qsynth.sourceforge.net")
2114 (synopsis "Graphical user interface for FluidSynth")
2116 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2117 synthesizer written in C++.")
2118 (license license:gpl2+)))
2120 (define-public rsound
2127 (uri (string-append "https://github.com/Themaister/RSound/archive/v"
2129 (file-name (string-append name "-" version))
2131 (base32 "1wzs40c0k5zpkmm5ffl6c17xmr399sxli7ys0fbb9ib0fd334knx"))))
2132 (build-system gnu-build-system)
2134 `(("alsa-lib" ,alsa-lib)
2137 ("libsamplerate" ,libsamplerate)
2139 ("portaudio" ,portaudio)
2140 ("pulseaudio" ,pulseaudio)))
2145 (lambda* (#:key outputs #:allow-other-keys)
2148 (system* "./configure"
2149 (string-append "--prefix=" (assoc-ref outputs "out")))))
2151 ;; No 'check' target.
2153 (home-page "http://themaister.net/rsound.html")
2154 (synopsis "Networked audio system")
2156 "RSound allows you to send audio from an application and transfer it
2157 directly to a different computer on your LAN network. It is an audio daemon
2158 with a much different focus than most other audio daemons.")
2159 (license license:gpl3+)))
2161 (define-public xjackfreak
2168 "https://github.com/johnhldavis/xjackfreak/archive/v"
2170 (file-name (string-append name "-" version ".tar.gz"))
2173 "0xj6gpxfnw9jbdgwgm0x23xgfvj2kwmwb1nk0drw8lxgcchkq7d9"))))
2174 (build-system gnu-build-system)
2177 (list (string-append "docdir=" (assoc-ref %outputs "out")
2178 "/share/doc/xjackfreak"))))
2183 ("libxext" ,libxext)))
2185 `(("pkg-config" ,pkg-config)))
2186 (home-page "https://github.com/johnhldavis/xjackfreak")
2187 (synopsis "JACK audio frequency analyzer and display")
2189 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
2190 Connection Kit. It can display the FFT of any input, modify it and output the
2192 (license license:gpl3+)))
2194 (define-public zita-convolver
2196 (name "zita-convolver")
2201 "http://kokkinizita.linuxaudio.org"
2202 "/linuxaudio/downloads/zita-convolver-"
2203 version ".tar.bz2"))
2205 ;; Don't optimize for a specific processor architecture.
2206 '(substitute* "libs/Makefile"
2207 (("^CXXFLAGS \\+= -march=native") "")))
2208 (modules '((guix build utils)))
2211 "14qrnczhp5mbwhky64il7kxc4hl1mmh495v60va7i2qnhasr6zmz"))))
2212 (build-system gnu-build-system)
2214 `(#:tests? #f ; no "check" target
2215 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2218 'unpack 'patch-makefile-and-enter-directory
2220 (substitute* "libs/Makefile"
2221 (("ldconfig") "true")
2222 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2228 (symlink "libzita-convolver.so"
2229 (string-append (assoc-ref %outputs "out")
2230 "/lib/libzita-convolver.so.3")))
2231 ;; no configure script
2232 (alist-delete 'configure %standard-phases)))))
2233 (inputs `(("fftwf" ,fftwf)))
2234 (home-page "http://kokkinizita.linuxaudio.org")
2235 (synopsis "Fast, partitioned convolution engine library")
2237 "Zita convolver is a C++ library providing a real-time convolution
2239 (license license:gpl3+)))
2241 (define-public zita-resampler
2243 (name "zita-resampler")
2248 "http://kokkinizita.linuxaudio.org"
2249 "/linuxaudio/downloads/zita-resampler-"
2250 version ".tar.bz2"))
2252 ;; Don't optimize for a specific processor architecture.
2253 '(substitute* '("apps/Makefile" "libs/Makefile")
2254 (("^CXXFLAGS \\+= -march=native") "")))
2255 (modules '((guix build utils)))
2258 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
2259 (build-system gnu-build-system)
2261 `(#:tests? #f ; no "check" target
2262 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2264 (modify-phases %standard-phases
2266 'unpack 'patch-makefile-and-enter-directory
2268 (substitute* "libs/Makefile"
2269 (("ldconfig") "true")
2270 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2274 'install 'install-symlink
2276 (symlink "libzita-resampler.so"
2277 (string-append (assoc-ref %outputs "out")
2278 "/lib/libzita-resampler.so.1"))))
2279 ;; no configure script
2280 (delete 'configure))))
2281 (home-page "http://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
2282 (synopsis "C++ library for resampling audio signals")
2284 "Libzita-resampler is a C++ library for resampling audio signals. It is
2285 designed to be used within a real-time processing context, to be fast, and to
2286 provide high-quality sample rate conversion.")
2287 (license license:gpl3+)))
2289 (define-public zita-alsa-pcmi
2291 (name "zita-alsa-pcmi")
2296 "http://kokkinizita.linuxaudio.org"
2297 "/linuxaudio/downloads/zita-alsa-pcmi-"
2298 version ".tar.bz2"))
2301 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
2302 (build-system gnu-build-system)
2304 `(#:tests? #f ; no "check" target
2305 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2308 'unpack 'patch-makefile-and-enter-directory
2310 (substitute* "libs/Makefile"
2311 (("ldconfig") "true")
2312 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2319 (symlink "libzita-alsa-pcmi.so"
2320 (string-append (assoc-ref %outputs "out")
2321 "/lib/libzita-alsa-pcmi.so.0")))
2322 ;; no configure script
2323 (alist-delete 'configure %standard-phases)))))
2325 `(("alsa-lib" ,alsa-lib)
2327 (home-page "http://kokkinizita.linuxaudio.org")
2328 (synopsis "C++ wrapper around the ALSA API")
2330 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
2331 access to ALSA PCM devices, taking care of the many functions required to
2332 open, initialise and use a hw: device in mmap mode, and providing floating
2334 (license license:gpl3+)))
2336 (define-public cuetools
2342 (uri (string-append "https://github.com/svend/cuetools/archive/"
2344 (file-name (string-append name "-" version ".tar.gz"))
2347 "01xi3rvdmil9nawsha04iagjylqr1l9v9vlzk99scs8c207l58i4"))))
2348 (build-system gnu-build-system)
2349 ;; The source tarball is not bootstrapped.
2352 (modify-phases %standard-phases
2353 (add-after 'unpack 'bootstrap
2354 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
2355 ;; Bootstrapping tools
2357 `(("autoconf" ,autoconf)
2358 ("automake" ,automake)
2361 (synopsis "Cue and toc file parsers and utilities")
2362 (description "Cuetools is a set of programs that are useful for manipulating
2363 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
2364 files are a way to represent the layout of a data or audio CD in a
2365 machine-readable ASCII format.")
2366 (home-page "https://github.com/svend/cuetools")
2367 (license license:gpl2+)))
2369 (define-public shntool
2375 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
2376 "shntool-" version ".tar.gz"))
2379 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
2380 (build-system gnu-build-system)
2381 (synopsis "WAVE audio data processing tool")
2382 (description "shntool is a multi-purpose WAVE data processing and reporting
2383 utility. File formats are abstracted from its core, so it can process any file
2384 that contains WAVE data, compressed or not---provided there exists a format
2385 module to handle that particular file type.")
2386 (home-page "http://etree.org/shnutils/shntool/")
2387 ;; 'install-sh' bears the x11 license
2388 (license (list license:gpl2+ license:x11))))
2390 (define-public dcadec
2396 (uri (string-append "https://github.com/foo86/dcadec/archive/v"
2398 (file-name (string-append name "-" version ".tar.gz"))
2401 "0i0dpypgqkhhi4v1fmsp2way6w9kbcix3c7q79pmg39yvrzj17gd"))))
2402 (build-system gnu-build-system)
2404 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
2408 ;; Build shared library.
2410 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2411 ;; Set proper runpath.
2412 (string-append "LDFLAGS=-Wl,-rpath="
2413 (assoc-ref %outputs "out")
2416 (modify-phases %standard-phases
2417 ;; No configure script, just a hand-written Makefile.
2418 (delete 'configure))))
2419 (synopsis "DTS Coherent Acoustics decoder")
2420 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
2421 with support for HD extensions.")
2422 (home-page "https://github.com/foo86/dcadec")
2423 (license license:lgpl2.1+)))