Merge branch 'master' into core-updates
[jackhill/guix/guix.git] / gnu / packages / audio.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
4 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
5 ;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
7 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
9 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
10 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
11 ;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
13 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
14 ;;;
15 ;;; This file is part of GNU Guix.
16 ;;;
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
21 ;;;
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
26 ;;;
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
29
30 (define-module (gnu packages audio)
31 #:use-module (guix packages)
32 #:use-module (guix download)
33 #:use-module (guix git-download)
34 #:use-module (guix utils)
35 #:use-module ((guix licenses) #:prefix license:)
36 #:use-module (guix build-system gnu)
37 #:use-module (guix build-system waf)
38 #:use-module (guix build-system trivial)
39 #:use-module (guix build-system cmake)
40 #:use-module (guix build-system python)
41 #:use-module (guix build-system glib-or-gtk)
42 #:use-module (gnu packages)
43 #:use-module (gnu packages algebra)
44 #:use-module (gnu packages autotools)
45 #:use-module (gnu packages avahi)
46 #:use-module (gnu packages boost)
47 #:use-module (gnu packages backup)
48 #:use-module (gnu packages base)
49 #:use-module (gnu packages bison)
50 #:use-module (gnu packages check)
51 #:use-module (gnu packages compression)
52 #:use-module (gnu packages curl)
53 #:use-module (gnu packages databases)
54 #:use-module (gnu packages emacs)
55 #:use-module (gnu packages file)
56 #:use-module (gnu packages flex)
57 #:use-module (gnu packages fltk)
58 #:use-module (gnu packages fontutils)
59 #:use-module (gnu packages gettext)
60 #:use-module (gnu packages glib)
61 #:use-module (gnu packages gtk)
62 #:use-module (gnu packages gnome)
63 #:use-module (gnu packages gnunet) ; libmicrohttpd
64 #:use-module (gnu packages gperf)
65 #:use-module (gnu packages image)
66 #:use-module (gnu packages ncurses)
67 #:use-module (gnu packages qt)
68 #:use-module (gnu packages libbsd)
69 #:use-module (gnu packages linux)
70 #:use-module (gnu packages llvm)
71 #:use-module (gnu packages mp3) ;taglib
72 #:use-module (gnu packages perl)
73 #:use-module (gnu packages pkg-config)
74 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
75 #:use-module (gnu packages python)
76 #:use-module (gnu packages rdf)
77 #:use-module (gnu packages readline)
78 #:use-module (gnu packages telephony)
79 #:use-module (gnu packages tls)
80 #:use-module (gnu packages video)
81 #:use-module (gnu packages vim) ;xxd
82 #:use-module (gnu packages webkit)
83 #:use-module (gnu packages wxwidgets)
84 #:use-module (gnu packages xiph)
85 #:use-module (gnu packages xml)
86 #:use-module (gnu packages xorg)
87 #:use-module (gnu packages maths)
88 #:use-module (gnu packages multiprecision)
89 #:use-module (gnu packages music)
90 #:use-module (srfi srfi-1)
91 #:use-module (srfi srfi-26))
92
93 (define-public alsa-modular-synth
94 (package
95 (name "alsa-modular-synth")
96 (version "2.1.2")
97 (source (origin
98 (method url-fetch)
99 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
100 "/" version "/ams-" version ".tar.bz2"))
101 (sha256
102 (base32
103 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
104 (build-system gnu-build-system)
105 (arguments
106 `(#:configure-flags
107 '("--enable-qt5"
108 "CXXFLAGS=-std=gnu++11")
109 #:phases
110 (modify-phases %standard-phases
111 ;; Insert an extra space between linker flags.
112 (add-before 'configure 'add-missing-space
113 (lambda _
114 (substitute* "configure"
115 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
116 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
117 #t)))))
118 (inputs
119 `(("alsa-lib" ,alsa-lib)
120 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
121 ;; license incompatibility.
122 ("clalsadrv" ,clalsadrv)
123 ("fftw" ,fftw)
124 ("jack" ,jack-1)
125 ("ladspa" ,ladspa)
126 ("liblo" ,liblo)
127 ("qtbase" ,qtbase)
128 ("qttools" ,qttools)))
129 (native-inputs
130 `(("pkg-config" ,pkg-config)))
131 (home-page "http://alsamodular.sourceforge.net/")
132 (synopsis "Realtime modular synthesizer and effect processor")
133 (description
134 "AlsaModularSynth is a digital implementation of a classical analog
135 modular synthesizer system. It uses virtual control voltages to control the
136 parameters of the modules. The control voltages which control the frequency
137 e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
138 Filter) modules follow the convention of 1V / Octave.")
139 (license license:gpl2)))
140
141 (define-public aubio
142 (package
143 (name "aubio")
144 (version "0.4.1")
145 (source (origin
146 (method url-fetch)
147 (uri (string-append
148 "http://aubio.org/pub/aubio-" version ".tar.bz2"))
149 (sha256
150 (base32
151 "15f6nf76y7iyl2kl4ny7ky0zpxfxr8j3902afvd6ydnnkh5dzmr5"))))
152 (build-system waf-build-system)
153 (arguments
154 `(#:tests? #f ; no check target
155 #:configure-flags
156 '("--enable-fftw3f"
157 "--enable-jack"
158 "--enable-sndfile"
159 "--enable-samplerate"
160 ;; enable compilation with avcodec once available
161 "--disable-avcodec")
162 #:python ,python-2))
163 (inputs
164 `(("jack" ,jack-1)
165 ("libsndfile" ,libsndfile)
166 ("libsamplerate" ,libsamplerate)
167 ("fftwf" ,fftwf)))
168 (native-inputs
169 `(("pkg-config" ,pkg-config)))
170 (home-page "http://aubio.org/")
171 (synopsis "Library for audio labelling")
172 (description
173 "aubio is a tool designed for the extraction of annotations from audio
174 signals. Its features include segmenting a sound file before each of its
175 attacks, performing pitch detection, tapping the beat and producing MIDI
176 streams from live audio.")
177 (license license:gpl3+)))
178
179 (define (ardour-rpath-phase major-version)
180 `(lambda* (#:key outputs #:allow-other-keys)
181 (let ((libdir (string-append (assoc-ref outputs "out")
182 "/lib/ardour" ,major-version)))
183 (substitute* "wscript"
184 (("linker_flags = \\[\\]")
185 (string-append "linker_flags = [\""
186 "-Wl,-rpath="
187 libdir ":"
188 libdir "/backends" ":"
189 libdir "/engines" ":"
190 libdir "/panners" ":"
191 libdir "/surfaces" ":"
192 libdir "/vamp" "\"]"))))
193 #t))
194
195 (define-public ardour
196 (package
197 (name "ardour")
198 (version "5.12")
199 (source (origin
200 (method git-fetch)
201 (uri (git-reference
202 (url "https://git.ardour.org/ardour/ardour.git")
203 (commit version)))
204 (snippet
205 ;; Ardour expects this file to exist at build time. The revision
206 ;; is the output of
207 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
208 `(call-with-output-file
209 "libs/ardour/revision.cc"
210 (lambda (port)
211 (format port ,(string-append "#include \"ardour/revision.h\"
212 namespace ARDOUR { const char* revision = \"" version "\" ; }")))))
213 (sha256
214 (base32
215 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
216 (file-name (string-append name "-" version))))
217 (build-system waf-build-system)
218 (arguments
219 `(#:configure-flags '("--cxx11" ; required by gtkmm
220 "--no-phone-home" ; don't contact ardour.org
221 "--freedesktop" ; install .desktop file
222 "--test") ; build unit tests
223 #:phases
224 (modify-phases %standard-phases
225 (add-after
226 'unpack 'set-rpath-in-LDFLAGS
227 ,(ardour-rpath-phase (version-major version))))
228 #:test-target "test"
229 #:python ,python-2))
230 (inputs
231 `(("alsa-lib" ,alsa-lib)
232 ("aubio" ,aubio)
233 ("lrdf" ,lrdf)
234 ("boost" ,boost)
235 ("atkmm" ,atkmm)
236 ("cairomm" ,cairomm)
237 ("eudev" ,eudev)
238 ("gtkmm" ,gtkmm-2)
239 ("glibmm" ,glibmm)
240 ("libart-lgpl" ,libart-lgpl)
241 ("libgnomecanvasmm" ,libgnomecanvasmm)
242 ("pangomm" ,pangomm)
243 ("liblo" ,liblo)
244 ("libsndfile" ,libsndfile)
245 ("libsamplerate" ,libsamplerate)
246 ("libxml2" ,libxml2)
247 ("libogg" ,libogg)
248 ("libvorbis" ,libvorbis)
249 ("flac" ,flac)
250 ("lv2" ,lv2)
251 ("vamp" ,vamp)
252 ("curl" ,curl)
253 ("fftw" ,fftw)
254 ("fftwf" ,fftwf)
255 ("jack" ,jack-1)
256 ("serd" ,serd)
257 ("sord" ,sord)
258 ("sratom" ,sratom)
259 ("suil" ,suil)
260 ("lilv" ,lilv)
261 ("readline" ,readline)
262 ("redland" ,redland)
263 ("rubberband" ,rubberband)
264 ("libarchive" ,libarchive)
265 ("taglib" ,taglib)
266 ("python-rdflib" ,python-rdflib)))
267 (native-inputs
268 `(("perl" ,perl)
269 ("cppunit" ,cppunit)
270 ("itstool" ,itstool)
271 ("gettext" ,gettext-minimal)
272 ("pkg-config" ,pkg-config)))
273 (home-page "http://ardour.org")
274 (synopsis "Digital audio workstation")
275 (description
276 "Ardour is a multi-channel digital audio workstation, allowing users to
277 record, edit, mix and master audio and MIDI projects. It is targeted at audio
278 engineers, musicians, soundtrack editors and composers.")
279 (license license:gpl2+)))
280
281 (define-public audacity
282 (package
283 (name "audacity")
284 (version "2.2.1")
285 (source
286 (origin
287 (method url-fetch)
288 (uri (string-append "https://github.com/audacity/audacity/archive"
289 "/Audacity-" version ".tar.gz"))
290 (sha256
291 (base32 "1n05r8b4rnf9fas0py0is8cm97s3h65dgvqkk040aym5d1x6wd7z"))
292 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
293 (modules '((guix build utils)))
294 (snippet
295 ;; Remove bundled libraries.
296 '(begin
297 (for-each
298 (lambda (dir)
299 (delete-file-recursively (string-append "lib-src/" dir)))
300 '("expat" "ffmpeg" "libflac" "libid3tag" "libmad" "libogg"
301 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
302 "portaudio-v19" "portmidi" "soundtouch" "twolame"
303 ;; FIXME: these libraries have not been packaged yet:
304 ;; "libnyquist"
305 ;; "libscorealign"
306 ;; "libwidgetextra"
307 ;; "portburn"
308 ;; "portsmf"
309 ;; "portmixer"
310
311 ;; FIXME: we have this library, but it differs in that the Slide
312 ;; class does not have a member "getInverseStretchedTime".
313 ;; "sbsms"
314 ))
315 #t))))
316 (build-system gnu-build-system)
317 (inputs
318 `(("wxwidgets" ,wxwidgets)
319 ("gtk" ,gtk+)
320 ("alsa-lib" ,alsa-lib)
321 ("jack" ,jack-1)
322 ("expat" ,expat)
323 ("ffmpeg" ,ffmpeg)
324 ("lame" ,lame)
325 ("flac" ,flac)
326 ("libid3tag" ,libid3tag)
327 ("libmad" ,libmad)
328 ;;("libsbsms" ,libsbsms) ;bundled version is modified
329 ("libsndfile" ,libsndfile)
330 ("soundtouch" ,soundtouch)
331 ("soxr" ,soxr) ;replaces libsamplerate
332 ("twolame" ,twolame)
333 ("vamp" ,vamp)
334 ("libvorbis" ,libvorbis)
335 ("lv2" ,lv2)
336 ("lilv" ,lilv) ;for lv2
337 ("suil" ,suil) ;for lv2
338 ("portaudio" ,portaudio)
339 ("portmidi" ,portmidi)))
340 (native-inputs
341 `(("autoconf" ,autoconf)
342 ("automake" ,automake)
343 ("gettext" ,gettext-minimal) ;for msgfmt
344 ("libtool" ,libtool)
345 ("pkg-config" ,pkg-config)
346 ("python" ,python-2)
347 ("which" ,which)))
348 (arguments
349 `(#:configure-flags
350 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
351 (libmad (assoc-ref %build-inputs "libmad"))
352 (portmidi (assoc-ref %build-inputs "portmidi")))
353 (list
354 ;; Loading FFmpeg dynamically is problematic.
355 "--disable-dynamic-loading"
356 ;; SSE instructions are available on Intel systems only.
357 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
358 (%current-system)))
359 '("x64_64" "i686"))
360 '()
361 '("--enable-sse=no"))
362 ;; portmidi, libid3tag and libmad provide no .pc files, so
363 ;; pkg-config fails to find them. Force their inclusion.
364 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
365 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
366 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
367 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
368 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
369 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
370 "EXPAT_USE_SYSTEM=yes"
371 "FFMPEG_USE_SYSTEM=yes"
372 "LAME_USE_SYSTEM=yes"
373 "LIBFLAC_USE_SYSTEM=yes"
374 "LIBID3TAG_USE_SYSTEM=yes"
375 "LIBMAD_USE_SYSTEM=yes"
376 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
377 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
378 "LIBSNDFILE_USE_SYSTEM=yes"
379 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
380 "LIBSOXR_USE_SYSTEM=yes"
381 "LIBTWOLAME_USE_SYSTEM=yes"
382 "LIBVAMP_USE_SYSTEM=yes"
383 "LIBVORBIS_USE_SYSTEM=yes"
384 "LV2_USE_SYSTEM=yes"
385 "PORTAUDIO_USE_SYSTEM=yes"))
386 #:phases
387 (modify-phases %standard-phases
388 (add-after 'unpack 'fix-sbsms-check
389 (lambda _
390 ;; This check is wrong: there is no 2.2.0 release; not even the
391 ;; bundled sources match this release string.
392 (substitute* '("m4/audacity_checklib_libsbsms.m4"
393 "configure")
394 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
395 #t))
396 (add-after 'unpack 'use-upstream-headers
397 (lambda* (#:key inputs #:allow-other-keys)
398 (substitute* '("src/NoteTrack.cpp"
399 "src/AudioIO.cpp"
400 "src/AudioIO.h")
401 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
402 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
403 (substitute* "src/prefs/MidiIOPrefs.cpp"
404 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
405 #t)))
406 ;; The test suite is not "well exercised" according to the developers,
407 ;; and fails with various errors. See
408 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
409 #:tests? #f))
410 (home-page "http://audacity.sourceforge.net/")
411 (synopsis "Software for recording and editing sounds")
412 (description
413 "Audacity is a multi-track audio editor designed for recording, playing
414 and editing digital audio. It features digital effects and spectrum analysis
415 tools.")
416 (license license:gpl2+)))
417
418 (define-public azr3
419 (package
420 (name "azr3")
421 (version "1.2.3")
422 (source (origin
423 (method url-fetch)
424 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
425 version
426 ".tar.bz2"))
427 (sha256
428 (base32
429 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
430 (patches (search-patches "azr3.patch"))))
431 (build-system gnu-build-system)
432 (arguments
433 `(#:tests? #f ; no check target
434 #:make-flags
435 (list "LV2PEG=ttl2c"
436 "CXXFLAGS=-std=gnu++11"
437 "CFLAGS=-std=gnu++11"
438 (string-append "prefix=" %output)
439 (string-append "pkgdatadir=" %output "/share/azr3-jack"))))
440 (inputs
441 `(("gtkmm" ,gtkmm-2)
442 ("lvtk" ,lvtk)
443 ("jack" ,jack-1)
444 ("lash" ,lash)))
445 (native-inputs
446 `(("pkg-config" ,pkg-config)))
447 (home-page "http://ll-plugins.nongnu.org/azr3/")
448 (synopsis "Tonewheel organ synthesizer")
449 (description
450 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
451 with drawbars, distortion and rotating speakers. The organ has three
452 sections, two polyphonic sections with nine drawbars each and one monophonic
453 bass section with five drawbars. A standalone JACK application and LV2
454 plugins are provided.")
455 (license license:gpl2)))
456
457 (define-public calf
458 (package
459 (name "calf")
460 (version "0.90.0")
461 (source (origin
462 (method url-fetch)
463 (uri (string-append "http://calf-studio-gear.org/files/calf-"
464 version ".tar.gz"))
465 (sha256
466 (base32
467 "0dijv2j7vlp76l10s4v8gbav26ibaqk8s24ci74vrc398xy00cib"))))
468 (build-system gnu-build-system)
469 (inputs
470 `(("fluidsynth" ,fluidsynth)
471 ("expat" ,expat)
472 ("glib" ,glib)
473 ("gtk" ,gtk+-2)
474 ("cairo" ,cairo)
475 ("lash" ,lash)
476 ("jack" ,jack-1)
477 ("lv2" ,lv2)
478 ("ladspa" ,ladspa)
479 ("fftw" ,fftw)))
480 (native-inputs
481 `(("pkg-config" ,pkg-config)))
482 (native-search-paths
483 (list (search-path-specification
484 (variable "LV2_PATH")
485 (files '("lib/lv2")))))
486 (home-page "http://calf.sourceforge.net/")
487 (synopsis "Audio plug-in pack for LV2 and JACK environments")
488 (description
489 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
490 The suite contains lots of effects (delay, modulation, signal processing,
491 filters, equalizers, dynamics, distortion and mastering effects),
492 instruments (SF2 player, organ simulator and a monophonic synthesizer) and
493 tools (analyzer, mono/stereo tools, crossovers).")
494 ;; calfjackhost is released under GPLv2+
495 ;; The plugins are released under LGPLv2.1+
496 (license (list license:lgpl2.1+ license:gpl2+))))
497
498 (define-public espeak
499 (package
500 (name "espeak")
501 (version "1.48.04")
502 (source (origin
503 (method url-fetch)
504 (uri (string-append "mirror://sourceforge/espeak/espeak/"
505 "espeak-" (version-major+minor version)
506 "/espeak-" version "-source.zip"))
507 (sha256
508 (base32
509 "0n86gwh9pw0jqqpdz7mxggllfr8k0r7pc67ayy7w5z6z79kig6mz"))
510 (modules '((guix build utils)))
511 (snippet
512 ;; remove prebuilt binaries
513 '(delete-file-recursively "linux_32bit"))))
514 (build-system gnu-build-system)
515 (arguments
516 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
517 (string-append "DATADIR="
518 (assoc-ref %outputs "out")
519 "/share/espeak-data")
520 (string-append "LDFLAGS=-Wl,-rpath="
521 (assoc-ref %outputs "out")
522 "/lib")
523 "AUDIO=pulseaudio")
524 #:tests? #f ; no check target
525 #:phases
526 (modify-phases %standard-phases
527 (replace 'configure
528 (lambda _
529 (chdir "src")
530 ;; We use version 19 of the PortAudio library, so we must copy the
531 ;; corresponding file to be sure that espeak compiles correctly.
532 (copy-file "portaudio19.h" "portaudio.h")
533 (substitute* "Makefile"
534 (("/bin/ln") "ln"))
535 #t)))))
536 (inputs
537 `(("portaudio" ,portaudio)
538 ("pulseaudio" ,pulseaudio)))
539 (native-inputs `(("unzip" ,unzip)))
540 (home-page "http://espeak.sourceforge.net/")
541 (synopsis "Software speech synthesizer")
542 (description "eSpeak is a software speech synthesizer for English and
543 other languages. eSpeak uses a \"formant synthesis\" method. This allows many
544 languages to be provided in a small size. The speech is clear, and can be used
545 at high speeds, but is not as natural or smooth as larger synthesizers which are
546 based on human speech recordings.")
547 (license license:gpl3+)))
548
549 (define-public infamous-plugins
550 (package
551 (name "infamous-plugins")
552 (version "0.2.02")
553 (source (origin
554 (method url-fetch)
555 (uri (string-append "https://github.com/ssj71/infamousPlugins/"
556 "archive/v" version ".tar.gz"))
557 (file-name (string-append name "-" version ".tar.gz"))
558 (sha256
559 (base32
560 "0qm3ak07vc1l3f5c3c2lq9gkfknlxwn8ks03cysw1pk8hj7dwnv6"))))
561 (build-system cmake-build-system)
562 (arguments
563 `(#:tests? #f ; There are no tests
564 #:phases
565 (modify-phases %standard-phases
566 (add-after 'unpack 'remove-compiler-flags
567 (lambda _
568 (substitute* '("src/casynth/CMakeLists.txt"
569 "src/cheapdist/CMakeLists.txt"
570 "src/duffer/CMakeLists.txt"
571 "src/envfollower/CMakeLists.txt"
572 "src/ewham/CMakeLists.txt"
573 "src/hip2b/CMakeLists.txt"
574 "src/lushlife/CMakeLists.txt"
575 "src/powercut/CMakeLists.txt"
576 "src/powerup/CMakeLists.txt"
577 "src/stuck/CMakeLists.txt")
578 (("-msse2 -mfpmath=sse") ""))
579 #t)))))
580 (inputs
581 `(("cairo" ,cairo)
582 ("fftwf" ,fftwf)
583 ("lv2" ,lv2)
584 ("ntk" ,ntk)
585 ("zita-resampler" ,zita-resampler)))
586 (native-inputs
587 `(("pkg-config" ,pkg-config)))
588 (home-page "http://ssj71.github.io/infamousPlugins")
589 (synopsis "LV2 plugins for live use")
590 (description
591 "The infamous plugins are a collection of LV2 audio plugins for live
592 performances. The plugins include a cellular automaton synthesizer, an
593 envelope follower, distortion effects, tape effects and more.")
594 (license license:gpl2+)))
595
596 (define-public swh-plugins-lv2
597 (package
598 (name "swh-plugins-lv2")
599 (version "1.0.16")
600 (source (origin
601 (method url-fetch)
602 (uri (string-append "https://github.com/swh/"
603 "lv2/archive/v" version ".tar.gz"))
604 (file-name (string-append name "-" version ".tar.gz"))
605 (sha256
606 (base32
607 "0j1mih0lp4fds07knp5i32in515sh0df1qi6694pmyz2wqnm295w"))))
608 (build-system gnu-build-system)
609 (arguments
610 `(#:tests? #f ; no check target
611 #:make-flags (list "CC=gcc"
612 (string-append "PREFIX="
613 (assoc-ref %outputs "out")))
614 #:phases
615 (modify-phases %standard-phases
616 ;; no configure script
617 (delete 'configure)
618 (add-after 'unpack 'patch-makefile-and-enter-directory
619 ;; The default install target doesn't install, but the
620 ;; "install-system" target does.
621 (lambda _
622 (substitute* "Makefile"
623 (("install:") "install: install-system"))
624 #t)))))
625 (inputs
626 `(("lv2" ,lv2)
627 ("fftwf" ,fftwf)))
628 (native-inputs
629 `(("libxslt" ,libxslt)
630 ("pkg-config" ,pkg-config)))
631 (home-page "http://plugin.org.uk")
632 (synopsis "SWH plugins in LV2 format")
633 (description
634 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
635 classes include: dynamics (compressor, limiter), time (delay, chorus,
636 flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
637 emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
638 (license license:gpl3+)))
639
640 (define-public csound
641 (package
642 (name "csound")
643 (version "6.09.1")
644 (source (origin
645 (method url-fetch)
646 (uri (string-append
647 "https://github.com/csound/csound/archive/"
648 version ".tar.gz"))
649 (file-name (string-append name "-" version ".tar.gz"))
650 (sha256
651 (base32
652 "0xqpqws4jsv7fyawcjzwaw544qbfh29xq164kdf30a9v1n3yklp4"))))
653 (build-system cmake-build-system)
654 (inputs
655 `(("alsa-lib" ,alsa-lib)
656 ("boost" ,boost)
657 ("pulseaudio" ,pulseaudio)
658 ("libsndfile" ,libsndfile)
659 ("liblo" ,liblo)
660 ("ladspa" ,ladspa)
661 ("jack" ,jack-1)
662 ("gettext" ,gettext-minimal)))
663 (native-inputs
664 `(("bison" ,bison)
665 ("flex" ,flex)
666 ("zlib" ,zlib)))
667 (home-page "http://csound.github.io/")
668 (synopsis "Sound and music computing system")
669 (description
670 "Csound is a user-programmable and user-extensible sound processing
671 language and software synthesizer.")
672 (license license:lgpl2.1+)))
673
674 (define-public clalsadrv
675 (package
676 (name "clalsadrv")
677 (version "2.0.0")
678 (source (origin
679 (method url-fetch)
680 (uri (string-append
681 "http://kokkinizita.linuxaudio.org"
682 "/linuxaudio/downloads/clalsadrv-"
683 version ".tar.bz2"))
684 (sha256
685 (base32
686 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
687 (build-system gnu-build-system)
688 (arguments
689 `(#:tests? #f ; no "check" target
690 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
691 #:phases
692 (modify-phases %standard-phases
693 (add-after 'unpack 'patch-makefile-and-enter-directory
694 (lambda _
695 (substitute* "libs/Makefile"
696 (("/sbin/ldconfig") "true")
697 (("^LIBDIR =.*") "LIBDIR = lib\n"))
698 (chdir "libs")
699 #t))
700 (add-after 'install 'install-symlink
701 (lambda _
702 (symlink "libclalsadrv.so"
703 (string-append (assoc-ref %outputs "out")
704 "/lib/libclalsadrv.so.2"))))
705 ;; no configure script
706 (delete 'configure))))
707 (inputs
708 `(("alsa-lib" ,alsa-lib)
709 ("fftw" ,fftw)))
710 (home-page "https://kokkinizita.linuxaudio.org")
711 (synopsis "C++ wrapper around the ALSA API")
712 (description
713 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
714 ALSA PCM devices.")
715 (license license:gpl2+)))
716
717 (define-public amb-plugins
718 (package
719 (name "amb-plugins")
720 (version "0.8.1")
721 (source (origin
722 (method url-fetch)
723 (uri (string-append
724 "http://kokkinizita.linuxaudio.org"
725 "/linuxaudio/downloads/AMB-plugins-"
726 version ".tar.bz2"))
727 (sha256
728 (base32
729 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
730 (build-system gnu-build-system)
731 (arguments
732 `(#:tests? #f ; no "check" target
733 #:phases
734 (modify-phases %standard-phases
735 ;; no configure script
736 (delete 'configure)
737 (add-before 'install 'prepare-target-directory
738 (lambda* (#:key outputs #:allow-other-keys)
739 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
740 #t))
741 (add-after 'unpack 'override-target-directory-and-tool-paths
742 (lambda* (#:key outputs #:allow-other-keys)
743 (substitute* "Makefile"
744 (("/usr/lib/ladspa")
745 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
746 (("/usr/bin/install") (which "install"))
747 (("/bin/rm") "#"))
748 #t)))))
749 (home-page "https://kokkinizita.linuxaudio.org")
750 (synopsis "LADSPA ambisonics plugins")
751 (description
752 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
753 used within Ardour. Features include: mono and stereo to B-format panning,
754 horizontal rotator, square, hexagon and cube decoders.")
755 (license license:gpl2+)))
756
757 (define-public mcp-plugins
758 (package
759 (name "mcp-plugins")
760 (version "0.4.0")
761 (source (origin
762 (method url-fetch)
763 (uri (string-append
764 "http://kokkinizita.linuxaudio.org"
765 "/linuxaudio/downloads/MCP-plugins-"
766 version ".tar.bz2"))
767 (sha256
768 (base32
769 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
770 (build-system gnu-build-system)
771 (arguments
772 `(#:tests? #f ; no "check" target
773 #:phases
774 (modify-phases %standard-phases
775 ;; no configure script
776 (delete 'configure)
777 (add-before 'install 'prepare-target-directory
778 (lambda* (#:key outputs #:allow-other-keys)
779 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
780 #t))
781 (add-after 'unpack 'override-target-directory
782 (lambda* (#:key outputs #:allow-other-keys)
783 (substitute* "Makefile"
784 (("/usr") (assoc-ref outputs "out")))
785 #t)))))
786 (home-page "https://kokkinizita.linuxaudio.org")
787 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
788 (description
789 "This package provides various LADSPA plugins. @code{cs_chorus} and
790 @code{cs_phaser} provide chorus and phaser effects, respectively;
791 @code{mvclpf24} provides four implementations of the low-pass filter used in
792 vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
793 high-pass filter by Robert Moog. The filters attempt to accurately emulate
794 the non-linear circuit elements of their original analog counterparts.")
795 (license license:gpl2+)))
796
797 (define-public rev-plugins
798 (package
799 (name "rev-plugins")
800 (version "0.7.1")
801 (source (origin
802 (method url-fetch)
803 (uri (string-append
804 "http://kokkinizita.linuxaudio.org"
805 "/linuxaudio/downloads/REV-plugins-"
806 version ".tar.bz2"))
807 (sha256
808 (base32
809 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
810 (build-system gnu-build-system)
811 (arguments
812 `(#:tests? #f ; no "check" target
813 #:phases
814 (modify-phases %standard-phases
815 ;; no configure script
816 (delete 'configure)
817 (add-before 'install 'prepare-target-directory
818 (lambda* (#:key outputs #:allow-other-keys)
819 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
820 #t))
821 (add-after 'unpack 'override-target-directory
822 (lambda* (#:key outputs #:allow-other-keys)
823 (substitute* "Makefile"
824 (("/usr") (assoc-ref outputs "out")))
825 #t)))))
826 (home-page "https://kokkinizita.linuxaudio.org")
827 (synopsis "LADSPA reverb plugin")
828 (description
829 "This package provides a stereo reverb LADSPA plugin based on the
830 well-known greverb.")
831 (license license:gpl2+)))
832
833 (define-public fil-plugins
834 (package
835 (name "fil-plugins")
836 (version "0.3.0")
837 (source (origin
838 (method url-fetch)
839 (uri (string-append
840 "http://kokkinizita.linuxaudio.org"
841 "/linuxaudio/downloads/FIL-plugins-"
842 version ".tar.bz2"))
843 (sha256
844 (base32
845 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
846 (build-system gnu-build-system)
847 (arguments
848 `(#:tests? #f ; no "check" target
849 #:phases
850 (modify-phases %standard-phases
851 ;; no configure script
852 (delete 'configure)
853 (add-before 'install 'prepare-target-directory
854 (lambda* (#:key outputs #:allow-other-keys)
855 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
856 #t))
857 (add-after 'unpack 'override-target-directory
858 (lambda* (#:key outputs #:allow-other-keys)
859 (substitute* "Makefile"
860 (("/usr") (assoc-ref outputs "out")))
861 #t)))))
862 (home-page "https://kokkinizita.linuxaudio.org")
863 (synopsis "LADSPA four-band parametric equalizer plugin")
864 (description
865 "This package provides a LADSPA plugin for a four-band parametric
866 equalizer. Each section has an active/bypass switch, frequency, bandwidth and
867 gain controls. There is also a global bypass switch and gain control.
868
869 The 2nd order resonant filters are implemented using a Mitra-Regalia style
870 lattice filter, which is stable even while parameters are being changed.
871
872 All switches and controls are internally smoothed, so they can be used 'live'
873 without any clicks or zipper noises. This makes this plugin suitable for use
874 in systems that allow automation of plugin control ports, such as Ardour, or
875 for stage use.")
876 (license license:gpl2+)))
877
878 (define-public ste-plugins
879 (package
880 (name "ste-plugins")
881 (version "0.0.2")
882 (source (origin
883 (method url-fetch)
884 (uri (string-append
885 "http://kokkinizita.linuxaudio.org"
886 "/linuxaudio/downloads/STE-plugins-"
887 version ".tar.bz2"))
888 (sha256
889 (base32
890 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
891 (build-system gnu-build-system)
892 (arguments
893 `(#:tests? #f ; no "check" target
894 #:phases
895 (modify-phases %standard-phases
896 ;; no configure script
897 (delete 'configure)
898 (add-before 'install 'prepare-target-directory
899 (lambda* (#:key outputs #:allow-other-keys)
900 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
901 #t))
902 (add-after 'unpack 'override-target-directory
903 (lambda* (#:key outputs #:allow-other-keys)
904 (substitute* "Makefile"
905 (("/usr") (assoc-ref outputs "out")))
906 #t)))))
907 (home-page "https://kokkinizita.linuxaudio.org")
908 (synopsis "LADSPA stereo width plugin")
909 (description
910 "This package provides a LADSPA plugin to manipulate the stereo width of
911 audio signals.")
912 (license license:gpl2+)))
913
914 (define-public vco-plugins
915 (package
916 (name "vco-plugins")
917 (version "0.3.0")
918 (source (origin
919 (method url-fetch)
920 (uri (string-append
921 "http://kokkinizita.linuxaudio.org"
922 "/linuxaudio/downloads/VCO-plugins-"
923 version ".tar.bz2"))
924 (sha256
925 (base32
926 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
927 (build-system gnu-build-system)
928 (arguments
929 `(#:tests? #f ; no "check" target
930 #:phases
931 (modify-phases %standard-phases
932 ;; no configure script
933 (delete 'configure)
934 (add-before 'install 'prepare-target-directory
935 (lambda* (#:key outputs #:allow-other-keys)
936 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
937 #t))
938 (add-after 'unpack 'override-target-directory
939 (lambda* (#:key outputs #:allow-other-keys)
940 (substitute* "Makefile"
941 (("/usr") (assoc-ref outputs "out"))
942 (("/bin/cp") (which "cp")))
943 #t)))))
944 (home-page "https://kokkinizita.linuxaudio.org")
945 (synopsis "LADSPA plugin for synthesizer oscillators")
946 (description
947 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
948
949 @enumerate
950 @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
951 @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
952 @item Rec-VCO, a square / rectange oscillator
953 @end enumerate\n
954
955 All oscillators are low-pass filtered to provide waveforms similar to the
956 output of analog synthesizers such as the Moog Voyager.")
957 (license license:gpl2+)))
958
959 (define-public wah-plugins
960 (package
961 (name "wah-plugins")
962 (version "0.1.0")
963 (source (origin
964 (method url-fetch)
965 (uri (string-append
966 "http://kokkinizita.linuxaudio.org"
967 "/linuxaudio/downloads/WAH-plugins-"
968 version ".tar.bz2"))
969 (sha256
970 (base32
971 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
972 (build-system gnu-build-system)
973 (arguments
974 `(#:tests? #f ; no "check" target
975 #:phases
976 (modify-phases %standard-phases
977 ;; no configure script
978 (delete 'configure)
979 (add-before 'install 'prepare-target-directory
980 (lambda* (#:key outputs #:allow-other-keys)
981 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
982 #t))
983 (add-after 'unpack 'override-target-directory
984 (lambda* (#:key outputs #:allow-other-keys)
985 (substitute* "Makefile"
986 (("/usr") (assoc-ref outputs "out")))
987 #t)))))
988 (home-page "https://kokkinizita.linuxaudio.org")
989 (synopsis "LADSPA Autowah effect plugin")
990 (description
991 "This package provides a LADSPA plugin for a Wah effect with envelope
992 follower.")
993 (license license:gpl2+)))
994
995 (define-public g2reverb
996 (package
997 (name "g2reverb")
998 (version "0.7.1")
999 (source (origin
1000 (method url-fetch)
1001 (uri (string-append
1002 "http://kokkinizita.linuxaudio.org"
1003 "/linuxaudio/downloads/g2reverb-"
1004 version ".tar.bz2"))
1005 (sha256
1006 (base32
1007 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1008 (build-system gnu-build-system)
1009 (arguments
1010 `(#:tests? #f ; no "check" target
1011 #:phases
1012 (modify-phases %standard-phases
1013 ;; no configure script
1014 (delete 'configure)
1015 (add-before 'install 'prepare-target-directory
1016 (lambda* (#:key outputs #:allow-other-keys)
1017 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1018 #t))
1019 (add-after 'unpack 'override-target-directory
1020 (lambda* (#:key outputs #:allow-other-keys)
1021 (substitute* "Makefile"
1022 (("/usr") (assoc-ref outputs "out")))
1023 #t)))))
1024 (home-page "https://kokkinizita.linuxaudio.org")
1025 (synopsis "LADSPA stereo reverb plugin")
1026 (description
1027 "This package provides a LADSPA plugin for a stereo reverb effect.")
1028 (license license:gpl2+)))
1029
1030 (define-public fluidsynth
1031 (package
1032 (name "fluidsynth")
1033 (version "1.1.9")
1034 (source (origin
1035 (method git-fetch)
1036 (uri (git-reference
1037 (url "https://github.com/FluidSynth/fluidsynth.git")
1038 (commit (string-append "v" version))))
1039 (file-name (string-append name "-" version "-checkout"))
1040 (sha256
1041 (base32
1042 "0krvmb1idnf95l2ydzfcb08ayyx3n4m71hf9fgwv3srzaikvpf3q"))))
1043 (build-system cmake-build-system)
1044 (arguments
1045 '(#:tests? #f ; no check phase
1046 #:phases
1047 (modify-phases %standard-phases
1048 (add-after 'unpack 'fix-libdir
1049 (lambda _
1050 (substitute* "CMakeLists.txt"
1051 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1052 "LIB_SUFFIX \"\""))
1053 #t)))))
1054 (inputs
1055 `(("libsndfile" ,libsndfile)
1056 ("alsa-lib" ,alsa-lib)
1057 ("jack" ,jack-1)
1058 ("ladspa" ,ladspa)
1059 ("lash" ,lash)
1060 ("readline" ,readline)
1061 ("glib" ,glib)))
1062 (native-inputs
1063 `(("pkg-config" ,pkg-config)))
1064 (home-page "http://www.fluidsynth.org/")
1065 (synopsis "SoundFont synthesizer")
1066 (description
1067 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1068 specifications. FluidSynth reads and handles MIDI events from the MIDI input
1069 device. It is the software analogue of a MIDI synthesizer. FluidSynth can
1070 also play midifiles using a Soundfont.")
1071 (license license:lgpl2.1+)))
1072
1073 (define-public faad2
1074 (package
1075 (name "faad2")
1076 (version "2.7")
1077 (source (origin
1078 (method url-fetch)
1079 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1080 version "/faad2-" version ".zip"))
1081 (sha256
1082 (base32
1083 "16f3l16c00sg0wkrkm3vzv0gy3g97x309vw788igs0cap2x1ak3z"))))
1084 (build-system gnu-build-system)
1085 (native-inputs
1086 `(("autoconf" ,autoconf)
1087 ("automake" ,automake)
1088 ("libtool" ,libtool)
1089 ("unzip" ,unzip)))
1090 (arguments
1091 '(#:phases
1092 (modify-phases %standard-phases
1093 (add-after 'unpack 'bootstrap
1094 (lambda _
1095 (substitute* "bootstrap" (("\r\n") "\n"))
1096 (zero? (system* "sh" "bootstrap")))))))
1097 (home-page "http://www.audiocoding.com/faad2.html")
1098 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1099 (description
1100 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
1101 PS, and DAB+.")
1102 (license license:gpl2)))
1103
1104 (define-public faust
1105 (package
1106 (name "faust")
1107 (version "0.9.90")
1108 (source (origin
1109 (method git-fetch)
1110 (uri (git-reference
1111 (url "https://github.com/grame-cncm/faust.git")
1112 (commit (string-append "v"
1113 (string-map (lambda (c)
1114 (if (char=? c #\.) #\- c))
1115 version)))))
1116 (file-name (string-append "faust-" version "-checkout"))
1117 (sha256
1118 (base32
1119 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
1120 (build-system gnu-build-system)
1121 (arguments
1122 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1123 #:tests? #f
1124 #:phases
1125 (modify-phases %standard-phases
1126 ;; no "configure" script
1127 (delete 'configure)
1128 ;; Files appear under $out/share/faust that are read-only. The
1129 ;; install phase tries to overwrite them and fails, so we change
1130 ;; the permissions first.
1131 (add-before 'install 'fix-permissions
1132 (lambda _
1133 (for-each (lambda (file)
1134 (chmod file #o644))
1135 (find-files "architecture/max-msp" ".*"))
1136 #t)))))
1137 (native-inputs
1138 `(("unzip" ,unzip)))
1139 (home-page "http://faust.grame.fr/")
1140 (synopsis "Signal processing language")
1141 (description
1142 "Faust is a programming language for realtime audio signal processing.")
1143 (license license:gpl2+)))
1144
1145 (define-public faust-2
1146 (package
1147 (inherit faust)
1148 (version "2.1.0")
1149 (source (origin
1150 (method git-fetch)
1151 (uri (git-reference
1152 (url "https://github.com/grame-cncm/faust.git")
1153 (commit (string-append "v"
1154 (string-map (lambda (c)
1155 (if (char=? c #\.) #\- c))
1156 version)))))
1157 (sha256
1158 (base32
1159 "06km0ygwxxwgw1lqldccqidxhmjfz8ck0wnbd95qk5sg8sbpc068"))))
1160 (build-system gnu-build-system)
1161 (arguments
1162 (substitute-keyword-arguments (package-arguments faust)
1163 ((#:make-flags flags)
1164 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1165 "world"))))
1166 (native-inputs
1167 `(("llvm" ,llvm-with-rtti)
1168 ("which" ,which)
1169 ("xxd" ,xxd)
1170 ("ctags" ,emacs-minimal) ; for ctags
1171 ("pkg-config" ,pkg-config)))
1172 (inputs
1173 `(("libsndfile" ,libsndfile)
1174 ("libmicrohttpd" ,libmicrohttpd)
1175 ("ncurses" ,ncurses)
1176 ("openssl" ,openssl)
1177 ("zlib" ,zlib)))))
1178
1179 (define-public freepats
1180 (package
1181 (name "freepats")
1182 (version "20060219")
1183 (source (origin
1184 (method url-fetch)
1185 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1186 version ".tar.bz2"))
1187 (sha256
1188 (base32
1189 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1190 (build-system trivial-build-system)
1191 (arguments
1192 `(#:modules ((guix build utils))
1193 #:builder (begin
1194 (use-modules (guix build utils))
1195 (let ((out (string-append %output "/share/freepats")))
1196 (setenv "PATH" (string-append
1197 (assoc-ref %build-inputs "bzip2") "/bin:"
1198 (assoc-ref %build-inputs "tar") "/bin"))
1199 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
1200 (chdir "freepats")
1201 ;; Use absolute pattern references
1202 (substitute* "freepats.cfg"
1203 (("Tone_000") (string-append out "/Tone_000"))
1204 (("Drum_000") (string-append out "/Drum_000")))
1205 (mkdir-p out)
1206 (copy-recursively "." out)))))
1207 (native-inputs
1208 `(("tar" ,tar)
1209 ("bzip2" ,bzip2)))
1210 (home-page "http://freepats.zenvoid.org")
1211 (synopsis "GUS compatible patches for MIDI players")
1212 (description
1213 "FreePats is a project to create a free and open set of GUS compatible
1214 patches that can be used with softsynths such as Timidity and WildMidi.")
1215 ;; GPLv2+ with exception for compositions using these patches.
1216 (license license:gpl2+)))
1217
1218 (define-public guitarix
1219 (package
1220 (name "guitarix")
1221 (version "0.36.1")
1222 (source (origin
1223 (method url-fetch)
1224 (uri (string-append
1225 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
1226 version ".tar.xz"))
1227 (sha256
1228 (base32
1229 "1g5949jwh2n755xjs3kcbdb8a1wxr5mn0m115wdnk27dxcdn93b0"))))
1230 (build-system waf-build-system)
1231 (arguments
1232 `(#:tests? #f ; no "check" target
1233 #:python ,python-2
1234 #:configure-flags
1235 (list
1236 ;; Add the output lib directory to the RUNPATH.
1237 (string-append "--ldflags=-Wl,-rpath=" %output "/lib")
1238 "--cxxflags=-std=c++11")))
1239 (inputs
1240 `(("libsndfile" ,libsndfile)
1241 ("boost" ,boost)
1242 ("avahi" ,avahi)
1243 ("eigen" ,eigen)
1244 ("lv2" ,lv2)
1245 ("lilv" ,lilv)
1246 ("ladspa" ,ladspa)
1247 ("jack" ,jack-1)
1248 ("gtkmm" ,gtkmm-2)
1249 ("gtk+" ,gtk+-2)
1250 ("fftwf" ,fftwf)
1251 ("lrdf" ,lrdf)
1252 ("zita-resampler" ,zita-resampler)
1253 ("zita-convolver" ,zita-convolver)))
1254 (native-inputs
1255 `(("gperf" ,gperf)
1256 ("faust" ,faust)
1257 ("intltool" ,intltool)
1258 ("gettext" ,gettext-minimal)
1259 ("pkg-config" ,pkg-config)))
1260 (native-search-paths
1261 (list (search-path-specification
1262 (variable "LV2_PATH")
1263 (files '("lib/lv2")))))
1264 (home-page "http://guitarix.org/")
1265 (synopsis "Virtual guitar amplifier")
1266 (description "Guitarix is a virtual guitar amplifier running JACK.
1267 Guitarix takes the signal from your guitar as a mono-signal from your sound
1268 card. The input is processed by a main amp and a rack-section. Both can be
1269 routed separately and deliver a processed stereo-signal via JACK. You may
1270 fill the rack with effects from more than 25 built-in modules including stuff
1271 from a simple noise gate to modulation effects like flanger, phaser or
1272 auto-wah.")
1273 (license license:gpl2+)))
1274
1275 (define-public guitarix-lv2
1276 (package (inherit guitarix)
1277 (name "guitarix-lv2")
1278 (arguments
1279 (substitute-keyword-arguments (package-arguments guitarix)
1280 ((#:configure-flags flags)
1281 `(cons "--lv2-only" ,flags))))))
1282
1283 (define-public rakarrack
1284 (package
1285 (name "rakarrack")
1286 (version "0.6.1")
1287 (source (origin
1288 (method url-fetch)
1289 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1290 "rakarrack-" version "/rakarrack-"
1291 version ".tar.bz2"))
1292 (sha256
1293 (base32
1294 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1295 (modules '((guix build utils)))
1296 (snippet
1297 '(begin
1298 (substitute* '("src/process.C"
1299 "src/global.h")
1300 (("#include <Fl/") "#include <FL/"))
1301 #t))))
1302 (build-system gnu-build-system)
1303 (inputs
1304 `(("alsa-utils" ,alsa-utils)
1305 ("fltk" ,fltk)
1306 ("libx11" ,libx11)
1307 ("libxext" ,libxext)
1308 ("libxfixes" ,libxfixes)
1309 ("libxft" ,libxft)
1310 ("libxrender" ,libxrender)
1311 ("libxpm" ,libxpm)
1312 ("fontconfig" ,fontconfig)
1313 ("freetype" ,freetype)
1314 ("jack" ,jack-1)
1315 ("alsa-lib" ,alsa-lib)
1316 ("libsndfile" ,libsndfile)
1317 ("libsamplerate" ,libsamplerate)
1318 ("zlib" ,zlib)))
1319 (home-page "http://rakarrack.sourceforge.net/")
1320 (synopsis "Audio effects processor")
1321 (description
1322 "Rakarrack is a richly featured multi-effects processor emulating a
1323 guitar effects pedalboard. Effects include compressor, expander, noise gate,
1324 equalizers, exciter, flangers, chorus, various delay and reverb effects,
1325 distortion modules and many more. Most of the effects engine is built from
1326 modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1327 user interface are optimized for guitar, but Rakarrack processes signals in
1328 stereo while it does not apply internal band-limiting filtering, and thus is
1329 well suited to all musical instruments and vocals.")
1330 ;; The code is explicitly licensed under the GPL version 2 only.
1331 (license license:gpl2)))
1332
1333 (define-public ir
1334 (package
1335 (name "ir")
1336 (version "1.3.2")
1337 (source (origin
1338 (method url-fetch)
1339 ;; The original home-page is gone. Download the tarball from an
1340 ;; archive mirror instead.
1341 (uri (list (string-append
1342 "https://web.archive.org/web/20150803095032/"
1343 "http://factorial.hu/system/files/ir.lv2-"
1344 version ".tar.gz")
1345 (string-append
1346 "https://mirrors.kernel.org/gentoo/distfiles/ir.lv2-"
1347 version ".tar.gz")))
1348 (sha256
1349 (base32
1350 "1jh2z01l9m4ar7yz0n911df07dygc7n4cl59p7qdjbh0nvkm747g"))))
1351 (build-system gnu-build-system)
1352 (arguments
1353 `(#:tests? #f ; no tests
1354 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1355 #:phases (modify-phases %standard-phases
1356 (delete 'configure)))) ; no configure script
1357 (inputs
1358 `(("libsndfile" ,libsndfile)
1359 ("libsamplerate" ,libsamplerate)
1360 ("lv2" ,lv2)
1361 ("glib" ,glib)
1362 ("gtk+" ,gtk+-2)
1363 ("zita-convolver" ,zita-convolver)))
1364 (native-inputs
1365 `(("pkg-config" ,pkg-config)))
1366 (native-search-paths
1367 (list (search-path-specification
1368 (variable "LV2_PATH")
1369 (files '("lib/lv2")))))
1370 ;; Link to an archived copy of the home-page since the original is gone.
1371 (home-page (string-append "https://web.archive.org/web/20150803095032/"
1372 "http://factorial.hu/plugins/lv2/ir"))
1373 (synopsis "LV2 convolution reverb")
1374 (description
1375 "IR is a low-latency, real-time, high performance signal convolver
1376 especially for creating reverb effects. It supports impulse responses with 1,
1377 2 or 4 channels, in any soundfile format supported by libsndfile.")
1378 (license license:gpl2+)))
1379
1380 (define-public jack-1
1381 (package
1382 (name "jack")
1383 (version "0.125.0")
1384 (source (origin
1385 (method url-fetch)
1386 (uri (string-append
1387 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1388 version
1389 ".tar.gz"))
1390 (sha256
1391 (base32
1392 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
1393 (build-system gnu-build-system)
1394 (inputs
1395 `(("alsa-lib" ,alsa-lib)
1396 ("readline" ,readline)))
1397 ;; uuid.h is included in the JACK type headers
1398 ;; db.h is included in the libjack metadata headers
1399 (propagated-inputs
1400 `(("libuuid" ,util-linux)
1401 ("bdb" ,bdb)))
1402 (native-inputs
1403 `(("pkg-config" ,pkg-config)))
1404 (home-page "http://jackaudio.org/")
1405 (synopsis "JACK audio connection kit")
1406 (description
1407 "JACK is a low-latency audio server. It can connect a number of
1408 different applications to an audio device, as well as allowing them to share
1409 audio between themselves. JACK is different from other audio server efforts
1410 in that it has been designed from the ground up to be suitable for
1411 professional audio work. This means that it focuses on two key areas:
1412 synchronous execution of all clients, and low latency operation.")
1413 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1414 ;; licensed under the LGPL in order to allow for proprietary usage.
1415 (license (list license:gpl2+ license:lgpl2.1+))))
1416
1417 ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1418 ;; jack-2 implement the same API. JACK2 is provided primarily as a client
1419 ;; program for users who might benefit from the D-BUS features.
1420 (define-public jack-2
1421 (package (inherit jack-1)
1422 (name "jack2")
1423 (version "1.9.12")
1424 (source (origin
1425 (method url-fetch)
1426 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
1427 "download/v" version "/jack2-"
1428 version ".tar.gz"))
1429 (file-name (string-append name "-" version ".tar.gz"))
1430 (sha256
1431 (base32
1432 "0crf4y9a5j9miw8r5ji4l3w5w0y2frrf7xyfsfdgacnw6vwy5vyy"))))
1433 (build-system waf-build-system)
1434 (arguments
1435 `(#:python ,python-2
1436 #:tests? #f ; no check target
1437 #:configure-flags '("--dbus"
1438 "--alsa")
1439 #:phases
1440 (modify-phases %standard-phases
1441 (add-before
1442 'configure 'set-linkflags
1443 (lambda _
1444 ;; Add $libdir to the RUNPATH of all the binaries.
1445 (substitute* "wscript"
1446 ((".*CFLAGS.*-Wall.*" m)
1447 (string-append m
1448 " conf.env.append_unique('LINKFLAGS',"
1449 "'-Wl,-rpath=" %output "/lib')\n")))))
1450 (add-after 'install 'wrap-python-scripts
1451 (lambda* (#:key inputs outputs #:allow-other-keys)
1452 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1453 (let* ((out (assoc-ref outputs "out"))
1454 (path (getenv "PYTHONPATH")))
1455 (wrap-program (string-append out "/bin/jack_control")
1456 `("PYTHONPATH" ":" prefix (,path))))
1457 #t)))))
1458 (inputs
1459 `(("alsa-lib" ,alsa-lib)
1460 ("dbus" ,dbus)
1461 ("expat" ,expat)
1462 ("libsamplerate" ,libsamplerate)
1463 ("opus" ,opus)
1464 ("python2-dbus" ,python2-dbus)
1465 ("readline" ,readline)))
1466 (native-inputs
1467 `(("pkg-config" ,pkg-config)))
1468 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1469 (license (list license:gpl2+ license:lgpl2.1+))))
1470
1471 (define-public jalv
1472 (package
1473 (name "jalv")
1474 (version "1.6.0")
1475 (source (origin
1476 (method url-fetch)
1477 (uri (string-append "http://download.drobilla.net/jalv-"
1478 version ".tar.bz2"))
1479 (sha256
1480 (base32
1481 "1x2wpzzx2cgvz3dgdcgsj8dr0w3zsasy62mvl199bsdj5fbjaili"))))
1482 (build-system waf-build-system)
1483 (arguments
1484 `(#:tests? #f ; no check target
1485 #:phases
1486 (modify-phases %standard-phases
1487 (add-before
1488 'configure 'set-flags
1489 (lambda _
1490 ;; Compile with C++11, required by gtkmm.
1491 (setenv "CXXFLAGS" "-std=c++11")
1492 #t)))))
1493 (inputs
1494 `(("lv2" ,lv2)
1495 ("lilv" ,lilv)
1496 ("suil" ,suil)
1497 ("gtk" ,gtk+)
1498 ("gtkmm" ,gtkmm)
1499 ("jack" ,jack-1)))
1500 (native-inputs
1501 `(("pkg-config" ,pkg-config)))
1502 (home-page "http://drobilla.net/software/jalv/")
1503 (synopsis "Simple LV2 host for JACK")
1504 (description
1505 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1506 plugins and exposes their ports as JACK ports, essentially making any LV2
1507 plugin function as a JACK application.")
1508 (license license:isc)))
1509
1510 (define-public ladspa
1511 (package
1512 (name "ladspa")
1513 (version "1.13")
1514 (source
1515 (origin
1516 (method url-fetch)
1517 ;; Since the official link is dead,
1518 ;; we download the tarball from Debian or Internet Archive.
1519 (uri (list (string-append "http://http.debian.net"
1520 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1521 version ".orig.tar.gz")
1522 (string-append "https://web.archive.org/web/20140717172251/"
1523 "http://www.ladspa.org/download/ladspa_sdk_"
1524 version ".tgz")))
1525 (sha256
1526 (base32
1527 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
1528 (build-system gnu-build-system)
1529 (arguments
1530 `(#:tests? #f ; the "test" target is a listening test only
1531 #:phases
1532 (alist-replace
1533 'configure
1534 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1535 (chdir "src")
1536 (let ((out (assoc-ref outputs "out")))
1537 (substitute* "makefile"
1538 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1539 (("/usr/include/") (string-append out "/include/"))
1540 (("/usr/bin/") (string-append out "/bin/"))
1541 (("-mkdirhier") "mkdir -p")
1542 (("^CC.*") "CC = gcc\n")
1543 (("^CPP.*") "CPP = g++\n"))))
1544 (alist-delete 'build %standard-phases))))
1545 ;; Since the home page is gone, we provide a link to the archived version.
1546 (home-page
1547 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
1548 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1549 (description
1550 "LADSPA is a standard that allows software audio processors and effects
1551 to be plugged into a wide range of audio synthesis and recording packages.")
1552 (license license:lgpl2.1+)))
1553
1554 (define-public lash
1555 (package
1556 (name "lash")
1557 (version "0.6.0-rc2")
1558 (source (origin
1559 (method url-fetch)
1560 ;; The tilde is not permitted in the builder name, but is used
1561 ;; in the tarball.
1562 (uri (string-append
1563 "mirror://savannah/lash/lash-"
1564 (string-join (string-split version #\-) "~")
1565 ".tar.bz2"))
1566 (file-name (string-append name "-" version ".tar.bz2"))
1567 (sha256
1568 (base32
1569 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1570 (build-system gnu-build-system)
1571 (arguments
1572 '(#:phases
1573 (modify-phases %standard-phases
1574 ;; lashd embeds an ancient version of sigsegv so we just skip it
1575 (add-after 'unpack 'skip-lashd
1576 (lambda _
1577 (substitute* '("Makefile.am" "Makefile.in")
1578 (("lashd ") ""))
1579 #t)))
1580 #:configure-flags '("--disable-static")))
1581 (inputs
1582 `(("bdb" ,bdb)
1583 ("gtk" ,gtk+-2)
1584 ("jack" ,jack-1)
1585 ("readline" ,readline)
1586 ("python" ,python-2)))
1587 ;; According to pkg-config, packages depending on lash also need to have
1588 ;; at least the following packages declared as inputs.
1589 (propagated-inputs
1590 `(("alsa-lib" ,alsa-lib)
1591 ("dbus" ,dbus)
1592 ("libxml2" ,libxml2)))
1593 (native-inputs
1594 `(("pkg-config" ,pkg-config)))
1595 (home-page "https://www.nongnu.org/lash/")
1596 (synopsis "Audio application session manager")
1597 (description
1598 "LASH is a session management system for audio applications. It allows
1599 you to save and restore audio sessions consisting of multiple interconneced
1600 applications, restoring program state (i.e. loaded patches) and the
1601 connections between them.")
1602 (license license:gpl2+)))
1603
1604 (define-public libbs2b
1605 (package
1606 (name "libbs2b")
1607 (version "3.1.0")
1608 (source (origin
1609 (method url-fetch)
1610 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1611 "/libbs2b-" version ".tar.lzma"))
1612 (sha256
1613 (base32
1614 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1615 (build-system gnu-build-system)
1616 (native-inputs `(("pkg-config" ,pkg-config)))
1617 (inputs `(("libsndfile" ,libsndfile)))
1618 (home-page "https://sourceforge.net/projects/bs2b/")
1619 (synopsis "Bauer stereophonic-to-binaural DSP")
1620 (description
1621 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1622 designed to improve headphone listening of stereo audio records. Recommended
1623 for headphone prolonged listening to disable superstereo fatigue without
1624 essential distortions.")
1625 (license license:expat)))
1626
1627 (define-public liblo
1628 (package
1629 (name "liblo")
1630 (version "0.28")
1631 (source (origin
1632 (method url-fetch)
1633 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1634 "/liblo-" version ".tar.gz"))
1635 (sha256
1636 (base32
1637 "02drgnpirvl2ihvzgsmn02agr5sj3vipzzw9vma56qlkgfvak56s"))))
1638 (build-system gnu-build-system)
1639 (arguments
1640 `(;; liblo test FAILED
1641 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1642 #:tests? #f))
1643 (home-page "http://liblo.sourceforge.net")
1644 (synopsis "Implementation of the Open Sound Control protocol")
1645 (description
1646 "liblo is a lightweight library that provides an easy to use
1647 implementation of the Open Sound Control (OSC) protocol.")
1648 (license license:lgpl2.1+)))
1649
1650 (define-public python-pyaudio
1651 (package
1652 (name "python-pyaudio")
1653 (version "0.2.11")
1654 (source
1655 (origin
1656 (method url-fetch)
1657 (uri
1658 (string-append
1659 "https://pypi.python.org/packages/ab/42/"
1660 "b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b"
1661 "/PyAudio-" version ".tar.gz"))
1662 (sha256
1663 (base32
1664 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
1665 (build-system python-build-system)
1666 (inputs
1667 `(("portaudio" ,portaudio)))
1668 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
1669 (synopsis "Bindings for PortAudio v19")
1670 (description "This package provides bindings for PortAudio v19, the
1671 cross-platform audio input/output stream library.")
1672 (license license:expat)))
1673
1674 (define-public python2-pyaudio
1675 (package-with-python2 python-pyaudio))
1676
1677 (define-public python-pyliblo
1678 (package
1679 (name "python-pyliblo")
1680 (version "0.10.0")
1681 (source (origin
1682 (method url-fetch)
1683 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1684 version ".tar.gz"))
1685 (sha256
1686 (base32
1687 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1688 (build-system python-build-system)
1689 (arguments `(#:tests? #f)) ;no tests
1690 (native-inputs
1691 `(("python-cython" ,python-cython)))
1692 (inputs
1693 `(("liblo" ,liblo)))
1694 (home-page "http://das.nasophon.de/pyliblo/")
1695 (synopsis "Python bindings for liblo")
1696 (description
1697 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1698 library. It supports almost the complete functionality of liblo, allowing you
1699 to send and receive OSC messages using a nice and simple Python API. Also
1700 included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1701 (license license:lgpl2.1+)))
1702
1703 (define-public python2-pyliblo
1704 (package-with-python2 python-pyliblo))
1705
1706 (define-public lilv
1707 (package
1708 (name "lilv")
1709 (version "0.24.2")
1710 (source (origin
1711 (method url-fetch)
1712 (uri (string-append "http://download.drobilla.net/lilv-"
1713 version ".tar.bz2"))
1714 (sha256
1715 (base32
1716 "08m5a372pr1l7aii9s3pic5nm68gynx1n1bc7bnlswziq6qnbv7p"))))
1717 (build-system waf-build-system)
1718 (arguments
1719 `(#:tests? #f ; no check target
1720 #:phases
1721 (modify-phases %standard-phases
1722 (add-before
1723 'configure 'set-ldflags
1724 (lambda* (#:key outputs #:allow-other-keys)
1725 (setenv "LDFLAGS"
1726 (string-append "-Wl,-rpath="
1727 (assoc-ref outputs "out") "/lib")))))))
1728 ;; required by lilv-0.pc
1729 (propagated-inputs
1730 `(("serd" ,serd)
1731 ("sord" ,sord)
1732 ("sratom" ,sratom)))
1733 (inputs
1734 `(("lv2" ,lv2)))
1735 (native-inputs
1736 `(("pkg-config" ,pkg-config)))
1737 (home-page "http://drobilla.net/software/lilv/")
1738 (synopsis "Library to simplify use of LV2 plugins in applications")
1739 (description
1740 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1741 for applications. Lilv is the successor to SLV2, rewritten to be
1742 significantly faster and have minimal dependencies.")
1743 (license license:isc)))
1744
1745 (define-public lv2
1746 (package
1747 (name "lv2")
1748 (version "1.14.0")
1749 (source (origin
1750 (method url-fetch)
1751 (uri (string-append "http://lv2plug.in/spec/lv2-"
1752 version ".tar.bz2"))
1753 (sha256
1754 (base32
1755 "0chxwys3vnn3nxc9x2vchm74s9sx0vfra6y893byy12ci61jc1dq"))))
1756 (build-system waf-build-system)
1757 (arguments
1758 `(#:tests? #f ; no check target
1759 #:configure-flags '("--no-plugins")))
1760 (inputs
1761 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1762 `(("libsndfile" ,libsndfile)))
1763 (native-inputs
1764 `(("pkg-config" ,pkg-config)))
1765 (home-page "http://lv2plug.in/")
1766 (synopsis "LV2 audio plugin specification")
1767 (description
1768 "LV2 is an open specification for audio plugins and host applications.
1769 At its core, LV2 is a simple stable interface, accompanied by extensions which
1770 add functionality to support the needs of increasingly powerful audio
1771 software.")
1772 (license license:isc)))
1773
1774 (define-public lv2-devel
1775 (let ((commit "39c7c726cd52b2863fcea356cafe1bcab2ba7f37")
1776 (revision "1"))
1777 (package (inherit lv2)
1778 (name "lv2-devel")
1779 (version (string-append "1.15.3-" revision "." (string-take commit 7)))
1780 (source (origin
1781 (method git-fetch)
1782 (uri (git-reference
1783 (url "http://lv2plug.in/git/lv2.git")
1784 (commit commit)))
1785 (sha256
1786 (base32
1787 "1gp2rd99dfmpibvpixrqn115mrhybzf3if3h8bssf6siyi13f29r")))))))
1788
1789 (define-public lv2-mda-piano
1790 (package
1791 (name "lv2-mda-piano")
1792 (version "0.0.2")
1793 (source (origin
1794 (method git-fetch)
1795 (uri (git-reference
1796 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
1797 (commit version)))
1798 (sha256
1799 (base32
1800 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1801 (build-system gnu-build-system)
1802 (arguments
1803 `(#:make-flags (list
1804 "TYPE=mdaPiano"
1805 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1806 #:tests? #f ; no check target
1807 #:phases (modify-phases %standard-phases (delete 'configure))))
1808 (inputs
1809 `(("lv2" ,lv2)
1810 ("lvtk" ,lvtk)))
1811 (native-inputs
1812 `(("pkg-config" ,pkg-config)))
1813 (native-search-paths
1814 (list (search-path-specification
1815 (variable "LV2_PATH")
1816 (files '("lib/lv2")))))
1817 (home-page "http://elephly.net/lv2/mdapiano.html")
1818 (synopsis "LV2 port of the mda Piano plugin")
1819 (description "An LV2 port of the mda Piano VSTi.")
1820 (license license:gpl3+)))
1821
1822 (define-public lv2-mda-epiano
1823 (package (inherit lv2-mda-piano)
1824 (name "lv2-mda-epiano")
1825 (arguments
1826 `(#:make-flags (list
1827 "TYPE=mdaEPiano"
1828 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1829 #:tests? #f ; no check target
1830 #:phases (modify-phases %standard-phases (delete 'configure))))
1831 (home-page "http://elephly.net/lv2/mdaepiano.html")
1832 (synopsis "LV2 port of the mda EPiano plugin")
1833 (description "An LV2 port of the mda EPiano VSTi.")))
1834
1835 (define-public lvtk
1836 (package
1837 (name "lvtk")
1838 (version "1.2.0")
1839 (source (origin
1840 (method url-fetch)
1841 (uri (string-append "https://github.com/lvtk/lvtk/archive/"
1842 version
1843 ".tar.gz"))
1844 (file-name (string-append name "-" version ".tar.gz"))
1845 (sha256
1846 (base32
1847 "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd"))))
1848 (build-system waf-build-system)
1849 (arguments
1850 `(#:tests? #f ; no check target
1851 #:python ,python-2
1852 #:configure-flags
1853 (list (string-append "--boost-includes="
1854 (assoc-ref %build-inputs "boost")
1855 "/include"))
1856 #:phases (modify-phases %standard-phases
1857 (add-before
1858 'configure 'set-flags
1859 (lambda* (#:key inputs #:allow-other-keys)
1860 ;; See e.g. https://github.com/lvtk/lvtk/issues/21
1861 (setenv "LDFLAGS"
1862 (string-append
1863 "-L" (assoc-ref inputs "boost") "/lib "
1864 "-lboost_system"))
1865 ;; Needed for gtkmm
1866 (substitute* '("src/wscript_build"
1867 "examples/wscript_build")
1868 (("cxxflags.*= \\[" line)
1869 (string-append line "\"-std=c++11\", ")))
1870 #t)))))
1871 (inputs
1872 `(("boost" ,boost)
1873 ("gtkmm" ,gtkmm-2)
1874 ("lv2" ,lv2)))
1875 (native-inputs
1876 `(("pkg-config" ,pkg-config)))
1877 (home-page "https://github.com/lvtk/lvtk")
1878 (synopsis "C++ libraries for LV2 plugins")
1879 (description
1880 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
1881 extensions into easy to use C++ classes. It is the successor of
1882 lv2-c++-tools.")
1883 (license license:gpl3+)))
1884
1885 (define-public openal
1886 (package
1887 (name "openal")
1888 (version "1.17.2")
1889 (source (origin
1890 (method url-fetch)
1891 (uri (string-append
1892 "http://kcat.strangesoft.net/openal-releases/openal-soft-"
1893 version ".tar.bz2"))
1894 (sha256
1895 (base32
1896 "051k5fy8pk4fd9ha3qaqcv08xwbks09xl5qs4ijqq2qz5xaghhd3"))))
1897 (build-system cmake-build-system)
1898 (arguments
1899 `(#:tests? #f ; no check target
1900 #:phases
1901 (modify-phases %standard-phases
1902 (add-after
1903 'unpack 'use-full-library-paths
1904 (lambda* (#:key inputs #:allow-other-keys)
1905 (substitute* "Alc/backends/pulseaudio.c"
1906 (("#define PALIB \"libpulse\\.so\\.0\"")
1907 (string-append "#define PALIB \""
1908 (assoc-ref inputs "pulseaudio")
1909 "/lib/libpulse.so.0"
1910 "\"")))
1911 (substitute* "Alc/backends/alsa.c"
1912 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
1913 (string-append "LoadLib(\""
1914 (assoc-ref inputs "alsa-lib")
1915 "/lib/libasound.so.2"
1916 "\")")))
1917 #t)))))
1918 (inputs
1919 `(("alsa-lib" ,alsa-lib)
1920 ("pulseaudio" ,pulseaudio)))
1921 (synopsis "3D audio API")
1922 (description
1923 "OpenAL provides capabilities for playing audio in a virtual 3D
1924 environment. Distance attenuation, doppler shift, and directional sound
1925 emitters are among the features handled by the API. More advanced effects,
1926 including air absorption, occlusion, and environmental reverb, are available
1927 through the EFX extension. It also facilitates streaming audio, multi-channel
1928 buffers, and audio capture.")
1929 (home-page "http://kcat.strangesoft.net/openal.html")
1930 (license license:lgpl2.0+)))
1931
1932 (define-public freealut
1933 (package
1934 (name "freealut")
1935 (version "1.1.0")
1936 (source (origin
1937 (method url-fetch)
1938 ;; Upstream url is unclear, many systems use Fedora, there is also
1939 ;; https://github.com/vancegroup/freealut though the status of it
1940 ;; (official? unofficial?) is not clear.
1941 (uri (string-append
1942 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
1943 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
1944 "-" version ".tar.gz"))
1945 (sha256
1946 (base32
1947 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
1948 (build-system cmake-build-system)
1949 (arguments
1950 `(#:tests? #f)) ; no check target
1951 (inputs
1952 `(("openal" ,openal)))
1953 (synopsis "Free implementation of OpenAL's ALUT standard")
1954 (description "freealut is the OpenAL Utility Toolkit.")
1955 (home-page "http://kcat.strangesoft.net/openal.html")
1956 (license license:lgpl2.0)))
1957
1958 (define-public patchage
1959 (package
1960 (name "patchage")
1961 (version "1.0.0")
1962 (source (origin
1963 (method url-fetch)
1964 (uri (string-append "http://download.drobilla.net/patchage-"
1965 version
1966 ".tar.bz2"))
1967 (sha256
1968 (base32
1969 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
1970 (build-system waf-build-system)
1971 (arguments `(#:tests? #f)) ; no check target
1972 (inputs
1973 `(("alsa-lib" ,alsa-lib)
1974 ("boost" ,boost)
1975 ("jack" ,jack-1)
1976 ("ganv" ,ganv)
1977 ("glibmm" ,glibmm)
1978 ("gtkmm" ,gtkmm-2)
1979 ("dbus-glib" ,dbus-glib)))
1980 (native-inputs
1981 `(("pkg-config" ,pkg-config)))
1982 (home-page "http://drobilla.net/software/patchage/")
1983 (synopsis "Modular patch bay for audio and MIDI systems")
1984 (description
1985 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
1986 and ALSA.")
1987 (license license:gpl3+)))
1988
1989 (define-public qjackctl
1990 (package
1991 (name "qjackctl")
1992 (version "0.5.0")
1993 (source (origin
1994 (method url-fetch)
1995 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
1996 version "/qjackctl-" version ".tar.gz"))
1997 (sha256
1998 (base32
1999 "0lx81dfwanc10vrny1vzi0wx73ph82dlz99ffjzsigj3cqzz6x4s"))))
2000 (build-system gnu-build-system)
2001 (arguments
2002 '(#:tests? #f)) ; no check target
2003 (inputs
2004 `(("jack" ,jack-1)
2005 ("alsa-lib" ,alsa-lib)
2006 ("qtbase" ,qtbase)
2007 ("qtx11extras" ,qtx11extras)))
2008 (native-inputs
2009 `(("pkg-config" ,pkg-config)
2010 ("qttools" ,qttools)))
2011 (home-page "https://qjackctl.sourceforge.io/")
2012 (synopsis "Jack server control application")
2013 (description "Control a Jack server. Allows you to plug various sources
2014 into various outputs and to start, stop and configure jackd")
2015 (license license:gpl2+)))
2016
2017 (define-public qjackrcd
2018 (package
2019 (name "qjackrcd")
2020 (version "1.2.2")
2021 (source (origin
2022 (method git-fetch)
2023 (uri (git-reference
2024 (url "https://github.com/orouits/qjackrcd.git")
2025 (commit (string-append "v" version))))
2026 (sha256
2027 (base32
2028 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
2029 (build-system gnu-build-system)
2030 (arguments
2031 `(#:phases
2032 (modify-phases %standard-phases
2033 (replace 'configure
2034 (lambda* (#:key outputs #:allow-other-keys)
2035 (zero? (system* "qmake"
2036 (string-append "PREFIX="
2037 (assoc-ref outputs "out")))))))))
2038 (native-inputs
2039 `(("qtbase" ,qtbase))) ; for qmake
2040 (inputs
2041 `(("jack" ,jack-1)
2042 ("libsndfile" ,libsndfile)
2043 ("qtbase" ,qtbase)))
2044 (home-page "https://sourceforge.net/projects/qjackrcd/")
2045 (synopsis "Stereo audio recorder for JACK")
2046 (description "QJackRcd is a simple graphical stereo recorder for JACK
2047 supporting silence processing for automatic pause, file splitting, and
2048 background file post-processing.")
2049 (license license:gpl2+)))
2050
2051 (define-public raul
2052 (package
2053 (name "raul")
2054 (version "0.8.0")
2055 (source (origin
2056 (method url-fetch)
2057 (uri (string-append "http://download.drobilla.net/raul-"
2058 version ".tar.bz2"))
2059 (sha256
2060 (base32
2061 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2062 (build-system waf-build-system)
2063 (arguments
2064 `(#:python ,python-2
2065 #:tests? #f)) ; no check target
2066 (inputs
2067 `(("glib" ,glib)
2068 ("boost" ,boost)))
2069 (native-inputs
2070 `(("pkg-config" ,pkg-config)))
2071 (home-page "http://drobilla.net/software/raul/")
2072 (synopsis "Real-time audio utility library")
2073 (description
2074 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2075 aimed at audio/musical applications.")
2076 (license license:gpl2+)))
2077
2078 (define-public raul-devel
2079 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
2080 (revision "1"))
2081 (package (inherit raul)
2082 (name "raul")
2083 (version (string-append "0.8.9-" revision "."
2084 (string-take commit 9)))
2085 (source (origin
2086 (method git-fetch)
2087 (uri (git-reference
2088 (url "http://git.drobilla.net/raul.git")
2089 (commit commit)))
2090 (file-name (string-append name "-" version "-checkout"))
2091 (sha256
2092 (base32
2093 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
2094
2095 (define-public rubberband
2096 (package
2097 (name "rubberband")
2098 (version "1.8.1")
2099 (source (origin
2100 (method url-fetch)
2101 (uri
2102 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2103 version
2104 ".tar.bz2"))
2105 (sha256
2106 (base32
2107 "05amrbrxx0da3w7m237q51799r8xgs4ffqabi2qv06hq8dpcj386"))))
2108 (build-system gnu-build-system)
2109 (arguments `(#:tests? #f)) ; no check target
2110 (inputs
2111 `(("ladspa" ,ladspa)
2112 ("libsamplerate" ,libsamplerate)
2113 ("vamp" ,vamp)))
2114 (native-inputs
2115 `(("pkg-config" ,pkg-config)))
2116 (home-page "http://breakfastquay.com/rubberband/")
2117 (synopsis "Audio time-stretching and pitch-shifting library")
2118 (description
2119 "Rubber Band is a library and utility program that permits changing the
2120 tempo and pitch of an audio recording independently of one another.")
2121 (license license:gpl2+)))
2122
2123 (define-public rtmidi
2124 (package
2125 (name "rtmidi")
2126 (version "2.1.0")
2127 (source (origin
2128 (method url-fetch)
2129 (uri
2130 (string-append "https://github.com/powertab/rtmidi/archive/"
2131 version ".tar.gz"))
2132 (file-name (string-append name "-" version ".tar.gz"))
2133 (sha256
2134 (base32
2135 "0d49lapnmdgmjxh4vw57h6xk74nn5r0zwysv7jbd7m8kqhpq5rjj"))))
2136 (build-system gnu-build-system)
2137 (arguments
2138 `(#:tests? #f ;no "check" target
2139 #:phases (modify-phases %standard-phases
2140 (add-after
2141 'unpack 'autoconf
2142 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
2143 (add-before
2144 'build 'fix-makefile
2145 (lambda _
2146 (substitute* "Makefile"
2147 (("/bin/ln") "ln")
2148 (("RtMidi.h RtError.h") "RtMidi.h"))
2149 #t))
2150 (add-before
2151 'install 'make-target-dirs
2152 (lambda _
2153 (let ((out (assoc-ref %outputs "out")))
2154 (mkdir-p (string-append out "/bin"))
2155 (mkdir (string-append out "/lib"))
2156 (mkdir (string-append out "/include")))
2157 #t)))))
2158 (inputs
2159 `(("jack" ,jack-1)
2160 ("alsa-lib" ,alsa-lib)))
2161 (native-inputs
2162 `(("autoconf" ,autoconf)
2163 ("automake" ,automake)
2164 ("libtool" ,libtool)
2165 ("pkg-config" ,pkg-config)))
2166 (home-page "https://github.com/powertab/rtmidi")
2167 (synopsis "Cross-platform MIDI library for C++")
2168 (description
2169 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2170 classes) that provide a common cross-platform API for realtime MIDI
2171 input/output.")
2172 (license license:expat)))
2173
2174 (define-public sratom
2175 (package
2176 (name "sratom")
2177 (version "0.6.0")
2178 (source (origin
2179 (method url-fetch)
2180 (uri (string-append "http://download.drobilla.net/sratom-"
2181 version ".tar.bz2"))
2182 (sha256
2183 (base32
2184 "0hrxd9i66s06bpn6i3s9ka95134g3sm8yscmif7qgdzhyjqw42j4"))))
2185 (build-system waf-build-system)
2186 (arguments `(#:tests? #f)) ; no check target
2187 (inputs
2188 `(("lv2" ,lv2)
2189 ("serd" ,serd)
2190 ("sord" ,sord)))
2191 (native-inputs
2192 `(("pkg-config" ,pkg-config)))
2193 (home-page "http://drobilla.net/software/sratom/")
2194 (synopsis "Library for serialising LV2 atoms to/from RDF")
2195 (description
2196 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2197 the Turtle syntax.")
2198 (license license:isc)))
2199
2200 (define-public suil
2201 (package
2202 (name "suil")
2203 (version "0.10.0")
2204 (source (origin
2205 (method url-fetch)
2206 (uri (string-append "http://download.drobilla.net/suil-"
2207 version ".tar.bz2"))
2208 (sha256
2209 (base32
2210 "0j489gm3fhnmwmbgw30bvd4byw1vsy4yazdlnji8jzhcz0qwb5cq"))))
2211 (build-system waf-build-system)
2212 (arguments
2213 `(#:tests? #f ; no check target
2214 #:configure-flags
2215 '("CXXFLAGS=-std=gnu++11")))
2216 (inputs
2217 `(("lv2" ,lv2)
2218 ("gtk+" ,gtk+-2)
2219 ("gtk+" ,gtk+)
2220 ("qt" ,qtbase)))
2221 (native-inputs
2222 `(("pkg-config" ,pkg-config)))
2223 (home-page "http://drobilla.net/software/suil/")
2224 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2225 (description
2226 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2227
2228 Suil makes it possible to load a UI of a toolkit in a host using another
2229 toolkit. The API is designed such that hosts do not need to explicitly
2230 support specific toolkits – if Suil supports a particular toolkit, then UIs in
2231 that toolkit will work in all hosts that use Suil automatically.
2232
2233 Suil currently supports every combination of Gtk, Qt, and X11.")
2234 (license license:isc)))
2235
2236 (define-public timidity++
2237 (package
2238 (name "timidity++")
2239 (version "2.14.0")
2240 (source (origin
2241 (method url-fetch)
2242 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2243 "/TiMidity++-" version
2244 "/TiMidity++-" version ".tar.bz2"))
2245 (sha256
2246 (base32
2247 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2248 (build-system gnu-build-system)
2249 (arguments
2250 '(#:configure-flags
2251 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2252 "--enable-ncurses"
2253 "--enable-server"
2254 "--enable-alsaseq"
2255 (string-append "--with-default-path="
2256 (assoc-ref %outputs "out") "/etc/timidity"))
2257 #:phases
2258 (modify-phases %standard-phases
2259 (add-after 'install 'install-config
2260 (lambda _
2261 (let ((out (string-append (assoc-ref %outputs "out")
2262 "/etc/timidity")))
2263 (mkdir-p out)
2264 (call-with-output-file
2265 (string-append out "/timidity.cfg")
2266 (lambda (port)
2267 (format port (string-append "source "
2268 (assoc-ref %build-inputs "freepats")
2269 "/share/freepats/freepats.cfg")))))
2270 #t)))))
2271 (inputs
2272 `(("alsa-lib" ,alsa-lib)
2273 ("ao" ,ao)
2274 ("flac" ,flac)
2275 ("jack" ,jack-1)
2276 ("libogg" ,libogg)
2277 ("speex" ,speex)
2278 ("ncurses" ,ncurses)
2279 ("freepats" ,freepats)))
2280 (native-inputs
2281 `(("pkg-config" ,pkg-config)))
2282 (home-page "http://timidity.sourceforge.net/")
2283 (synopsis "Software synthesizer for playing MIDI files")
2284 (description
2285 "TiMidity++ is a software synthesizer. It can play MIDI files by
2286 converting them into PCM waveform data; give it a MIDI data along with digital
2287 instrument data files, then it synthesizes them in real-time, and plays. It
2288 can not only play sounds, but also can save the generated waveforms into hard
2289 disks as various audio file formats.")
2290 (license license:gpl2+)))
2291
2292 (define-public vamp
2293 (package
2294 (name "vamp")
2295 (version "2.6")
2296 (source (origin
2297 (method url-fetch)
2298 (uri (string-append
2299 "https://code.soundsoftware.ac.uk"
2300 "/attachments/download/1520/vamp-plugin-sdk-"
2301 version ".tar.gz"))
2302 (sha256
2303 (base32
2304 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
2305 (build-system gnu-build-system)
2306 (arguments
2307 `(#:tests? #f ; no check target
2308 #:phases
2309 (modify-phases %standard-phases
2310 (add-after 'install 'remove-libvamp-hostsdk.la
2311 (lambda* (#:key outputs #:allow-other-keys)
2312 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2313 (for-each delete-file
2314 (let ((out (assoc-ref outputs "out")))
2315 (list (string-append out "/lib/libvamp-sdk.la")
2316 (string-append out "/lib/libvamp-hostsdk.la"))))
2317 #t)))))
2318 (inputs
2319 `(("libsndfile" ,libsndfile)))
2320 (native-inputs
2321 `(("pkg-config" ,pkg-config)))
2322 (home-page "http://vamp-plugins.org")
2323 (synopsis "Modular and extensible audio processing system")
2324 (description
2325 "Vamp is an audio processing plugin system for plugins that extract
2326 descriptive information from audio data — typically referred to as audio
2327 analysis plugins or audio feature extraction plugins.")
2328 (license
2329 (license:x11-style
2330 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
2331
2332 (define-public libsbsms
2333 (package
2334 (name "libsbsms")
2335 (version "2.0.2")
2336 (source
2337 (origin
2338 (method url-fetch)
2339 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2340 "/libsbsms-" version ".tar.gz"))
2341 (sha256
2342 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2343 (build-system gnu-build-system)
2344 (native-inputs `(("automake" ,automake)))
2345 (arguments
2346 `(#:configure-flags
2347 ;; Disable the use of SSE unless on x86_64.
2348 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2349 (%current-system))))
2350 ''("--disable-sse")
2351 ''())
2352 #:phases
2353 (modify-phases %standard-phases
2354 (add-after
2355 'unpack 'fix-ar-lib-path
2356 (lambda* (#:key inputs #:allow-other-keys)
2357 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2358 (delete-file "ar-lib")
2359 (symlink
2360 (string-append (assoc-ref inputs "automake") "/share/automake-"
2361 ,(package-version automake) "/ar-lib")
2362 "ar-lib"))))))
2363 (home-page "http://sbsms.sourceforge.net/")
2364 (synopsis "Library for time stretching and pitch scaling of audio")
2365 (description
2366 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2367 stretching and pitch scaling of audio. This package contains the library.")
2368 ;; There is no explicit declaration of a license, but a COPYING file
2369 ;; containing gpl2.
2370 (license license:gpl2)))
2371
2372 (define-public wavpack
2373 (package
2374 (name "wavpack")
2375 (version "5.1.0")
2376 (source (origin
2377 (method url-fetch)
2378 (uri (string-append "http://www.wavpack.com/"
2379 name "-" version ".tar.bz2"))
2380 (patches (search-patches "wavpack-CVE-2018-7253.patch"
2381 "wavpack-CVE-2018-7254.patch"))
2382 (sha256
2383 (base32
2384 "0i19c6krc0p9krwrqy9s5xahaafigqzxcn31piidmlaqadyn4f8r"))))
2385 (build-system gnu-build-system)
2386 (home-page "http://www.wavpack.com/")
2387 (synopsis "Hybrid lossless audio codec")
2388 (description
2389 "WavPack is an audio compression format with lossless, lossy and hybrid
2390 compression modes. This package contains command-line programs and library to
2391 encode and decode wavpack files.")
2392 (license license:bsd-3)))
2393
2394 (define-public libmodplug
2395 (package
2396 (name "libmodplug")
2397 (version "0.8.8.5")
2398 (source (origin
2399 (method url-fetch)
2400 (uri (string-append
2401 "mirror://sourceforge/modplug-xmms/"
2402 name "/" version "/" name "-" version ".tar.gz"))
2403 (sha256
2404 (base32
2405 "1bfsladg7h6vnii47dd66f5vh1ir7qv12mfb8n36qiwrxq92sikp"))))
2406 (build-system gnu-build-system)
2407 (home-page "http://modplug-xmms.sourceforge.net/")
2408 (synopsis "Mod file playing library")
2409 (description
2410 "Libmodplug renders mod music files as raw audio data, for playing or
2411 conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2412 supported. Optional features include high-quality resampling, bass expansion,
2413 surround and reverb.")
2414 (license license:public-domain)))
2415
2416 (define-public libxmp
2417 (package
2418 (name "libxmp")
2419 (version "4.4.1")
2420 (source (origin
2421 (method url-fetch)
2422 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
2423 name "-" version ".tar.gz"))
2424 (sha256
2425 (base32
2426 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
2427 (build-system gnu-build-system)
2428 (home-page "http://xmp.sourceforge.net/")
2429 (synopsis "Module player library")
2430 (description
2431 "Libxmp is a library that renders module files to PCM data. It supports
2432 over 90 mainstream and obscure module formats including Protracker (MOD),
2433 Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2434 (license license:lgpl2.1+)))
2435
2436 (define-public xmp
2437 (package
2438 (name "xmp")
2439 (version "4.1.0")
2440 (source (origin
2441 (method url-fetch)
2442 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
2443 name "-" version ".tar.gz"))
2444 (sha256
2445 (base32
2446 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
2447 (build-system gnu-build-system)
2448 (native-inputs
2449 `(("pkg-config" ,pkg-config)))
2450 (inputs
2451 `(("libxmp" ,libxmp)
2452 ("pulseaudio" ,pulseaudio)))
2453 (home-page "http://xmp.sourceforge.net/")
2454 (synopsis "Extended module player")
2455 (description
2456 "Xmp is a portable module player that plays over 90 mainstream and
2457 obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2458 Tracker 3 S3M and Impulse Tracker IT files.")
2459 (license license:gpl2+)))
2460
2461 (define-public soundtouch
2462 (package
2463 (name "soundtouch")
2464 (version "1.8.0")
2465 (source
2466 (origin
2467 (method url-fetch)
2468 (uri
2469 (string-append
2470 "http://www.surina.net/soundtouch/soundtouch-" version ".tar.gz"))
2471 (sha256
2472 (base32 "0sqn3wk4qz20vf0vz853l6dl1gnj1yhqxfwxqsc5lp529kbn2h9x"))))
2473 (build-system gnu-build-system)
2474 (native-inputs
2475 `(("autoconf" ,autoconf)
2476 ("automake" ,automake)
2477 ("libtool" ,libtool)
2478 ("file" ,file)))
2479 (arguments
2480 '(#:phases
2481 (modify-phases %standard-phases
2482 (add-after 'unpack 'bootstrap
2483 (lambda _
2484 (zero? (system* "sh" "bootstrap")))))))
2485 (home-page "http://www.surina.net/soundtouch/")
2486 (synopsis
2487 "Audio processing library for changing tempo, pitch and playback rate")
2488 (description
2489 "SoundTouch is an audio processing library for changing the tempo, pitch
2490 and playback rates of audio streams or audio files. It is intended for
2491 application developers writing sound processing tools that require tempo/pitch
2492 control functionality, or just for playing around with the sound effects.")
2493 (license license:lgpl2.1+)))
2494
2495 (define-public sox
2496 (package
2497 (name "sox")
2498 (version "14.4.2")
2499 (source (origin
2500 (method url-fetch)
2501 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2502 name "-" version ".tar.bz2"))
2503 (sha256
2504 (base32
2505 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2506 (build-system gnu-build-system)
2507 (arguments
2508 '(#:configure-flags
2509 ;; The upstream asks to identify the distribution to diagnose SoX
2510 ;; bug reports.
2511 '("--with-distro=Guix System Distribution")))
2512 (native-inputs
2513 `(("pkg-config" ,pkg-config)))
2514 (inputs
2515 `(("alsa-lib" ,alsa-lib)
2516 ("ao" ,ao)
2517 ("flac" ,flac)
2518 ("lame" ,lame)
2519 ("libid3tag" ,libid3tag)
2520 ("libltdl" ,libltdl)
2521 ("libmad" ,libmad)
2522 ("libpng" ,libpng)
2523 ("libvorbis" ,libvorbis)
2524 ("pulseaudio" ,pulseaudio)))
2525 (home-page "http://sox.sourceforge.net")
2526 (synopsis "Sound processing utility")
2527 (description
2528 "SoX (Sound eXchange) is a command line utility that can convert
2529 various formats of computer audio files to other formats. It can also
2530 apply various effects to these sound files, and, as an added bonus, SoX
2531 can play and record audio files.")
2532 ;; sox.c is distributed under GPL, while the files that make up
2533 ;; libsox are licensed under LGPL.
2534 (license (list license:gpl2+ license:lgpl2.1+))))
2535
2536 (define-public soxr
2537 (package
2538 (name "soxr")
2539 (version "0.1.2")
2540 (source
2541 (origin
2542 (method url-fetch)
2543 (uri
2544 (string-append "mirror://sourceforge/soxr/soxr-" version
2545 "-Source.tar.xz"))
2546 (sha256
2547 (base32 "0xf2w3piwz9gfr1xqyrj4k685q5dy53kq3igv663i4f4y4sg9rjl"))))
2548 (build-system cmake-build-system)
2549 (arguments '(#:tests? #f)) ;no 'check' target
2550 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
2551 (synopsis "One-dimensional sample-rate conversion library")
2552 (description
2553 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2554 conversion. It may be used, for example, to resample PCM-encoded audio.")
2555 (license license:lgpl2.1+)))
2556
2557 (define-public twolame
2558 (package
2559 (name "twolame")
2560 (version "0.3.13")
2561 (source
2562 (origin
2563 (method url-fetch)
2564 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2565 "/twolame-" version ".tar.gz"))
2566 (sha256
2567 (base32 "0ahiqqng5pidwhj1wzph4vxxgxxgcfa3gl0gywipzx2ii7s35wwq"))
2568 (modules '((guix build utils)))
2569 ;; The tests break with Perl 5.24:
2570 ;; https://github.com/njh/twolame/issues/21
2571 ;; TODO: Remove this snippet when upgrading twolame.
2572 (snippet
2573 '(begin
2574 (substitute* "tests/test.pl" (("\\(@_\\)") "($_[0])"))
2575 #t))))
2576 (build-system gnu-build-system)
2577 (inputs
2578 `(("libsndfile" ,libsndfile)))
2579 (native-inputs
2580 `(("perl" ,perl)
2581 ("which" ,which))) ;used in tests/test.pl
2582 (home-page "http://www.twolame.org/")
2583 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2584 (description
2585 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2586 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2587 portions of LAME.")
2588 (license license:lgpl2.1+)))
2589
2590 (define-public portaudio
2591 (package
2592 (name "portaudio")
2593 (version "190600.20161030")
2594 (source
2595 (origin
2596 (method url-fetch)
2597 (uri (string-append
2598 "http://www.portaudio.com/archives/pa_stable_v"
2599 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2600 ".tgz"))
2601 (sha256
2602 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
2603 (patches (search-patches "portaudio-audacity-compat.patch"))))
2604 (build-system gnu-build-system)
2605 (inputs
2606 ;; TODO: Add ASIHPI.
2607 `(("alsa-lib" ,alsa-lib)
2608 ("jack" ,jack-1)))
2609 (native-inputs
2610 `(("autoconf" ,autoconf)
2611 ("automake" ,automake)
2612 ("libtool" ,libtool)
2613 ("pkg-config" ,pkg-config)))
2614 (arguments
2615 '(#:phases
2616 ;; Autoreconf is necessary because the audacity-compat patch modifies
2617 ;; .in files.
2618 (modify-phases %standard-phases
2619 (add-after 'unpack 'autoreconf
2620 (lambda _
2621 (zero? (system* "autoreconf" "-vif")))))
2622 #:tests? #f)) ;no 'check' target
2623 (home-page "http://www.portaudio.com/")
2624 (synopsis "Audio I/O library")
2625 (description
2626 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2627 to record and/or play sound using a callback function or a blocking read/write
2628 interface.")
2629 (license license:expat)))
2630
2631 (define-public qsynth
2632 (package
2633 (name "qsynth")
2634 (version "0.5.0")
2635 (source
2636 (origin
2637 (method url-fetch)
2638 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2639 "/qsynth-" version ".tar.gz"))
2640 (sha256
2641 (base32
2642 "1sr6vrz8z9r99j9xcix86lgcqldragb2ajmq1bnhr58d99sda584"))))
2643 (build-system gnu-build-system)
2644 (arguments
2645 `(#:tests? #f ; no "check" phase
2646 #:configure-flags
2647 '("CXXFLAGS=-std=gnu++11")))
2648 (native-inputs
2649 `(("qttools" ,qttools)
2650 ("pkg-config" ,pkg-config)))
2651 (inputs
2652 `(("fluidsynth" ,fluidsynth)
2653 ("qtbase" ,qtbase)
2654 ("qtx11extras" ,qtx11extras)))
2655 (home-page "http://qsynth.sourceforge.net")
2656 (synopsis "Graphical user interface for FluidSynth")
2657 (description
2658 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2659 synthesizer written in C++.")
2660 (license license:gpl2+)))
2661
2662 (define-public rsound
2663 (package
2664 (name "rsound")
2665 (version "1.1")
2666 (source
2667 (origin
2668 (method url-fetch)
2669 (uri (string-append "https://github.com/Themaister/RSound/archive/v"
2670 version ".tar.gz"))
2671 (file-name (string-append name "-" version))
2672 (sha256
2673 (base32 "1wzs40c0k5zpkmm5ffl6c17xmr399sxli7ys0fbb9ib0fd334knx"))))
2674 (build-system gnu-build-system)
2675 (inputs
2676 `(("alsa-lib" ,alsa-lib)
2677 ("jack" ,jack-1)
2678 ("ao" ,ao)
2679 ("libsamplerate" ,libsamplerate)
2680 ("openal" ,openal)
2681 ("portaudio" ,portaudio)
2682 ("pulseaudio" ,pulseaudio)))
2683 (arguments
2684 '(#:phases
2685 (modify-phases %standard-phases
2686 (replace 'configure
2687 (lambda* (#:key outputs #:allow-other-keys)
2688 (setenv "CC" "gcc")
2689 (zero?
2690 (system* "./configure"
2691 (string-append "--prefix=" (assoc-ref outputs "out")))))))
2692 ;; No 'check' target.
2693 #:tests? #f))
2694 (home-page "http://themaister.net/rsound.html")
2695 (synopsis "Networked audio system")
2696 (description
2697 "RSound allows you to send audio from an application and transfer it
2698 directly to a different computer on your LAN network. It is an audio daemon
2699 with a much different focus than most other audio daemons.")
2700 (license license:gpl3+)))
2701
2702 (define-public xjackfreak
2703 (package
2704 (name "xjackfreak")
2705 (version "1.0")
2706 (source (origin
2707 (method url-fetch)
2708 (uri (string-append
2709 "https://github.com/johnhldavis/xjackfreak/archive/v"
2710 version ".tar.gz"))
2711 (file-name (string-append name "-" version ".tar.gz"))
2712 (sha256
2713 (base32
2714 "0xj6gpxfnw9jbdgwgm0x23xgfvj2kwmwb1nk0drw8lxgcchkq7d9"))))
2715 (build-system gnu-build-system)
2716 (arguments
2717 `(#:make-flags
2718 (list (string-append "docdir=" (assoc-ref %outputs "out")
2719 "/share/doc/xjackfreak"))))
2720 (inputs
2721 `(("jack" ,jack-1)
2722 ("libx11" ,libx11)
2723 ("libxt" ,libxt)
2724 ("libxext" ,libxext)))
2725 (native-inputs
2726 `(("pkg-config" ,pkg-config)))
2727 (home-page "https://github.com/johnhldavis/xjackfreak")
2728 (synopsis "JACK audio frequency analyzer and display")
2729 (description
2730 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
2731 Connection Kit. It can display the FFT of any input, modify it and output the
2732 result.")
2733 (license license:gpl3+)))
2734
2735 (define-public zita-convolver
2736 (package
2737 (name "zita-convolver")
2738 (version "3.1.0")
2739 (source (origin
2740 (method url-fetch)
2741 (uri (string-append
2742 "http://kokkinizita.linuxaudio.org"
2743 "/linuxaudio/downloads/zita-convolver-"
2744 version ".tar.bz2"))
2745 (snippet
2746 ;; Don't optimize for a specific processor architecture.
2747 '(substitute* "libs/Makefile"
2748 (("^CXXFLAGS \\+= -march=native") "")))
2749 (modules '((guix build utils)))
2750 (sha256
2751 (base32
2752 "14qrnczhp5mbwhky64il7kxc4hl1mmh495v60va7i2qnhasr6zmz"))))
2753 (build-system gnu-build-system)
2754 (arguments
2755 `(#:tests? #f ; no "check" target
2756 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2757 #:phases
2758 (modify-phases %standard-phases
2759 (add-after 'unpack 'patch-makefile-and-enter-directory
2760 (lambda _
2761 (substitute* "libs/Makefile"
2762 (("ldconfig") "true")
2763 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2764 (chdir "libs") #t))
2765 (add-after 'install 'install-symlink
2766 (lambda _
2767 (symlink "libzita-convolver.so"
2768 (string-append (assoc-ref %outputs "out")
2769 "/lib/libzita-convolver.so.3"))))
2770 ;; no configure script
2771 (delete 'configure))))
2772 (inputs `(("fftwf" ,fftwf)))
2773 (home-page "https://kokkinizita.linuxaudio.org")
2774 (synopsis "Fast, partitioned convolution engine library")
2775 (description
2776 "Zita convolver is a C++ library providing a real-time convolution
2777 engine.")
2778 (license license:gpl3+)))
2779
2780 (define-public zita-resampler
2781 (package
2782 (name "zita-resampler")
2783 (version "1.3.0")
2784 (source (origin
2785 (method url-fetch)
2786 (uri (string-append
2787 "http://kokkinizita.linuxaudio.org"
2788 "/linuxaudio/downloads/zita-resampler-"
2789 version ".tar.bz2"))
2790 (snippet
2791 ;; Don't optimize for a specific processor architecture.
2792 '(substitute* '("apps/Makefile" "libs/Makefile")
2793 (("^CXXFLAGS \\+= -march=native") "")))
2794 (modules '((guix build utils)))
2795 (sha256
2796 (base32
2797 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
2798 (build-system gnu-build-system)
2799 (arguments
2800 `(#:tests? #f ; no "check" target
2801 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2802 #:phases
2803 (modify-phases %standard-phases
2804 (add-after
2805 'unpack 'patch-makefile-and-enter-directory
2806 (lambda _
2807 (substitute* "libs/Makefile"
2808 (("ldconfig") "true")
2809 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2810 (chdir "libs")
2811 #t))
2812 (add-after
2813 'install 'install-symlink
2814 (lambda _
2815 (symlink "libzita-resampler.so"
2816 (string-append (assoc-ref %outputs "out")
2817 "/lib/libzita-resampler.so.1"))))
2818 ;; no configure script
2819 (delete 'configure))))
2820 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
2821 (synopsis "C++ library for resampling audio signals")
2822 (description
2823 "Libzita-resampler is a C++ library for resampling audio signals. It is
2824 designed to be used within a real-time processing context, to be fast, and to
2825 provide high-quality sample rate conversion.")
2826 (license license:gpl3+)))
2827
2828 (define-public zita-alsa-pcmi
2829 (package
2830 (name "zita-alsa-pcmi")
2831 (version "0.2.0")
2832 (source (origin
2833 (method url-fetch)
2834 (uri (string-append
2835 "http://kokkinizita.linuxaudio.org"
2836 "/linuxaudio/downloads/zita-alsa-pcmi-"
2837 version ".tar.bz2"))
2838 (sha256
2839 (base32
2840 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
2841 (build-system gnu-build-system)
2842 (arguments
2843 `(#:tests? #f ; no "check" target
2844 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2845 #:phases
2846 (modify-phases %standard-phases
2847 (add-after 'unpack 'patch-makefile-and-enter-directory
2848 (lambda _
2849 (substitute* "libs/Makefile"
2850 (("ldconfig") "true")
2851 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2852 (chdir "libs")
2853 #t))
2854 (add-after 'install 'install-symlink
2855 (lambda _
2856 (symlink "libzita-alsa-pcmi.so"
2857 (string-append (assoc-ref %outputs "out")
2858 "/lib/libzita-alsa-pcmi.so.0"))))
2859 ;; no configure script
2860 (delete 'configure))))
2861 (inputs
2862 `(("alsa-lib" ,alsa-lib)
2863 ("fftw" ,fftw)))
2864 (home-page "https://kokkinizita.linuxaudio.org")
2865 (synopsis "C++ wrapper around the ALSA API")
2866 (description
2867 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
2868 access to ALSA PCM devices, taking care of the many functions required to
2869 open, initialise and use a hw: device in mmap mode, and providing floating
2870 point audio data.")
2871 (license license:gpl3+)))
2872
2873 (define-public cuetools
2874 (package
2875 (name "cuetools")
2876 (version "1.4.1")
2877 (source (origin
2878 (method url-fetch)
2879 (uri (string-append "https://github.com/svend/cuetools/archive/"
2880 version ".tar.gz"))
2881 (file-name (string-append name "-" version ".tar.gz"))
2882 (sha256
2883 (base32
2884 "01xi3rvdmil9nawsha04iagjylqr1l9v9vlzk99scs8c207l58i4"))))
2885 (build-system gnu-build-system)
2886 ;; The source tarball is not bootstrapped.
2887 (arguments
2888 `(#:phases
2889 (modify-phases %standard-phases
2890 (add-after 'unpack 'bootstrap
2891 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
2892 ;; Bootstrapping tools
2893 (native-inputs
2894 `(("autoconf" ,autoconf)
2895 ("automake" ,automake)
2896 ("flex" ,flex)
2897 ("bison" ,bison)))
2898 (synopsis "Cue and toc file parsers and utilities")
2899 (description "Cuetools is a set of programs that are useful for manipulating
2900 and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
2901 files are a way to represent the layout of a data or audio CD in a
2902 machine-readable ASCII format.")
2903 (home-page "https://github.com/svend/cuetools")
2904 (license license:gpl2+)))
2905
2906 (define-public shntool
2907 (package
2908 (name "shntool")
2909 (version "3.0.10")
2910 (source (origin
2911 (method url-fetch)
2912 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
2913 "shntool-" version ".tar.gz"))
2914 (sha256
2915 (base32
2916 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
2917 (build-system gnu-build-system)
2918 (synopsis "WAVE audio data processing tool")
2919 (description "shntool is a multi-purpose WAVE data processing and reporting
2920 utility. File formats are abstracted from its core, so it can process any file
2921 that contains WAVE data, compressed or not---provided there exists a format
2922 module to handle that particular file type. It can also generate CUE files, and
2923 use them split WAVE data into multiple files.")
2924 (home-page "http://etree.org/shnutils/shntool/")
2925 ;; 'install-sh' bears the x11 license
2926 (license (list license:gpl2+ license:x11))))
2927
2928 (define-public dcadec
2929 (package
2930 (name "dcadec")
2931 (version "0.2.0")
2932 (source (origin
2933 (method url-fetch)
2934 (uri (string-append "https://github.com/foo86/dcadec/archive/v"
2935 version ".tar.gz"))
2936 (file-name (string-append name "-" version ".tar.gz"))
2937 (sha256
2938 (base32
2939 "0i0dpypgqkhhi4v1fmsp2way6w9kbcix3c7q79pmg39yvrzj17gd"))))
2940 (build-system gnu-build-system)
2941 (arguments
2942 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
2943 '(#:tests? #f
2944 #:make-flags
2945 (list "CC=gcc"
2946 ;; Build shared library.
2947 "CONFIG_SHARED=1"
2948 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2949 ;; Set proper runpath.
2950 (string-append "LDFLAGS=-Wl,-rpath="
2951 (assoc-ref %outputs "out")
2952 "/lib"))
2953 #:phases
2954 (modify-phases %standard-phases
2955 ;; No configure script, just a hand-written Makefile.
2956 (delete 'configure))))
2957 (synopsis "DTS Coherent Acoustics decoder")
2958 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
2959 with support for HD extensions.")
2960 (home-page "https://github.com/foo86/dcadec")
2961 (license license:lgpl2.1+)))
2962
2963 (define-public bs1770gain
2964 (package
2965 (name "bs1770gain")
2966 (version "0.4.12")
2967 (source
2968 (origin
2969 (method url-fetch)
2970 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
2971 version "/bs1770gain-" version ".tar.gz"))
2972 (sha256
2973 (base32
2974 "0n9skdap1vnl6w52fx0gsrjlk7w3xgdwi62ycyf96h29rx059z6a"))))
2975 (build-system gnu-build-system)
2976 (inputs `(("ffmpeg" ,ffmpeg)
2977 ("sox" ,sox)))
2978 (home-page "http://bs1770gain.sourceforge.net/")
2979 (synopsis "Tool to adjust loudness of media files")
2980 (description
2981 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
2982 flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
2983 loudness of audio and video files to the same level.")
2984 (license license:gpl2+)))
2985
2986 (define-public filteraudio
2987 (let ((revision "1")
2988 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
2989 (package
2990 (name "filteraudio")
2991 (version (string-append "0.0.0-" revision "."
2992 (string-take commit 7)))
2993 (source
2994 (origin
2995 (method git-fetch)
2996 (uri (git-reference
2997 (url "https://github.com/irungentoo/filter_audio.git")
2998 (commit commit)))
2999 (file-name (string-append name "-" version "-checkout"))
3000 (sha256
3001 (base32
3002 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3003 (build-system gnu-build-system)
3004 (arguments
3005 '(#:make-flags (list (string-append "PREFIX=" %output)
3006 "CC=gcc")
3007 #:tests? #f ; No tests
3008 #:phases
3009 (modify-phases %standard-phases
3010 ;; No configure script
3011 (delete 'configure))))
3012 (synopsis "Lightweight audio filtering library")
3013 (description "An easy to use audio filtering library made from webrtc
3014 code, used in @code{libtoxcore}.")
3015 (home-page "https://github.com/irungentoo/filter_audio")
3016 (license license:bsd-3))))
3017
3018 (define-public gsm
3019 (package
3020 (name "gsm")
3021 (version "1.0.17")
3022 (source
3023 (origin
3024 (method url-fetch)
3025 (uri
3026 (string-append "http://www.quut.com/" name "/" name
3027 "-" version ".tar.gz"))
3028 (sha256
3029 (base32
3030 "00bns0d4wwrvc60lj2w7wz4yk49q1f6rpdrwqzrxsha9d78mfnl5"))))
3031 (build-system gnu-build-system)
3032 (arguments
3033 `(#:test-target "tst"
3034 #:phases
3035 (modify-phases %standard-phases
3036 (add-before 'install 'pre-install
3037 (lambda _
3038 (let ((out (assoc-ref %outputs "out")))
3039 (substitute* "Makefile"
3040 (("INSTALL_ROOT\t=")
3041 (string-append "INSTALL_ROOT\t=\t" out)))
3042 (mkdir-p (string-append out "/inc"))
3043 (mkdir-p (string-append out "/man"))
3044 (mkdir-p (string-append out "/man/man1"))
3045 (mkdir-p (string-append out "/man/man3"))
3046 (mkdir-p (string-append out "/bin"))
3047 (mkdir-p (string-append out "/lib")))))
3048 (add-after 'install 'post-install
3049 (lambda _
3050 (let ((out (assoc-ref %outputs "out")))
3051 (rename-file (string-append out "/inc")
3052 (string-append out "/include"))
3053 (mkdir-p (string-append out "/include/gsm"))
3054 (copy-recursively "inc"
3055 (string-append out "/include/gsm")))))
3056 (delete 'configure))))
3057 (synopsis "GSM 06.10 lossy speech compression library")
3058 (description "This C library provides an encoder and a decoder for the GSM
3059 06.10 RPE-LTP lossy speech compression algorithm.")
3060 (home-page "http://quut.com/gsm/")
3061 (license (license:non-copyleft "file://COPYRIGHT"))))
3062
3063 (define-public python-pyalsaaudio
3064 (package
3065 (name "python-pyalsaaudio")
3066 (version "0.8.4")
3067 (source (origin
3068 (method url-fetch)
3069 (uri (pypi-uri "pyalsaaudio" version))
3070 (sha256
3071 (base32
3072 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3073 (build-system python-build-system)
3074 (arguments
3075 `(#:tests? #f)) ; tests require access to ALSA devices.
3076 (inputs
3077 `(("alsa-lib" ,alsa-lib)))
3078 (home-page "http://larsimmisch.github.io/pyalsaaudio/")
3079 (synopsis "ALSA wrappers for Python")
3080 (description
3081 "This package contains wrappers for accessing the ALSA API from Python.
3082 It is currently fairly complete for PCM devices, and has some support for
3083 mixers.")
3084 (license license:psfl)))
3085
3086 (define-public python2-pyalsaaudio
3087 (package-with-python2 python-pyalsaaudio))
3088
3089 (define-public bluez-alsa
3090 (package
3091 (name "bluez-alsa")
3092 (version "1.2.0")
3093 (source (origin
3094 ;; The tarballs are mere snapshots and don't contain a
3095 ;; bootstrapped build system.
3096 (method git-fetch)
3097 (uri (git-reference
3098 (url "https://github.com/Arkq/bluez-alsa.git")
3099 (commit (string-append "v" version))))
3100 (file-name (string-append name "-" version "-checkout"))
3101 (sha256
3102 (base32
3103 "1qinf41wl2ihx54zmmhanycihwjkn7dn1cicq6pp4rqbiv79b95x"))))
3104 (build-system gnu-build-system)
3105 (arguments
3106 `(#:phases
3107 (modify-phases %standard-phases
3108 (add-after 'unpack 'bootstrap
3109 (lambda _
3110 (zero? (system* "autoreconf" "-vif")))))))
3111 (native-inputs
3112 `(("autoconf" ,autoconf)
3113 ("automake" ,automake)
3114 ("libtool" ,libtool)
3115 ("pkg-config" ,pkg-config)))
3116 (inputs
3117 `(("alsa-lib" ,alsa-lib)
3118 ("bluez" ,bluez)
3119 ("glib" ,glib)
3120 ("libbsd" ,libbsd)
3121 ("ncurses" ,ncurses)
3122 ("ortp" ,ortp)
3123 ("sbc" ,sbc)))
3124 (home-page "https://github.com/Arkq/bluez-alsa")
3125 (synopsis "Bluetooth ALSA backend")
3126 (description "This project is a rebirth of a direct integration between
3127 Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
3128 in favor of 3rd party audio applications. From now on, Bluez acts as a
3129 middleware between an audio application, which implements Bluetooth audio
3130 profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
3131 audio profiles in Bluez, so in theory every Bluetooth device (with audio
3132 capabilities) can be connected. In order to access the audio stream, one has
3133 to connect to the ALSA PCM device called @code{bluealsa}. The device is based
3134 on the ALSA software PCM plugin.")
3135 (license license:expat)))
3136
3137 (define-public snd
3138 (package
3139 (name "snd")
3140 (version "17.7")
3141 (source (origin
3142 (method url-fetch)
3143 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
3144 "snd-" version ".tar.gz"))
3145 (sha256
3146 (base32
3147 "1vm0dy5qlycqkima7y5ajzvazyjybifa803fabjcpncjz08c26vp"))))
3148 (build-system glib-or-gtk-build-system)
3149 (arguments
3150 '(#:tests? #f ; no tests
3151 #:out-of-source? #f ; for the 'install-doc' phase
3152 #:configure-flags
3153 (let* ((out (assoc-ref %outputs "out"))
3154 (docdir (string-append out "/share/doc/snd")))
3155 (list "--with-alsa" "--with-jack" "--with-gmp"
3156 (string-append "--with-doc-dir=" docdir)))
3157 #:phases
3158 (modify-phases %standard-phases
3159 (add-after 'install 'install-doc
3160 (lambda* (#:key outputs #:allow-other-keys)
3161 (let* ((out (assoc-ref outputs "out"))
3162 (docdir (string-append out "/share/doc/snd")))
3163 (mkdir-p docdir)
3164 (for-each
3165 (lambda (f)
3166 (install-file f docdir))
3167 (find-files "." "\\.html$|COPYING"))
3168 (copy-recursively "pix" (string-append docdir "/pix"))
3169 #t))))))
3170 (native-inputs
3171 `(("pkg-config" ,pkg-config)))
3172 (inputs
3173 `(("alsa-lib" ,alsa-lib)
3174 ("fftw" ,fftw)
3175 ("flac" ,flac)
3176 ("gmp" ,gmp)
3177 ("gsl" ,gsl)
3178 ("gtk+" ,gtk+)
3179 ("jack" ,jack-1)
3180 ("libsamplerate" ,libsamplerate)
3181 ("mpc" ,mpc)
3182 ("mpfr" ,mpfr)
3183 ("mpg123" ,mpg123)
3184 ("speex" ,speex)
3185 ("timidity++" ,timidity++)
3186 ("vorbis-tools" ,vorbis-tools)
3187 ("wavpack" ,wavpack)))
3188 (synopsis "Sound editor")
3189 (home-page "https://ccrma.stanford.edu/software/snd/")
3190 (description
3191 "Snd is a sound editor modelled loosely after Emacs. It can be
3192 customized and extended using either the s7 Scheme implementation (included in
3193 the Snd sources), Ruby, or Forth.")
3194 (license (license:non-copyleft "file://COPYING"))))
3195
3196 (define-public noise-repellent
3197 (package
3198 (name "noise-repellent")
3199 (version "0.1.4")
3200 (source (origin
3201 (method git-fetch)
3202 (uri (git-reference
3203 (url "https://github.com/lucianodato/noise-repellent.git")
3204 (commit version)))
3205 (file-name (string-append name "-" version "-checkout"))
3206 (sha256
3207 (base32
3208 "0rd3dlmk3vivjmcr6x2x860y0j1d49c2j95j6ny50v184mwvn11j"))))
3209 (build-system gnu-build-system)
3210 (arguments
3211 `(#:make-flags
3212 (list "CC=gcc"
3213 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3214 #:tests? #f ; there are none
3215 #:phases
3216 (modify-phases %standard-phases
3217 (delete 'configure))))
3218 (inputs
3219 `(("lv2" ,lv2)
3220 ("fftwf" ,fftwf)))
3221 (native-inputs
3222 `(("pkg-config" ,pkg-config)))
3223 (home-page "https://github.com/lucianodato/noise-repellent")
3224 (synopsis "LV2 plugin for broadband noise reduction")
3225 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
3226 the following features:
3227
3228 @enumerate
3229 @item Spectral gating and spectral subtraction suppression rule
3230 @item Adaptive and manual noise thresholds estimation
3231 @item Adjustable noise floor
3232 @item Adjustable offset of thresholds to perform over-subtraction
3233 @item Time smoothing and a masking estimation to reduce artifacts
3234 @item Basic onset detector to avoid transients suppression
3235 @item Whitening of the noise floor to mask artifacts and to recover higher
3236 frequencies
3237 @item Option to listen to the residual signal
3238 @item Soft bypass
3239 @item Noise profile saved with the session
3240 @end enumerate
3241 ")
3242 (license license:lgpl3+)))
3243
3244 (define-public cli-visualizer
3245 (package
3246 (name "cli-visualizer")
3247 (version "1.6")
3248 (source
3249 (origin
3250 (method url-fetch)
3251 (uri (string-append "https://github.com/dpayne/cli-visualizer/archive/"
3252 version ".tar.gz"))
3253 (file-name (string-append name "-" version ".tar.gz"))
3254 (sha256
3255 (base32
3256 "07zkm87f2fr8kc6531zrkya7q81sdanm6813y2f54mg13g41y6hi"))))
3257 (build-system gnu-build-system)
3258 (native-inputs
3259 `(("which" ,which)))
3260 (inputs
3261 `(("fftw" ,fftw)
3262 ("googletest" ,googletest)
3263 ("ncurses" ,ncurses)
3264 ("pulseaudio" ,pulseaudio)))
3265 (arguments
3266 '(#:test-target "test"
3267 #:make-flags
3268 (list (string-append "PREFIX=" %output "/bin/") "ENABLE_PULSE=1")
3269 #:phases
3270 (modify-phases %standard-phases
3271 (add-after 'unpack 'remove-sudo
3272 (lambda _
3273 (substitute* "install.sh" (("sudo") ""))
3274 #t))
3275 (add-before 'check 'set-check-environment
3276 (lambda _
3277 (setenv "CXX" "g++")
3278 (setenv "CC" "gcc")
3279 #t))
3280 (add-before 'install 'make-prefix
3281 (lambda _
3282 (mkdir-p (string-append (assoc-ref %outputs "out") "/bin"))
3283 #t))
3284 (add-after 'install 'data
3285 (lambda _
3286 (for-each (lambda (file)
3287 (install-file file
3288 (string-append (assoc-ref %outputs "out")
3289 "/share/doc")))
3290 (find-files "examples"))
3291 #t)))))
3292 (home-page "https://github.com/dpayne/cli-visualizer/")
3293 (synopsis "Command-line audio visualizer")
3294 (description "@code{cli-visualizer} displays fast-Fourier
3295 transforms (FFTs) of the sound being played, as well as other graphical
3296 representations.")
3297 (license license:expat)))
3298
3299 (define-public cava
3300 (package
3301 (name "cava")
3302 (version "0.6.0")
3303 (source (origin
3304 (method url-fetch)
3305 (uri (string-append
3306 "https://github.com/karlstav/cava/archive/"
3307 version ".tar.gz"))
3308 (file-name (string-append name "-" version ".tar.gz"))
3309 (sha256
3310 (base32
3311 "1p24lz3h4d0h82ffylqr7mq8a8x1c66flm2r2bsv1liw51n1rma2"))))
3312 (build-system gnu-build-system)
3313 (native-inputs
3314 `(("autoconf" ,autoconf)
3315 ("automake" ,automake)
3316 ("libtool" ,libtool)))
3317 (inputs
3318 `(("fftw" ,fftw)
3319 ("ncurses" ,ncurses)
3320 ("pulseaudio" ,pulseaudio)))
3321 (arguments
3322 `(#:configure-flags
3323 (list (string-append "PREFIX=" %output)
3324 (string-append "FONT_DIR=" %output "/usr/share/consolefonts"))
3325 #:make-flags
3326 (let ((lib (string-append %output "/lib")))
3327 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
3328 #:phases
3329 (modify-phases %standard-phases
3330 (add-after 'unpack 'bootstrap
3331 (lambda* (#:key outputs #:allow-other-keys)
3332 (setenv "HOME" (getcwd))
3333 (invoke "sh" "autogen.sh")))
3334 (add-before 'build 'make-cava-ldflags
3335 (lambda* (#:key outputs #:allow-other-keys)
3336 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))))
3337 (add-after 'install 'data
3338 (lambda* (#:key outputs #:allow-other-keys)
3339 (for-each (lambda (file)
3340 (install-file file
3341 (string-append (assoc-ref outputs "out")
3342 "/share/doc/examples")))
3343 (find-files "example_files")))))))
3344 (home-page "https://karlstav.github.io/cava/")
3345 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
3346 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
3347 using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
3348 (license license:expat)))
3349
3350 (define-public fluid-3
3351 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
3352 (package
3353 (name "fluid-3")
3354 (version "2.1")
3355 (source
3356 (origin
3357 (method url-fetch)
3358 ;; Only one file is required, but the release bundles the whole
3359 ;; software which is 50MiB as tar and 200MiB unpacked. The website
3360 ;; directly links the soundfont release to the github file download.
3361 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
3362 commit "/share/sound/FluidR3Mono_GM.sf3"))
3363 (file-name (string-append name "-" version ".sf3"))
3364 (sha256
3365 (base32
3366 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
3367 (build-system trivial-build-system)
3368 (arguments
3369 `(#:modules ((guix build utils))
3370 #:builder
3371 (begin
3372 (use-modules (guix build utils))
3373 (let ((file (assoc-ref %build-inputs "source"))
3374 (out (string-append %output "/share/soundfonts")))
3375 (mkdir-p out)
3376 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))))))
3377 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
3378 (synopsis "Pro-quality GM soundfont")
3379 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
3380 (license license:expat))))