gnu: Remove obsolete bootstrap workaround phases.
[jackhill/guix/guix.git] / gnu / packages / audio.scm
CommitLineData
fb68469f 1;;; GNU Guix --- Functional package management for GNU
6f85a9c4 2;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
9f1cdd9d 3;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
0390a520 4;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
d739f481 5;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
1207a0c3 6;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
799298eb 7;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
eb5378f9 8;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
47956fa0 9;;; Copyright © 2016 ng0 <ng0@n0.is>
9a4c032c 10;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
d87d2567 11;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
7366d831 12;;; Copyright © 2018, 2020 Oleg Pykhalov <go.wigust@gmail.com>
9073c875 13;;; Copyright © 2018 okapi <okapi@firemail.cc>
247384d0 14;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
77cc8778 15;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
4b3ff362 16;;; Copyright © 2018 Brett Gilio <brettg@gnu.org>
a4b71b32 17;;; Copyright © 2018, 2019 Marius Bakke <mbakke@fastmail.com>
7a44e875 18;;; Copyright © 2018 Thorsten Wilms <t_w_@freenet.de>
ef8517f2 19;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
dcfa0acd 20;;; Copyright © 2018 Brendan Tildesley <mail@brendan.scot>
b06966b4 21;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
17098a49 22;;; Copyright © 2019 Leo Famulari <leo@famulari.name>
ea3510f8 23;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
e13714b6 24;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
772ca8e4 25;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
5d703da3 26;;; Copyright © 2019, 2020 Alexandros Theodotou <alex@zrythm.org>
615a4fbf 27;;; Copyright © 2019 Christopher Lemmer Webber <cwebber@dustycloud.org>
d83bb797 28;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
a8e14943 29;;; Copyright © 2019 Hartmt Goebel <h.goebel@crazy-compilers.com>
1ce6bfc2 30;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
fb68469f
RW
31;;;
32;;; This file is part of GNU Guix.
33;;;
34;;; GNU Guix is free software; you can redistribute it and/or modify it
35;;; under the terms of the GNU General Public License as published by
36;;; the Free Software Foundation; either version 3 of the License, or (at
37;;; your option) any later version.
38;;;
39;;; GNU Guix is distributed in the hope that it will be useful, but
40;;; WITHOUT ANY WARRANTY; without even the implied warranty of
41;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42;;; GNU General Public License for more details.
43;;;
44;;; You should have received a copy of the GNU General Public License
45;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
46
47(define-module (gnu packages audio)
48 #:use-module (guix packages)
49 #:use-module (guix download)
50 #:use-module (guix git-download)
d49976ed 51 #:use-module (guix utils)
fb68469f
RW
52 #:use-module ((guix licenses) #:prefix license:)
53 #:use-module (guix build-system gnu)
c54a8981 54 #:use-module (guix build-system waf)
7c92efff 55 #:use-module (guix build-system trivial)
4bddd14c 56 #:use-module (guix build-system cmake)
5d703da3 57 #:use-module (guix build-system meson)
a91d72e2 58 #:use-module (guix build-system python)
d0c8e524 59 #:use-module (guix build-system glib-or-gtk)
fb68469f 60 #:use-module (gnu packages)
d55f912a 61 #:use-module (gnu packages algebra)
9f1cdd9d 62 #:use-module (gnu packages autotools)
fcbeb00b 63 #:use-module (gnu packages avahi)
88efb2c3 64 #:use-module (gnu packages boost)
a76abae1 65 #:use-module (gnu packages backup)
7c92efff 66 #:use-module (gnu packages base)
fda85ca6 67 #:use-module (gnu packages bison)
971ebdc8 68 #:use-module (gnu packages check)
7c92efff 69 #:use-module (gnu packages compression)
88efb2c3 70 #:use-module (gnu packages curl)
255d1bbe 71 #:use-module (gnu packages dbm)
0f2ce448 72 #:use-module (gnu packages documentation)
8ae60404 73 #:use-module (gnu packages emacs)
754a98ae 74 #:use-module (gnu packages file)
fda85ca6 75 #:use-module (gnu packages flex)
11d4800a
RW
76 #:use-module (gnu packages fltk)
77 #:use-module (gnu packages fontutils)
25e49169 78 #:use-module (gnu packages gcc)
fda85ca6 79 #:use-module (gnu packages gettext)
88efb2c3 80 #:use-module (gnu packages glib)
f3ab6ad3 81 #:use-module (gnu packages gtk)
88efb2c3 82 #:use-module (gnu packages gnome)
8ae60404 83 #:use-module (gnu packages gnunet) ; libmicrohttpd
fcbeb00b 84 #:use-module (gnu packages gperf)
247384d0 85 #:use-module (gnu packages icu4c)
d739f481 86 #:use-module (gnu packages image)
9ffee457 87 #:use-module (gnu packages ncurses)
f03cda4d 88 #:use-module (gnu packages onc-rpc)
f3ab6ad3 89 #:use-module (gnu packages qt)
dba33ca3 90 #:use-module (gnu packages libbsd)
c54a8981 91 #:use-module (gnu packages linux)
72d9ef1b 92 #:use-module (gnu packages libusb)
8ae60404 93 #:use-module (gnu packages llvm)
88efb2c3
RW
94 #:use-module (gnu packages mp3) ;taglib
95 #:use-module (gnu packages perl)
c54a8981
RW
96 #:use-module (gnu packages pkg-config)
97 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
d55f912a 98 #:use-module (gnu packages python)
44d10b1f 99 #:use-module (gnu packages python-xyz)
5279eb6f 100 #:use-module (gnu packages rdf)
c54a8981 101 #:use-module (gnu packages readline)
ea3510f8 102 #:use-module (gnu packages sdl)
247384d0 103 #:use-module (gnu packages serialization)
dba33ca3 104 #:use-module (gnu packages telephony)
8ae60404 105 #:use-module (gnu packages tls)
e87c7ec2 106 #:use-module (gnu packages video)
8ae60404 107 #:use-module (gnu packages vim) ;xxd
02979664 108 #:use-module (gnu packages webkit)
cd381c31 109 #:use-module (gnu packages wxwidgets)
c54a8981 110 #:use-module (gnu packages xiph)
da49086a 111 #:use-module (gnu packages xml)
caf9055c 112 #:use-module (gnu packages xorg)
d0c8e524
SB
113 #:use-module (gnu packages maths)
114 #:use-module (gnu packages multiprecision)
3182a1d2 115 #:use-module (gnu packages music)
118a8ecc
EF
116 #:use-module (srfi srfi-1)
117 #:use-module (srfi srfi-26))
fb68469f 118
eb0fb087
RW
119(define-public alsa-modular-synth
120 (package
121 (name "alsa-modular-synth")
61eecd71 122 (version "2.1.2")
eb0fb087
RW
123 (source (origin
124 (method url-fetch)
de67e922
LF
125 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
126 "/" version "/ams-" version ".tar.bz2"))
eb0fb087
RW
127 (sha256
128 (base32
61eecd71 129 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
eb0fb087 130 (build-system gnu-build-system)
ee6a88b1 131 (arguments
6670c99c
DC
132 `(#:configure-flags
133 '("--enable-qt5"
134 "CXXFLAGS=-std=gnu++11")
afadb05e
RW
135 #:phases
136 (modify-phases %standard-phases
137 ;; Insert an extra space between linker flags.
138 (add-before 'configure 'add-missing-space
139 (lambda _
140 (substitute* "configure"
141 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
142 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
143 #t)))))
eb0fb087
RW
144 (inputs
145 `(("alsa-lib" ,alsa-lib)
146 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
147 ;; license incompatibility.
148 ("clalsadrv" ,clalsadrv)
149 ("fftw" ,fftw)
150 ("jack" ,jack-1)
151 ("ladspa" ,ladspa)
152 ("liblo" ,liblo)
df9031e1
EF
153 ("qtbase" ,qtbase)
154 ("qttools" ,qttools)))
eb0fb087 155 (native-inputs
bed0c4c8
RW
156 `(("pkg-config" ,pkg-config)
157 ("gcc" ,gcc-5)))
eb0fb087
RW
158 (home-page "http://alsamodular.sourceforge.net/")
159 (synopsis "Realtime modular synthesizer and effect processor")
160 (description
161 "AlsaModularSynth is a digital implementation of a classical analog
162modular synthesizer system. It uses virtual control voltages to control the
163parameters of the modules. The control voltages which control the frequency
164e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
165Filter) modules follow the convention of 1V / Octave.")
166 (license license:gpl2)))
167
d55f912a
RW
168(define-public aubio
169 (package
170 (name "aubio")
4a17211a 171 (version "0.4.9")
d55f912a
RW
172 (source (origin
173 (method url-fetch)
174 (uri (string-append
c2f6c9ba 175 "https://aubio.org/pub/aubio-" version ".tar.bz2"))
d55f912a
RW
176 (sha256
177 (base32
4a17211a 178 "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl"))))
d55f912a
RW
179 (build-system waf-build-system)
180 (arguments
4a17211a 181 `(#:tests? #f ; no check target
d55f912a 182 #:configure-flags
409dec3f
TGR
183 (list
184 (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")
185 "--enable-fftw3f"
186 "--enable-jack"
187 "--enable-sndfile"
188 "--enable-samplerate"
4ab9ad1e 189 "--enable-avcodec")
d55f912a
RW
190 #:python ,python-2))
191 (inputs
192 `(("jack" ,jack-1)
d55f912a
RW
193 ("libsndfile" ,libsndfile)
194 ("libsamplerate" ,libsamplerate)
4ab9ad1e
KK
195 ("fftwf" ,fftwf)
196 ("ffmpeg" ,ffmpeg))) ; for libavcodec
d55f912a
RW
197 (native-inputs
198 `(("pkg-config" ,pkg-config)))
c2f6c9ba 199 (home-page "https://aubio.org/")
a124bbd2 200 (synopsis "Library for audio labelling")
d55f912a
RW
201 (description
202 "aubio is a tool designed for the extraction of annotations from audio
203signals. Its features include segmenting a sound file before each of its
204attacks, performing pitch detection, tapping the beat and producing MIDI
205streams from live audio.")
206 (license license:gpl3+)))
207
d49976ed
RW
208(define (ardour-rpath-phase major-version)
209 `(lambda* (#:key outputs #:allow-other-keys)
210 (let ((libdir (string-append (assoc-ref outputs "out")
211 "/lib/ardour" ,major-version)))
212 (substitute* "wscript"
213 (("linker_flags = \\[\\]")
214 (string-append "linker_flags = [\""
215 "-Wl,-rpath="
216 libdir ":"
217 libdir "/backends" ":"
218 libdir "/engines" ":"
219 libdir "/panners" ":"
220 libdir "/surfaces" ":"
221 libdir "/vamp" "\"]"))))
222 #t))
223
60725232 224(define-public ardour
88efb2c3
RW
225 (package
226 (name "ardour")
d30f920c 227 (version "5.12")
88efb2c3 228 (source (origin
88efb2c3
RW
229 (method git-fetch)
230 (uri (git-reference
5f13bf09 231 (url "https://git.ardour.org/ardour/ardour.git")
88efb2c3
RW
232 (commit version)))
233 (snippet
b16043a3
RW
234 ;; Ardour expects this file to exist at build time. The revision
235 ;; is the output of
236 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
02ecdeaa 237 `(call-with-output-file
88efb2c3
RW
238 "libs/ardour/revision.cc"
239 (lambda (port)
02ecdeaa 240 (format port ,(string-append "#include \"ardour/revision.h\"
6cbee49d
MW
241namespace ARDOUR { const char* revision = \"" version "\" ; }"))
242 #t)))
88efb2c3
RW
243 (sha256
244 (base32
d30f920c 245 "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr"))
88efb2c3
RW
246 (file-name (string-append name "-" version))))
247 (build-system waf-build-system)
248 (arguments
b5fc72ff 249 `(#:configure-flags '("--cxx11" ; required by gtkmm
ba5c8567 250 "--no-phone-home" ; don't contact ardour.org
ff46016e 251 "--freedesktop" ; build .desktop file
5f0c6496 252 "--test") ; build unit tests
92e4fbe2 253 #:phases
21481a28 254 (modify-phases %standard-phases
ff46016e
BT
255 (add-after 'unpack 'set-rpath-in-LDFLAGS
256 ,(ardour-rpath-phase (version-major version)))
257 (add-after 'install 'install-freedesktop-files
258 (lambda* (#:key outputs #:allow-other-keys)
259 (let* ((out (assoc-ref outputs "out"))
260 (share (string-append out "/share"))
261 (ver ,(version-major version)))
262 (for-each
263 (lambda (size)
264 (let ((dir (string-append share "/icons/hicolor/"
265 size "x" size "/apps")))
266 (mkdir-p dir)
267 (copy-file
268 (string-append "gtk2_ardour/resources/Ardour-icon_"
269 size "px.png")
270 (string-append dir "/ardour" ver ".png"))))
271 '("16" "22" "32" "48" "256"))
272 (install-file (string-append "build/gtk2_ardour/ardour"
273 ver ".desktop")
274 (string-append share "/applications/"))
275 (install-file (string-append "build/gtk2_ardour/ardour"
276 ver ".appdata.xml")
277 (string-append share "/appdata/")))
278 #t)))
5f0c6496 279 #:test-target "test"
88efb2c3
RW
280 #:python ,python-2))
281 (inputs
282 `(("alsa-lib" ,alsa-lib)
19dd523c 283 ("atkmm" ,atkmm)
88efb2c3 284 ("aubio" ,aubio)
88efb2c3 285 ("boost" ,boost)
88efb2c3 286 ("cairomm" ,cairomm)
19dd523c 287 ("curl" ,curl)
c5edbb97 288 ("eudev" ,eudev)
19dd523c
BT
289 ("fftw" ,fftw)
290 ("fftwf" ,fftwf)
291 ("flac" ,flac)
88efb2c3 292 ("glibmm" ,glibmm)
19dd523c
BT
293 ("gtkmm" ,gtkmm-2)
294 ("jack" ,jack-1)
295 ("libarchive" ,libarchive)
88efb2c3
RW
296 ("libart-lgpl" ,libart-lgpl)
297 ("libgnomecanvasmm" ,libgnomecanvasmm)
88efb2c3 298 ("liblo" ,liblo)
88efb2c3 299 ("libogg" ,libogg)
19dd523c
BT
300 ("libsamplerate" ,libsamplerate)
301 ("libsndfile" ,libsndfile)
72d9ef1b 302 ("libusb" ,libusb)
88efb2c3 303 ("libvorbis" ,libvorbis)
19dd523c
BT
304 ("libxml2" ,libxml2)
305 ("lilv" ,lilv)
306 ("lrdf" ,lrdf)
88efb2c3 307 ("lv2" ,lv2)
19dd523c
BT
308 ("pangomm" ,pangomm)
309 ("python-rdflib" ,python-rdflib)
310 ("readline" ,readline)
311 ("redland" ,redland)
312 ("rubberband" ,rubberband)
88efb2c3
RW
313 ("serd" ,serd)
314 ("sord" ,sord)
315 ("sratom" ,sratom)
316 ("suil" ,suil)
88efb2c3 317 ("taglib" ,taglib)
19dd523c 318 ("vamp" ,vamp)))
88efb2c3 319 (native-inputs
19dd523c 320 `(("cppunit" ,cppunit)
ba5c8567 321 ("gettext" ,gettext-minimal)
19dd523c
BT
322 ("itstool" ,itstool)
323 ("perl" ,perl)
88efb2c3
RW
324 ("pkg-config" ,pkg-config)))
325 (home-page "http://ardour.org")
326 (synopsis "Digital audio workstation")
327 (description
328 "Ardour is a multi-channel digital audio workstation, allowing users to
329record, edit, mix and master audio and MIDI projects. It is targeted at audio
330engineers, musicians, soundtrack editors and composers.")
331 (license license:gpl2+)))
332
cd381c31
KK
333(define-public audacity
334 (package
335 (name "audacity")
d75a0cd9 336 (version "2.3.3")
cd381c31
KK
337 (source
338 (origin
8713c03e
TGR
339 (method git-fetch)
340 (uri (git-reference
341 (url "https://github.com/audacity/audacity.git")
342 (commit (string-append "Audacity-" version))))
343 (file-name (git-file-name name version))
cd381c31 344 (sha256
3ae45eb4 345 (base32
d75a0cd9 346 "0707fsnrl4vjalsi21w4blwgz024qhd0w8rdd5j5vpxf5lyk2rbk"))
3182a1d2
RW
347 (patches (search-patches "audacity-build-with-system-portaudio.patch"))
348 (modules '((guix build utils)))
349 (snippet
350 ;; Remove bundled libraries.
351 '(begin
352 (for-each
353 (lambda (dir)
354 (delete-file-recursively (string-append "lib-src/" dir)))
d75a0cd9 355 '("expat" "ffmpeg" "lame" "libflac" "libid3tag" "libmad" "libogg"
3182a1d2
RW
356 "libsndfile" "libsoxr" "libvamp" "libvorbis" "lv2"
357 "portaudio-v19" "portmidi" "soundtouch" "twolame"
358 ;; FIXME: these libraries have not been packaged yet:
359 ;; "libnyquist"
360 ;; "libscorealign"
361 ;; "libwidgetextra"
362 ;; "portburn"
363 ;; "portsmf"
364 ;; "portmixer"
365
366 ;; FIXME: we have this library, but it differs in that the Slide
367 ;; class does not have a member "getInverseStretchedTime".
368 ;; "sbsms"
369 ))
370 #t))))
b0f43001 371 (build-system glib-or-gtk-build-system)
cd381c31 372 (inputs
3182a1d2 373 `(("wxwidgets" ,wxwidgets)
99e0fb24 374 ("gtk+" ,gtk+)
cd381c31
KK
375 ("alsa-lib" ,alsa-lib)
376 ("jack" ,jack-1)
377 ("expat" ,expat)
378 ("ffmpeg" ,ffmpeg)
379 ("lame" ,lame)
380 ("flac" ,flac)
381 ("libid3tag" ,libid3tag)
382 ("libmad" ,libmad)
3182a1d2 383 ;;("libsbsms" ,libsbsms) ;bundled version is modified
cd381c31
KK
384 ("libsndfile" ,libsndfile)
385 ("soundtouch" ,soundtouch)
386 ("soxr" ,soxr) ;replaces libsamplerate
387 ("twolame" ,twolame)
388 ("vamp" ,vamp)
389 ("libvorbis" ,libvorbis)
390 ("lv2" ,lv2)
3182a1d2
RW
391 ("lilv" ,lilv) ;for lv2
392 ("suil" ,suil) ;for lv2
393 ("portaudio" ,portaudio)
394 ("portmidi" ,portmidi)))
cd381c31
KK
395 (native-inputs
396 `(("autoconf" ,autoconf)
397 ("automake" ,automake)
398 ("gettext" ,gettext-minimal) ;for msgfmt
399 ("libtool" ,libtool)
400 ("pkg-config" ,pkg-config)
401 ("python" ,python-2)
402 ("which" ,which)))
403 (arguments
118a8ecc 404 `(#:configure-flags
cd381c31 405 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
3182a1d2
RW
406 (libmad (assoc-ref %build-inputs "libmad"))
407 (portmidi (assoc-ref %build-inputs "portmidi")))
cd381c31
KK
408 (list
409 ;; Loading FFmpeg dynamically is problematic.
410 "--disable-dynamic-loading"
118a8ecc
EF
411 ;; SSE instructions are available on Intel systems only.
412 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
413 (%current-system)))
414 '("x64_64" "i686"))
415 '()
416 '("--enable-sse=no"))
3182a1d2
RW
417 ;; portmidi, libid3tag and libmad provide no .pc files, so
418 ;; pkg-config fails to find them. Force their inclusion.
cd381c31
KK
419 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
420 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
421 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
3182a1d2
RW
422 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")
423 (string-append "PORTMIDI_CFLAGS=-I" portmidi "/include")
424 (string-append "PORTMIDI_LIBS=-L" portmidi "/lib -lportmidi")
425 "EXPAT_USE_SYSTEM=yes"
426 "FFMPEG_USE_SYSTEM=yes"
427 "LAME_USE_SYSTEM=yes"
428 "LIBFLAC_USE_SYSTEM=yes"
429 "LIBID3TAG_USE_SYSTEM=yes"
430 "LIBMAD_USE_SYSTEM=yes"
431 "USE_LOCAL_LIBNYQUIST=" ;not packaged yet
432 ;;"LIBSBSMS_USE_SYSTEM=yes" ;bundled version is patched
433 "LIBSNDFILE_USE_SYSTEM=yes"
434 "LIBSOUNDTOUCH_USE_SYSTEM=yes"
435 "LIBSOXR_USE_SYSTEM=yes"
436 "LIBTWOLAME_USE_SYSTEM=yes"
437 "LIBVAMP_USE_SYSTEM=yes"
438 "LIBVORBIS_USE_SYSTEM=yes"
439 "LV2_USE_SYSTEM=yes"
440 "PORTAUDIO_USE_SYSTEM=yes"))
cd381c31
KK
441 #:phases
442 (modify-phases %standard-phases
3182a1d2 443 (add-after 'unpack 'fix-sbsms-check
cd381c31 444 (lambda _
3182a1d2
RW
445 ;; This check is wrong: there is no 2.2.0 release; not even the
446 ;; bundled sources match this release string.
447 (substitute* '("m4/audacity_checklib_libsbsms.m4"
448 "configure")
449 (("sbsms >= 2.2.0") "sbsms >= 2.0.0"))
450 #t))
451 (add-after 'unpack 'use-upstream-headers
452 (lambda* (#:key inputs #:allow-other-keys)
453 (substitute* '("src/NoteTrack.cpp"
454 "src/AudioIO.cpp"
d75a0cd9
KK
455 "src/AudioIO.h"
456 "src/AudioIOBase.cpp")
3182a1d2
RW
457 (("../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h")
458 (("../lib-src/portmidi/porttime/porttime.h") "porttime.h"))
459 (substitute* "src/prefs/MidiIOPrefs.cpp"
460 (("../../lib-src/portmidi/pm_common/portmidi.h") "portmidi.h"))
461 #t)))
cd381c31
KK
462 ;; The test suite is not "well exercised" according to the developers,
463 ;; and fails with various errors. See
464 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
465 #:tests? #f))
2d5fa80e 466 (home-page "https://www.audacityteam.org/")
cd381c31
KK
467 (synopsis "Software for recording and editing sounds")
468 (description
469 "Audacity is a multi-track audio editor designed for recording, playing
470and editing digital audio. It features digital effects and spectrum analysis
471tools.")
472 (license license:gpl2+)))
473
a8e14943
HG
474(define-public audiofile
475 (package
476 (name "audiofile")
477 (version "0.3.6")
478 (source
479 (origin
480 (method url-fetch)
481 (uri (string-append
482 "https://audiofile.68k.org/audiofile-" version ".tar.gz"))
483 (sha256
484 (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind"))
485 (patches
486 ;; CVE references according to nixpgs
487 (search-patches
488 "audiofile-fix-datatypes-in-tests.patch"
489 "audiofile-fix-sign-conversion.patch"
490 "audiofile-hurd.patch"
491 "audiofile-CVE-2015-7747.patch"
492 ;; CVE-2017-6829:
493 "audiofile-Fix-index-overflow-in-IMA.cpp.patch"
494 ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835,
495 ;; CVE-2017-6837:
496 "audiofile-Check-the-number-of-coefficients.patch"
497 ;; CVE-2017-6839:
498 "audiofile-Fix-overflow-in-MSADPCM-decodeSam.patch"
499 ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838:
500 "audiofile-Fix-multiply-overflow-sfconvert.patch"
501 "audiofile-signature-of-multiplyCheckOverflow.patch"
502 ;; CVE-2017-6831:
503 "audiofile-Fail-on-error-in-parseFormat.patch"
504 ;; CVE-2017-6833:
505 "audiofile-division-by-zero-BlockCodec-runPull.patch"
506 "audiofile-CVE-2018-13440.patch"
507 "audiofile-CVE-2018-17095.patch"))))
508 (build-system gnu-build-system)
509 (inputs
510 `(("alsa-lib" ,alsa-lib)))
511 (home-page "https://audiofile.68k.org/")
512 (synopsis "Library to handle various audio file formats")
513 (description "This is an open-source version of SGI's audiofile library.
514It provides a uniform programming interface for processing of audio data to
515and from audio files of many common formats.
516
517Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun
518.snd/.au, BICS, and raw data. Supported compression formats are currently
519G.711 mu-law and A-law.")
520 (license license:lgpl2.1+)))
521
c3276dbe
TW
522(define-public autotalent
523 (package
524 (name "autotalent")
525 (version "0.2")
526 (source (origin
527 (method url-fetch)
528 (uri (string-append "http://tombaran.info/autotalent-"
529 version ".tar.gz"))
530 (sha256
531 (base32
532 "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh"))))
533 (build-system gnu-build-system)
534 (arguments
535 `(#:tests? #f ; no check target
536 #:phases
537 (modify-phases %standard-phases
538 ;; no configure script
539 (delete 'configure)
540 (add-before 'install 'prepare-target-directory
541 (lambda* (#:key outputs #:allow-other-keys)
542 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
543 #t))
544 (add-after 'unpack 'override-target-directory
545 (lambda* (#:key outputs #:allow-other-keys)
546 (substitute* "Makefile"
547 (("/usr/lib64/ladspa")
548 (string-append (assoc-ref outputs "out") "/lib/ladspa")))
549 #t)))))
550 (inputs
551 `(("ladspa" ,ladspa)))
552 (home-page "http://tombaran.info/autotalent.html")
553 (synopsis "Pitch-correction LADSPA audio plugin")
554 (description
555 "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its
556controls are allowable notes, strength of correction, LFO for vibrato and
557formant warp.")
558 ;; All code except the FFT routine is licensed under GPLv2+.
559 ;; The FFT routine is under BSD-3.
242b29ba 560 (license license:gpl2+)))
c3276dbe 561
497e9a82
RW
562(define-public azr3
563 (package
564 (name "azr3")
565 (version "1.2.3")
566 (source (origin
567 (method url-fetch)
568 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
569 version
570 ".tar.bz2"))
571 (sha256
572 (base32
204adc30
RW
573 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
574 (patches (search-patches "azr3.patch"))))
497e9a82
RW
575 (build-system gnu-build-system)
576 (arguments
577 `(#:tests? #f ; no check target
578 #:make-flags
579 (list "LV2PEG=ttl2c"
580 (string-append "prefix=" %output)
ef1f9acf
RW
581 (string-append "pkgdatadir=" %output "/share/azr3-jack"))
582 #:phases
583 (modify-phases %standard-phases
584 (add-before 'install 'fix-timestamp
585 (lambda _
586 (let ((early-1980 315619200)) ; 1980-01-02 UTC
587 (utime "azr3.1" early-1980 early-1980))
588 #t)))))
497e9a82
RW
589 (inputs
590 `(("gtkmm" ,gtkmm-2)
591 ("lvtk" ,lvtk)
592 ("jack" ,jack-1)
f753846b 593 ("lash" ,lash)))
497e9a82
RW
594 (native-inputs
595 `(("pkg-config" ,pkg-config)))
596 (home-page "http://ll-plugins.nongnu.org/azr3/")
597 (synopsis "Tonewheel organ synthesizer")
598 (description
599 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
600with drawbars, distortion and rotating speakers. The organ has three
601sections, two polyphonic sections with nine drawbars each and one monophonic
602bass section with five drawbars. A standalone JACK application and LV2
603plugins are provided.")
604 (license license:gpl2)))
605
f62a8417
RW
606(define-public calf
607 (package
608 (name "calf")
c8de7979 609 (version "0.90.3")
f62a8417
RW
610 (source (origin
611 (method url-fetch)
8f946a18 612 (uri (string-append "https://calf-studio-gear.org/files/calf-"
73cea74d 613 version ".tar.gz"))
f62a8417
RW
614 (sha256
615 (base32
c8de7979 616 "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3"))))
f62a8417
RW
617 (build-system gnu-build-system)
618 (inputs
619 `(("fluidsynth" ,fluidsynth)
620 ("expat" ,expat)
621 ("glib" ,glib)
622 ("gtk" ,gtk+-2)
623 ("cairo" ,cairo)
624 ("lash" ,lash)
625 ("jack" ,jack-1)
626 ("lv2" ,lv2)
627 ("ladspa" ,ladspa)
628 ("fftw" ,fftw)))
629 (native-inputs
630 `(("pkg-config" ,pkg-config)))
631 (native-search-paths
632 (list (search-path-specification
633 (variable "LV2_PATH")
634 (files '("lib/lv2")))))
635 (home-page "http://calf.sourceforge.net/")
636 (synopsis "Audio plug-in pack for LV2 and JACK environments")
637 (description
638 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
639The suite contains lots of effects (delay, modulation, signal processing,
640filters, equalizers, dynamics, distortion and mastering effects),
641instruments (SF2 player, organ simulator and a monophonic synthesizer) and
642tools (analyzer, mono/stereo tools, crossovers).")
643 ;; calfjackhost is released under GPLv2+
644 ;; The plugins are released under LGPLv2.1+
645 (license (list license:lgpl2.1+ license:gpl2+))))
646
7a44e875
TW
647(define-public caps-plugins-lv2
648 (package
649 (name "caps-plugins-lv2")
650 (version "0.9.24") ; version that has been ported.
651 (source
652 (origin
653 ;; The Github project hasn't tagged a release.
654 (method git-fetch)
655 (uri (git-reference
656 ;; Actually https://github.com/moddevices/caps-lv2.git, but it's
657 ;; missing fixes for newer glibc, so using the origin of a pull
658 ;; request regarding this issue:
659 (url "https://github.com/jujudusud/caps-lv2.git")
660 (commit "9c9478b7fbd8f9714f552ebe2a6866398b0babfb")))
661 (file-name (git-file-name name version))
662 (sha256
663 (base32
664 "1idfnazin3cca41zw1a8vwgnxjnkrap7bxxjamjqvgpmvydgcam1"))))
665 (build-system gnu-build-system)
666 (arguments
667 `(#:tests? #f ; no check target
668 #:phases
669 (modify-phases %standard-phases
670 ;; no configure script
671 (delete 'configure)
672 (add-after 'unpack 'override-target-directory
673 (lambda* (#:key outputs #:allow-other-keys)
674 (substitute* (find-files "plugins" "Makefile")
675 (("/usr/local")(assoc-ref outputs "out")))
676 #t)))))
677 (inputs
678 `(("lv2" ,lv2)))
679 ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html
680 (home-page "https://github.com/moddevices/caps-lv2")
681 (synopsis "LV2 port of the CAPS audio plugin colection")
682 (description
683 "LV2 port of CAPS, a collection of audio plugins comprising basic virtual
684guitar amplification and a small range of classic effects, signal processors and
685generators of mostly elementary and occasionally exotic nature.")
686 (license license:gpl3+)))
687
8f941dd2
RW
688(define-public infamous-plugins
689 (package
690 (name "infamous-plugins")
d11edbdf 691 (version "0.2.04")
8f941dd2 692 (source (origin
0b8db035
RW
693 (method git-fetch)
694 (uri (git-reference
695 (url "https://github.com/ssj71/infamousPlugins.git")
696 (commit (string-append "v" version))))
697 (file-name (git-file-name name version))
8f941dd2
RW
698 (sha256
699 (base32
0b8db035 700 "0hmqk80w4qxq09iag7b7srf2g0wigkyhzq0ywxvhz2iz0hq9k0dh"))))
8f941dd2 701 (build-system cmake-build-system)
d6618941 702 (arguments
d11edbdf 703 `(#:tests? #f ; there are no tests
d6618941
EF
704 #:phases
705 (modify-phases %standard-phases
706 (add-after 'unpack 'remove-compiler-flags
707 (lambda _
3e0e9e16 708 (substitute* (find-files "." "CMakeLists.txt")
d11edbdf 709 (("-msse2 -mfpmath=sse") ""))
d6618941 710 #t)))))
8f941dd2
RW
711 (inputs
712 `(("cairo" ,cairo)
713 ("fftwf" ,fftwf)
714 ("lv2" ,lv2)
715 ("ntk" ,ntk)
716 ("zita-resampler" ,zita-resampler)))
717 (native-inputs
718 `(("pkg-config" ,pkg-config)))
a9071e5c 719 (home-page "https://ssj71.github.io/infamousPlugins")
8f941dd2
RW
720 (synopsis "LV2 plugins for live use")
721 (description
722 "The infamous plugins are a collection of LV2 audio plugins for live
723performances. The plugins include a cellular automaton synthesizer, an
724envelope follower, distortion effects, tape effects and more.")
725 (license license:gpl2+)))
726
7366d831
OP
727(define-public swh-plugins
728 (package
729 (name "swh-plugins")
730 (version "0.4.17")
731 (source (origin
732 (method git-fetch)
733 (uri (git-reference
734 (url "https://github.com/swh/ladspa.git")
735 (commit (string-append "v" version))))
736 (file-name (git-file-name name version))
737 (sha256
738 (base32
739 "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq"))))
740 (native-inputs
741 `(("autoconf" ,autoconf)
742 ("automake" ,automake)
743 ("gettext" ,gettext-minimal) ;for autopoint
744 ("libtool" ,libtool)
745 ("perl" ,perl)
746 ("pkg-config" ,pkg-config)
747 ("which" ,which)))
748 (inputs
749 `(("fftwf" ,fftwf)
750 ("perl-xml-parser" ,perl-xml-parser)))
751 (build-system gnu-build-system)
0daf7e26 752 (home-page "http://plugin.org.uk")
7366d831
OP
753 (synopsis "The SWH Plugins package for the LADSPA plugin system")
754 (description "This package provides Steve Harris's LADSPA plugins.")
755 (license license:gpl2+)))
756
18f3d92b
FPS
757(define-public swh-plugins-lv2
758 (package
759 (name "swh-plugins-lv2")
760 (version "1.0.16")
761 (source (origin
2ae23954
RW
762 (method git-fetch)
763 (uri (git-reference
764 (url "https://github.com/swh/lv2.git")
765 (commit (string-append "v" version))))
766 (file-name (git-file-name name version))
18f3d92b
FPS
767 (sha256
768 (base32
2ae23954 769 "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz"))))
18f3d92b
FPS
770 (build-system gnu-build-system)
771 (arguments
772 `(#:tests? #f ; no check target
773 #:make-flags (list "CC=gcc"
774 (string-append "PREFIX="
775 (assoc-ref %outputs "out")))
776 #:phases
777 (modify-phases %standard-phases
778 ;; no configure script
779 (delete 'configure)
780 (add-after 'unpack 'patch-makefile-and-enter-directory
781 ;; The default install target doesn't install, but the
782 ;; "install-system" target does.
783 (lambda _
784 (substitute* "Makefile"
785 (("install:") "install: install-system"))
786 #t)))))
787 (inputs
788 `(("lv2" ,lv2)
789 ("fftwf" ,fftwf)))
790 (native-inputs
791 `(("libxslt" ,libxslt)
792 ("pkg-config" ,pkg-config)))
793 (home-page "http://plugin.org.uk")
794 (synopsis "SWH plugins in LV2 format")
795 (description
796 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
797classes include: dynamics (compressor, limiter), time (delay, chorus,
798flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
799emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
800 (license license:gpl3+)))
801
fda85ca6
RW
802(define-public csound
803 (package
804 (name "csound")
d6ce8eca 805 (version "6.13.0")
fda85ca6 806 (source (origin
917dc896
RW
807 (method git-fetch)
808 (uri (git-reference
809 (url "https://github.com/csound/csound.git")
810 (commit version)))
811 (file-name (git-file-name name version))
fda85ca6
RW
812 (sha256
813 (base32
d6ce8eca 814 "14822ybqyp31z18gky2y9zadr9dkbhabg97y139py73w7v3af1bh"))))
fda85ca6
RW
815 (build-system cmake-build-system)
816 (inputs
817 `(("alsa-lib" ,alsa-lib)
818 ("boost" ,boost)
819 ("pulseaudio" ,pulseaudio)
820 ("libsndfile" ,libsndfile)
821 ("liblo" ,liblo)
822 ("ladspa" ,ladspa)
823 ("jack" ,jack-1)
b94a6ca0 824 ("gettext" ,gettext-minimal)))
fda85ca6
RW
825 (native-inputs
826 `(("bison" ,bison)
827 ("flex" ,flex)
828 ("zlib" ,zlib)))
40f856fa 829 (home-page "https://csound.com/")
fda85ca6
RW
830 (synopsis "Sound and music computing system")
831 (description
832 "Csound is a user-programmable and user-extensible sound processing
833language and software synthesizer.")
834 (license license:lgpl2.1+)))
835
631ac903
RW
836(define-public clalsadrv
837 (package
838 (name "clalsadrv")
839 (version "2.0.0")
840 (source (origin
841 (method url-fetch)
842 (uri (string-append
843 "http://kokkinizita.linuxaudio.org"
844 "/linuxaudio/downloads/clalsadrv-"
845 version ".tar.bz2"))
846 (sha256
847 (base32
9de2e43c 848 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
631ac903
RW
849 (build-system gnu-build-system)
850 (arguments
851 `(#:tests? #f ; no "check" target
852 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
853 #:phases
dc1d3cde
KK
854 (modify-phases %standard-phases
855 (add-after 'unpack 'patch-makefile-and-enter-directory
856 (lambda _
857 (substitute* "libs/Makefile"
858 (("/sbin/ldconfig") "true")
859 (("^LIBDIR =.*") "LIBDIR = lib\n"))
860 (chdir "libs")
861 #t))
862 (add-after 'install 'install-symlink
863 (lambda _
864 (symlink "libclalsadrv.so"
865 (string-append (assoc-ref %outputs "out")
ee527187
MW
866 "/lib/libclalsadrv.so.2"))
867 #t))
631ac903 868 ;; no configure script
4f27a333 869 (delete 'configure))))
631ac903
RW
870 (inputs
871 `(("alsa-lib" ,alsa-lib)
872 ("fftw" ,fftw)))
4817bb92 873 (home-page "https://kokkinizita.linuxaudio.org")
631ac903
RW
874 (synopsis "C++ wrapper around the ALSA API")
875 (description
876 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
877ALSA PCM devices.")
878 (license license:gpl2+)))
879
8ba62f92
RW
880(define-public amb-plugins
881 (package
882 (name "amb-plugins")
883 (version "0.8.1")
884 (source (origin
885 (method url-fetch)
886 (uri (string-append
887 "http://kokkinizita.linuxaudio.org"
888 "/linuxaudio/downloads/AMB-plugins-"
889 version ".tar.bz2"))
890 (sha256
891 (base32
892 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
893 (build-system gnu-build-system)
894 (arguments
895 `(#:tests? #f ; no "check" target
896 #:phases
897 (modify-phases %standard-phases
898 ;; no configure script
899 (delete 'configure)
900 (add-before 'install 'prepare-target-directory
901 (lambda* (#:key outputs #:allow-other-keys)
902 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
903 #t))
904 (add-after 'unpack 'override-target-directory-and-tool-paths
905 (lambda* (#:key outputs #:allow-other-keys)
906 (substitute* "Makefile"
907 (("/usr/lib/ladspa")
908 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
909 (("/usr/bin/install") (which "install"))
910 (("/bin/rm") "#"))
911 #t)))))
4817bb92 912 (home-page "https://kokkinizita.linuxaudio.org")
8ba62f92
RW
913 (synopsis "LADSPA ambisonics plugins")
914 (description
915 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
916used within Ardour. Features include: mono and stereo to B-format panning,
917horizontal rotator, square, hexagon and cube decoders.")
918 (license license:gpl2+)))
919
fb2e072c
RW
920(define-public mcp-plugins
921 (package
922 (name "mcp-plugins")
923 (version "0.4.0")
924 (source (origin
925 (method url-fetch)
926 (uri (string-append
927 "http://kokkinizita.linuxaudio.org"
928 "/linuxaudio/downloads/MCP-plugins-"
929 version ".tar.bz2"))
930 (sha256
931 (base32
932 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
933 (build-system gnu-build-system)
934 (arguments
935 `(#:tests? #f ; no "check" target
936 #:phases
937 (modify-phases %standard-phases
938 ;; no configure script
939 (delete 'configure)
940 (add-before 'install 'prepare-target-directory
941 (lambda* (#:key outputs #:allow-other-keys)
942 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
943 #t))
944 (add-after 'unpack 'override-target-directory
945 (lambda* (#:key outputs #:allow-other-keys)
946 (substitute* "Makefile"
947 (("/usr") (assoc-ref outputs "out")))
948 #t)))))
4817bb92 949 (home-page "https://kokkinizita.linuxaudio.org")
fb2e072c
RW
950 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
951 (description
952 "This package provides various LADSPA plugins. @code{cs_chorus} and
953@code{cs_phaser} provide chorus and phaser effects, respectively;
954@code{mvclpf24} provides four implementations of the low-pass filter used in
955vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
956high-pass filter by Robert Moog. The filters attempt to accurately emulate
957the non-linear circuit elements of their original analog counterparts.")
958 (license license:gpl2+)))
959
dffb6c3b
RW
960(define-public rev-plugins
961 (package
962 (name "rev-plugins")
963 (version "0.7.1")
964 (source (origin
965 (method url-fetch)
966 (uri (string-append
967 "http://kokkinizita.linuxaudio.org"
968 "/linuxaudio/downloads/REV-plugins-"
969 version ".tar.bz2"))
970 (sha256
971 (base32
972 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
973 (build-system gnu-build-system)
974 (arguments
975 `(#:tests? #f ; no "check" target
976 #:phases
977 (modify-phases %standard-phases
978 ;; no configure script
979 (delete 'configure)
980 (add-before 'install 'prepare-target-directory
981 (lambda* (#:key outputs #:allow-other-keys)
982 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
983 #t))
984 (add-after 'unpack 'override-target-directory
985 (lambda* (#:key outputs #:allow-other-keys)
986 (substitute* "Makefile"
987 (("/usr") (assoc-ref outputs "out")))
988 #t)))))
4817bb92 989 (home-page "https://kokkinizita.linuxaudio.org")
dffb6c3b
RW
990 (synopsis "LADSPA reverb plugin")
991 (description
992 "This package provides a stereo reverb LADSPA plugin based on the
993well-known greverb.")
994 (license license:gpl2+)))
995
75f45d16
RW
996(define-public fil-plugins
997 (package
998 (name "fil-plugins")
999 (version "0.3.0")
1000 (source (origin
1001 (method url-fetch)
1002 (uri (string-append
1003 "http://kokkinizita.linuxaudio.org"
1004 "/linuxaudio/downloads/FIL-plugins-"
1005 version ".tar.bz2"))
1006 (sha256
1007 (base32
1008 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
1009 (build-system gnu-build-system)
1010 (arguments
1011 `(#:tests? #f ; no "check" target
1012 #:phases
1013 (modify-phases %standard-phases
1014 ;; no configure script
1015 (delete 'configure)
1016 (add-before 'install 'prepare-target-directory
1017 (lambda* (#:key outputs #:allow-other-keys)
1018 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1019 #t))
1020 (add-after 'unpack 'override-target-directory
1021 (lambda* (#:key outputs #:allow-other-keys)
1022 (substitute* "Makefile"
1023 (("/usr") (assoc-ref outputs "out")))
1024 #t)))))
4817bb92 1025 (home-page "https://kokkinizita.linuxaudio.org")
75f45d16
RW
1026 (synopsis "LADSPA four-band parametric equalizer plugin")
1027 (description
1028 "This package provides a LADSPA plugin for a four-band parametric
1029equalizer. Each section has an active/bypass switch, frequency, bandwidth and
1030gain controls. There is also a global bypass switch and gain control.
1031
1032The 2nd order resonant filters are implemented using a Mitra-Regalia style
1033lattice filter, which is stable even while parameters are being changed.
1034
36a4366d 1035All switches and controls are internally smoothed, so they can be used @code{live}
75f45d16
RW
1036without any clicks or zipper noises. This makes this plugin suitable for use
1037in systems that allow automation of plugin control ports, such as Ardour, or
1038for stage use.")
1039 (license license:gpl2+)))
1040
c04b4e7a
RW
1041(define-public ste-plugins
1042 (package
1043 (name "ste-plugins")
1044 (version "0.0.2")
1045 (source (origin
1046 (method url-fetch)
1047 (uri (string-append
1048 "http://kokkinizita.linuxaudio.org"
1049 "/linuxaudio/downloads/STE-plugins-"
1050 version ".tar.bz2"))
1051 (sha256
1052 (base32
1053 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
1054 (build-system gnu-build-system)
1055 (arguments
1056 `(#:tests? #f ; no "check" target
1057 #:phases
1058 (modify-phases %standard-phases
1059 ;; no configure script
1060 (delete 'configure)
1061 (add-before 'install 'prepare-target-directory
1062 (lambda* (#:key outputs #:allow-other-keys)
1063 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1064 #t))
1065 (add-after 'unpack 'override-target-directory
1066 (lambda* (#:key outputs #:allow-other-keys)
1067 (substitute* "Makefile"
1068 (("/usr") (assoc-ref outputs "out")))
1069 #t)))))
4817bb92 1070 (home-page "https://kokkinizita.linuxaudio.org")
c04b4e7a
RW
1071 (synopsis "LADSPA stereo width plugin")
1072 (description
1073 "This package provides a LADSPA plugin to manipulate the stereo width of
1074audio signals.")
1075 (license license:gpl2+)))
1076
eb4fca7e
RW
1077(define-public vco-plugins
1078 (package
1079 (name "vco-plugins")
1080 (version "0.3.0")
1081 (source (origin
1082 (method url-fetch)
1083 (uri (string-append
1084 "http://kokkinizita.linuxaudio.org"
1085 "/linuxaudio/downloads/VCO-plugins-"
1086 version ".tar.bz2"))
1087 (sha256
1088 (base32
1089 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
1090 (build-system gnu-build-system)
1091 (arguments
1092 `(#:tests? #f ; no "check" target
1093 #:phases
1094 (modify-phases %standard-phases
1095 ;; no configure script
1096 (delete 'configure)
1097 (add-before 'install 'prepare-target-directory
1098 (lambda* (#:key outputs #:allow-other-keys)
1099 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1100 #t))
1101 (add-after 'unpack 'override-target-directory
1102 (lambda* (#:key outputs #:allow-other-keys)
1103 (substitute* "Makefile"
1104 (("/usr") (assoc-ref outputs "out"))
1105 (("/bin/cp") (which "cp")))
1106 #t)))))
4817bb92 1107 (home-page "https://kokkinizita.linuxaudio.org")
eb4fca7e
RW
1108 (synopsis "LADSPA plugin for synthesizer oscillators")
1109 (description
1110 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
1111
1112@enumerate
1113@item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
1114@item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
947b3ac6 1115@item Rec-VCO, a square / rectangle oscillator
eb4fca7e
RW
1116@end enumerate\n
1117
1118All oscillators are low-pass filtered to provide waveforms similar to the
1119output of analog synthesizers such as the Moog Voyager.")
1120 (license license:gpl2+)))
1121
5e3161d3
RW
1122(define-public wah-plugins
1123 (package
1124 (name "wah-plugins")
1125 (version "0.1.0")
1126 (source (origin
1127 (method url-fetch)
1128 (uri (string-append
1129 "http://kokkinizita.linuxaudio.org"
1130 "/linuxaudio/downloads/WAH-plugins-"
1131 version ".tar.bz2"))
1132 (sha256
1133 (base32
1134 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
1135 (build-system gnu-build-system)
1136 (arguments
1137 `(#:tests? #f ; no "check" target
1138 #:phases
1139 (modify-phases %standard-phases
1140 ;; no configure script
1141 (delete 'configure)
1142 (add-before 'install 'prepare-target-directory
1143 (lambda* (#:key outputs #:allow-other-keys)
1144 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1145 #t))
1146 (add-after 'unpack 'override-target-directory
1147 (lambda* (#:key outputs #:allow-other-keys)
1148 (substitute* "Makefile"
1149 (("/usr") (assoc-ref outputs "out")))
1150 #t)))))
4817bb92 1151 (home-page "https://kokkinizita.linuxaudio.org")
5e3161d3
RW
1152 (synopsis "LADSPA Autowah effect plugin")
1153 (description
1154 "This package provides a LADSPA plugin for a Wah effect with envelope
1155follower.")
1156 (license license:gpl2+)))
1157
ed17465d
RW
1158(define-public g2reverb
1159 (package
1160 (name "g2reverb")
1161 (version "0.7.1")
1162 (source (origin
1163 (method url-fetch)
1164 (uri (string-append
1165 "http://kokkinizita.linuxaudio.org"
1166 "/linuxaudio/downloads/g2reverb-"
1167 version ".tar.bz2"))
1168 (sha256
1169 (base32
1170 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
1171 (build-system gnu-build-system)
1172 (arguments
1173 `(#:tests? #f ; no "check" target
1174 #:phases
1175 (modify-phases %standard-phases
1176 ;; no configure script
1177 (delete 'configure)
1178 (add-before 'install 'prepare-target-directory
1179 (lambda* (#:key outputs #:allow-other-keys)
1180 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
1181 #t))
1182 (add-after 'unpack 'override-target-directory
1183 (lambda* (#:key outputs #:allow-other-keys)
1184 (substitute* "Makefile"
1185 (("/usr") (assoc-ref outputs "out")))
1186 #t)))))
4817bb92 1187 (home-page "https://kokkinizita.linuxaudio.org")
ed17465d
RW
1188 (synopsis "LADSPA stereo reverb plugin")
1189 (description
1190 "This package provides a LADSPA plugin for a stereo reverb effect.")
1191 (license license:gpl2+)))
1192
e4f43b56
RW
1193(define-public fluidsynth
1194 (package
1195 (name "fluidsynth")
0b17d0fd 1196 (version "2.1.0")
e4f43b56 1197 (source (origin
dd46c16b
RW
1198 (method git-fetch)
1199 (uri (git-reference
1200 (url "https://github.com/FluidSynth/fluidsynth.git")
1201 (commit (string-append "v" version))))
94781b79 1202 (file-name (git-file-name name version))
e4f43b56
RW
1203 (sha256
1204 (base32
0b17d0fd 1205 "0jhla1641rx77va4b6n4shn8srj87rpwvp170byj1bg8z8g89ji1"))))
dd46c16b 1206 (build-system cmake-build-system)
e4f43b56 1207 (arguments
713b519e 1208 '(#:tests? #f ; no check target
dd46c16b 1209 #:phases
dc1d3cde 1210 (modify-phases %standard-phases
dd46c16b
RW
1211 (add-after 'unpack 'fix-libdir
1212 (lambda _
713b519e 1213 ;; Install libraries to /lib, not /lib64.
dd46c16b
RW
1214 (substitute* "CMakeLists.txt"
1215 (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}")
1216 "LIB_SUFFIX \"\""))
1217 #t)))))
e4f43b56
RW
1218 (inputs
1219 `(("libsndfile" ,libsndfile)
1220 ("alsa-lib" ,alsa-lib)
1221 ("jack" ,jack-1)
1222 ("ladspa" ,ladspa)
1223 ("lash" ,lash)
1224 ("readline" ,readline)
1225 ("glib" ,glib)))
1226 (native-inputs
1227 `(("pkg-config" ,pkg-config)))
1228 (home-page "http://www.fluidsynth.org/")
1229 (synopsis "SoundFont synthesizer")
1230 (description
1231 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1232specifications. FluidSynth reads and handles MIDI events from the MIDI input
e881752c 1233device. It is the software analogue of a MIDI synthesizer. FluidSynth can
e4f43b56 1234also play midifiles using a Soundfont.")
dd46c16b 1235 (license license:lgpl2.1+)))
e4f43b56 1236
9b6dc31b
MB
1237;; gzdoom@3.3.0 and lmms@1.1.3 requires this version. Remove once no longer
1238;; needed.
1239(define-public fluidsynth-1
1240 (package
1241 (inherit fluidsynth)
1242 (version "1.1.11")
1243 (source (origin
1244 (inherit (package-source fluidsynth))
1245 (uri (git-reference
1246 (url "https://github.com/FluidSynth/fluidsynth")
1247 (commit (string-append "v" version))))
1248 (file-name (git-file-name "fluidsynth" version))
1249 (sha256
1250 (base32
1251 "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"))))))
1252
70fc29d9
TUBK
1253(define-public faad2
1254 (package
1255 (name "faad2")
747dc4b9 1256 (version "2.8.6")
70fc29d9
TUBK
1257 (source (origin
1258 (method url-fetch)
de67e922 1259 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
747dc4b9
TGR
1260 (version-major+minor version) ".0/"
1261 "faad2-" version ".tar.gz"))
70fc29d9
TUBK
1262 (sha256
1263 (base32
747dc4b9 1264 "089zqykqgmmysznvk0bi2pfvdqwclnn540d0zks83sv2pynpfjb5"))))
70fc29d9 1265 (build-system gnu-build-system)
43999c61 1266 (home-page "https://www.audiocoding.com/faad2.html")
70fc29d9
TUBK
1267 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1268 (description
1269 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
1270PS, and DAB+.")
1271 (license license:gpl2)))
1272
777291f0
RW
1273(define-public faust
1274 (package
1275 (name "faust")
a3604742 1276 (version "0.9.90")
777291f0 1277 (source (origin
a3604742
RW
1278 (method git-fetch)
1279 (uri (git-reference
1280 (url "https://github.com/grame-cncm/faust.git")
1281 (commit (string-append "v"
1282 (string-map (lambda (c)
1283 (if (char=? c #\.) #\- c))
1284 version)))))
1285 (file-name (string-append "faust-" version "-checkout"))
777291f0
RW
1286 (sha256
1287 (base32
a3604742 1288 "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z"))))
777291f0
RW
1289 (build-system gnu-build-system)
1290 (arguments
1291 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1292 #:tests? #f
1293 #:phases
1294 (modify-phases %standard-phases
0543c326 1295 ;; no "configure" script
a3604742
RW
1296 (delete 'configure)
1297 ;; Files appear under $out/share/faust that are read-only. The
1298 ;; install phase tries to overwrite them and fails, so we change
1299 ;; the permissions first.
1300 (add-before 'install 'fix-permissions
1301 (lambda _
1302 (for-each (lambda (file)
1303 (chmod file #o644))
1304 (find-files "architecture/max-msp" ".*"))
1305 #t)))))
777291f0
RW
1306 (native-inputs
1307 `(("unzip" ,unzip)))
1308 (home-page "http://faust.grame.fr/")
1309 (synopsis "Signal processing language")
1310 (description
1311 "Faust is a programming language for realtime audio signal processing.")
1312 (license license:gpl2+)))
1313
8ae60404
RW
1314(define-public faust-2
1315 (package
1316 (inherit faust)
89c78948 1317 (version "2.5.23")
8ae60404 1318 (source (origin
89c78948
RW
1319 (method url-fetch)
1320 (uri (string-append "https://github.com/grame-cncm/faust/"
1321 "releases/download/" version
1322 "/faust-" version ".tar.gz"))
8ae60404
RW
1323 (sha256
1324 (base32
89c78948 1325 "1yz5jnr76hh7rmxkpdi7gyrw1wp4gyqfpq8zyl97qdi5ga5gjznq"))))
8ae60404
RW
1326 (build-system gnu-build-system)
1327 (arguments
1328 (substitute-keyword-arguments (package-arguments faust)
1329 ((#:make-flags flags)
1330 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
75bbc3c2 1331 "world"))))
8ae60404 1332 (native-inputs
fc9dbf41 1333 `(("llvm" ,llvm-3.8)
8ae60404 1334 ("which" ,which)
9fc513ad 1335 ("xxd" ,xxd)
8ae60404
RW
1336 ("ctags" ,emacs-minimal) ; for ctags
1337 ("pkg-config" ,pkg-config)))
1338 (inputs
1339 `(("libsndfile" ,libsndfile)
1340 ("libmicrohttpd" ,libmicrohttpd)
1341 ("ncurses" ,ncurses)
1342 ("openssl" ,openssl)
1343 ("zlib" ,zlib)))))
1344
7c92efff
RW
1345(define-public freepats
1346 (package
1347 (name "freepats")
1348 (version "20060219")
1349 (source (origin
1350 (method url-fetch)
1351 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1352 version ".tar.bz2"))
1353 (sha256
1354 (base32
1355 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1356 (build-system trivial-build-system)
1357 (arguments
1358 `(#:modules ((guix build utils))
1359 #:builder (begin
1360 (use-modules (guix build utils))
1361 (let ((out (string-append %output "/share/freepats")))
1362 (setenv "PATH" (string-append
1363 (assoc-ref %build-inputs "bzip2") "/bin:"
1364 (assoc-ref %build-inputs "tar") "/bin"))
e3cfef22 1365 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
7c92efff
RW
1366 (chdir "freepats")
1367 ;; Use absolute pattern references
1368 (substitute* "freepats.cfg"
1369 (("Tone_000") (string-append out "/Tone_000"))
1370 (("Drum_000") (string-append out "/Drum_000")))
1371 (mkdir-p out)
e3cfef22
MW
1372 (copy-recursively "." out)
1373 #t))))
7c92efff
RW
1374 (native-inputs
1375 `(("tar" ,tar)
1376 ("bzip2" ,bzip2)))
1377 (home-page "http://freepats.zenvoid.org")
1378 (synopsis "GUS compatible patches for MIDI players")
1379 (description
1380 "FreePats is a project to create a free and open set of GUS compatible
1381patches that can be used with softsynths such as Timidity and WildMidi.")
1382 ;; GPLv2+ with exception for compositions using these patches.
1383 (license license:gpl2+)))
1384
fcbeb00b
RW
1385(define-public guitarix
1386 (package
1387 (name "guitarix")
12327d74 1388 (version "0.38.1")
fcbeb00b
RW
1389 (source (origin
1390 (method url-fetch)
1391 (uri (string-append
de67e922 1392 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
d706d943 1393 version ".tar.xz"))
fcbeb00b
RW
1394 (sha256
1395 (base32
12327d74 1396 "0bw7xnrx062nwb1bfj9x660h7069ncmz77szcs8icpqxrvhs7z80"))))
fcbeb00b
RW
1397 (build-system waf-build-system)
1398 (arguments
1399 `(#:tests? #f ; no "check" target
1400 #:python ,python-2
1401 #:configure-flags
1402 (list
fcbeb00b 1403 ;; Add the output lib directory to the RUNPATH.
0fe041bd 1404 (string-append "--ldflags=-Wl,-rpath=" %output "/lib"))
4e51d735
RW
1405 #:phases
1406 (modify-phases %standard-phases
1407 (add-after 'unpack 'fix-boost-includes
1408 (lambda _
1409 (substitute* "src/headers/gx_internal_plugins.h"
1410 (("namespace gx_jack" m)
1411 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1412 (substitute* '("src/headers/gx_system.h"
1413 "src/headers/gx_parameter.h"
1414 "src/headers/gx_json.h")
1415 (("namespace gx_system" m)
1416 (string-append "#include <boost/noncopyable.hpp>\n" m)))
1417 #t)))))
fcbeb00b
RW
1418 (inputs
1419 `(("libsndfile" ,libsndfile)
1420 ("boost" ,boost)
d54145c3 1421 ("curl" ,curl)
fcbeb00b
RW
1422 ("avahi" ,avahi)
1423 ("eigen" ,eigen)
1424 ("lv2" ,lv2)
1425 ("lilv" ,lilv)
1426 ("ladspa" ,ladspa)
1427 ("jack" ,jack-1)
1428 ("gtkmm" ,gtkmm-2)
1429 ("gtk+" ,gtk+-2)
1430 ("fftwf" ,fftwf)
1431 ("lrdf" ,lrdf)
1432 ("zita-resampler" ,zita-resampler)
1433 ("zita-convolver" ,zita-convolver)))
1434 (native-inputs
1435 `(("gperf" ,gperf)
49767428 1436 ("faust" ,faust)
fcbeb00b 1437 ("intltool" ,intltool)
b94a6ca0 1438 ("gettext" ,gettext-minimal)
fcbeb00b
RW
1439 ("pkg-config" ,pkg-config)))
1440 (native-search-paths
1441 (list (search-path-specification
1442 (variable "LV2_PATH")
1443 (files '("lib/lv2")))))
1444 (home-page "http://guitarix.org/")
1445 (synopsis "Virtual guitar amplifier")
1446 (description "Guitarix is a virtual guitar amplifier running JACK.
1447Guitarix takes the signal from your guitar as a mono-signal from your sound
1448card. The input is processed by a main amp and a rack-section. Both can be
1449routed separately and deliver a processed stereo-signal via JACK. You may
1450fill the rack with effects from more than 25 built-in modules including stuff
1451from a simple noise gate to modulation effects like flanger, phaser or
1452auto-wah.")
1453 (license license:gpl2+)))
1454
5f5b5768
RW
1455(define-public guitarix-lv2
1456 (package (inherit guitarix)
1457 (name "guitarix-lv2")
1458 (arguments
1459 (substitute-keyword-arguments (package-arguments guitarix)
1460 ((#:configure-flags flags)
029de52f 1461 `(cons "--no-standalone" ,flags))))))
5f5b5768 1462
11d4800a
RW
1463(define-public rakarrack
1464 (package
1465 (name "rakarrack")
1466 (version "0.6.1")
1467 (source (origin
1468 (method url-fetch)
1469 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1470 "rakarrack-" version "/rakarrack-"
1471 version ".tar.bz2"))
1472 (sha256
1473 (base32
1474 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1475 (modules '((guix build utils)))
1476 (snippet
1477 '(begin
1478 (substitute* '("src/process.C"
1479 "src/global.h")
1480 (("#include <Fl/") "#include <FL/"))
1481 #t))))
1482 (build-system gnu-build-system)
1483 (inputs
1484 `(("alsa-utils" ,alsa-utils)
1485 ("fltk" ,fltk)
1486 ("libx11" ,libx11)
1487 ("libxext" ,libxext)
1488 ("libxfixes" ,libxfixes)
1489 ("libxft" ,libxft)
1490 ("libxrender" ,libxrender)
1491 ("libxpm" ,libxpm)
1492 ("fontconfig" ,fontconfig)
1493 ("freetype" ,freetype)
1494 ("jack" ,jack-1)
1495 ("alsa-lib" ,alsa-lib)
1496 ("libsndfile" ,libsndfile)
1497 ("libsamplerate" ,libsamplerate)
1498 ("zlib" ,zlib)))
1499 (home-page "http://rakarrack.sourceforge.net/")
1500 (synopsis "Audio effects processor")
1501 (description
1502 "Rakarrack is a richly featured multi-effects processor emulating a
1503guitar effects pedalboard. Effects include compressor, expander, noise gate,
1504equalizers, exciter, flangers, chorus, various delay and reverb effects,
1505distortion modules and many more. Most of the effects engine is built from
1506modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1507user interface are optimized for guitar, but Rakarrack processes signals in
1508stereo while it does not apply internal band-limiting filtering, and thus is
1509well suited to all musical instruments and vocals.")
1510 ;; The code is explicitly licensed under the GPL version 2 only.
1511 (license license:gpl2)))
1512
32cf42c1
RW
1513(define-public ir
1514 (package
1515 (name "ir")
6f85a9c4 1516 (version "1.3.4")
32cf42c1 1517 (source (origin
6f85a9c4
RW
1518 (method git-fetch)
1519 (uri (git-reference
1520 (url "https://github.com/tomszilagyi/ir.lv2")
1521 (commit version)))
1522 (file-name (git-file-name name version))
32cf42c1
RW
1523 (sha256
1524 (base32
6f85a9c4 1525 "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0"))))
32cf42c1
RW
1526 (build-system gnu-build-system)
1527 (arguments
2df984f2 1528 `(#:tests? #f ; no tests
6f85a9c4
RW
1529 #:make-flags
1530 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1531 (string-append "INSTDIR="
1532 (assoc-ref %outputs "out") "/lib/lv2"))
2df984f2
TGR
1533 #:phases (modify-phases %standard-phases
1534 (delete 'configure)))) ; no configure script
32cf42c1
RW
1535 (inputs
1536 `(("libsndfile" ,libsndfile)
1537 ("libsamplerate" ,libsamplerate)
1538 ("lv2" ,lv2)
1539 ("glib" ,glib)
1540 ("gtk+" ,gtk+-2)
1541 ("zita-convolver" ,zita-convolver)))
1542 (native-inputs
1543 `(("pkg-config" ,pkg-config)))
1544 (native-search-paths
1545 (list (search-path-specification
1546 (variable "LV2_PATH")
1547 (files '("lib/lv2")))))
6f85a9c4 1548 (home-page "https://tomszilagyi.github.io/plugins/ir.lv2")
32cf42c1
RW
1549 (synopsis "LV2 convolution reverb")
1550 (description
1551 "IR is a low-latency, real-time, high performance signal convolver
1552especially for creating reverb effects. It supports impulse responses with 1,
15532 or 4 channels, in any soundfile format supported by libsndfile.")
1554 (license license:gpl2+)))
1555
fb68469f
RW
1556(define-public jack-1
1557 (package
1558 (name "jack")
31b7af76 1559 (version "0.125.0")
fb68469f
RW
1560 (source (origin
1561 (method url-fetch)
1562 (uri (string-append
1563 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1564 version
1565 ".tar.gz"))
1566 (sha256
1567 (base32
31b7af76 1568 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
fb68469f 1569 (build-system gnu-build-system)
8e2c0ce4
MB
1570 (arguments
1571 `(#:phases (modify-phases %standard-phases
1572 (add-after 'unpack 'patch-configure
1573 (lambda _
1574 (substitute* "configure"
1575 ;; Install to <out/lib> regardless of platform.
1576 (("libnn=lib64") "libnn=lib"))
1577 #t)))))
fb68469f 1578 (inputs
2f9ae82f 1579 `(("alsa-lib" ,alsa-lib)
5d95e30b
RW
1580 ("readline" ,readline)))
1581 ;; uuid.h is included in the JACK type headers
ca01b3ad 1582 ;; db.h is included in the libjack metadata headers
5d95e30b 1583 (propagated-inputs
bb93042c 1584 `(("libuuid" ,util-linux "lib")
ca01b3ad 1585 ("bdb" ,bdb)))
2f9ae82f
RW
1586 (native-inputs
1587 `(("pkg-config" ,pkg-config)))
fb68469f
RW
1588 (home-page "http://jackaudio.org/")
1589 (synopsis "JACK audio connection kit")
1590 (description
1591 "JACK is a low-latency audio server. It can connect a number of
1592different applications to an audio device, as well as allowing them to share
1593audio between themselves. JACK is different from other audio server efforts
1594in that it has been designed from the ground up to be suitable for
1595professional audio work. This means that it focuses on two key areas:
1596synchronous execution of all clients, and low latency operation.")
1597 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1598 ;; licensed under the LGPL in order to allow for proprietary usage.
e89fa047 1599 (license (list license:gpl2+ license:lgpl2.1+))))
c54a8981 1600
bcbc02fd
RW
1601;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1602;; jack-2 implement the same API. JACK2 is provided primarily as a client
1603;; program for users who might benefit from the D-BUS features.
c54a8981
RW
1604(define-public jack-2
1605 (package (inherit jack-1)
314275c7 1606 (name "jack2")
fa984fa6 1607 (version "1.9.13")
c54a8981
RW
1608 (source (origin
1609 (method url-fetch)
a4527622
RW
1610 (uri (string-append "https://github.com/jackaudio/jack2/releases/"
1611 "download/v" version "/jack2-"
1612 version ".tar.gz"))
f586c877 1613 (file-name (string-append name "-" version ".tar.gz"))
c54a8981
RW
1614 (sha256
1615 (base32
fa984fa6 1616 "1d1d403jn4366mqig6g8ghr8057b3rn7gs26b5p3rkal34j20qw2"))))
c54a8981
RW
1617 (build-system waf-build-system)
1618 (arguments
fa984fa6 1619 `(#:tests? #f ; no check target
c54a8981 1620 #:configure-flags '("--dbus"
b416c647
SB
1621 "--alsa")
1622 #:phases
1623 (modify-phases %standard-phases
fa984fa6
RW
1624 (add-before 'configure 'set-linkflags
1625 (lambda _
1626 ;; Add $libdir to the RUNPATH of all the binaries.
1627 (substitute* "wscript"
1628 ((".*CFLAGS.*-Wall.*" m)
1629 (string-append m
1630 " conf.env.append_unique('LINKFLAGS',"
1631 "'-Wl,-rpath=" %output "/lib')\n")))
1632 #t))
bc8bf605 1633 (add-after 'install 'wrap-python-scripts
fa984fa6
RW
1634 (lambda* (#:key inputs outputs #:allow-other-keys)
1635 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1636 (let* ((out (assoc-ref outputs "out"))
1637 (path (getenv "PYTHONPATH")))
1638 (wrap-program (string-append out "/bin/jack_control")
1639 `("PYTHONPATH" ":" prefix (,path))))
1640 #t)))))
c54a8981
RW
1641 (inputs
1642 `(("alsa-lib" ,alsa-lib)
1643 ("dbus" ,dbus)
1644 ("expat" ,expat)
1645 ("libsamplerate" ,libsamplerate)
1646 ("opus" ,opus)
fa984fa6 1647 ("python-dbus" ,python-dbus)
c54a8981
RW
1648 ("readline" ,readline)))
1649 (native-inputs
1650 `(("pkg-config" ,pkg-config)))
1651 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1652 (license (list license:gpl2+ license:lgpl2.1+))))
f47cba0e 1653
2f4646b6
RW
1654(define-public jalv
1655 (package
1656 (name "jalv")
4e385d2a 1657 (version "1.6.4")
2f4646b6
RW
1658 (source (origin
1659 (method url-fetch)
0d0252e4 1660 (uri (string-append "https://download.drobilla.net/jalv-"
2f4646b6
RW
1661 version ".tar.bz2"))
1662 (sha256
1663 (base32
4e385d2a 1664 "1wwfn7yzbs37s2rdlfjgks63svd5g14yyzd2gdl7h0z12qncwsy2"))))
2f4646b6 1665 (build-system waf-build-system)
d8c317df 1666 (arguments
4e385d2a 1667 `(#:tests? #f ; no check target
0403b04d 1668 #:python ,python-2))
2f4646b6
RW
1669 (inputs
1670 `(("lv2" ,lv2)
1671 ("lilv" ,lilv)
1672 ("suil" ,suil)
9e4e66c4
AT
1673 ("gtk2" ,gtk+-2)
1674 ("gtk3" ,gtk+)
1675 ("gtkmm" ,gtkmm-2)
1676 ("qtbase" ,qtbase)
2f4646b6
RW
1677 ("jack" ,jack-1)))
1678 (native-inputs
1679 `(("pkg-config" ,pkg-config)))
0d0252e4 1680 (home-page "https://drobilla.net/software/jalv/")
2f4646b6
RW
1681 (synopsis "Simple LV2 host for JACK")
1682 (description
1683 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1684plugins and exposes their ports as JACK ports, essentially making any LV2
1685plugin function as a JACK application.")
1686 (license license:isc)))
1687
2cc7ce31
RW
1688(define-public ladspa
1689 (package
1690 (name "ladspa")
1691 (version "1.13")
0c1910ed
AV
1692 (source
1693 (origin
1694 (method url-fetch)
1695 ;; Since the official link is dead,
1696 ;; we download the tarball from Debian or Internet Archive.
1697 (uri (list (string-append "http://http.debian.net"
1698 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1699 version ".orig.tar.gz")
1700 (string-append "https://web.archive.org/web/20140717172251/"
1701 "http://www.ladspa.org/download/ladspa_sdk_"
1702 version ".tgz")))
1703 (sha256
1704 (base32
1705 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
2cc7ce31
RW
1706 (build-system gnu-build-system)
1707 (arguments
1708 `(#:tests? #f ; the "test" target is a listening test only
1709 #:phases
ee527187
MW
1710 (modify-phases %standard-phases
1711 (replace 'configure
1712 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1713 (chdir "src")
1714 (let ((out (assoc-ref outputs "out")))
1715 (substitute* "makefile"
1716 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1717 (("/usr/include/") (string-append out "/include/"))
1718 (("/usr/bin/") (string-append out "/bin/"))
1719 (("-mkdirhier") "mkdir -p")
1720 (("^CC.*") "CC = gcc\n")
1721 (("^CPP.*") "CPP = g++\n")))
1722 #t))
1723 (delete 'build))))
0c1910ed
AV
1724 ;; Since the home page is gone, we provide a link to the archived version.
1725 (home-page
1726 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
2cc7ce31
RW
1727 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1728 (description
1729 "LADSPA is a standard that allows software audio processors and effects
1730to be plugged into a wide range of audio synthesis and recording packages.")
1731 (license license:lgpl2.1+)))
1732
da49086a
RW
1733(define-public lash
1734 (package
1735 (name "lash")
1736 (version "0.6.0-rc2")
1737 (source (origin
1738 (method url-fetch)
1739 ;; The tilde is not permitted in the builder name, but is used
1740 ;; in the tarball.
1741 (uri (string-append
1742 "mirror://savannah/lash/lash-"
1743 (string-join (string-split version #\-) "~")
1744 ".tar.bz2"))
1745 (file-name (string-append name "-" version ".tar.bz2"))
1746 (sha256
1747 (base32
1748 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1749 (build-system gnu-build-system)
44df7807 1750 (arguments
f03cda4d
MB
1751 '(;; Glibc no longer includes Sun RPC support, so tell the build system
1752 ;; to use libtirpc instead.
1753 #:make-flags (list (string-append "CFLAGS=-I"
1754 (assoc-ref %build-inputs "libtirpc")
1755 "/include/tirpc -ltirpc"))
1756 #:phases
44df7807
EF
1757 (modify-phases %standard-phases
1758 ;; lashd embeds an ancient version of sigsegv so we just skip it
1759 (add-after 'unpack 'skip-lashd
1760 (lambda _
1761 (substitute* '("Makefile.am" "Makefile.in")
1762 (("lashd ") ""))
b07bfd06
EF
1763 #t)))
1764 #:configure-flags '("--disable-static")))
da49086a
RW
1765 (inputs
1766 `(("bdb" ,bdb)
1767 ("gtk" ,gtk+-2)
1768 ("jack" ,jack-1)
f03cda4d 1769 ("libtirpc" ,libtirpc)
da49086a
RW
1770 ("readline" ,readline)
1771 ("python" ,python-2)))
1772 ;; According to pkg-config, packages depending on lash also need to have
1773 ;; at least the following packages declared as inputs.
1774 (propagated-inputs
1775 `(("alsa-lib" ,alsa-lib)
1776 ("dbus" ,dbus)
1777 ("libxml2" ,libxml2)))
1778 (native-inputs
1779 `(("pkg-config" ,pkg-config)))
340978d7 1780 (home-page "https://www.nongnu.org/lash/")
da49086a
RW
1781 (synopsis "Audio application session manager")
1782 (description
1783 "LASH is a session management system for audio applications. It allows
1784you to save and restore audio sessions consisting of multiple interconneced
1785applications, restoring program state (i.e. loaded patches) and the
1786connections between them.")
1787 (license license:gpl2+)))
1788
8c0b5a75
TUBK
1789(define-public libbs2b
1790 (package
1791 (name "libbs2b")
1792 (version "3.1.0")
1793 (source (origin
1794 (method url-fetch)
de67e922
LF
1795 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1796 "/libbs2b-" version ".tar.lzma"))
8c0b5a75
TUBK
1797 (sha256
1798 (base32
1799 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1800 (build-system gnu-build-system)
1801 (native-inputs `(("pkg-config" ,pkg-config)))
1802 (inputs `(("libsndfile" ,libsndfile)))
3b3b60d0 1803 (home-page "https://sourceforge.net/projects/bs2b/")
8c0b5a75
TUBK
1804 (synopsis "Bauer stereophonic-to-binaural DSP")
1805 (description
1806 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1807designed to improve headphone listening of stereo audio records. Recommended
1808for headphone prolonged listening to disable superstereo fatigue without
1809essential distortions.")
1810 (license license:expat)))
1811
f47cba0e
RW
1812(define-public liblo
1813 (package
1814 (name "liblo")
6a7ef08a 1815 (version "0.30")
f47cba0e
RW
1816 (source (origin
1817 (method url-fetch)
de67e922
LF
1818 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1819 "/liblo-" version ".tar.gz"))
f47cba0e
RW
1820 (sha256
1821 (base32
6a7ef08a 1822 "06wdjzxjdshr6hyl4c94yvg3jixiylap8yjs8brdfpm297gck9rh"))))
f47cba0e
RW
1823 (build-system gnu-build-system)
1824 (arguments
1825 `(;; liblo test FAILED
1826 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1827 #:tests? #f))
1828 (home-page "http://liblo.sourceforge.net")
1829 (synopsis "Implementation of the Open Sound Control protocol")
1830 (description
1831 "liblo is a lightweight library that provides an easy to use
03b71957 1832implementation of the Open Sound Control (@dfn{OSC}) protocol.")
f47cba0e 1833 (license license:lgpl2.1+)))
e2420191 1834
fbcad884
OP
1835(define-public python-pyaudio
1836 (package
1837 (name "python-pyaudio")
1838 (version "0.2.11")
1839 (source
1840 (origin
1841 (method url-fetch)
7d4dae6a 1842 (uri (pypi-uri "PyAudio" version))
fbcad884
OP
1843 (sha256
1844 (base32
1845 "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk"))))
1846 (build-system python-build-system)
1847 (inputs
1848 `(("portaudio" ,portaudio)))
1849 (home-page "https://people.csail.mit.edu/hubert/pyaudio/")
1850 (synopsis "Bindings for PortAudio v19")
1851 (description "This package provides bindings for PortAudio v19, the
1852cross-platform audio input/output stream library.")
1853 (license license:expat)))
1854
1855(define-public python2-pyaudio
1856 (package-with-python2 python-pyaudio))
1857
a91d72e2
RW
1858(define-public python-pyliblo
1859 (package
1860 (name "python-pyliblo")
1861 (version "0.10.0")
1862 (source (origin
1863 (method url-fetch)
1864 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1865 version ".tar.gz"))
1866 (sha256
1867 (base32
1868 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1869 (build-system python-build-system)
1870 (arguments `(#:tests? #f)) ;no tests
f2516de2
HG
1871 (native-inputs
1872 `(("python-cython" ,python-cython)))
a91d72e2 1873 (inputs
f2516de2 1874 `(("liblo" ,liblo)))
a91d72e2
RW
1875 (home-page "http://das.nasophon.de/pyliblo/")
1876 (synopsis "Python bindings for liblo")
1877 (description
1878 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1879library. It supports almost the complete functionality of liblo, allowing you
1880to send and receive OSC messages using a nice and simple Python API. Also
1881included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1882 (license license:lgpl2.1+)))
1883
1884(define-public python2-pyliblo
1885 (package-with-python2 python-pyliblo))
1886
332aad1b
RW
1887(define-public lilv
1888 (package
1889 (name "lilv")
2d91e596 1890 (version "0.24.6")
332aad1b
RW
1891 (source (origin
1892 (method url-fetch)
0d0252e4 1893 (uri (string-append "https://download.drobilla.net/lilv-"
d4d3df82 1894 version ".tar.bz2"))
332aad1b
RW
1895 (sha256
1896 (base32
2d91e596 1897 "1p3hafsxgs5d4za7n66lf5nz74qssfqpmk520cm7iq2njvvlqm2z"))))
332aad1b 1898 (build-system waf-build-system)
d80ee442 1899 (arguments
d0b025ea 1900 `(#:tests? #f ; no check target
d80ee442
TUBK
1901 #:phases
1902 (modify-phases %standard-phases
2d91e596 1903 (add-before 'configure 'set-ldflags
d80ee442
TUBK
1904 (lambda* (#:key outputs #:allow-other-keys)
1905 (setenv "LDFLAGS"
1906 (string-append "-Wl,-rpath="
d582d925 1907 (assoc-ref outputs "out") "/lib"))
6833c7a1
F
1908 #t))
1909 (add-after 'unpack 'full-store-path-to-shared-library
1910 (lambda* (#:key outputs #:allow-other-keys)
1911 (with-directory-excursion "bindings/python"
1912 (substitute* "lilv.py"
1913 (("liblilv-0.so") (string-append (assoc-ref outputs "out")
1914 "/lib/liblilv-0.so"))))
1915 #t)))))
d0b025ea 1916 ;; Required by lilv-0.pc.
ff7df27d 1917 (propagated-inputs
471884ed
MB
1918 `(("lv2" ,lv2)
1919 ("serd" ,serd)
332aad1b
RW
1920 ("sord" ,sord)
1921 ("sratom" ,sratom)))
1922 (native-inputs
6833c7a1
F
1923 `(("python" ,python)
1924 ("pkg-config" ,pkg-config)))
1925 (home-page "https://drobilla.net/software/lilv")
332aad1b
RW
1926 (synopsis "Library to simplify use of LV2 plugins in applications")
1927 (description
1928 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1929for applications. Lilv is the successor to SLV2, rewritten to be
1930significantly faster and have minimal dependencies.")
1931 (license license:isc)))
1932
e2420191
RW
1933(define-public lv2
1934 (package
1935 (name "lv2")
a2467954 1936 (version "1.16.0")
e2420191
RW
1937 (source (origin
1938 (method url-fetch)
1939 (uri (string-append "http://lv2plug.in/spec/lv2-"
eb21d248 1940 version ".tar.bz2"))
e2420191
RW
1941 (sha256
1942 (base32
a2467954 1943 "1ppippbpdpv13ibs06b0bixnazwfhiw0d0ja6hx42jnkgdyp5hyy"))))
e2420191
RW
1944 (build-system waf-build-system)
1945 (arguments
1946 `(#:tests? #f ; no check target
2e189eb8 1947 #:configure-flags '("--no-plugins")))
e2420191
RW
1948 (inputs
1949 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1950 `(("libsndfile" ,libsndfile)))
1951 (native-inputs
1952 `(("pkg-config" ,pkg-config)))
1953 (home-page "http://lv2plug.in/")
1954 (synopsis "LV2 audio plugin specification")
1955 (description
1956 "LV2 is an open specification for audio plugins and host applications.
1957At its core, LV2 is a simple stable interface, accompanied by extensions which
1958add functionality to support the needs of increasingly powerful audio
1959software.")
1960 (license license:isc)))
5279eb6f 1961
98247127
RW
1962(define-public lv2-mda-piano
1963 (package
1964 (name "lv2-mda-piano")
1965 (version "0.0.2")
1966 (source (origin
1967 (method git-fetch)
1968 (uri (git-reference
f6f499b3 1969 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
98247127 1970 (commit version)))
35a01e67 1971 (file-name (git-file-name name version))
98247127
RW
1972 (sha256
1973 (base32
1974 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1975 (build-system gnu-build-system)
1976 (arguments
1977 `(#:make-flags (list
1978 "TYPE=mdaPiano"
1979 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1980 #:tests? #f ; no check target
dc1d3cde 1981 #:phases (modify-phases %standard-phases (delete 'configure))))
98247127
RW
1982 (inputs
1983 `(("lv2" ,lv2)
1984 ("lvtk" ,lvtk)))
1985 (native-inputs
1986 `(("pkg-config" ,pkg-config)))
1987 (native-search-paths
1988 (list (search-path-specification
1989 (variable "LV2_PATH")
1990 (files '("lib/lv2")))))
1991 (home-page "http://elephly.net/lv2/mdapiano.html")
1992 (synopsis "LV2 port of the mda Piano plugin")
1993 (description "An LV2 port of the mda Piano VSTi.")
1994 (license license:gpl3+)))
1995
8fb79e3d
RW
1996(define-public lv2-mda-epiano
1997 (package (inherit lv2-mda-piano)
1998 (name "lv2-mda-epiano")
1999 (arguments
2000 `(#:make-flags (list
2001 "TYPE=mdaEPiano"
2002 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2003 #:tests? #f ; no check target
dc1d3cde 2004 #:phases (modify-phases %standard-phases (delete 'configure))))
8fb79e3d
RW
2005 (home-page "http://elephly.net/lv2/mdaepiano.html")
2006 (synopsis "LV2 port of the mda EPiano plugin")
2007 (description "An LV2 port of the mda EPiano VSTi.")))
2008
c1718190
RW
2009(define-public lvtk
2010 (package
2011 (name "lvtk")
2012 (version "1.2.0")
2013 (source (origin
b255365c
RW
2014 (method git-fetch)
2015 (uri (git-reference
2016 (url "https://github.com/lvtk/lvtk.git")
2017 (commit version)))
2018 (file-name (git-file-name name version))
c1718190
RW
2019 (sha256
2020 (base32
b255365c 2021 "1b01zvzl70ana6l1kn8fgyr7msnn3c7x61cgw7fdpp50322352p8"))))
c1718190
RW
2022 (build-system waf-build-system)
2023 (arguments
2024 `(#:tests? #f ; no check target
2025 #:python ,python-2
2026 #:configure-flags
2027 (list (string-append "--boost-includes="
2028 (assoc-ref %build-inputs "boost")
ed59057b 2029 "/include"))))
c1718190
RW
2030 (inputs
2031 `(("boost" ,boost)
85f4863f 2032 ("gtkmm" ,gtkmm-2)
c1718190
RW
2033 ("lv2" ,lv2)))
2034 (native-inputs
2035 `(("pkg-config" ,pkg-config)))
2036 (home-page "https://github.com/lvtk/lvtk")
2037 (synopsis "C++ libraries for LV2 plugins")
2038 (description
2039 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
2040extensions into easy to use C++ classes. It is the successor of
2041lv2-c++-tools.")
2042 (license license:gpl3+)))
2043
f2fac359
TUBK
2044(define-public openal
2045 (package
2046 (name "openal")
d5037890 2047 (version "1.20.1")
f2fac359
TUBK
2048 (source (origin
2049 (method url-fetch)
2050 (uri (string-append
b7ea10d0 2051 "https://openal-soft.org/openal-releases/openal-soft-"
f2fac359
TUBK
2052 version ".tar.bz2"))
2053 (sha256
2054 (base32
d5037890 2055 "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn"))))
f2fac359
TUBK
2056 (build-system cmake-build-system)
2057 (arguments
7ee5db15
RW
2058 `(#:tests? #f ; no check target
2059 #:phases
2060 (modify-phases %standard-phases
2061 (add-after
2062 'unpack 'use-full-library-paths
2063 (lambda* (#:key inputs #:allow-other-keys)
69290fd0 2064 (substitute* "alc/backends/pulseaudio.cpp"
7ee5db15
RW
2065 (("#define PALIB \"libpulse\\.so\\.0\"")
2066 (string-append "#define PALIB \""
2067 (assoc-ref inputs "pulseaudio")
2068 "/lib/libpulse.so.0"
2069 "\"")))
69290fd0 2070 (substitute* "alc/backends/alsa.cpp"
7ee5db15
RW
2071 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
2072 (string-append "LoadLib(\""
2073 (assoc-ref inputs "alsa-lib")
2074 "/lib/libasound.so.2"
2075 "\")")))
2076 #t)))))
f2fac359
TUBK
2077 (inputs
2078 `(("alsa-lib" ,alsa-lib)
2079 ("pulseaudio" ,pulseaudio)))
2080 (synopsis "3D audio API")
2081 (description
2082 "OpenAL provides capabilities for playing audio in a virtual 3D
2083environment. Distance attenuation, doppler shift, and directional sound
2084emitters are among the features handled by the API. More advanced effects,
2085including air absorption, occlusion, and environmental reverb, are available
2086through the EFX extension. It also facilitates streaming audio, multi-channel
2087buffers, and audio capture.")
b7ea10d0 2088 (home-page "https://openal-soft.org/")
f2fac359
TUBK
2089 (license license:lgpl2.0+)))
2090
c2b411c2 2091(define-public freealut
2092 (package
2093 (name "freealut")
2094 (version "1.1.0")
2095 (source (origin
2096 (method url-fetch)
2097 ;; Upstream url is unclear, many systems use Fedora, there is also
2098 ;; https://github.com/vancegroup/freealut though the status of it
2099 ;; (official? unofficial?) is not clear.
2100 (uri (string-append
2101 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
2102 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
2103 "-" version ".tar.gz"))
2104 (sha256
2105 (base32
2106 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
2107 (build-system cmake-build-system)
2108 (arguments
2109 `(#:tests? #f)) ; no check target
2110 (inputs
2111 `(("openal" ,openal)))
2112 (synopsis "Free implementation of OpenAL's ALUT standard")
2113 (description "freealut is the OpenAL Utility Toolkit.")
2114 (home-page "http://kcat.strangesoft.net/openal.html")
2115 (license license:lgpl2.0)))
2116
4443bb8d
RW
2117(define-public patchage
2118 (package
2119 (name "patchage")
2120 (version "1.0.0")
2121 (source (origin
2122 (method url-fetch)
0d0252e4 2123 (uri (string-append "https://download.drobilla.net/patchage-"
4443bb8d
RW
2124 version
2125 ".tar.bz2"))
2126 (sha256
2127 (base32
2128 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
2129 (build-system waf-build-system)
0fd9671b
RW
2130 (arguments
2131 `(#:tests? #f ; no check target
2132 #:python ,python-2))
4443bb8d
RW
2133 (inputs
2134 `(("alsa-lib" ,alsa-lib)
2135 ("boost" ,boost)
2136 ("jack" ,jack-1)
4443bb8d 2137 ("ganv" ,ganv)
4443bb8d
RW
2138 ("glibmm" ,glibmm)
2139 ("gtkmm" ,gtkmm-2)
4443bb8d
RW
2140 ("dbus-glib" ,dbus-glib)))
2141 (native-inputs
2142 `(("pkg-config" ,pkg-config)))
0d0252e4 2143 (home-page "https://drobilla.net/software/patchage/")
4443bb8d
RW
2144 (synopsis "Modular patch bay for audio and MIDI systems")
2145 (description
2146 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
2147and ALSA.")
2148 (license license:gpl3+)))
2149
a4b71b32
MB
2150(define-public pcaudiolib
2151 (package
2152 (name "pcaudiolib")
2153 (version "1.1")
2154 (home-page "https://github.com/espeak-ng/pcaudiolib")
2155 (source (origin
2156 (method git-fetch)
2157 (uri (git-reference (url home-page) (commit version)))
2158 (file-name (git-file-name name version))
2159 (sha256
2160 (base32
2161 "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0"))))
2162 (build-system gnu-build-system)
2163 (arguments
2164 `(#:configure-flags '("--disable-static")))
2165 (native-inputs
2166 `(("autoconf" ,autoconf)
2167 ("automake" ,automake)
2168 ("libtool" ,libtool)
2169 ("pkg-config" ,pkg-config)
2170 ("which" ,which)))
2171 (inputs
2172 `(("alsa-lib" ,alsa-lib)
2173 ("pulseaudio" ,pulseaudio)))
2174 (synopsis "Portable C audio library")
2175 (description
2176 "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to
2177different audio devices such as ALSA or PulseAudio.")
2178 (license (list license:gpl3+
2179 ;; The bundled TPCircularBuffer uses a custom license.
2180 (license:non-copyleft
2181 "file://src/TPCircularBuffer/README.markdown")))))
2182
0d78e377
MM
2183(define-public qjackctl
2184 (package
2185 (name "qjackctl")
e7597aad 2186 (version "0.5.9")
0d78e377
MM
2187 (source (origin
2188 (method url-fetch)
1538bc33
RW
2189 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
2190 version "/qjackctl-" version ".tar.gz"))
0d78e377
MM
2191 (sha256
2192 (base32
e7597aad 2193 "1saywsda9m124rmjp7i3n0llryaliabjxhqhvqr6dm983qy7pypk"))))
0d78e377
MM
2194 (build-system gnu-build-system)
2195 (arguments
4dcf221c 2196 '(#:tests? #f)) ; no check target
0d78e377 2197 (inputs
5ffa7cb1 2198 `(("jack" ,jack-1)
c0c5feda 2199 ("alsa-lib" ,alsa-lib)
a3c57693
EF
2200 ("qtbase" ,qtbase)
2201 ("qtx11extras" ,qtx11extras)))
0d78e377
MM
2202 (native-inputs
2203 `(("pkg-config" ,pkg-config)
2204 ("qttools" ,qttools)))
2205 (home-page "https://qjackctl.sourceforge.io/")
2206 (synopsis "Jack server control application")
2207 (description "Control a Jack server. Allows you to plug various sources
2208into various outputs and to start, stop and configure jackd")
2209 (license license:gpl2+)))
2210
40713793
RW
2211(define-public qjackrcd
2212 (package
2213 (name "qjackrcd")
78357403 2214 (version "1.2.2")
40713793 2215 (source (origin
78357403
RW
2216 (method git-fetch)
2217 (uri (git-reference
2218 (url "https://github.com/orouits/qjackrcd.git")
2219 (commit (string-append "v" version))))
70aa07d2 2220 (file-name (git-file-name name version))
40713793
RW
2221 (sha256
2222 (base32
78357403 2223 "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al"))))
40713793
RW
2224 (build-system gnu-build-system)
2225 (arguments
2226 `(#:phases
2227 (modify-phases %standard-phases
2228 (replace 'configure
2229 (lambda* (#:key outputs #:allow-other-keys)
14a852bd
TGR
2230 (invoke "qmake"
2231 (string-append "PREFIX="
2232 (assoc-ref outputs "out"))))))))
40713793
RW
2233 (native-inputs
2234 `(("qtbase" ,qtbase))) ; for qmake
2235 (inputs
2236 `(("jack" ,jack-1)
2237 ("libsndfile" ,libsndfile)
2238 ("qtbase" ,qtbase)))
2239 (home-page "https://sourceforge.net/projects/qjackrcd/")
2240 (synopsis "Stereo audio recorder for JACK")
2241 (description "QJackRcd is a simple graphical stereo recorder for JACK
2242supporting silence processing for automatic pause, file splitting, and
2243background file post-processing.")
2244 (license license:gpl2+)))
0d78e377 2245
247384d0
MC
2246(define-public supercollider
2247 (package
2248 (name "supercollider")
21e733ce 2249 (version "3.10.4")
247384d0
MC
2250 (source (origin
2251 (method url-fetch)
2252 (uri (string-append
2253 "https://github.com/supercollider/supercollider"
2254 "/releases/download/Version-" version
2255 "/SuperCollider-" version "-Source-linux.tar.bz2"))
2256 (sha256
2257 (base32
21e733ce 2258 "0x11g3pfw11m6v18qfpfl5w99dbmf73g4z7wvwhrj1a4qv2dn084"))))
247384d0
MC
2259 (build-system cmake-build-system)
2260 (arguments
2261 `(#:configure-flags '("-DSYSTEM_BOOST=on" "-DSYSTEM_YAMLCPP=on"
77cc8778 2262 "-DSC_QT=off"
247384d0 2263 "-DSC_EL=off") ;scel is packaged individually as
21e733ce 2264 ;emacs-scel
247384d0
MC
2265 #:modules ((guix build utils)
2266 (guix build cmake-build-system)
2267 (ice-9 ftw))
2268 #:phases
2269 (modify-phases %standard-phases
2270 (add-after 'unpack 'rm-bundled-libs
2271 (lambda _
2272 ;; The build system doesn't allow us to unbundle the following
21e733ce 2273 ;; libraries. hidapi is also heavily patched.
247384d0
MC
2274 (let ((keep-dirs '("nova-simd" "nova-tt" "hidapi" "TLSF-2.4.6"
2275 "oscpack_1_1_0" "." "..")))
2276 (with-directory-excursion "./external_libraries"
2277 (for-each
2278 delete-file-recursively
2279 (scandir "."
2280 (lambda (x)
2281 (and (eq? (stat:type (stat x)) 'directory)
2282 (not (member (basename x) keep-dirs))))))))
2283 #t))
2284 ;; Some tests are broken (see:
2285 ;; https://github.com/supercollider/supercollider/issues/3555 and
2286 ;; https://github.com/supercollider/supercollider/issues/1736
2287 (add-after 'rm-bundled-libs 'disable-broken-tests
2288 (lambda _
b05399df 2289 (substitute* "testsuite/server/supernova/CMakeLists.txt"
247384d0
MC
2290 (("server_test.cpp")
2291 "")
2292 (("perf_counter_test.cpp")
2293 ""))
b05399df
DM
2294 (delete-file "testsuite/server/supernova/server_test.cpp")
2295 (delete-file "testsuite/server/supernova/perf_counter_test.cpp")
247384d0
MC
2296 (substitute* "testsuite/CMakeLists.txt"
2297 (("add_subdirectory\\(sclang\\)")
2298 ""))
2299 (delete-file "testsuite/sclang/CMakeLists.txt")
247384d0
MC
2300 #t)))))
2301 (native-inputs
77cc8778 2302 `(("pkg-config" ,pkg-config)))
247384d0
MC
2303 (inputs
2304 `(("jack" ,jack-1)
2305 ("libsndfile" ,libsndfile)
2306 ("fftw" ,fftw)
2307 ("libxt" ,libxt)
2308 ("readline" ,readline) ;readline support for sclang's CLI
2309 ("alsa" ,alsa-lib) ;for sclang's MIDI interface
2310 ("eudev" ,eudev) ;for user interactions with devices
2311 ("avahi" ,avahi) ;zeroconf service discovery support
2312 ("icu4c" ,icu4c)
4cb9b726 2313 ("boost" ,boost)
247384d0 2314 ("boost-sync" ,boost-sync)
77cc8778 2315 ("yaml-cpp" ,yaml-cpp)))
247384d0
MC
2316 (home-page "https://github.com/supercollider/supercollider")
2317 (synopsis "Synthesis engine and programming language")
2318 (description "SuperCollider is a synthesis engine (@code{scsynth} or
2319@code{supernova}) and programming language (@code{sclang}). It can be used
2320for experimenting with sound synthesis and algorithmic composition.
2321
2322SuperCollider requires jackd to be installed in your user profile and your
2323user must be allowed to access the realtime features of the kernel. Search
2324for \"realtime\" in the index of the Guix manual to learn how to achieve this
59e80445 2325using Guix System.")
247384d0
MC
2326 (license license:gpl2+)))
2327
b22755be
RW
2328(define-public raul
2329 (package
2330 (name "raul")
2331 (version "0.8.0")
2332 (source (origin
2333 (method url-fetch)
0d0252e4 2334 (uri (string-append "https://download.drobilla.net/raul-"
b22755be
RW
2335 version ".tar.bz2"))
2336 (sha256
2337 (base32
2338 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
2339 (build-system waf-build-system)
2340 (arguments
2341 `(#:python ,python-2
2342 #:tests? #f)) ; no check target
2343 (inputs
2344 `(("glib" ,glib)
2345 ("boost" ,boost)))
2346 (native-inputs
2347 `(("pkg-config" ,pkg-config)))
0d0252e4 2348 (home-page "https://drobilla.net/software/raul/")
b22755be
RW
2349 (synopsis "Real-time audio utility library")
2350 (description
2351 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
2352aimed at audio/musical applications.")
2353 (license license:gpl2+)))
2354
f91d0d08 2355(define-public raul-devel
a8bf6b9b 2356 (let ((commit "4db870b2b20b0a608ec0283139056b836c5b1624")
f91d0d08
RW
2357 (revision "1"))
2358 (package (inherit raul)
2359 (name "raul")
a8bf6b9b 2360 (version (string-append "0.8.9-" revision "."
f91d0d08
RW
2361 (string-take commit 9)))
2362 (source (origin
2363 (method git-fetch)
2364 (uri (git-reference
0d0252e4 2365 (url "https://git.drobilla.net/raul.git")
f91d0d08
RW
2366 (commit commit)))
2367 (file-name (string-append name "-" version "-checkout"))
2368 (sha256
2369 (base32
a8bf6b9b 2370 "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr")))))))
f91d0d08 2371
d83bb797
JW
2372(define-public resample
2373 (package
2374 (name "resample")
2375 (version "1.8.1")
2376 (source (origin
2377 (method url-fetch)
2378 (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-"
2379 version
2380 ".tar.gz"))
2381 (sha256 (base32
2382 "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
2383 (build-system gnu-build-system)
2384 (native-inputs
2385 `(("autoconf" ,autoconf)
2386 ("automake" ,automake)
2387 ("pkg-config" ,pkg-config)
2388 ("libtool" ,libtool)))
2389 (synopsis "Real-time library for sampling rate conversion")
2390 (description "The @command{resample} software package contains free
2391sampling-rate conversion and filter design utilities.")
2392 (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html")
2393 (license license:lgpl2.1+)))
2394
57238ff2
RW
2395(define-public rubberband
2396 (package
2397 (name "rubberband")
4bee557d 2398 (version "1.8.2")
57238ff2
RW
2399 (source (origin
2400 (method url-fetch)
2401 (uri
2402 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
2403 version
2404 ".tar.bz2"))
fdf359f8 2405 (file-name (string-append name "-" version ".tar.bz2"))
57238ff2
RW
2406 (sha256
2407 (base32
4bee557d 2408 "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294"))))
57238ff2 2409 (build-system gnu-build-system)
4bee557d
TGR
2410 (arguments
2411 `(#:tests? #f ; no check target
2412 #:phases
2413 (modify-phases %standard-phases
2414 (add-after 'unpack 'skip-jni-installation
2415 ;; ‘make install’ unconditionally installs librubberband-jni.so,
2416 ;; which is never built by ‘make all’. Skip it.
2417 (lambda _
2418 (substitute* "Makefile.in"
2419 ((".*cp -f \\$\\(JNI_TARGET\\).*") ""))
2420 #t)))))
57238ff2
RW
2421 (inputs
2422 `(("ladspa" ,ladspa)
2423 ("libsamplerate" ,libsamplerate)
2424 ("vamp" ,vamp)))
2425 (native-inputs
2426 `(("pkg-config" ,pkg-config)))
20377e4a 2427 (home-page "https://breakfastquay.com/rubberband/")
57238ff2
RW
2428 (synopsis "Audio time-stretching and pitch-shifting library")
2429 (description
2430 "Rubber Band is a library and utility program that permits changing the
2431tempo and pitch of an audio recording independently of one another.")
2432 (license license:gpl2+)))
2433
cc45cff8
RW
2434(define-public rtmidi
2435 (package
2436 (name "rtmidi")
bcdf11d6 2437 (version "4.0.0")
cc45cff8 2438 (source (origin
bcdf11d6
PL
2439 (method url-fetch)
2440 (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi"
2441 "/release/rtmidi-" version ".tar.gz"))
2442 (file-name (string-append "rtmidi-" version ".tar.gz"))
cc45cff8
RW
2443 (sha256
2444 (base32
bcdf11d6 2445 "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p"))))
cc45cff8 2446 (build-system gnu-build-system)
cc45cff8
RW
2447 (inputs
2448 `(("jack" ,jack-1)
2449 ("alsa-lib" ,alsa-lib)))
2450 (native-inputs
2451 `(("autoconf" ,autoconf)
2452 ("automake" ,automake)
2453 ("libtool" ,libtool)
2454 ("pkg-config" ,pkg-config)))
bcdf11d6 2455 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
cc45cff8
RW
2456 (synopsis "Cross-platform MIDI library for C++")
2457 (description
2458 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2459classes) that provide a common cross-platform API for realtime MIDI
2460input/output.")
2461 (license license:expat)))
2462
5279eb6f
RW
2463(define-public sratom
2464 (package
2465 (name "sratom")
9dd6b8d1 2466 (version "0.6.4")
5279eb6f 2467 (source (origin
95f6e6da
MB
2468 (method url-fetch)
2469 (uri (string-append "https://download.drobilla.net/sratom-"
2470 version ".tar.bz2"))
2471 (sha256
2472 (base32
2473 "0vh0biy3ngpzzgdml309c2mqz8xq9q0hlblczb4c6alhp0a8yv0l"))))
5279eb6f 2474 (build-system waf-build-system)
95f6e6da 2475 (arguments `(#:tests? #f)) ;no check target
6e0b18bf
MB
2476 (propagated-inputs
2477 ;; In Requires of sratom-0.pc.
5279eb6f
RW
2478 `(("lv2" ,lv2)
2479 ("serd" ,serd)
2480 ("sord" ,sord)))
2481 (native-inputs
2482 `(("pkg-config" ,pkg-config)))
0d0252e4 2483 (home-page "https://drobilla.net/software/sratom/")
5279eb6f
RW
2484 (synopsis "Library for serialising LV2 atoms to/from RDF")
2485 (description
2486 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2487the Turtle syntax.")
2488 (license license:isc)))
f3ab6ad3
RW
2489
2490(define-public suil
2491 (package
2492 (name "suil")
9bc06860 2493 (version "0.10.6")
f3ab6ad3 2494 (source (origin
8fadac95
TGR
2495 (method url-fetch)
2496 (uri (string-append "https://download.drobilla.net/suil-"
2497 version ".tar.bz2"))
2498 (sha256
2499 (base32
9bc06860 2500 "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06"))))
f3ab6ad3 2501 (build-system waf-build-system)
9f64f7e6 2502 (arguments
0fe041bd 2503 `(#:tests? #f)) ;no check target
f3ab6ad3
RW
2504 (inputs
2505 `(("lv2" ,lv2)
a00403c6
RW
2506 ("gtk+" ,gtk+-2)
2507 ("gtk+" ,gtk+)
9f64f7e6 2508 ("qt" ,qtbase)))
f3ab6ad3
RW
2509 (native-inputs
2510 `(("pkg-config" ,pkg-config)))
0d0252e4 2511 (home-page "https://drobilla.net/software/suil/")
f3ab6ad3
RW
2512 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2513 (description
2514 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2515
2516Suil makes it possible to load a UI of a toolkit in a host using another
2517toolkit. The API is designed such that hosts do not need to explicitly
2518support specific toolkits – if Suil supports a particular toolkit, then UIs in
2519that toolkit will work in all hosts that use Suil automatically.
2520
a00403c6 2521Suil currently supports every combination of Gtk, Qt, and X11.")
f3ab6ad3 2522 (license license:isc)))
db46f2fc 2523
9ffee457
RW
2524(define-public timidity++
2525 (package
2526 (name "timidity++")
2527 (version "2.14.0")
2528 (source (origin
2529 (method url-fetch)
de67e922
LF
2530 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2531 "/TiMidity++-" version
2532 "/TiMidity++-" version ".tar.bz2"))
9ffee457
RW
2533 (sha256
2534 (base32
2535 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2536 (build-system gnu-build-system)
2537 (arguments
2538 '(#:configure-flags
2539 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2540 "--enable-ncurses"
2541 "--enable-server"
2542 "--enable-alsaseq"
2543 (string-append "--with-default-path="
2544 (assoc-ref %outputs "out") "/etc/timidity"))
2545 #:phases
dc1d3cde
KK
2546 (modify-phases %standard-phases
2547 (add-after 'install 'install-config
2548 (lambda _
2549 (let ((out (string-append (assoc-ref %outputs "out")
2550 "/etc/timidity")))
2551 (mkdir-p out)
2552 (call-with-output-file
2553 (string-append out "/timidity.cfg")
2554 (lambda (port)
2555 (format port (string-append "source "
2556 (assoc-ref %build-inputs "freepats")
2557 "/share/freepats/freepats.cfg")))))
2558 #t)))))
9ffee457
RW
2559 (inputs
2560 `(("alsa-lib" ,alsa-lib)
2561 ("ao" ,ao)
2562 ("flac" ,flac)
2563 ("jack" ,jack-1)
2564 ("libogg" ,libogg)
3065bf8a 2565 ("libvorbis" ,libvorbis)
9ffee457
RW
2566 ("speex" ,speex)
2567 ("ncurses" ,ncurses)
2568 ("freepats" ,freepats)))
2569 (native-inputs
2570 `(("pkg-config" ,pkg-config)))
2571 (home-page "http://timidity.sourceforge.net/")
2572 (synopsis "Software synthesizer for playing MIDI files")
2573 (description
2574 "TiMidity++ is a software synthesizer. It can play MIDI files by
2575converting them into PCM waveform data; give it a MIDI data along with digital
2576instrument data files, then it synthesizes them in real-time, and plays. It
2577can not only play sounds, but also can save the generated waveforms into hard
2578disks as various audio file formats.")
2579 (license license:gpl2+)))
2580
db46f2fc
RW
2581(define-public vamp
2582 (package
2583 (name "vamp")
b1fb59d3 2584 (version "2.6")
db46f2fc
RW
2585 (source (origin
2586 (method url-fetch)
2587 (uri (string-append
2588 "https://code.soundsoftware.ac.uk"
494e9b91 2589 "/attachments/download/1520/vamp-plugin-sdk-"
b1fb59d3 2590 version ".tar.gz"))
9002e17c
TUBK
2591 (sha256
2592 (base32
494e9b91 2593 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
db46f2fc 2594 (build-system gnu-build-system)
9002e17c
TUBK
2595 (arguments
2596 `(#:tests? #f ; no check target
2597 #:phases
dc1d3cde
KK
2598 (modify-phases %standard-phases
2599 (add-after 'install 'remove-libvamp-hostsdk.la
2600 (lambda* (#:key outputs #:allow-other-keys)
2601 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2602 (for-each delete-file
2603 (let ((out (assoc-ref outputs "out")))
2604 (list (string-append out "/lib/libvamp-sdk.la")
2605 (string-append out "/lib/libvamp-hostsdk.la"))))
4f27a333 2606 #t)))))
db46f2fc
RW
2607 (inputs
2608 `(("libsndfile" ,libsndfile)))
2609 (native-inputs
2610 `(("pkg-config" ,pkg-config)))
50a67a46 2611 (home-page "https://vamp-plugins.org")
db46f2fc
RW
2612 (synopsis "Modular and extensible audio processing system")
2613 (description
2614 "Vamp is an audio processing plugin system for plugins that extract
2615descriptive information from audio data — typically referred to as audio
2616analysis plugins or audio feature extraction plugins.")
2617 (license
2618 (license:x11-style
2619 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
9f1cdd9d
TUBK
2620
2621(define-public libsbsms
2622 (package
2623 (name "libsbsms")
2624 (version "2.0.2")
2625 (source
2626 (origin
2627 (method url-fetch)
2628 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2629 "/libsbsms-" version ".tar.gz"))
2630 (sha256
2631 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2632 (build-system gnu-build-system)
2633 (native-inputs `(("automake" ,automake)))
2634 (arguments
476b2877
MW
2635 `(#:configure-flags
2636 ;; Disable the use of SSE unless on x86_64.
2637 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2638 (%current-system))))
2639 ''("--disable-sse")
2640 ''())
2641 #:phases
09c414d8
MW
2642 (modify-phases %standard-phases
2643 (add-after
2644 'unpack 'fix-ar-lib-path
2645 (lambda* (#:key inputs #:allow-other-keys)
2646 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2647 (delete-file "ar-lib")
2648 (symlink
2649 (string-append (assoc-ref inputs "automake") "/share/automake-"
2650 ,(package-version automake) "/ar-lib")
ee527187
MW
2651 "ar-lib")
2652 #t)))))
9f1cdd9d
TUBK
2653 (home-page "http://sbsms.sourceforge.net/")
2654 (synopsis "Library for time stretching and pitch scaling of audio")
2655 (description
2656 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2657stretching and pitch scaling of audio. This package contains the library.")
2658 ;; There is no explicit declaration of a license, but a COPYING file
2659 ;; containing gpl2.
2660 (license license:gpl2)))
754a98ae 2661
01b90919
SB
2662(define-public wavpack
2663 (package
2664 (name "wavpack")
638c45ed 2665 (version "5.2.0")
01b90919
SB
2666 (source (origin
2667 (method url-fetch)
2668 (uri (string-append "http://www.wavpack.com/"
638c45ed 2669 "wavpack-" version ".tar.xz"))
01b90919
SB
2670 (sha256
2671 (base32
638c45ed 2672 "1qvpvfx30kvrkw7y1g6r8xj109wszg1z0qmkfm17wf3flb7v3rbp"))))
01b90919 2673 (build-system gnu-build-system)
08b7a278
MB
2674 (arguments
2675 '(#:configure-flags '("--disable-static")))
01b90919
SB
2676 (home-page "http://www.wavpack.com/")
2677 (synopsis "Hybrid lossless audio codec")
2678 (description
2679 "WavPack is an audio compression format with lossless, lossy and hybrid
2680compression modes. This package contains command-line programs and library to
2681encode and decode wavpack files.")
2682 (license license:bsd-3)))
2683
a176dd7e
SB
2684(define-public libmodplug
2685 (package
2686 (name "libmodplug")
06446a7d 2687 (version "0.8.9.0")
a176dd7e
SB
2688 (source (origin
2689 (method url-fetch)
2690 (uri (string-append
0f971a04 2691 "mirror://sourceforge/modplug-xmms/"
a176dd7e
SB
2692 name "/" version "/" name "-" version ".tar.gz"))
2693 (sha256
2694 (base32
06446a7d 2695 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
a176dd7e
SB
2696 (build-system gnu-build-system)
2697 (home-page "http://modplug-xmms.sourceforge.net/")
2698 (synopsis "Mod file playing library")
2699 (description
2700 "Libmodplug renders mod music files as raw audio data, for playing or
2701conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2702supported. Optional features include high-quality resampling, bass expansion,
2703surround and reverb.")
2704 (license license:public-domain)))
2705
b97b5cda
SB
2706(define-public libxmp
2707 (package
2708 (name "libxmp")
2784fca0 2709 (version "4.4.1")
b97b5cda
SB
2710 (source (origin
2711 (method url-fetch)
de67e922 2712 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
b97b5cda
SB
2713 name "-" version ".tar.gz"))
2714 (sha256
2715 (base32
2784fca0 2716 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
b97b5cda
SB
2717 (build-system gnu-build-system)
2718 (home-page "http://xmp.sourceforge.net/")
2719 (synopsis "Module player library")
2720 (description
2721 "Libxmp is a library that renders module files to PCM data. It supports
2722over 90 mainstream and obscure module formats including Protracker (MOD),
2723Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2724 (license license:lgpl2.1+)))
2725
3ec4bba4
SB
2726(define-public xmp
2727 (package
2728 (name "xmp")
1a79d476 2729 (version "4.1.0")
3ec4bba4
SB
2730 (source (origin
2731 (method url-fetch)
de67e922 2732 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3ec4bba4
SB
2733 name "-" version ".tar.gz"))
2734 (sha256
2735 (base32
1a79d476 2736 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3ec4bba4
SB
2737 (build-system gnu-build-system)
2738 (native-inputs
2739 `(("pkg-config" ,pkg-config)))
2740 (inputs
2741 `(("libxmp" ,libxmp)
2742 ("pulseaudio" ,pulseaudio)))
2743 (home-page "http://xmp.sourceforge.net/")
2744 (synopsis "Extended module player")
2745 (description
2746 "Xmp is a portable module player that plays over 90 mainstream and
2747obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2748Tracker 3 S3M and Impulse Tracker IT files.")
2749 (license license:gpl2+)))
2750
754a98ae
TUBK
2751(define-public soundtouch
2752 (package
2753 (name "soundtouch")
d87d2567 2754 (version "2.1.2")
754a98ae
TUBK
2755 (source
2756 (origin
55036ddc
TGR
2757 (method git-fetch)
2758 (uri (git-reference
2759 (url "https://gitlab.com/soundtouch/soundtouch.git")
2760 (commit version)))
2761 (file-name (git-file-name name version))
754a98ae 2762 (sha256
d87d2567 2763 (base32 "174wgm3s0inmbnkrlnspxjwm2014qhjhkbdqa5r8rbfi0nzqxzsz"))))
754a98ae
TUBK
2764 (build-system gnu-build-system)
2765 (native-inputs
2766 `(("autoconf" ,autoconf)
2767 ("automake" ,automake)
2768 ("libtool" ,libtool)
2769 ("file" ,file)))
c93bd94c 2770 (home-page "https://www.surina.net/soundtouch/")
754a98ae
TUBK
2771 (synopsis
2772 "Audio processing library for changing tempo, pitch and playback rate")
2773 (description
2774 "SoundTouch is an audio processing library for changing the tempo, pitch
2775and playback rates of audio streams or audio files. It is intended for
2776application developers writing sound processing tools that require tempo/pitch
2777control functionality, or just for playing around with the sound effects.")
2778 (license license:lgpl2.1+)))
4bddd14c 2779
d739f481
AK
2780(define-public sox
2781 (package
2782 (name "sox")
2783 (version "14.4.2")
2784 (source (origin
2785 (method url-fetch)
de67e922
LF
2786 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2787 name "-" version ".tar.bz2"))
d739f481
AK
2788 (sha256
2789 (base32
2790 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2791 (build-system gnu-build-system)
2792 (arguments
2793 '(#:configure-flags
2794 ;; The upstream asks to identify the distribution to diagnose SoX
2795 ;; bug reports.
2796 '("--with-distro=Guix System Distribution")))
2797 (native-inputs
2798 `(("pkg-config" ,pkg-config)))
2799 (inputs
2800 `(("alsa-lib" ,alsa-lib)
2801 ("ao" ,ao)
2802 ("flac" ,flac)
2803 ("lame" ,lame)
2804 ("libid3tag" ,libid3tag)
2805 ("libltdl" ,libltdl)
2806 ("libmad" ,libmad)
2807 ("libpng" ,libpng)
2808 ("libvorbis" ,libvorbis)
2809 ("pulseaudio" ,pulseaudio)))
2810 (home-page "http://sox.sourceforge.net")
2811 (synopsis "Sound processing utility")
2812 (description
2813 "SoX (Sound eXchange) is a command line utility that can convert
2814various formats of computer audio files to other formats. It can also
2815apply various effects to these sound files, and, as an added bonus, SoX
2816can play and record audio files.")
2817 ;; sox.c is distributed under GPL, while the files that make up
2818 ;; libsox are licensed under LGPL.
2819 (license (list license:gpl2+ license:lgpl2.1+))))
2820
4bddd14c
TUBK
2821(define-public soxr
2822 (package
2823 (name "soxr")
9e9a211f 2824 (version "0.1.3")
4bddd14c
TUBK
2825 (source
2826 (origin
2827 (method url-fetch)
2828 (uri
2829 (string-append "mirror://sourceforge/soxr/soxr-" version
2830 "-Source.tar.xz"))
2831 (sha256
9e9a211f 2832 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
4bddd14c
TUBK
2833 (build-system cmake-build-system)
2834 (arguments '(#:tests? #f)) ;no 'check' target
3b3b60d0 2835 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
4bddd14c
TUBK
2836 (synopsis "One-dimensional sample-rate conversion library")
2837 (description
2838 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2839conversion. It may be used, for example, to resample PCM-encoded audio.")
2840 (license license:lgpl2.1+)))
49f36708
TUBK
2841
2842(define-public twolame
2843 (package
2844 (name "twolame")
196e3579 2845 (version "0.4.0")
49f36708
TUBK
2846 (source
2847 (origin
2848 (method url-fetch)
de67e922
LF
2849 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2850 "/twolame-" version ".tar.gz"))
49f36708 2851 (sha256
196e3579 2852 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
49f36708
TUBK
2853 (build-system gnu-build-system)
2854 (inputs
2855 `(("libsndfile" ,libsndfile)))
2856 (native-inputs
2857 `(("perl" ,perl)
2858 ("which" ,which))) ;used in tests/test.pl
2859 (home-page "http://www.twolame.org/")
2860 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2861 (description
2862 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2863tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2864portions of LAME.")
2865 (license license:lgpl2.1+)))
bd4464f2
TUBK
2866
2867(define-public portaudio
2868 (package
2869 (name "portaudio")
80420acb 2870 (version "190600.20161030")
bd4464f2
TUBK
2871 (source
2872 (origin
2873 (method url-fetch)
2874 (uri (string-append
2875 "http://www.portaudio.com/archives/pa_stable_v"
2876 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2877 ".tgz"))
2878 (sha256
80420acb 2879 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
fc1adab1 2880 (patches (search-patches "portaudio-audacity-compat.patch"))))
bd4464f2
TUBK
2881 (build-system gnu-build-system)
2882 (inputs
2883 ;; TODO: Add ASIHPI.
2884 `(("alsa-lib" ,alsa-lib)
bcbc02fd 2885 ("jack" ,jack-1)))
cdb4048d
RW
2886 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
2887 ;; files.
bd4464f2 2888 (native-inputs
b47be021
TUBK
2889 `(("autoconf" ,autoconf)
2890 ("automake" ,automake)
2891 ("libtool" ,libtool)
2892 ("pkg-config" ,pkg-config)))
86fded86 2893 (arguments
1ce6bfc2 2894 '(#:tests? #f ;no 'check' target
c9cd4a84 2895 #:parallel-build? #f ;fails on some systems
1ce6bfc2
NG
2896 #:configure-flags '("--with-pic"
2897 "--enable-cxx"
2898 ;; XXX: The following prevents a build error
2899 ;; because of missing depcomp when C++ bindings are
2900 ;; requested.
2901 "--disable-dependency-tracking")
86fded86
RW
2902 #:phases
2903 (modify-phases %standard-phases
2904 ;; This is needed for linking the static libraries
2905 (add-after 'unpack 'build-only-position-independent-code
2906 (lambda _
2907 (substitute* "configure.in"
2908 (("AC_PROG_LIBTOOL" m)
2909 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
2910 (delete-file "configure")
2911 #t))
2912 ;; Some headers are not installed by default, but are needed by
2913 ;; packages like Kaldi.
2914 (add-after 'install 'install-missing-headers
2915 (lambda* (#:key outputs #:allow-other-keys)
2916 (install-file "src/common/pa_ringbuffer.h"
2917 (string-append (assoc-ref outputs "out") "/include"))
2918 #t)))))
bd4464f2
TUBK
2919 (home-page "http://www.portaudio.com/")
2920 (synopsis "Audio I/O library")
2921 (description
2922 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2923to record and/or play sound using a callback function or a blocking read/write
2924interface.")
2925 (license license:expat)))
74bbf894 2926
fe73aef4
RW
2927(define-public qsynth
2928 (package
2929 (name "qsynth")
5e4cb92e 2930 (version "0.5.7")
fe73aef4
RW
2931 (source
2932 (origin
2933 (method url-fetch)
de67e922
LF
2934 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2935 "/qsynth-" version ".tar.gz"))
fe73aef4 2936 (sha256
5e4cb92e 2937 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
fe73aef4
RW
2938 (build-system gnu-build-system)
2939 (arguments
5e4cb92e 2940 `(#:tests? #f)) ; no "check" phase
598f6394 2941 (native-inputs
4ed4bb11
RW
2942 `(("qttools" ,qttools)
2943 ("pkg-config" ,pkg-config)))
fe73aef4 2944 (inputs
598f6394
DC
2945 `(("fluidsynth" ,fluidsynth)
2946 ("qtbase" ,qtbase)
2947 ("qtx11extras" ,qtx11extras)))
12c8c997 2948 (home-page "https://qsynth.sourceforge.io")
fe73aef4
RW
2949 (synopsis "Graphical user interface for FluidSynth")
2950 (description
2951 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2952synthesizer written in C++.")
2953 (license license:gpl2+)))
2954
55b596c3
TUBK
2955(define-public rsound
2956 (package
2957 (name "rsound")
2958 (version "1.1")
2959 (source
2960 (origin
458baefb
RW
2961 (method git-fetch)
2962 (uri (git-reference
2963 (url "https://github.com/Themaister/RSound.git")
2964 (commit (string-append "v" version))))
2965 (file-name (git-file-name name version))
55b596c3 2966 (sha256
458baefb 2967 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
55b596c3
TUBK
2968 (build-system gnu-build-system)
2969 (inputs
2970 `(("alsa-lib" ,alsa-lib)
276f49df 2971 ("jack" ,jack-1)
55b596c3
TUBK
2972 ("ao" ,ao)
2973 ("libsamplerate" ,libsamplerate)
2974 ("openal" ,openal)
2975 ("portaudio" ,portaudio)
2976 ("pulseaudio" ,pulseaudio)))
2977 (arguments
2978 '(#:phases
dc1d3cde
KK
2979 (modify-phases %standard-phases
2980 (replace 'configure
2981 (lambda* (#:key outputs #:allow-other-keys)
2982 (setenv "CC" "gcc")
c3d14484
TGR
2983 (invoke "./configure"
2984 (string-append "--prefix=" (assoc-ref outputs "out"))))))
55b596c3
TUBK
2985 ;; No 'check' target.
2986 #:tests? #f))
2987 (home-page "http://themaister.net/rsound.html")
2988 (synopsis "Networked audio system")
2989 (description
2990 "RSound allows you to send audio from an application and transfer it
2991directly to a different computer on your LAN network. It is an audio daemon
2992with a much different focus than most other audio daemons.")
2993 (license license:gpl3+)))
2994
caf9055c
RW
2995(define-public xjackfreak
2996 (package
2997 (name "xjackfreak")
2998 (version "1.0")
2999 (source (origin
8e5995e3
RW
3000 (method git-fetch)
3001 (uri (git-reference
3002 (url "https://github.com/johnhldavis/xjackfreak.git")
3003 (commit (string-append "v" version))))
3004 (file-name (git-file-name name version))
caf9055c
RW
3005 (sha256
3006 (base32
8e5995e3 3007 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
caf9055c
RW
3008 (build-system gnu-build-system)
3009 (arguments
3010 `(#:make-flags
3011 (list (string-append "docdir=" (assoc-ref %outputs "out")
3012 "/share/doc/xjackfreak"))))
3013 (inputs
3014 `(("jack" ,jack-1)
3015 ("libx11" ,libx11)
3016 ("libxt" ,libxt)
3017 ("libxext" ,libxext)))
3018 (native-inputs
3019 `(("pkg-config" ,pkg-config)))
3020 (home-page "https://github.com/johnhldavis/xjackfreak")
3021 (synopsis "JACK audio frequency analyzer and display")
3022 (description
3023 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3024Connection Kit. It can display the FFT of any input, modify it and output the
3025result.")
3026 (license license:gpl3+)))
3027
d73f7909
RW
3028(define-public zita-convolver
3029 (package
3030 (name "zita-convolver")
1c1ce52a 3031 (version "4.0.3")
d73f7909
RW
3032 (source (origin
3033 (method url-fetch)
3034 (uri (string-append
3035 "http://kokkinizita.linuxaudio.org"
3036 "/linuxaudio/downloads/zita-convolver-"
3037 version ".tar.bz2"))
29e255ca
SB
3038 (snippet
3039 ;; Don't optimize for a specific processor architecture.
6cbee49d 3040 '(begin
1c1ce52a 3041 (substitute* "source/Makefile"
6cbee49d
MW
3042 (("^CXXFLAGS \\+= -march=native") ""))
3043 #t))
29e255ca 3044 (modules '((guix build utils)))
d73f7909
RW
3045 (sha256
3046 (base32
1c1ce52a 3047 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
d73f7909
RW
3048 (build-system gnu-build-system)
3049 (arguments
3050 `(#:tests? #f ; no "check" target
1c1ce52a
AT
3051 #:make-flags
3052 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3053 (string-append "SUFFIX="))
d73f7909 3054 #:phases
dc1d3cde
KK
3055 (modify-phases %standard-phases
3056 (add-after 'unpack 'patch-makefile-and-enter-directory
3057 (lambda _
1c1ce52a 3058 (substitute* "source/Makefile"
dc1d3cde
KK
3059 (("ldconfig") "true")
3060 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1c1ce52a 3061 (chdir "source")
ee527187 3062 #t))
4f27a333
MB
3063 (add-after 'install 'install-symlink
3064 (lambda _
3065 (symlink "libzita-convolver.so"
3066 (string-append (assoc-ref %outputs "out")
1c1ce52a 3067 "/lib/libzita-convolver.so.4"))
ee527187 3068 #t))
d73f7909 3069 ;; no configure script
4f27a333 3070 (delete 'configure))))
d73f7909 3071 (inputs `(("fftwf" ,fftwf)))
4817bb92 3072 (home-page "https://kokkinizita.linuxaudio.org")
d73f7909
RW
3073 (synopsis "Fast, partitioned convolution engine library")
3074 (description
3075 "Zita convolver is a C++ library providing a real-time convolution
3076engine.")
3077 (license license:gpl3+)))
3078
b7ed6784
RW
3079(define-public zita-resampler
3080 (package
3081 (name "zita-resampler")
3082 (version "1.3.0")
3083 (source (origin
3084 (method url-fetch)
3085 (uri (string-append
3086 "http://kokkinizita.linuxaudio.org"
3087 "/linuxaudio/downloads/zita-resampler-"
3088 version ".tar.bz2"))
6dff4955
SB
3089 (snippet
3090 ;; Don't optimize for a specific processor architecture.
6cbee49d
MW
3091 '(begin
3092 (substitute* '("apps/Makefile" "libs/Makefile")
3093 (("^CXXFLAGS \\+= -march=native") ""))
3094 #t))
6dff4955 3095 (modules '((guix build utils)))
b7ed6784
RW
3096 (sha256
3097 (base32
3098 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
3099 (build-system gnu-build-system)
3100 (arguments
3101 `(#:tests? #f ; no "check" target
3102 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3103 #:phases
3104 (modify-phases %standard-phases
3105 (add-after
3106 'unpack 'patch-makefile-and-enter-directory
3107 (lambda _
3108 (substitute* "libs/Makefile"
3109 (("ldconfig") "true")
3110 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3111 (chdir "libs")
3112 #t))
3113 (add-after
3114 'install 'install-symlink
3115 (lambda _
3116 (symlink "libzita-resampler.so"
3117 (string-append (assoc-ref %outputs "out")
ee527187
MW
3118 "/lib/libzita-resampler.so.1"))
3119 #t))
b7ed6784
RW
3120 ;; no configure script
3121 (delete 'configure))))
4817bb92 3122 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
b7ed6784
RW
3123 (synopsis "C++ library for resampling audio signals")
3124 (description
3125 "Libzita-resampler is a C++ library for resampling audio signals. It is
3126designed to be used within a real-time processing context, to be fast, and to
3127provide high-quality sample rate conversion.")
3128 (license license:gpl3+)))
3129
74bbf894
RW
3130(define-public zita-alsa-pcmi
3131 (package
3132 (name "zita-alsa-pcmi")
3133 (version "0.2.0")
3134 (source (origin
3135 (method url-fetch)
3136 (uri (string-append
3137 "http://kokkinizita.linuxaudio.org"
3138 "/linuxaudio/downloads/zita-alsa-pcmi-"
3139 version ".tar.bz2"))
3140 (sha256
3141 (base32
9569dfc8 3142 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
74bbf894
RW
3143 (build-system gnu-build-system)
3144 (arguments
3145 `(#:tests? #f ; no "check" target
3146 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3147 #:phases
dc1d3cde
KK
3148 (modify-phases %standard-phases
3149 (add-after 'unpack 'patch-makefile-and-enter-directory
3150 (lambda _
3151 (substitute* "libs/Makefile"
3152 (("ldconfig") "true")
3153 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3154 (chdir "libs")
3155 #t))
3156 (add-after 'install 'install-symlink
3157 (lambda _
3158 (symlink "libzita-alsa-pcmi.so"
3159 (string-append (assoc-ref %outputs "out")
ee527187
MW
3160 "/lib/libzita-alsa-pcmi.so.0"))
3161 #t))
dc1d3cde
KK
3162 ;; no configure script
3163 (delete 'configure))))
74bbf894
RW
3164 (inputs
3165 `(("alsa-lib" ,alsa-lib)
3166 ("fftw" ,fftw)))
4817bb92 3167 (home-page "https://kokkinizita.linuxaudio.org")
74bbf894
RW
3168 (synopsis "C++ wrapper around the ALSA API")
3169 (description
3170 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3171access to ALSA PCM devices, taking care of the many functions required to
3172open, initialise and use a hw: device in mmap mode, and providing floating
3173point audio data.")
3174 (license license:gpl3+)))
6da16993
LF
3175
3176(define-public cuetools
3177 (package
3178 (name "cuetools")
3179 (version "1.4.1")
3180 (source (origin
4289a306
RW
3181 (method git-fetch)
3182 (uri (git-reference
3183 (url "https://github.com/svend/cuetools.git")
3184 (commit version)))
3185 (file-name (git-file-name name version))
6da16993
LF
3186 (sha256
3187 (base32
4289a306 3188 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
6da16993 3189 (build-system gnu-build-system)
4289a306 3190 ;; The source checkout is not bootstrapped.
6da16993
LF
3191 (native-inputs
3192 `(("autoconf" ,autoconf)
3193 ("automake" ,automake)
3194 ("flex" ,flex)
3195 ("bison" ,bison)))
3196 (synopsis "Cue and toc file parsers and utilities")
3197 (description "Cuetools is a set of programs that are useful for manipulating
3198and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3199files are a way to represent the layout of a data or audio CD in a
3200machine-readable ASCII format.")
3201 (home-page "https://github.com/svend/cuetools")
3202 (license license:gpl2+)))
6819a8dd
LF
3203
3204(define-public shntool
3205 (package
3206 (name "shntool")
3207 (version "3.0.10")
3208 (source (origin
3209 (method url-fetch)
3210 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
3211 "shntool-" version ".tar.gz"))
3212 (sha256
3213 (base32
3214 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3215 (build-system gnu-build-system)
3216 (synopsis "WAVE audio data processing tool")
3217 (description "shntool is a multi-purpose WAVE data processing and reporting
3218utility. File formats are abstracted from its core, so it can process any file
3219that contains WAVE data, compressed or not---provided there exists a format
d5b357ec
LF
3220module to handle that particular file type. It can also generate CUE files, and
3221use them split WAVE data into multiple files.")
6819a8dd 3222 (home-page "http://etree.org/shnutils/shntool/")
6ac2af78
LF
3223 ;; 'install-sh' bears the x11 license
3224 (license (list license:gpl2+ license:x11))))
680b54c5
DT
3225
3226(define-public dcadec
3227 (package
3228 (name "dcadec")
3229 (version "0.2.0")
3230 (source (origin
b249ff5d
RW
3231 (method git-fetch)
3232 (uri (git-reference
3233 (url "https://github.com/foo86/dcadec.git")
3234 (commit (string-append "v" version))))
3235 (file-name (git-file-name name version))
680b54c5
DT
3236 (sha256
3237 (base32
b249ff5d 3238 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
680b54c5
DT
3239 (build-system gnu-build-system)
3240 (arguments
3241 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3242 '(#:tests? #f
3243 #:make-flags
3244 (list "CC=gcc"
3245 ;; Build shared library.
3246 "CONFIG_SHARED=1"
3247 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3248 ;; Set proper runpath.
3249 (string-append "LDFLAGS=-Wl,-rpath="
3250 (assoc-ref %outputs "out")
3251 "/lib"))
3252 #:phases
3253 (modify-phases %standard-phases
3254 ;; No configure script, just a hand-written Makefile.
3255 (delete 'configure))))
3256 (synopsis "DTS Coherent Acoustics decoder")
3257 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3258with support for HD extensions.")
3259 (home-page "https://github.com/foo86/dcadec")
3260 (license license:lgpl2.1+)))
e87c7ec2
AG
3261
3262(define-public bs1770gain
3263 (package
3264 (name "bs1770gain")
39c746f0 3265 (version "0.6.5")
e87c7ec2
AG
3266 (source
3267 (origin
3268 (method url-fetch)
3269 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3270 version "/bs1770gain-" version ".tar.gz"))
3271 (sha256
39c746f0 3272 (base32 "15nvlh9bg0a52cpg2mii17mlzmxszwivjjalbb4np1v5nj8l5fk6"))
17098a49
LF
3273 (modules '((guix build utils)))
3274 (snippet
3275 '(begin
3276 ;; XXX
39c746f0
TGR
3277 (substitute* (find-files "." "\\.[ch]$")
3278 (("^ \\* N..o.*") ""))
a2931b14 3279 (substitute* "libbg/bgx.c"
39c746f0
TGR
3280 (("#define BG.* ") "#define BS ")
3281 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
a2931b14
TGR
3282 (("\"( #|N).*\"") "\"\""))
3283 (substitute* (list "config.h"
3284 "configure.ac"
3285 "configure")
3286 (("https?://bs1770gain[^/]*/")
2777dc75
TGR
3287 "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html"))
3288 #t))))
e87c7ec2
AG
3289 (build-system gnu-build-system)
3290 (inputs `(("ffmpeg" ,ffmpeg)
3291 ("sox" ,sox)))
17098a49 3292 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
e87c7ec2
AG
3293 (synopsis "Tool to adjust loudness of media files")
3294 (description
3295 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3296flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3297loudness of audio and video files to the same level.")
3298 (license license:gpl2+)))
eb64bde1
EE
3299
3300(define-public filteraudio
3301 (let ((revision "1")
3302 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3303 (package
3304 (name "filteraudio")
3305 (version (string-append "0.0.0-" revision "."
3306 (string-take commit 7)))
3307 (source
3308 (origin
3309 (method git-fetch)
3310 (uri (git-reference
3311 (url "https://github.com/irungentoo/filter_audio.git")
3312 (commit commit)))
3313 (file-name (string-append name "-" version "-checkout"))
3314 (sha256
3315 (base32
3316 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3317 (build-system gnu-build-system)
3318 (arguments
3319 '(#:make-flags (list (string-append "PREFIX=" %output)
3320 "CC=gcc")
3321 #:tests? #f ; No tests
3322 #:phases
3323 (modify-phases %standard-phases
3324 ;; No configure script
3325 (delete 'configure))))
3326 (synopsis "Lightweight audio filtering library")
3327 (description "An easy to use audio filtering library made from webrtc
3328code, used in @code{libtoxcore}.")
3329 (home-page "https://github.com/irungentoo/filter_audio")
3330 (license license:bsd-3))))
9a4c032c
LG
3331
3332(define-public gsm
3333 (package
3334 (name "gsm")
aabe29af 3335 (version "1.0.18")
9a4c032c
LG
3336 (source
3337 (origin
3338 (method url-fetch)
3339 (uri
3340 (string-append "http://www.quut.com/" name "/" name
3341 "-" version ".tar.gz"))
3342 (sha256
3343 (base32
aabe29af 3344 "041amvpz8cvxykl3pwqldrzxligmmzcg8ncdnxbg32rlqf3q1xh4"))))
9a4c032c
LG
3345 (build-system gnu-build-system)
3346 (arguments
3347 `(#:test-target "tst"
3348 #:phases
3349 (modify-phases %standard-phases
3350 (add-before 'install 'pre-install
3351 (lambda _
3352 (let ((out (assoc-ref %outputs "out")))
3353 (substitute* "Makefile"
3354 (("INSTALL_ROOT\t=")
3355 (string-append "INSTALL_ROOT\t=\t" out)))
3356 (mkdir-p (string-append out "/inc"))
3357 (mkdir-p (string-append out "/man"))
3358 (mkdir-p (string-append out "/man/man1"))
3359 (mkdir-p (string-append out "/man/man3"))
3360 (mkdir-p (string-append out "/bin"))
ee527187
MW
3361 (mkdir-p (string-append out "/lib")))
3362 #t))
9a4c032c
LG
3363 (add-after 'install 'post-install
3364 (lambda _
3365 (let ((out (assoc-ref %outputs "out")))
3366 (rename-file (string-append out "/inc")
3367 (string-append out "/include"))
3368 (mkdir-p (string-append out "/include/gsm"))
3369 (copy-recursively "inc"
ee527187
MW
3370 (string-append out "/include/gsm")))
3371 #t))
aabe29af 3372 (delete 'configure)))) ; no configure script
9a4c032c
LG
3373 (synopsis "GSM 06.10 lossy speech compression library")
3374 (description "This C library provides an encoder and a decoder for the GSM
337506.10 RPE-LTP lossy speech compression algorithm.")
3376 (home-page "http://quut.com/gsm/")
3377 (license (license:non-copyleft "file://COPYRIGHT"))))
84d9abe4
DM
3378
3379(define-public python-pyalsaaudio
3380 (package
3381 (name "python-pyalsaaudio")
3382 (version "0.8.4")
3383 (source (origin
3384 (method url-fetch)
3385 (uri (pypi-uri "pyalsaaudio" version))
3386 (sha256
3387 (base32
3388 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3389 (build-system python-build-system)
3390 (arguments
3391 `(#:tests? #f)) ; tests require access to ALSA devices.
3392 (inputs
3393 `(("alsa-lib" ,alsa-lib)))
3394 (home-page "http://larsimmisch.github.io/pyalsaaudio/")
3395 (synopsis "ALSA wrappers for Python")
3396 (description
3397 "This package contains wrappers for accessing the ALSA API from Python.
3398It is currently fairly complete for PCM devices, and has some support for
3399mixers.")
3400 (license license:psfl)))
3401
3402(define-public python2-pyalsaaudio
3403 (package-with-python2 python-pyalsaaudio))
d0c8e524 3404
dba33ca3
RW
3405(define-public bluez-alsa
3406 (package
3407 (name "bluez-alsa")
9f9520a1 3408 (version "2.0.0")
dba33ca3
RW
3409 (source (origin
3410 ;; The tarballs are mere snapshots and don't contain a
3411 ;; bootstrapped build system.
3412 (method git-fetch)
3413 (uri (git-reference
3414 (url "https://github.com/Arkq/bluez-alsa.git")
3415 (commit (string-append "v" version))))
9f9520a1 3416 (file-name (git-file-name name version))
dba33ca3
RW
3417 (sha256
3418 (base32
9f9520a1 3419 "08mppgnjf1j2733bk9yf0cny6rfxxwiys0s62lz2zd2lpdl6d9lz"))))
dba33ca3 3420 (build-system gnu-build-system)
9f9520a1
RW
3421 (arguments
3422 `(#:configure-flags
3423 (list (string-append "--with-alsaplugindir="
3424 (assoc-ref %outputs "out")
3425 "/lib/alsa-lib")
3426 (string-append "--with-dbusconfdir="
3427 (assoc-ref %outputs "out")
8f2e2120 3428 "/etc/dbus-1/system.d"))))
dba33ca3
RW
3429 (native-inputs
3430 `(("autoconf" ,autoconf)
3431 ("automake" ,automake)
3432 ("libtool" ,libtool)
3433 ("pkg-config" ,pkg-config)))
3434 (inputs
3435 `(("alsa-lib" ,alsa-lib)
3436 ("bluez" ,bluez)
9f9520a1 3437 ("dbus" ,dbus)
dba33ca3
RW
3438 ("glib" ,glib)
3439 ("libbsd" ,libbsd)
3440 ("ncurses" ,ncurses)
3441 ("ortp" ,ortp)
3442 ("sbc" ,sbc)))
3443 (home-page "https://github.com/Arkq/bluez-alsa")
3444 (synopsis "Bluetooth ALSA backend")
3445 (description "This project is a rebirth of a direct integration between
3446Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
3447in favor of 3rd party audio applications. From now on, Bluez acts as a
3448middleware between an audio application, which implements Bluetooth audio
3449profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
3450audio profiles in Bluez, so in theory every Bluetooth device (with audio
3451capabilities) can be connected. In order to access the audio stream, one has
3452to connect to the ALSA PCM device called @code{bluealsa}. The device is based
3453on the ALSA software PCM plugin.")
3454 (license license:expat)))
3455
d0c8e524
SB
3456(define-public snd
3457 (package
3458 (name "snd")
b1d13e40 3459 (version "19.9")
d0c8e524
SB
3460 (source (origin
3461 (method url-fetch)
3462 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
3463 "snd-" version ".tar.gz"))
3464 (sha256
3465 (base32
b1d13e40 3466 "13s8fahpsjygjdrcwmprcrz23ny3klaj2rh2xzdv3bfs69gxvhys"))))
d0c8e524
SB
3467 (build-system glib-or-gtk-build-system)
3468 (arguments
4ae9274a 3469 `(#:tests? #f ; no tests
d0c8e524
SB
3470 #:out-of-source? #f ; for the 'install-doc' phase
3471 #:configure-flags
3472 (let* ((out (assoc-ref %outputs "out"))
94774876
TGR
3473 (docdir (string-append out "/share/doc/"
3474 ,name "-" ,version)))
d0c8e524
SB
3475 (list "--with-alsa" "--with-jack" "--with-gmp"
3476 (string-append "--with-doc-dir=" docdir)))
3477 #:phases
3478 (modify-phases %standard-phases
3479 (add-after 'install 'install-doc
3480 (lambda* (#:key outputs #:allow-other-keys)
3481 (let* ((out (assoc-ref outputs "out"))
4ae9274a
TGR
3482 (doc (string-append out "/share/doc/"
3483 ,name "-" ,version)))
d0c8e524
SB
3484 (for-each
3485 (lambda (f)
4ae9274a 3486 (install-file f doc))
3ef664d0 3487 (find-files "." "\\.html$"))
4ae9274a 3488 (copy-recursively "pix" (string-append doc "/pix"))
d0c8e524
SB
3489 #t))))))
3490 (native-inputs
3491 `(("pkg-config" ,pkg-config)))
3492 (inputs
3493 `(("alsa-lib" ,alsa-lib)
3494 ("fftw" ,fftw)
3495 ("flac" ,flac)
3496 ("gmp" ,gmp)
3497 ("gsl" ,gsl)
3498 ("gtk+" ,gtk+)
3499 ("jack" ,jack-1)
3500 ("libsamplerate" ,libsamplerate)
3501 ("mpc" ,mpc)
3502 ("mpfr" ,mpfr)
3503 ("mpg123" ,mpg123)
3504 ("speex" ,speex)
3505 ("timidity++" ,timidity++)
3506 ("vorbis-tools" ,vorbis-tools)
3507 ("wavpack" ,wavpack)))
3508 (synopsis "Sound editor")
3509 (home-page "https://ccrma.stanford.edu/software/snd/")
3510 (description
3511 "Snd is a sound editor modelled loosely after Emacs. It can be
3512customized and extended using either the s7 Scheme implementation (included in
3513the Snd sources), Ruby, or Forth.")
3514 (license (license:non-copyleft "file://COPYING"))))
adedbe95 3515
cf31d5e1
RW
3516(define-public noise-repellent
3517 (package
3518 (name "noise-repellent")
3519 (version "0.1.4")
3520 (source (origin
3521 (method git-fetch)
3522 (uri (git-reference
3523 (url "https://github.com/lucianodato/noise-repellent.git")
3524 (commit version)))
3525 (file-name (string-append name "-" version "-checkout"))
3526 (sha256
3527 (base32
3528 "0rd3dlmk3vivjmcr6x2x860y0j1d49c2j95j6ny50v184mwvn11j"))))
3529 (build-system gnu-build-system)
3530 (arguments
3531 `(#:make-flags
3532 (list "CC=gcc"
3533 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3534 #:tests? #f ; there are none
3535 #:phases
3536 (modify-phases %standard-phases
3537 (delete 'configure))))
3538 (inputs
3539 `(("lv2" ,lv2)
3540 ("fftwf" ,fftwf)))
3541 (native-inputs
3542 `(("pkg-config" ,pkg-config)))
3543 (home-page "https://github.com/lucianodato/noise-repellent")
3544 (synopsis "LV2 plugin for broadband noise reduction")
3545 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
3546the following features:
3547
3548@enumerate
3549@item Spectral gating and spectral subtraction suppression rule
3550@item Adaptive and manual noise thresholds estimation
3551@item Adjustable noise floor
3552@item Adjustable offset of thresholds to perform over-subtraction
3553@item Time smoothing and a masking estimation to reduce artifacts
3554@item Basic onset detector to avoid transients suppression
3555@item Whitening of the noise floor to mask artifacts and to recover higher
3556 frequencies
3557@item Option to listen to the residual signal
3558@item Soft bypass
3559@item Noise profile saved with the session
3560@end enumerate
3561")
3562 (license license:lgpl3+)))
3563
adedbe95
OP
3564(define-public cli-visualizer
3565 (package
3566 (name "cli-visualizer")
e121cb87 3567 (version "1.8")
adedbe95
OP
3568 (source
3569 (origin
c2a2d364
RW
3570 (method git-fetch)
3571 (uri (git-reference
3572 (url "https://github.com/dpayne/cli-visualizer.git")
e121cb87 3573 (commit (string-append "v" version))))
c2a2d364 3574 (file-name (git-file-name name version))
adedbe95 3575 (sha256
e121cb87
TGR
3576 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
3577 (build-system cmake-build-system)
adedbe95 3578 (native-inputs
e121cb87
TGR
3579 ;; TODO: Try using the latest googletest for versions > 1.8.
3580 `( ;; ("googletest" ,googletest-1.8)
3581 ("which" ,which)))
adedbe95
OP
3582 (inputs
3583 `(("fftw" ,fftw)
adedbe95
OP
3584 ("ncurses" ,ncurses)
3585 ("pulseaudio" ,pulseaudio)))
3586 (arguments
e121cb87
TGR
3587 '(#:tests? #f
3588 ;; XXX Enable tests after patching them to use the system googletest.
3589 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
adedbe95
OP
3590 #:phases
3591 (modify-phases %standard-phases
e121cb87
TGR
3592 (add-after 'install 'install-examples
3593 (lambda* (#:key outputs #:allow-other-keys)
3594 (with-directory-excursion "../source/examples"
3595 (delete-file "mac_osx_config")
3596 (for-each (lambda (file)
3597 (install-file file
3598 (string-append
3599 (assoc-ref outputs "out")
3600 "/share/doc")))
3601 (find-files ".")))
adedbe95
OP
3602 #t)))))
3603 (home-page "https://github.com/dpayne/cli-visualizer/")
3604 (synopsis "Command-line audio visualizer")
3605 (description "@code{cli-visualizer} displays fast-Fourier
3606transforms (FFTs) of the sound being played, as well as other graphical
3607representations.")
3608 (license license:expat)))
c2c0d661
OP
3609
3610(define-public cava
3611 (package
3612 (name "cava")
042fa638 3613 (version "0.6.1")
c2c0d661 3614 (source (origin
a7fde1a8
RW
3615 (method git-fetch)
3616 (uri (git-reference
3617 (url "https://github.com/karlstav/cava.git")
3618 (commit version)))
3619 (file-name (git-file-name name version))
c2c0d661
OP
3620 (sha256
3621 (base32
a7fde1a8 3622 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
c2c0d661
OP
3623 (build-system gnu-build-system)
3624 (native-inputs
3625 `(("autoconf" ,autoconf)
3626 ("automake" ,automake)
3627 ("libtool" ,libtool)))
3628 (inputs
3629 `(("fftw" ,fftw)
3630 ("ncurses" ,ncurses)
3631 ("pulseaudio" ,pulseaudio)))
3632 (arguments
3633 `(#:configure-flags
3634 (list (string-append "PREFIX=" %output)
9e3e80ba 3635 (string-append "FONT_DIR=" %output "/share/consolefonts"))
c2c0d661
OP
3636 #:make-flags
3637 (let ((lib (string-append %output "/lib")))
3638 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
3639 #:phases
3640 (modify-phases %standard-phases
189be331 3641 (replace 'bootstrap
c2c0d661
OP
3642 (lambda* (#:key outputs #:allow-other-keys)
3643 (setenv "HOME" (getcwd))
3644 (invoke "sh" "autogen.sh")))
3645 (add-before 'build 'make-cava-ldflags
3646 (lambda* (#:key outputs #:allow-other-keys)
ee527187
MW
3647 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
3648 #t))
c2c0d661
OP
3649 (add-after 'install 'data
3650 (lambda* (#:key outputs #:allow-other-keys)
3651 (for-each (lambda (file)
3652 (install-file file
3653 (string-append (assoc-ref outputs "out")
3654 "/share/doc/examples")))
ee527187
MW
3655 (find-files "example_files"))
3656 #t)))))
c2c0d661
OP
3657 (home-page "https://karlstav.github.io/cava/")
3658 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
3659 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
3660using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
3661 (license license:expat)))
9073c875 3662
3663(define-public fluid-3
3664 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
3665 (package
3666 (name "fluid-3")
3667 (version "2.1")
3668 (source
3669 (origin
3670 (method url-fetch)
3671 ;; Only one file is required, but the release bundles the whole
3672 ;; software which is 50MiB as tar and 200MiB unpacked. The website
3673 ;; directly links the soundfont release to the github file download.
3674 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
3675 commit "/share/sound/FluidR3Mono_GM.sf3"))
3676 (file-name (string-append name "-" version ".sf3"))
3677 (sha256
3678 (base32
3679 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
3680 (build-system trivial-build-system)
3681 (arguments
3682 `(#:modules ((guix build utils))
3683 #:builder
3684 (begin
3685 (use-modules (guix build utils))
3686 (let ((file (assoc-ref %build-inputs "source"))
3687 (out (string-append %output "/share/soundfonts")))
3688 (mkdir-p out)
e3cfef22
MW
3689 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
3690 #t))))
9073c875 3691 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
3692 (synopsis "Pro-quality GM soundfont")
3693 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
3694 (license license:expat))))
5c40a69f
LF
3695
3696(define-public libfdk
3697 (let ((commit "2326faaf8f2cdf2c3a9108ccdaf1d7551aec543e")
3698 (revision "0"))
3699 (package
3700 (name "libfdk")
3701 ;; The latest upstream revision, with many bug fixes.
3702 (version (git-version "0.1.6" revision commit))
3703 (source
3704 (origin
3705 (method git-fetch)
3706 (uri (git-reference
3707 (url "https://github.com/mstorsjo/fdk-aac")
3708 (commit commit)))
3709 (file-name (git-file-name name version))
3710 (sha256
3711 (base32
3712 "0yy6ndd9d61bwl283vl1r5kva2a4acc0f4r9g0sza156f2abr9ws"))))
3713 (build-system gnu-build-system)
3714 (native-inputs
3715 `(("autoconf" ,autoconf)
3716 ("automake" ,automake)
3717 ("libtool" ,libtool)))
3718 (home-page "https://github.com/mstorsjo/fdk-aac")
3719 (synopsis "Fraunhofer FDK AAC library")
3720 (description "FDK is a library for encoding and decoding Advanced Audio
3721Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
3722Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
3723LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
3724and AAC-ELD (enhanced low delay) for real-time communication. The encoding
3725library supports sample rates up to 96 kHz and up to eight channels (7.1
3726surround).")
3727 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
3728 "https://www.gnu.org/licenses/license-list.html#fdk")))))
ef8517f2
EB
3729
3730(define-public libopenshot-audio
3731 (package
3732 (name "libopenshot-audio")
799298eb 3733 (version "0.1.8")
ef8517f2
EB
3734 (source (origin
3735 (method git-fetch)
3736 (uri (git-reference
3737 (url "https://github.com/OpenShot/libopenshot-audio")
3738 (commit (string-append "v" version))))
3739 (file-name (git-file-name name version))
3740 (sha256
3741 (base32
799298eb 3742 "1fvp6nmf30xzkmcznakh8dv5vn9d7nq051pqcqv638hsfppkmcrl"))))
ef8517f2
EB
3743 (build-system cmake-build-system)
3744 (inputs
3745 `(("alsa-lib" ,alsa-lib)
3746 ;; The following are for JUCE GUI components:
3747 ("libx11" ,libx11)
3748 ("freetype" ,freetype)
3749 ("libxrandr" ,libxrandr)
3750 ("libxinerama" ,libxinerama)
3751 ("libxcursor" ,libxcursor)))
3752 (arguments
3753 `(#:tests? #f ;there are no tests
3754 #:configure-flags
3755 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
3756 (assoc-ref %build-inputs "freetype")
3757 "/include/freetype2"))))
3758 (home-page "https://openshot.org")
3759 (synopsis "Audio editing and playback for OpenShot")
3760 (description "OpenShot Audio Library (libopenshot-audio) allows
3761high-quality editing and playback of audio, and is based on the JUCE
3762library.")
3763 (license license:lgpl3+)))
ea3510f8
RH
3764
3765(define-public faudio
3766 (package
3767 (name "faudio")
c44db46f 3768 (version "19.11")
ea3510f8
RH
3769 (source
3770 (origin
3771 (method git-fetch)
3772 (uri (git-reference
3773 (url "https://github.com/FNA-XNA/FAudio.git")
3774 (commit version)))
543f7ad1 3775 (file-name (git-file-name name version))
ea3510f8 3776 (sha256
c44db46f 3777 (base32 "0ckpr6ffz8ssfh1y850dhip5s5jv0j6n90qz5yx1v9d6gpwf08rp"))))
ea3510f8
RH
3778 (arguments
3779 '(#:tests? #f ; No tests.
3780 #:configure-flags '("-DFFMPEG=ON")))
3781 (build-system cmake-build-system)
3782 (native-inputs `(("pkg-config" ,pkg-config)))
3783 (inputs `(("ffmpeg" ,ffmpeg)
3784 ("sdl2" ,sdl2)))
3785 (home-page "https://github.com/FNA-XNA/FAudio")
3786 (synopsis "XAudio reimplementation")
3787 (description "FAudio is an XAudio reimplementation that focuses solely on
3788developing fully accurate DirectX Audio runtime libraries.")
3789 (license license:zlib)))
e13714b6
AI
3790
3791(define-public gnaural
3792 (package
3793 (name "gnaural")
3794 (version "20110606")
3795 (source
3796 (origin
3797 (method url-fetch)
3798 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
3799 version ".tar.xz"))
3800 (sha256
3801 (base32
3802 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
3803 (build-system gnu-build-system)
3804 (inputs
3805 `(("alsa-lib" ,alsa-lib)
3806 ("gtk+" ,gtk+-2)
3807 ("libsndfile" ,libsndfile)
3808 ("portaudio" ,portaudio)))
3809 (native-inputs
3810 `(("pkg-config" ,pkg-config)))
3811 (home-page "http://gnaural.sourceforge.net/")
3812 (synopsis "Binaural beat synthesizer")
3813 (description "Gnaural is a programmable auditory binaural beat synthesizer
3814intended to be used for brainwave entrainment. Gnaural supports creation of
3815binaural beat tracks of different frequencies and exporting of tracks into
3816different audio formats. Gnaural can also be linked over the internet with
3817other Gnaural instances, allowing synchronous sessions between many users.")
3818 (license license:gpl2+)))
2f4698d7
MW
3819
3820(define-public darkice
3821 (package
3822 (name "darkice")
3823 (version "1.3")
3824 (source (origin
3825 (method url-fetch)
3826 (uri (string-append "mirror://sourceforge/darkice/darkice/"
3827 version "/darkice-" version ".tar.gz"))
3828 (sha256
3829 (base32 "1rlxds7ssq7nk2in4s46xws7xy9ylxsqgcz85hxjgh17lsm0y39c"))
3830 (patches
3831 (search-patches "darkice-workaround-fpermissive-error.patch"))))
3832 (build-system gnu-build-system)
3833 (native-inputs `(("pkg-config" ,pkg-config)))
3834 (inputs `(("lame" ,lame)
3835 ("libvorbis" ,libvorbis)
3836 ("opus" ,opus)
3837 ("twolame" ,twolame)
3838 ("alsa-lib" ,alsa-lib)
3839 ("pulseaudio" ,pulseaudio)
3840 ("jack" ,jack-1)
3841 ("libsamplerate" ,libsamplerate)))
3842 (arguments
3843 `(#:configure-flags
3844 (list (string-append "--with-lame-prefix="
3845 (assoc-ref %build-inputs "lame")))))
3846 (home-page "http://www.darkice.org/")
3847 (synopsis "Live audio streamer")
3848 (description "DarkIce is a live audio streamer. It takes audio input from
3849a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
3850stream to one or more IceCast and/or ShoutCast servers.")
3851 (license license:gpl3+)))
0f2ce448
AT
3852
3853(define-public libltc
3854 (package
3855 (name "libltc")
3856 (version "1.3.1")
3857 (source
3858 (origin
3859 (method url-fetch)
3860 (uri
3861 (string-append "https://github.com/x42/libltc/releases/download/v"
3862 version "/libltc-" version ".tar.gz"))
3863 (sha256
3864 (base32
3865 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
3866 (build-system gnu-build-system)
3867 (arguments
3868 `(#:parallel-tests? #f)) ;tests fail otherwise
3869 (native-inputs
3870 `(("doxygen" ,doxygen)
3871 ("pkg-config" ,pkg-config)))
3872 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
3873 (description "Libltc is a POSIX-C Library for handling
3874@dfn{Linear/Longitudinal Time Code} (LTC) data.")
3875 (home-page "https://x42.github.io/libltc/")
3876 (license license:lgpl3+)))
74f9a8fb
AT
3877
3878(define-public redkite
3879 (package
3880 (name "redkite")
3881 (version "0.6.2")
3882 (source
3883 (origin
83ba0e42
MB
3884 (method git-fetch)
3885 (uri (git-reference
3886 (url "https://gitlab.com/geontime/redkite.git")
3887 (commit (string-append "v" version))))
3888 (file-name (git-file-name name version))
74f9a8fb
AT
3889 (sha256
3890 (base32
83ba0e42 3891 "1i874izajbdhlfacwwj84qrsxf7g4y6nblzxalrkzaap9sa7d1r6"))))
74f9a8fb
AT
3892 (build-system cmake-build-system)
3893 (arguments
3894 `(#:tests? #f)) ;no tests included
3895 (inputs
3896 `(("cairo" ,cairo)))
3897 (native-inputs
3898 `(("pkg-config", pkg-config)))
3899 (synopsis "Small GUI toolkit")
3900 (description "Redkite is a small GUI toolkit developed in C++17 and
3901inspired from other well known GUI toolkits such as Qt and GTK. It is
3902minimal on purpose and is intended to be statically linked to applications,
3903therefore satisfying any requirements they may have to be self contained,
3904as is the case with audio plugins.")
3905 (home-page "https://gitlab.com/geontime/redkite")
3906 (license license:gpl3+)))
caa1f6a8
AT
3907
3908(define-public carla
3909 (package
3910 (name "carla")
3911 (version "2.0.0")
3912 (source
3913 (origin
3914 (method git-fetch)
3915 (uri
3916 (git-reference
3917 (url "https://github.com/falkTX/Carla.git")
3918 (commit (string-append "v" version))))
3919 (file-name (git-file-name name version))
3920 (sha256
3921 (base32
3922 "0fqgncqlr86n38yy7pa118mswfacmfczj7w9xx6c6k0jav3wk29k"))))
3923 (build-system gnu-build-system)
3924 (arguments
3925 `(#:tests? #f ; no "check" target
3926 #:make-flags
3927 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3928 #:phases
3929 (modify-phases %standard-phases
3930 (add-before 'build 'set-CC-variable-and-show-features
3931 (lambda _
3932 (setenv "CC" "gcc")
3933 (invoke "make" "features")))
3934 (delete 'configure))))
3935 (inputs
3936 `(("alsa-lib" ,alsa-lib)
3937 ("ffmpeg" ,ffmpeg)
3938 ("fluidsynth" ,fluidsynth)
3939 ("file" ,file)
3940 ("liblo" ,liblo)
3941 ("libsndfile" ,libsndfile)
3942 ("gtk+" ,gtk+)
3943 ("python-pyliblo" ,python-pyliblo)
3944 ("python-pyqt" ,python-pyqt)
3945 ("python-rdflib" ,python-rdflib)
3946 ;; python-pyqt shows the following error without python-wrapper:
3947 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
3948 ;; (ModuleNotFoundError: No module named 'PyQt5')
3949 ("python-wrapper" ,python-wrapper)
3950 ("libx11" ,libx11)
3951 ("qtbase" ,qtbase)
3952 ("zlib" ,zlib)))
3953 (native-inputs
3954 `(("pkg-config" ,pkg-config)))
3955 (home-page "https://kx.studio/Applications:Carla")
3956 (synopsis "Audio plugin host")
3957 (description "Carla is a modular audio plugin host, with features like
3958transport control, automation of parameters via MIDI CC and remote control
3959over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
3960and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
3961default and preferred audio driver but also supports native drivers like ALSA.")
3962 (license license:gpl2+)))
615a4fbf
CLW
3963
3964(define-public ecasound
3965 (package
3966 (name "ecasound")
ec67d069 3967 (version "2.9.3")
615a4fbf
CLW
3968 (source (origin
3969 (method url-fetch)
694c2976 3970 (uri (string-append "https://nosignal.fi/download/ecasound-"
615a4fbf
CLW
3971 version ".tar.gz"))
3972 (sha256
ec67d069 3973 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
615a4fbf
CLW
3974 (build-system gnu-build-system)
3975 (native-inputs `(("pkg-config" ,pkg-config)))
ec67d069
TGR
3976 ;; It would be nice to add mikmod to inputs if that gets packaged
3977 ;; eventually.
615a4fbf
CLW
3978 (inputs `(("alsa-lib" ,alsa-lib)
3979 ("jack" ,jack-1)
3980 ("mpg123" ,mpg123)
3981 ("lame" ,lame)
3982 ("vorbis-tools" ,vorbis-tools)
3983 ("faad2" ,faad2)
3984 ("flac" ,flac)
3985 ("timidity++" ,timidity++)
3986 ("libsndfile" ,libsndfile)
3987 ("libsamplerate" ,libsamplerate)
3988 ("ncurses" ,ncurses)
3989 ("ladspa" ,ladspa)
3990 ("lilv" ,lilv)))
694c2976 3991 (home-page "https://nosignal.fi/ecasound/index.php")
615a4fbf
CLW
3992 (synopsis "Multitrack audio processing")
3993 (description "Ecasound is a software package designed for multitrack audio
3994processing. It can be used for simple tasks like audio playback, recording and
3995format conversions, as well as for multitrack effect processing, mixing,
3996recording and signal recycling. Ecasound supports a wide range of audio inputs,
3997outputs and effect algorithms. Effects and audio objects can be combined in
3998various ways, and their parameters can be controlled by operator objects like
3999oscillators and MIDI-CCs. A versatile console mode user-interface is included
4000in the package.")
d83bb797
JW
4001 ;; As an exception to the above, the C, C++ and python implementations
4002 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
4003 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
615a4fbf
CLW
4004 ;; that are not licensed under GPL.
4005 (license (list license:gpl2 license:lgpl2.1))))
5d703da3
AT
4006
4007(define-public libaudec
4008 (package
4009 (name "libaudec")
4010 (version "0.2")
4011 (source
4012 (origin
4013 (method git-fetch)
4014 (uri (git-reference
4015 (url "https://git.zrythm.org/git/libaudec")
4016 (commit (string-append "v" version))))
4017 (file-name (git-file-name name version))
4018 (sha256
4019 (base32
4020 "0lfydvs92b0hr72z71ci3yi356rjzi162pgms8dphgg18bz8dazv"))))
4021 (build-system meson-build-system)
4022 (arguments
4023 `(#:configure-flags `("-Denable_tests=true -Denable_ffmpeg=true")))
4024 (inputs
4025 `(("libsamplerate" ,libsamplerate)
4026 ("libsndfile" ,libsndfile)
4027 ("ffmpeg" ,ffmpeg)))
4028 (native-inputs
4029 `(("pkg-config", pkg-config)))
4030 (synopsis "Library for reading and resampling audio files")
4031 (description "libaudec is a wrapper library over ffmpeg, sndfile and
4032libsamplerate for reading and resampling audio files, based on Robin Gareus'
4033@code{audio_decoder} code.")
4034 (home-page "https://git.zrythm.org/cgit/libaudec")
4035 (license license:agpl3+)))