gnu: qjackctl: Build with JACK 1.
[jackhill/guix/guix.git] / gnu / packages / audio.scm
CommitLineData
fb68469f 1;;; GNU Guix --- Functional package management for GNU
461160c5 2;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
9f1cdd9d 3;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
0390a520 4;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
d739f481 5;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
1207a0c3 6;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
a3c57693 7;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
eb5378f9 8;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
c2b411c2 9;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
9a4c032c 10;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
2df984f2 11;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
fb68469f
RW
12;;;
13;;; This file is part of GNU Guix.
14;;;
15;;; GNU Guix is free software; you can redistribute it and/or modify it
16;;; under the terms of the GNU General Public License as published by
17;;; the Free Software Foundation; either version 3 of the License, or (at
18;;; your option) any later version.
19;;;
20;;; GNU Guix is distributed in the hope that it will be useful, but
21;;; WITHOUT ANY WARRANTY; without even the implied warranty of
22;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23;;; GNU General Public License for more details.
24;;;
25;;; You should have received a copy of the GNU General Public License
26;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
27
28(define-module (gnu packages audio)
29 #:use-module (guix packages)
30 #:use-module (guix download)
31 #:use-module (guix git-download)
d49976ed 32 #:use-module (guix utils)
fb68469f
RW
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (guix build-system gnu)
c54a8981 35 #:use-module (guix build-system waf)
7c92efff 36 #:use-module (guix build-system trivial)
4bddd14c 37 #:use-module (guix build-system cmake)
a91d72e2 38 #:use-module (guix build-system python)
fb68469f 39 #:use-module (gnu packages)
d55f912a 40 #:use-module (gnu packages algebra)
9f1cdd9d 41 #:use-module (gnu packages autotools)
fcbeb00b 42 #:use-module (gnu packages avahi)
88efb2c3 43 #:use-module (gnu packages boost)
a76abae1 44 #:use-module (gnu packages backup)
7c92efff 45 #:use-module (gnu packages base)
fda85ca6 46 #:use-module (gnu packages bison)
971ebdc8 47 #:use-module (gnu packages check)
7c92efff 48 #:use-module (gnu packages compression)
88efb2c3 49 #:use-module (gnu packages curl)
fb68469f 50 #:use-module (gnu packages databases)
8ae60404 51 #:use-module (gnu packages emacs)
754a98ae 52 #:use-module (gnu packages file)
fda85ca6 53 #:use-module (gnu packages flex)
11d4800a
RW
54 #:use-module (gnu packages fltk)
55 #:use-module (gnu packages fontutils)
fda85ca6 56 #:use-module (gnu packages gettext)
88efb2c3 57 #:use-module (gnu packages glib)
f3ab6ad3 58 #:use-module (gnu packages gtk)
88efb2c3 59 #:use-module (gnu packages gnome)
8ae60404 60 #:use-module (gnu packages gnunet) ; libmicrohttpd
fcbeb00b 61 #:use-module (gnu packages gperf)
d739f481 62 #:use-module (gnu packages image)
9ffee457 63 #:use-module (gnu packages ncurses)
f3ab6ad3 64 #:use-module (gnu packages qt)
c54a8981 65 #:use-module (gnu packages linux)
8ae60404 66 #:use-module (gnu packages llvm)
88efb2c3
RW
67 #:use-module (gnu packages mp3) ;taglib
68 #:use-module (gnu packages perl)
c54a8981
RW
69 #:use-module (gnu packages pkg-config)
70 #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate
d55f912a 71 #:use-module (gnu packages python)
5279eb6f 72 #:use-module (gnu packages rdf)
c54a8981 73 #:use-module (gnu packages readline)
8ae60404 74 #:use-module (gnu packages tls)
e87c7ec2 75 #:use-module (gnu packages video)
8ae60404 76 #:use-module (gnu packages vim) ;xxd
02979664 77 #:use-module (gnu packages webkit)
cd381c31 78 #:use-module (gnu packages wxwidgets)
c54a8981 79 #:use-module (gnu packages xiph)
da49086a 80 #:use-module (gnu packages xml)
caf9055c 81 #:use-module (gnu packages xorg)
70fc29d9 82 #:use-module (gnu packages zip)
da49086a 83 #:use-module (srfi srfi-1))
fb68469f 84
eb0fb087
RW
85(define-public alsa-modular-synth
86 (package
87 (name "alsa-modular-synth")
61eecd71 88 (version "2.1.2")
eb0fb087
RW
89 (source (origin
90 (method url-fetch)
de67e922
LF
91 (uri (string-append "mirror://sourceforge/alsamodular/alsamodular"
92 "/" version "/ams-" version ".tar.bz2"))
eb0fb087
RW
93 (sha256
94 (base32
61eecd71 95 "1azbrhpfk4nnybr7kgmc7w6al6xnzppg853vas8gmkh185kk11l0"))))
eb0fb087 96 (build-system gnu-build-system)
ee6a88b1 97 (arguments
6670c99c
DC
98 `(#:configure-flags
99 '("--enable-qt5"
100 "CXXFLAGS=-std=gnu++11")
afadb05e
RW
101 #:phases
102 (modify-phases %standard-phases
103 ;; Insert an extra space between linker flags.
104 (add-before 'configure 'add-missing-space
105 (lambda _
106 (substitute* "configure"
107 (("LIBS\\+=\\$LIBSsave") "LIBS+=\" $LIBSsave\"")
108 (("CFLAGS\\+=\\$CFLAGSsave") "CFLAGS+=\" $CFLAGSsave\""))
109 #t)))))
eb0fb087
RW
110 (inputs
111 `(("alsa-lib" ,alsa-lib)
112 ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to
113 ;; license incompatibility.
114 ("clalsadrv" ,clalsadrv)
115 ("fftw" ,fftw)
116 ("jack" ,jack-1)
117 ("ladspa" ,ladspa)
118 ("liblo" ,liblo)
df9031e1
EF
119 ("qtbase" ,qtbase)
120 ("qttools" ,qttools)))
eb0fb087
RW
121 (native-inputs
122 `(("pkg-config" ,pkg-config)))
123 (home-page "http://alsamodular.sourceforge.net/")
124 (synopsis "Realtime modular synthesizer and effect processor")
125 (description
126 "AlsaModularSynth is a digital implementation of a classical analog
127modular synthesizer system. It uses virtual control voltages to control the
128parameters of the modules. The control voltages which control the frequency
129e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled
130Filter) modules follow the convention of 1V / Octave.")
131 (license license:gpl2)))
132
d55f912a
RW
133(define-public aubio
134 (package
135 (name "aubio")
136 (version "0.4.1")
137 (source (origin
138 (method url-fetch)
139 (uri (string-append
140 "http://aubio.org/pub/aubio-" version ".tar.bz2"))
141 (sha256
142 (base32
143 "15f6nf76y7iyl2kl4ny7ky0zpxfxr8j3902afvd6ydnnkh5dzmr5"))))
144 (build-system waf-build-system)
145 (arguments
146 `(#:tests? #f ; no check target
147 #:configure-flags
148 '("--enable-fftw3f"
149 "--enable-jack"
150 "--enable-sndfile"
151 "--enable-samplerate"
152 ;; enable compilation with avcodec once available
153 "--disable-avcodec")
154 #:python ,python-2))
155 (inputs
156 `(("jack" ,jack-1)
d55f912a
RW
157 ("libsndfile" ,libsndfile)
158 ("libsamplerate" ,libsamplerate)
159 ("fftwf" ,fftwf)))
160 (native-inputs
161 `(("pkg-config" ,pkg-config)))
162 (home-page "http://aubio.org/")
a124bbd2 163 (synopsis "Library for audio labelling")
d55f912a
RW
164 (description
165 "aubio is a tool designed for the extraction of annotations from audio
166signals. Its features include segmenting a sound file before each of its
167attacks, performing pitch detection, tapping the beat and producing MIDI
168streams from live audio.")
169 (license license:gpl3+)))
170
d49976ed
RW
171(define (ardour-rpath-phase major-version)
172 `(lambda* (#:key outputs #:allow-other-keys)
173 (let ((libdir (string-append (assoc-ref outputs "out")
174 "/lib/ardour" ,major-version)))
175 (substitute* "wscript"
176 (("linker_flags = \\[\\]")
177 (string-append "linker_flags = [\""
178 "-Wl,-rpath="
179 libdir ":"
180 libdir "/backends" ":"
181 libdir "/engines" ":"
182 libdir "/panners" ":"
183 libdir "/surfaces" ":"
184 libdir "/vamp" "\"]"))))
185 #t))
186
60725232 187(define-public ardour
88efb2c3
RW
188 (package
189 (name "ardour")
461160c5 190 (version "5.8")
88efb2c3 191 (source (origin
88efb2c3
RW
192 (method git-fetch)
193 (uri (git-reference
194 (url "git://git.ardour.org/ardour/ardour.git")
195 (commit version)))
196 (snippet
b16043a3
RW
197 ;; Ardour expects this file to exist at build time. The revision
198 ;; is the output of
199 ;; git describe HEAD | sed 's/^[A-Za-z]*+//'
02ecdeaa 200 `(call-with-output-file
88efb2c3
RW
201 "libs/ardour/revision.cc"
202 (lambda (port)
02ecdeaa
DT
203 (format port ,(string-append "#include \"ardour/revision.h\"
204namespace ARDOUR { const char* revision = \"" version "\" ; }")))))
88efb2c3
RW
205 (sha256
206 (base32
461160c5 207 "1lcvslrcw6g4kp9w0h1jx46x6ilz4nzz0k2yrw4gd545k1rwx0c1"))
88efb2c3
RW
208 (file-name (string-append name "-" version))))
209 (build-system waf-build-system)
210 (arguments
b5fc72ff 211 `(#:configure-flags '("--cxx11" ; required by gtkmm
ba5c8567 212 "--no-phone-home" ; don't contact ardour.org
5f0c6496
RW
213 "--freedesktop" ; install .desktop file
214 "--test") ; build unit tests
92e4fbe2 215 #:phases
21481a28
RW
216 (modify-phases %standard-phases
217 (add-after
218 'unpack 'set-rpath-in-LDFLAGS
d49976ed 219 ,(ardour-rpath-phase (version-prefix version 1))))
5f0c6496 220 #:test-target "test"
88efb2c3
RW
221 #:python ,python-2))
222 (inputs
223 `(("alsa-lib" ,alsa-lib)
224 ("aubio" ,aubio)
225 ("lrdf" ,lrdf)
226 ("boost" ,boost)
227 ("atkmm" ,atkmm)
228 ("cairomm" ,cairomm)
c5edbb97 229 ("eudev" ,eudev)
88efb2c3
RW
230 ("gtkmm" ,gtkmm-2)
231 ("glibmm" ,glibmm)
232 ("libart-lgpl" ,libart-lgpl)
233 ("libgnomecanvasmm" ,libgnomecanvasmm)
234 ("pangomm" ,pangomm)
235 ("liblo" ,liblo)
236 ("libsndfile" ,libsndfile)
237 ("libsamplerate" ,libsamplerate)
238 ("libxml2" ,libxml2)
239 ("libogg" ,libogg)
240 ("libvorbis" ,libvorbis)
241 ("flac" ,flac)
242 ("lv2" ,lv2)
243 ("vamp" ,vamp)
244 ("curl" ,curl)
c96cb01a
DC
245 ("fftw" ,fftw)
246 ("fftwf" ,fftwf)
88efb2c3
RW
247 ("jack" ,jack-1)
248 ("serd" ,serd)
249 ("sord" ,sord)
250 ("sratom" ,sratom)
251 ("suil" ,suil)
252 ("lilv" ,lilv)
971ebdc8 253 ("readline" ,readline)
88efb2c3
RW
254 ("redland" ,redland)
255 ("rubberband" ,rubberband)
a76abae1 256 ("libarchive" ,libarchive)
88efb2c3
RW
257 ("taglib" ,taglib)
258 ("python-rdflib" ,python-rdflib)))
259 (native-inputs
260 `(("perl" ,perl)
971ebdc8 261 ("cppunit" ,cppunit)
ba5c8567
RW
262 ("itstool" ,itstool)
263 ("gettext" ,gettext-minimal)
88efb2c3
RW
264 ("pkg-config" ,pkg-config)))
265 (home-page "http://ardour.org")
266 (synopsis "Digital audio workstation")
267 (description
268 "Ardour is a multi-channel digital audio workstation, allowing users to
269record, edit, mix and master audio and MIDI projects. It is targeted at audio
270engineers, musicians, soundtrack editors and composers.")
271 (license license:gpl2+)))
272
cd381c31
KK
273(define-public audacity
274 (package
275 (name "audacity")
276 (version "2.1.3")
277 (source
278 (origin
279 (method url-fetch)
280 (uri (string-append "https://github.com/audacity/audacity/archive"
281 "/Audacity-" version ".tar.gz"))
282 (sha256
283 (base32 "11mx7gb4dbqrgfp7hm0154x3m76ddnmhf2675q5zkxn7jc5qfc6b"))))
284 (build-system gnu-build-system)
285 (inputs
286 ;; TODO: Add portSMF and libwidgetextra once they're packaged. In-tree
287 ;; versions shipping with Audacity are used for now.
288 `(("wxwidgets" ,wxwidgets-gtk2)
289 ("gtk" ,gtk+-2)
290 ("alsa-lib" ,alsa-lib)
291 ("jack" ,jack-1)
292 ("expat" ,expat)
293 ("ffmpeg" ,ffmpeg)
294 ("lame" ,lame)
295 ("flac" ,flac)
296 ("libid3tag" ,libid3tag)
297 ("libmad" ,libmad)
298 ("libsbsms" ,libsbsms)
299 ("libsndfile" ,libsndfile)
300 ("soundtouch" ,soundtouch)
301 ("soxr" ,soxr) ;replaces libsamplerate
302 ("twolame" ,twolame)
303 ("vamp" ,vamp)
304 ("libvorbis" ,libvorbis)
305 ("lv2" ,lv2)
306 ("lilv" ,lilv)
307 ("portaudio" ,portaudio)))
308 (native-inputs
309 `(("autoconf" ,autoconf)
310 ("automake" ,automake)
311 ("gettext" ,gettext-minimal) ;for msgfmt
312 ("libtool" ,libtool)
313 ("pkg-config" ,pkg-config)
314 ("python" ,python-2)
315 ("which" ,which)))
316 (arguments
317 '(#:configure-flags
318 (let ((libid3tag (assoc-ref %build-inputs "libid3tag"))
319 (libmad (assoc-ref %build-inputs "libmad")))
320 (list
321 ;; Loading FFmpeg dynamically is problematic.
322 "--disable-dynamic-loading"
323 ;; libid3tag and libmad provide no .pc files, so pkg-config fails to
324 ;; find them. Force their inclusion.
325 (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include")
326 (string-append "ID3TAG_LIBS=-L" libid3tag "/lib -lid3tag -lz")
327 (string-append "LIBMAD_CFLAGS=-I" libmad "/include")
328 (string-append "LIBMAD_LIBS=-L" libmad "/lib -lmad")))
329 #:phases
330 (modify-phases %standard-phases
331 ;; FFmpeg is only detected if autoreconf runs.
332 (add-before 'configure 'autoreconf
333 (lambda _
334 (zero? (system* "autoreconf" "-vfi")))))
335 ;; The test suite is not "well exercised" according to the developers,
336 ;; and fails with various errors. See
337 ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>.
338 #:tests? #f))
339 (home-page "http://audacity.sourceforge.net/")
340 (synopsis "Software for recording and editing sounds")
341 (description
342 "Audacity is a multi-track audio editor designed for recording, playing
343and editing digital audio. It features digital effects and spectrum analysis
344tools.")
345 (license license:gpl2+)))
346
497e9a82
RW
347(define-public azr3
348 (package
349 (name "azr3")
350 (version "1.2.3")
351 (source (origin
352 (method url-fetch)
353 (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-"
354 version
355 ".tar.bz2"))
356 (sha256
357 (base32
204adc30
RW
358 "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc"))
359 (patches (search-patches "azr3.patch"))))
497e9a82
RW
360 (build-system gnu-build-system)
361 (arguments
362 `(#:tests? #f ; no check target
363 #:make-flags
364 (list "LV2PEG=ttl2c"
204adc30
RW
365 "CXXFLAGS=-std=gnu++11"
366 "CFLAGS=-std=gnu++11"
497e9a82
RW
367 (string-append "prefix=" %output)
368 (string-append "pkgdatadir=" %output "/share/azr3-jack"))))
369 (inputs
370 `(("gtkmm" ,gtkmm-2)
371 ("lvtk" ,lvtk)
372 ("jack" ,jack-1)
f753846b 373 ("lash" ,lash)))
497e9a82
RW
374 (native-inputs
375 `(("pkg-config" ,pkg-config)))
376 (home-page "http://ll-plugins.nongnu.org/azr3/")
377 (synopsis "Tonewheel organ synthesizer")
378 (description
379 "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ
380with drawbars, distortion and rotating speakers. The organ has three
381sections, two polyphonic sections with nine drawbars each and one monophonic
382bass section with five drawbars. A standalone JACK application and LV2
383plugins are provided.")
384 (license license:gpl2)))
385
f62a8417
RW
386(define-public calf
387 (package
388 (name "calf")
389 (version "0.0.60")
390 (source (origin
391 (method url-fetch)
73cea74d
RW
392 (uri (string-append "http://calf-studio-gear.org/files/calf-"
393 version ".tar.gz"))
f62a8417
RW
394 (sha256
395 (base32
396 "019fwg00jv217a5r767z7szh7vdrarybac0pr2sk26xp81kibrx9"))))
397 (build-system gnu-build-system)
398 (inputs
399 `(("fluidsynth" ,fluidsynth)
400 ("expat" ,expat)
401 ("glib" ,glib)
402 ("gtk" ,gtk+-2)
403 ("cairo" ,cairo)
404 ("lash" ,lash)
405 ("jack" ,jack-1)
406 ("lv2" ,lv2)
407 ("ladspa" ,ladspa)
408 ("fftw" ,fftw)))
409 (native-inputs
410 `(("pkg-config" ,pkg-config)))
411 (native-search-paths
412 (list (search-path-specification
413 (variable "LV2_PATH")
414 (files '("lib/lv2")))))
415 (home-page "http://calf.sourceforge.net/")
416 (synopsis "Audio plug-in pack for LV2 and JACK environments")
417 (description
418 "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments.
419The suite contains lots of effects (delay, modulation, signal processing,
420filters, equalizers, dynamics, distortion and mastering effects),
421instruments (SF2 player, organ simulator and a monophonic synthesizer) and
422tools (analyzer, mono/stereo tools, crossovers).")
423 ;; calfjackhost is released under GPLv2+
424 ;; The plugins are released under LGPLv2.1+
425 (license (list license:lgpl2.1+ license:gpl2+))))
426
c3cc7d41
KK
427(define-public espeak
428 (package
429 (name "espeak")
430 (version "1.48.04")
431 (source (origin
432 (method url-fetch)
433 (uri (string-append "mirror://sourceforge/espeak/espeak/"
434 "espeak-" (version-major+minor version)
435 "/espeak-" version "-source.zip"))
436 (sha256
437 (base32
438 "0n86gwh9pw0jqqpdz7mxggllfr8k0r7pc67ayy7w5z6z79kig6mz"))
439 (modules '((guix build utils)))
440 (snippet
441 ;; remove prebuilt binaries
442 '(delete-file-recursively "linux_32bit"))))
443 (build-system gnu-build-system)
444 (arguments
445 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
446 (string-append "DATADIR="
447 (assoc-ref %outputs "out")
448 "/share/espeak-data")
449 (string-append "LDFLAGS=-Wl,-rpath="
450 (assoc-ref %outputs "out")
451 "/lib")
452 "AUDIO=pulseaudio")
453 #:tests? #f ; no check target
454 #:phases
455 (modify-phases %standard-phases
456 (replace 'configure
457 (lambda _
458 (chdir "src")
459 ;; We use version 19 of the PortAudio library, so we must copy the
460 ;; corresponding file to be sure that espeak compiles correctly.
461 (copy-file "portaudio19.h" "portaudio.h")
462 (substitute* "Makefile"
463 (("/bin/ln") "ln"))
464 #t)))))
465 (inputs
466 `(("portaudio" ,portaudio)
467 ("pulseaudio" ,pulseaudio)))
468 (native-inputs `(("unzip" ,unzip)))
469 (home-page "http://espeak.sourceforge.net/")
470 (synopsis "Software speech synthesizer")
471 (description "eSpeak is a software speech synthesizer for English and
472other languages. eSpeak uses a \"formant synthesis\" method. This allows many
473languages to be provided in a small size. The speech is clear, and can be used
474at high speeds, but is not as natural or smooth as larger synthesizers which are
475based on human speech recordings.")
476 (license license:gpl3+)))
477
8f941dd2
RW
478(define-public infamous-plugins
479 (package
480 (name "infamous-plugins")
481 (version "0.2.02")
482 (source (origin
483 (method url-fetch)
484 (uri (string-append "https://github.com/ssj71/infamousPlugins/"
485 "archive/v" version ".tar.gz"))
486 (file-name (string-append name "-" version ".tar.gz"))
487 (sha256
488 (base32
489 "0qm3ak07vc1l3f5c3c2lq9gkfknlxwn8ks03cysw1pk8hj7dwnv6"))))
490 (build-system cmake-build-system)
d6618941
EF
491 (arguments
492 `(#:tests? #f ; There are no tests
493 #:phases
494 (modify-phases %standard-phases
495 (add-after 'unpack 'remove-compiler-flags
496 (lambda _
497 (substitute* '("src/casynth/CMakeLists.txt"
498 "src/cheapdist/CMakeLists.txt"
499 "src/duffer/CMakeLists.txt"
500 "src/envfollower/CMakeLists.txt"
501 "src/ewham/CMakeLists.txt"
502 "src/hip2b/CMakeLists.txt"
503 "src/lushlife/CMakeLists.txt"
504 "src/powercut/CMakeLists.txt"
505 "src/powerup/CMakeLists.txt"
506 "src/stuck/CMakeLists.txt")
507 (("-msse2 -mfpmath=sse") ""))
508 #t)))))
8f941dd2
RW
509 (inputs
510 `(("cairo" ,cairo)
511 ("fftwf" ,fftwf)
512 ("lv2" ,lv2)
513 ("ntk" ,ntk)
514 ("zita-resampler" ,zita-resampler)))
515 (native-inputs
516 `(("pkg-config" ,pkg-config)))
517 (home-page "http://ssj71.github.io/infamousPlugins")
518 (synopsis "LV2 plugins for live use")
519 (description
520 "The infamous plugins are a collection of LV2 audio plugins for live
521performances. The plugins include a cellular automaton synthesizer, an
522envelope follower, distortion effects, tape effects and more.")
523 (license license:gpl2+)))
524
18f3d92b
FPS
525(define-public swh-plugins-lv2
526 (package
527 (name "swh-plugins-lv2")
528 (version "1.0.16")
529 (source (origin
530 (method url-fetch)
531 (uri (string-append "https://github.com/swh/"
532 "lv2/archive/v" version ".tar.gz"))
533 (file-name (string-append name "-" version ".tar.gz"))
534 (sha256
535 (base32
536 "0j1mih0lp4fds07knp5i32in515sh0df1qi6694pmyz2wqnm295w"))))
537 (build-system gnu-build-system)
538 (arguments
539 `(#:tests? #f ; no check target
540 #:make-flags (list "CC=gcc"
541 (string-append "PREFIX="
542 (assoc-ref %outputs "out")))
543 #:phases
544 (modify-phases %standard-phases
545 ;; no configure script
546 (delete 'configure)
547 (add-after 'unpack 'patch-makefile-and-enter-directory
548 ;; The default install target doesn't install, but the
549 ;; "install-system" target does.
550 (lambda _
551 (substitute* "Makefile"
552 (("install:") "install: install-system"))
553 #t)))))
554 (inputs
555 `(("lv2" ,lv2)
556 ("fftwf" ,fftwf)))
557 (native-inputs
558 `(("libxslt" ,libxslt)
559 ("pkg-config" ,pkg-config)))
560 (home-page "http://plugin.org.uk")
561 (synopsis "SWH plugins in LV2 format")
562 (description
563 "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin
564classes include: dynamics (compressor, limiter), time (delay, chorus,
565flanger), ringmodulator, distortion, filters, pitchshift, oscillators,
566emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.")
567 (license license:gpl3+)))
568
fda85ca6
RW
569(define-public csound
570 (package
571 (name "csound")
efd37722 572 (version "6.05")
fda85ca6
RW
573 (source (origin
574 (method url-fetch)
575 (uri (string-append
576 "mirror://sourceforge/csound/csound6/Csound"
577 version "/Csound" version ".tar.gz"))
578 (sha256
579 (base32
c91d3fb7 580 "0a1sni6lr7qpwywpggbkp0ia3h9bwwgf9i87gsag8ra2h30v82hd"))
fc1adab1 581 (patches (search-patches "csound-header-ordering.patch"))))
fda85ca6 582 (build-system cmake-build-system)
00c16d5b
LC
583 (arguments
584 ;; Work around this error on x86_64 with libc 2.22+:
585 ;; libmvec.so.1: error adding symbols: DSO missing from command line
586 (if (string-prefix? "x86_64" (or (%current-target-system) (%current-system)))
587 '(#:configure-flags '("-DCMAKE_EXE_LINKER_FLAGS=-lmvec"))
588 '()))
fda85ca6
RW
589 (inputs
590 `(("alsa-lib" ,alsa-lib)
591 ("boost" ,boost)
592 ("pulseaudio" ,pulseaudio)
593 ("libsndfile" ,libsndfile)
594 ("liblo" ,liblo)
595 ("ladspa" ,ladspa)
596 ("jack" ,jack-1)
b94a6ca0 597 ("gettext" ,gettext-minimal)))
fda85ca6
RW
598 (native-inputs
599 `(("bison" ,bison)
600 ("flex" ,flex)
601 ("zlib" ,zlib)))
602 (home-page "http://csound.github.io/")
603 (synopsis "Sound and music computing system")
604 (description
605 "Csound is a user-programmable and user-extensible sound processing
606language and software synthesizer.")
607 (license license:lgpl2.1+)))
608
631ac903
RW
609(define-public clalsadrv
610 (package
611 (name "clalsadrv")
612 (version "2.0.0")
613 (source (origin
614 (method url-fetch)
615 (uri (string-append
616 "http://kokkinizita.linuxaudio.org"
617 "/linuxaudio/downloads/clalsadrv-"
618 version ".tar.bz2"))
619 (sha256
620 (base32
9de2e43c 621 "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq"))))
631ac903
RW
622 (build-system gnu-build-system)
623 (arguments
624 `(#:tests? #f ; no "check" target
625 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
626 #:phases
627 (alist-cons-after
9de2e43c
RW
628 'unpack 'patch-makefile-and-enter-directory
629 (lambda _
630 (substitute* "libs/Makefile"
631 (("/sbin/ldconfig") "true")
632 (("^LIBDIR =.*") "LIBDIR = lib\n"))
633 (chdir "libs")
634 #t)
631ac903
RW
635 (alist-cons-after
636 'install
637 'install-symlink
638 (lambda _
639 (symlink "libclalsadrv.so"
640 (string-append (assoc-ref %outputs "out")
641 "/lib/libclalsadrv.so.2")))
642 ;; no configure script
643 (alist-delete 'configure %standard-phases)))))
644 (inputs
645 `(("alsa-lib" ,alsa-lib)
646 ("fftw" ,fftw)))
647 (home-page "http://kokkinizita.linuxaudio.org")
648 (synopsis "C++ wrapper around the ALSA API")
649 (description
650 "clalsadrv is a C++ wrapper around the ALSA API simplifying access to
651ALSA PCM devices.")
652 (license license:gpl2+)))
653
8ba62f92
RW
654(define-public amb-plugins
655 (package
656 (name "amb-plugins")
657 (version "0.8.1")
658 (source (origin
659 (method url-fetch)
660 (uri (string-append
661 "http://kokkinizita.linuxaudio.org"
662 "/linuxaudio/downloads/AMB-plugins-"
663 version ".tar.bz2"))
664 (sha256
665 (base32
666 "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl"))))
667 (build-system gnu-build-system)
668 (arguments
669 `(#:tests? #f ; no "check" target
670 #:phases
671 (modify-phases %standard-phases
672 ;; no configure script
673 (delete 'configure)
674 (add-before 'install 'prepare-target-directory
675 (lambda* (#:key outputs #:allow-other-keys)
676 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
677 #t))
678 (add-after 'unpack 'override-target-directory-and-tool-paths
679 (lambda* (#:key outputs #:allow-other-keys)
680 (substitute* "Makefile"
681 (("/usr/lib/ladspa")
682 (string-append (assoc-ref outputs "out") "/lib/ladspa"))
683 (("/usr/bin/install") (which "install"))
684 (("/bin/rm") "#"))
685 #t)))))
686 (home-page "http://kokkinizita.linuxaudio.org")
687 (synopsis "LADSPA ambisonics plugins")
688 (description
689 "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be
690used within Ardour. Features include: mono and stereo to B-format panning,
691horizontal rotator, square, hexagon and cube decoders.")
692 (license license:gpl2+)))
693
fb2e072c
RW
694(define-public mcp-plugins
695 (package
696 (name "mcp-plugins")
697 (version "0.4.0")
698 (source (origin
699 (method url-fetch)
700 (uri (string-append
701 "http://kokkinizita.linuxaudio.org"
702 "/linuxaudio/downloads/MCP-plugins-"
703 version ".tar.bz2"))
704 (sha256
705 (base32
706 "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc"))))
707 (build-system gnu-build-system)
708 (arguments
709 `(#:tests? #f ; no "check" target
710 #:phases
711 (modify-phases %standard-phases
712 ;; no configure script
713 (delete 'configure)
714 (add-before 'install 'prepare-target-directory
715 (lambda* (#:key outputs #:allow-other-keys)
716 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
717 #t))
718 (add-after 'unpack 'override-target-directory
719 (lambda* (#:key outputs #:allow-other-keys)
720 (substitute* "Makefile"
721 (("/usr") (assoc-ref outputs "out")))
722 #t)))))
723 (home-page "http://kokkinizita.linuxaudio.org")
724 (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters")
725 (description
726 "This package provides various LADSPA plugins. @code{cs_chorus} and
727@code{cs_phaser} provide chorus and phaser effects, respectively;
728@code{mvclpf24} provides four implementations of the low-pass filter used in
729vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled
730high-pass filter by Robert Moog. The filters attempt to accurately emulate
731the non-linear circuit elements of their original analog counterparts.")
732 (license license:gpl2+)))
733
dffb6c3b
RW
734(define-public rev-plugins
735 (package
736 (name "rev-plugins")
737 (version "0.7.1")
738 (source (origin
739 (method url-fetch)
740 (uri (string-append
741 "http://kokkinizita.linuxaudio.org"
742 "/linuxaudio/downloads/REV-plugins-"
743 version ".tar.bz2"))
744 (sha256
745 (base32
746 "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7"))))
747 (build-system gnu-build-system)
748 (arguments
749 `(#:tests? #f ; no "check" target
750 #:phases
751 (modify-phases %standard-phases
752 ;; no configure script
753 (delete 'configure)
754 (add-before 'install 'prepare-target-directory
755 (lambda* (#:key outputs #:allow-other-keys)
756 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
757 #t))
758 (add-after 'unpack 'override-target-directory
759 (lambda* (#:key outputs #:allow-other-keys)
760 (substitute* "Makefile"
761 (("/usr") (assoc-ref outputs "out")))
762 #t)))))
763 (home-page "http://kokkinizita.linuxaudio.org")
764 (synopsis "LADSPA reverb plugin")
765 (description
766 "This package provides a stereo reverb LADSPA plugin based on the
767well-known greverb.")
768 (license license:gpl2+)))
769
75f45d16
RW
770(define-public fil-plugins
771 (package
772 (name "fil-plugins")
773 (version "0.3.0")
774 (source (origin
775 (method url-fetch)
776 (uri (string-append
777 "http://kokkinizita.linuxaudio.org"
778 "/linuxaudio/downloads/FIL-plugins-"
779 version ".tar.bz2"))
780 (sha256
781 (base32
782 "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw"))))
783 (build-system gnu-build-system)
784 (arguments
785 `(#:tests? #f ; no "check" target
786 #:phases
787 (modify-phases %standard-phases
788 ;; no configure script
789 (delete 'configure)
790 (add-before 'install 'prepare-target-directory
791 (lambda* (#:key outputs #:allow-other-keys)
792 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
793 #t))
794 (add-after 'unpack 'override-target-directory
795 (lambda* (#:key outputs #:allow-other-keys)
796 (substitute* "Makefile"
797 (("/usr") (assoc-ref outputs "out")))
798 #t)))))
799 (home-page "http://kokkinizita.linuxaudio.org")
800 (synopsis "LADSPA four-band parametric equalizer plugin")
801 (description
802 "This package provides a LADSPA plugin for a four-band parametric
803equalizer. Each section has an active/bypass switch, frequency, bandwidth and
804gain controls. There is also a global bypass switch and gain control.
805
806The 2nd order resonant filters are implemented using a Mitra-Regalia style
807lattice filter, which is stable even while parameters are being changed.
808
809All switches and controls are internally smoothed, so they can be used 'live'
810without any clicks or zipper noises. This makes this plugin suitable for use
811in systems that allow automation of plugin control ports, such as Ardour, or
812for stage use.")
813 (license license:gpl2+)))
814
c04b4e7a
RW
815(define-public ste-plugins
816 (package
817 (name "ste-plugins")
818 (version "0.0.2")
819 (source (origin
820 (method url-fetch)
821 (uri (string-append
822 "http://kokkinizita.linuxaudio.org"
823 "/linuxaudio/downloads/STE-plugins-"
824 version ".tar.bz2"))
825 (sha256
826 (base32
827 "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6"))))
828 (build-system gnu-build-system)
829 (arguments
830 `(#:tests? #f ; no "check" target
831 #:phases
832 (modify-phases %standard-phases
833 ;; no configure script
834 (delete 'configure)
835 (add-before 'install 'prepare-target-directory
836 (lambda* (#:key outputs #:allow-other-keys)
837 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
838 #t))
839 (add-after 'unpack 'override-target-directory
840 (lambda* (#:key outputs #:allow-other-keys)
841 (substitute* "Makefile"
842 (("/usr") (assoc-ref outputs "out")))
843 #t)))))
844 (home-page "http://kokkinizita.linuxaudio.org")
845 (synopsis "LADSPA stereo width plugin")
846 (description
847 "This package provides a LADSPA plugin to manipulate the stereo width of
848audio signals.")
849 (license license:gpl2+)))
850
eb4fca7e
RW
851(define-public vco-plugins
852 (package
853 (name "vco-plugins")
854 (version "0.3.0")
855 (source (origin
856 (method url-fetch)
857 (uri (string-append
858 "http://kokkinizita.linuxaudio.org"
859 "/linuxaudio/downloads/VCO-plugins-"
860 version ".tar.bz2"))
861 (sha256
862 (base32
863 "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl"))))
864 (build-system gnu-build-system)
865 (arguments
866 `(#:tests? #f ; no "check" target
867 #:phases
868 (modify-phases %standard-phases
869 ;; no configure script
870 (delete 'configure)
871 (add-before 'install 'prepare-target-directory
872 (lambda* (#:key outputs #:allow-other-keys)
873 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
874 #t))
875 (add-after 'unpack 'override-target-directory
876 (lambda* (#:key outputs #:allow-other-keys)
877 (substitute* "Makefile"
878 (("/usr") (assoc-ref outputs "out"))
879 (("/bin/cp") (which "cp")))
880 #t)))))
881 (home-page "http://kokkinizita.linuxaudio.org")
882 (synopsis "LADSPA plugin for synthesizer oscillators")
883 (description
884 "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators:
885
886@enumerate
887@item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum
888@item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum
889@item Rec-VCO, a square / rectange oscillator
890@end enumerate\n
891
892All oscillators are low-pass filtered to provide waveforms similar to the
893output of analog synthesizers such as the Moog Voyager.")
894 (license license:gpl2+)))
895
5e3161d3
RW
896(define-public wah-plugins
897 (package
898 (name "wah-plugins")
899 (version "0.1.0")
900 (source (origin
901 (method url-fetch)
902 (uri (string-append
903 "http://kokkinizita.linuxaudio.org"
904 "/linuxaudio/downloads/WAH-plugins-"
905 version ".tar.bz2"))
906 (sha256
907 (base32
908 "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd"))))
909 (build-system gnu-build-system)
910 (arguments
911 `(#:tests? #f ; no "check" target
912 #:phases
913 (modify-phases %standard-phases
914 ;; no configure script
915 (delete 'configure)
916 (add-before 'install 'prepare-target-directory
917 (lambda* (#:key outputs #:allow-other-keys)
918 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
919 #t))
920 (add-after 'unpack 'override-target-directory
921 (lambda* (#:key outputs #:allow-other-keys)
922 (substitute* "Makefile"
923 (("/usr") (assoc-ref outputs "out")))
924 #t)))))
925 (home-page "http://kokkinizita.linuxaudio.org")
926 (synopsis "LADSPA Autowah effect plugin")
927 (description
928 "This package provides a LADSPA plugin for a Wah effect with envelope
929follower.")
930 (license license:gpl2+)))
931
ed17465d
RW
932(define-public g2reverb
933 (package
934 (name "g2reverb")
935 (version "0.7.1")
936 (source (origin
937 (method url-fetch)
938 (uri (string-append
939 "http://kokkinizita.linuxaudio.org"
940 "/linuxaudio/downloads/g2reverb-"
941 version ".tar.bz2"))
942 (sha256
943 (base32
944 "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj"))))
945 (build-system gnu-build-system)
946 (arguments
947 `(#:tests? #f ; no "check" target
948 #:phases
949 (modify-phases %standard-phases
950 ;; no configure script
951 (delete 'configure)
952 (add-before 'install 'prepare-target-directory
953 (lambda* (#:key outputs #:allow-other-keys)
954 (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa"))
955 #t))
956 (add-after 'unpack 'override-target-directory
957 (lambda* (#:key outputs #:allow-other-keys)
958 (substitute* "Makefile"
959 (("/usr") (assoc-ref outputs "out")))
960 #t)))))
961 (home-page "http://kokkinizita.linuxaudio.org")
962 (synopsis "LADSPA stereo reverb plugin")
963 (description
964 "This package provides a LADSPA plugin for a stereo reverb effect.")
965 (license license:gpl2+)))
966
e4f43b56
RW
967(define-public fluidsynth
968 (package
969 (name "fluidsynth")
970 (version "1.1.6")
971 (source (origin
972 (method url-fetch)
973 (uri (string-append
974 "mirror://sourceforge/fluidsynth/fluidsynth-"
975 version "/fluidsynth-" version ".tar.gz"))
976 (sha256
977 (base32
978 "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
979 (build-system gnu-build-system)
980 (arguments
981 `(#:phases
982 (alist-cons-after
983 'unpack
984 'remove-broken-symlinks
985 (lambda _ (delete-file-recursively "m4") #t)
986 %standard-phases)))
987 (inputs
988 `(("libsndfile" ,libsndfile)
989 ("alsa-lib" ,alsa-lib)
990 ("jack" ,jack-1)
991 ("ladspa" ,ladspa)
992 ("lash" ,lash)
993 ("readline" ,readline)
994 ("glib" ,glib)))
995 (native-inputs
996 `(("pkg-config" ,pkg-config)))
997 (home-page "http://www.fluidsynth.org/")
998 (synopsis "SoundFont synthesizer")
999 (description
1000 "FluidSynth is a real-time software synthesizer based on the SoundFont 2
1001specifications. FluidSynth reads and handles MIDI events from the MIDI input
e881752c 1002device. It is the software analogue of a MIDI synthesizer. FluidSynth can
e4f43b56
RW
1003also play midifiles using a Soundfont.")
1004 (license license:gpl2+)))
1005
70fc29d9
TUBK
1006(define-public faad2
1007 (package
1008 (name "faad2")
1009 (version "2.7")
1010 (source (origin
1011 (method url-fetch)
de67e922
LF
1012 (uri (string-append "mirror://sourceforge/faac/faad2-src/faad2-"
1013 version "/faad2-" version ".zip"))
70fc29d9
TUBK
1014 (sha256
1015 (base32
1016 "16f3l16c00sg0wkrkm3vzv0gy3g97x309vw788igs0cap2x1ak3z"))))
1017 (build-system gnu-build-system)
1018 (native-inputs
1019 `(("autoconf" ,autoconf)
1020 ("automake" ,automake)
1021 ("libtool" ,libtool)
1022 ("unzip" ,unzip)))
1023 (arguments
1024 '(#:phases
1025 (alist-cons-after
1026 'unpack 'bootstrap
1027 (lambda _
1028 (substitute* "bootstrap" (("\r\n") "\n"))
1029 (zero? (system* "sh" "bootstrap")))
1030 %standard-phases)))
1031 (home-page "http://www.audiocoding.com/faad2.html")
1032 (synopsis "MPEG-4 and MPEG-2 AAC decoder")
1033 (description
1034 "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR,
1035PS, and DAB+.")
1036 (license license:gpl2)))
1037
777291f0
RW
1038(define-public faust
1039 (package
1040 (name "faust")
1041 (version "0.9.67")
1042 (source (origin
1043 (method url-fetch)
1044 (uri (string-append
1045 "mirror://sourceforge/faudiostream/faust-" version ".zip"))
1046 (sha256
1047 (base32
0543c326
RW
1048 "068vl9536zn0j4pknwfcchzi90rx5pk64wbcbd67z32w0csx8xm1"))
1049 (snippet
1050 ;; Remove prebuilt library
1051 '(delete-file "architecture/android/libs/armeabi-v7a/libfaust_dsp.so"))))
777291f0
RW
1052 (build-system gnu-build-system)
1053 (arguments
1054 `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
1055 #:tests? #f
1056 #:phases
1057 (modify-phases %standard-phases
0543c326 1058 ;; no "configure" script
777291f0
RW
1059 (delete 'configure))))
1060 (native-inputs
1061 `(("unzip" ,unzip)))
1062 (home-page "http://faust.grame.fr/")
1063 (synopsis "Signal processing language")
1064 (description
1065 "Faust is a programming language for realtime audio signal processing.")
1066 (license license:gpl2+)))
1067
8ae60404
RW
1068(define-public faust-2
1069 (package
1070 (inherit faust)
1071 (version "2.0.a51")
1072 (source (origin
1073 (method url-fetch)
1074 (uri (string-append
1075 "mirror://sourceforge/faudiostream/faust-" version ".tgz"))
1076 (sha256
1077 (base32
1078 "1yryjqfqmxs7lxy95hjgmrncvl9kig3rcsmg0v49ghzz7vs7haxf"))))
1079 (build-system gnu-build-system)
1080 (arguments
1081 (substitute-keyword-arguments (package-arguments faust)
1082 ((#:make-flags flags)
1083 `(list (string-append "prefix=" (assoc-ref %outputs "out"))
1084 "world"))))
1085 (native-inputs
1086 `(("llvm" ,llvm-with-rtti)
1087 ("which" ,which)
1088 ("xxd" ,vim)
1089 ("ctags" ,emacs-minimal) ; for ctags
1090 ("pkg-config" ,pkg-config)))
1091 (inputs
1092 `(("libsndfile" ,libsndfile)
1093 ("libmicrohttpd" ,libmicrohttpd)
1094 ("ncurses" ,ncurses)
1095 ("openssl" ,openssl)
1096 ("zlib" ,zlib)))))
1097
7c92efff
RW
1098(define-public freepats
1099 (package
1100 (name "freepats")
1101 (version "20060219")
1102 (source (origin
1103 (method url-fetch)
1104 (uri (string-append "http://freepats.zenvoid.org/freepats-"
1105 version ".tar.bz2"))
1106 (sha256
1107 (base32
1108 "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82"))))
1109 (build-system trivial-build-system)
1110 (arguments
1111 `(#:modules ((guix build utils))
1112 #:builder (begin
1113 (use-modules (guix build utils))
1114 (let ((out (string-append %output "/share/freepats")))
1115 (setenv "PATH" (string-append
1116 (assoc-ref %build-inputs "bzip2") "/bin:"
1117 (assoc-ref %build-inputs "tar") "/bin"))
1118 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
1119 (chdir "freepats")
1120 ;; Use absolute pattern references
1121 (substitute* "freepats.cfg"
1122 (("Tone_000") (string-append out "/Tone_000"))
1123 (("Drum_000") (string-append out "/Drum_000")))
1124 (mkdir-p out)
1125 (copy-recursively "." out)))))
1126 (native-inputs
1127 `(("tar" ,tar)
1128 ("bzip2" ,bzip2)))
1129 (home-page "http://freepats.zenvoid.org")
1130 (synopsis "GUS compatible patches for MIDI players")
1131 (description
1132 "FreePats is a project to create a free and open set of GUS compatible
1133patches that can be used with softsynths such as Timidity and WildMidi.")
1134 ;; GPLv2+ with exception for compositions using these patches.
1135 (license license:gpl2+)))
1136
fcbeb00b
RW
1137(define-public guitarix
1138 (package
1139 (name "guitarix")
41f6d18f 1140 (version "0.35.3")
fcbeb00b
RW
1141 (source (origin
1142 (method url-fetch)
1143 (uri (string-append
de67e922 1144 "mirror://sourceforge/guitarix/guitarix/guitarix2-"
d706d943 1145 version ".tar.xz"))
fcbeb00b
RW
1146 (sha256
1147 (base32
41f6d18f 1148 "0pvw4ijkq6lcn45vrif9b4mqmgzi0qg1dp5b33kb5zan6n1aci4j"))))
fcbeb00b
RW
1149 (build-system waf-build-system)
1150 (arguments
1151 `(#:tests? #f ; no "check" target
1152 #:python ,python-2
1153 #:configure-flags
1154 (list
fcbeb00b 1155 ;; Add the output lib directory to the RUNPATH.
3c3e6972
LC
1156 (string-append "--ldflags=-Wl,-rpath=" %output "/lib")
1157 "--cxxflags=-std=c++11")))
fcbeb00b
RW
1158 (inputs
1159 `(("libsndfile" ,libsndfile)
1160 ("boost" ,boost)
1161 ("avahi" ,avahi)
1162 ("eigen" ,eigen)
1163 ("lv2" ,lv2)
1164 ("lilv" ,lilv)
1165 ("ladspa" ,ladspa)
1166 ("jack" ,jack-1)
1167 ("gtkmm" ,gtkmm-2)
1168 ("gtk+" ,gtk+-2)
1169 ("fftwf" ,fftwf)
1170 ("lrdf" ,lrdf)
1171 ("zita-resampler" ,zita-resampler)
1172 ("zita-convolver" ,zita-convolver)))
1173 (native-inputs
1174 `(("gperf" ,gperf)
49767428 1175 ("faust" ,faust)
fcbeb00b 1176 ("intltool" ,intltool)
b94a6ca0 1177 ("gettext" ,gettext-minimal)
fcbeb00b
RW
1178 ("pkg-config" ,pkg-config)))
1179 (native-search-paths
1180 (list (search-path-specification
1181 (variable "LV2_PATH")
1182 (files '("lib/lv2")))))
1183 (home-page "http://guitarix.org/")
1184 (synopsis "Virtual guitar amplifier")
1185 (description "Guitarix is a virtual guitar amplifier running JACK.
1186Guitarix takes the signal from your guitar as a mono-signal from your sound
1187card. The input is processed by a main amp and a rack-section. Both can be
1188routed separately and deliver a processed stereo-signal via JACK. You may
1189fill the rack with effects from more than 25 built-in modules including stuff
1190from a simple noise gate to modulation effects like flanger, phaser or
1191auto-wah.")
1192 (license license:gpl2+)))
1193
5f5b5768
RW
1194(define-public guitarix-lv2
1195 (package (inherit guitarix)
1196 (name "guitarix-lv2")
1197 (arguments
1198 (substitute-keyword-arguments (package-arguments guitarix)
1199 ((#:configure-flags flags)
1200 `(cons "--lv2-only" ,flags))))
1201 (inputs
1202 (alist-delete "webkitgtk/gtk+-2" (package-inputs guitarix)))))
1203
11d4800a
RW
1204(define-public rakarrack
1205 (package
1206 (name "rakarrack")
1207 (version "0.6.1")
1208 (source (origin
1209 (method url-fetch)
1210 (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/"
1211 "rakarrack-" version "/rakarrack-"
1212 version ".tar.bz2"))
1213 (sha256
1214 (base32
1215 "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn"))
1216 (modules '((guix build utils)))
1217 (snippet
1218 '(begin
1219 (substitute* '("src/process.C"
1220 "src/global.h")
1221 (("#include <Fl/") "#include <FL/"))
1222 #t))))
1223 (build-system gnu-build-system)
1224 (inputs
1225 `(("alsa-utils" ,alsa-utils)
1226 ("fltk" ,fltk)
1227 ("libx11" ,libx11)
1228 ("libxext" ,libxext)
1229 ("libxfixes" ,libxfixes)
1230 ("libxft" ,libxft)
1231 ("libxrender" ,libxrender)
1232 ("libxpm" ,libxpm)
1233 ("fontconfig" ,fontconfig)
1234 ("freetype" ,freetype)
1235 ("jack" ,jack-1)
1236 ("alsa-lib" ,alsa-lib)
1237 ("libsndfile" ,libsndfile)
1238 ("libsamplerate" ,libsamplerate)
1239 ("zlib" ,zlib)))
1240 (home-page "http://rakarrack.sourceforge.net/")
1241 (synopsis "Audio effects processor")
1242 (description
1243 "Rakarrack is a richly featured multi-effects processor emulating a
1244guitar effects pedalboard. Effects include compressor, expander, noise gate,
1245equalizers, exciter, flangers, chorus, various delay and reverb effects,
1246distortion modules and many more. Most of the effects engine is built from
1247modules found in the excellent software synthesizer ZynAddSubFX. Presets and
1248user interface are optimized for guitar, but Rakarrack processes signals in
1249stereo while it does not apply internal band-limiting filtering, and thus is
1250well suited to all musical instruments and vocals.")
1251 ;; The code is explicitly licensed under the GPL version 2 only.
1252 (license license:gpl2)))
1253
32cf42c1
RW
1254(define-public ir
1255 (package
1256 (name "ir")
1257 (version "1.3.2")
1258 (source (origin
1259 (method url-fetch)
c50f2af9
TGR
1260 ;; The original home-page is gone. Download the tarball from an
1261 ;; archive mirror instead.
1262 (uri (list (string-append
1263 "https://web.archive.org/web/20150803095032/"
1264 "http://factorial.hu/system/files/ir.lv2-"
1265 version ".tar.gz")
1266 (string-append
1267 "https://mirrors.kernel.org/gentoo/distfiles/ir.lv2-"
1268 version ".tar.gz")))
32cf42c1
RW
1269 (sha256
1270 (base32
1271 "1jh2z01l9m4ar7yz0n911df07dygc7n4cl59p7qdjbh0nvkm747g"))))
1272 (build-system gnu-build-system)
1273 (arguments
2df984f2 1274 `(#:tests? #f ; no tests
32cf42c1 1275 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2df984f2
TGR
1276 #:phases (modify-phases %standard-phases
1277 (delete 'configure)))) ; no configure script
32cf42c1
RW
1278 (inputs
1279 `(("libsndfile" ,libsndfile)
1280 ("libsamplerate" ,libsamplerate)
1281 ("lv2" ,lv2)
1282 ("glib" ,glib)
1283 ("gtk+" ,gtk+-2)
1284 ("zita-convolver" ,zita-convolver)))
1285 (native-inputs
1286 `(("pkg-config" ,pkg-config)))
1287 (native-search-paths
1288 (list (search-path-specification
1289 (variable "LV2_PATH")
1290 (files '("lib/lv2")))))
c50f2af9
TGR
1291 ;; Link to an archived copy of the home-page since the original is gone.
1292 (home-page (string-append "https://web.archive.org/web/20150803095032/"
1293 "http://factorial.hu/plugins/lv2/ir"))
32cf42c1
RW
1294 (synopsis "LV2 convolution reverb")
1295 (description
1296 "IR is a low-latency, real-time, high performance signal convolver
1297especially for creating reverb effects. It supports impulse responses with 1,
12982 or 4 channels, in any soundfile format supported by libsndfile.")
1299 (license license:gpl2+)))
1300
fb68469f
RW
1301(define-public jack-1
1302 (package
1303 (name "jack")
31b7af76 1304 (version "0.125.0")
fb68469f
RW
1305 (source (origin
1306 (method url-fetch)
1307 (uri (string-append
1308 "http://jackaudio.org/downloads/jack-audio-connection-kit-"
1309 version
1310 ".tar.gz"))
1311 (sha256
1312 (base32
31b7af76 1313 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm"))))
fb68469f
RW
1314 (build-system gnu-build-system)
1315 (inputs
2f9ae82f 1316 `(("alsa-lib" ,alsa-lib)
5d95e30b
RW
1317 ("readline" ,readline)))
1318 ;; uuid.h is included in the JACK type headers
ca01b3ad 1319 ;; db.h is included in the libjack metadata headers
5d95e30b 1320 (propagated-inputs
ca01b3ad
RW
1321 `(("libuuid" ,util-linux)
1322 ("bdb" ,bdb)))
2f9ae82f
RW
1323 (native-inputs
1324 `(("pkg-config" ,pkg-config)))
fb68469f
RW
1325 (home-page "http://jackaudio.org/")
1326 (synopsis "JACK audio connection kit")
1327 (description
1328 "JACK is a low-latency audio server. It can connect a number of
1329different applications to an audio device, as well as allowing them to share
1330audio between themselves. JACK is different from other audio server efforts
1331in that it has been designed from the ground up to be suitable for
1332professional audio work. This means that it focuses on two key areas:
1333synchronous execution of all clients, and low latency operation.")
1334 ;; Most files are licensed under the GPL. However, the libjack/ tree is
1335 ;; licensed under the LGPL in order to allow for proprietary usage.
e89fa047 1336 (license (list license:gpl2+ license:lgpl2.1+))))
c54a8981 1337
bcbc02fd
RW
1338;; Packages depending on JACK should always prefer jack-1. Both jack-1 and
1339;; jack-2 implement the same API. JACK2 is provided primarily as a client
1340;; program for users who might benefit from the D-BUS features.
c54a8981
RW
1341(define-public jack-2
1342 (package (inherit jack-1)
314275c7 1343 (name "jack2")
c54a8981
RW
1344 (version "1.9.10")
1345 (source (origin
1346 (method url-fetch)
1347 (uri (string-append
1348 "https://github.com/jackaudio/jack2/archive/v"
1349 version
1350 ".tar.gz"))
f586c877 1351 (file-name (string-append name "-" version ".tar.gz"))
c54a8981
RW
1352 (sha256
1353 (base32
1354 "03b0iiyk3ng3vh5s8gaqwn565vik7910p56mlbk512bw3dhbdwc8"))))
1355 (build-system waf-build-system)
1356 (arguments
bc8bf605
RW
1357 `(#:python ,python-2
1358 #:tests? #f ; no check target
c54a8981 1359 #:configure-flags '("--dbus"
b416c647
SB
1360 "--alsa")
1361 #:phases
1362 (modify-phases %standard-phases
56f76b08
RW
1363 (add-after 'unpack 'patch-fast_rand
1364 (lambda _
1365 (substitute* "common/memops.c"
1366 ;; Fixed in upstream commit d3c8e2d8d78899fba40a3e677ed4dbe388d82269
1367 (("^inline unsigned int fast_rand" line)
1368 (string-append "static " line))
1369 ;; Fixed in upstream commit 0279a2d65a36d1378f5bab56d95bf9e99cc8cefb
1370 ((" 96314165") " 196314165"))
1371 #t))
b416c647
SB
1372 (add-before
1373 'configure 'set-linkflags
1374 (lambda _
1375 ;; Add $libdir to the RUNPATH of all the binaries.
1376 (substitute* "wscript"
1377 ((".*CFLAGS.*-Wall.*" m)
1378 (string-append m
1379 " conf.env.append_unique('LINKFLAGS',"
bc8bf605
RW
1380 "'-Wl,-rpath=" %output "/lib')\n")))))
1381 (add-after 'install 'wrap-python-scripts
1382 (lambda* (#:key inputs outputs #:allow-other-keys)
1383 ;; Make sure 'jack_control' runs with the correct PYTHONPATH.
1384 (let* ((out (assoc-ref outputs "out"))
1385 (path (getenv "PYTHONPATH")))
1386 (wrap-program (string-append out "/bin/jack_control")
1387 `("PYTHONPATH" ":" prefix (,path))))
1388 #t)))))
c54a8981
RW
1389 (inputs
1390 `(("alsa-lib" ,alsa-lib)
1391 ("dbus" ,dbus)
1392 ("expat" ,expat)
1393 ("libsamplerate" ,libsamplerate)
1394 ("opus" ,opus)
bc8bf605 1395 ("python2-dbus" ,python2-dbus)
c54a8981
RW
1396 ("readline" ,readline)))
1397 (native-inputs
1398 `(("pkg-config" ,pkg-config)))
1399 ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+
1400 (license (list license:gpl2+ license:lgpl2.1+))))
f47cba0e 1401
2f4646b6
RW
1402(define-public jalv
1403 (package
1404 (name "jalv")
f1d81568 1405 (version "1.6.0")
2f4646b6
RW
1406 (source (origin
1407 (method url-fetch)
1408 (uri (string-append "http://download.drobilla.net/jalv-"
1409 version ".tar.bz2"))
1410 (sha256
1411 (base32
f1d81568 1412 "1x2wpzzx2cgvz3dgdcgsj8dr0w3zsasy62mvl199bsdj5fbjaili"))))
2f4646b6 1413 (build-system waf-build-system)
d8c317df
SB
1414 (arguments
1415 `(#:tests? #f ; no check target
1416 #:phases
1417 (modify-phases %standard-phases
1418 (add-before
1419 'configure 'set-flags
1420 (lambda _
1421 ;; Compile with C++11, required by gtkmm.
1422 (setenv "CXXFLAGS" "-std=c++11")
1423 #t)))))
2f4646b6
RW
1424 (inputs
1425 `(("lv2" ,lv2)
1426 ("lilv" ,lilv)
1427 ("suil" ,suil)
f1d81568
RW
1428 ("gtk" ,gtk+)
1429 ("gtkmm" ,gtkmm)
2f4646b6
RW
1430 ("jack" ,jack-1)))
1431 (native-inputs
1432 `(("pkg-config" ,pkg-config)))
1433 (home-page "http://drobilla.net/software/jalv/")
1434 (synopsis "Simple LV2 host for JACK")
1435 (description
1436 "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2
1437plugins and exposes their ports as JACK ports, essentially making any LV2
1438plugin function as a JACK application.")
1439 (license license:isc)))
1440
2cc7ce31
RW
1441(define-public ladspa
1442 (package
1443 (name "ladspa")
1444 (version "1.13")
0c1910ed
AV
1445 (source
1446 (origin
1447 (method url-fetch)
1448 ;; Since the official link is dead,
1449 ;; we download the tarball from Debian or Internet Archive.
1450 (uri (list (string-append "http://http.debian.net"
1451 "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_"
1452 version ".orig.tar.gz")
1453 (string-append "https://web.archive.org/web/20140717172251/"
1454 "http://www.ladspa.org/download/ladspa_sdk_"
1455 version ".tgz")))
1456 (sha256
1457 (base32
1458 "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm"))))
2cc7ce31
RW
1459 (build-system gnu-build-system)
1460 (arguments
1461 `(#:tests? #f ; the "test" target is a listening test only
1462 #:phases
1463 (alist-replace
1464 'configure
1465 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
1466 (chdir "src")
1467 (let ((out (assoc-ref outputs "out")))
1468 (substitute* "makefile"
1469 (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/"))
1470 (("/usr/include/") (string-append out "/include/"))
1471 (("/usr/bin/") (string-append out "/bin/"))
1472 (("-mkdirhier") "mkdir -p")
1473 (("^CC.*") "CC = gcc\n")
1474 (("^CPP.*") "CPP = g++\n"))))
1475 (alist-delete 'build %standard-phases))))
0c1910ed
AV
1476 ;; Since the home page is gone, we provide a link to the archived version.
1477 (home-page
1478 "https://web.archive.org/web/20140729190945/http://www.ladspa.org/")
2cc7ce31
RW
1479 (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)")
1480 (description
1481 "LADSPA is a standard that allows software audio processors and effects
1482to be plugged into a wide range of audio synthesis and recording packages.")
1483 (license license:lgpl2.1+)))
1484
da49086a
RW
1485(define-public lash
1486 (package
1487 (name "lash")
1488 (version "0.6.0-rc2")
1489 (source (origin
1490 (method url-fetch)
1491 ;; The tilde is not permitted in the builder name, but is used
1492 ;; in the tarball.
1493 (uri (string-append
1494 "mirror://savannah/lash/lash-"
1495 (string-join (string-split version #\-) "~")
1496 ".tar.bz2"))
1497 (file-name (string-append name "-" version ".tar.bz2"))
1498 (sha256
1499 (base32
1500 "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw"))))
1501 (build-system gnu-build-system)
1502 (inputs
1503 `(("bdb" ,bdb)
1504 ("gtk" ,gtk+-2)
1505 ("jack" ,jack-1)
da49086a
RW
1506 ("readline" ,readline)
1507 ("python" ,python-2)))
1508 ;; According to pkg-config, packages depending on lash also need to have
1509 ;; at least the following packages declared as inputs.
1510 (propagated-inputs
1511 `(("alsa-lib" ,alsa-lib)
1512 ("dbus" ,dbus)
1513 ("libxml2" ,libxml2)))
1514 (native-inputs
1515 `(("pkg-config" ,pkg-config)))
1516 (home-page "http://www.nongnu.org/lash/")
1517 (synopsis "Audio application session manager")
1518 (description
1519 "LASH is a session management system for audio applications. It allows
1520you to save and restore audio sessions consisting of multiple interconneced
1521applications, restoring program state (i.e. loaded patches) and the
1522connections between them.")
1523 (license license:gpl2+)))
1524
8c0b5a75
TUBK
1525(define-public libbs2b
1526 (package
1527 (name "libbs2b")
1528 (version "3.1.0")
1529 (source (origin
1530 (method url-fetch)
de67e922
LF
1531 (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version
1532 "/libbs2b-" version ".tar.lzma"))
8c0b5a75
TUBK
1533 (sha256
1534 (base32
1535 "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr"))))
1536 (build-system gnu-build-system)
1537 (native-inputs `(("pkg-config" ,pkg-config)))
1538 (inputs `(("libsndfile" ,libsndfile)))
3b3b60d0 1539 (home-page "https://sourceforge.net/projects/bs2b/")
8c0b5a75
TUBK
1540 (synopsis "Bauer stereophonic-to-binaural DSP")
1541 (description
1542 "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is
1543designed to improve headphone listening of stereo audio records. Recommended
1544for headphone prolonged listening to disable superstereo fatigue without
1545essential distortions.")
1546 (license license:expat)))
1547
f47cba0e
RW
1548(define-public liblo
1549 (package
1550 (name "liblo")
1551 (version "0.28")
1552 (source (origin
1553 (method url-fetch)
de67e922
LF
1554 (uri (string-append "mirror://sourceforge/liblo/liblo/" version
1555 "/liblo-" version ".tar.gz"))
f47cba0e
RW
1556 (sha256
1557 (base32
1558 "02drgnpirvl2ihvzgsmn02agr5sj3vipzzw9vma56qlkgfvak56s"))))
1559 (build-system gnu-build-system)
1560 (arguments
1561 `(;; liblo test FAILED
1562 ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device
1563 #:tests? #f))
1564 (home-page "http://liblo.sourceforge.net")
1565 (synopsis "Implementation of the Open Sound Control protocol")
1566 (description
1567 "liblo is a lightweight library that provides an easy to use
1568implementation of the Open Sound Control (OSC) protocol.")
1569 (license license:lgpl2.1+)))
e2420191 1570
a91d72e2
RW
1571(define-public python-pyliblo
1572 (package
1573 (name "python-pyliblo")
1574 (version "0.10.0")
1575 (source (origin
1576 (method url-fetch)
1577 (uri (string-append "http://das.nasophon.de/download/pyliblo-"
1578 version ".tar.gz"))
1579 (sha256
1580 (base32
1581 "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw"))))
1582 (build-system python-build-system)
1583 (arguments `(#:tests? #f)) ;no tests
f2516de2
HG
1584 (native-inputs
1585 `(("python-cython" ,python-cython)))
a91d72e2 1586 (inputs
f2516de2 1587 `(("liblo" ,liblo)))
a91d72e2
RW
1588 (home-page "http://das.nasophon.de/pyliblo/")
1589 (synopsis "Python bindings for liblo")
1590 (description
1591 "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC)
1592library. It supports almost the complete functionality of liblo, allowing you
1593to send and receive OSC messages using a nice and simple Python API. Also
1594included are the command line utilities @code{send_osc} and @code{dump_osc}.")
1595 (license license:lgpl2.1+)))
1596
1597(define-public python2-pyliblo
1598 (package-with-python2 python-pyliblo))
1599
332aad1b
RW
1600(define-public lilv
1601 (package
1602 (name "lilv")
d4d3df82 1603 (version "0.24.2")
332aad1b
RW
1604 (source (origin
1605 (method url-fetch)
1606 (uri (string-append "http://download.drobilla.net/lilv-"
d4d3df82 1607 version ".tar.bz2"))
332aad1b
RW
1608 (sha256
1609 (base32
d4d3df82 1610 "08m5a372pr1l7aii9s3pic5nm68gynx1n1bc7bnlswziq6qnbv7p"))))
332aad1b 1611 (build-system waf-build-system)
d80ee442
TUBK
1612 (arguments
1613 `(#:tests? #f ; no check target
1614 #:phases
1615 (modify-phases %standard-phases
1616 (add-before
1617 'configure 'set-ldflags
1618 (lambda* (#:key outputs #:allow-other-keys)
1619 (setenv "LDFLAGS"
1620 (string-append "-Wl,-rpath="
1621 (assoc-ref outputs "out") "/lib")))))))
ff7df27d
RW
1622 ;; required by lilv-0.pc
1623 (propagated-inputs
1624 `(("serd" ,serd)
332aad1b
RW
1625 ("sord" ,sord)
1626 ("sratom" ,sratom)))
ff7df27d
RW
1627 (inputs
1628 `(("lv2" ,lv2)))
332aad1b
RW
1629 (native-inputs
1630 `(("pkg-config" ,pkg-config)))
1631 (home-page "http://drobilla.net/software/lilv/")
1632 (synopsis "Library to simplify use of LV2 plugins in applications")
1633 (description
1634 "Lilv is a C library to make the use of LV2 plugins as simple as possible
1635for applications. Lilv is the successor to SLV2, rewritten to be
1636significantly faster and have minimal dependencies.")
1637 (license license:isc)))
1638
e2420191
RW
1639(define-public lv2
1640 (package
1641 (name "lv2")
eb21d248 1642 (version "1.14.0")
e2420191
RW
1643 (source (origin
1644 (method url-fetch)
1645 (uri (string-append "http://lv2plug.in/spec/lv2-"
eb21d248 1646 version ".tar.bz2"))
e2420191
RW
1647 (sha256
1648 (base32
eb21d248 1649 "0chxwys3vnn3nxc9x2vchm74s9sx0vfra6y893byy12ci61jc1dq"))))
e2420191
RW
1650 (build-system waf-build-system)
1651 (arguments
1652 `(#:tests? #f ; no check target
2e189eb8 1653 #:configure-flags '("--no-plugins")))
e2420191
RW
1654 (inputs
1655 ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins
1656 `(("libsndfile" ,libsndfile)))
1657 (native-inputs
1658 `(("pkg-config" ,pkg-config)))
1659 (home-page "http://lv2plug.in/")
1660 (synopsis "LV2 audio plugin specification")
1661 (description
1662 "LV2 is an open specification for audio plugins and host applications.
1663At its core, LV2 is a simple stable interface, accompanied by extensions which
1664add functionality to support the needs of increasingly powerful audio
1665software.")
1666 (license license:isc)))
5279eb6f 1667
98247127
RW
1668(define-public lv2-mda-piano
1669 (package
1670 (name "lv2-mda-piano")
1671 (version "0.0.2")
1672 (source (origin
1673 (method git-fetch)
1674 (uri (git-reference
f6f499b3 1675 (url "http://git.elephly.net/software/lv2-mdametapiano.git")
98247127
RW
1676 (commit version)))
1677 (sha256
1678 (base32
1679 "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd"))))
1680 (build-system gnu-build-system)
1681 (arguments
1682 `(#:make-flags (list
1683 "TYPE=mdaPiano"
1684 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1685 #:tests? #f ; no check target
1686 #:phases (alist-delete 'configure %standard-phases)))
1687 (inputs
1688 `(("lv2" ,lv2)
1689 ("lvtk" ,lvtk)))
1690 (native-inputs
1691 `(("pkg-config" ,pkg-config)))
1692 (native-search-paths
1693 (list (search-path-specification
1694 (variable "LV2_PATH")
1695 (files '("lib/lv2")))))
1696 (home-page "http://elephly.net/lv2/mdapiano.html")
1697 (synopsis "LV2 port of the mda Piano plugin")
1698 (description "An LV2 port of the mda Piano VSTi.")
1699 (license license:gpl3+)))
1700
8fb79e3d
RW
1701(define-public lv2-mda-epiano
1702 (package (inherit lv2-mda-piano)
1703 (name "lv2-mda-epiano")
1704 (arguments
1705 `(#:make-flags (list
1706 "TYPE=mdaEPiano"
1707 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1708 #:tests? #f ; no check target
1709 #:phases (alist-delete 'configure %standard-phases)))
1710 (home-page "http://elephly.net/lv2/mdaepiano.html")
1711 (synopsis "LV2 port of the mda EPiano plugin")
1712 (description "An LV2 port of the mda EPiano VSTi.")))
1713
c1718190
RW
1714(define-public lvtk
1715 (package
1716 (name "lvtk")
1717 (version "1.2.0")
1718 (source (origin
1719 (method url-fetch)
1720 (uri (string-append "https://github.com/lvtk/lvtk/archive/"
1721 version
1722 ".tar.gz"))
f586c877 1723 (file-name (string-append name "-" version ".tar.gz"))
c1718190
RW
1724 (sha256
1725 (base32
1726 "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd"))))
1727 (build-system waf-build-system)
1728 (arguments
1729 `(#:tests? #f ; no check target
1730 #:python ,python-2
1731 #:configure-flags
1732 (list (string-append "--boost-includes="
1733 (assoc-ref %build-inputs "boost")
c91d3fb7
EB
1734 "/include"))
1735 #:phases (modify-phases %standard-phases
1736 (add-before
1737 'configure 'set-flags
1738 (lambda* (#:key inputs #:allow-other-keys)
1739 ;; See e.g. https://github.com/lvtk/lvtk/issues/21
1740 (setenv "LDFLAGS"
1741 (string-append
1742 "-L" (assoc-ref inputs "boost") "/lib "
85f4863f
RW
1743 "-lboost_system"))
1744 ;; Needed for gtkmm
1745 (substitute* '("src/wscript_build"
1746 "examples/wscript_build")
1747 (("cxxflags.*= \\[" line)
1748 (string-append line "\"-std=c++11\", ")))
1749 #t)))))
c1718190
RW
1750 (inputs
1751 `(("boost" ,boost)
85f4863f 1752 ("gtkmm" ,gtkmm-2)
c1718190
RW
1753 ("lv2" ,lv2)))
1754 (native-inputs
1755 `(("pkg-config" ,pkg-config)))
1756 (home-page "https://github.com/lvtk/lvtk")
1757 (synopsis "C++ libraries for LV2 plugins")
1758 (description
1759 "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and
1760extensions into easy to use C++ classes. It is the successor of
1761lv2-c++-tools.")
1762 (license license:gpl3+)))
1763
f2fac359
TUBK
1764(define-public openal
1765 (package
1766 (name "openal")
a232d2c6 1767 (version "1.17.2")
f2fac359
TUBK
1768 (source (origin
1769 (method url-fetch)
1770 (uri (string-append
1771 "http://kcat.strangesoft.net/openal-releases/openal-soft-"
1772 version ".tar.bz2"))
1773 (sha256
1774 (base32
a232d2c6 1775 "051k5fy8pk4fd9ha3qaqcv08xwbks09xl5qs4ijqq2qz5xaghhd3"))))
f2fac359
TUBK
1776 (build-system cmake-build-system)
1777 (arguments
7ee5db15
RW
1778 `(#:tests? #f ; no check target
1779 #:phases
1780 (modify-phases %standard-phases
1781 (add-after
1782 'unpack 'use-full-library-paths
1783 (lambda* (#:key inputs #:allow-other-keys)
1784 (substitute* "Alc/backends/pulseaudio.c"
1785 (("#define PALIB \"libpulse\\.so\\.0\"")
1786 (string-append "#define PALIB \""
1787 (assoc-ref inputs "pulseaudio")
1788 "/lib/libpulse.so.0"
1789 "\"")))
1790 (substitute* "Alc/backends/alsa.c"
1791 (("LoadLib\\(\"libasound\\.so\\.2\"\\)")
1792 (string-append "LoadLib(\""
1793 (assoc-ref inputs "alsa-lib")
1794 "/lib/libasound.so.2"
1795 "\")")))
1796 #t)))))
f2fac359
TUBK
1797 (inputs
1798 `(("alsa-lib" ,alsa-lib)
1799 ("pulseaudio" ,pulseaudio)))
1800 (synopsis "3D audio API")
1801 (description
1802 "OpenAL provides capabilities for playing audio in a virtual 3D
1803environment. Distance attenuation, doppler shift, and directional sound
1804emitters are among the features handled by the API. More advanced effects,
1805including air absorption, occlusion, and environmental reverb, are available
1806through the EFX extension. It also facilitates streaming audio, multi-channel
1807buffers, and audio capture.")
1808 (home-page "http://kcat.strangesoft.net/openal.html")
1809 (license license:lgpl2.0+)))
1810
c2b411c2 1811(define-public freealut
1812 (package
1813 (name "freealut")
1814 (version "1.1.0")
1815 (source (origin
1816 (method url-fetch)
1817 ;; Upstream url is unclear, many systems use Fedora, there is also
1818 ;; https://github.com/vancegroup/freealut though the status of it
1819 ;; (official? unofficial?) is not clear.
1820 (uri (string-append
1821 "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
1822 version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
1823 "-" version ".tar.gz"))
1824 (sha256
1825 (base32
1826 "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
1827 (build-system cmake-build-system)
1828 (arguments
1829 `(#:tests? #f)) ; no check target
1830 (inputs
1831 `(("openal" ,openal)))
1832 (synopsis "Free implementation of OpenAL's ALUT standard")
1833 (description "freealut is the OpenAL Utility Toolkit.")
1834 (home-page "http://kcat.strangesoft.net/openal.html")
1835 (license license:lgpl2.0)))
1836
4443bb8d
RW
1837(define-public patchage
1838 (package
1839 (name "patchage")
1840 (version "1.0.0")
1841 (source (origin
1842 (method url-fetch)
1843 (uri (string-append "http://download.drobilla.net/patchage-"
1844 version
1845 ".tar.bz2"))
1846 (sha256
1847 (base32
1848 "1agdpwwi42176l4mxj0c4fsvdiv1ig56bfnnx0msckxmy57df8bb"))))
1849 (build-system waf-build-system)
1850 (arguments `(#:tests? #f)) ; no check target
1851 (inputs
1852 `(("alsa-lib" ,alsa-lib)
1853 ("boost" ,boost)
1854 ("jack" ,jack-1)
4443bb8d 1855 ("ganv" ,ganv)
4443bb8d
RW
1856 ("glibmm" ,glibmm)
1857 ("gtkmm" ,gtkmm-2)
4443bb8d
RW
1858 ("dbus-glib" ,dbus-glib)))
1859 (native-inputs
1860 `(("pkg-config" ,pkg-config)))
1861 (home-page "http://drobilla.net/software/patchage/")
1862 (synopsis "Modular patch bay for audio and MIDI systems")
1863 (description
1864 "Patchage is a modular patch bay for audio and MIDI systems based on JACK
1865and ALSA.")
1866 (license license:gpl3+)))
1867
0d78e377
MM
1868(define-public qjackctl
1869 (package
1870 (name "qjackctl")
1538bc33 1871 (version "0.4.5")
0d78e377
MM
1872 (source (origin
1873 (method url-fetch)
1538bc33
RW
1874 (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/"
1875 version "/qjackctl-" version ".tar.gz"))
0d78e377
MM
1876 (sha256
1877 (base32
1538bc33 1878 "1dsavjfzz5bpzc80mvfs940w9f9f47cf4r9cqxnaqrl4xilsa3f5"))))
0d78e377
MM
1879 (build-system gnu-build-system)
1880 (arguments
a3c57693 1881 '(#:tests? #f)) ; no check target
0d78e377 1882 (inputs
5ffa7cb1 1883 `(("jack" ,jack-1)
a3c57693
EF
1884 ("qtbase" ,qtbase)
1885 ("qtx11extras" ,qtx11extras)))
0d78e377
MM
1886 (native-inputs
1887 `(("pkg-config" ,pkg-config)
1888 ("qttools" ,qttools)))
1889 (home-page "https://qjackctl.sourceforge.io/")
1890 (synopsis "Jack server control application")
1891 (description "Control a Jack server. Allows you to plug various sources
1892into various outputs and to start, stop and configure jackd")
1893 (license license:gpl2+)))
1894
1895
b22755be
RW
1896(define-public raul
1897 (package
1898 (name "raul")
1899 (version "0.8.0")
1900 (source (origin
1901 (method url-fetch)
1902 (uri (string-append "http://download.drobilla.net/raul-"
1903 version ".tar.bz2"))
1904 (sha256
1905 (base32
1906 "09ms40xc1x6qli6lxkwn5ibqh62nl9w7dq0b6jh1q2zvnrxwsd8b"))))
1907 (build-system waf-build-system)
1908 (arguments
1909 `(#:python ,python-2
1910 #:tests? #f)) ; no check target
1911 (inputs
1912 `(("glib" ,glib)
1913 ("boost" ,boost)))
1914 (native-inputs
1915 `(("pkg-config" ,pkg-config)))
1916 (home-page "http://drobilla.net/software/raul/")
1917 (synopsis "Real-time audio utility library")
1918 (description
1919 "Raul (Real-time Audio Utility Library) is a C++ utility library primarily
1920aimed at audio/musical applications.")
1921 (license license:gpl2+)))
1922
f91d0d08
RW
1923(define-public raul-devel
1924 (let ((commit "f8bf77d3c3b77830aedafb9ebb5cdadfea7ed07a")
1925 (revision "1"))
1926 (package (inherit raul)
1927 (name "raul")
1928 (version (string-append "0.8.4-" revision "."
1929 (string-take commit 9)))
1930 (source (origin
1931 (method git-fetch)
1932 (uri (git-reference
1933 (url "http://git.drobilla.net/raul.git")
1934 (commit commit)))
1935 (file-name (string-append name "-" version "-checkout"))
1936 (sha256
1937 (base32
1938 "1lby508fb0n8ks6iz959sh18fc37br39d6pbapwvbcw5nckdrxwj")))))))
1939
57238ff2
RW
1940(define-public rubberband
1941 (package
1942 (name "rubberband")
1943 (version "1.8.1")
1944 (source (origin
1945 (method url-fetch)
1946 (uri
1947 (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v"
1948 version
1949 ".tar.bz2"))
1950 (sha256
1951 (base32
1952 "05amrbrxx0da3w7m237q51799r8xgs4ffqabi2qv06hq8dpcj386"))))
1953 (build-system gnu-build-system)
1954 (arguments `(#:tests? #f)) ; no check target
1955 (inputs
1956 `(("ladspa" ,ladspa)
1957 ("libsamplerate" ,libsamplerate)
1958 ("vamp" ,vamp)))
1959 (native-inputs
1960 `(("pkg-config" ,pkg-config)))
1961 (home-page "http://breakfastquay.com/rubberband/")
1962 (synopsis "Audio time-stretching and pitch-shifting library")
1963 (description
1964 "Rubber Band is a library and utility program that permits changing the
1965tempo and pitch of an audio recording independently of one another.")
1966 (license license:gpl2+)))
1967
cc45cff8
RW
1968(define-public rtmidi
1969 (package
1970 (name "rtmidi")
1971 (version "2.1.0")
1972 (source (origin
1973 (method url-fetch)
1974 (uri
1975 (string-append "https://github.com/powertab/rtmidi/archive/"
1976 version ".tar.gz"))
1977 (file-name (string-append name "-" version ".tar.gz"))
1978 (sha256
1979 (base32
1980 "0d49lapnmdgmjxh4vw57h6xk74nn5r0zwysv7jbd7m8kqhpq5rjj"))))
1981 (build-system gnu-build-system)
1982 (arguments
1983 `(#:tests? #f ;no "check" target
1984 #:phases (modify-phases %standard-phases
1985 (add-before
1986 'configure 'autoconf
1987 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
1988 (add-before
1989 'build 'fix-makefile
1990 (lambda _
1991 (substitute* "Makefile"
1992 (("/bin/ln") "ln")
1993 (("RtMidi.h RtError.h") "RtMidi.h"))
1994 #t))
1995 (add-before
1996 'install 'make-target-dirs
1997 (lambda _
1998 (let ((out (assoc-ref %outputs "out")))
1999 (mkdir-p (string-append out "/bin"))
2000 (mkdir (string-append out "/lib"))
2001 (mkdir (string-append out "/include")))
2002 #t)))))
2003 (inputs
2004 `(("jack" ,jack-1)
2005 ("alsa-lib" ,alsa-lib)))
2006 (native-inputs
2007 `(("autoconf" ,autoconf)
2008 ("automake" ,automake)
2009 ("libtool" ,libtool)
2010 ("pkg-config" ,pkg-config)))
2011 (home-page "https://github.com/powertab/rtmidi")
2012 (synopsis "Cross-platform MIDI library for C++")
2013 (description
2014 "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific
2015classes) that provide a common cross-platform API for realtime MIDI
2016input/output.")
2017 (license license:expat)))
2018
5279eb6f
RW
2019(define-public sratom
2020 (package
2021 (name "sratom")
7181981f 2022 (version "0.6.0")
5279eb6f
RW
2023 (source (origin
2024 (method url-fetch)
2025 (uri (string-append "http://download.drobilla.net/sratom-"
7181981f 2026 version ".tar.bz2"))
5279eb6f
RW
2027 (sha256
2028 (base32
7181981f 2029 "0hrxd9i66s06bpn6i3s9ka95134g3sm8yscmif7qgdzhyjqw42j4"))))
5279eb6f
RW
2030 (build-system waf-build-system)
2031 (arguments `(#:tests? #f)) ; no check target
2032 (inputs
2033 `(("lv2" ,lv2)
2034 ("serd" ,serd)
2035 ("sord" ,sord)))
2036 (native-inputs
2037 `(("pkg-config" ,pkg-config)))
2038 (home-page "http://drobilla.net/software/sratom/")
2039 (synopsis "Library for serialising LV2 atoms to/from RDF")
2040 (description
2041 "Sratom is a library for serialising LV2 atoms to/from RDF, particularly
2042the Turtle syntax.")
2043 (license license:isc)))
f3ab6ad3
RW
2044
2045(define-public suil
2046 (package
2047 (name "suil")
b1d3bb76 2048 (version "0.8.4")
f3ab6ad3
RW
2049 (source (origin
2050 (method url-fetch)
2051 (uri (string-append "http://download.drobilla.net/suil-"
b1d3bb76 2052 version ".tar.bz2"))
f3ab6ad3
RW
2053 (sha256
2054 (base32
b1d3bb76 2055 "1kji3lhha26qr6xm9j8ic5c40zbrrb5qnwm2qxzmsfxgmrz29wkf"))))
f3ab6ad3
RW
2056 (build-system waf-build-system)
2057 (arguments `(#:tests? #f)) ; no check target
2058 (inputs
2059 `(("lv2" ,lv2)
2060 ("gtk+-2" ,gtk+-2)
2061 ("qt-4" ,qt-4)))
2062 (native-inputs
2063 `(("pkg-config" ,pkg-config)))
2064 (home-page "http://drobilla.net/software/suil/")
2065 (synopsis "Library for loading and wrapping LV2 plugin UIs")
2066 (description
2067 "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
2068
2069Suil makes it possible to load a UI of a toolkit in a host using another
2070toolkit. The API is designed such that hosts do not need to explicitly
2071support specific toolkits – if Suil supports a particular toolkit, then UIs in
2072that toolkit will work in all hosts that use Suil automatically.
2073
2074Suil currently supports every combination of Gtk 2, Qt 4, and X11.")
2075 (license license:isc)))
db46f2fc 2076
9ffee457
RW
2077(define-public timidity++
2078 (package
2079 (name "timidity++")
2080 (version "2.14.0")
2081 (source (origin
2082 (method url-fetch)
de67e922
LF
2083 (uri (string-append "mirror://sourceforge/timidity/TiMidity++"
2084 "/TiMidity++-" version
2085 "/TiMidity++-" version ".tar.bz2"))
9ffee457
RW
2086 (sha256
2087 (base32
2088 "0xk41w4qbk23z1fvqdyfblbz10mmxsllw0svxzjw5sa9y11vczzr"))))
2089 (build-system gnu-build-system)
2090 (arguments
2091 '(#:configure-flags
2092 (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex"
2093 "--enable-ncurses"
2094 "--enable-server"
2095 "--enable-alsaseq"
2096 (string-append "--with-default-path="
2097 (assoc-ref %outputs "out") "/etc/timidity"))
2098 #:phases
2099 (alist-cons-after
2100 'install 'install-config
2101 (lambda _
2102 (let ((out (string-append (assoc-ref %outputs "out")
2103 "/etc/timidity")))
2104 (mkdir-p out)
2105 (call-with-output-file
2106 (string-append out "/timidity.cfg")
2107 (lambda (port)
2108 (format port (string-append "source "
2109 (assoc-ref %build-inputs "freepats")
2110 "/share/freepats/freepats.cfg"))))))
2111 %standard-phases)))
2112 (inputs
2113 `(("alsa-lib" ,alsa-lib)
2114 ("ao" ,ao)
2115 ("flac" ,flac)
2116 ("jack" ,jack-1)
2117 ("libogg" ,libogg)
2118 ("speex" ,speex)
2119 ("ncurses" ,ncurses)
2120 ("freepats" ,freepats)))
2121 (native-inputs
2122 `(("pkg-config" ,pkg-config)))
2123 (home-page "http://timidity.sourceforge.net/")
2124 (synopsis "Software synthesizer for playing MIDI files")
2125 (description
2126 "TiMidity++ is a software synthesizer. It can play MIDI files by
2127converting them into PCM waveform data; give it a MIDI data along with digital
2128instrument data files, then it synthesizes them in real-time, and plays. It
2129can not only play sounds, but also can save the generated waveforms into hard
2130disks as various audio file formats.")
2131 (license license:gpl2+)))
2132
db46f2fc
RW
2133(define-public vamp
2134 (package
2135 (name "vamp")
b1fb59d3 2136 (version "2.6")
db46f2fc
RW
2137 (source (origin
2138 (method url-fetch)
2139 (uri (string-append
2140 "https://code.soundsoftware.ac.uk"
494e9b91 2141 "/attachments/download/1520/vamp-plugin-sdk-"
b1fb59d3 2142 version ".tar.gz"))
9002e17c
TUBK
2143 (sha256
2144 (base32
494e9b91 2145 "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh"))))
db46f2fc 2146 (build-system gnu-build-system)
9002e17c
TUBK
2147 (arguments
2148 `(#:tests? #f ; no check target
2149 #:phases
2150 (alist-cons-after
2151 'install 'remove-libvamp-hostsdk.la
2152 (lambda* (#:key outputs #:allow-other-keys)
2153 ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656
2154 (for-each delete-file
2155 (let ((out (assoc-ref outputs "out")))
2156 (list (string-append out "/lib/libvamp-sdk.la")
2157 (string-append out "/lib/libvamp-hostsdk.la"))))
2158 #t)
2159 %standard-phases)))
db46f2fc
RW
2160 (inputs
2161 `(("libsndfile" ,libsndfile)))
2162 (native-inputs
2163 `(("pkg-config" ,pkg-config)))
2164 (home-page "http://vamp-plugins.org")
2165 (synopsis "Modular and extensible audio processing system")
2166 (description
2167 "Vamp is an audio processing plugin system for plugins that extract
2168descriptive information from audio data — typically referred to as audio
2169analysis plugins or audio feature extraction plugins.")
2170 (license
2171 (license:x11-style
2172 "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING"))))
9f1cdd9d
TUBK
2173
2174(define-public libsbsms
2175 (package
2176 (name "libsbsms")
2177 (version "2.0.2")
2178 (source
2179 (origin
2180 (method url-fetch)
2181 (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version
2182 "/libsbsms-" version ".tar.gz"))
2183 (sha256
2184 (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf"))))
2185 (build-system gnu-build-system)
2186 (native-inputs `(("automake" ,automake)))
2187 (arguments
476b2877
MW
2188 `(#:configure-flags
2189 ;; Disable the use of SSE unless on x86_64.
2190 ,(if (not (string-prefix? "x86_64" (or (%current-target-system)
2191 (%current-system))))
2192 ''("--disable-sse")
2193 ''())
2194 #:phases
09c414d8
MW
2195 (modify-phases %standard-phases
2196 (add-after
2197 'unpack 'fix-ar-lib-path
2198 (lambda* (#:key inputs #:allow-other-keys)
2199 ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'.
2200 (delete-file "ar-lib")
2201 (symlink
2202 (string-append (assoc-ref inputs "automake") "/share/automake-"
2203 ,(package-version automake) "/ar-lib")
2204 "ar-lib"))))))
9f1cdd9d
TUBK
2205 (home-page "http://sbsms.sourceforge.net/")
2206 (synopsis "Library for time stretching and pitch scaling of audio")
2207 (description
2208 "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time
2209stretching and pitch scaling of audio. This package contains the library.")
2210 ;; There is no explicit declaration of a license, but a COPYING file
2211 ;; containing gpl2.
2212 (license license:gpl2)))
754a98ae 2213
01b90919
SB
2214(define-public wavpack
2215 (package
2216 (name "wavpack")
5171ea38 2217 (version "5.1.0")
01b90919
SB
2218 (source (origin
2219 (method url-fetch)
2220 (uri (string-append "http://www.wavpack.com/"
2221 name "-" version ".tar.bz2"))
2222 (sha256
2223 (base32
5171ea38 2224 "0i19c6krc0p9krwrqy9s5xahaafigqzxcn31piidmlaqadyn4f8r"))))
01b90919
SB
2225 (build-system gnu-build-system)
2226 (home-page "http://www.wavpack.com/")
2227 (synopsis "Hybrid lossless audio codec")
2228 (description
2229 "WavPack is an audio compression format with lossless, lossy and hybrid
2230compression modes. This package contains command-line programs and library to
2231encode and decode wavpack files.")
2232 (license license:bsd-3)))
2233
a176dd7e
SB
2234(define-public libmodplug
2235 (package
2236 (name "libmodplug")
2237 (version "0.8.8.5")
2238 (source (origin
2239 (method url-fetch)
2240 (uri (string-append
0f971a04 2241 "mirror://sourceforge/modplug-xmms/"
a176dd7e
SB
2242 name "/" version "/" name "-" version ".tar.gz"))
2243 (sha256
2244 (base32
2245 "1bfsladg7h6vnii47dd66f5vh1ir7qv12mfb8n36qiwrxq92sikp"))))
2246 (build-system gnu-build-system)
2247 (home-page "http://modplug-xmms.sourceforge.net/")
2248 (synopsis "Mod file playing library")
2249 (description
2250 "Libmodplug renders mod music files as raw audio data, for playing or
2251conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are
2252supported. Optional features include high-quality resampling, bass expansion,
2253surround and reverb.")
2254 (license license:public-domain)))
2255
b97b5cda
SB
2256(define-public libxmp
2257 (package
2258 (name "libxmp")
2784fca0 2259 (version "4.4.1")
b97b5cda
SB
2260 (source (origin
2261 (method url-fetch)
de67e922 2262 (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/"
b97b5cda
SB
2263 name "-" version ".tar.gz"))
2264 (sha256
2265 (base32
2784fca0 2266 "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m"))))
b97b5cda
SB
2267 (build-system gnu-build-system)
2268 (home-page "http://xmp.sourceforge.net/")
2269 (synopsis "Module player library")
2270 (description
2271 "Libxmp is a library that renders module files to PCM data. It supports
2272over 90 mainstream and obscure module formats including Protracker (MOD),
2273Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).")
2274 (license license:lgpl2.1+)))
2275
3ec4bba4
SB
2276(define-public xmp
2277 (package
2278 (name "xmp")
1a79d476 2279 (version "4.1.0")
3ec4bba4
SB
2280 (source (origin
2281 (method url-fetch)
de67e922 2282 (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/"
3ec4bba4
SB
2283 name "-" version ".tar.gz"))
2284 (sha256
2285 (base32
1a79d476 2286 "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x"))))
3ec4bba4
SB
2287 (build-system gnu-build-system)
2288 (native-inputs
2289 `(("pkg-config" ,pkg-config)))
2290 (inputs
2291 `(("libxmp" ,libxmp)
2292 ("pulseaudio" ,pulseaudio)))
2293 (home-page "http://xmp.sourceforge.net/")
2294 (synopsis "Extended module player")
2295 (description
2296 "Xmp is a portable module player that plays over 90 mainstream and
2297obscure module formats, including Protracker MOD, Fasttracker II XM, Scream
2298Tracker 3 S3M and Impulse Tracker IT files.")
2299 (license license:gpl2+)))
2300
754a98ae
TUBK
2301(define-public soundtouch
2302 (package
2303 (name "soundtouch")
2304 (version "1.8.0")
2305 (source
2306 (origin
2307 (method url-fetch)
2308 (uri
2309 (string-append
2310 "http://www.surina.net/soundtouch/soundtouch-" version ".tar.gz"))
2311 (sha256
2312 (base32 "0sqn3wk4qz20vf0vz853l6dl1gnj1yhqxfwxqsc5lp529kbn2h9x"))))
2313 (build-system gnu-build-system)
2314 (native-inputs
2315 `(("autoconf" ,autoconf)
2316 ("automake" ,automake)
2317 ("libtool" ,libtool)
2318 ("file" ,file)))
2319 (arguments
2320 '(#:phases
722ec722
MW
2321 (alist-cons-after
2322 'unpack 'bootstrap
754a98ae 2323 (lambda _
722ec722 2324 (zero? (system* "sh" "bootstrap")))
754a98ae
TUBK
2325 %standard-phases)))
2326 (home-page "http://www.surina.net/soundtouch/")
2327 (synopsis
2328 "Audio processing library for changing tempo, pitch and playback rate")
2329 (description
2330 "SoundTouch is an audio processing library for changing the tempo, pitch
2331and playback rates of audio streams or audio files. It is intended for
2332application developers writing sound processing tools that require tempo/pitch
2333control functionality, or just for playing around with the sound effects.")
2334 (license license:lgpl2.1+)))
4bddd14c 2335
d739f481
AK
2336(define-public sox
2337 (package
2338 (name "sox")
2339 (version "14.4.2")
2340 (source (origin
2341 (method url-fetch)
de67e922
LF
2342 (uri (string-append "mirror://sourceforge/sox/sox/" version "/"
2343 name "-" version ".tar.bz2"))
d739f481
AK
2344 (sha256
2345 (base32
2346 "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1"))))
2347 (build-system gnu-build-system)
2348 (arguments
2349 '(#:configure-flags
2350 ;; The upstream asks to identify the distribution to diagnose SoX
2351 ;; bug reports.
2352 '("--with-distro=Guix System Distribution")))
2353 (native-inputs
2354 `(("pkg-config" ,pkg-config)))
2355 (inputs
2356 `(("alsa-lib" ,alsa-lib)
2357 ("ao" ,ao)
2358 ("flac" ,flac)
2359 ("lame" ,lame)
2360 ("libid3tag" ,libid3tag)
2361 ("libltdl" ,libltdl)
2362 ("libmad" ,libmad)
2363 ("libpng" ,libpng)
2364 ("libvorbis" ,libvorbis)
2365 ("pulseaudio" ,pulseaudio)))
2366 (home-page "http://sox.sourceforge.net")
2367 (synopsis "Sound processing utility")
2368 (description
2369 "SoX (Sound eXchange) is a command line utility that can convert
2370various formats of computer audio files to other formats. It can also
2371apply various effects to these sound files, and, as an added bonus, SoX
2372can play and record audio files.")
2373 ;; sox.c is distributed under GPL, while the files that make up
2374 ;; libsox are licensed under LGPL.
2375 (license (list license:gpl2+ license:lgpl2.1+))))
2376
4bddd14c
TUBK
2377(define-public soxr
2378 (package
2379 (name "soxr")
eb3574fb 2380 (version "0.1.2")
4bddd14c
TUBK
2381 (source
2382 (origin
2383 (method url-fetch)
2384 (uri
2385 (string-append "mirror://sourceforge/soxr/soxr-" version
2386 "-Source.tar.xz"))
2387 (sha256
eb3574fb 2388 (base32 "0xf2w3piwz9gfr1xqyrj4k685q5dy53kq3igv663i4f4y4sg9rjl"))))
4bddd14c
TUBK
2389 (build-system cmake-build-system)
2390 (arguments '(#:tests? #f)) ;no 'check' target
3b3b60d0 2391 (home-page "https://sourceforge.net/p/soxr/wiki/Home/")
4bddd14c
TUBK
2392 (synopsis "One-dimensional sample-rate conversion library")
2393 (description
2394 "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate
2395conversion. It may be used, for example, to resample PCM-encoded audio.")
2396 (license license:lgpl2.1+)))
49f36708
TUBK
2397
2398(define-public twolame
2399 (package
2400 (name "twolame")
2401 (version "0.3.13")
2402 (source
2403 (origin
2404 (method url-fetch)
de67e922
LF
2405 (uri (string-append "mirror://sourceforge/twolame/twolame/" version
2406 "/twolame-" version ".tar.gz"))
49f36708 2407 (sha256
46914280
LF
2408 (base32 "0ahiqqng5pidwhj1wzph4vxxgxxgcfa3gl0gywipzx2ii7s35wwq"))
2409 (modules '((guix build utils)))
2410 ;; The tests break with Perl 5.24:
2411 ;; https://github.com/njh/twolame/issues/21
2412 ;; TODO: Remove this snippet when upgrading twolame.
2413 (snippet
2414 '(begin
2415 (substitute* "tests/test.pl" (("\\(@_\\)") "($_[0])"))
2416 #t))))
49f36708
TUBK
2417 (build-system gnu-build-system)
2418 (inputs
2419 `(("libsndfile" ,libsndfile)))
2420 (native-inputs
2421 `(("perl" ,perl)
2422 ("which" ,which))) ;used in tests/test.pl
2423 (home-page "http://www.twolame.org/")
2424 (synopsis "MPEG Audio Layer 2 (MP2) encoder")
2425 (description
2426 "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
2427tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and
2428portions of LAME.")
2429 (license license:lgpl2.1+)))
bd4464f2
TUBK
2430
2431(define-public portaudio
2432 (package
2433 (name "portaudio")
80420acb 2434 (version "190600.20161030")
bd4464f2
TUBK
2435 (source
2436 (origin
2437 (method url-fetch)
2438 (uri (string-append
2439 "http://www.portaudio.com/archives/pa_stable_v"
2440 (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
2441 ".tgz"))
2442 (sha256
80420acb 2443 (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm"))
fc1adab1 2444 (patches (search-patches "portaudio-audacity-compat.patch"))))
bd4464f2
TUBK
2445 (build-system gnu-build-system)
2446 (inputs
2447 ;; TODO: Add ASIHPI.
2448 `(("alsa-lib" ,alsa-lib)
bcbc02fd 2449 ("jack" ,jack-1)))
bd4464f2 2450 (native-inputs
b47be021
TUBK
2451 `(("autoconf" ,autoconf)
2452 ("automake" ,automake)
2453 ("libtool" ,libtool)
2454 ("pkg-config" ,pkg-config)))
2455 (arguments
2456 '(#:phases
2457 ;; Autoreconf is necessary because the audacity-compat patch modifies
2458 ;; .in files.
2459 (alist-cons-after
2460 'unpack 'autoreconf
2461 (lambda _
2462 (zero? (system* "autoreconf" "-vif")))
2463 %standard-phases)
2464 #:tests? #f)) ;no 'check' target
bd4464f2
TUBK
2465 (home-page "http://www.portaudio.com/")
2466 (synopsis "Audio I/O library")
2467 (description
2468 "PortAudio is a portable C/C++ audio I/O library providing a simple API
2469to record and/or play sound using a callback function or a blocking read/write
2470interface.")
2471 (license license:expat)))
74bbf894 2472
fe73aef4
RW
2473(define-public qsynth
2474 (package
2475 (name "qsynth")
4ed4bb11 2476 (version "0.4.3")
fe73aef4
RW
2477 (source
2478 (origin
2479 (method url-fetch)
de67e922
LF
2480 (uri (string-append "mirror://sourceforge/qsynth/qsynth/" version
2481 "/qsynth-" version ".tar.gz"))
fe73aef4 2482 (sha256
4ed4bb11 2483 (base32 "1j5hm99fjrnaw8wbmlh4qixkv3rw5dl429mp1ag7js2ydrx0j9yy"))))
fe73aef4
RW
2484 (build-system gnu-build-system)
2485 (arguments
f2358305
DC
2486 `(#:tests? #f ; no "check" phase
2487 #:configure-flags
2488 '("CXXFLAGS=-std=gnu++11")))
598f6394 2489 (native-inputs
4ed4bb11
RW
2490 `(("qttools" ,qttools)
2491 ("pkg-config" ,pkg-config)))
fe73aef4 2492 (inputs
598f6394
DC
2493 `(("fluidsynth" ,fluidsynth)
2494 ("qtbase" ,qtbase)
2495 ("qtx11extras" ,qtx11extras)))
fe73aef4
RW
2496 (home-page "http://qsynth.sourceforge.net")
2497 (synopsis "Graphical user interface for FluidSynth")
2498 (description
2499 "Qsynth is a GUI front-end application for the FluidSynth SoundFont
2500synthesizer written in C++.")
2501 (license license:gpl2+)))
2502
55b596c3
TUBK
2503(define-public rsound
2504 (package
2505 (name "rsound")
2506 (version "1.1")
2507 (source
2508 (origin
2509 (method url-fetch)
2510 (uri (string-append "https://github.com/Themaister/RSound/archive/v"
2511 version ".tar.gz"))
01e327b5 2512 (file-name (string-append name "-" version))
55b596c3
TUBK
2513 (sha256
2514 (base32 "1wzs40c0k5zpkmm5ffl6c17xmr399sxli7ys0fbb9ib0fd334knx"))))
2515 (build-system gnu-build-system)
2516 (inputs
2517 `(("alsa-lib" ,alsa-lib)
276f49df 2518 ("jack" ,jack-1)
55b596c3
TUBK
2519 ("ao" ,ao)
2520 ("libsamplerate" ,libsamplerate)
2521 ("openal" ,openal)
2522 ("portaudio" ,portaudio)
2523 ("pulseaudio" ,pulseaudio)))
2524 (arguments
2525 '(#:phases
2526 (alist-replace
2527 'configure
2528 (lambda* (#:key outputs #:allow-other-keys)
2529 (setenv "CC" "gcc")
2530 (zero?
2531 (system* "./configure"
2532 (string-append "--prefix=" (assoc-ref outputs "out")))))
2533 %standard-phases)
2534 ;; No 'check' target.
2535 #:tests? #f))
2536 (home-page "http://themaister.net/rsound.html")
2537 (synopsis "Networked audio system")
2538 (description
2539 "RSound allows you to send audio from an application and transfer it
2540directly to a different computer on your LAN network. It is an audio daemon
2541with a much different focus than most other audio daemons.")
2542 (license license:gpl3+)))
2543
caf9055c
RW
2544(define-public xjackfreak
2545 (package
2546 (name "xjackfreak")
2547 (version "1.0")
2548 (source (origin
2549 (method url-fetch)
2550 (uri (string-append
2551 "https://github.com/johnhldavis/xjackfreak/archive/v"
2552 version ".tar.gz"))
2553 (file-name (string-append name "-" version ".tar.gz"))
2554 (sha256
2555 (base32
2556 "0xj6gpxfnw9jbdgwgm0x23xgfvj2kwmwb1nk0drw8lxgcchkq7d9"))))
2557 (build-system gnu-build-system)
2558 (arguments
2559 `(#:make-flags
2560 (list (string-append "docdir=" (assoc-ref %outputs "out")
2561 "/share/doc/xjackfreak"))))
2562 (inputs
2563 `(("jack" ,jack-1)
2564 ("libx11" ,libx11)
2565 ("libxt" ,libxt)
2566 ("libxext" ,libxext)))
2567 (native-inputs
2568 `(("pkg-config" ,pkg-config)))
2569 (home-page "https://github.com/johnhldavis/xjackfreak")
2570 (synopsis "JACK audio frequency analyzer and display")
2571 (description
2572 "XJackFreak is an audio analysis and equalizing tool for the Jack Audio
2573Connection Kit. It can display the FFT of any input, modify it and output the
2574result.")
2575 (license license:gpl3+)))
2576
d73f7909
RW
2577(define-public zita-convolver
2578 (package
2579 (name "zita-convolver")
2580 (version "3.1.0")
2581 (source (origin
2582 (method url-fetch)
2583 (uri (string-append
2584 "http://kokkinizita.linuxaudio.org"
2585 "/linuxaudio/downloads/zita-convolver-"
2586 version ".tar.bz2"))
29e255ca
SB
2587 (snippet
2588 ;; Don't optimize for a specific processor architecture.
2589 '(substitute* "libs/Makefile"
2590 (("^CXXFLAGS \\+= -march=native") "")))
2591 (modules '((guix build utils)))
d73f7909
RW
2592 (sha256
2593 (base32
2594 "14qrnczhp5mbwhky64il7kxc4hl1mmh495v60va7i2qnhasr6zmz"))))
2595 (build-system gnu-build-system)
2596 (arguments
2597 `(#:tests? #f ; no "check" target
2598 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2599 #:phases
2600 (alist-cons-after
2601 'unpack 'patch-makefile-and-enter-directory
2602 (lambda _
2603 (substitute* "libs/Makefile"
2604 (("ldconfig") "true")
2605 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2606 (chdir "libs") #t)
2607 (alist-cons-after
2608 'install
2609 'install-symlink
2610 (lambda _
2611 (symlink "libzita-convolver.so"
2612 (string-append (assoc-ref %outputs "out")
2613 "/lib/libzita-convolver.so.3")))
2614 ;; no configure script
2615 (alist-delete 'configure %standard-phases)))))
2616 (inputs `(("fftwf" ,fftwf)))
2617 (home-page "http://kokkinizita.linuxaudio.org")
2618 (synopsis "Fast, partitioned convolution engine library")
2619 (description
2620 "Zita convolver is a C++ library providing a real-time convolution
2621engine.")
2622 (license license:gpl3+)))
2623
b7ed6784
RW
2624(define-public zita-resampler
2625 (package
2626 (name "zita-resampler")
2627 (version "1.3.0")
2628 (source (origin
2629 (method url-fetch)
2630 (uri (string-append
2631 "http://kokkinizita.linuxaudio.org"
2632 "/linuxaudio/downloads/zita-resampler-"
2633 version ".tar.bz2"))
6dff4955
SB
2634 (snippet
2635 ;; Don't optimize for a specific processor architecture.
2636 '(substitute* '("apps/Makefile" "libs/Makefile")
2637 (("^CXXFLAGS \\+= -march=native") "")))
2638 (modules '((guix build utils)))
b7ed6784
RW
2639 (sha256
2640 (base32
2641 "0r9ary5sc3y8vba5pad581ha7mgsrlyai83w7w4x2fmhfy64q0wq"))))
2642 (build-system gnu-build-system)
2643 (arguments
2644 `(#:tests? #f ; no "check" target
2645 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2646 #:phases
2647 (modify-phases %standard-phases
2648 (add-after
2649 'unpack 'patch-makefile-and-enter-directory
2650 (lambda _
2651 (substitute* "libs/Makefile"
2652 (("ldconfig") "true")
2653 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2654 (chdir "libs")
2655 #t))
2656 (add-after
2657 'install 'install-symlink
2658 (lambda _
2659 (symlink "libzita-resampler.so"
2660 (string-append (assoc-ref %outputs "out")
2661 "/lib/libzita-resampler.so.1"))))
2662 ;; no configure script
2663 (delete 'configure))))
2664 (home-page "http://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html")
2665 (synopsis "C++ library for resampling audio signals")
2666 (description
2667 "Libzita-resampler is a C++ library for resampling audio signals. It is
2668designed to be used within a real-time processing context, to be fast, and to
2669provide high-quality sample rate conversion.")
2670 (license license:gpl3+)))
2671
74bbf894
RW
2672(define-public zita-alsa-pcmi
2673 (package
2674 (name "zita-alsa-pcmi")
2675 (version "0.2.0")
2676 (source (origin
2677 (method url-fetch)
2678 (uri (string-append
2679 "http://kokkinizita.linuxaudio.org"
2680 "/linuxaudio/downloads/zita-alsa-pcmi-"
2681 version ".tar.bz2"))
2682 (sha256
2683 (base32
9569dfc8 2684 "1rgv332g82rrrlm4vdam6p2pyrisxbi7b3izfaa0pcjglafsy7j9"))))
74bbf894
RW
2685 (build-system gnu-build-system)
2686 (arguments
2687 `(#:tests? #f ; no "check" target
2688 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2689 #:phases
2690 (alist-cons-after
9569dfc8
RW
2691 'unpack 'patch-makefile-and-enter-directory
2692 (lambda _
2693 (substitute* "libs/Makefile"
2694 (("ldconfig") "true")
2695 (("^LIBDIR =.*") "LIBDIR = lib\n"))
2696 (chdir "libs")
2697 #t)
74bbf894
RW
2698 (alist-cons-after
2699 'install
2700 'install-symlink
2701 (lambda _
2702 (symlink "libzita-alsa-pcmi.so"
2703 (string-append (assoc-ref %outputs "out")
2704 "/lib/libzita-alsa-pcmi.so.0")))
2705 ;; no configure script
2706 (alist-delete 'configure %standard-phases)))))
2707 (inputs
2708 `(("alsa-lib" ,alsa-lib)
2709 ("fftw" ,fftw)))
2710 (home-page "http://kokkinizita.linuxaudio.org")
2711 (synopsis "C++ wrapper around the ALSA API")
2712 (description
2713 "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy
2714access to ALSA PCM devices, taking care of the many functions required to
2715open, initialise and use a hw: device in mmap mode, and providing floating
2716point audio data.")
2717 (license license:gpl3+)))
6da16993
LF
2718
2719(define-public cuetools
2720 (package
2721 (name "cuetools")
2722 (version "1.4.1")
2723 (source (origin
2724 (method url-fetch)
2725 (uri (string-append "https://github.com/svend/cuetools/archive/"
2726 version ".tar.gz"))
2727 (file-name (string-append name "-" version ".tar.gz"))
2728 (sha256
2729 (base32
2730 "01xi3rvdmil9nawsha04iagjylqr1l9v9vlzk99scs8c207l58i4"))))
2731 (build-system gnu-build-system)
2732 ;; The source tarball is not bootstrapped.
2733 (arguments
2734 `(#:phases
2735 (modify-phases %standard-phases
2736 (add-after 'unpack 'bootstrap
2737 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
2738 ;; Bootstrapping tools
2739 (native-inputs
2740 `(("autoconf" ,autoconf)
2741 ("automake" ,automake)
2742 ("flex" ,flex)
2743 ("bison" ,bison)))
2744 (synopsis "Cue and toc file parsers and utilities")
2745 (description "Cuetools is a set of programs that are useful for manipulating
2746and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC
2747files are a way to represent the layout of a data or audio CD in a
2748machine-readable ASCII format.")
2749 (home-page "https://github.com/svend/cuetools")
2750 (license license:gpl2+)))
6819a8dd
LF
2751
2752(define-public shntool
2753 (package
2754 (name "shntool")
2755 (version "3.0.10")
2756 (source (origin
2757 (method url-fetch)
2758 (uri (string-append "http://etree.org/shnutils/shntool/dist/src/"
2759 "shntool-" version ".tar.gz"))
2760 (sha256
2761 (base32
2762 "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"))))
2763 (build-system gnu-build-system)
2764 (synopsis "WAVE audio data processing tool")
2765 (description "shntool is a multi-purpose WAVE data processing and reporting
2766utility. File formats are abstracted from its core, so it can process any file
2767that contains WAVE data, compressed or not---provided there exists a format
2768module to handle that particular file type.")
2769 (home-page "http://etree.org/shnutils/shntool/")
6ac2af78
LF
2770 ;; 'install-sh' bears the x11 license
2771 (license (list license:gpl2+ license:x11))))
680b54c5
DT
2772
2773(define-public dcadec
2774 (package
2775 (name "dcadec")
2776 (version "0.2.0")
2777 (source (origin
2778 (method url-fetch)
2779 (uri (string-append "https://github.com/foo86/dcadec/archive/v"
2780 version ".tar.gz"))
2781 (file-name (string-append name "-" version ".tar.gz"))
2782 (sha256
2783 (base32
2784 "0i0dpypgqkhhi4v1fmsp2way6w9kbcix3c7q79pmg39yvrzj17gd"))))
2785 (build-system gnu-build-system)
2786 (arguments
2787 ;; Test files are missing: https://github.com/foo86/dcadec/issues/53
2788 '(#:tests? #f
2789 #:make-flags
2790 (list "CC=gcc"
2791 ;; Build shared library.
2792 "CONFIG_SHARED=1"
2793 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2794 ;; Set proper runpath.
2795 (string-append "LDFLAGS=-Wl,-rpath="
2796 (assoc-ref %outputs "out")
2797 "/lib"))
2798 #:phases
2799 (modify-phases %standard-phases
2800 ;; No configure script, just a hand-written Makefile.
2801 (delete 'configure))))
2802 (synopsis "DTS Coherent Acoustics decoder")
2803 (description "Dcadec is a DTS Coherent Acoustics surround sound decoder
2804with support for HD extensions.")
2805 (home-page "https://github.com/foo86/dcadec")
2806 (license license:lgpl2.1+)))
e87c7ec2
AG
2807
2808(define-public bs1770gain
2809 (package
2810 (name "bs1770gain")
eb5378f9 2811 (version "0.4.12")
e87c7ec2
AG
2812 (source
2813 (origin
2814 (method url-fetch)
2815 (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
2816 version "/bs1770gain-" version ".tar.gz"))
2817 (sha256
2818 (base32
eb5378f9 2819 "0n9skdap1vnl6w52fx0gsrjlk7w3xgdwi62ycyf96h29rx059z6a"))))
e87c7ec2
AG
2820 (build-system gnu-build-system)
2821 (inputs `(("ffmpeg" ,ffmpeg)
2822 ("sox" ,sox)))
2823 (home-page "http://bs1770gain.sourceforge.net/")
2824 (synopsis "Tool to adjust loudness of media files")
2825 (description
2826 "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
2827flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the
2828loudness of audio and video files to the same level.")
2829 (license license:gpl2+)))
eb64bde1
EE
2830
2831(define-public filteraudio
2832 (let ((revision "1")
2833 (commit "2fc669581e2a0ff87fba8de85861b49133306094"))
2834 (package
2835 (name "filteraudio")
2836 (version (string-append "0.0.0-" revision "."
2837 (string-take commit 7)))
2838 (source
2839 (origin
2840 (method git-fetch)
2841 (uri (git-reference
2842 (url "https://github.com/irungentoo/filter_audio.git")
2843 (commit commit)))
2844 (file-name (string-append name "-" version "-checkout"))
2845 (sha256
2846 (base32
2847 "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g"))))
2848 (build-system gnu-build-system)
2849 (arguments
2850 '(#:make-flags (list (string-append "PREFIX=" %output)
2851 "CC=gcc")
2852 #:tests? #f ; No tests
2853 #:phases
2854 (modify-phases %standard-phases
2855 ;; No configure script
2856 (delete 'configure))))
2857 (synopsis "Lightweight audio filtering library")
2858 (description "An easy to use audio filtering library made from webrtc
2859code, used in @code{libtoxcore}.")
2860 (home-page "https://github.com/irungentoo/filter_audio")
2861 (license license:bsd-3))))
9a4c032c
LG
2862
2863(define-public gsm
2864 (package
2865 (name "gsm")
2866 (version "1.0.14")
2867 (source
2868 (origin
2869 (method url-fetch)
2870 (uri
2871 (string-append "http://www.quut.com/" name "/" name
2872 "-" version ".tar.gz"))
2873 (sha256
2874 (base32
2875 "0b1mx69jq88wva3wk0hi6fcl5a52qhnq2f9p3f3jdh5k61ma252q"))))
2876 (build-system gnu-build-system)
2877 (arguments
2878 `(#:test-target "tst"
2879 #:phases
2880 (modify-phases %standard-phases
2881 (add-before 'install 'pre-install
2882 (lambda _
2883 (let ((out (assoc-ref %outputs "out")))
2884 (substitute* "Makefile"
2885 (("INSTALL_ROOT\t=")
2886 (string-append "INSTALL_ROOT\t=\t" out)))
2887 (mkdir-p (string-append out "/inc"))
2888 (mkdir-p (string-append out "/man"))
2889 (mkdir-p (string-append out "/man/man1"))
2890 (mkdir-p (string-append out "/man/man3"))
2891 (mkdir-p (string-append out "/bin"))
2892 (mkdir-p (string-append out "/lib")))))
2893 (add-after 'install 'post-install
2894 (lambda _
2895 (let ((out (assoc-ref %outputs "out")))
2896 (rename-file (string-append out "/inc")
2897 (string-append out "/include"))
2898 (mkdir-p (string-append out "/include/gsm"))
2899 (copy-recursively "inc"
2900 (string-append out "/include/gsm")))))
2901 (delete 'configure))))
2902 (synopsis "GSM 06.10 lossy speech compression library")
2903 (description "This C library provides an encoder and a decoder for the GSM
290406.10 RPE-LTP lossy speech compression algorithm.")
2905 (home-page "http://quut.com/gsm/")
2906 (license (license:non-copyleft "file://COPYRIGHT"))))