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