gnu: ardour: Add eudev dependency.
[jackhill/guix/guix.git] / gnu / packages / audio.scm
CommitLineData
fb68469f 1;;; GNU Guix --- Functional package management for GNU
b16043a3 2;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
9f1cdd9d 3;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
0390a520 4;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
d739f481 5;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
1207a0c3 6;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
df9031e1 7;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
eb5378f9 8;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
c2b411c2 9;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
9a4c032c 10;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
2df984f2 11;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
fb68469f
RW
12;;;
13;;; This file is part of GNU Guix.
14;;;
15;;; GNU Guix is free software; you can redistribute it and/or modify it
16;;; under the terms of the GNU General Public License as published by
17;;; the Free Software Foundation; either version 3 of the License, or (at
18;;; your option) any later version.
19;;;
20;;; GNU Guix is distributed in the hope that it will be useful, but
21;;; WITHOUT ANY WARRANTY; without even the implied warranty of
22;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23;;; GNU General Public License for more details.
24;;;
25;;; You should have received a copy of the GNU General Public License
26;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
27
28(define-module (gnu packages audio)
29 #:use-module (guix packages)
30 #:use-module (guix download)
31 #:use-module (guix git-download)
d49976ed 32 #:use-module (guix utils)
fb68469f
RW
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (guix build-system gnu)
c54a8981 35 #:use-module (guix build-system waf)
7c92efff 36 #:use-module (guix build-system trivial)
4bddd14c 37 #:use-module (guix build-system cmake)
a91d72e2 38 #:use-module (guix build-system python)
fb68469f 39 #:use-module (gnu packages)
d55f912a 40 #:use-module (gnu packages algebra)
9f1cdd9d 41 #:use-module (gnu packages autotools)
fcbeb00b 42 #:use-module (gnu packages avahi)
88efb2c3 43 #:use-module (gnu packages boost)
a76abae1 44 #:use-module (gnu packages backup)
7c92efff 45 #:use-module (gnu packages base)
fda85ca6 46 #:use-module (gnu packages bison)
971ebdc8 47 #:use-module (gnu packages check)
7c92efff 48 #:use-module (gnu packages compression)
88efb2c3 49 #:use-module (gnu packages curl)
fb68469f 50 #:use-module (gnu packages databases)
8ae60404 51 #:use-module (gnu packages emacs)
754a98ae 52 #:use-module (gnu packages file)
fda85ca6 53 #:use-module (gnu packages flex)
11d4800a
RW
54 #:use-module (gnu packages fltk)
55 #:use-module (gnu packages fontutils)
fda85ca6 56 #:use-module (gnu packages gettext)
88efb2c3 57 #:use-module (gnu packages glib)
f3ab6ad3 58 #:use-module (gnu packages gtk)
88efb2c3 59 #:use-module (gnu packages gnome)
8ae60404 60 #:use-module (gnu packages gnunet) ; libmicrohttpd
fcbeb00b 61 #:use-module (gnu packages gperf)
d739f481 62 #:use-module (gnu packages image)
9ffee457 63 #:use-module (gnu packages ncurses)
f3ab6ad3 64 #:use-module (gnu packages qt)
c54a8981 65 #:use-module (gnu packages linux)
8ae60404 66 #:use-module (gnu packages llvm)
88efb2c3
RW
67 #:use-module (gnu packages mp3) ;taglib
68 #:use-module (gnu packages perl)
c54a8981
RW
69 #:use-module (gnu packages pkg-config)
70 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
d55f912a 71 #:use-module (gnu packages python)
5279eb6f 72 #:use-module (gnu packages rdf)
c54a8981 73 #:use-module (gnu packages readline)
8ae60404 74 #:use-module (gnu packages tls)
e87c7ec2 75 #:use-module (gnu packages video)
8ae60404 76 #:use-module (gnu packages vim) ;xxd
02979664 77 #:use-module (gnu packages webkit)
c54a8981 78 #:use-module (gnu packages xiph)
da49086a 79 #:use-module (gnu packages xml)
caf9055c 80 #:use-module (gnu packages xorg)
70fc29d9 81 #:use-module (gnu packages zip)
da49086a 82 #:use-module (srfi srfi-1))
fb68469f 83
eb0fb087
RW
84(define-public alsa-modular-synth
85 (package
86 (name "alsa-modular-synth")
61eecd71 87 (version "2.1.2")
eb0fb087
RW
88 (source (origin
89 (method url-fetch)
de67e922
LF
90 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
91 "/" version "/ams-" version ".tar.bz2"))
eb0fb087
RW
92 (sha256
93 (base32
61eecd71 94 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
eb0fb087 95 (build-system gnu-build-system)
ee6a88b1 96 (arguments
6670c99c
DC
97 `(#:configure-flags
98 '("--enable-qt5"
99 "CXXFLAGS=-std=gnu++11")
afadb05e
RW
100 #:phases
101 (modify-phases %standard-phases
102 ;; Insert an extra space between linker flags.
103 (add-before 'configure 'add-missing-space
104 (lambda _
105 (substitute* "configure"
106 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
107 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
108 #t)))))
eb0fb087
RW
109 (inputs
110 `(("alsa-lib" ,alsa-lib)
111 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
112 ;; license incompatibility.
113 ("clalsadrv" ,clalsadrv)
114 ("fftw" ,fftw)
115 ("jack" ,jack-1)
116 ("ladspa" ,ladspa)
117 ("liblo" ,liblo)
df9031e1
EF
118 ("qtbase" ,qtbase)
119 ("qttools" ,qttools)))
eb0fb087
RW
120 (native-inputs
121 `(("pkg-config" ,pkg-config)))
122 (home-page "http://alsamodular.sourceforge.net/")
123 (synopsis "Realtime modular synthesizer and effect processor")
124 (description
125 "AlsaModularSynth is a digital implementation of a classical analog
126modular synthesizer system. It uses virtual control voltages to control the
127parameters of the modules. The control voltages which control the frequency
128e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
129Filter) modules follow the convention of 1V / Octave.")
130 (license license:gpl2)))
131
d55f912a
RW
132(define-public aubio
133 (package
134 (name "aubio")
135 (version "0.4.1")
136 (source (origin
137 (method url-fetch)
138 (uri (string-append
139 "http://aubio.org/pub/aubio-" version ".tar.bz2"))
140 (sha256
141 (base32
142 "15f6nf76y7iyl2kl4ny7ky0zpxfxr8j3902afvd6ydnnkh5dzmr5"))))
143 (build-system waf-build-system)
144 (arguments
145 `(#:tests? #f ; no check target
146 #:configure-flags
147 '("--enable-fftw3f"
148 "--enable-jack"
149 "--enable-sndfile"
150 "--enable-samplerate"
151 ;; enable compilation with avcodec once available
152 "--disable-avcodec")
153 #:python ,python-2))
154 (inputs
155 `(("jack" ,jack-1)
d55f912a
RW
156 ("libsndfile" ,libsndfile)
157 ("libsamplerate" ,libsamplerate)
158 ("fftwf" ,fftwf)))
159 (native-inputs
160 `(("pkg-config" ,pkg-config)))
161 (home-page "http://aubio.org/")
a124bbd2 162 (synopsis "Library for audio labelling")
d55f912a
RW
163 (description
164 "aubio is a tool designed for the extraction of annotations from audio
165signals. Its features include segmenting a sound file before each of its
166attacks, performing pitch detection, tapping the beat and producing MIDI
167streams from live audio.")
168 (license license:gpl3+)))
169
d49976ed
RW
170(define (ardour-rpath-phase major-version)
171 `(lambda* (#:key outputs #:allow-other-keys)
172 (let ((libdir (string-append (assoc-ref outputs "out")
173 "/lib/ardour" ,major-version)))
174 (substitute* "wscript"
175 (("linker_flags = \\[\\]")
176 (string-append "linker_flags = [\""
177 "-Wl,-rpath="
178 libdir ":"
179 libdir "/backends" ":"
180 libdir "/engines" ":"
181 libdir "/panners" ":"
182 libdir "/surfaces" ":"
183 libdir "/vamp" "\"]"))))
184 #t))
185
60725232 186(define-public ardour
88efb2c3
RW
187 (package
188 (name "ardour")
02ecdeaa 189 (version "5.5")
88efb2c3 190 (source (origin
88efb2c3
RW
191 (method git-fetch)
192 (uri (git-reference
193 (url "git://git.ardour.org/ardour/ardour.git")
194 (commit version)))
195 (snippet
b16043a3
RW
196 ;; Ardour expects this file to exist at build time. The revision
197 ;; is the output of
198 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
02ecdeaa 199 `(call-with-output-file
88efb2c3
RW
200 "libs/ardour/revision.cc"
201 (lambda (port)
02ecdeaa
DT
202 (format port ,(string-append "#include \"ardour/revision.h\"
203namespace ARDOUR { const char* revision = \"" version "\" ; }")))))
88efb2c3
RW
204 (sha256
205 (base32
02ecdeaa 206 "1a3whv2dhl073pkd803hcp53rdmm31adjwn40qi06lkjb7rgwrlh"))
88efb2c3
RW
207 (file-name (string-append name "-" version))))
208 (build-system waf-build-system)
209 (arguments
b5fc72ff
RW
210 `(#:configure-flags '("--cxx11" ; required by gtkmm
211 "--no-phone-home") ; don't contact ardour.org
92e4fbe2 212 #:phases
21481a28
RW
213 (modify-phases %standard-phases
214 (add-after
215 'unpack 'set-rpath-in-LDFLAGS
d49976ed 216 ,(ardour-rpath-phase (version-prefix version 1))))
21481a28 217 #:tests? #f ; no check target
88efb2c3
RW
218 #:python ,python-2))
219 (inputs
220 `(("alsa-lib" ,alsa-lib)
221 ("aubio" ,aubio)
222 ("lrdf" ,lrdf)
223 ("boost" ,boost)
224 ("atkmm" ,atkmm)
225 ("cairomm" ,cairomm)
c5edbb97 226 ("eudev" ,eudev)
88efb2c3
RW
227 ("gtkmm" ,gtkmm-2)
228 ("glibmm" ,glibmm)
229 ("libart-lgpl" ,libart-lgpl)
230 ("libgnomecanvasmm" ,libgnomecanvasmm)
231 ("pangomm" ,pangomm)
232 ("liblo" ,liblo)
233 ("libsndfile" ,libsndfile)
234 ("libsamplerate" ,libsamplerate)
235 ("libxml2" ,libxml2)
236 ("libogg" ,libogg)
237 ("libvorbis" ,libvorbis)
238 ("flac" ,flac)
239 ("lv2" ,lv2)
240 ("vamp" ,vamp)
241 ("curl" ,curl)
c96cb01a
DC
242 ("fftw" ,fftw)
243 ("fftwf" ,fftwf)
88efb2c3
RW
244 ("jack" ,jack-1)
245 ("serd" ,serd)
246 ("sord" ,sord)
247 ("sratom" ,sratom)
248 ("suil" ,suil)
249 ("lilv" ,lilv)
971ebdc8 250 ("readline" ,readline)
88efb2c3
RW
251 ("redland" ,redland)
252 ("rubberband" ,rubberband)
a76abae1 253 ("libarchive" ,libarchive)
88efb2c3
RW
254 ("taglib" ,taglib)
255 ("python-rdflib" ,python-rdflib)))
256 (native-inputs
257 `(("perl" ,perl)
971ebdc8 258 ("cppunit" ,cppunit)
88efb2c3
RW
259 ("pkg-config" ,pkg-config)))
260 (home-page "http://ardour.org")
261 (synopsis "Digital audio workstation")
262 (description
263 "Ardour is a multi-channel digital audio workstation, allowing users to
264record, edit, mix and master audio and MIDI projects. It is targeted at audio
265engineers, musicians, soundtrack editors and composers.")
266 (license license:gpl2+)))
267
497e9a82
RW
268(define-public azr3
269 (package
270 (name "azr3")
271 (version "1.2.3")
272 (source (origin
273 (method url-fetch)
274 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
275 version
276 ".tar.bz2"))
277 (sha256
278 (base32
204adc30
RW
279 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
280 (patches (search-patches "azr3.patch"))))
497e9a82
RW
281 (build-system gnu-build-system)
282 (arguments
283 `(#:tests? #f ; no check target
284 #:make-flags
285 (list "LV2PEG=ttl2c"
204adc30
RW
286 "CXXFLAGS=-std=gnu++11"
287 "CFLAGS=-std=gnu++11"
497e9a82
RW
288 (string-append "prefix=" %output)
289 (string-append "pkgdatadir=" %output "/share/azr3-jack"))))
290 (inputs
291 `(("gtkmm" ,gtkmm-2)
292 ("lvtk" ,lvtk)
293 ("jack" ,jack-1)
f753846b 294 ("lash" ,lash)))
497e9a82
RW
295 (native-inputs
296 `(("pkg-config" ,pkg-config)))
297 (home-page "http://ll-plugins.nongnu.org/azr3/")
298 (synopsis "Tonewheel organ synthesizer")
299 (description
300 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
301with drawbars, distortion and rotating speakers. The organ has three
302sections, two polyphonic sections with nine drawbars each and one monophonic
303bass section with five drawbars. A standalone JACK application and LV2
304plugins are provided.")
305 (license license:gpl2)))
306
f62a8417
RW
307(define-public calf
308 (package
309 (name "calf")
310 (version "0.0.60")
311 (source (origin
312 (method url-fetch)
73cea74d
RW
313 (uri (string-append "http://calf-studio-gear.org/files/calf-"
314 version ".tar.gz"))
f62a8417
RW
315 (sha256
316 (base32
317 "019fwg00jv217a5r767z7szh7vdrarybac0pr2sk26xp81kibrx9"))))
318 (build-system gnu-build-system)
319 (inputs
320 `(("fluidsynth" ,fluidsynth)
321 ("expat" ,expat)
322 ("glib" ,glib)
323 ("gtk" ,gtk+-2)
324 ("cairo" ,cairo)
325 ("lash" ,lash)
326 ("jack" ,jack-1)
327 ("lv2" ,lv2)
328 ("ladspa" ,ladspa)
329 ("fftw" ,fftw)))
330 (native-inputs
331 `(("pkg-config" ,pkg-config)))
332 (native-search-paths
333 (list (search-path-specification
334 (variable "LV2_PATH")
335 (files '("lib/lv2")))))
336 (home-page "http://calf.sourceforge.net/")
337 (synopsis "Audio plug-in pack for LV2 and JACK environments")
338 (description
339 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
340The suite contains lots of effects (delay, modulation, signal processing,
341filters, equalizers, dynamics, distortion and mastering effects),
342instruments (SF2 player, organ simulator and a monophonic synthesizer) and
343tools (analyzer, mono/stereo tools, crossovers).")
344 ;; calfjackhost is released under GPLv2+
345 ;; The plugins are released under LGPLv2.1+
346 (license (list license:lgpl2.1+ license:gpl2+))))
347
c3cc7d41
KK
348(define-public espeak
349 (package
350 (name "espeak")
351 (version "1.48.04")
352 (source (origin
353 (method url-fetch)
354 (uri (string-append "mirror://sourceforge/espeak/espeak/"
355 "espeak-" (version-major+minor version)
356 "/espeak-" version "-source.zip"))
357 (sha256
358 (base32
359 "0n86gwh9pw0jqqpdz7mxggllfr8k0r7pc67ayy7w5z6z79kig6mz"))
360 (modules '((guix build utils)))
361 (snippet
362 ;; remove prebuilt binaries
363 '(delete-file-recursively "linux_32bit"))))
364 (build-system gnu-build-system)
365 (arguments
366 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
367 (string-append "DATADIR="
368 (assoc-ref %outputs "out")
369 "/share/espeak-data")
370 (string-append "LDFLAGS=-Wl,-rpath="
371 (assoc-ref %outputs "out")
372 "/lib")
373 "AUDIO=pulseaudio")
374 #:tests? #f ; no check target
375 #:phases
376 (modify-phases %standard-phases
377 (replace 'configure
378 (lambda _
379 (chdir "src")
380 ;; We use version 19 of the PortAudio library, so we must copy the
381 ;; corresponding file to be sure that espeak compiles correctly.
382 (copy-file "portaudio19.h" "portaudio.h")
383 (substitute* "Makefile"
384 (("/bin/ln") "ln"))
385 #t)))))
386 (inputs
387 `(("portaudio" ,portaudio)
388 ("pulseaudio" ,pulseaudio)))
389 (native-inputs `(("unzip" ,unzip)))
390 (home-page "http://espeak.sourceforge.net/")
391 (synopsis "Software speech synthesizer")
392 (description "eSpeak is a software speech synthesizer for English and
393other languages. eSpeak uses a \"formant synthesis\" method. This allows many
394languages to be provided in a small size. The speech is clear, and can be used
395at high speeds, but is not as natural or smooth as larger synthesizers which are
396based on human speech recordings.")
397 (license license:gpl3+)))
398
8f941dd2
RW
399(define-public infamous-plugins
400 (package
401 (name "infamous-plugins")
402 (version "0.2.02")
403 (source (origin
404 (method url-fetch)
405 (uri (string-append "https://github.com/ssj71/infamousPlugins/"
406 "archive/v" version ".tar.gz"))
407 (file-name (string-append name "-" version ".tar.gz"))
408 (sha256
409 (base32
410 "0qm3ak07vc1l3f5c3c2lq9gkfknlxwn8ks03cysw1pk8hj7dwnv6"))))
411 (build-system cmake-build-system)
d6618941
EF
412 (arguments
413 `(#:tests? #f ; There are no tests
414 #:phases
415 (modify-phases %standard-phases
416 (add-after 'unpack 'remove-compiler-flags
417 (lambda _
418 (substitute* '("src/casynth/CMakeLists.txt"
419 "src/cheapdist/CMakeLists.txt"
420 "src/duffer/CMakeLists.txt"
421 "src/envfollower/CMakeLists.txt"
422 "src/ewham/CMakeLists.txt"
423 "src/hip2b/CMakeLists.txt"
424 "src/lushlife/CMakeLists.txt"
425 "src/powercut/CMakeLists.txt"
426 "src/powerup/CMakeLists.txt"
427 "src/stuck/CMakeLists.txt")
428 (("-msse2 -mfpmath=sse") ""))
429 #t)))))
8f941dd2
RW
430 (inputs
431 `(("cairo" ,cairo)
432 ("fftwf" ,fftwf)
433 ("lv2" ,lv2)
434 ("ntk" ,ntk)
435 ("zita-resampler" ,zita-resampler)))
436 (native-inputs
437 `(("pkg-config" ,pkg-config)))
438 (home-page "http://ssj71.github.io/infamousPlugins")
439 (synopsis "LV2 plugins for live use")
440 (description
441 "The infamous plugins are a collection of LV2 audio plugins for live
442performances. The plugins include a cellular automaton synthesizer, an
443envelope follower, distortion effects, tape effects and more.")
444 (license license:gpl2+)))
445
18f3d92b
FPS
446(define-public swh-plugins-lv2
447 (package
448 (name "swh-plugins-lv2")
449 (version "1.0.16")
450 (source (origin
451 (method url-fetch)
452 (uri (string-append "https://github.com/swh/"
453 "lv2/archive/v" version ".tar.gz"))
454 (file-name (string-append name "-" version ".tar.gz"))
455 (sha256
456 (base32
457 "0j1mih0lp4fds07knp5i32in515sh0df1qi6694pmyz2wqnm295w"))))
458 (build-system gnu-build-system)
459 (arguments
460 `(#:tests? #f ; no check target
461 #:make-flags (list "CC=gcc"
462 (string-append "PREFIX="
463 (assoc-ref %outputs "out")))
464 #:phases
465 (modify-phases %standard-phases
466 ;; no configure script
467 (delete 'configure)
468 (add-after 'unpack 'patch-makefile-and-enter-directory
469 ;; The default install target doesn't install, but the
470 ;; "install-system" target does.
471 (lambda _
472 (substitute* "Makefile"
473 (("install:") "install: install-system"))
474 #t)))))
475 (inputs
476 `(("lv2" ,lv2)
477 ("fftwf" ,fftwf)))
478 (native-inputs
479 `(("libxslt" ,libxslt)
480 ("pkg-config" ,pkg-config)))
481 (home-page "http://plugin.org.uk")
482 (synopsis "SWH plugins in LV2 format")
483 (description
484 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
485classes include: dynamics (compressor, limiter), time (delay, chorus,
486flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
487emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
488 (license license:gpl3+)))
489
fda85ca6
RW
490(define-public csound
491 (package
492 (name "csound")
efd37722 493 (version "6.05")
fda85ca6
RW
494 (source (origin
495 (method url-fetch)
496 (uri (string-append
497 "mirror://sourceforge/csound/csound6/Csound"
498 version "/Csound" version ".tar.gz"))
499 (sha256
500 (base32
c91d3fb7 501 "0a1sni6lr7qpwywpggbkp0ia3h9bwwgf9i87gsag8ra2h30v82hd"))
fc1adab1 502 (patches (search-patches "csound-header-ordering.patch"))))
fda85ca6 503 (build-system cmake-build-system)
00c16d5b
LC
504 (arguments
505 ;; Work around this error on x86_64 with libc 2.22+:
506 ;; libmvec.so.1: error adding symbols: DSO missing from command line
507 (if (string-prefix? "x86_64" (or (%current-target-system) (%current-system)))
508 '(#:configure-flags '("-DCMAKE_EXE_LINKER_FLAGS=-lmvec"))
509 '()))
fda85ca6
RW
510 (inputs
511 `(("alsa-lib" ,alsa-lib)
512 ("boost" ,boost)
513 ("pulseaudio" ,pulseaudio)
514 ("libsndfile" ,libsndfile)
515 ("liblo" ,liblo)
516 ("ladspa" ,ladspa)
517 ("jack" ,jack-1)
b94a6ca0 518 ("gettext" ,gettext-minimal)))
fda85ca6
RW
519 (native-inputs
520 `(("bison" ,bison)
521 ("flex" ,flex)
522 ("zlib" ,zlib)))
523 (home-page "http://csound.github.io/")
524 (synopsis "Sound and music computing system")
525 (description
526 "Csound is a user-programmable and user-extensible sound processing
527language and software synthesizer.")
528 (license license:lgpl2.1+)))
529
631ac903
RW
530(define-public clalsadrv
531 (package
532 (name "clalsadrv")
533 (version "2.0.0")
534 (source (origin
535 (method url-fetch)
536 (uri (string-append
537 "http://kokkinizita.linuxaudio.org"
538 "/linuxaudio/downloads/clalsadrv-"
539 version ".tar.bz2"))
540 (sha256
541 (base32
9de2e43c 542 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
631ac903
RW
543 (build-system gnu-build-system)
544 (arguments
545 `(#:tests? #f ; no "check" target
546 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
547 #:phases
548 (alist-cons-after
9de2e43c
RW
549 'unpack 'patch-makefile-and-enter-directory
550 (lambda _
551 (substitute* "libs/Makefile"
552 (("/sbin/ldconfig") "true")
553 (("^LIBDIR =.*") "LIBDIR = lib\n"))
554 (chdir "libs")
555 #t)
631ac903
RW
556 (alist-cons-after
557 'install
558 'install-symlink
559 (lambda _
560 (symlink "libclalsadrv.so"
561 (string-append (assoc-ref %outputs "out")
562 "/lib/libclalsadrv.so.2")))
563 ;; no configure script
564 (alist-delete 'configure %standard-phases)))))
565 (inputs
566 `(("alsa-lib" ,alsa-lib)
567 ("fftw" ,fftw)))
568 (home-page "http://kokkinizita.linuxaudio.org")
569 (synopsis "C++ wrapper around the ALSA API")
570 (description
571 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
572ALSA PCM devices.")
573 (license license:gpl2+)))
574
8ba62f92
RW
575(define-public amb-plugins
576 (package
577 (name "amb-plugins")
578 (version "0.8.1")
579 (source (origin
580 (method url-fetch)
581 (uri (string-append
582 "http://kokkinizita.linuxaudio.org"
583 "/linuxaudio/downloads/AMB-plugins-"
584 version ".tar.bz2"))
585 (sha256
586 (base32
587 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
588 (build-system gnu-build-system)
589 (arguments
590 `(#:tests? #f ; no "check" target
591 #:phases
592 (modify-phases %standard-phases
593 ;; no configure script
594 (delete 'configure)
595 (add-before 'install 'prepare-target-directory
596 (lambda* (#:key outputs #:allow-other-keys)
597 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
598 #t))
599 (add-after 'unpack 'override-target-directory-and-tool-paths
600 (lambda* (#:key outputs #:allow-other-keys)
601 (substitute* "Makefile"
602 (("/usr/lib/ladspa")
603 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
604 (("/usr/bin/install") (which "install"))
605 (("/bin/rm") "#"))
606 #t)))))
607 (home-page "http://kokkinizita.linuxaudio.org")
608 (synopsis "LADSPA ambisonics plugins")
609 (description
610 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
611used within Ardour. Features include: mono and stereo to B-format panning,
612horizontal rotator, square, hexagon and cube decoders.")
613 (license license:gpl2+)))
614
fb2e072c
RW
615(define-public mcp-plugins
616 (package
617 (name "mcp-plugins")
618 (version "0.4.0")
619 (source (origin
620 (method url-fetch)
621 (uri (string-append
622 "http://kokkinizita.linuxaudio.org"
623 "/linuxaudio/downloads/MCP-plugins-"
624 version ".tar.bz2"))
625 (sha256
626 (base32
627 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
628 (build-system gnu-build-system)
629 (arguments
630 `(#:tests? #f ; no "check" target
631 #:phases
632 (modify-phases %standard-phases
633 ;; no configure script
634 (delete 'configure)
635 (add-before 'install 'prepare-target-directory
636 (lambda* (#:key outputs #:allow-other-keys)
637 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
638 #t))
639 (add-after 'unpack 'override-target-directory
640 (lambda* (#:key outputs #:allow-other-keys)
641 (substitute* "Makefile"
642 (("/usr") (assoc-ref outputs "out")))
643 #t)))))
644 (home-page "http://kokkinizita.linuxaudio.org")
645 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
646 (description
647 "This package provides various LADSPA plugins. @code{cs_chorus} and
648@code{cs_phaser} provide chorus and phaser effects, respectively;
649@code{mvclpf24} provides four implementations of the low-pass filter used in
650vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
651high-pass filter by Robert Moog. The filters attempt to accurately emulate
652the non-linear circuit elements of their original analog counterparts.")
653 (license license:gpl2+)))
654
dffb6c3b
RW
655(define-public rev-plugins
656 (package
657 (name "rev-plugins")
658 (version "0.7.1")
659 (source (origin
660 (method url-fetch)
661 (uri (string-append
662 "http://kokkinizita.linuxaudio.org"
663 "/linuxaudio/downloads/REV-plugins-"
664 version ".tar.bz2"))
665 (sha256
666 (base32
667 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
668 (build-system gnu-build-system)
669 (arguments
670 `(#:tests? #f ; no "check" target
671 #:phases
672 (modify-phases %standard-phases
673 ;; no configure script
674 (delete 'configure)
675 (add-before 'install 'prepare-target-directory
676 (lambda* (#:key outputs #:allow-other-keys)
677 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
678 #t))
679 (add-after 'unpack 'override-target-directory
680 (lambda* (#:key outputs #:allow-other-keys)
681 (substitute* "Makefile"
682 (("/usr") (assoc-ref outputs "out")))
683 #t)))))
684 (home-page "http://kokkinizita.linuxaudio.org")
685 (synopsis "LADSPA reverb plugin")
686 (description
687 "This package provides a stereo reverb LADSPA plugin based on the
688well-known greverb.")
689 (license license:gpl2+)))
690
75f45d16
RW
691(define-public fil-plugins
692 (package
693 (name "fil-plugins")
694 (version "0.3.0")
695 (source (origin
696 (method url-fetch)
697 (uri (string-append
698 "http://kokkinizita.linuxaudio.org"
699 "/linuxaudio/downloads/FIL-plugins-"
700 version ".tar.bz2"))
701 (sha256
702 (base32
703 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
704 (build-system gnu-build-system)
705 (arguments
706 `(#:tests? #f ; no "check" target
707 #:phases
708 (modify-phases %standard-phases
709 ;; no configure script
710 (delete 'configure)
711 (add-before 'install 'prepare-target-directory
712 (lambda* (#:key outputs #:allow-other-keys)
713 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
714 #t))
715 (add-after 'unpack 'override-target-directory
716 (lambda* (#:key outputs #:allow-other-keys)
717 (substitute* "Makefile"
718 (("/usr") (assoc-ref outputs "out")))
719 #t)))))
720 (home-page "http://kokkinizita.linuxaudio.org")
721 (synopsis "LADSPA four-band parametric equalizer plugin")
722 (description
723 "This package provides a LADSPA plugin for a four-band parametric
724equalizer. Each section has an active/bypass switch, frequency, bandwidth and
725gain controls. There is also a global bypass switch and gain control.
726
727The 2nd order resonant filters are implemented using a Mitra-Regalia style
728lattice filter, which is stable even while parameters are being changed.
729
730All switches and controls are internally smoothed, so they can be used 'live'
731without any clicks or zipper noises. This makes this plugin suitable for use
732in systems that allow automation of plugin control ports, such as Ardour, or
733for stage use.")
734 (license license:gpl2+)))
735
c04b4e7a
RW
736(define-public ste-plugins
737 (package
738 (name "ste-plugins")
739 (version "0.0.2")
740 (source (origin
741 (method url-fetch)
742 (uri (string-append
743 "http://kokkinizita.linuxaudio.org"
744 "/linuxaudio/downloads/STE-plugins-"
745 version ".tar.bz2"))
746 (sha256
747 (base32
748 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
749 (build-system gnu-build-system)
750 (arguments
751 `(#:tests? #f ; no "check" target
752 #:phases
753 (modify-phases %standard-phases
754 ;; no configure script
755 (delete 'configure)
756 (add-before 'install 'prepare-target-directory
757 (lambda* (#:key outputs #:allow-other-keys)
758 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
759 #t))
760 (add-after 'unpack 'override-target-directory
761 (lambda* (#:key outputs #:allow-other-keys)
762 (substitute* "Makefile"
763 (("/usr") (assoc-ref outputs "out")))
764 #t)))))
765 (home-page "http://kokkinizita.linuxaudio.org")
766 (synopsis "LADSPA stereo width plugin")
767 (description
768 "This package provides a LADSPA plugin to manipulate the stereo width of
769audio signals.")
770 (license license:gpl2+)))
771
eb4fca7e
RW
772(define-public vco-plugins
773 (package
774 (name "vco-plugins")
775 (version "0.3.0")
776 (source (origin
777 (method url-fetch)
778 (uri (string-append
779 "http://kokkinizita.linuxaudio.org"
780 "/linuxaudio/downloads/VCO-plugins-"
781 version ".tar.bz2"))
782 (sha256
783 (base32
784 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
785 (build-system gnu-build-system)
786 (arguments
787 `(#:tests? #f ; no "check" target
788 #:phases
789 (modify-phases %standard-phases
790 ;; no configure script
791 (delete 'configure)
792 (add-before 'install 'prepare-target-directory
793 (lambda* (#:key outputs #:allow-other-keys)
794 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
795 #t))
796 (add-after 'unpack 'override-target-directory
797 (lambda* (#:key outputs #:allow-other-keys)
798 (substitute* "Makefile"
799 (("/usr") (assoc-ref outputs "out"))
800 (("/bin/cp") (which "cp")))
801 #t)))))
802 (home-page "http://kokkinizita.linuxaudio.org")
803 (synopsis "LADSPA plugin for synthesizer oscillators")
804 (description
805 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
806
807@enumerate
808@item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
809@item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
810@item Rec-VCO, a square / rectange oscillator
811@end enumerate\n
812
813All oscillators are low-pass filtered to provide waveforms similar to the
814output of analog synthesizers such as the Moog Voyager.")
815 (license license:gpl2+)))
816
5e3161d3
RW
817(define-public wah-plugins
818 (package
819 (name "wah-plugins")
820 (version "0.1.0")
821 (source (origin
822 (method url-fetch)
823 (uri (string-append
824 "http://kokkinizita.linuxaudio.org"
825 "/linuxaudio/downloads/WAH-plugins-"
826 version ".tar.bz2"))
827 (sha256
828 (base32
829 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
830 (build-system gnu-build-system)
831 (arguments
832 `(#:tests? #f ; no "check" target
833 #:phases
834 (modify-phases %standard-phases
835 ;; no configure script
836 (delete 'configure)
837 (add-before 'install 'prepare-target-directory
838 (lambda* (#:key outputs #:allow-other-keys)
839 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
840 #t))
841 (add-after 'unpack 'override-target-directory
842 (lambda* (#:key outputs #:allow-other-keys)
843 (substitute* "Makefile"
844 (("/usr") (assoc-ref outputs "out")))
845 #t)))))
846 (home-page "http://kokkinizita.linuxaudio.org")
847 (synopsis "LADSPA Autowah effect plugin")
848 (description
849 "This package provides a LADSPA plugin for a Wah effect with envelope
850follower.")
851 (license license:gpl2+)))
852
ed17465d
RW
853(define-public g2reverb
854 (package
855 (name "g2reverb")
856 (version "0.7.1")
857 (source (origin
858 (method url-fetch)
859 (uri (string-append
860 "http://kokkinizita.linuxaudio.org"
861 "/linuxaudio/downloads/g2reverb-"
862 version ".tar.bz2"))
863 (sha256
864 (base32
865 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
866 (build-system gnu-build-system)
867 (arguments
868 `(#:tests? #f ; no "check" target
869 #:phases
870 (modify-phases %standard-phases
871 ;; no configure script
872 (delete 'configure)
873 (add-before 'install 'prepare-target-directory
874 (lambda* (#:key outputs #:allow-other-keys)
875 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
876 #t))
877 (add-after 'unpack 'override-target-directory
878 (lambda* (#:key outputs #:allow-other-keys)
879 (substitute* "Makefile"
880 (("/usr") (assoc-ref outputs "out")))
881 #t)))))
882 (home-page "http://kokkinizita.linuxaudio.org")
883 (synopsis "LADSPA stereo reverb plugin")
884 (description
885 "This package provides a LADSPA plugin for a stereo reverb effect.")
886 (license license:gpl2+)))
887
e4f43b56
RW
888(define-public fluidsynth
889 (package
890 (name "fluidsynth")
891 (version "1.1.6")
892 (source (origin
893 (method url-fetch)
894 (uri (string-append
895 "mirror://sourceforge/fluidsynth/fluidsynth-"
896 version "/fluidsynth-" version ".tar.gz"))
897 (sha256
898 (base32
899 "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
900 (build-system gnu-build-system)
901 (arguments
902 `(#:phases
903 (alist-cons-after
904 'unpack
905 'remove-broken-symlinks
906 (lambda _ (delete-file-recursively "m4") #t)
907 %standard-phases)))
908 (inputs
909 `(("libsndfile" ,libsndfile)
910 ("alsa-lib" ,alsa-lib)
911 ("jack" ,jack-1)
912 ("ladspa" ,ladspa)
913 ("lash" ,lash)
914 ("readline" ,readline)
915 ("glib" ,glib)))
916 (native-inputs
917 `(("pkg-config" ,pkg-config)))
918 (home-page "http://www.fluidsynth.org/")
919 (synopsis "SoundFont synthesizer")
920 (description
921 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
922specifications. FluidSynth reads and handles MIDI events from the MIDI input
e881752c 923device. It is the software analogue of a MIDI synthesizer. FluidSynth can
e4f43b56
RW
924also play midifiles using a Soundfont.")
925 (license license:gpl2+)))
926
70fc29d9
TUBK
927(define-public faad2
928 (package
929 (name "faad2")
930 (version "2.7")
931 (source (origin
932 (method url-fetch)
de67e922
LF
933 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
934 version "/faad2-" version ".zip"))
70fc29d9
TUBK
935 (sha256
936 (base32
937 "16f3l16c00sg0wkrkm3vzv0gy3g97x309vw788igs0cap2x1ak3z"))))
938 (build-system gnu-build-system)
939 (native-inputs
940 `(("autoconf" ,autoconf)
941 ("automake" ,automake)
942 ("libtool" ,libtool)
943 ("unzip" ,unzip)))
944 (arguments
945 '(#:phases
946 (alist-cons-after
947 'unpack 'bootstrap
948 (lambda _
949 (substitute* "bootstrap" (("\r\n") "\n"))
950 (zero? (system* "sh" "bootstrap")))
951 %standard-phases)))
952 (home-page "http://www.audiocoding.com/faad2.html")
953 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
954 (description
955 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
956PS, and DAB+.")
957 (license license:gpl2)))
958
777291f0
RW
959(define-public faust
960 (package
961 (name "faust")
962 (version "0.9.67")
963 (source (origin
964 (method url-fetch)
965 (uri (string-append
966 "mirror://sourceforge/faudiostream/faust-" version ".zip"))
967 (sha256
968 (base32
0543c326
RW
969 "068vl9536zn0j4pknwfcchzi90rx5pk64wbcbd67z32w0csx8xm1"))
970 (snippet
971 ;; Remove prebuilt library
972 '(delete-file "architecture/android/libs/armeabi-v7a/libfaust_dsp.so"))))
777291f0
RW
973 (build-system gnu-build-system)
974 (arguments
975 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
976 #:tests? #f
977 #:phases
978 (modify-phases %standard-phases
0543c326 979 ;; no "configure" script
777291f0
RW
980 (delete 'configure))))
981 (native-inputs
982 `(("unzip" ,unzip)))
983 (home-page "http://faust.grame.fr/")
984 (synopsis "Signal processing language")
985 (description
986 "Faust is a programming language for realtime audio signal processing.")
987 (license license:gpl2+)))
988
8ae60404
RW
989(define-public faust-2
990 (package
991 (inherit faust)
992 (version "2.0.a51")
993 (source (origin
994 (method url-fetch)
995 (uri (string-append
996 "mirror://sourceforge/faudiostream/faust-" version ".tgz"))
997 (sha256
998 (base32
999 "1yryjqfqmxs7lxy95hjgmrncvl9kig3rcsmg0v49ghzz7vs7haxf"))))
1000 (build-system gnu-build-system)
1001 (arguments
1002 (substitute-keyword-arguments (package-arguments faust)
1003 ((#:make-flags flags)
1004 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1005 "world"))))
1006 (native-inputs
1007 `(("llvm" ,llvm-with-rtti)
1008 ("which" ,which)
1009 ("xxd" ,vim)
1010 ("ctags" ,emacs-minimal) ; for ctags
1011 ("pkg-config" ,pkg-config)))
1012 (inputs
1013 `(("libsndfile" ,libsndfile)
1014 ("libmicrohttpd" ,libmicrohttpd)
1015 ("ncurses" ,ncurses)
1016 ("openssl" ,openssl)
1017 ("zlib" ,zlib)))))
1018
7c92efff
RW
1019(define-public freepats
1020 (package
1021 (name "freepats")
1022 (version "20060219")
1023 (source (origin
1024 (method url-fetch)
1025 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1026 version ".tar.bz2"))
1027 (sha256
1028 (base32
1029 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1030 (build-system trivial-build-system)
1031 (arguments
1032 `(#:modules ((guix build utils))
1033 #:builder (begin
1034 (use-modules (guix build utils))
1035 (let ((out (string-append %output "/share/freepats")))
1036 (setenv "PATH" (string-append
1037 (assoc-ref %build-inputs "bzip2") "/bin:"
1038 (assoc-ref %build-inputs "tar") "/bin"))
1039 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
1040 (chdir "freepats")
1041 ;; Use absolute pattern references
1042 (substitute* "freepats.cfg"
1043 (("Tone_000") (string-append out "/Tone_000"))
1044 (("Drum_000") (string-append out "/Drum_000")))
1045 (mkdir-p out)
1046 (copy-recursively "." out)))))
1047 (native-inputs
1048 `(("tar" ,tar)
1049 ("bzip2" ,bzip2)))
1050 (home-page "http://freepats.zenvoid.org")
1051 (synopsis "GUS compatible patches for MIDI players")
1052 (description
1053 "FreePats is a project to create a free and open set of GUS compatible
1054patches that can be used with softsynths such as Timidity and WildMidi.")
1055 ;; GPLv2+ with exception for compositions using these patches.
1056 (license license:gpl2+)))
1057
fcbeb00b
RW
1058(define-public guitarix
1059 (package
1060 (name "guitarix")
7bc2f3ac 1061 (version "0.35.2")
fcbeb00b
RW
1062 (source (origin
1063 (method url-fetch)
1064 (uri (string-append
de67e922 1065 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
d706d943 1066 version ".tar.xz"))
fcbeb00b
RW
1067 (sha256
1068 (base32
7bc2f3ac 1069 "1qj3adjhg511jygbjkl9k5v0gcjmg6ifc479rspfyf45m383pp3p"))))
fcbeb00b
RW
1070 (build-system waf-build-system)
1071 (arguments
1072 `(#:tests? #f ; no "check" target
1073 #:python ,python-2
1074 #:configure-flags
1075 (list
fcbeb00b 1076 ;; Add the output lib directory to the RUNPATH.
3c3e6972
LC
1077 (string-append "--ldflags=-Wl,-rpath=" %output "/lib")
1078 "--cxxflags=-std=c++11")))
fcbeb00b
RW
1079 (inputs
1080 `(("libsndfile" ,libsndfile)
1081 ("boost" ,boost)
1082 ("avahi" ,avahi)
1083 ("eigen" ,eigen)
1084 ("lv2" ,lv2)
1085 ("lilv" ,lilv)
1086 ("ladspa" ,ladspa)
1087 ("jack" ,jack-1)
1088 ("gtkmm" ,gtkmm-2)
1089 ("gtk+" ,gtk+-2)
02979664 1090 ("webkitgtk/gtk+-2" ,webkitgtk/gtk+-2)
fcbeb00b
RW
1091 ("fftwf" ,fftwf)
1092 ("lrdf" ,lrdf)
1093 ("zita-resampler" ,zita-resampler)
1094 ("zita-convolver" ,zita-convolver)))
1095 (native-inputs
1096 `(("gperf" ,gperf)
49767428 1097 ("faust" ,faust)
fcbeb00b 1098 ("intltool" ,intltool)
b94a6ca0 1099 ("gettext" ,gettext-minimal)
fcbeb00b
RW
1100 ("pkg-config" ,pkg-config)))
1101 (native-search-paths
1102 (list (search-path-specification
1103 (variable "LV2_PATH")
1104 (files '("lib/lv2")))))
1105 (home-page "http://guitarix.org/")
1106 (synopsis "Virtual guitar amplifier")
1107 (description "Guitarix is a virtual guitar amplifier running JACK.
1108Guitarix takes the signal from your guitar as a mono-signal from your sound
1109card. The input is processed by a main amp and a rack-section. Both can be
1110routed separately and deliver a processed stereo-signal via JACK. You may
1111fill the rack with effects from more than 25 built-in modules including stuff
1112from a simple noise gate to modulation effects like flanger, phaser or
1113auto-wah.")
1114 (license license:gpl2+)))
1115
5f5b5768
RW
1116(define-public guitarix-lv2
1117 (package (inherit guitarix)
1118 (name "guitarix-lv2")
1119 (arguments
1120 (substitute-keyword-arguments (package-arguments guitarix)
1121 ((#:configure-flags flags)
1122 `(cons "--lv2-only" ,flags))))
1123 (inputs
1124 (alist-delete "webkitgtk/gtk+-2" (package-inputs guitarix)))))
1125
11d4800a
RW
1126(define-public rakarrack
1127 (package
1128 (name "rakarrack")
1129 (version "0.6.1")
1130 (source (origin
1131 (method url-fetch)
1132 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1133 "rakarrack-" version "/rakarrack-"
1134 version ".tar.bz2"))
1135 (sha256
1136 (base32
1137 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1138 (modules '((guix build utils)))
1139 (snippet
1140 '(begin
1141 (substitute* '("src/process.C"
1142 "src/global.h")
1143 (("#include <Fl/") "#include <FL/"))
1144 #t))))
1145 (build-system gnu-build-system)
1146 (inputs
1147 `(("alsa-utils" ,alsa-utils)
1148 ("fltk" ,fltk)
1149 ("libx11" ,libx11)
1150 ("libxext" ,libxext)
1151 ("libxfixes" ,libxfixes)
1152 ("libxft" ,libxft)
1153 ("libxrender" ,libxrender)
1154 ("libxpm" ,libxpm)
1155 ("fontconfig" ,fontconfig)
1156 ("freetype" ,freetype)
1157 ("jack" ,jack-1)
1158 ("alsa-lib" ,alsa-lib)
1159 ("libsndfile" ,libsndfile)
1160 ("libsamplerate" ,libsamplerate)
1161 ("zlib" ,zlib)))
1162 (home-page "http://rakarrack.sourceforge.net/")
1163 (synopsis "Audio effects processor")
1164 (description
1165 "Rakarrack is a richly featured multi-effects processor emulating a
1166guitar effects pedalboard. Effects include compressor, expander, noise gate,
1167equalizers, exciter, flangers, chorus, various delay and reverb effects,
1168distortion modules and many more. Most of the effects engine is built from
1169modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1170user interface are optimized for guitar, but Rakarrack processes signals in
1171stereo while it does not apply internal band-limiting filtering, and thus is
1172well suited to all musical instruments and vocals.")
1173 ;; The code is explicitly licensed under the GPL version 2 only.
1174 (license license:gpl2)))
1175
32cf42c1
RW
1176(define-public ir
1177 (package
1178 (name "ir")
1179 (version "1.3.2")
1180 (source (origin
1181 (method url-fetch)
c50f2af9
TGR
1182 ;; The original home-page is gone. Download the tarball from an
1183 ;; archive mirror instead.
1184 (uri (list (string-append
1185 "https://web.archive.org/web/20150803095032/"
1186 "http://factorial.hu/system/files/ir.lv2-"
1187 version ".tar.gz")
1188 (string-append
1189 "https://mirrors.kernel.org/gentoo/distfiles/ir.lv2-"
1190 version ".tar.gz")))
32cf42c1
RW
1191 (sha256
1192 (base32
1193 "1jh2z01l9m4ar7yz0n911df07dygc7n4cl59p7qdjbh0nvkm747g"))))
1194 (build-system gnu-build-system)
1195 (arguments
2df984f2 1196 `(#:tests? #f ; no tests
32cf42c1 1197 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2df984f2
TGR
1198 #:phases (modify-phases %standard-phases
1199 (delete 'configure)))) ; no configure script
32cf42c1
RW
1200 (inputs
1201 `(("libsndfile" ,libsndfile)
1202 ("libsamplerate" ,libsamplerate)
1203 ("lv2" ,lv2)
1204 ("glib" ,glib)
1205 ("gtk+" ,gtk+-2)
1206 ("zita-convolver" ,zita-convolver)))
1207 (native-inputs
1208 `(("pkg-config" ,pkg-config)))
1209 (native-search-paths
1210 (list (search-path-specification
1211 (variable "LV2_PATH")
1212 (files '("lib/lv2")))))
c50f2af9
TGR
1213 ;; Link to an archived copy of the home-page since the original is gone.
1214 (home-page (string-append "https://web.archive.org/web/20150803095032/"
1215 "http://factorial.hu/plugins/lv2/ir"))
32cf42c1
RW
1216 (synopsis "LV2 convolution reverb")
1217 (description
1218 "IR is a low-latency, real-time, high performance signal convolver
1219especially for creating reverb effects. It supports impulse responses with 1,
12202 or 4 channels, in any soundfile format supported by libsndfile.")
1221 (license license:gpl2+)))
1222
fb68469f
RW
1223(define-public jack-1
1224 (package
1225 (name "jack")
1226 (version "0.124.1")
1227 (source (origin
1228 (method url-fetch)
1229 (uri (string-append
1230 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1231 version
1232 ".tar.gz"))
1233 (sha256
1234 (base32
1235 "1mk1wnx33anp6haxfjjkfhwbaknfblsvj35nxvz0hvspcmhdyhpb"))))
1236 (build-system gnu-build-system)
1237 (inputs
2f9ae82f 1238 `(("alsa-lib" ,alsa-lib)
5d95e30b
RW
1239 ("readline" ,readline)))
1240 ;; uuid.h is included in the JACK type headers
ca01b3ad 1241 ;; db.h is included in the libjack metadata headers
5d95e30b 1242 (propagated-inputs
ca01b3ad
RW
1243 `(("libuuid" ,util-linux)
1244 ("bdb" ,bdb)))
2f9ae82f
RW
1245 (native-inputs
1246 `(("pkg-config" ,pkg-config)))
fb68469f
RW
1247 (home-page "http://jackaudio.org/")
1248 (synopsis "JACK audio connection kit")
1249 (description
1250 "JACK is a low-latency audio server. It can connect a number of
1251different applications to an audio device, as well as allowing them to share
1252audio between themselves. JACK is different from other audio server efforts
1253in that it has been designed from the ground up to be suitable for
1254professional audio work. This means that it focuses on two key areas:
1255synchronous execution of all clients, and low latency operation.")
1256 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1257 ;; licensed under the LGPL in order to allow for proprietary usage.
e89fa047 1258 (license (list license:gpl2+ license:lgpl2.1+))))
c54a8981 1259
bcbc02fd
RW
1260;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1261;; jack-2 implement the same API. JACK2 is provided primarily as a client
1262;; program for users who might benefit from the D-BUS features.
c54a8981
RW
1263(define-public jack-2
1264 (package (inherit jack-1)
314275c7 1265 (name "jack2")
c54a8981
RW
1266 (version "1.9.10")
1267 (source (origin
1268 (method url-fetch)
1269 (uri (string-append
1270 "https://github.com/jackaudio/jack2/archive/v"
1271 version
1272 ".tar.gz"))
f586c877 1273 (file-name (string-append name "-" version ".tar.gz"))
c54a8981
RW
1274 (sha256
1275 (base32
1276 "03b0iiyk3ng3vh5s8gaqwn565vik7910p56mlbk512bw3dhbdwc8"))))
1277 (build-system waf-build-system)
1278 (arguments
bc8bf605
RW
1279 `(#:python ,python-2
1280 #:tests? #f ; no check target
c54a8981 1281 #:configure-flags '("--dbus"
b416c647
SB
1282 "--alsa")
1283 #:phases
1284 (modify-phases %standard-phases
1285 (add-before
1286 'configure 'set-linkflags
1287 (lambda _
1288 ;; Add $libdir to the RUNPATH of all the binaries.
1289 (substitute* "wscript"
1290 ((".*CFLAGS.*-Wall.*" m)
1291 (string-append m
1292 " conf.env.append_unique('LINKFLAGS',"
bc8bf605
RW
1293 "'-Wl,-rpath=" %output "/lib')\n")))))
1294 (add-after 'install 'wrap-python-scripts
1295 (lambda* (#:key inputs outputs #:allow-other-keys)
1296 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1297 (let* ((out (assoc-ref outputs "out"))
1298 (path (getenv "PYTHONPATH")))
1299 (wrap-program (string-append out "/bin/jack_control")
1300 `("PYTHONPATH" ":" prefix (,path))))
1301 #t)))))
c54a8981
RW
1302 (inputs
1303 `(("alsa-lib" ,alsa-lib)
1304 ("dbus" ,dbus)
1305 ("expat" ,expat)
1306 ("libsamplerate" ,libsamplerate)
1307 ("opus" ,opus)
bc8bf605 1308 ("python2-dbus" ,python2-dbus)
c54a8981
RW
1309 ("readline" ,readline)))
1310 (native-inputs
1311 `(("pkg-config" ,pkg-config)))
1312 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1313 (license (list license:gpl2+ license:lgpl2.1+))))
f47cba0e 1314
2f4646b6
RW
1315(define-public jalv
1316 (package
1317 (name "jalv")
1318 (version "1.4.6")
1319 (source (origin
1320 (method url-fetch)
1321 (uri (string-append "http://download.drobilla.net/jalv-"
1322 version ".tar.bz2"))
1323 (sha256
1324 (base32
1325 "1f1hcq74n3ziw8bk97mn5a1vgw028dxikv3fchaxd430pbbhqgl9"))))
1326 (build-system waf-build-system)
d8c317df
SB
1327 (arguments
1328 `(#:tests? #f ; no check target
1329 #:phases
1330 (modify-phases %standard-phases
1331 (add-before
1332 'configure 'set-flags
1333 (lambda _
1334 ;; Compile with C++11, required by gtkmm.
1335 (setenv "CXXFLAGS" "-std=c++11")
1336 #t)))))
2f4646b6
RW
1337 (inputs
1338 `(("lv2" ,lv2)
1339 ("lilv" ,lilv)
1340 ("suil" ,suil)
1341 ("gtk" ,gtk+-2)
1342 ("gtkmm" ,gtkmm-2)
2f4646b6
RW
1343 ("jack" ,jack-1)))
1344 (native-inputs
1345 `(("pkg-config" ,pkg-config)))
1346 (home-page "http://drobilla.net/software/jalv/")
1347 (synopsis "Simple LV2 host for JACK")
1348 (description
1349 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1350plugins and exposes their ports as JACK ports, essentially making any LV2
1351plugin function as a JACK application.")
1352 (license license:isc)))
1353
2cc7ce31
RW
1354(define-public ladspa
1355 (package
1356 (name "ladspa")
1357 (version "1.13")
0c1910ed
AV
1358 (source
1359 (origin
1360 (method url-fetch)
1361 ;; Since the official link is dead,
1362 ;; we download the tarball from Debian or Internet Archive.
1363 (uri (list (string-append "http://http.debian.net"
1364 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1365 version ".orig.tar.gz")
1366 (string-append "https://web.archive.org/web/20140717172251/"
1367 "http://www.ladspa.org/download/ladspa_sdk_"
1368 version ".tgz")))
1369 (sha256
1370 (base32
1371 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
2cc7ce31
RW
1372 (build-system gnu-build-system)
1373 (arguments
1374 `(#:tests? #f ; the "test" target is a listening test only
1375 #:phases
1376 (alist-replace
1377 'configure
1378 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1379 (chdir "src")
1380 (let ((out (assoc-ref outputs "out")))
1381 (substitute* "makefile"
1382 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1383 (("/usr/include/") (string-append out "/include/"))
1384 (("/usr/bin/") (string-append out "/bin/"))
1385 (("-mkdirhier") "mkdir -p")
1386 (("^CC.*") "CC = gcc\n")
1387 (("^CPP.*") "CPP = g++\n"))))
1388 (alist-delete 'build %standard-phases))))
0c1910ed
AV
1389 ;; Since the home page is gone, we provide a link to the archived version.
1390 (home-page
1391 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
2cc7ce31
RW
1392 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1393 (description
1394 "LADSPA is a standard that allows software audio processors and effects
1395to be plugged into a wide range of audio synthesis and recording packages.")
1396 (license license:lgpl2.1+)))
1397
da49086a
RW
1398(define-public lash
1399 (package
1400 (name "lash")
1401 (version "0.6.0-rc2")
1402 (source (origin
1403 (method url-fetch)
1404 ;; The tilde is not permitted in the builder name, but is used
1405 ;; in the tarball.
1406 (uri (string-append
1407 "mirror://savannah/lash/lash-"
1408 (string-join (string-split version #\-) "~")
1409 ".tar.bz2"))
1410 (file-name (string-append name "-" version ".tar.bz2"))
1411 (sha256
1412 (base32
1413 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1414 (build-system gnu-build-system)
1415 (inputs
1416 `(("bdb" ,bdb)
1417 ("gtk" ,gtk+-2)
1418 ("jack" ,jack-1)
da49086a
RW
1419 ("readline" ,readline)
1420 ("python" ,python-2)))
1421 ;; According to pkg-config, packages depending on lash also need to have
1422 ;; at least the following packages declared as inputs.
1423 (propagated-inputs
1424 `(("alsa-lib" ,alsa-lib)
1425 ("dbus" ,dbus)
1426 ("libxml2" ,libxml2)))
1427 (native-inputs
1428 `(("pkg-config" ,pkg-config)))
1429 (home-page "http://www.nongnu.org/lash/")
1430 (synopsis "Audio application session manager")
1431 (description
1432 "LASH is a session management system for audio applications. It allows
1433you to save and restore audio sessions consisting of multiple interconneced
1434applications, restoring program state (i.e. loaded patches) and the
1435connections between them.")
1436 (license license:gpl2+)))
1437
8c0b5a75
TUBK
1438(define-public libbs2b
1439 (package
1440 (name "libbs2b")
1441 (version "3.1.0")
1442 (source (origin
1443 (method url-fetch)
de67e922
LF
1444 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1445 "/libbs2b-" version ".tar.lzma"))
8c0b5a75
TUBK
1446 (sha256
1447 (base32
1448 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1449 (build-system gnu-build-system)
1450 (native-inputs `(("pkg-config" ,pkg-config)))
1451 (inputs `(("libsndfile" ,libsndfile)))
3b3b60d0 1452 (home-page "https://sourceforge.net/projects/bs2b/")
8c0b5a75
TUBK
1453 (synopsis "Bauer stereophonic-to-binaural DSP")
1454 (description
1455 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1456designed to improve headphone listening of stereo audio records. Recommended
1457for headphone prolonged listening to disable superstereo fatigue without
1458essential distortions.")
1459 (license license:expat)))
1460
f47cba0e
RW
1461(define-public liblo
1462 (package
1463 (name "liblo")
1464 (version "0.28")
1465 (source (origin
1466 (method url-fetch)
de67e922
LF
1467 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1468 "/liblo-" version ".tar.gz"))
f47cba0e
RW
1469 (sha256
1470 (base32
1471 "02drgnpirvl2ihvzgsmn02agr5sj3vipzzw9vma56qlkgfvak56s"))))
1472 (build-system gnu-build-system)
1473 (arguments
1474 `(;; liblo test FAILED
1475 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1476 #:tests? #f))
1477 (home-page "http://liblo.sourceforge.net")
1478 (synopsis "Implementation of the Open Sound Control protocol")
1479 (description
1480 "liblo is a lightweight library that provides an easy to use
1481implementation of the Open Sound Control (OSC) protocol.")
1482 (license license:lgpl2.1+)))
e2420191 1483
a91d72e2
RW
1484(define-public python-pyliblo
1485 (package
1486 (name "python-pyliblo")
1487 (version "0.10.0")
1488 (source (origin
1489 (method url-fetch)
1490 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1491 version ".tar.gz"))
1492 (sha256
1493 (base32
1494 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1495 (build-system python-build-system)
1496 (arguments `(#:tests? #f)) ;no tests
f2516de2
HG
1497 (native-inputs
1498 `(("python-cython" ,python-cython)))
a91d72e2 1499 (inputs
f2516de2 1500 `(("liblo" ,liblo)))
a91d72e2
RW
1501 (home-page "http://das.nasophon.de/pyliblo/")
1502 (synopsis "Python bindings for liblo")
1503 (description
1504 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1505library. It supports almost the complete functionality of liblo, allowing you
1506to send and receive OSC messages using a nice and simple Python API. Also
1507included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1508 (license license:lgpl2.1+)))
1509
1510(define-public python2-pyliblo
1511 (package-with-python2 python-pyliblo))
1512
332aad1b
RW
1513(define-public lilv
1514 (package
1515 (name "lilv")
fcb41615 1516 (version "0.22.0")
332aad1b
RW
1517 (source (origin
1518 (method url-fetch)
1519 (uri (string-append "http://download.drobilla.net/lilv-"
1520 version
1521 ".tar.bz2"))
1522 (sha256
1523 (base32
fcb41615 1524 "1d3ss7vv8drf1c5340lyd0gv736n2qy7sxji2nh1rw9y48hr69yd"))))
332aad1b 1525 (build-system waf-build-system)
d80ee442
TUBK
1526 (arguments
1527 `(#:tests? #f ; no check target
1528 #:phases
1529 (modify-phases %standard-phases
1530 (add-before
1531 'configure 'set-ldflags
1532 (lambda* (#:key outputs #:allow-other-keys)
1533 (setenv "LDFLAGS"
1534 (string-append "-Wl,-rpath="
1535 (assoc-ref outputs "out") "/lib")))))))
ff7df27d
RW
1536 ;; required by lilv-0.pc
1537 (propagated-inputs
1538 `(("serd" ,serd)
332aad1b
RW
1539 ("sord" ,sord)
1540 ("sratom" ,sratom)))
ff7df27d
RW
1541 (inputs
1542 `(("lv2" ,lv2)))
332aad1b
RW
1543 (native-inputs
1544 `(("pkg-config" ,pkg-config)))
1545 (home-page "http://drobilla.net/software/lilv/")
1546 (synopsis "Library to simplify use of LV2 plugins in applications")
1547 (description
1548 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1549for applications. Lilv is the successor to SLV2, rewritten to be
1550significantly faster and have minimal dependencies.")
1551 (license license:isc)))
1552
e2420191
RW
1553(define-public lv2
1554 (package
1555 (name "lv2")
eb21d248 1556 (version "1.14.0")
e2420191
RW
1557 (source (origin
1558 (method url-fetch)
1559 (uri (string-append "http://lv2plug.in/spec/lv2-"
eb21d248 1560 version ".tar.bz2"))
e2420191
RW
1561 (sha256
1562 (base32
eb21d248 1563 "0chxwys3vnn3nxc9x2vchm74s9sx0vfra6y893byy12ci61jc1dq"))))
e2420191
RW
1564 (build-system waf-build-system)
1565 (arguments
1566 `(#:tests? #f ; no check target
2e189eb8 1567 #:configure-flags '("--no-plugins")))
e2420191
RW
1568 (inputs
1569 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1570 `(("libsndfile" ,libsndfile)))
1571 (native-inputs
1572 `(("pkg-config" ,pkg-config)))
1573 (home-page "http://lv2plug.in/")
1574 (synopsis "LV2 audio plugin specification")
1575 (description
1576 "LV2 is an open specification for audio plugins and host applications.
1577At its core, LV2 is a simple stable interface, accompanied by extensions which
1578add functionality to support the needs of increasingly powerful audio
1579software.")
1580 (license license:isc)))
5279eb6f 1581
98247127
RW
1582(define-public lv2-mda-piano
1583 (package
1584 (name "lv2-mda-piano")
1585 (version "0.0.2")
1586 (source (origin
1587 (method git-fetch)
1588 (uri (git-reference
f6f499b3 1589 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
98247127
RW
1590 (commit version)))
1591 (sha256
1592 (base32
1593 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1594 (build-system gnu-build-system)
1595 (arguments
1596 `(#:make-flags (list
1597 "TYPE=mdaPiano"
1598 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1599 #:tests? #f ; no check target
1600 #:phases (alist-delete 'configure %standard-phases)))
1601 (inputs
1602 `(("lv2" ,lv2)
1603 ("lvtk" ,lvtk)))
1604 (native-inputs
1605 `(("pkg-config" ,pkg-config)))
1606 (native-search-paths
1607 (list (search-path-specification
1608 (variable "LV2_PATH")
1609 (files '("lib/lv2")))))
1610 (home-page "http://elephly.net/lv2/mdapiano.html")
1611 (synopsis "LV2 port of the mda Piano plugin")
1612 (description "An LV2 port of the mda Piano VSTi.")
1613 (license license:gpl3+)))
1614
8fb79e3d
RW
1615(define-public lv2-mda-epiano
1616 (package (inherit lv2-mda-piano)
1617 (name "lv2-mda-epiano")
1618 (arguments
1619 `(#:make-flags (list
1620 "TYPE=mdaEPiano"
1621 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1622 #:tests? #f ; no check target
1623 #:phases (alist-delete 'configure %standard-phases)))
1624 (home-page "http://elephly.net/lv2/mdaepiano.html")
1625 (synopsis "LV2 port of the mda EPiano plugin")
1626 (description "An LV2 port of the mda EPiano VSTi.")))
1627
c1718190
RW
1628(define-public lvtk
1629 (package
1630 (name "lvtk")
1631 (version "1.2.0")
1632 (source (origin
1633 (method url-fetch)
1634 (uri (string-append "https://github.com/lvtk/lvtk/archive/"
1635 version
1636 ".tar.gz"))
f586c877 1637 (file-name (string-append name "-" version ".tar.gz"))
c1718190
RW
1638 (sha256
1639 (base32
1640 "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd"))))
1641 (build-system waf-build-system)
1642 (arguments
1643 `(#:tests? #f ; no check target
1644 #:python ,python-2
1645 #:configure-flags
1646 (list (string-append "--boost-includes="
1647 (assoc-ref %build-inputs "boost")
c91d3fb7
EB
1648 "/include"))
1649 #:phases (modify-phases %standard-phases
1650 (add-before
1651 'configure 'set-flags
1652 (lambda* (#:key inputs #:allow-other-keys)
1653 ;; See e.g. https://github.com/lvtk/lvtk/issues/21
1654 (setenv "LDFLAGS"
1655 (string-append
1656 "-L" (assoc-ref inputs "boost") "/lib "
85f4863f
RW
1657 "-lboost_system"))
1658 ;; Needed for gtkmm
1659 (substitute* '("src/wscript_build"
1660 "examples/wscript_build")
1661 (("cxxflags.*= \\[" line)
1662 (string-append line "\"-std=c++11\", ")))
1663 #t)))))
c1718190
RW
1664 (inputs
1665 `(("boost" ,boost)
85f4863f 1666 ("gtkmm" ,gtkmm-2)
c1718190
RW
1667 ("lv2" ,lv2)))
1668 (native-inputs
1669 `(("pkg-config" ,pkg-config)))
1670 (home-page "https://github.com/lvtk/lvtk")
1671 (synopsis "C++ libraries for LV2 plugins")
1672 (description
1673 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
1674extensions into easy to use C++ classes. It is the successor of
1675lv2-c++-tools.")
1676 (license license:gpl3+)))
1677
f2fac359
TUBK
1678(define-public openal
1679 (package
1680 (name "openal")
a232d2c6 1681 (version "1.17.2")
f2fac359
TUBK
1682 (source (origin
1683 (method url-fetch)
1684 (uri (string-append
1685 "http://kcat.strangesoft.net/openal-releases/openal-soft-"
1686 version ".tar.bz2"))
1687 (sha256
1688 (base32
a232d2c6 1689 "051k5fy8pk4fd9ha3qaqcv08xwbks09xl5qs4ijqq2qz5xaghhd3"))))
f2fac359
TUBK
1690 (build-system cmake-build-system)
1691 (arguments
7ee5db15
RW
1692 `(#:tests? #f ; no check target
1693 #:phases
1694 (modify-phases %standard-phases
1695 (add-after
1696 'unpack 'use-full-library-paths
1697 (lambda* (#:key inputs #:allow-other-keys)
1698 (substitute* "Alc/backends/pulseaudio.c"
1699 (("#define PALIB \"libpulse\\.so\\.0\"")
1700 (string-append "#define PALIB \""
1701 (assoc-ref inputs "pulseaudio")
1702 "/lib/libpulse.so.0"
1703 "\"")))
1704 (substitute* "Alc/backends/alsa.c"
1705 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
1706 (string-append "LoadLib(\""
1707 (assoc-ref inputs "alsa-lib")
1708 "/lib/libasound.so.2"
1709 "\")")))
1710 #t)))))
f2fac359
TUBK
1711 (inputs
1712 `(("alsa-lib" ,alsa-lib)
1713 ("pulseaudio" ,pulseaudio)))
1714 (synopsis "3D audio API")
1715 (description
1716 "OpenAL provides capabilities for playing audio in a virtual 3D
1717environment. Distance attenuation, doppler shift, and directional sound
1718emitters are among the features handled by the API. More advanced effects,
1719including air absorption, occlusion, and environmental reverb, are available
1720through the EFX extension. It also facilitates streaming audio, multi-channel
1721buffers, and audio capture.")
1722 (home-page "http://kcat.strangesoft.net/openal.html")
1723 (license license:lgpl2.0+)))
1724
c2b411c2 1725(define-public freealut
1726 (package
1727 (name "freealut")
1728 (version "1.1.0")
1729 (source (origin
1730 (method url-fetch)
1731 ;; Upstream url is unclear, many systems use Fedora, there is also
1732 ;; https://github.com/vancegroup/freealut though the status of it
1733 ;; (official? unofficial?) is not clear.
1734 (uri (string-append
1735 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
1736 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
1737 "-" version ".tar.gz"))
1738 (sha256
1739 (base32
1740 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
1741 (build-system cmake-build-system)
1742 (arguments
1743 `(#:tests? #f)) ; no check target
1744 (inputs
1745 `(("openal" ,openal)))
1746 (synopsis "Free implementation of OpenAL's ALUT standard")
1747 (description "freealut is the OpenAL Utility Toolkit.")
1748 (home-page "http://kcat.strangesoft.net/openal.html")
1749 (license license:lgpl2.0)))
1750
4443bb8d
RW
1751(define-public patchage
1752 (package
1753 (name "patchage")
1754 (version "1.0.0")
1755 (source (origin
1756 (method url-fetch)
1757 (uri (string-append "http://download.drobilla.net/patchage-"
1758 version
1759 ".tar.bz2"))
1760 (sha256
1761 (base32
1762 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
1763 (build-system waf-build-system)
1764 (arguments `(#:tests? #f)) ; no check target
1765 (inputs
1766 `(("alsa-lib" ,alsa-lib)
1767 ("boost" ,boost)
1768 ("jack" ,jack-1)
4443bb8d 1769 ("ganv" ,ganv)
4443bb8d
RW
1770 ("glibmm" ,glibmm)
1771 ("gtkmm" ,gtkmm-2)
4443bb8d
RW
1772 ("dbus-glib" ,dbus-glib)))
1773 (native-inputs
1774 `(("pkg-config" ,pkg-config)))
1775 (home-page "http://drobilla.net/software/patchage/")
1776 (synopsis "Modular patch bay for audio and MIDI systems")
1777 (description
1778 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
1779and ALSA.")
1780 (license license:gpl3+)))
1781
b22755be
RW
1782(define-public raul
1783 (package
1784 (name "raul")
1785 (version "0.8.0")
1786 (source (origin
1787 (method url-fetch)
1788 (uri (string-append "http://download.drobilla.net/raul-"
1789 version ".tar.bz2"))
1790 (sha256
1791 (base32
1792 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
1793 (build-system waf-build-system)
1794 (arguments
1795 `(#:python ,python-2
1796 #:tests? #f)) ; no check target
1797 (inputs
1798 `(("glib" ,glib)
1799 ("boost" ,boost)))
1800 (native-inputs
1801 `(("pkg-config" ,pkg-config)))
1802 (home-page "http://drobilla.net/software/raul/")
1803 (synopsis "Real-time audio utility library")
1804 (description
1805 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
1806aimed at audio/musical applications.")
1807 (license license:gpl2+)))
1808
f91d0d08
RW
1809(define-public raul-devel
1810 (let ((commit "f8bf77d3c3b77830aedafb9ebb5cdadfea7ed07a")
1811 (revision "1"))
1812 (package (inherit raul)
1813 (name "raul")
1814 (version (string-append "0.8.4-" revision "."
1815 (string-take commit 9)))
1816 (source (origin
1817 (method git-fetch)
1818 (uri (git-reference
1819 (url "http://git.drobilla.net/raul.git")
1820 (commit commit)))
1821 (file-name (string-append name "-" version "-checkout"))
1822 (sha256
1823 (base32
1824 "1lby508fb0n8ks6iz959sh18fc37br39d6pbapwvbcw5nckdrxwj")))))))
1825
57238ff2
RW
1826(define-public rubberband
1827 (package
1828 (name "rubberband")
1829 (version "1.8.1")
1830 (source (origin
1831 (method url-fetch)
1832 (uri
1833 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
1834 version
1835 ".tar.bz2"))
1836 (sha256
1837 (base32
1838 "05amrbrxx0da3w7m237q51799r8xgs4ffqabi2qv06hq8dpcj386"))))
1839 (build-system gnu-build-system)
1840 (arguments `(#:tests? #f)) ; no check target
1841 (inputs
1842 `(("ladspa" ,ladspa)
1843 ("libsamplerate" ,libsamplerate)
1844 ("vamp" ,vamp)))
1845 (native-inputs
1846 `(("pkg-config" ,pkg-config)))
1847 (home-page "http://breakfastquay.com/rubberband/")
1848 (synopsis "Audio time-stretching and pitch-shifting library")
1849 (description
1850 "Rubber Band is a library and utility program that permits changing the
1851tempo and pitch of an audio recording independently of one another.")
1852 (license license:gpl2+)))
1853
cc45cff8
RW
1854(define-public rtmidi
1855 (package
1856 (name "rtmidi")
1857 (version "2.1.0")
1858 (source (origin
1859 (method url-fetch)
1860 (uri
1861 (string-append "https://github.com/powertab/rtmidi/archive/"
1862 version ".tar.gz"))
1863 (file-name (string-append name "-" version ".tar.gz"))
1864 (sha256
1865 (base32
1866 "0d49lapnmdgmjxh4vw57h6xk74nn5r0zwysv7jbd7m8kqhpq5rjj"))))
1867 (build-system gnu-build-system)
1868 (arguments
1869 `(#:tests? #f ;no "check" target
1870 #:phases (modify-phases %standard-phases
1871 (add-before
1872 'configure 'autoconf
1873 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
1874 (add-before
1875 'build 'fix-makefile
1876 (lambda _
1877 (substitute* "Makefile"
1878 (("/bin/ln") "ln")
1879 (("RtMidi.h RtError.h") "RtMidi.h"))
1880 #t))
1881 (add-before
1882 'install 'make-target-dirs
1883 (lambda _
1884 (let ((out (assoc-ref %outputs "out")))
1885 (mkdir-p (string-append out "/bin"))
1886 (mkdir (string-append out "/lib"))
1887 (mkdir (string-append out "/include")))
1888 #t)))))
1889 (inputs
1890 `(("jack" ,jack-1)
1891 ("alsa-lib" ,alsa-lib)))
1892 (native-inputs
1893 `(("autoconf" ,autoconf)
1894 ("automake" ,automake)
1895 ("libtool" ,libtool)
1896 ("pkg-config" ,pkg-config)))
1897 (home-page "https://github.com/powertab/rtmidi")
1898 (synopsis "Cross-platform MIDI library for C++")
1899 (description
1900 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
1901classes) that provide a common cross-platform API for realtime MIDI
1902input/output.")
1903 (license license:expat)))
1904
5279eb6f
RW
1905(define-public sratom
1906 (package
1907 (name "sratom")
1908 (version "0.4.6")
1909 (source (origin
1910 (method url-fetch)
1911 (uri (string-append "http://download.drobilla.net/sratom-"
1912 version
1913 ".tar.bz2"))
1914 (sha256
1915 (base32
1916 "080jjiyxjnj7hf25844hd9rb01grvzz1rk8mxcdnakywmspbxfd4"))))
1917 (build-system waf-build-system)
1918 (arguments `(#:tests? #f)) ; no check target
1919 (inputs
1920 `(("lv2" ,lv2)
1921 ("serd" ,serd)
1922 ("sord" ,sord)))
1923 (native-inputs
1924 `(("pkg-config" ,pkg-config)))
1925 (home-page "http://drobilla.net/software/sratom/")
1926 (synopsis "Library for serialising LV2 atoms to/from RDF")
1927 (description
1928 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
1929the Turtle syntax.")
1930 (license license:isc)))
f3ab6ad3
RW
1931
1932(define-public suil
1933 (package
1934 (name "suil")
1935 (version "0.8.2")
1936 (source (origin
1937 (method url-fetch)
1938 (uri (string-append "http://download.drobilla.net/suil-"
1939 version
1940 ".tar.bz2"))
1941 (sha256
1942 (base32
1943 "1s3adyiw7sa5gfvm5wasa61qa23629kprxyv6w8hbxdiwp0hhxkq"))))
1944 (build-system waf-build-system)
1945 (arguments `(#:tests? #f)) ; no check target
1946 (inputs
1947 `(("lv2" ,lv2)
1948 ("gtk+-2" ,gtk+-2)
1949 ("qt-4" ,qt-4)))
1950 (native-inputs
1951 `(("pkg-config" ,pkg-config)))
1952 (home-page "http://drobilla.net/software/suil/")
1953 (synopsis "Library for loading and wrapping LV2 plugin UIs")
1954 (description
1955 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
1956
1957Suil makes it possible to load a UI of a toolkit in a host using another
1958toolkit. The API is designed such that hosts do not need to explicitly
1959support specific toolkits – if Suil supports a particular toolkit, then UIs in
1960that toolkit will work in all hosts that use Suil automatically.
1961
1962Suil currently supports every combination of Gtk 2, Qt 4, and X11.")
1963 (license license:isc)))
db46f2fc 1964
9ffee457
RW
1965(define-public timidity++
1966 (package
1967 (name "timidity++")
1968 (version "2.14.0")
1969 (source (origin
1970 (method url-fetch)
de67e922
LF
1971 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
1972 "/TiMidity++-" version
1973 "/TiMidity++-" version ".tar.bz2"))
9ffee457
RW
1974 (sha256
1975 (base32
1976 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
1977 (build-system gnu-build-system)
1978 (arguments
1979 '(#:configure-flags
1980 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
1981 "--enable-ncurses"
1982 "--enable-server"
1983 "--enable-alsaseq"
1984 (string-append "--with-default-path="
1985 (assoc-ref %outputs "out") "/etc/timidity"))
1986 #:phases
1987 (alist-cons-after
1988 'install 'install-config
1989 (lambda _
1990 (let ((out (string-append (assoc-ref %outputs "out")
1991 "/etc/timidity")))
1992 (mkdir-p out)
1993 (call-with-output-file
1994 (string-append out "/timidity.cfg")
1995 (lambda (port)
1996 (format port (string-append "source "
1997 (assoc-ref %build-inputs "freepats")
1998 "/share/freepats/freepats.cfg"))))))
1999 %standard-phases)))
2000 (inputs
2001 `(("alsa-lib" ,alsa-lib)
2002 ("ao" ,ao)
2003 ("flac" ,flac)
2004 ("jack" ,jack-1)
2005 ("libogg" ,libogg)
2006 ("speex" ,speex)
2007 ("ncurses" ,ncurses)
2008 ("freepats" ,freepats)))
2009 (native-inputs
2010 `(("pkg-config" ,pkg-config)))
2011 (home-page "http://timidity.sourceforge.net/")
2012 (synopsis "Software synthesizer for playing MIDI files")
2013 (description
2014 "TiMidity++ is a software synthesizer. It can play MIDI files by
2015converting them into PCM waveform data; give it a MIDI data along with digital
2016instrument data files, then it synthesizes them in real-time, and plays. It
2017can not only play sounds, but also can save the generated waveforms into hard
2018disks as various audio file formats.")
2019 (license license:gpl2+)))
2020
db46f2fc
RW
2021(define-public vamp
2022 (package
2023 (name "vamp")
b1fb59d3 2024 (version "2.6")
db46f2fc
RW
2025 (source (origin
2026 (method url-fetch)
2027 (uri (string-append
2028 "https://code.soundsoftware.ac.uk"
494e9b91 2029 "/attachments/download/1520/vamp-plugin-sdk-"
b1fb59d3 2030 version ".tar.gz"))
9002e17c
TUBK
2031 (sha256
2032 (base32
494e9b91 2033 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
db46f2fc 2034 (build-system gnu-build-system)
9002e17c
TUBK
2035 (arguments
2036 `(#:tests? #f ; no check target
2037 #:phases
2038 (alist-cons-after
2039 'install 'remove-libvamp-hostsdk.la
2040 (lambda* (#:key outputs #:allow-other-keys)
2041 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2042 (for-each delete-file
2043 (let ((out (assoc-ref outputs "out")))
2044 (list (string-append out "/lib/libvamp-sdk.la")
2045 (string-append out "/lib/libvamp-hostsdk.la"))))
2046 #t)
2047 %standard-phases)))
db46f2fc
RW
2048 (inputs
2049 `(("libsndfile" ,libsndfile)))
2050 (native-inputs
2051 `(("pkg-config" ,pkg-config)))
2052 (home-page "http://vamp-plugins.org")
2053 (synopsis "Modular and extensible audio processing system")
2054 (description
2055 "Vamp is an audio processing plugin system for plugins that extract
2056descriptive information from audio data — typically referred to as audio
2057analysis plugins or audio feature extraction plugins.")
2058 (license
2059 (license:x11-style
2060 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
9f1cdd9d
TUBK
2061
2062(define-public libsbsms
2063 (package
2064 (name "libsbsms")
2065 (version "2.0.2")
2066 (source
2067 (origin
2068 (method url-fetch)
2069 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2070 "/libsbsms-" version ".tar.gz"))
2071 (sha256
2072 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2073 (build-system gnu-build-system)
2074 (native-inputs `(("automake" ,automake)))
2075 (arguments
476b2877
MW
2076 `(#:configure-flags
2077 ;; Disable the use of SSE unless on x86_64.
2078 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2079 (%current-system))))
2080 ''("--disable-sse")
2081 ''())
2082 #:phases
09c414d8
MW
2083 (modify-phases %standard-phases
2084 (add-after
2085 'unpack 'fix-ar-lib-path
2086 (lambda* (#:key inputs #:allow-other-keys)
2087 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2088 (delete-file "ar-lib")
2089 (symlink
2090 (string-append (assoc-ref inputs "automake") "/share/automake-"
2091 ,(package-version automake) "/ar-lib")
2092 "ar-lib"))))))
9f1cdd9d
TUBK
2093 (home-page "http://sbsms.sourceforge.net/")
2094 (synopsis "Library for time stretching and pitch scaling of audio")
2095 (description
2096 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2097stretching and pitch scaling of audio. This package contains the library.")
2098 ;; There is no explicit declaration of a license, but a COPYING file
2099 ;; containing gpl2.
2100 (license license:gpl2)))
754a98ae 2101
01b90919
SB
2102(define-public wavpack
2103 (package
2104 (name "wavpack")
2105 (version "4.70.0")
2106 (source (origin
2107 (method url-fetch)
2108 (uri (string-append "http://www.wavpack.com/"
2109 name "-" version ".tar.bz2"))
2110 (sha256
2111 (base32
2112 "191h8hv8qk72hfh1crg429i9yq3cminwqb249sy9zadbn1wy7b9c"))))
2113 (build-system gnu-build-system)
60950faa
SB
2114 (arguments
2115 `(#:configure-flags
2116 ;; wavpack.pc.in lacks path substitution for 'exec_prefix'.
2117 (list (string-append "--libdir=" %output "/lib"))))
01b90919
SB
2118 (home-page "http://www.wavpack.com/")
2119 (synopsis "Hybrid lossless audio codec")
2120 (description
2121 "WavPack is an audio compression format with lossless, lossy and hybrid
2122compression modes. This package contains command-line programs and library to
2123encode and decode wavpack files.")
2124 (license license:bsd-3)))
2125
a176dd7e
SB
2126(define-public libmodplug
2127 (package
2128 (name "libmodplug")
2129 (version "0.8.8.5")
2130 (source (origin
2131 (method url-fetch)
2132 (uri (string-append
0f971a04 2133 "mirror://sourceforge/modplug-xmms/"
a176dd7e
SB
2134 name "/" version "/" name "-" version ".tar.gz"))
2135 (sha256
2136 (base32
2137 "1bfsladg7h6vnii47dd66f5vh1ir7qv12mfb8n36qiwrxq92sikp"))))
2138 (build-system gnu-build-system)
2139 (home-page "http://modplug-xmms.sourceforge.net/")
2140 (synopsis "Mod file playing library")
2141 (description
2142 "Libmodplug renders mod music files as raw audio data, for playing or
2143conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2144supported. Optional features include high-quality resampling, bass expansion,
2145surround and reverb.")
2146 (license license:public-domain)))
2147
b97b5cda
SB
2148(define-public libxmp
2149 (package
2150 (name "libxmp")
2784fca0 2151 (version "4.4.1")
b97b5cda
SB
2152 (source (origin
2153 (method url-fetch)
de67e922 2154 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
b97b5cda
SB
2155 name "-" version ".tar.gz"))
2156 (sha256
2157 (base32
2784fca0 2158 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
b97b5cda
SB
2159 (build-system gnu-build-system)
2160 (home-page "http://xmp.sourceforge.net/")
2161 (synopsis "Module player library")
2162 (description
2163 "Libxmp is a library that renders module files to PCM data. It supports
2164over 90 mainstream and obscure module formats including Protracker (MOD),
2165Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2166 (license license:lgpl2.1+)))
2167
3ec4bba4
SB
2168(define-public xmp
2169 (package
2170 (name "xmp")
1a79d476 2171 (version "4.1.0")
3ec4bba4
SB
2172 (source (origin
2173 (method url-fetch)
de67e922 2174 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3ec4bba4
SB
2175 name "-" version ".tar.gz"))
2176 (sha256
2177 (base32
1a79d476 2178 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3ec4bba4
SB
2179 (build-system gnu-build-system)
2180 (native-inputs
2181 `(("pkg-config" ,pkg-config)))
2182 (inputs
2183 `(("libxmp" ,libxmp)
2184 ("pulseaudio" ,pulseaudio)))
2185 (home-page "http://xmp.sourceforge.net/")
2186 (synopsis "Extended module player")
2187 (description
2188 "Xmp is a portable module player that plays over 90 mainstream and
2189obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2190Tracker 3 S3M and Impulse Tracker IT files.")
2191 (license license:gpl2+)))
2192
754a98ae
TUBK
2193(define-public soundtouch
2194 (package
2195 (name "soundtouch")
2196 (version "1.8.0")
2197 (source
2198 (origin
2199 (method url-fetch)
2200 (uri
2201 (string-append
2202 "http://www.surina.net/soundtouch/soundtouch-" version ".tar.gz"))
2203 (sha256
2204 (base32 "0sqn3wk4qz20vf0vz853l6dl1gnj1yhqxfwxqsc5lp529kbn2h9x"))))
2205 (build-system gnu-build-system)
2206 (native-inputs
2207 `(("autoconf" ,autoconf)
2208 ("automake" ,automake)
2209 ("libtool" ,libtool)
2210 ("file" ,file)))
2211 (arguments
2212 '(#:phases
722ec722
MW
2213 (alist-cons-after
2214 'unpack 'bootstrap
754a98ae 2215 (lambda _
722ec722 2216 (zero? (system* "sh" "bootstrap")))
754a98ae
TUBK
2217 %standard-phases)))
2218 (home-page "http://www.surina.net/soundtouch/")
2219 (synopsis
2220 "Audio processing library for changing tempo, pitch and playback rate")
2221 (description
2222 "SoundTouch is an audio processing library for changing the tempo, pitch
2223and playback rates of audio streams or audio files. It is intended for
2224application developers writing sound processing tools that require tempo/pitch
2225control functionality, or just for playing around with the sound effects.")
2226 (license license:lgpl2.1+)))
4bddd14c 2227
d739f481
AK
2228(define-public sox
2229 (package
2230 (name "sox")
2231 (version "14.4.2")
2232 (source (origin
2233 (method url-fetch)
de67e922
LF
2234 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2235 name "-" version ".tar.bz2"))
d739f481
AK
2236 (sha256
2237 (base32
2238 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2239 (build-system gnu-build-system)
2240 (arguments
2241 '(#:configure-flags
2242 ;; The upstream asks to identify the distribution to diagnose SoX
2243 ;; bug reports.
2244 '("--with-distro=Guix System Distribution")))
2245 (native-inputs
2246 `(("pkg-config" ,pkg-config)))
2247 (inputs
2248 `(("alsa-lib" ,alsa-lib)
2249 ("ao" ,ao)
2250 ("flac" ,flac)
2251 ("lame" ,lame)
2252 ("libid3tag" ,libid3tag)
2253 ("libltdl" ,libltdl)
2254 ("libmad" ,libmad)
2255 ("libpng" ,libpng)
2256 ("libvorbis" ,libvorbis)
2257 ("pulseaudio" ,pulseaudio)))
2258 (home-page "http://sox.sourceforge.net")
2259 (synopsis "Sound processing utility")
2260 (description
2261 "SoX (Sound eXchange) is a command line utility that can convert
2262various formats of computer audio files to other formats. It can also
2263apply various effects to these sound files, and, as an added bonus, SoX
2264can play and record audio files.")
2265 ;; sox.c is distributed under GPL, while the files that make up
2266 ;; libsox are licensed under LGPL.
2267 (license (list license:gpl2+ license:lgpl2.1+))))
2268
4bddd14c
TUBK
2269(define-public soxr
2270 (package
2271 (name "soxr")
2272 (version "0.1.1")
2273 (source
2274 (origin
2275 (method url-fetch)
2276 (uri
2277 (string-append "mirror://sourceforge/soxr/soxr-" version
2278 "-Source.tar.xz"))
2279 (sha256
2280 (base32 "1hmadwqfpg15vhwq9pa1sl5xslibrjpk6hpq2s9hfmx1s5l6ihfw"))))
2281 (build-system cmake-build-system)
2282 (arguments '(#:tests? #f)) ;no 'check' target
3b3b60d0 2283 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
4bddd14c
TUBK
2284 (synopsis "One-dimensional sample-rate conversion library")
2285 (description
2286 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2287conversion. It may be used, for example, to resample PCM-encoded audio.")
2288 (license license:lgpl2.1+)))
49f36708
TUBK
2289
2290(define-public twolame
2291 (package
2292 (name "twolame")
2293 (version "0.3.13")
2294 (source
2295 (origin
2296 (method url-fetch)
de67e922
LF
2297 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2298 "/twolame-" version ".tar.gz"))
49f36708 2299 (sha256
46914280
LF
2300 (base32 "0ahiqqng5pidwhj1wzph4vxxgxxgcfa3gl0gywipzx2ii7s35wwq"))
2301 (modules '((guix build utils)))
2302 ;; The tests break with Perl 5.24:
2303 ;; https://github.com/njh/twolame/issues/21
2304 ;; TODO: Remove this snippet when upgrading twolame.
2305 (snippet
2306 '(begin
2307 (substitute* "tests/test.pl" (("\\(@_\\)") "($_[0])"))
2308 #t))))
49f36708
TUBK
2309 (build-system gnu-build-system)
2310 (inputs
2311 `(("libsndfile" ,libsndfile)))
2312 (native-inputs
2313 `(("perl" ,perl)
2314 ("which" ,which))) ;used in tests/test.pl
2315 (home-page "http://www.twolame.org/")
2316 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2317 (description
2318 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2319tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2320portions of LAME.")
2321 (license license:lgpl2.1+)))
bd4464f2
TUBK
2322
2323(define-public portaudio
2324 (package
2325 (name "portaudio")
2326 (version "19.20140130")
2327 (source
2328 (origin
2329 (method url-fetch)
2330 (uri (string-append
2331 "http://www.portaudio.com/archives/pa_stable_v"
2332 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2333 ".tgz"))
2334 (sha256
b47be021 2335 (base32 "0mwddk4qzybaf85wqfhxqlf0c5im9il8z03rd4n127k8y2jj9q4g"))
fc1adab1 2336 (patches (search-patches "portaudio-audacity-compat.patch"))))
bd4464f2
TUBK
2337 (build-system gnu-build-system)
2338 (inputs
2339 ;; TODO: Add ASIHPI.
2340 `(("alsa-lib" ,alsa-lib)
bcbc02fd 2341 ("jack" ,jack-1)))
bd4464f2 2342 (native-inputs
b47be021
TUBK
2343 `(("autoconf" ,autoconf)
2344 ("automake" ,automake)
2345 ("libtool" ,libtool)
2346 ("pkg-config" ,pkg-config)))
2347 (arguments
2348 '(#:phases
2349 ;; Autoreconf is necessary because the audacity-compat patch modifies
2350 ;; .in files.
2351 (alist-cons-after
2352 'unpack 'autoreconf
2353 (lambda _
2354 (zero? (system* "autoreconf" "-vif")))
2355 %standard-phases)
2356 #:tests? #f)) ;no 'check' target
bd4464f2
TUBK
2357 (home-page "http://www.portaudio.com/")
2358 (synopsis "Audio I/O library")
2359 (description
2360 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2361to record and/or play sound using a callback function or a blocking read/write
2362interface.")
2363 (license license:expat)))
74bbf894 2364
fe73aef4
RW
2365(define-public qsynth
2366 (package
2367 (name "qsynth")
4ed4bb11 2368 (version "0.4.3")
fe73aef4
RW
2369 (source
2370 (origin
2371 (method url-fetch)
de67e922
LF
2372 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2373 "/qsynth-" version ".tar.gz"))
fe73aef4 2374 (sha256
4ed4bb11 2375 (base32 "1j5hm99fjrnaw8wbmlh4qixkv3rw5dl429mp1ag7js2ydrx0j9yy"))))
fe73aef4
RW
2376 (build-system gnu-build-system)
2377 (arguments
f2358305
DC
2378 `(#:tests? #f ; no "check" phase
2379 #:configure-flags
2380 '("CXXFLAGS=-std=gnu++11")))
598f6394 2381 (native-inputs
4ed4bb11
RW
2382 `(("qttools" ,qttools)
2383 ("pkg-config" ,pkg-config)))
fe73aef4 2384 (inputs
598f6394
DC
2385 `(("fluidsynth" ,fluidsynth)
2386 ("qtbase" ,qtbase)
2387 ("qtx11extras" ,qtx11extras)))
fe73aef4
RW
2388 (home-page "http://qsynth.sourceforge.net")
2389 (synopsis "Graphical user interface for FluidSynth")
2390 (description
2391 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2392synthesizer written in C++.")
2393 (license license:gpl2+)))
2394
55b596c3
TUBK
2395(define-public rsound
2396 (package
2397 (name "rsound")
2398 (version "1.1")
2399 (source
2400 (origin
2401 (method url-fetch)
2402 (uri (string-append "https://github.com/Themaister/RSound/archive/v"
2403 version ".tar.gz"))
01e327b5 2404 (file-name (string-append name "-" version))
55b596c3
TUBK
2405 (sha256
2406 (base32 "1wzs40c0k5zpkmm5ffl6c17xmr399sxli7ys0fbb9ib0fd334knx"))))
2407 (build-system gnu-build-system)
2408 (inputs
2409 `(("alsa-lib" ,alsa-lib)
276f49df 2410 ("jack" ,jack-1)
55b596c3
TUBK
2411 ("ao" ,ao)
2412 ("libsamplerate" ,libsamplerate)
2413 ("openal" ,openal)
2414 ("portaudio" ,portaudio)
2415 ("pulseaudio" ,pulseaudio)))
2416 (arguments
2417 '(#:phases
2418 (alist-replace
2419 'configure
2420 (lambda* (#:key outputs #:allow-other-keys)
2421 (setenv "CC" "gcc")
2422 (zero?
2423 (system* "./configure"
2424 (string-append "--prefix=" (assoc-ref outputs "out")))))
2425 %standard-phases)
2426 ;; No 'check' target.
2427 #:tests? #f))
2428 (home-page "http://themaister.net/rsound.html")
2429 (synopsis "Networked audio system")
2430 (description
2431 "RSound allows you to send audio from an application and transfer it
2432directly to a different computer on your LAN network. It is an audio daemon
2433with a much different focus than most other audio daemons.")
2434 (license license:gpl3+)))
2435
caf9055c
RW
2436(define-public xjackfreak
2437 (package
2438 (name "xjackfreak")
2439 (version "1.0")
2440 (source (origin
2441 (method url-fetch)
2442 (uri (string-append
2443 "https://github.com/johnhldavis/xjackfreak/archive/v"
2444 version ".tar.gz"))
2445 (file-name (string-append name "-" version ".tar.gz"))
2446 (sha256
2447 (base32
2448 "0xj6gpxfnw9jbdgwgm0x23xgfvj2kwmwb1nk0drw8lxgcchkq7d9"))))
2449 (build-system gnu-build-system)
2450 (arguments
2451 `(#:make-flags
2452 (list (string-append "docdir=" (assoc-ref %outputs "out")
2453 "/share/doc/xjackfreak"))))
2454 (inputs
2455 `(("jack" ,jack-1)
2456 ("libx11" ,libx11)
2457 ("libxt" ,libxt)
2458 ("libxext" ,libxext)))
2459 (native-inputs
2460 `(("pkg-config" ,pkg-config)))
2461 (home-page "https://github.com/johnhldavis/xjackfreak")
2462 (synopsis "JACK audio frequency analyzer and display")
2463 (description
2464 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
2465Connection Kit. It can display the FFT of any input, modify it and output the
2466result.")
2467 (license license:gpl3+)))
2468
d73f7909
RW
2469(define-public zita-convolver
2470 (package
2471 (name "zita-convolver")
2472 (version "3.1.0")
2473 (source (origin
2474 (method url-fetch)
2475 (uri (string-append
2476 "http://kokkinizita.linuxaudio.org"
2477 "/linuxaudio/downloads/zita-convolver-"
2478 version ".tar.bz2"))
29e255ca
SB
2479 (snippet
2480 ;; Don't optimize for a specific processor architecture.
2481 '(substitute* "libs/Makefile"
2482 (("^CXXFLAGS \\+= -march=native") "")))
2483 (modules '((guix build utils)))
d73f7909
RW
2484 (sha256
2485 (base32
2486 "14qrnczhp5mbwhky64il7kxc4hl1mmh495v60va7i2qnhasr6zmz"))))
2487 (build-system gnu-build-system)
2488 (arguments
2489 `(#:tests? #f ; no "check" target
2490 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2491 #:phases
2492 (alist-cons-after
2493 'unpack 'patch-makefile-and-enter-directory
2494 (lambda _
2495 (substitute* "libs/Makefile"
2496 (("ldconfig") "true")
2497 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2498 (chdir "libs") #t)
2499 (alist-cons-after
2500 'install
2501 'install-symlink
2502 (lambda _
2503 (symlink "libzita-convolver.so"
2504 (string-append (assoc-ref %outputs "out")
2505 "/lib/libzita-convolver.so.3")))
2506 ;; no configure script
2507 (alist-delete 'configure %standard-phases)))))
2508 (inputs `(("fftwf" ,fftwf)))
2509 (home-page "http://kokkinizita.linuxaudio.org")
2510 (synopsis "Fast, partitioned convolution engine library")
2511 (description
2512 "Zita convolver is a C++ library providing a real-time convolution
2513engine.")
2514 (license license:gpl3+)))
2515
b7ed6784
RW
2516(define-public zita-resampler
2517 (package
2518 (name "zita-resampler")
2519 (version "1.3.0")
2520 (source (origin
2521 (method url-fetch)
2522 (uri (string-append
2523 "http://kokkinizita.linuxaudio.org"
2524 "/linuxaudio/downloads/zita-resampler-"
2525 version ".tar.bz2"))
6dff4955
SB
2526 (snippet
2527 ;; Don't optimize for a specific processor architecture.
2528 '(substitute* '("apps/Makefile" "libs/Makefile")
2529 (("^CXXFLAGS \\+= -march=native") "")))
2530 (modules '((guix build utils)))
b7ed6784
RW
2531 (sha256
2532 (base32
2533 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
2534 (build-system gnu-build-system)
2535 (arguments
2536 `(#:tests? #f ; no "check" target
2537 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2538 #:phases
2539 (modify-phases %standard-phases
2540 (add-after
2541 'unpack 'patch-makefile-and-enter-directory
2542 (lambda _
2543 (substitute* "libs/Makefile"
2544 (("ldconfig") "true")
2545 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2546 (chdir "libs")
2547 #t))
2548 (add-after
2549 'install 'install-symlink
2550 (lambda _
2551 (symlink "libzita-resampler.so"
2552 (string-append (assoc-ref %outputs "out")
2553 "/lib/libzita-resampler.so.1"))))
2554 ;; no configure script
2555 (delete 'configure))))
2556 (home-page "http://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
2557 (synopsis "C++ library for resampling audio signals")
2558 (description
2559 "Libzita-resampler is a C++ library for resampling audio signals. It is
2560designed to be used within a real-time processing context, to be fast, and to
2561provide high-quality sample rate conversion.")
2562 (license license:gpl3+)))
2563
74bbf894
RW
2564(define-public zita-alsa-pcmi
2565 (package
2566 (name "zita-alsa-pcmi")
2567 (version "0.2.0")
2568 (source (origin
2569 (method url-fetch)
2570 (uri (string-append
2571 "http://kokkinizita.linuxaudio.org"
2572 "/linuxaudio/downloads/zita-alsa-pcmi-"
2573 version ".tar.bz2"))
2574 (sha256
2575 (base32
9569dfc8 2576 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
74bbf894
RW
2577 (build-system gnu-build-system)
2578 (arguments
2579 `(#:tests? #f ; no "check" target
2580 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2581 #:phases
2582 (alist-cons-after
9569dfc8
RW
2583 'unpack 'patch-makefile-and-enter-directory
2584 (lambda _
2585 (substitute* "libs/Makefile"
2586 (("ldconfig") "true")
2587 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2588 (chdir "libs")
2589 #t)
74bbf894
RW
2590 (alist-cons-after
2591 'install
2592 'install-symlink
2593 (lambda _
2594 (symlink "libzita-alsa-pcmi.so"
2595 (string-append (assoc-ref %outputs "out")
2596 "/lib/libzita-alsa-pcmi.so.0")))
2597 ;; no configure script
2598 (alist-delete 'configure %standard-phases)))))
2599 (inputs
2600 `(("alsa-lib" ,alsa-lib)
2601 ("fftw" ,fftw)))
2602 (home-page "http://kokkinizita.linuxaudio.org")
2603 (synopsis "C++ wrapper around the ALSA API")
2604 (description
2605 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
2606access to ALSA PCM devices, taking care of the many functions required to
2607open, initialise and use a hw: device in mmap mode, and providing floating
2608point audio data.")
2609 (license license:gpl3+)))
6da16993
LF
2610
2611(define-public cuetools
2612 (package
2613 (name "cuetools")
2614 (version "1.4.1")
2615 (source (origin
2616 (method url-fetch)
2617 (uri (string-append "https://github.com/svend/cuetools/archive/"
2618 version ".tar.gz"))
2619 (file-name (string-append name "-" version ".tar.gz"))
2620 (sha256
2621 (base32
2622 "01xi3rvdmil9nawsha04iagjylqr1l9v9vlzk99scs8c207l58i4"))))
2623 (build-system gnu-build-system)
2624 ;; The source tarball is not bootstrapped.
2625 (arguments
2626 `(#:phases
2627 (modify-phases %standard-phases
2628 (add-after 'unpack 'bootstrap
2629 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
2630 ;; Bootstrapping tools
2631 (native-inputs
2632 `(("autoconf" ,autoconf)
2633 ("automake" ,automake)
2634 ("flex" ,flex)
2635 ("bison" ,bison)))
2636 (synopsis "Cue and toc file parsers and utilities")
2637 (description "Cuetools is a set of programs that are useful for manipulating
2638and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
2639files are a way to represent the layout of a data or audio CD in a
2640machine-readable ASCII format.")
2641 (home-page "https://github.com/svend/cuetools")
2642 (license license:gpl2+)))
6819a8dd
LF
2643
2644(define-public shntool
2645 (package
2646 (name "shntool")
2647 (version "3.0.10")
2648 (source (origin
2649 (method url-fetch)
2650 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
2651 "shntool-" version ".tar.gz"))
2652 (sha256
2653 (base32
2654 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
2655 (build-system gnu-build-system)
2656 (synopsis "WAVE audio data processing tool")
2657 (description "shntool is a multi-purpose WAVE data processing and reporting
2658utility. File formats are abstracted from its core, so it can process any file
2659that contains WAVE data, compressed or not---provided there exists a format
2660module to handle that particular file type.")
2661 (home-page "http://etree.org/shnutils/shntool/")
6ac2af78
LF
2662 ;; 'install-sh' bears the x11 license
2663 (license (list license:gpl2+ license:x11))))
680b54c5
DT
2664
2665(define-public dcadec
2666 (package
2667 (name "dcadec")
2668 (version "0.2.0")
2669 (source (origin
2670 (method url-fetch)
2671 (uri (string-append "https://github.com/foo86/dcadec/archive/v"
2672 version ".tar.gz"))
2673 (file-name (string-append name "-" version ".tar.gz"))
2674 (sha256
2675 (base32
2676 "0i0dpypgqkhhi4v1fmsp2way6w9kbcix3c7q79pmg39yvrzj17gd"))))
2677 (build-system gnu-build-system)
2678 (arguments
2679 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
2680 '(#:tests? #f
2681 #:make-flags
2682 (list "CC=gcc"
2683 ;; Build shared library.
2684 "CONFIG_SHARED=1"
2685 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2686 ;; Set proper runpath.
2687 (string-append "LDFLAGS=-Wl,-rpath="
2688 (assoc-ref %outputs "out")
2689 "/lib"))
2690 #:phases
2691 (modify-phases %standard-phases
2692 ;; No configure script, just a hand-written Makefile.
2693 (delete 'configure))))
2694 (synopsis "DTS Coherent Acoustics decoder")
2695 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
2696with support for HD extensions.")
2697 (home-page "https://github.com/foo86/dcadec")
2698 (license license:lgpl2.1+)))
e87c7ec2
AG
2699
2700(define-public bs1770gain
2701 (package
2702 (name "bs1770gain")
eb5378f9 2703 (version "0.4.12")
e87c7ec2
AG
2704 (source
2705 (origin
2706 (method url-fetch)
2707 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
2708 version "/bs1770gain-" version ".tar.gz"))
2709 (sha256
2710 (base32
eb5378f9 2711 "0n9skdap1vnl6w52fx0gsrjlk7w3xgdwi62ycyf96h29rx059z6a"))))
e87c7ec2
AG
2712 (build-system gnu-build-system)
2713 (inputs `(("ffmpeg" ,ffmpeg)
2714 ("sox" ,sox)))
2715 (home-page "http://bs1770gain.sourceforge.net/")
2716 (synopsis "Tool to adjust loudness of media files")
2717 (description
2718 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
2719flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
2720loudness of audio and video files to the same level.")
2721 (license license:gpl2+)))
eb64bde1
EE
2722
2723(define-public filteraudio
2724 (let ((revision "1")
2725 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
2726 (package
2727 (name "filteraudio")
2728 (version (string-append "0.0.0-" revision "."
2729 (string-take commit 7)))
2730 (source
2731 (origin
2732 (method git-fetch)
2733 (uri (git-reference
2734 (url "https://github.com/irungentoo/filter_audio.git")
2735 (commit commit)))
2736 (file-name (string-append name "-" version "-checkout"))
2737 (sha256
2738 (base32
2739 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
2740 (build-system gnu-build-system)
2741 (arguments
2742 '(#:make-flags (list (string-append "PREFIX=" %output)
2743 "CC=gcc")
2744 #:tests? #f ; No tests
2745 #:phases
2746 (modify-phases %standard-phases
2747 ;; No configure script
2748 (delete 'configure))))
2749 (synopsis "Lightweight audio filtering library")
2750 (description "An easy to use audio filtering library made from webrtc
2751code, used in @code{libtoxcore}.")
2752 (home-page "https://github.com/irungentoo/filter_audio")
2753 (license license:bsd-3))))
9a4c032c
LG
2754
2755(define-public gsm
2756 (package
2757 (name "gsm")
2758 (version "1.0.14")
2759 (source
2760 (origin
2761 (method url-fetch)
2762 (uri
2763 (string-append "http://www.quut.com/" name "/" name
2764 "-" version ".tar.gz"))
2765 (sha256
2766 (base32
2767 "0b1mx69jq88wva3wk0hi6fcl5a52qhnq2f9p3f3jdh5k61ma252q"))))
2768 (build-system gnu-build-system)
2769 (arguments
2770 `(#:test-target "tst"
2771 #:phases
2772 (modify-phases %standard-phases
2773 (add-before 'install 'pre-install
2774 (lambda _
2775 (let ((out (assoc-ref %outputs "out")))
2776 (substitute* "Makefile"
2777 (("INSTALL_ROOT\t=")
2778 (string-append "INSTALL_ROOT\t=\t" out)))
2779 (mkdir-p (string-append out "/inc"))
2780 (mkdir-p (string-append out "/man"))
2781 (mkdir-p (string-append out "/man/man1"))
2782 (mkdir-p (string-append out "/man/man3"))
2783 (mkdir-p (string-append out "/bin"))
2784 (mkdir-p (string-append out "/lib")))))
2785 (add-after 'install 'post-install
2786 (lambda _
2787 (let ((out (assoc-ref %outputs "out")))
2788 (rename-file (string-append out "/inc")
2789 (string-append out "/include"))
2790 (mkdir-p (string-append out "/include/gsm"))
2791 (copy-recursively "inc"
2792 (string-append out "/include/gsm")))))
2793 (delete 'configure))))
2794 (synopsis "GSM 06.10 lossy speech compression library")
2795 (description "This C library provides an encoder and a decoder for the GSM
279606.10 RPE-LTP lossy speech compression algorithm.")
2797 (home-page "http://quut.com/gsm/")
2798 (license (license:non-copyleft "file://COPYRIGHT"))))