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