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>
7 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
10 ;;; This file is part of GNU Guix.
12 ;;; GNU Guix is free software; you can redistribute it and/or modify it
13 ;;; under the terms of the GNU General Public License as published by
14 ;;; the Free Software Foundation; either version 3 of the License, or (at
15 ;;; your option) any later version.
17 ;;; GNU Guix is distributed in the hope that it will be useful, but
18 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;;; GNU General Public License for more details.
22 ;;; You should have received a copy of the GNU General Public License
23 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25 (define-module (gnu packages audio)
26 #:use-module (guix packages)
27 #:use-module (guix download)
28 #:use-module (guix git-download)
29 #:use-module (guix utils)
30 #:use-module ((guix licenses) #:prefix license:)
31 #:use-module (guix build-system gnu)
32 #:use-module (guix build-system waf)
33 #:use-module (guix build-system trivial)
34 #:use-module (guix build-system cmake)
35 #:use-module (guix build-system python)
36 #:use-module (gnu packages)
37 #:use-module (gnu packages algebra)
38 #:use-module (gnu packages autotools)
39 #:use-module (gnu packages avahi)
40 #:use-module (gnu packages boost)
41 #:use-module (gnu packages base)
42 #:use-module (gnu packages bison)
43 #:use-module (gnu packages check)
44 #:use-module (gnu packages compression)
45 #:use-module (gnu packages curl)
46 #:use-module (gnu packages databases)
47 #:use-module (gnu packages file)
48 #:use-module (gnu packages flex)
49 #:use-module (gnu packages fltk)
50 #:use-module (gnu packages fontutils)
51 #:use-module (gnu packages gettext)
52 #:use-module (gnu packages glib)
53 #:use-module (gnu packages gtk)
54 #:use-module (gnu packages gnome)
55 #:use-module (gnu packages gperf)
56 #:use-module (gnu packages image)
57 #:use-module (gnu packages ncurses)
58 #:use-module (gnu packages qt)
59 #:use-module (gnu packages linux)
60 #:use-module (gnu packages mp3) ;taglib
61 #:use-module (gnu packages perl)
62 #:use-module (gnu packages pkg-config)
63 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
64 #:use-module (gnu packages python)
65 #:use-module (gnu packages rdf)
66 #:use-module (gnu packages readline)
67 #:use-module (gnu packages video)
68 #:use-module (gnu packages webkit)
69 #:use-module (gnu packages xiph)
70 #:use-module (gnu packages xml)
71 #:use-module (gnu packages xorg)
72 #:use-module (gnu packages zip)
73 #:use-module (srfi srfi-1))
75 (define-public alsa-modular-synth
77 (name "alsa-modular-synth")
81 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
82 "/" version "/ams-" version ".tar.bz2"))
85 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
86 (build-system gnu-build-system)
88 `(#:configure-flags '("--enable-qt5")
90 (modify-phases %standard-phases
91 ;; Insert an extra space between linker flags.
92 (add-before 'configure 'add-missing-space
94 (substitute* "configure"
95 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
96 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
99 `(("alsa-lib" ,alsa-lib)
100 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
101 ;; license incompatibility.
102 ("clalsadrv" ,clalsadrv)
108 ("qttools" ,qttools)))
110 `(("pkg-config" ,pkg-config)))
111 (home-page "http://alsamodular.sourceforge.net/")
112 (synopsis "Realtime modular synthesizer and effect processor")
114 "AlsaModularSynth is a digital implementation of a classical analog
115 modular synthesizer system. It uses virtual control voltages to control the
116 parameters of the modules. The control voltages which control the frequency
117 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
118 Filter) modules follow the convention of 1V / Octave.")
119 (license license:gpl2)))
128 "http://aubio.org/pub/aubio-" version ".tar.bz2"))
131 "15f6nf76y7iyl2kl4ny7ky0zpxfxr8j3902afvd6ydnnkh5dzmr5"))))
132 (build-system waf-build-system)
134 `(#:tests? #f ; no check target
139 "--enable-samplerate"
140 ;; enable compilation with avcodec once available
145 ("libsndfile" ,libsndfile)
146 ("libsamplerate" ,libsamplerate)
149 `(("pkg-config" ,pkg-config)))
150 (home-page "http://aubio.org/")
151 (synopsis "Library for audio labelling")
153 "aubio is a tool designed for the extraction of annotations from audio
154 signals. Its features include segmenting a sound file before each of its
155 attacks, performing pitch detection, tapping the beat and producing MIDI
156 streams from live audio.")
157 (license license:gpl3+)))
159 (define (ardour-rpath-phase major-version)
160 `(lambda* (#:key outputs #:allow-other-keys)
161 (let ((libdir (string-append (assoc-ref outputs "out")
162 "/lib/ardour" ,major-version)))
163 (substitute* "wscript"
164 (("linker_flags = \\[\\]")
165 (string-append "linker_flags = [\""
168 libdir "/backends" ":"
169 libdir "/engines" ":"
170 libdir "/panners" ":"
171 libdir "/surfaces" ":"
172 libdir "/vamp" "\"]"))))
175 (define-public ardour
182 (url "git://git.ardour.org/ardour/ardour.git")
185 ;; Ardour expects this file to exist at build time. The revision
187 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
188 '(call-with-output-file
189 "libs/ardour/revision.cc"
191 (format port "#include \"ardour/revision.h\"
192 namespace ARDOUR { const char* revision = \"5.0-10-g23d1d1f\" ; }"))))
195 "0ihd6zxha1vvp4jy5s49pqyw09qxxjgrdlslrkz6ll59zdh6x7am"))
196 (file-name (string-append name "-" version))))
197 (build-system waf-build-system)
199 `(#:configure-flags '("--cxx11") ; required by gtkmm
201 (modify-phases %standard-phases
203 'unpack 'set-rpath-in-LDFLAGS
204 ,(ardour-rpath-phase (version-prefix version 1))))
205 #:tests? #f ; no check target
208 `(("alsa-lib" ,alsa-lib)
216 ("libart-lgpl" ,libart-lgpl)
217 ("libgnomecanvasmm" ,libgnomecanvasmm)
220 ("libsndfile" ,libsndfile)
221 ("libsamplerate" ,libsamplerate)
224 ("libvorbis" ,libvorbis)
237 ("readline" ,readline)
239 ("rubberband" ,rubberband)
241 ("python-rdflib" ,python-rdflib)))
245 ("pkg-config" ,pkg-config)))
246 (home-page "http://ardour.org")
247 (synopsis "Digital audio workstation")
249 "Ardour is a multi-channel digital audio workstation, allowing users to
250 record, edit, mix and master audio and MIDI projects. It is targeted at audio
251 engineers, musicians, soundtrack editors and composers.")
252 (license license:gpl2+)))
260 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
265 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))))
266 (build-system gnu-build-system)
268 `(#:tests? #f ; no check target
271 (string-append "prefix=" %output)
272 (string-append "pkgdatadir=" %output "/share/azr3-jack"))))
279 `(("pkg-config" ,pkg-config)))
280 (home-page "http://ll-plugins.nongnu.org/azr3/")
281 (synopsis "Tonewheel organ synthesizer")
283 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
284 with drawbars, distortion and rotating speakers. The organ has three
285 sections, two polyphonic sections with nine drawbars each and one monophonic
286 bass section with five drawbars. A standalone JACK application and LV2
287 plugins are provided.")
288 (license license:gpl2)))
296 (uri (string-append "http://calf-studio-gear.org/files/calf-"
300 "019fwg00jv217a5r767z7szh7vdrarybac0pr2sk26xp81kibrx9"))))
301 (build-system gnu-build-system)
303 `(("fluidsynth" ,fluidsynth)
314 `(("pkg-config" ,pkg-config)))
316 (list (search-path-specification
317 (variable "LV2_PATH")
318 (files '("lib/lv2")))))
319 (home-page "http://calf.sourceforge.net/")
320 (synopsis "Audio plug-in pack for LV2 and JACK environments")
322 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
323 The suite contains lots of effects (delay, modulation, signal processing,
324 filters, equalizers, dynamics, distortion and mastering effects),
325 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
326 tools (analyzer, mono/stereo tools, crossovers).")
327 ;; calfjackhost is released under GPLv2+
328 ;; The plugins are released under LGPLv2.1+
329 (license (list license:lgpl2.1+ license:gpl2+))))
331 (define-public csound
338 "mirror://sourceforge/csound/csound6/Csound"
339 version "/Csound" version ".tar.gz"))
342 "0a1sni6lr7qpwywpggbkp0ia3h9bwwgf9i87gsag8ra2h30v82hd"))
343 (patches (search-patches "csound-header-ordering.patch"))))
344 (build-system cmake-build-system)
346 ;; Work around this error on x86_64 with libc 2.22+:
347 ;; libmvec.so.1: error adding symbols: DSO missing from command line
348 (if (string-prefix? "x86_64" (or (%current-target-system) (%current-system)))
349 '(#:configure-flags '("-DCMAKE_EXE_LINKER_FLAGS=-lmvec"))
352 `(("alsa-lib" ,alsa-lib)
354 ("pulseaudio" ,pulseaudio)
355 ("libsndfile" ,libsndfile)
359 ("gettext" ,gnu-gettext)))
364 (home-page "http://csound.github.io/")
365 (synopsis "Sound and music computing system")
367 "Csound is a user-programmable and user-extensible sound processing
368 language and software synthesizer.")
369 (license license:lgpl2.1+)))
371 (define-public clalsadrv
378 "http://kokkinizita.linuxaudio.org"
379 "/linuxaudio/downloads/clalsadrv-"
383 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
384 (build-system gnu-build-system)
386 `(#:tests? #f ; no "check" target
387 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
390 'unpack 'patch-makefile-and-enter-directory
392 (substitute* "libs/Makefile"
393 (("/sbin/ldconfig") "true")
394 (("^LIBDIR =.*") "LIBDIR = lib\n"))
401 (symlink "libclalsadrv.so"
402 (string-append (assoc-ref %outputs "out")
403 "/lib/libclalsadrv.so.2")))
404 ;; no configure script
405 (alist-delete 'configure %standard-phases)))))
407 `(("alsa-lib" ,alsa-lib)
409 (home-page "http://kokkinizita.linuxaudio.org")
410 (synopsis "C++ wrapper around the ALSA API")
412 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
414 (license license:gpl2+)))
416 (define-public amb-plugins
423 "http://kokkinizita.linuxaudio.org"
424 "/linuxaudio/downloads/AMB-plugins-"
428 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
429 (build-system gnu-build-system)
431 `(#:tests? #f ; no "check" target
433 (modify-phases %standard-phases
434 ;; no configure script
436 (add-before 'install 'prepare-target-directory
437 (lambda* (#:key outputs #:allow-other-keys)
438 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
440 (add-after 'unpack 'override-target-directory-and-tool-paths
441 (lambda* (#:key outputs #:allow-other-keys)
442 (substitute* "Makefile"
444 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
445 (("/usr/bin/install") (which "install"))
448 (home-page "http://kokkinizita.linuxaudio.org")
449 (synopsis "LADSPA ambisonics plugins")
451 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
452 used within Ardour. Features include: mono and stereo to B-format panning,
453 horizontal rotator, square, hexagon and cube decoders.")
454 (license license:gpl2+)))
456 (define-public mcp-plugins
463 "http://kokkinizita.linuxaudio.org"
464 "/linuxaudio/downloads/MCP-plugins-"
468 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
469 (build-system gnu-build-system)
471 `(#:tests? #f ; no "check" target
473 (modify-phases %standard-phases
474 ;; no configure script
476 (add-before 'install 'prepare-target-directory
477 (lambda* (#:key outputs #:allow-other-keys)
478 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
480 (add-after 'unpack 'override-target-directory
481 (lambda* (#:key outputs #:allow-other-keys)
482 (substitute* "Makefile"
483 (("/usr") (assoc-ref outputs "out")))
485 (home-page "http://kokkinizita.linuxaudio.org")
486 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
488 "This package provides various LADSPA plugins. @code{cs_chorus} and
489 @code{cs_phaser} provide chorus and phaser effects, respectively;
490 @code{mvclpf24} provides four implementations of the low-pass filter used in
491 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
492 high-pass filter by Robert Moog. The filters attempt to accurately emulate
493 the non-linear circuit elements of their original analog counterparts.")
494 (license license:gpl2+)))
496 (define-public rev-plugins
503 "http://kokkinizita.linuxaudio.org"
504 "/linuxaudio/downloads/REV-plugins-"
508 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
509 (build-system gnu-build-system)
511 `(#:tests? #f ; no "check" target
513 (modify-phases %standard-phases
514 ;; no configure script
516 (add-before 'install 'prepare-target-directory
517 (lambda* (#:key outputs #:allow-other-keys)
518 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
520 (add-after 'unpack 'override-target-directory
521 (lambda* (#:key outputs #:allow-other-keys)
522 (substitute* "Makefile"
523 (("/usr") (assoc-ref outputs "out")))
525 (home-page "http://kokkinizita.linuxaudio.org")
526 (synopsis "LADSPA reverb plugin")
528 "This package provides a stereo reverb LADSPA plugin based on the
529 well-known greverb.")
530 (license license:gpl2+)))
532 (define-public fil-plugins
539 "http://kokkinizita.linuxaudio.org"
540 "/linuxaudio/downloads/FIL-plugins-"
544 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
545 (build-system gnu-build-system)
547 `(#:tests? #f ; no "check" target
549 (modify-phases %standard-phases
550 ;; no configure script
552 (add-before 'install 'prepare-target-directory
553 (lambda* (#:key outputs #:allow-other-keys)
554 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
556 (add-after 'unpack 'override-target-directory
557 (lambda* (#:key outputs #:allow-other-keys)
558 (substitute* "Makefile"
559 (("/usr") (assoc-ref outputs "out")))
561 (home-page "http://kokkinizita.linuxaudio.org")
562 (synopsis "LADSPA four-band parametric equalizer plugin")
564 "This package provides a LADSPA plugin for a four-band parametric
565 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
566 gain controls. There is also a global bypass switch and gain control.
568 The 2nd order resonant filters are implemented using a Mitra-Regalia style
569 lattice filter, which is stable even while parameters are being changed.
571 All switches and controls are internally smoothed, so they can be used 'live'
572 without any clicks or zipper noises. This makes this plugin suitable for use
573 in systems that allow automation of plugin control ports, such as Ardour, or
575 (license license:gpl2+)))
577 (define-public ste-plugins
584 "http://kokkinizita.linuxaudio.org"
585 "/linuxaudio/downloads/STE-plugins-"
589 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
590 (build-system gnu-build-system)
592 `(#:tests? #f ; no "check" target
594 (modify-phases %standard-phases
595 ;; no configure script
597 (add-before 'install 'prepare-target-directory
598 (lambda* (#:key outputs #:allow-other-keys)
599 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
601 (add-after 'unpack 'override-target-directory
602 (lambda* (#:key outputs #:allow-other-keys)
603 (substitute* "Makefile"
604 (("/usr") (assoc-ref outputs "out")))
606 (home-page "http://kokkinizita.linuxaudio.org")
607 (synopsis "LADSPA stereo width plugin")
609 "This package provides a LADSPA plugin to manipulate the stereo width of
611 (license license:gpl2+)))
613 (define-public vco-plugins
620 "http://kokkinizita.linuxaudio.org"
621 "/linuxaudio/downloads/VCO-plugins-"
625 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
626 (build-system gnu-build-system)
628 `(#:tests? #f ; no "check" target
630 (modify-phases %standard-phases
631 ;; no configure script
633 (add-before 'install 'prepare-target-directory
634 (lambda* (#:key outputs #:allow-other-keys)
635 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
637 (add-after 'unpack 'override-target-directory
638 (lambda* (#:key outputs #:allow-other-keys)
639 (substitute* "Makefile"
640 (("/usr") (assoc-ref outputs "out"))
641 (("/bin/cp") (which "cp")))
643 (home-page "http://kokkinizita.linuxaudio.org")
644 (synopsis "LADSPA plugin for synthesizer oscillators")
646 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
649 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
650 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
651 @item Rec-VCO, a square / rectange oscillator
654 All oscillators are low-pass filtered to provide waveforms similar to the
655 output of analog synthesizers such as the Moog Voyager.")
656 (license license:gpl2+)))
658 (define-public wah-plugins
665 "http://kokkinizita.linuxaudio.org"
666 "/linuxaudio/downloads/WAH-plugins-"
670 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
671 (build-system gnu-build-system)
673 `(#:tests? #f ; no "check" target
675 (modify-phases %standard-phases
676 ;; no configure script
678 (add-before 'install 'prepare-target-directory
679 (lambda* (#:key outputs #:allow-other-keys)
680 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
682 (add-after 'unpack 'override-target-directory
683 (lambda* (#:key outputs #:allow-other-keys)
684 (substitute* "Makefile"
685 (("/usr") (assoc-ref outputs "out")))
687 (home-page "http://kokkinizita.linuxaudio.org")
688 (synopsis "LADSPA Autowah effect plugin")
690 "This package provides a LADSPA plugin for a Wah effect with envelope
692 (license license:gpl2+)))
694 (define-public g2reverb
701 "http://kokkinizita.linuxaudio.org"
702 "/linuxaudio/downloads/g2reverb-"
706 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
707 (build-system gnu-build-system)
709 `(#:tests? #f ; no "check" target
711 (modify-phases %standard-phases
712 ;; no configure script
714 (add-before 'install 'prepare-target-directory
715 (lambda* (#:key outputs #:allow-other-keys)
716 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
718 (add-after 'unpack 'override-target-directory
719 (lambda* (#:key outputs #:allow-other-keys)
720 (substitute* "Makefile"
721 (("/usr") (assoc-ref outputs "out")))
723 (home-page "http://kokkinizita.linuxaudio.org")
724 (synopsis "LADSPA stereo reverb plugin")
726 "This package provides a LADSPA plugin for a stereo reverb effect.")
727 (license license:gpl2+)))
729 (define-public fluidsynth
736 "mirror://sourceforge/fluidsynth/fluidsynth-"
737 version "/fluidsynth-" version ".tar.gz"))
740 "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
741 (build-system gnu-build-system)
746 'remove-broken-symlinks
747 (lambda _ (delete-file-recursively "m4") #t)
750 `(("libsndfile" ,libsndfile)
751 ("alsa-lib" ,alsa-lib)
755 ("readline" ,readline)
758 `(("pkg-config" ,pkg-config)))
759 (home-page "http://www.fluidsynth.org/")
760 (synopsis "SoundFont synthesizer")
762 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
763 specifications. FluidSynth reads and handles MIDI events from the MIDI input
764 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
765 also play midifiles using a Soundfont.")
766 (license license:gpl2+)))
774 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
775 version "/faad2-" version ".zip"))
778 "16f3l16c00sg0wkrkm3vzv0gy3g97x309vw788igs0cap2x1ak3z"))))
779 (build-system gnu-build-system)
781 `(("autoconf" ,autoconf)
782 ("automake" ,automake)
790 (substitute* "bootstrap" (("\r\n") "\n"))
791 (zero? (system* "sh" "bootstrap")))
793 (home-page "http://www.audiocoding.com/faad2.html")
794 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
796 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
798 (license license:gpl2)))
807 "mirror://sourceforge/faudiostream/faust-" version ".zip"))
810 "068vl9536zn0j4pknwfcchzi90rx5pk64wbcbd67z32w0csx8xm1"))
812 ;; Remove prebuilt library
813 '(delete-file "architecture/android/libs/armeabi-v7a/libfaust_dsp.so"))))
814 (build-system gnu-build-system)
816 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
819 (modify-phases %standard-phases
820 ;; no "configure" script
821 (delete 'configure))))
824 (home-page "http://faust.grame.fr/")
825 (synopsis "Signal processing language")
827 "Faust is a programming language for realtime audio signal processing.")
828 (license license:gpl2+)))
830 (define-public freepats
836 (uri (string-append "http://freepats.zenvoid.org/freepats-"
840 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
841 (build-system trivial-build-system)
843 `(#:modules ((guix build utils))
845 (use-modules (guix build utils))
846 (let ((out (string-append %output "/share/freepats")))
847 (setenv "PATH" (string-append
848 (assoc-ref %build-inputs "bzip2") "/bin:"
849 (assoc-ref %build-inputs "tar") "/bin"))
850 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
852 ;; Use absolute pattern references
853 (substitute* "freepats.cfg"
854 (("Tone_000") (string-append out "/Tone_000"))
855 (("Drum_000") (string-append out "/Drum_000")))
857 (copy-recursively "." out)))))
861 (home-page "http://freepats.zenvoid.org")
862 (synopsis "GUS compatible patches for MIDI players")
864 "FreePats is a project to create a free and open set of GUS compatible
865 patches that can be used with softsynths such as Timidity and WildMidi.")
866 ;; GPLv2+ with exception for compositions using these patches.
867 (license license:gpl2+)))
869 (define-public guitarix
876 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
880 "10hijqrrl8xil46kgsac10ysfxysisxlibm2rz133zyig5n63jdw"))))
881 (build-system waf-build-system)
883 `(#:tests? #f ; no "check" target
887 ;; Add the output lib directory to the RUNPATH.
888 (string-append "--ldflags=-Wl,-rpath=" %output "/lib")
889 "--cxxflags=-std=c++11")))
891 `(("libsndfile" ,libsndfile)
901 ("webkitgtk/gtk+-2" ,webkitgtk/gtk+-2)
904 ("zita-resampler" ,zita-resampler)
905 ("zita-convolver" ,zita-convolver)))
909 ("intltool" ,intltool)
910 ("gettext" ,gnu-gettext)
911 ("pkg-config" ,pkg-config)))
913 (list (search-path-specification
914 (variable "LV2_PATH")
915 (files '("lib/lv2")))))
916 (home-page "http://guitarix.org/")
917 (synopsis "Virtual guitar amplifier")
918 (description "Guitarix is a virtual guitar amplifier running JACK.
919 Guitarix takes the signal from your guitar as a mono-signal from your sound
920 card. The input is processed by a main amp and a rack-section. Both can be
921 routed separately and deliver a processed stereo-signal via JACK. You may
922 fill the rack with effects from more than 25 built-in modules including stuff
923 from a simple noise gate to modulation effects like flanger, phaser or
925 (license license:gpl2+)))
927 (define-public rakarrack
933 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
934 "rakarrack-" version "/rakarrack-"
938 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
939 (modules '((guix build utils)))
942 (substitute* '("src/process.C"
944 (("#include <Fl/") "#include <FL/"))
946 (build-system gnu-build-system)
948 `(("alsa-utils" ,alsa-utils)
952 ("libxfixes" ,libxfixes)
954 ("libxrender" ,libxrender)
956 ("fontconfig" ,fontconfig)
957 ("freetype" ,freetype)
959 ("alsa-lib" ,alsa-lib)
960 ("libsndfile" ,libsndfile)
961 ("libsamplerate" ,libsamplerate)
963 (home-page "http://rakarrack.sourceforge.net/")
964 (synopsis "Audio effects processor")
966 "Rakarrack is a richly featured multi-effects processor emulating a
967 guitar effects pedalboard. Effects include compressor, expander, noise gate,
968 equalizers, exciter, flangers, chorus, various delay and reverb effects,
969 distortion modules and many more. Most of the effects engine is built from
970 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
971 user interface are optimized for guitar, but Rakarrack processes signals in
972 stereo while it does not apply internal band-limiting filtering, and thus is
973 well suited to all musical instruments and vocals.")
974 ;; The code is explicitly licensed under the GPL version 2 only.
975 (license license:gpl2)))
984 "http://factorial.hu/system/files/ir.lv2-"
988 "1jh2z01l9m4ar7yz0n911df07dygc7n4cl59p7qdjbh0nvkm747g"))))
989 (build-system gnu-build-system)
991 `(#:tests? #f ;no "check" target
992 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
994 ;; no configure script
995 (alist-delete 'configure %standard-phases)))
997 `(("libsndfile" ,libsndfile)
998 ("libsamplerate" ,libsamplerate)
1002 ("zita-convolver" ,zita-convolver)))
1004 `(("pkg-config" ,pkg-config)))
1005 (native-search-paths
1006 (list (search-path-specification
1007 (variable "LV2_PATH")
1008 (files '("lib/lv2")))))
1009 (home-page "http://factorial.hu/plugins/lv2/ir")
1010 (synopsis "LV2 convolution reverb")
1012 "IR is a low-latency, real-time, high performance signal convolver
1013 especially for creating reverb effects. It supports impulse responses with 1,
1014 2 or 4 channels, in any soundfile format supported by libsndfile.")
1015 (license license:gpl2+)))
1017 (define-public jack-1
1024 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1029 "1mk1wnx33anp6haxfjjkfhwbaknfblsvj35nxvz0hvspcmhdyhpb"))))
1030 (build-system gnu-build-system)
1032 `(("alsa-lib" ,alsa-lib)
1033 ("readline" ,readline)))
1034 ;; uuid.h is included in the JACK type headers
1035 ;; db.h is included in the libjack metadata headers
1037 `(("libuuid" ,util-linux)
1040 `(("pkg-config" ,pkg-config)))
1041 (home-page "http://jackaudio.org/")
1042 (synopsis "JACK audio connection kit")
1044 "JACK is a low-latency audio server. It can connect a number of
1045 different applications to an audio device, as well as allowing them to share
1046 audio between themselves. JACK is different from other audio server efforts
1047 in that it has been designed from the ground up to be suitable for
1048 professional audio work. This means that it focuses on two key areas:
1049 synchronous execution of all clients, and low latency operation.")
1050 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1051 ;; licensed under the LGPL in order to allow for proprietary usage.
1052 (license (list license:gpl2+ license:lgpl2.1+))))
1054 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1055 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
1056 ;; program for users who might benefit from the D-BUS features.
1057 (define-public jack-2
1058 (package (inherit jack-1)
1064 "https://github.com/jackaudio/jack2/archive/v"
1067 (file-name (string-append name "-" version ".tar.gz"))
1070 "03b0iiyk3ng3vh5s8gaqwn565vik7910p56mlbk512bw3dhbdwc8"))))
1071 (build-system waf-build-system)
1073 `(#:python ,python-2
1074 #:tests? #f ; no check target
1075 #:configure-flags '("--dbus"
1078 (modify-phases %standard-phases
1080 'configure 'set-linkflags
1082 ;; Add $libdir to the RUNPATH of all the binaries.
1083 (substitute* "wscript"
1084 ((".*CFLAGS.*-Wall.*" m)
1086 " conf.env.append_unique('LINKFLAGS',"
1087 "'-Wl,-rpath=" %output "/lib')\n")))))
1088 (add-after 'install 'wrap-python-scripts
1089 (lambda* (#:key inputs outputs #:allow-other-keys)
1090 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1091 (let* ((out (assoc-ref outputs "out"))
1092 (path (getenv "PYTHONPATH")))
1093 (wrap-program (string-append out "/bin/jack_control")
1094 `("PYTHONPATH" ":" prefix (,path))))
1097 `(("alsa-lib" ,alsa-lib)
1100 ("libsamplerate" ,libsamplerate)
1102 ("python2-dbus" ,python2-dbus)
1103 ("readline" ,readline)))
1105 `(("pkg-config" ,pkg-config)))
1106 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1107 (license (list license:gpl2+ license:lgpl2.1+))))
1115 (uri (string-append "http://download.drobilla.net/jalv-"
1116 version ".tar.bz2"))
1119 "1f1hcq74n3ziw8bk97mn5a1vgw028dxikv3fchaxd430pbbhqgl9"))))
1120 (build-system waf-build-system)
1122 `(#:tests? #f ; no check target
1124 (modify-phases %standard-phases
1126 'configure 'set-flags
1128 ;; Compile with C++11, required by gtkmm.
1129 (setenv "CXXFLAGS" "-std=c++11")
1139 `(("pkg-config" ,pkg-config)))
1140 (home-page "http://drobilla.net/software/jalv/")
1141 (synopsis "Simple LV2 host for JACK")
1143 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1144 plugins and exposes their ports as JACK ports, essentially making any LV2
1145 plugin function as a JACK application.")
1146 (license license:isc)))
1148 (define-public ladspa
1155 ;; Since the official link is dead,
1156 ;; we download the tarball from Debian or Internet Archive.
1157 (uri (list (string-append "http://http.debian.net"
1158 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1159 version ".orig.tar.gz")
1160 (string-append "https://web.archive.org/web/20140717172251/"
1161 "http://www.ladspa.org/download/ladspa_sdk_"
1165 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
1166 (build-system gnu-build-system)
1168 `(#:tests? #f ; the "test" target is a listening test only
1172 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1174 (let ((out (assoc-ref outputs "out")))
1175 (substitute* "makefile"
1176 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1177 (("/usr/include/") (string-append out "/include/"))
1178 (("/usr/bin/") (string-append out "/bin/"))
1179 (("-mkdirhier") "mkdir -p")
1180 (("^CC.*") "CC = gcc\n")
1181 (("^CPP.*") "CPP = g++\n"))))
1182 (alist-delete 'build %standard-phases))))
1183 ;; Since the home page is gone, we provide a link to the archived version.
1185 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
1186 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1188 "LADSPA is a standard that allows software audio processors and effects
1189 to be plugged into a wide range of audio synthesis and recording packages.")
1190 (license license:lgpl2.1+)))
1195 (version "0.6.0-rc2")
1198 ;; The tilde is not permitted in the builder name, but is used
1201 "mirror://savannah/lash/lash-"
1202 (string-join (string-split version #\-) "~")
1204 (file-name (string-append name "-" version ".tar.bz2"))
1207 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1208 (build-system gnu-build-system)
1213 ("readline" ,readline)
1214 ("python" ,python-2)))
1215 ;; According to pkg-config, packages depending on lash also need to have
1216 ;; at least the following packages declared as inputs.
1218 `(("alsa-lib" ,alsa-lib)
1220 ("libxml2" ,libxml2)))
1222 `(("pkg-config" ,pkg-config)))
1223 (home-page "http://www.nongnu.org/lash/")
1224 (synopsis "Audio application session manager")
1226 "LASH is a session management system for audio applications. It allows
1227 you to save and restore audio sessions consisting of multiple interconneced
1228 applications, restoring program state (i.e. loaded patches) and the
1229 connections between them.")
1230 (license license:gpl2+)))
1232 (define-public libbs2b
1238 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1239 "/libbs2b-" version ".tar.lzma"))
1242 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1243 (build-system gnu-build-system)
1244 (native-inputs `(("pkg-config" ,pkg-config)))
1245 (inputs `(("libsndfile" ,libsndfile)))
1246 (home-page "http://sourceforge.net/projects/bs2b/")
1247 (synopsis "Bauer stereophonic-to-binaural DSP")
1249 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1250 designed to improve headphone listening of stereo audio records. Recommended
1251 for headphone prolonged listening to disable superstereo fatigue without
1252 essential distortions.")
1253 (license license:expat)))
1255 (define-public liblo
1261 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1262 "/liblo-" version ".tar.gz"))
1265 "02drgnpirvl2ihvzgsmn02agr5sj3vipzzw9vma56qlkgfvak56s"))))
1266 (build-system gnu-build-system)
1268 `(;; liblo test FAILED
1269 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1271 (home-page "http://liblo.sourceforge.net")
1272 (synopsis "Implementation of the Open Sound Control protocol")
1274 "liblo is a lightweight library that provides an easy to use
1275 implementation of the Open Sound Control (OSC) protocol.")
1276 (license license:lgpl2.1+)))
1278 (define-public python-pyliblo
1280 (name "python-pyliblo")
1284 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1288 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1289 (build-system python-build-system)
1290 (arguments `(#:tests? #f)) ;no tests
1292 `(("python-cython" ,python-cython)
1294 (home-page "http://das.nasophon.de/pyliblo/")
1295 (synopsis "Python bindings for liblo")
1297 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1298 library. It supports almost the complete functionality of liblo, allowing you
1299 to send and receive OSC messages using a nice and simple Python API. Also
1300 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1301 (license license:lgpl2.1+)))
1303 (define-public python2-pyliblo
1304 (package-with-python2 python-pyliblo))
1312 (uri (string-append "http://download.drobilla.net/lilv-"
1317 "1d3ss7vv8drf1c5340lyd0gv736n2qy7sxji2nh1rw9y48hr69yd"))))
1318 (build-system waf-build-system)
1320 `(#:tests? #f ; no check target
1322 (modify-phases %standard-phases
1324 'configure 'set-ldflags
1325 (lambda* (#:key outputs #:allow-other-keys)
1327 (string-append "-Wl,-rpath="
1328 (assoc-ref outputs "out") "/lib")))))))
1329 ;; required by lilv-0.pc
1333 ("sratom" ,sratom)))
1337 `(("pkg-config" ,pkg-config)))
1338 (home-page "http://drobilla.net/software/lilv/")
1339 (synopsis "Library to simplify use of LV2 plugins in applications")
1341 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1342 for applications. Lilv is the successor to SLV2, rewritten to be
1343 significantly faster and have minimal dependencies.")
1344 (license license:isc)))
1352 (uri (string-append "http://lv2plug.in/spec/lv2-"
1357 "1saq0vwqy5zjdkgc5ahs8kcabxfmff2mmg68fiqrkv8hiw9m6jks"))))
1358 (build-system waf-build-system)
1360 `(#:tests? #f ; no check target
1361 #:configure-flags '("--no-plugins")))
1363 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1364 `(("libsndfile" ,libsndfile)))
1366 `(("pkg-config" ,pkg-config)))
1367 (home-page "http://lv2plug.in/")
1368 (synopsis "LV2 audio plugin specification")
1370 "LV2 is an open specification for audio plugins and host applications.
1371 At its core, LV2 is a simple stable interface, accompanied by extensions which
1372 add functionality to support the needs of increasingly powerful audio
1374 (license license:isc)))
1376 (define-public lv2-mda-piano
1378 (name "lv2-mda-piano")
1383 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
1387 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1388 (build-system gnu-build-system)
1390 `(#:make-flags (list
1392 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1393 #:tests? #f ; no check target
1394 #:phases (alist-delete 'configure %standard-phases)))
1399 `(("pkg-config" ,pkg-config)))
1400 (native-search-paths
1401 (list (search-path-specification
1402 (variable "LV2_PATH")
1403 (files '("lib/lv2")))))
1404 (home-page "http://elephly.net/lv2/mdapiano.html")
1405 (synopsis "LV2 port of the mda Piano plugin")
1406 (description "An LV2 port of the mda Piano VSTi.")
1407 (license license:gpl3+)))
1409 (define-public lv2-mda-epiano
1410 (package (inherit lv2-mda-piano)
1411 (name "lv2-mda-epiano")
1413 `(#:make-flags (list
1415 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1416 #:tests? #f ; no check target
1417 #:phases (alist-delete 'configure %standard-phases)))
1418 (home-page "http://elephly.net/lv2/mdaepiano.html")
1419 (synopsis "LV2 port of the mda EPiano plugin")
1420 (description "An LV2 port of the mda EPiano VSTi.")))
1428 (uri (string-append "https://github.com/lvtk/lvtk/archive/"
1431 (file-name (string-append name "-" version ".tar.gz"))
1434 "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd"))))
1435 (build-system waf-build-system)
1437 `(#:tests? #f ; no check target
1440 (list (string-append "--boost-includes="
1441 (assoc-ref %build-inputs "boost")
1443 #:phases (modify-phases %standard-phases
1445 'configure 'set-flags
1446 (lambda* (#:key inputs #:allow-other-keys)
1447 ;; See e.g. https://github.com/lvtk/lvtk/issues/21
1450 "-L" (assoc-ref inputs "boost") "/lib "
1451 "-lboost_system")))))))
1456 `(("pkg-config" ,pkg-config)))
1457 (home-page "https://github.com/lvtk/lvtk")
1458 (synopsis "C++ libraries for LV2 plugins")
1460 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
1461 extensions into easy to use C++ classes. It is the successor of
1463 (license license:gpl3+)))
1465 (define-public openal
1472 "http://kcat.strangesoft.net/openal-releases/openal-soft-"
1473 version ".tar.bz2"))
1476 "0mmhdqiyb3c9dzvxspm8h2v8jibhi8pfjxnf6m0wn744y1ia2a8f"))))
1477 (build-system cmake-build-system)
1479 `(#:tests? #f ; no check target
1481 (modify-phases %standard-phases
1483 'unpack 'use-full-library-paths
1484 (lambda* (#:key inputs #:allow-other-keys)
1485 (substitute* "Alc/backends/pulseaudio.c"
1486 (("#define PALIB \"libpulse\\.so\\.0\"")
1487 (string-append "#define PALIB \""
1488 (assoc-ref inputs "pulseaudio")
1489 "/lib/libpulse.so.0"
1491 (substitute* "Alc/backends/alsa.c"
1492 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
1493 (string-append "LoadLib(\""
1494 (assoc-ref inputs "alsa-lib")
1495 "/lib/libasound.so.2"
1499 `(("alsa-lib" ,alsa-lib)
1500 ("pulseaudio" ,pulseaudio)))
1501 (synopsis "3D audio API")
1503 "OpenAL provides capabilities for playing audio in a virtual 3D
1504 environment. Distance attenuation, doppler shift, and directional sound
1505 emitters are among the features handled by the API. More advanced effects,
1506 including air absorption, occlusion, and environmental reverb, are available
1507 through the EFX extension. It also facilitates streaming audio, multi-channel
1508 buffers, and audio capture.")
1509 (home-page "http://kcat.strangesoft.net/openal.html")
1510 (license license:lgpl2.0+)))
1512 (define-public patchage
1518 (uri (string-append "http://download.drobilla.net/patchage-"
1523 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
1524 (build-system waf-build-system)
1525 (arguments `(#:tests? #f)) ; no check target
1527 `(("alsa-lib" ,alsa-lib)
1533 ("dbus-glib" ,dbus-glib)))
1535 `(("pkg-config" ,pkg-config)))
1536 (home-page "http://drobilla.net/software/patchage/")
1537 (synopsis "Modular patch bay for audio and MIDI systems")
1539 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
1541 (license license:gpl3+)))
1549 (uri (string-append "http://download.drobilla.net/raul-"
1550 version ".tar.bz2"))
1553 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
1554 (build-system waf-build-system)
1556 `(#:python ,python-2
1557 #:tests? #f)) ; no check target
1562 `(("pkg-config" ,pkg-config)))
1563 (home-page "http://drobilla.net/software/raul/")
1564 (synopsis "Real-time audio utility library")
1566 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
1567 aimed at audio/musical applications.")
1568 (license license:gpl2+)))
1570 (define-public rubberband
1577 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
1582 "05amrbrxx0da3w7m237q51799r8xgs4ffqabi2qv06hq8dpcj386"))))
1583 (build-system gnu-build-system)
1584 (arguments `(#:tests? #f)) ; no check target
1586 `(("ladspa" ,ladspa)
1587 ("libsamplerate" ,libsamplerate)
1590 `(("pkg-config" ,pkg-config)))
1591 (home-page "http://breakfastquay.com/rubberband/")
1592 (synopsis "Audio time-stretching and pitch-shifting library")
1594 "Rubber Band is a library and utility program that permits changing the
1595 tempo and pitch of an audio recording independently of one another.")
1596 (license license:gpl2+)))
1598 (define-public rtmidi
1605 (string-append "https://github.com/powertab/rtmidi/archive/"
1607 (file-name (string-append name "-" version ".tar.gz"))
1610 "0d49lapnmdgmjxh4vw57h6xk74nn5r0zwysv7jbd7m8kqhpq5rjj"))))
1611 (build-system gnu-build-system)
1613 `(#:tests? #f ;no "check" target
1614 #:phases (modify-phases %standard-phases
1616 'configure 'autoconf
1617 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
1619 'build 'fix-makefile
1621 (substitute* "Makefile"
1623 (("RtMidi.h RtError.h") "RtMidi.h"))
1626 'install 'make-target-dirs
1628 (let ((out (assoc-ref %outputs "out")))
1629 (mkdir-p (string-append out "/bin"))
1630 (mkdir (string-append out "/lib"))
1631 (mkdir (string-append out "/include")))
1635 ("alsa-lib" ,alsa-lib)))
1637 `(("autoconf" ,autoconf)
1638 ("automake" ,automake)
1639 ("libtool" ,libtool)
1640 ("pkg-config" ,pkg-config)))
1641 (home-page "https://github.com/powertab/rtmidi")
1642 (synopsis "Cross-platform MIDI library for C++")
1644 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
1645 classes) that provide a common cross-platform API for realtime MIDI
1647 (license license:expat)))
1649 (define-public sratom
1655 (uri (string-append "http://download.drobilla.net/sratom-"
1660 "080jjiyxjnj7hf25844hd9rb01grvzz1rk8mxcdnakywmspbxfd4"))))
1661 (build-system waf-build-system)
1662 (arguments `(#:tests? #f)) ; no check target
1668 `(("pkg-config" ,pkg-config)))
1669 (home-page "http://drobilla.net/software/sratom/")
1670 (synopsis "Library for serialising LV2 atoms to/from RDF")
1672 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
1673 the Turtle syntax.")
1674 (license license:isc)))
1682 (uri (string-append "http://download.drobilla.net/suil-"
1687 "1s3adyiw7sa5gfvm5wasa61qa23629kprxyv6w8hbxdiwp0hhxkq"))))
1688 (build-system waf-build-system)
1689 (arguments `(#:tests? #f)) ; no check target
1695 `(("pkg-config" ,pkg-config)))
1696 (home-page "http://drobilla.net/software/suil/")
1697 (synopsis "Library for loading and wrapping LV2 plugin UIs")
1699 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
1701 Suil makes it possible to load a UI of a toolkit in a host using another
1702 toolkit. The API is designed such that hosts do not need to explicitly
1703 support specific toolkits – if Suil supports a particular toolkit, then UIs in
1704 that toolkit will work in all hosts that use Suil automatically.
1706 Suil currently supports every combination of Gtk 2, Qt 4, and X11.")
1707 (license license:isc)))
1709 (define-public timidity++
1715 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
1716 "/TiMidity++-" version
1717 "/TiMidity++-" version ".tar.bz2"))
1720 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
1721 (build-system gnu-build-system)
1724 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
1728 (string-append "--with-default-path="
1729 (assoc-ref %outputs "out") "/etc/timidity"))
1732 'install 'install-config
1734 (let ((out (string-append (assoc-ref %outputs "out")
1737 (call-with-output-file
1738 (string-append out "/timidity.cfg")
1740 (format port (string-append "source "
1741 (assoc-ref %build-inputs "freepats")
1742 "/share/freepats/freepats.cfg"))))))
1745 `(("alsa-lib" ,alsa-lib)
1751 ("ncurses" ,ncurses)
1752 ("freepats" ,freepats)))
1754 `(("pkg-config" ,pkg-config)))
1755 (home-page "http://timidity.sourceforge.net/")
1756 (synopsis "Software synthesizer for playing MIDI files")
1758 "TiMidity++ is a software synthesizer. It can play MIDI files by
1759 converting them into PCM waveform data; give it a MIDI data along with digital
1760 instrument data files, then it synthesizes them in real-time, and plays. It
1761 can not only play sounds, but also can save the generated waveforms into hard
1762 disks as various audio file formats.")
1763 (license license:gpl2+)))
1772 "https://code.soundsoftware.ac.uk"
1773 "/attachments/download/1520/vamp-plugin-sdk-"
1777 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
1778 (build-system gnu-build-system)
1780 `(#:tests? #f ; no check target
1783 'install 'remove-libvamp-hostsdk.la
1784 (lambda* (#:key outputs #:allow-other-keys)
1785 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
1786 (for-each delete-file
1787 (let ((out (assoc-ref outputs "out")))
1788 (list (string-append out "/lib/libvamp-sdk.la")
1789 (string-append out "/lib/libvamp-hostsdk.la"))))
1793 `(("libsndfile" ,libsndfile)))
1795 `(("pkg-config" ,pkg-config)))
1796 (home-page "http://vamp-plugins.org")
1797 (synopsis "Modular and extensible audio processing system")
1799 "Vamp is an audio processing plugin system for plugins that extract
1800 descriptive information from audio data — typically referred to as audio
1801 analysis plugins or audio feature extraction plugins.")
1804 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
1806 (define-public libsbsms
1813 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
1814 "/libsbsms-" version ".tar.gz"))
1816 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
1817 (build-system gnu-build-system)
1818 (native-inputs `(("automake" ,automake)))
1821 ;; Disable the use of SSE unless on x86_64.
1822 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
1823 (%current-system))))
1827 (modify-phases %standard-phases
1829 'unpack 'fix-ar-lib-path
1830 (lambda* (#:key inputs #:allow-other-keys)
1831 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
1832 (delete-file "ar-lib")
1834 (string-append (assoc-ref inputs "automake") "/share/automake-"
1835 ,(package-version automake) "/ar-lib")
1837 (home-page "http://sbsms.sourceforge.net/")
1838 (synopsis "Library for time stretching and pitch scaling of audio")
1840 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
1841 stretching and pitch scaling of audio. This package contains the library.")
1842 ;; There is no explicit declaration of a license, but a COPYING file
1844 (license license:gpl2)))
1846 (define-public wavpack
1852 (uri (string-append "http://www.wavpack.com/"
1853 name "-" version ".tar.bz2"))
1856 "191h8hv8qk72hfh1crg429i9yq3cminwqb249sy9zadbn1wy7b9c"))))
1857 (build-system gnu-build-system)
1860 ;; wavpack.pc.in lacks path substitution for 'exec_prefix'.
1861 (list (string-append "--libdir=" %output "/lib"))))
1862 (home-page "http://www.wavpack.com/")
1863 (synopsis "Hybrid lossless audio codec")
1865 "WavPack is an audio compression format with lossless, lossy and hybrid
1866 compression modes. This package contains command-line programs and library to
1867 encode and decode wavpack files.")
1868 (license license:bsd-3)))
1870 (define-public libmodplug
1877 "mirror://sourceforge/modplug-xmms/"
1878 name "/" version "/" name "-" version ".tar.gz"))
1881 "1bfsladg7h6vnii47dd66f5vh1ir7qv12mfb8n36qiwrxq92sikp"))))
1882 (build-system gnu-build-system)
1883 (home-page "http://modplug-xmms.sourceforge.net/")
1884 (synopsis "Mod file playing library")
1886 "Libmodplug renders mod music files as raw audio data, for playing or
1887 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
1888 supported. Optional features include high-quality resampling, bass expansion,
1889 surround and reverb.")
1890 (license license:public-domain)))
1892 (define-public libxmp
1898 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
1899 name "-" version ".tar.gz"))
1902 "1gm5xa0ca7ypcbj3bkmj3k1vvzl7nkch8gjyrm8p1a9vgzr0n761"))))
1903 (build-system gnu-build-system)
1904 (home-page "http://xmp.sourceforge.net/")
1905 (synopsis "Module player library")
1907 "Libxmp is a library that renders module files to PCM data. It supports
1908 over 90 mainstream and obscure module formats including Protracker (MOD),
1909 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
1910 (license license:lgpl2.1+)))
1918 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
1919 name "-" version ".tar.gz"))
1922 "0gjylvvmq7ha0nhcjg56qfp0xxpsrcsj7y5r914svd5x1ppmzm5n"))))
1923 (build-system gnu-build-system)
1925 `(("pkg-config" ,pkg-config)))
1927 `(("libxmp" ,libxmp)
1928 ("pulseaudio" ,pulseaudio)))
1929 (home-page "http://xmp.sourceforge.net/")
1930 (synopsis "Extended module player")
1932 "Xmp is a portable module player that plays over 90 mainstream and
1933 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
1934 Tracker 3 S3M and Impulse Tracker IT files.")
1935 (license license:gpl2+)))
1937 (define-public soundtouch
1946 "http://www.surina.net/soundtouch/soundtouch-" version ".tar.gz"))
1948 (base32 "0sqn3wk4qz20vf0vz853l6dl1gnj1yhqxfwxqsc5lp529kbn2h9x"))))
1949 (build-system gnu-build-system)
1951 `(("autoconf" ,autoconf)
1952 ("automake" ,automake)
1953 ("libtool" ,libtool)
1960 (zero? (system* "sh" "bootstrap")))
1962 (home-page "http://www.surina.net/soundtouch/")
1964 "Audio processing library for changing tempo, pitch and playback rate")
1966 "SoundTouch is an audio processing library for changing the tempo, pitch
1967 and playback rates of audio streams or audio files. It is intended for
1968 application developers writing sound processing tools that require tempo/pitch
1969 control functionality, or just for playing around with the sound effects.")
1970 (license license:lgpl2.1+)))
1978 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
1979 name "-" version ".tar.bz2"))
1982 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
1983 (build-system gnu-build-system)
1986 ;; The upstream asks to identify the distribution to diagnose SoX
1988 '("--with-distro=Guix System Distribution")))
1990 `(("pkg-config" ,pkg-config)))
1992 `(("alsa-lib" ,alsa-lib)
1996 ("libid3tag" ,libid3tag)
1997 ("libltdl" ,libltdl)
2000 ("libvorbis" ,libvorbis)
2001 ("pulseaudio" ,pulseaudio)))
2002 (home-page "http://sox.sourceforge.net")
2003 (synopsis "Sound processing utility")
2005 "SoX (Sound eXchange) is a command line utility that can convert
2006 various formats of computer audio files to other formats. It can also
2007 apply various effects to these sound files, and, as an added bonus, SoX
2008 can play and record audio files.")
2009 ;; sox.c is distributed under GPL, while the files that make up
2010 ;; libsox are licensed under LGPL.
2011 (license (list license:gpl2+ license:lgpl2.1+))))
2021 (string-append "mirror://sourceforge/soxr/soxr-" version
2024 (base32 "1hmadwqfpg15vhwq9pa1sl5xslibrjpk6hpq2s9hfmx1s5l6ihfw"))))
2025 (build-system cmake-build-system)
2026 (arguments '(#:tests? #f)) ;no 'check' target
2027 (home-page "http://sourceforge.net/p/soxr/wiki/Home/")
2028 (synopsis "One-dimensional sample-rate conversion library")
2030 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2031 conversion. It may be used, for example, to resample PCM-encoded audio.")
2032 (license license:lgpl2.1+)))
2034 (define-public twolame
2041 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2042 "/twolame-" version ".tar.gz"))
2044 (base32 "0ahiqqng5pidwhj1wzph4vxxgxxgcfa3gl0gywipzx2ii7s35wwq"))))
2045 (build-system gnu-build-system)
2047 `(("libsndfile" ,libsndfile)))
2050 ("which" ,which))) ;used in tests/test.pl
2051 (home-page "http://www.twolame.org/")
2052 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2054 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2055 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2057 (license license:lgpl2.1+)))
2059 (define-public portaudio
2062 (version "19.20140130")
2067 "http://www.portaudio.com/archives/pa_stable_v"
2068 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2071 (base32 "0mwddk4qzybaf85wqfhxqlf0c5im9il8z03rd4n127k8y2jj9q4g"))
2072 (patches (search-patches "portaudio-audacity-compat.patch"))))
2073 (build-system gnu-build-system)
2075 ;; TODO: Add ASIHPI.
2076 `(("alsa-lib" ,alsa-lib)
2079 `(("autoconf" ,autoconf)
2080 ("automake" ,automake)
2081 ("libtool" ,libtool)
2082 ("pkg-config" ,pkg-config)))
2085 ;; Autoreconf is necessary because the audacity-compat patch modifies
2090 (zero? (system* "autoreconf" "-vif")))
2092 #:tests? #f)) ;no 'check' target
2093 (home-page "http://www.portaudio.com/")
2094 (synopsis "Audio I/O library")
2096 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2097 to record and/or play sound using a callback function or a blocking read/write
2099 (license license:expat)))
2101 (define-public qsynth
2108 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2109 "/qsynth-" version ".tar.gz"))
2111 (base32 "034p6mbwrjnxd9b6h20cidxi4ilkk3cgpjp154j0jzjs1ipf7x2h"))))
2112 (build-system gnu-build-system)
2114 `(#:tests? #f)) ; no "check" phase
2117 ("fluidsynth" ,fluidsynth)))
2118 (home-page "http://qsynth.sourceforge.net")
2119 (synopsis "Graphical user interface for FluidSynth")
2121 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2122 synthesizer written in C++.")
2123 (license license:gpl2+)))
2125 (define-public rsound
2132 (uri (string-append "https://github.com/Themaister/RSound/archive/v"
2134 (file-name (string-append name "-" version))
2136 (base32 "1wzs40c0k5zpkmm5ffl6c17xmr399sxli7ys0fbb9ib0fd334knx"))))
2137 (build-system gnu-build-system)
2139 `(("alsa-lib" ,alsa-lib)
2142 ("libsamplerate" ,libsamplerate)
2144 ("portaudio" ,portaudio)
2145 ("pulseaudio" ,pulseaudio)))
2150 (lambda* (#:key outputs #:allow-other-keys)
2153 (system* "./configure"
2154 (string-append "--prefix=" (assoc-ref outputs "out")))))
2156 ;; No 'check' target.
2158 (home-page "http://themaister.net/rsound.html")
2159 (synopsis "Networked audio system")
2161 "RSound allows you to send audio from an application and transfer it
2162 directly to a different computer on your LAN network. It is an audio daemon
2163 with a much different focus than most other audio daemons.")
2164 (license license:gpl3+)))
2166 (define-public xjackfreak
2173 "https://github.com/johnhldavis/xjackfreak/archive/v"
2175 (file-name (string-append name "-" version ".tar.gz"))
2178 "0xj6gpxfnw9jbdgwgm0x23xgfvj2kwmwb1nk0drw8lxgcchkq7d9"))))
2179 (build-system gnu-build-system)
2182 (list (string-append "docdir=" (assoc-ref %outputs "out")
2183 "/share/doc/xjackfreak"))))
2188 ("libxext" ,libxext)))
2190 `(("pkg-config" ,pkg-config)))
2191 (home-page "https://github.com/johnhldavis/xjackfreak")
2192 (synopsis "JACK audio frequency analyzer and display")
2194 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
2195 Connection Kit. It can display the FFT of any input, modify it and output the
2197 (license license:gpl3+)))
2199 (define-public zita-convolver
2201 (name "zita-convolver")
2206 "http://kokkinizita.linuxaudio.org"
2207 "/linuxaudio/downloads/zita-convolver-"
2208 version ".tar.bz2"))
2210 ;; Don't optimize for a specific processor architecture.
2211 '(substitute* "libs/Makefile"
2212 (("^CXXFLAGS \\+= -march=native") "")))
2213 (modules '((guix build utils)))
2216 "14qrnczhp5mbwhky64il7kxc4hl1mmh495v60va7i2qnhasr6zmz"))))
2217 (build-system gnu-build-system)
2219 `(#:tests? #f ; no "check" target
2220 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2223 'unpack 'patch-makefile-and-enter-directory
2225 (substitute* "libs/Makefile"
2226 (("ldconfig") "true")
2227 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2233 (symlink "libzita-convolver.so"
2234 (string-append (assoc-ref %outputs "out")
2235 "/lib/libzita-convolver.so.3")))
2236 ;; no configure script
2237 (alist-delete 'configure %standard-phases)))))
2238 (inputs `(("fftwf" ,fftwf)))
2239 (home-page "http://kokkinizita.linuxaudio.org")
2240 (synopsis "Fast, partitioned convolution engine library")
2242 "Zita convolver is a C++ library providing a real-time convolution
2244 (license license:gpl3+)))
2246 (define-public zita-resampler
2248 (name "zita-resampler")
2253 "http://kokkinizita.linuxaudio.org"
2254 "/linuxaudio/downloads/zita-resampler-"
2255 version ".tar.bz2"))
2257 ;; Don't optimize for a specific processor architecture.
2258 '(substitute* '("apps/Makefile" "libs/Makefile")
2259 (("^CXXFLAGS \\+= -march=native") "")))
2260 (modules '((guix build utils)))
2263 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
2264 (build-system gnu-build-system)
2266 `(#:tests? #f ; no "check" target
2267 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2269 (modify-phases %standard-phases
2271 'unpack 'patch-makefile-and-enter-directory
2273 (substitute* "libs/Makefile"
2274 (("ldconfig") "true")
2275 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2279 'install 'install-symlink
2281 (symlink "libzita-resampler.so"
2282 (string-append (assoc-ref %outputs "out")
2283 "/lib/libzita-resampler.so.1"))))
2284 ;; no configure script
2285 (delete 'configure))))
2286 (home-page "http://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
2287 (synopsis "C++ library for resampling audio signals")
2289 "Libzita-resampler is a C++ library for resampling audio signals. It is
2290 designed to be used within a real-time processing context, to be fast, and to
2291 provide high-quality sample rate conversion.")
2292 (license license:gpl3+)))
2294 (define-public zita-alsa-pcmi
2296 (name "zita-alsa-pcmi")
2301 "http://kokkinizita.linuxaudio.org"
2302 "/linuxaudio/downloads/zita-alsa-pcmi-"
2303 version ".tar.bz2"))
2306 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
2307 (build-system gnu-build-system)
2309 `(#:tests? #f ; no "check" target
2310 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2313 'unpack 'patch-makefile-and-enter-directory
2315 (substitute* "libs/Makefile"
2316 (("ldconfig") "true")
2317 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2324 (symlink "libzita-alsa-pcmi.so"
2325 (string-append (assoc-ref %outputs "out")
2326 "/lib/libzita-alsa-pcmi.so.0")))
2327 ;; no configure script
2328 (alist-delete 'configure %standard-phases)))))
2330 `(("alsa-lib" ,alsa-lib)
2332 (home-page "http://kokkinizita.linuxaudio.org")
2333 (synopsis "C++ wrapper around the ALSA API")
2335 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
2336 access to ALSA PCM devices, taking care of the many functions required to
2337 open, initialise and use a hw: device in mmap mode, and providing floating
2339 (license license:gpl3+)))
2341 (define-public cuetools
2347 (uri (string-append "https://github.com/svend/cuetools/archive/"
2349 (file-name (string-append name "-" version ".tar.gz"))
2352 "01xi3rvdmil9nawsha04iagjylqr1l9v9vlzk99scs8c207l58i4"))))
2353 (build-system gnu-build-system)
2354 ;; The source tarball is not bootstrapped.
2357 (modify-phases %standard-phases
2358 (add-after 'unpack 'bootstrap
2359 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
2360 ;; Bootstrapping tools
2362 `(("autoconf" ,autoconf)
2363 ("automake" ,automake)
2366 (synopsis "Cue and toc file parsers and utilities")
2367 (description "Cuetools is a set of programs that are useful for manipulating
2368 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
2369 files are a way to represent the layout of a data or audio CD in a
2370 machine-readable ASCII format.")
2371 (home-page "https://github.com/svend/cuetools")
2372 (license license:gpl2+)))
2374 (define-public shntool
2380 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
2381 "shntool-" version ".tar.gz"))
2384 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
2385 (build-system gnu-build-system)
2386 (synopsis "WAVE audio data processing tool")
2387 (description "shntool is a multi-purpose WAVE data processing and reporting
2388 utility. File formats are abstracted from its core, so it can process any file
2389 that contains WAVE data, compressed or not---provided there exists a format
2390 module to handle that particular file type.")
2391 (home-page "http://etree.org/shnutils/shntool/")
2392 ;; 'install-sh' bears the x11 license
2393 (license (list license:gpl2+ license:x11))))
2395 (define-public dcadec
2401 (uri (string-append "https://github.com/foo86/dcadec/archive/v"
2403 (file-name (string-append name "-" version ".tar.gz"))
2406 "0i0dpypgqkhhi4v1fmsp2way6w9kbcix3c7q79pmg39yvrzj17gd"))))
2407 (build-system gnu-build-system)
2409 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
2413 ;; Build shared library.
2415 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2416 ;; Set proper runpath.
2417 (string-append "LDFLAGS=-Wl,-rpath="
2418 (assoc-ref %outputs "out")
2421 (modify-phases %standard-phases
2422 ;; No configure script, just a hand-written Makefile.
2423 (delete 'configure))))
2424 (synopsis "DTS Coherent Acoustics decoder")
2425 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
2426 with support for HD extensions.")
2427 (home-page "https://github.com/foo86/dcadec")
2428 (license license:lgpl2.1+)))
2430 (define-public bs1770gain
2437 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
2438 version "/bs1770gain-" version ".tar.gz"))
2441 "1syr8qchs8091z9ayivj723szlidx81gll099bmk9kgpykmckd62"))))
2442 (build-system gnu-build-system)
2443 (inputs `(("ffmpeg" ,ffmpeg)
2445 (home-page "http://bs1770gain.sourceforge.net/")
2446 (synopsis "Tool to adjust loudness of media files")
2448 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
2449 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
2450 loudness of audio and video files to the same level.")
2451 (license license:gpl2+)))