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