gnu: fish: Don't use NAME in source URI.
[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")
eab27d22 1196 (version "2.1.1")
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
eab27d22 1205 "09jq04hrasidf6b5gkk4aba13fq55z3bmn7bq35rdaikz26xiij4"))))
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
ca01b3ad
RW
1584 `(("libuuid" ,util-linux)
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")))))
a4e8a9e0 1991 (home-page "https://elephly.net/lv2/mdapiano.html")
98247127
RW
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))))
a4e8a9e0 2005 (home-page "https://elephly.net/lv2/mdaepiano.html")
8fb79e3d
RW
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
RW
2446 (build-system gnu-build-system)
2447 (arguments
bcdf11d6 2448 `(#:phases
7db147ec 2449 (modify-phases %standard-phases
bcdf11d6 2450 (add-before 'bootstrap 'noconfigure
7db147ec 2451 (lambda _
bcdf11d6 2452 (setenv "NOCONFIGURE" "yes")
7db147ec 2453 #t)))))
cc45cff8
RW
2454 (inputs
2455 `(("jack" ,jack-1)
2456 ("alsa-lib" ,alsa-lib)))
2457 (native-inputs
2458 `(("autoconf" ,autoconf)
2459 ("automake" ,automake)
2460 ("libtool" ,libtool)
2461 ("pkg-config" ,pkg-config)))
bcdf11d6 2462 (home-page "https://www.music.mcgill.ca/~gary/rtmidi")
cc45cff8
RW
2463 (synopsis "Cross-platform MIDI library for C++")
2464 (description
2465 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2466classes) that provide a common cross-platform API for realtime MIDI
2467input/output.")
2468 (license license:expat)))
2469
5279eb6f
RW
2470(define-public sratom
2471 (package
2472 (name "sratom")
9dd6b8d1 2473 (version "0.6.4")
5279eb6f 2474 (source (origin
95f6e6da
MB
2475 (method url-fetch)
2476 (uri (string-append "https://download.drobilla.net/sratom-"
2477 version ".tar.bz2"))
2478 (sha256
2479 (base32
2480 "0vh0biy3ngpzzgdml309c2mqz8xq9q0hlblczb4c6alhp0a8yv0l"))))
5279eb6f 2481 (build-system waf-build-system)
95f6e6da 2482 (arguments `(#:tests? #f)) ;no check target
6e0b18bf
MB
2483 (propagated-inputs
2484 ;; In Requires of sratom-0.pc.
5279eb6f
RW
2485 `(("lv2" ,lv2)
2486 ("serd" ,serd)
2487 ("sord" ,sord)))
2488 (native-inputs
2489 `(("pkg-config" ,pkg-config)))
0d0252e4 2490 (home-page "https://drobilla.net/software/sratom/")
5279eb6f
RW
2491 (synopsis "Library for serialising LV2 atoms to/from RDF")
2492 (description
2493 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2494the Turtle syntax.")
2495 (license license:isc)))
f3ab6ad3
RW
2496
2497(define-public suil
2498 (package
2499 (name "suil")
9bc06860 2500 (version "0.10.6")
f3ab6ad3 2501 (source (origin
8fadac95
TGR
2502 (method url-fetch)
2503 (uri (string-append "https://download.drobilla.net/suil-"
2504 version ".tar.bz2"))
2505 (sha256
2506 (base32
9bc06860 2507 "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06"))))
f3ab6ad3 2508 (build-system waf-build-system)
9f64f7e6 2509 (arguments
0fe041bd 2510 `(#:tests? #f)) ;no check target
f3ab6ad3
RW
2511 (inputs
2512 `(("lv2" ,lv2)
a00403c6
RW
2513 ("gtk+" ,gtk+-2)
2514 ("gtk+" ,gtk+)
9f64f7e6 2515 ("qt" ,qtbase)))
f3ab6ad3
RW
2516 (native-inputs
2517 `(("pkg-config" ,pkg-config)))
0d0252e4 2518 (home-page "https://drobilla.net/software/suil/")
f3ab6ad3
RW
2519 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2520 (description
2521 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2522
2523Suil makes it possible to load a UI of a toolkit in a host using another
2524toolkit. The API is designed such that hosts do not need to explicitly
2525support specific toolkits – if Suil supports a particular toolkit, then UIs in
2526that toolkit will work in all hosts that use Suil automatically.
2527
a00403c6 2528Suil currently supports every combination of Gtk, Qt, and X11.")
f3ab6ad3 2529 (license license:isc)))
db46f2fc 2530
9ffee457
RW
2531(define-public timidity++
2532 (package
2533 (name "timidity++")
2534 (version "2.14.0")
2535 (source (origin
2536 (method url-fetch)
de67e922
LF
2537 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2538 "/TiMidity++-" version
2539 "/TiMidity++-" version ".tar.bz2"))
9ffee457
RW
2540 (sha256
2541 (base32
2542 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2543 (build-system gnu-build-system)
2544 (arguments
2545 '(#:configure-flags
2546 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2547 "--enable-ncurses"
2548 "--enable-server"
2549 "--enable-alsaseq"
2550 (string-append "--with-default-path="
2551 (assoc-ref %outputs "out") "/etc/timidity"))
2552 #:phases
dc1d3cde
KK
2553 (modify-phases %standard-phases
2554 (add-after 'install 'install-config
2555 (lambda _
2556 (let ((out (string-append (assoc-ref %outputs "out")
2557 "/etc/timidity")))
2558 (mkdir-p out)
2559 (call-with-output-file
2560 (string-append out "/timidity.cfg")
2561 (lambda (port)
2562 (format port (string-append "source "
2563 (assoc-ref %build-inputs "freepats")
2564 "/share/freepats/freepats.cfg")))))
2565 #t)))))
9ffee457
RW
2566 (inputs
2567 `(("alsa-lib" ,alsa-lib)
2568 ("ao" ,ao)
2569 ("flac" ,flac)
2570 ("jack" ,jack-1)
2571 ("libogg" ,libogg)
3065bf8a 2572 ("libvorbis" ,libvorbis)
9ffee457
RW
2573 ("speex" ,speex)
2574 ("ncurses" ,ncurses)
2575 ("freepats" ,freepats)))
2576 (native-inputs
2577 `(("pkg-config" ,pkg-config)))
2578 (home-page "http://timidity.sourceforge.net/")
2579 (synopsis "Software synthesizer for playing MIDI files")
2580 (description
2581 "TiMidity++ is a software synthesizer. It can play MIDI files by
2582converting them into PCM waveform data; give it a MIDI data along with digital
2583instrument data files, then it synthesizes them in real-time, and plays. It
2584can not only play sounds, but also can save the generated waveforms into hard
2585disks as various audio file formats.")
2586 (license license:gpl2+)))
2587
db46f2fc
RW
2588(define-public vamp
2589 (package
2590 (name "vamp")
b1fb59d3 2591 (version "2.6")
db46f2fc
RW
2592 (source (origin
2593 (method url-fetch)
2594 (uri (string-append
2595 "https://code.soundsoftware.ac.uk"
494e9b91 2596 "/attachments/download/1520/vamp-plugin-sdk-"
b1fb59d3 2597 version ".tar.gz"))
9002e17c
TUBK
2598 (sha256
2599 (base32
494e9b91 2600 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
db46f2fc 2601 (build-system gnu-build-system)
9002e17c
TUBK
2602 (arguments
2603 `(#:tests? #f ; no check target
2604 #:phases
dc1d3cde
KK
2605 (modify-phases %standard-phases
2606 (add-after 'install 'remove-libvamp-hostsdk.la
2607 (lambda* (#:key outputs #:allow-other-keys)
2608 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2609 (for-each delete-file
2610 (let ((out (assoc-ref outputs "out")))
2611 (list (string-append out "/lib/libvamp-sdk.la")
2612 (string-append out "/lib/libvamp-hostsdk.la"))))
4f27a333 2613 #t)))))
db46f2fc
RW
2614 (inputs
2615 `(("libsndfile" ,libsndfile)))
2616 (native-inputs
2617 `(("pkg-config" ,pkg-config)))
50a67a46 2618 (home-page "https://vamp-plugins.org")
db46f2fc
RW
2619 (synopsis "Modular and extensible audio processing system")
2620 (description
2621 "Vamp is an audio processing plugin system for plugins that extract
2622descriptive information from audio data — typically referred to as audio
2623analysis plugins or audio feature extraction plugins.")
2624 (license
2625 (license:x11-style
2626 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
9f1cdd9d
TUBK
2627
2628(define-public libsbsms
2629 (package
2630 (name "libsbsms")
2631 (version "2.0.2")
2632 (source
2633 (origin
2634 (method url-fetch)
2635 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2636 "/libsbsms-" version ".tar.gz"))
2637 (sha256
2638 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2639 (build-system gnu-build-system)
2640 (native-inputs `(("automake" ,automake)))
2641 (arguments
476b2877
MW
2642 `(#:configure-flags
2643 ;; Disable the use of SSE unless on x86_64.
2644 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2645 (%current-system))))
2646 ''("--disable-sse")
2647 ''())
2648 #:phases
09c414d8
MW
2649 (modify-phases %standard-phases
2650 (add-after
2651 'unpack 'fix-ar-lib-path
2652 (lambda* (#:key inputs #:allow-other-keys)
2653 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2654 (delete-file "ar-lib")
2655 (symlink
2656 (string-append (assoc-ref inputs "automake") "/share/automake-"
2657 ,(package-version automake) "/ar-lib")
ee527187
MW
2658 "ar-lib")
2659 #t)))))
9f1cdd9d
TUBK
2660 (home-page "http://sbsms.sourceforge.net/")
2661 (synopsis "Library for time stretching and pitch scaling of audio")
2662 (description
2663 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2664stretching and pitch scaling of audio. This package contains the library.")
2665 ;; There is no explicit declaration of a license, but a COPYING file
2666 ;; containing gpl2.
2667 (license license:gpl2)))
754a98ae 2668
01b90919
SB
2669(define-public wavpack
2670 (package
2671 (name "wavpack")
638c45ed 2672 (version "5.2.0")
01b90919
SB
2673 (source (origin
2674 (method url-fetch)
2675 (uri (string-append "http://www.wavpack.com/"
638c45ed 2676 "wavpack-" version ".tar.xz"))
01b90919
SB
2677 (sha256
2678 (base32
638c45ed 2679 "1qvpvfx30kvrkw7y1g6r8xj109wszg1z0qmkfm17wf3flb7v3rbp"))))
01b90919 2680 (build-system gnu-build-system)
08b7a278
MB
2681 (arguments
2682 '(#:configure-flags '("--disable-static")))
01b90919
SB
2683 (home-page "http://www.wavpack.com/")
2684 (synopsis "Hybrid lossless audio codec")
2685 (description
2686 "WavPack is an audio compression format with lossless, lossy and hybrid
2687compression modes. This package contains command-line programs and library to
2688encode and decode wavpack files.")
2689 (license license:bsd-3)))
2690
a176dd7e
SB
2691(define-public libmodplug
2692 (package
2693 (name "libmodplug")
06446a7d 2694 (version "0.8.9.0")
a176dd7e
SB
2695 (source (origin
2696 (method url-fetch)
2697 (uri (string-append
0f971a04 2698 "mirror://sourceforge/modplug-xmms/"
a176dd7e
SB
2699 name "/" version "/" name "-" version ".tar.gz"))
2700 (sha256
2701 (base32
06446a7d 2702 "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25"))))
a176dd7e
SB
2703 (build-system gnu-build-system)
2704 (home-page "http://modplug-xmms.sourceforge.net/")
2705 (synopsis "Mod file playing library")
2706 (description
2707 "Libmodplug renders mod music files as raw audio data, for playing or
2708conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2709supported. Optional features include high-quality resampling, bass expansion,
2710surround and reverb.")
2711 (license license:public-domain)))
2712
b97b5cda
SB
2713(define-public libxmp
2714 (package
2715 (name "libxmp")
2784fca0 2716 (version "4.4.1")
b97b5cda
SB
2717 (source (origin
2718 (method url-fetch)
de67e922 2719 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
b97b5cda
SB
2720 name "-" version ".tar.gz"))
2721 (sha256
2722 (base32
2784fca0 2723 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
b97b5cda
SB
2724 (build-system gnu-build-system)
2725 (home-page "http://xmp.sourceforge.net/")
2726 (synopsis "Module player library")
2727 (description
2728 "Libxmp is a library that renders module files to PCM data. It supports
2729over 90 mainstream and obscure module formats including Protracker (MOD),
2730Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2731 (license license:lgpl2.1+)))
2732
3ec4bba4
SB
2733(define-public xmp
2734 (package
2735 (name "xmp")
1a79d476 2736 (version "4.1.0")
3ec4bba4
SB
2737 (source (origin
2738 (method url-fetch)
de67e922 2739 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3ec4bba4
SB
2740 name "-" version ".tar.gz"))
2741 (sha256
2742 (base32
1a79d476 2743 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3ec4bba4
SB
2744 (build-system gnu-build-system)
2745 (native-inputs
2746 `(("pkg-config" ,pkg-config)))
2747 (inputs
2748 `(("libxmp" ,libxmp)
2749 ("pulseaudio" ,pulseaudio)))
2750 (home-page "http://xmp.sourceforge.net/")
2751 (synopsis "Extended module player")
2752 (description
2753 "Xmp is a portable module player that plays over 90 mainstream and
2754obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2755Tracker 3 S3M and Impulse Tracker IT files.")
2756 (license license:gpl2+)))
2757
754a98ae
TUBK
2758(define-public soundtouch
2759 (package
2760 (name "soundtouch")
d87d2567 2761 (version "2.1.2")
754a98ae
TUBK
2762 (source
2763 (origin
55036ddc
TGR
2764 (method git-fetch)
2765 (uri (git-reference
2766 (url "https://gitlab.com/soundtouch/soundtouch.git")
2767 (commit version)))
2768 (file-name (git-file-name name version))
754a98ae 2769 (sha256
d87d2567 2770 (base32 "174wgm3s0inmbnkrlnspxjwm2014qhjhkbdqa5r8rbfi0nzqxzsz"))))
754a98ae
TUBK
2771 (build-system gnu-build-system)
2772 (native-inputs
2773 `(("autoconf" ,autoconf)
2774 ("automake" ,automake)
2775 ("libtool" ,libtool)
2776 ("file" ,file)))
c93bd94c 2777 (home-page "https://www.surina.net/soundtouch/")
754a98ae
TUBK
2778 (synopsis
2779 "Audio processing library for changing tempo, pitch and playback rate")
2780 (description
2781 "SoundTouch is an audio processing library for changing the tempo, pitch
2782and playback rates of audio streams or audio files. It is intended for
2783application developers writing sound processing tools that require tempo/pitch
2784control functionality, or just for playing around with the sound effects.")
2785 (license license:lgpl2.1+)))
4bddd14c 2786
d739f481
AK
2787(define-public sox
2788 (package
2789 (name "sox")
2790 (version "14.4.2")
2791 (source (origin
2792 (method url-fetch)
de67e922
LF
2793 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2794 name "-" version ".tar.bz2"))
d739f481
AK
2795 (sha256
2796 (base32
2797 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2798 (build-system gnu-build-system)
2799 (arguments
2800 '(#:configure-flags
2801 ;; The upstream asks to identify the distribution to diagnose SoX
2802 ;; bug reports.
2803 '("--with-distro=Guix System Distribution")))
2804 (native-inputs
2805 `(("pkg-config" ,pkg-config)))
2806 (inputs
2807 `(("alsa-lib" ,alsa-lib)
2808 ("ao" ,ao)
2809 ("flac" ,flac)
2810 ("lame" ,lame)
2811 ("libid3tag" ,libid3tag)
2812 ("libltdl" ,libltdl)
2813 ("libmad" ,libmad)
2814 ("libpng" ,libpng)
2815 ("libvorbis" ,libvorbis)
2816 ("pulseaudio" ,pulseaudio)))
2817 (home-page "http://sox.sourceforge.net")
2818 (synopsis "Sound processing utility")
2819 (description
2820 "SoX (Sound eXchange) is a command line utility that can convert
2821various formats of computer audio files to other formats. It can also
2822apply various effects to these sound files, and, as an added bonus, SoX
2823can play and record audio files.")
2824 ;; sox.c is distributed under GPL, while the files that make up
2825 ;; libsox are licensed under LGPL.
2826 (license (list license:gpl2+ license:lgpl2.1+))))
2827
4bddd14c
TUBK
2828(define-public soxr
2829 (package
2830 (name "soxr")
9e9a211f 2831 (version "0.1.3")
4bddd14c
TUBK
2832 (source
2833 (origin
2834 (method url-fetch)
2835 (uri
2836 (string-append "mirror://sourceforge/soxr/soxr-" version
2837 "-Source.tar.xz"))
2838 (sha256
9e9a211f 2839 (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di"))))
4bddd14c
TUBK
2840 (build-system cmake-build-system)
2841 (arguments '(#:tests? #f)) ;no 'check' target
3b3b60d0 2842 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
4bddd14c
TUBK
2843 (synopsis "One-dimensional sample-rate conversion library")
2844 (description
2845 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2846conversion. It may be used, for example, to resample PCM-encoded audio.")
2847 (license license:lgpl2.1+)))
49f36708
TUBK
2848
2849(define-public twolame
2850 (package
2851 (name "twolame")
196e3579 2852 (version "0.4.0")
49f36708
TUBK
2853 (source
2854 (origin
2855 (method url-fetch)
de67e922
LF
2856 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2857 "/twolame-" version ".tar.gz"))
49f36708 2858 (sha256
196e3579 2859 (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc"))))
49f36708
TUBK
2860 (build-system gnu-build-system)
2861 (inputs
2862 `(("libsndfile" ,libsndfile)))
2863 (native-inputs
2864 `(("perl" ,perl)
2865 ("which" ,which))) ;used in tests/test.pl
2866 (home-page "http://www.twolame.org/")
2867 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2868 (description
2869 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2870tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2871portions of LAME.")
2872 (license license:lgpl2.1+)))
bd4464f2
TUBK
2873
2874(define-public portaudio
2875 (package
2876 (name "portaudio")
80420acb 2877 (version "190600.20161030")
bd4464f2
TUBK
2878 (source
2879 (origin
2880 (method url-fetch)
2881 (uri (string-append
2882 "http://www.portaudio.com/archives/pa_stable_v"
2883 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2884 ".tgz"))
2885 (sha256
80420acb 2886 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
fc1adab1 2887 (patches (search-patches "portaudio-audacity-compat.patch"))))
bd4464f2
TUBK
2888 (build-system gnu-build-system)
2889 (inputs
2890 ;; TODO: Add ASIHPI.
2891 `(("alsa-lib" ,alsa-lib)
bcbc02fd 2892 ("jack" ,jack-1)))
cdb4048d
RW
2893 ;; Autoreconf is necessary because the audacity-compat patch modifies .in
2894 ;; files.
bd4464f2 2895 (native-inputs
b47be021
TUBK
2896 `(("autoconf" ,autoconf)
2897 ("automake" ,automake)
2898 ("libtool" ,libtool)
2899 ("pkg-config" ,pkg-config)))
86fded86 2900 (arguments
1ce6bfc2 2901 '(#:tests? #f ;no 'check' target
c9cd4a84 2902 #:parallel-build? #f ;fails on some systems
1ce6bfc2
NG
2903 #:configure-flags '("--with-pic"
2904 "--enable-cxx"
2905 ;; XXX: The following prevents a build error
2906 ;; because of missing depcomp when C++ bindings are
2907 ;; requested.
2908 "--disable-dependency-tracking")
86fded86
RW
2909 #:phases
2910 (modify-phases %standard-phases
2911 ;; This is needed for linking the static libraries
2912 (add-after 'unpack 'build-only-position-independent-code
2913 (lambda _
2914 (substitute* "configure.in"
2915 (("AC_PROG_LIBTOOL" m)
2916 (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])")))
2917 (delete-file "configure")
2918 #t))
2919 ;; Some headers are not installed by default, but are needed by
2920 ;; packages like Kaldi.
2921 (add-after 'install 'install-missing-headers
2922 (lambda* (#:key outputs #:allow-other-keys)
2923 (install-file "src/common/pa_ringbuffer.h"
2924 (string-append (assoc-ref outputs "out") "/include"))
2925 #t)))))
bd4464f2
TUBK
2926 (home-page "http://www.portaudio.com/")
2927 (synopsis "Audio I/O library")
2928 (description
2929 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2930to record and/or play sound using a callback function or a blocking read/write
2931interface.")
2932 (license license:expat)))
74bbf894 2933
fe73aef4
RW
2934(define-public qsynth
2935 (package
2936 (name "qsynth")
5e4cb92e 2937 (version "0.5.7")
fe73aef4
RW
2938 (source
2939 (origin
2940 (method url-fetch)
de67e922
LF
2941 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2942 "/qsynth-" version ".tar.gz"))
fe73aef4 2943 (sha256
5e4cb92e 2944 (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6"))))
fe73aef4
RW
2945 (build-system gnu-build-system)
2946 (arguments
5e4cb92e 2947 `(#:tests? #f)) ; no "check" phase
598f6394 2948 (native-inputs
4ed4bb11
RW
2949 `(("qttools" ,qttools)
2950 ("pkg-config" ,pkg-config)))
fe73aef4 2951 (inputs
598f6394
DC
2952 `(("fluidsynth" ,fluidsynth)
2953 ("qtbase" ,qtbase)
2954 ("qtx11extras" ,qtx11extras)))
12c8c997 2955 (home-page "https://qsynth.sourceforge.io")
fe73aef4
RW
2956 (synopsis "Graphical user interface for FluidSynth")
2957 (description
2958 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2959synthesizer written in C++.")
2960 (license license:gpl2+)))
2961
55b596c3
TUBK
2962(define-public rsound
2963 (package
2964 (name "rsound")
2965 (version "1.1")
2966 (source
2967 (origin
458baefb
RW
2968 (method git-fetch)
2969 (uri (git-reference
2970 (url "https://github.com/Themaister/RSound.git")
2971 (commit (string-append "v" version))))
2972 (file-name (git-file-name name version))
55b596c3 2973 (sha256
458baefb 2974 (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf"))))
55b596c3
TUBK
2975 (build-system gnu-build-system)
2976 (inputs
2977 `(("alsa-lib" ,alsa-lib)
276f49df 2978 ("jack" ,jack-1)
55b596c3
TUBK
2979 ("ao" ,ao)
2980 ("libsamplerate" ,libsamplerate)
2981 ("openal" ,openal)
2982 ("portaudio" ,portaudio)
2983 ("pulseaudio" ,pulseaudio)))
2984 (arguments
2985 '(#:phases
dc1d3cde
KK
2986 (modify-phases %standard-phases
2987 (replace 'configure
2988 (lambda* (#:key outputs #:allow-other-keys)
2989 (setenv "CC" "gcc")
c3d14484
TGR
2990 (invoke "./configure"
2991 (string-append "--prefix=" (assoc-ref outputs "out"))))))
55b596c3
TUBK
2992 ;; No 'check' target.
2993 #:tests? #f))
2994 (home-page "http://themaister.net/rsound.html")
2995 (synopsis "Networked audio system")
2996 (description
2997 "RSound allows you to send audio from an application and transfer it
2998directly to a different computer on your LAN network. It is an audio daemon
2999with a much different focus than most other audio daemons.")
3000 (license license:gpl3+)))
3001
caf9055c
RW
3002(define-public xjackfreak
3003 (package
3004 (name "xjackfreak")
3005 (version "1.0")
3006 (source (origin
8e5995e3
RW
3007 (method git-fetch)
3008 (uri (git-reference
3009 (url "https://github.com/johnhldavis/xjackfreak.git")
3010 (commit (string-append "v" version))))
3011 (file-name (git-file-name name version))
caf9055c
RW
3012 (sha256
3013 (base32
8e5995e3 3014 "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz"))))
caf9055c
RW
3015 (build-system gnu-build-system)
3016 (arguments
3017 `(#:make-flags
3018 (list (string-append "docdir=" (assoc-ref %outputs "out")
3019 "/share/doc/xjackfreak"))))
3020 (inputs
3021 `(("jack" ,jack-1)
3022 ("libx11" ,libx11)
3023 ("libxt" ,libxt)
3024 ("libxext" ,libxext)))
3025 (native-inputs
3026 `(("pkg-config" ,pkg-config)))
3027 (home-page "https://github.com/johnhldavis/xjackfreak")
3028 (synopsis "JACK audio frequency analyzer and display")
3029 (description
3030 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
3031Connection Kit. It can display the FFT of any input, modify it and output the
3032result.")
3033 (license license:gpl3+)))
3034
d73f7909
RW
3035(define-public zita-convolver
3036 (package
3037 (name "zita-convolver")
1c1ce52a 3038 (version "4.0.3")
d73f7909
RW
3039 (source (origin
3040 (method url-fetch)
3041 (uri (string-append
3042 "http://kokkinizita.linuxaudio.org"
3043 "/linuxaudio/downloads/zita-convolver-"
3044 version ".tar.bz2"))
29e255ca
SB
3045 (snippet
3046 ;; Don't optimize for a specific processor architecture.
6cbee49d 3047 '(begin
1c1ce52a 3048 (substitute* "source/Makefile"
6cbee49d
MW
3049 (("^CXXFLAGS \\+= -march=native") ""))
3050 #t))
29e255ca 3051 (modules '((guix build utils)))
d73f7909
RW
3052 (sha256
3053 (base32
1c1ce52a 3054 "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs"))))
d73f7909
RW
3055 (build-system gnu-build-system)
3056 (arguments
3057 `(#:tests? #f ; no "check" target
1c1ce52a
AT
3058 #:make-flags
3059 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3060 (string-append "SUFFIX="))
d73f7909 3061 #:phases
dc1d3cde
KK
3062 (modify-phases %standard-phases
3063 (add-after 'unpack 'patch-makefile-and-enter-directory
3064 (lambda _
1c1ce52a 3065 (substitute* "source/Makefile"
dc1d3cde
KK
3066 (("ldconfig") "true")
3067 (("^LIBDIR =.*") "LIBDIR = lib\n"))
1c1ce52a 3068 (chdir "source")
ee527187 3069 #t))
4f27a333
MB
3070 (add-after 'install 'install-symlink
3071 (lambda _
3072 (symlink "libzita-convolver.so"
3073 (string-append (assoc-ref %outputs "out")
1c1ce52a 3074 "/lib/libzita-convolver.so.4"))
ee527187 3075 #t))
d73f7909 3076 ;; no configure script
4f27a333 3077 (delete 'configure))))
d73f7909 3078 (inputs `(("fftwf" ,fftwf)))
4817bb92 3079 (home-page "https://kokkinizita.linuxaudio.org")
d73f7909
RW
3080 (synopsis "Fast, partitioned convolution engine library")
3081 (description
3082 "Zita convolver is a C++ library providing a real-time convolution
3083engine.")
3084 (license license:gpl3+)))
3085
b7ed6784
RW
3086(define-public zita-resampler
3087 (package
3088 (name "zita-resampler")
3089 (version "1.3.0")
3090 (source (origin
3091 (method url-fetch)
3092 (uri (string-append
3093 "http://kokkinizita.linuxaudio.org"
3094 "/linuxaudio/downloads/zita-resampler-"
3095 version ".tar.bz2"))
6dff4955
SB
3096 (snippet
3097 ;; Don't optimize for a specific processor architecture.
6cbee49d
MW
3098 '(begin
3099 (substitute* '("apps/Makefile" "libs/Makefile")
3100 (("^CXXFLAGS \\+= -march=native") ""))
3101 #t))
6dff4955 3102 (modules '((guix build utils)))
b7ed6784
RW
3103 (sha256
3104 (base32
3105 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
3106 (build-system gnu-build-system)
3107 (arguments
3108 `(#:tests? #f ; no "check" target
3109 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3110 #:phases
3111 (modify-phases %standard-phases
3112 (add-after
3113 'unpack 'patch-makefile-and-enter-directory
3114 (lambda _
3115 (substitute* "libs/Makefile"
3116 (("ldconfig") "true")
3117 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3118 (chdir "libs")
3119 #t))
3120 (add-after
3121 'install 'install-symlink
3122 (lambda _
3123 (symlink "libzita-resampler.so"
3124 (string-append (assoc-ref %outputs "out")
ee527187
MW
3125 "/lib/libzita-resampler.so.1"))
3126 #t))
b7ed6784
RW
3127 ;; no configure script
3128 (delete 'configure))))
4817bb92 3129 (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
b7ed6784
RW
3130 (synopsis "C++ library for resampling audio signals")
3131 (description
3132 "Libzita-resampler is a C++ library for resampling audio signals. It is
3133designed to be used within a real-time processing context, to be fast, and to
3134provide high-quality sample rate conversion.")
3135 (license license:gpl3+)))
3136
74bbf894
RW
3137(define-public zita-alsa-pcmi
3138 (package
3139 (name "zita-alsa-pcmi")
3140 (version "0.2.0")
3141 (source (origin
3142 (method url-fetch)
3143 (uri (string-append
3144 "http://kokkinizita.linuxaudio.org"
3145 "/linuxaudio/downloads/zita-alsa-pcmi-"
3146 version ".tar.bz2"))
3147 (sha256
3148 (base32
9569dfc8 3149 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
74bbf894
RW
3150 (build-system gnu-build-system)
3151 (arguments
3152 `(#:tests? #f ; no "check" target
3153 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3154 #:phases
dc1d3cde
KK
3155 (modify-phases %standard-phases
3156 (add-after 'unpack 'patch-makefile-and-enter-directory
3157 (lambda _
3158 (substitute* "libs/Makefile"
3159 (("ldconfig") "true")
3160 (("^LIBDIR =.*") "LIBDIR = lib\n"))
3161 (chdir "libs")
3162 #t))
3163 (add-after 'install 'install-symlink
3164 (lambda _
3165 (symlink "libzita-alsa-pcmi.so"
3166 (string-append (assoc-ref %outputs "out")
ee527187
MW
3167 "/lib/libzita-alsa-pcmi.so.0"))
3168 #t))
dc1d3cde
KK
3169 ;; no configure script
3170 (delete 'configure))))
74bbf894
RW
3171 (inputs
3172 `(("alsa-lib" ,alsa-lib)
3173 ("fftw" ,fftw)))
4817bb92 3174 (home-page "https://kokkinizita.linuxaudio.org")
74bbf894
RW
3175 (synopsis "C++ wrapper around the ALSA API")
3176 (description
3177 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
3178access to ALSA PCM devices, taking care of the many functions required to
3179open, initialise and use a hw: device in mmap mode, and providing floating
3180point audio data.")
3181 (license license:gpl3+)))
6da16993
LF
3182
3183(define-public cuetools
3184 (package
3185 (name "cuetools")
3186 (version "1.4.1")
3187 (source (origin
4289a306
RW
3188 (method git-fetch)
3189 (uri (git-reference
3190 (url "https://github.com/svend/cuetools.git")
3191 (commit version)))
3192 (file-name (git-file-name name version))
6da16993
LF
3193 (sha256
3194 (base32
4289a306 3195 "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3"))))
6da16993 3196 (build-system gnu-build-system)
4289a306 3197 ;; The source checkout is not bootstrapped.
6da16993
LF
3198 (native-inputs
3199 `(("autoconf" ,autoconf)
3200 ("automake" ,automake)
3201 ("flex" ,flex)
3202 ("bison" ,bison)))
3203 (synopsis "Cue and toc file parsers and utilities")
3204 (description "Cuetools is a set of programs that are useful for manipulating
3205and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
3206files are a way to represent the layout of a data or audio CD in a
3207machine-readable ASCII format.")
3208 (home-page "https://github.com/svend/cuetools")
3209 (license license:gpl2+)))
6819a8dd
LF
3210
3211(define-public shntool
3212 (package
3213 (name "shntool")
3214 (version "3.0.10")
3215 (source (origin
3216 (method url-fetch)
3217 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
3218 "shntool-" version ".tar.gz"))
3219 (sha256
3220 (base32
3221 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
3222 (build-system gnu-build-system)
3223 (synopsis "WAVE audio data processing tool")
3224 (description "shntool is a multi-purpose WAVE data processing and reporting
3225utility. File formats are abstracted from its core, so it can process any file
3226that contains WAVE data, compressed or not---provided there exists a format
d5b357ec
LF
3227module to handle that particular file type. It can also generate CUE files, and
3228use them split WAVE data into multiple files.")
6819a8dd 3229 (home-page "http://etree.org/shnutils/shntool/")
6ac2af78
LF
3230 ;; 'install-sh' bears the x11 license
3231 (license (list license:gpl2+ license:x11))))
680b54c5
DT
3232
3233(define-public dcadec
3234 (package
3235 (name "dcadec")
3236 (version "0.2.0")
3237 (source (origin
b249ff5d
RW
3238 (method git-fetch)
3239 (uri (git-reference
3240 (url "https://github.com/foo86/dcadec.git")
3241 (commit (string-append "v" version))))
3242 (file-name (git-file-name name version))
680b54c5
DT
3243 (sha256
3244 (base32
b249ff5d 3245 "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs"))))
680b54c5
DT
3246 (build-system gnu-build-system)
3247 (arguments
3248 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
3249 '(#:tests? #f
3250 #:make-flags
3251 (list "CC=gcc"
3252 ;; Build shared library.
3253 "CONFIG_SHARED=1"
3254 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3255 ;; Set proper runpath.
3256 (string-append "LDFLAGS=-Wl,-rpath="
3257 (assoc-ref %outputs "out")
3258 "/lib"))
3259 #:phases
3260 (modify-phases %standard-phases
3261 ;; No configure script, just a hand-written Makefile.
3262 (delete 'configure))))
3263 (synopsis "DTS Coherent Acoustics decoder")
3264 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
3265with support for HD extensions.")
3266 (home-page "https://github.com/foo86/dcadec")
3267 (license license:lgpl2.1+)))
e87c7ec2
AG
3268
3269(define-public bs1770gain
3270 (package
3271 (name "bs1770gain")
39c746f0 3272 (version "0.6.5")
e87c7ec2
AG
3273 (source
3274 (origin
3275 (method url-fetch)
3276 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
3277 version "/bs1770gain-" version ".tar.gz"))
3278 (sha256
39c746f0 3279 (base32 "15nvlh9bg0a52cpg2mii17mlzmxszwivjjalbb4np1v5nj8l5fk6"))
17098a49
LF
3280 (modules '((guix build utils)))
3281 (snippet
3282 '(begin
3283 ;; XXX
39c746f0
TGR
3284 (substitute* (find-files "." "\\.[ch]$")
3285 (("^ \\* N..o.*") ""))
a2931b14 3286 (substitute* "libbg/bgx.c"
39c746f0
TGR
3287 (("#define BG.* ") "#define BS ")
3288 (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO")
a2931b14
TGR
3289 (("\"( #|N).*\"") "\"\""))
3290 (substitute* (list "config.h"
3291 "configure.ac"
3292 "configure")
3293 (("https?://bs1770gain[^/]*/")
2777dc75
TGR
3294 "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html"))
3295 #t))))
e87c7ec2
AG
3296 (build-system gnu-build-system)
3297 (inputs `(("ffmpeg" ,ffmpeg)
3298 ("sox" ,sox)))
17098a49 3299 (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html")
e87c7ec2
AG
3300 (synopsis "Tool to adjust loudness of media files")
3301 (description
3302 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
3303flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
3304loudness of audio and video files to the same level.")
3305 (license license:gpl2+)))
eb64bde1
EE
3306
3307(define-public filteraudio
3308 (let ((revision "1")
3309 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
3310 (package
3311 (name "filteraudio")
3312 (version (string-append "0.0.0-" revision "."
3313 (string-take commit 7)))
3314 (source
3315 (origin
3316 (method git-fetch)
3317 (uri (git-reference
3318 (url "https://github.com/irungentoo/filter_audio.git")
3319 (commit commit)))
3320 (file-name (string-append name "-" version "-checkout"))
3321 (sha256
3322 (base32
3323 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
3324 (build-system gnu-build-system)
3325 (arguments
3326 '(#:make-flags (list (string-append "PREFIX=" %output)
3327 "CC=gcc")
3328 #:tests? #f ; No tests
3329 #:phases
3330 (modify-phases %standard-phases
3331 ;; No configure script
3332 (delete 'configure))))
3333 (synopsis "Lightweight audio filtering library")
3334 (description "An easy to use audio filtering library made from webrtc
3335code, used in @code{libtoxcore}.")
3336 (home-page "https://github.com/irungentoo/filter_audio")
3337 (license license:bsd-3))))
9a4c032c
LG
3338
3339(define-public gsm
3340 (package
3341 (name "gsm")
aabe29af 3342 (version "1.0.18")
9a4c032c
LG
3343 (source
3344 (origin
3345 (method url-fetch)
3346 (uri
3347 (string-append "http://www.quut.com/" name "/" name
3348 "-" version ".tar.gz"))
3349 (sha256
3350 (base32
aabe29af 3351 "041amvpz8cvxykl3pwqldrzxligmmzcg8ncdnxbg32rlqf3q1xh4"))))
9a4c032c
LG
3352 (build-system gnu-build-system)
3353 (arguments
3354 `(#:test-target "tst"
3355 #:phases
3356 (modify-phases %standard-phases
3357 (add-before 'install 'pre-install
3358 (lambda _
3359 (let ((out (assoc-ref %outputs "out")))
3360 (substitute* "Makefile"
3361 (("INSTALL_ROOT\t=")
3362 (string-append "INSTALL_ROOT\t=\t" out)))
3363 (mkdir-p (string-append out "/inc"))
3364 (mkdir-p (string-append out "/man"))
3365 (mkdir-p (string-append out "/man/man1"))
3366 (mkdir-p (string-append out "/man/man3"))
3367 (mkdir-p (string-append out "/bin"))
ee527187
MW
3368 (mkdir-p (string-append out "/lib")))
3369 #t))
9a4c032c
LG
3370 (add-after 'install 'post-install
3371 (lambda _
3372 (let ((out (assoc-ref %outputs "out")))
3373 (rename-file (string-append out "/inc")
3374 (string-append out "/include"))
3375 (mkdir-p (string-append out "/include/gsm"))
3376 (copy-recursively "inc"
ee527187
MW
3377 (string-append out "/include/gsm")))
3378 #t))
aabe29af 3379 (delete 'configure)))) ; no configure script
9a4c032c
LG
3380 (synopsis "GSM 06.10 lossy speech compression library")
3381 (description "This C library provides an encoder and a decoder for the GSM
338206.10 RPE-LTP lossy speech compression algorithm.")
3383 (home-page "http://quut.com/gsm/")
3384 (license (license:non-copyleft "file://COPYRIGHT"))))
84d9abe4
DM
3385
3386(define-public python-pyalsaaudio
3387 (package
3388 (name "python-pyalsaaudio")
3389 (version "0.8.4")
3390 (source (origin
3391 (method url-fetch)
3392 (uri (pypi-uri "pyalsaaudio" version))
3393 (sha256
3394 (base32
3395 "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44"))))
3396 (build-system python-build-system)
3397 (arguments
3398 `(#:tests? #f)) ; tests require access to ALSA devices.
3399 (inputs
3400 `(("alsa-lib" ,alsa-lib)))
5adaeb36 3401 (home-page "https://larsimmisch.github.io/pyalsaaudio/")
84d9abe4
DM
3402 (synopsis "ALSA wrappers for Python")
3403 (description
3404 "This package contains wrappers for accessing the ALSA API from Python.
3405It is currently fairly complete for PCM devices, and has some support for
3406mixers.")
3407 (license license:psfl)))
3408
3409(define-public python2-pyalsaaudio
3410 (package-with-python2 python-pyalsaaudio))
d0c8e524 3411
dba33ca3
RW
3412(define-public bluez-alsa
3413 (package
3414 (name "bluez-alsa")
9f9520a1 3415 (version "2.0.0")
dba33ca3
RW
3416 (source (origin
3417 ;; The tarballs are mere snapshots and don't contain a
3418 ;; bootstrapped build system.
3419 (method git-fetch)
3420 (uri (git-reference
3421 (url "https://github.com/Arkq/bluez-alsa.git")
3422 (commit (string-append "v" version))))
9f9520a1 3423 (file-name (git-file-name name version))
dba33ca3
RW
3424 (sha256
3425 (base32
9f9520a1 3426 "08mppgnjf1j2733bk9yf0cny6rfxxwiys0s62lz2zd2lpdl6d9lz"))))
dba33ca3 3427 (build-system gnu-build-system)
9f9520a1
RW
3428 (arguments
3429 `(#:configure-flags
3430 (list (string-append "--with-alsaplugindir="
3431 (assoc-ref %outputs "out")
3432 "/lib/alsa-lib")
3433 (string-append "--with-dbusconfdir="
3434 (assoc-ref %outputs "out")
8f2e2120 3435 "/etc/dbus-1/system.d"))))
dba33ca3
RW
3436 (native-inputs
3437 `(("autoconf" ,autoconf)
3438 ("automake" ,automake)
3439 ("libtool" ,libtool)
3440 ("pkg-config" ,pkg-config)))
3441 (inputs
3442 `(("alsa-lib" ,alsa-lib)
3443 ("bluez" ,bluez)
9f9520a1 3444 ("dbus" ,dbus)
dba33ca3
RW
3445 ("glib" ,glib)
3446 ("libbsd" ,libbsd)
3447 ("ncurses" ,ncurses)
3448 ("ortp" ,ortp)
3449 ("sbc" ,sbc)))
3450 (home-page "https://github.com/Arkq/bluez-alsa")
3451 (synopsis "Bluetooth ALSA backend")
3452 (description "This project is a rebirth of a direct integration between
3453Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed
3454in favor of 3rd party audio applications. From now on, Bluez acts as a
3455middleware between an audio application, which implements Bluetooth audio
3456profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth
3457audio profiles in Bluez, so in theory every Bluetooth device (with audio
3458capabilities) can be connected. In order to access the audio stream, one has
3459to connect to the ALSA PCM device called @code{bluealsa}. The device is based
3460on the ALSA software PCM plugin.")
3461 (license license:expat)))
3462
d0c8e524
SB
3463(define-public snd
3464 (package
3465 (name "snd")
b1d13e40 3466 (version "19.9")
d0c8e524
SB
3467 (source (origin
3468 (method url-fetch)
3469 (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/"
3470 "snd-" version ".tar.gz"))
3471 (sha256
3472 (base32
b1d13e40 3473 "13s8fahpsjygjdrcwmprcrz23ny3klaj2rh2xzdv3bfs69gxvhys"))))
d0c8e524
SB
3474 (build-system glib-or-gtk-build-system)
3475 (arguments
4ae9274a 3476 `(#:tests? #f ; no tests
d0c8e524
SB
3477 #:out-of-source? #f ; for the 'install-doc' phase
3478 #:configure-flags
3479 (let* ((out (assoc-ref %outputs "out"))
94774876
TGR
3480 (docdir (string-append out "/share/doc/"
3481 ,name "-" ,version)))
d0c8e524
SB
3482 (list "--with-alsa" "--with-jack" "--with-gmp"
3483 (string-append "--with-doc-dir=" docdir)))
3484 #:phases
3485 (modify-phases %standard-phases
3486 (add-after 'install 'install-doc
3487 (lambda* (#:key outputs #:allow-other-keys)
3488 (let* ((out (assoc-ref outputs "out"))
4ae9274a
TGR
3489 (doc (string-append out "/share/doc/"
3490 ,name "-" ,version)))
d0c8e524
SB
3491 (for-each
3492 (lambda (f)
4ae9274a 3493 (install-file f doc))
3ef664d0 3494 (find-files "." "\\.html$"))
4ae9274a 3495 (copy-recursively "pix" (string-append doc "/pix"))
d0c8e524
SB
3496 #t))))))
3497 (native-inputs
3498 `(("pkg-config" ,pkg-config)))
3499 (inputs
3500 `(("alsa-lib" ,alsa-lib)
3501 ("fftw" ,fftw)
3502 ("flac" ,flac)
3503 ("gmp" ,gmp)
3504 ("gsl" ,gsl)
3505 ("gtk+" ,gtk+)
3506 ("jack" ,jack-1)
3507 ("libsamplerate" ,libsamplerate)
3508 ("mpc" ,mpc)
3509 ("mpfr" ,mpfr)
3510 ("mpg123" ,mpg123)
3511 ("speex" ,speex)
3512 ("timidity++" ,timidity++)
3513 ("vorbis-tools" ,vorbis-tools)
3514 ("wavpack" ,wavpack)))
3515 (synopsis "Sound editor")
3516 (home-page "https://ccrma.stanford.edu/software/snd/")
3517 (description
3518 "Snd is a sound editor modelled loosely after Emacs. It can be
3519customized and extended using either the s7 Scheme implementation (included in
3520the Snd sources), Ruby, or Forth.")
3521 (license (license:non-copyleft "file://COPYING"))))
adedbe95 3522
cf31d5e1
RW
3523(define-public noise-repellent
3524 (package
3525 (name "noise-repellent")
f6c8ba31 3526 (version "0.1.5")
cf31d5e1
RW
3527 (source (origin
3528 (method git-fetch)
3529 (uri (git-reference
3530 (url "https://github.com/lucianodato/noise-repellent.git")
3531 (commit version)))
3532 (file-name (string-append name "-" version "-checkout"))
3533 (sha256
3534 (base32
f6c8ba31
TGR
3535 "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl"))))
3536 (build-system meson-build-system)
cf31d5e1 3537 (arguments
f6c8ba31
TGR
3538 `(#:configure-flags
3539 (list (string-append "--prefix=" (assoc-ref %outputs "out")
3540 "/lib/lv2"))))
cf31d5e1
RW
3541 (inputs
3542 `(("lv2" ,lv2)
3543 ("fftwf" ,fftwf)))
3544 (native-inputs
3545 `(("pkg-config" ,pkg-config)))
3546 (home-page "https://github.com/lucianodato/noise-repellent")
3547 (synopsis "LV2 plugin for broadband noise reduction")
3548 (description "Noise Repellent is an LV2 plugin to reduce noise. It has
3549the following features:
3550
3551@enumerate
3552@item Spectral gating and spectral subtraction suppression rule
3553@item Adaptive and manual noise thresholds estimation
3554@item Adjustable noise floor
3555@item Adjustable offset of thresholds to perform over-subtraction
3556@item Time smoothing and a masking estimation to reduce artifacts
3557@item Basic onset detector to avoid transients suppression
3558@item Whitening of the noise floor to mask artifacts and to recover higher
3559 frequencies
3560@item Option to listen to the residual signal
3561@item Soft bypass
3562@item Noise profile saved with the session
3563@end enumerate
3564")
3565 (license license:lgpl3+)))
3566
adedbe95
OP
3567(define-public cli-visualizer
3568 (package
3569 (name "cli-visualizer")
e121cb87 3570 (version "1.8")
adedbe95
OP
3571 (source
3572 (origin
c2a2d364
RW
3573 (method git-fetch)
3574 (uri (git-reference
3575 (url "https://github.com/dpayne/cli-visualizer.git")
e121cb87 3576 (commit (string-append "v" version))))
c2a2d364 3577 (file-name (git-file-name name version))
adedbe95 3578 (sha256
e121cb87
TGR
3579 (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
3580 (build-system cmake-build-system)
adedbe95 3581 (native-inputs
e121cb87
TGR
3582 ;; TODO: Try using the latest googletest for versions > 1.8.
3583 `( ;; ("googletest" ,googletest-1.8)
3584 ("which" ,which)))
adedbe95
OP
3585 (inputs
3586 `(("fftw" ,fftw)
adedbe95
OP
3587 ("ncurses" ,ncurses)
3588 ("pulseaudio" ,pulseaudio)))
3589 (arguments
e121cb87
TGR
3590 '(#:tests? #f
3591 ;; XXX Enable tests after patching them to use the system googletest.
3592 ;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
adedbe95
OP
3593 #:phases
3594 (modify-phases %standard-phases
e121cb87
TGR
3595 (add-after 'install 'install-examples
3596 (lambda* (#:key outputs #:allow-other-keys)
3597 (with-directory-excursion "../source/examples"
3598 (delete-file "mac_osx_config")
3599 (for-each (lambda (file)
3600 (install-file file
3601 (string-append
3602 (assoc-ref outputs "out")
3603 "/share/doc")))
3604 (find-files ".")))
adedbe95
OP
3605 #t)))))
3606 (home-page "https://github.com/dpayne/cli-visualizer/")
3607 (synopsis "Command-line audio visualizer")
3608 (description "@code{cli-visualizer} displays fast-Fourier
3609transforms (FFTs) of the sound being played, as well as other graphical
3610representations.")
3611 (license license:expat)))
c2c0d661
OP
3612
3613(define-public cava
3614 (package
3615 (name "cava")
042fa638 3616 (version "0.6.1")
c2c0d661 3617 (source (origin
a7fde1a8
RW
3618 (method git-fetch)
3619 (uri (git-reference
3620 (url "https://github.com/karlstav/cava.git")
3621 (commit version)))
3622 (file-name (git-file-name name version))
c2c0d661
OP
3623 (sha256
3624 (base32
a7fde1a8 3625 "1kvhqgijs29909w3sq9m0bslx2zxxn4b3i07kdz4hb0dqkppxpjy"))))
c2c0d661
OP
3626 (build-system gnu-build-system)
3627 (native-inputs
3628 `(("autoconf" ,autoconf)
3629 ("automake" ,automake)
3630 ("libtool" ,libtool)))
3631 (inputs
3632 `(("fftw" ,fftw)
3633 ("ncurses" ,ncurses)
3634 ("pulseaudio" ,pulseaudio)))
3635 (arguments
3636 `(#:configure-flags
3637 (list (string-append "PREFIX=" %output)
9e3e80ba 3638 (string-append "FONT_DIR=" %output "/share/consolefonts"))
c2c0d661
OP
3639 #:make-flags
3640 (let ((lib (string-append %output "/lib")))
3641 (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib)))
3642 #:phases
3643 (modify-phases %standard-phases
189be331 3644 (replace 'bootstrap
c2c0d661
OP
3645 (lambda* (#:key outputs #:allow-other-keys)
3646 (setenv "HOME" (getcwd))
3647 (invoke "sh" "autogen.sh")))
3648 (add-before 'build 'make-cava-ldflags
3649 (lambda* (#:key outputs #:allow-other-keys)
ee527187
MW
3650 (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
3651 #t))
c2c0d661
OP
3652 (add-after 'install 'data
3653 (lambda* (#:key outputs #:allow-other-keys)
3654 (for-each (lambda (file)
3655 (install-file file
3656 (string-append (assoc-ref outputs "out")
3657 "/share/doc/examples")))
ee527187
MW
3658 (find-files "example_files"))
3659 #t)))))
c2c0d661
OP
3660 (home-page "https://karlstav.github.io/cava/")
3661 (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio")
3662 (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal
3663using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.")
3664 (license license:expat)))
9073c875 3665
3666(define-public fluid-3
3667 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951"))
3668 (package
3669 (name "fluid-3")
3670 (version "2.1")
3671 (source
3672 (origin
3673 (method url-fetch)
3674 ;; Only one file is required, but the release bundles the whole
3675 ;; software which is 50MiB as tar and 200MiB unpacked. The website
3676 ;; directly links the soundfont release to the github file download.
3677 (uri (string-append "https://github.com/musescore/MuseScore/raw/"
3678 commit "/share/sound/FluidR3Mono_GM.sf3"))
3679 (file-name (string-append name "-" version ".sf3"))
3680 (sha256
3681 (base32
3682 "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg"))))
3683 (build-system trivial-build-system)
3684 (arguments
3685 `(#:modules ((guix build utils))
3686 #:builder
3687 (begin
3688 (use-modules (guix build utils))
3689 (let ((file (assoc-ref %build-inputs "source"))
3690 (out (string-append %output "/share/soundfonts")))
3691 (mkdir-p out)
e3cfef22
MW
3692 (copy-file file (string-append out "/FluidR3Mono_GM.sf3"))
3693 #t))))
9073c875 3694 (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound")
3695 (synopsis "Pro-quality GM soundfont")
3696 (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.")
3697 (license license:expat))))
5c40a69f
LF
3698
3699(define-public libfdk
3700 (let ((commit "2326faaf8f2cdf2c3a9108ccdaf1d7551aec543e")
3701 (revision "0"))
3702 (package
3703 (name "libfdk")
3704 ;; The latest upstream revision, with many bug fixes.
3705 (version (git-version "0.1.6" revision commit))
3706 (source
3707 (origin
3708 (method git-fetch)
3709 (uri (git-reference
3710 (url "https://github.com/mstorsjo/fdk-aac")
3711 (commit commit)))
3712 (file-name (git-file-name name version))
3713 (sha256
3714 (base32
3715 "0yy6ndd9d61bwl283vl1r5kva2a4acc0f4r9g0sza156f2abr9ws"))))
3716 (build-system gnu-build-system)
3717 (native-inputs
3718 `(("autoconf" ,autoconf)
3719 ("automake" ,automake)
3720 ("libtool" ,libtool)))
3721 (home-page "https://github.com/mstorsjo/fdk-aac")
3722 (synopsis "Fraunhofer FDK AAC library")
3723 (description "FDK is a library for encoding and decoding Advanced Audio
3724Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of
3725Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC
3726LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay)
3727and AAC-ELD (enhanced low delay) for real-time communication. The encoding
3728library supports sample rates up to 96 kHz and up to eight channels (7.1
3729surround).")
3730 (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE"
3731 "https://www.gnu.org/licenses/license-list.html#fdk")))))
ef8517f2
EB
3732
3733(define-public libopenshot-audio
3734 (package
3735 (name "libopenshot-audio")
799298eb 3736 (version "0.1.8")
ef8517f2
EB
3737 (source (origin
3738 (method git-fetch)
3739 (uri (git-reference
3740 (url "https://github.com/OpenShot/libopenshot-audio")
3741 (commit (string-append "v" version))))
3742 (file-name (git-file-name name version))
3743 (sha256
3744 (base32
799298eb 3745 "1fvp6nmf30xzkmcznakh8dv5vn9d7nq051pqcqv638hsfppkmcrl"))))
ef8517f2
EB
3746 (build-system cmake-build-system)
3747 (inputs
3748 `(("alsa-lib" ,alsa-lib)
3749 ;; The following are for JUCE GUI components:
3750 ("libx11" ,libx11)
3751 ("freetype" ,freetype)
3752 ("libxrandr" ,libxrandr)
3753 ("libxinerama" ,libxinerama)
3754 ("libxcursor" ,libxcursor)))
3755 (arguments
3756 `(#:tests? #f ;there are no tests
3757 #:configure-flags
3758 (list (string-append "-DCMAKE_CXX_FLAGS=-I"
3759 (assoc-ref %build-inputs "freetype")
3760 "/include/freetype2"))))
3761 (home-page "https://openshot.org")
3762 (synopsis "Audio editing and playback for OpenShot")
3763 (description "OpenShot Audio Library (libopenshot-audio) allows
3764high-quality editing and playback of audio, and is based on the JUCE
3765library.")
3766 (license license:lgpl3+)))
ea3510f8
RH
3767
3768(define-public faudio
3769 (package
3770 (name "faudio")
c44db46f 3771 (version "19.11")
ea3510f8
RH
3772 (source
3773 (origin
3774 (method git-fetch)
3775 (uri (git-reference
3776 (url "https://github.com/FNA-XNA/FAudio.git")
3777 (commit version)))
543f7ad1 3778 (file-name (git-file-name name version))
ea3510f8 3779 (sha256
c44db46f 3780 (base32 "0ckpr6ffz8ssfh1y850dhip5s5jv0j6n90qz5yx1v9d6gpwf08rp"))))
ea3510f8
RH
3781 (arguments
3782 '(#:tests? #f ; No tests.
3783 #:configure-flags '("-DFFMPEG=ON")))
3784 (build-system cmake-build-system)
3785 (native-inputs `(("pkg-config" ,pkg-config)))
3786 (inputs `(("ffmpeg" ,ffmpeg)
3787 ("sdl2" ,sdl2)))
3788 (home-page "https://github.com/FNA-XNA/FAudio")
3789 (synopsis "XAudio reimplementation")
3790 (description "FAudio is an XAudio reimplementation that focuses solely on
3791developing fully accurate DirectX Audio runtime libraries.")
3792 (license license:zlib)))
e13714b6
AI
3793
3794(define-public gnaural
3795 (package
3796 (name "gnaural")
3797 (version "20110606")
3798 (source
3799 (origin
3800 (method url-fetch)
3801 (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_"
3802 version ".tar.xz"))
3803 (sha256
3804 (base32
3805 "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi"))))
3806 (build-system gnu-build-system)
3807 (inputs
3808 `(("alsa-lib" ,alsa-lib)
3809 ("gtk+" ,gtk+-2)
3810 ("libsndfile" ,libsndfile)
3811 ("portaudio" ,portaudio)))
3812 (native-inputs
3813 `(("pkg-config" ,pkg-config)))
3814 (home-page "http://gnaural.sourceforge.net/")
3815 (synopsis "Binaural beat synthesizer")
3816 (description "Gnaural is a programmable auditory binaural beat synthesizer
3817intended to be used for brainwave entrainment. Gnaural supports creation of
3818binaural beat tracks of different frequencies and exporting of tracks into
3819different audio formats. Gnaural can also be linked over the internet with
3820other Gnaural instances, allowing synchronous sessions between many users.")
3821 (license license:gpl2+)))
2f4698d7
MW
3822
3823(define-public darkice
3824 (package
3825 (name "darkice")
3826 (version "1.3")
3827 (source (origin
3828 (method url-fetch)
3829 (uri (string-append "mirror://sourceforge/darkice/darkice/"
3830 version "/darkice-" version ".tar.gz"))
3831 (sha256
3832 (base32 "1rlxds7ssq7nk2in4s46xws7xy9ylxsqgcz85hxjgh17lsm0y39c"))
3833 (patches
3834 (search-patches "darkice-workaround-fpermissive-error.patch"))))
3835 (build-system gnu-build-system)
3836 (native-inputs `(("pkg-config" ,pkg-config)))
3837 (inputs `(("lame" ,lame)
3838 ("libvorbis" ,libvorbis)
3839 ("opus" ,opus)
3840 ("twolame" ,twolame)
3841 ("alsa-lib" ,alsa-lib)
3842 ("pulseaudio" ,pulseaudio)
3843 ("jack" ,jack-1)
3844 ("libsamplerate" ,libsamplerate)))
3845 (arguments
3846 `(#:configure-flags
3847 (list (string-append "--with-lame-prefix="
3848 (assoc-ref %build-inputs "lame")))))
3849 (home-page "http://www.darkice.org/")
3850 (synopsis "Live audio streamer")
3851 (description "DarkIce is a live audio streamer. It takes audio input from
3852a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio
3853stream to one or more IceCast and/or ShoutCast servers.")
3854 (license license:gpl3+)))
0f2ce448
AT
3855
3856(define-public libltc
3857 (package
3858 (name "libltc")
3859 (version "1.3.1")
3860 (source
3861 (origin
3862 (method url-fetch)
3863 (uri
3864 (string-append "https://github.com/x42/libltc/releases/download/v"
3865 version "/libltc-" version ".tar.gz"))
3866 (sha256
3867 (base32
3868 "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh"))))
3869 (build-system gnu-build-system)
3870 (arguments
3871 `(#:parallel-tests? #f)) ;tests fail otherwise
3872 (native-inputs
3873 `(("doxygen" ,doxygen)
3874 ("pkg-config" ,pkg-config)))
3875 (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio")
3876 (description "Libltc is a POSIX-C Library for handling
3877@dfn{Linear/Longitudinal Time Code} (LTC) data.")
3878 (home-page "https://x42.github.io/libltc/")
3879 (license license:lgpl3+)))
74f9a8fb
AT
3880
3881(define-public redkite
3882 (package
3883 (name "redkite")
3884 (version "0.6.2")
3885 (source
3886 (origin
83ba0e42
MB
3887 (method git-fetch)
3888 (uri (git-reference
3889 (url "https://gitlab.com/geontime/redkite.git")
3890 (commit (string-append "v" version))))
3891 (file-name (git-file-name name version))
74f9a8fb
AT
3892 (sha256
3893 (base32
83ba0e42 3894 "1i874izajbdhlfacwwj84qrsxf7g4y6nblzxalrkzaap9sa7d1r6"))))
74f9a8fb
AT
3895 (build-system cmake-build-system)
3896 (arguments
3897 `(#:tests? #f)) ;no tests included
3898 (inputs
3899 `(("cairo" ,cairo)))
3900 (native-inputs
3901 `(("pkg-config", pkg-config)))
3902 (synopsis "Small GUI toolkit")
3903 (description "Redkite is a small GUI toolkit developed in C++17 and
3904inspired from other well known GUI toolkits such as Qt and GTK. It is
3905minimal on purpose and is intended to be statically linked to applications,
3906therefore satisfying any requirements they may have to be self contained,
3907as is the case with audio plugins.")
3908 (home-page "https://gitlab.com/geontime/redkite")
3909 (license license:gpl3+)))
caa1f6a8
AT
3910
3911(define-public carla
3912 (package
3913 (name "carla")
3914 (version "2.0.0")
3915 (source
3916 (origin
3917 (method git-fetch)
3918 (uri
3919 (git-reference
3920 (url "https://github.com/falkTX/Carla.git")
3921 (commit (string-append "v" version))))
3922 (file-name (git-file-name name version))
3923 (sha256
3924 (base32
3925 "0fqgncqlr86n38yy7pa118mswfacmfczj7w9xx6c6k0jav3wk29k"))))
3926 (build-system gnu-build-system)
3927 (arguments
3928 `(#:tests? #f ; no "check" target
3929 #:make-flags
3930 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
3931 #:phases
3932 (modify-phases %standard-phases
3933 (add-before 'build 'set-CC-variable-and-show-features
3934 (lambda _
3935 (setenv "CC" "gcc")
3936 (invoke "make" "features")))
3937 (delete 'configure))))
3938 (inputs
3939 `(("alsa-lib" ,alsa-lib)
3940 ("ffmpeg" ,ffmpeg)
3941 ("fluidsynth" ,fluidsynth)
3942 ("file" ,file)
3943 ("liblo" ,liblo)
3944 ("libsndfile" ,libsndfile)
3945 ("gtk+" ,gtk+)
3946 ("python-pyliblo" ,python-pyliblo)
3947 ("python-pyqt" ,python-pyqt)
3948 ("python-rdflib" ,python-rdflib)
3949 ;; python-pyqt shows the following error without python-wrapper:
3950 ;; Error while finding module specification for 'PyQt5.uic.pyuic'
3951 ;; (ModuleNotFoundError: No module named 'PyQt5')
3952 ("python-wrapper" ,python-wrapper)
3953 ("libx11" ,libx11)
3954 ("qtbase" ,qtbase)
3955 ("zlib" ,zlib)))
3956 (native-inputs
3957 `(("pkg-config" ,pkg-config)))
3958 (home-page "https://kx.studio/Applications:Carla")
3959 (synopsis "Audio plugin host")
3960 (description "Carla is a modular audio plugin host, with features like
3961transport control, automation of parameters via MIDI CC and remote control
3962over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2,
3963and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the
3964default and preferred audio driver but also supports native drivers like ALSA.")
3965 (license license:gpl2+)))
615a4fbf
CLW
3966
3967(define-public ecasound
3968 (package
3969 (name "ecasound")
ec67d069 3970 (version "2.9.3")
615a4fbf
CLW
3971 (source (origin
3972 (method url-fetch)
694c2976 3973 (uri (string-append "https://nosignal.fi/download/ecasound-"
615a4fbf
CLW
3974 version ".tar.gz"))
3975 (sha256
ec67d069 3976 (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6"))))
615a4fbf
CLW
3977 (build-system gnu-build-system)
3978 (native-inputs `(("pkg-config" ,pkg-config)))
ec67d069
TGR
3979 ;; It would be nice to add mikmod to inputs if that gets packaged
3980 ;; eventually.
615a4fbf
CLW
3981 (inputs `(("alsa-lib" ,alsa-lib)
3982 ("jack" ,jack-1)
3983 ("mpg123" ,mpg123)
3984 ("lame" ,lame)
3985 ("vorbis-tools" ,vorbis-tools)
3986 ("faad2" ,faad2)
3987 ("flac" ,flac)
3988 ("timidity++" ,timidity++)
3989 ("libsndfile" ,libsndfile)
3990 ("libsamplerate" ,libsamplerate)
3991 ("ncurses" ,ncurses)
3992 ("ladspa" ,ladspa)
3993 ("lilv" ,lilv)))
694c2976 3994 (home-page "https://nosignal.fi/ecasound/index.php")
615a4fbf
CLW
3995 (synopsis "Multitrack audio processing")
3996 (description "Ecasound is a software package designed for multitrack audio
3997processing. It can be used for simple tasks like audio playback, recording and
3998format conversions, as well as for multitrack effect processing, mixing,
3999recording and signal recycling. Ecasound supports a wide range of audio inputs,
4000outputs and effect algorithms. Effects and audio objects can be combined in
4001various ways, and their parameters can be controlled by operator objects like
4002oscillators and MIDI-CCs. A versatile console mode user-interface is included
4003in the package.")
d83bb797
JW
4004 ;; As an exception to the above, the C, C++ and python implementations
4005 ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL
4006 ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications
615a4fbf
CLW
4007 ;; that are not licensed under GPL.
4008 (license (list license:gpl2 license:lgpl2.1))))
5d703da3
AT
4009
4010(define-public libaudec
4011 (package
4012 (name "libaudec")
4013 (version "0.2")
4014 (source
4015 (origin
4016 (method git-fetch)
4017 (uri (git-reference
4018 (url "https://git.zrythm.org/git/libaudec")
4019 (commit (string-append "v" version))))
4020 (file-name (git-file-name name version))
4021 (sha256
4022 (base32
4023 "0lfydvs92b0hr72z71ci3yi356rjzi162pgms8dphgg18bz8dazv"))))
4024 (build-system meson-build-system)
4025 (arguments
4026 `(#:configure-flags `("-Denable_tests=true -Denable_ffmpeg=true")))
4027 (inputs
4028 `(("libsamplerate" ,libsamplerate)
4029 ("libsndfile" ,libsndfile)
4030 ("ffmpeg" ,ffmpeg)))
4031 (native-inputs
4032 `(("pkg-config", pkg-config)))
4033 (synopsis "Library for reading and resampling audio files")
4034 (description "libaudec is a wrapper library over ffmpeg, sndfile and
4035libsamplerate for reading and resampling audio files, based on Robin Gareus'
4036@code{audio_decoder} code.")
4037 (home-page "https://git.zrythm.org/cgit/libaudec")
4038 (license license:agpl3+)))