Commit | Line | Data |
---|---|---|
fb68469f | 1 | ;;; GNU Guix --- Functional package management for GNU |
579e9e95 | 2 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 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> |
dda56249 | 7 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner <efraim@flashner.co.il> |
eb5378f9 | 8 | ;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com> |
3c986a7d | 9 | ;;; Copyright © 2016 Nikita <nikita@n0.is> |
9a4c032c | 10 | ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org> |
c7fc5086 | 11 | ;;; Copyright © 2016–2022 Tobias Geerinckx-Rice <me@tobias.gr> |
7366d831 | 12 | ;;; Copyright © 2018, 2020 Oleg Pykhalov <go.wigust@gmail.com> |
9073c875 | 13 | ;;; Copyright © 2018 okapi <okapi@firemail.cc> |
a9e9d9f4 | 14 | ;;; Copyright © 2018, 2020, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
77cc8778 | 15 | ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org> |
4b3ff362 | 16 | ;;; Copyright © 2018 Brett Gilio <brettg@gnu.org> |
a4b71b32 | 17 | ;;; Copyright © 2018, 2019 Marius Bakke <mbakke@fastmail.com> |
bd41e590 | 18 | ;;; Copyright © 2018, 2021 Thorsten Wilms <t_w_@freenet.de> |
ef8517f2 | 19 | ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org> |
dcfa0acd | 20 | ;;; Copyright © 2018 Brendan Tildesley <mail@brendan.scot> |
7fc922fd | 21 | ;;; Copyright © 2019, 2021 Pierre Langlois <pierre.langlois@gmx.com> |
80986c6a | 22 | ;;; Copyright © 2019, 2021 Leo Famulari <leo@famulari.name> |
ea3510f8 | 23 | ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com> |
ac886034 | 24 | ;;; Copyright © 2019, 2021 Arun Isaac <arunisaac@systemreboot.net> |
772ca8e4 | 25 | ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> |
5d703da3 | 26 | ;;; Copyright © 2019, 2020 Alexandros Theodotou <alex@zrythm.org> |
94551439 | 27 | ;;; Copyright © 2019 Christine Lemmer-Webber <cwebber@dustycloud.org> |
d83bb797 | 28 | ;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl> |
a8e14943 | 29 | ;;; Copyright © 2019 Hartmt Goebel <h.goebel@crazy-compilers.com> |
4b980563 | 30 | ;;; Copyright © 2019, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
391d12ff | 31 | ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com> |
f1b0d0d7 | 32 | ;;; Copyright © 2020, 2021 Guillaume Le Vaillant <glv@posteo.net> |
ecd56cd1 | 33 | ;;; Copyright © 2020 Jonathan Frederickson <jonathan@terracrypt.net> |
6241eacd | 34 | ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org> |
177ff077 | 35 | ;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net> |
b0cd4e04 | 36 | ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de> |
653bcab9 | 37 | ;;; Copyright © 2021 jgart <jgart@dismail.de> |
0745c820 | 38 | ;;; Copyright © 2021 Aleksandr Vityazev <avityazev@posteo.org> |
830344a9 | 39 | ;;; Copyright © 2022 Arjan Adriaanse <arjan@adriaan.se> |
8bea8797 | 40 | ;;; Copyright © 2022 Juliana Sims <jtsims@protonmail.com> |
8dc1430a | 41 | ;;; Copyright © 2022 Simon Streit <simon@netpanic.org> |
fb68469f RW |
42 | ;;; |
43 | ;;; This file is part of GNU Guix. | |
44 | ;;; | |
45 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
46 | ;;; under the terms of the GNU General Public License as published by | |
47 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
48 | ;;; your option) any later version. | |
49 | ;;; | |
50 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
51 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
52 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
53 | ;;; GNU General Public License for more details. | |
54 | ;;; | |
55 | ;;; You should have received a copy of the GNU General Public License | |
56 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
57 | ||
58 | (define-module (gnu packages audio) | |
fb68469f | 59 | #:use-module (gnu packages) |
d55f912a | 60 | #:use-module (gnu packages algebra) |
9f1cdd9d | 61 | #:use-module (gnu packages autotools) |
fcbeb00b | 62 | #:use-module (gnu packages avahi) |
a76abae1 | 63 | #:use-module (gnu packages backup) |
7c92efff | 64 | #:use-module (gnu packages base) |
fda85ca6 | 65 | #:use-module (gnu packages bison) |
4c76af04 | 66 | #:use-module (gnu packages build-tools) |
522ec708 | 67 | #:use-module (gnu packages boost) |
971ebdc8 | 68 | #:use-module (gnu packages check) |
7c92efff | 69 | #:use-module (gnu packages compression) |
88efb2c3 | 70 | #:use-module (gnu packages curl) |
255d1bbe | 71 | #:use-module (gnu packages dbm) |
0f2ce448 | 72 | #:use-module (gnu packages documentation) |
70d9ef51 | 73 | #:use-module (gnu packages elf) |
8ae60404 | 74 | #:use-module (gnu packages emacs) |
754a98ae | 75 | #:use-module (gnu packages file) |
fda85ca6 | 76 | #:use-module (gnu packages flex) |
11d4800a RW |
77 | #:use-module (gnu packages fltk) |
78 | #:use-module (gnu packages fontutils) | |
25e49169 | 79 | #:use-module (gnu packages gcc) |
fda85ca6 | 80 | #:use-module (gnu packages gettext) |
f5340e00 | 81 | #:use-module (gnu packages gl) |
88efb2c3 | 82 | #:use-module (gnu packages glib) |
88efb2c3 | 83 | #:use-module (gnu packages gnome) |
8ae60404 | 84 | #:use-module (gnu packages gnunet) ; libmicrohttpd |
fcbeb00b | 85 | #:use-module (gnu packages gperf) |
ac886034 | 86 | #:use-module (gnu packages groff) |
12158b83 | 87 | #:use-module (gnu packages gstreamer) |
522ec708 | 88 | #:use-module (gnu packages gtk) |
1ab58a3d | 89 | #:use-module (gnu packages guile) |
247384d0 | 90 | #:use-module (gnu packages icu4c) |
d739f481 | 91 | #:use-module (gnu packages image) |
dba33ca3 | 92 | #:use-module (gnu packages libbsd) |
58932576 | 93 | #:use-module (gnu packages libffi) |
72d9ef1b | 94 | #:use-module (gnu packages libusb) |
522ec708 | 95 | #:use-module (gnu packages linux) |
8ae60404 | 96 | #:use-module (gnu packages llvm) |
2f0107d8 | 97 | #:use-module (gnu packages machine-learning) |
670da398 | 98 | #:use-module (gnu packages man) |
522ec708 | 99 | #:use-module (gnu packages maths) |
88efb2c3 | 100 | #:use-module (gnu packages mp3) ;taglib |
522ec708 TGR |
101 | #:use-module (gnu packages multiprecision) |
102 | #:use-module (gnu packages music) | |
103 | #:use-module (gnu packages ncurses) | |
17aa4eb4 | 104 | #:use-module (gnu packages networking) |
522ec708 | 105 | #:use-module (gnu packages onc-rpc) |
88efb2c3 | 106 | #:use-module (gnu packages perl) |
c54a8981 RW |
107 | #:use-module (gnu packages pkg-config) |
108 | #:use-module (gnu packages pulseaudio) ;libsndfile, libsamplerate | |
d55f912a | 109 | #:use-module (gnu packages python) |
b615790a | 110 | #:use-module (gnu packages python-science) |
44d10b1f | 111 | #:use-module (gnu packages python-xyz) |
522ec708 | 112 | #:use-module (gnu packages qt) |
5279eb6f | 113 | #:use-module (gnu packages rdf) |
c54a8981 | 114 | #:use-module (gnu packages readline) |
27fc4ae3 | 115 | #:use-module (gnu packages samba) |
ea3510f8 | 116 | #:use-module (gnu packages sdl) |
247384d0 | 117 | #:use-module (gnu packages serialization) |
f2acd45e | 118 | #:use-module (gnu packages sqlite) |
dba33ca3 | 119 | #:use-module (gnu packages telephony) |
9be3ab7b | 120 | #:use-module (gnu packages linphone) |
ac886034 | 121 | #:use-module (gnu packages linux) |
8ae60404 | 122 | #:use-module (gnu packages tls) |
7cd2609e | 123 | #:use-module (gnu packages valgrind) |
e87c7ec2 | 124 | #:use-module (gnu packages video) |
8ae60404 | 125 | #:use-module (gnu packages vim) ;xxd |
bf592ef5 | 126 | #:use-module (gnu packages web) |
02979664 | 127 | #:use-module (gnu packages webkit) |
cd381c31 | 128 | #:use-module (gnu packages wxwidgets) |
6165dd3c | 129 | #:use-module (gnu packages xdisorg) |
c54a8981 | 130 | #:use-module (gnu packages xiph) |
da49086a | 131 | #:use-module (gnu packages xml) |
caf9055c | 132 | #:use-module (gnu packages xorg) |
522ec708 | 133 | #:use-module (guix build-system cmake) |
d4bd5c60 | 134 | #:use-module (guix build-system copy) |
522ec708 TGR |
135 | #:use-module (guix build-system glib-or-gtk) |
136 | #:use-module (guix build-system gnu) | |
137 | #:use-module (guix build-system meson) | |
138 | #:use-module (guix build-system python) | |
139 | #:use-module (guix build-system trivial) | |
140 | #:use-module (guix build-system waf) | |
141 | #:use-module (guix download) | |
142 | #:use-module (guix git-download) | |
c7fc5086 | 143 | #:use-module (guix gexp) |
522ec708 TGR |
144 | #:use-module ((guix licenses) #:prefix license:) |
145 | #:use-module (guix packages) | |
146 | #:use-module (guix utils) | |
118a8ecc EF |
147 | #:use-module (srfi srfi-1) |
148 | #:use-module (srfi srfi-26)) | |
fb68469f | 149 | |
08d048a0 RG |
150 | (define-public opensles |
151 | (package | |
152 | (name "opensles") | |
153 | (version "1.1.0") | |
154 | (source | |
155 | (origin | |
156 | (method git-fetch) | |
157 | (uri | |
158 | (git-reference | |
8ed4c468 | 159 | (url "https://github.com/KhronosGroup/OpenSL-ES-Registry") |
08d048a0 RG |
160 | (commit "ea5104bf37bf525c25e6ae2386586048179d0fda"))) |
161 | (file-name (git-file-name name version)) | |
162 | (sha256 | |
163 | (base32 "0j5bm7h3ahz66f23i9abwc0y10agfkpksnj6y078x2nichq66h4f")) | |
164 | (patches | |
165 | (search-patches "opensles-add-license-file.patch")))) | |
166 | (build-system copy-build-system) | |
167 | (arguments | |
168 | `(#:phases | |
169 | (modify-phases %standard-phases | |
170 | (add-after 'install 'clean | |
171 | (lambda* (#:key outputs #:allow-other-keys) | |
172 | (let* ((out (assoc-ref outputs "out"))) | |
173 | (mkdir-p (string-append out "/etc")) | |
174 | (mkdir-p (string-append out "/include")) | |
175 | (mkdir-p (string-append out "/share")) | |
176 | (rename-file | |
177 | (string-append out "/api/1.1/OpenSLES_IID.c") | |
178 | (string-append out "/etc/OpenSLES_IID.c")) | |
179 | (rename-file | |
180 | (string-append out "/api/1.1/OpenSLES.h") | |
181 | (string-append out "/include/OpenSLES.h")) | |
182 | (rename-file | |
183 | (string-append out "/api/1.1/OpenSLES_Platform.h") | |
184 | (string-append out "/include/OpenSLES_Platform.h")) | |
185 | (rename-file | |
186 | (string-append out "/api/1.1/README.txt") | |
187 | (string-append out "/share/README.txt")) | |
188 | (rename-file | |
189 | (string-append out "/LICENSE.txt") | |
190 | (string-append out "/share/LICENSE.txt")) | |
191 | (for-each delete-file-recursively | |
192 | (list | |
193 | (string-append out "/api") | |
194 | (string-append out "/specs"))) | |
195 | (for-each delete-file | |
196 | (list | |
197 | (string-append out "/CODE_OF_CONDUCT.md") | |
198 | (string-append out "/index.php") | |
199 | (string-append out "/README.md")))) | |
200 | #t))))) | |
201 | (synopsis "Embedded Audio Acceleration") | |
202 | (description "OpenSLES is a royalty-free, cross-platform, | |
203 | hardware-accelerated audio API tuned for embedded systems. It provides a | |
204 | standardized, high-performance, low-latency method to access audio | |
205 | functionality for developers of native applications on embedded mobile | |
206 | multimedia devices, enabling straightforward cross-platform deployment of | |
207 | hardware and software audio capabilities, reducing implementation effort, and | |
208 | promoting the market for advanced audio.") | |
209 | (home-page "https://www.khronos.org/opensles/") | |
210 | (license (license:non-copyleft "file:///LICENSE.txt")))) | |
211 | ||
3afbc16b RG |
212 | (define-public wildmidi |
213 | (package | |
214 | (name "wildmidi") | |
1585452e | 215 | (version "0.4.4") |
3afbc16b RG |
216 | (source |
217 | (origin | |
218 | (method git-fetch) | |
219 | (uri | |
220 | (git-reference | |
8ed4c468 | 221 | (url "https://github.com/Mindwerks/wildmidi") |
3afbc16b RG |
222 | (commit (string-append name "-" version)))) |
223 | (file-name (git-file-name name version)) | |
224 | (sha256 | |
1585452e | 225 | (base32 "08fbbsvw6pkwwqarjwcvdp8mq4zn5sgahf025hynwc6rvf4sp167")))) |
3afbc16b RG |
226 | (build-system cmake-build-system) |
227 | (arguments | |
228 | `(#:tests? #f ; No target | |
229 | #:configure-flags | |
230 | (list | |
231 | "-DWANT_ALSA=ON" | |
232 | "-DWANT_OSS=ON" | |
233 | "-DWANT_OPENAL=ON"))) | |
234 | (inputs | |
235 | `(("alsa" ,alsa-lib) | |
236 | ("openal" ,openal))) | |
237 | (synopsis "Software Synthesizer") | |
238 | (description "WildMIDI is a simple software midi player which has a core | |
239 | softsynth library that can be use with other applications.") | |
240 | (home-page "https://www.mindwerks.net/projects/wildmidi/") | |
241 | (license | |
242 | (list | |
243 | ;; Library. | |
244 | license:lgpl3+ | |
245 | ;; Player. | |
246 | license:gpl3+)))) | |
247 | ||
94e8c890 RG |
248 | (define-public webrtc-audio-processing |
249 | (package | |
250 | (name "webrtc-audio-processing") | |
251 | (version "0.3.1") | |
252 | (source | |
253 | (origin | |
254 | (method url-fetch) | |
255 | (uri | |
256 | (string-append "http://freedesktop.org/software/pulseaudio/" | |
257 | name "/" name "-" version ".tar.xz")) | |
258 | (sha256 | |
259 | (base32 "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0")))) | |
260 | (build-system gnu-build-system) | |
dda56249 | 261 | (arguments |
55e87184 EF |
262 | ;; TODO: Move this to a snippet/patch or remove with the upgrade to 1.0. |
263 | (if (or (target-riscv64?) | |
264 | (target-powerpc?)) | |
dda56249 EF |
265 | (list |
266 | #:phases | |
267 | #~(modify-phases %standard-phases | |
268 | (add-after 'unpack 'patch-source | |
55e87184 EF |
269 | (lambda* (#:key inputs #:allow-other-keys) |
270 | (let ((patch-file | |
271 | #$(local-file | |
272 | (search-patch | |
273 | "webrtc-audio-processing-big-endian.patch")))) | |
274 | (invoke "patch" "--force" "-p1" "-i" patch-file) | |
275 | (substitute* "webrtc/typedefs.h" | |
276 | (("defined\\(__aarch64__\\)" all) | |
277 | (string-append | |
278 | ;; powerpc-linux | |
279 | "(defined(__PPC__) && __SIZEOF_SIZE_T__ == 4)\n" | |
280 | "#define WEBRTC_ARCH_32_BITS\n" | |
281 | "#define WEBRTC_ARCH_BIG_ENDIAN\n" | |
282 | ;; powerpc64-linux | |
283 | "#elif (defined(__PPC64__) && defined(_BIG_ENDIAN))\n" | |
284 | "#define WEBRTC_ARCH_64_BITS\n" | |
285 | "#define WEBRTC_ARCH_BIG_ENDIAN\n" | |
286 | ;; aarch64-linux | |
287 | "#elif " all | |
288 | ;; riscv64-linux | |
289 | " || (defined(__riscv) && __riscv_xlen == 64)" | |
290 | ;; powerpc64le-linux | |
291 | " || (defined(__PPC64__) && defined(_LITTLE_ENDIAN))")))))))) | |
292 | '())) | |
293 | (native-inputs | |
294 | (if (or (target-riscv64?) | |
295 | (target-powerpc?)) | |
296 | (list | |
297 | (local-file (search-patch "webrtc-audio-processing-big-endian.patch")) | |
298 | patch) | |
dda56249 | 299 | '())) |
94e8c890 RG |
300 | (synopsis "WebRTC's Audio Processing Library") |
301 | (description "WebRTC-Audio-Processing library based on Google's | |
302 | implementation of WebRTC.") | |
303 | (home-page | |
304 | "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/") | |
305 | (license (license:non-copyleft "file:///COPYING")))) | |
306 | ||
5ca56bd5 RG |
307 | (define-public vo-aacenc |
308 | (package | |
309 | (name "vo-aacenc") | |
310 | (version "0.1.3") | |
311 | (source | |
312 | (origin | |
313 | (method url-fetch) | |
314 | (uri | |
315 | (string-append "https://sourceforge.net/projects/opencore-amr/files/" | |
316 | name "/" name "-" version ".tar.gz")) | |
317 | (sha256 | |
318 | (base32 "0dhghm3c8pqrriwwyj5x9i0yf52fmdfijbgqqkvqvwarldvp86p5")))) | |
319 | (build-system gnu-build-system) | |
320 | (synopsis "VisualOn AAC Encoder") | |
321 | (description "VO-AACENC is the VisualOn implementation of Advanced Audio | |
322 | Coding (AAC) encoder.") | |
323 | (home-page "https://sourceforge.net/projects/opencore-amr/") | |
324 | (license license:asl2.0))) | |
325 | ||
d4bd5c60 RG |
326 | (define-public tinyalsa |
327 | (package | |
328 | (name "tinyalsa") | |
ceb72ad0 | 329 | (version "2.0.0") |
d4bd5c60 RG |
330 | (source |
331 | (origin | |
332 | (method git-fetch) | |
333 | (uri | |
334 | (git-reference | |
8ed4c468 | 335 | (url "https://github.com/tinyalsa/tinyalsa") |
ceb72ad0 | 336 | (commit (string-append "v" version)))) |
d4bd5c60 RG |
337 | (file-name (git-file-name name version)) |
338 | (sha256 | |
ceb72ad0 | 339 | (base32 "1p9khz3bdpdcrnc9p6w522a0ankdchj4nxd3ki41z9401rxmnljq")))) |
d4bd5c60 RG |
340 | (build-system gnu-build-system) |
341 | (arguments | |
342 | `(#:tests? #f ; No target | |
343 | #:phases | |
344 | (modify-phases %standard-phases | |
345 | (delete 'configure)) | |
346 | #:make-flags | |
347 | (list | |
348 | (string-append "PREFIX=" (assoc-ref %outputs "out"))))) | |
349 | (synopsis "ALSA interfacing library") | |
350 | (description "TinyALSA is a small library to interface with ALSA in the | |
351 | Linux kernel.") | |
352 | (home-page "https://github.com/tinyalsa/tinyalsa") | |
353 | (license (license:non-copyleft "file:///NOTICE")))) | |
354 | ||
50ca41ad LP |
355 | (define-public libgme |
356 | (package | |
357 | (name "libgme") | |
358 | (version "0.6.3") | |
359 | (source (origin | |
360 | (method url-fetch) | |
361 | (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/" | |
362 | "downloads/game-music-emu-" version | |
363 | ".tar.xz")) | |
364 | (sha256 | |
365 | (base32 | |
366 | "07857vdkak306d9s5g6fhmjyxk7vijzjhkmqb15s7ihfxx9lx8xb")))) | |
367 | (build-system cmake-build-system) | |
368 | (arguments | |
5c4b76ce LC |
369 | '(#:tests? #f ;no check target |
370 | ||
371 | ;; XXX: Building with '-fsanitize=undefined' leads to embedded C++ STL | |
372 | ;; header file names in libgme.so, meaning that libgme retains a | |
373 | ;; reference to GCC. Disable UBSAN to avoid that. | |
374 | #:configure-flags '("-DENABLE_UBSAN=OFF"))) | |
50ca41ad LP |
375 | (home-page "https://bitbucket.org/mpyne/game-music-emu") |
376 | (synopsis "Video game music file playback library") | |
377 | (description | |
378 | "Game-music-emu is a collection of video game music file emulators that | |
379 | support the following formats and systems: | |
380 | @table @code | |
381 | @item AY | |
382 | ZX Spectrum/Asmtrad CPC | |
383 | @item GBS | |
384 | Nintendo Game Boy | |
385 | @item GYM | |
386 | Sega Genesis/Mega Drive | |
387 | @item HES | |
388 | NEC TurboGrafx-16/PC Engine | |
389 | @item KSS | |
390 | MSX Home Computer/other Z80 systems (doesn't support FM sound) | |
391 | @item NSF/NSFE | |
392 | Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound) | |
393 | @item SAP | |
394 | Atari systems using POKEY sound chip | |
395 | @item SPC | |
396 | Super Nintendo/Super Famicom | |
397 | @item VGM/VGZ | |
398 | Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro | |
399 | @end table") | |
400 | (license (list license:lgpl2.1+ | |
401 | ;; demo and player directories are under the Expat license | |
402 | license:expat)))) | |
403 | ||
d6ef1039 RG |
404 | (define-public libopenmpt |
405 | (package | |
406 | (name "libopenmpt") | |
963c235d | 407 | (version "0.5.9") |
d6ef1039 RG |
408 | (source |
409 | (origin | |
410 | (method url-fetch) | |
411 | (uri | |
e48c12a3 TGR |
412 | (string-append "https://download.openmpt.org/archive/libopenmpt/src/" |
413 | "libopenmpt-" version "+release.autotools.tar.gz")) | |
d6ef1039 | 414 | (sha256 |
963c235d | 415 | (base32 "0h86p8mnpm98vc4v6jbvrmm02fch7dnn332i26fg3a2s1738m04d")))) |
d6ef1039 | 416 | (build-system gnu-build-system) |
2933e4d4 TGR |
417 | (arguments |
418 | `(#:configure-flags | |
419 | (list (string-append "--docdir=" (assoc-ref %outputs "out") | |
2c6b6d79 TGR |
420 | "/share/doc/" ,name "-" ,version)) |
421 | #:phases | |
422 | (modify-phases %standard-phases | |
423 | (add-after 'install 'delete-static-libraries | |
424 | (lambda* (#:key outputs #:allow-other-keys) | |
425 | (let* ((out (assoc-ref outputs "out")) | |
426 | (lib (string-append out "/lib"))) | |
427 | (for-each delete-file (find-files lib "\\.a$")) | |
428 | #t)))))) | |
d6ef1039 | 429 | (native-inputs |
8394619b | 430 | (list doxygen perl pkg-config)) |
d6ef1039 RG |
431 | (inputs |
432 | `(("alsa" ,alsa-lib) | |
433 | ("flac" ,flac) | |
d6ef1039 RG |
434 | ("portaudio" ,portaudio) |
435 | ("pulseaudio" ,pulseaudio) | |
436 | ("sdl2" ,sdl2) | |
f80034c1 EF |
437 | ("sndfile" ,libsndfile))) |
438 | (propagated-inputs | |
439 | ;; In Requires.private | |
440 | (list libogg libvorbis mpg123 zlib)) | |
d6ef1039 RG |
441 | (synopsis "Audio tracking library") |
442 | (description "LibOpenMPT is a cross-platform C++ and C module playback | |
443 | library. It is based on the player code of the Open ModPlug Tracker project.") | |
444 | (home-page "https://openmpt.org/") | |
445 | (license (license:non-copyleft "file:///LICENSE")))) | |
446 | ||
38375ce9 RG |
447 | (define-public libofa |
448 | (package | |
449 | (name "libofa") | |
450 | (version "0.9.3") | |
451 | (source | |
452 | (origin | |
453 | (method url-fetch) | |
454 | (uri | |
455 | (string-append "https://storage.googleapis.com/" | |
456 | "google-code-archive-downloads/v2/code.google.com/" | |
457 | "musicip-libofa/" name "-" version ".tar.gz")) | |
458 | (sha256 | |
459 | (base32 "184ham039l7lwhfgg0xr2vch2xnw1lwh7sid432mh879adhlc5h2")) | |
460 | (patches | |
461 | (search-patches | |
462 | "libofa-ftbfs-1.diff" | |
463 | "libofa-curl.diff" | |
464 | "libofa-ftbfs-2.diff")))) | |
465 | (build-system gnu-build-system) | |
466 | (native-inputs | |
8394619b | 467 | (list pkg-config)) |
38375ce9 | 468 | (inputs |
8394619b | 469 | (list curl expat)) |
38375ce9 | 470 | (propagated-inputs |
8394619b | 471 | (list fftw)) |
38375ce9 RG |
472 | (synopsis "Open Fingerprint Architecture") |
473 | (description "LibOFA is an audio fingerprint library, created and provided | |
474 | by MusicIP.") | |
475 | (home-page "https://code.google.com/archive/p/musicip-libofa/") | |
476 | (license license:gpl2+))) | |
477 | ||
de4ca093 RG |
478 | (define-public faac |
479 | (package | |
480 | (name "faac") | |
481 | (version "1.30") | |
482 | (source | |
483 | (origin | |
484 | (method url-fetch) | |
485 | (uri | |
3fabb616 RG |
486 | (string-append "mirror://sourceforge/faac/faac-src" |
487 | "/faac-" version "/faac-1_30.tar.gz")) | |
de4ca093 RG |
488 | (sha256 |
489 | (base32 "1lmj0dib3mjp84jhxc5ddvydkzzhb0gfrdh3ikcidjlcb378ghxd")))) | |
490 | (build-system gnu-build-system) | |
491 | (native-inputs | |
8394619b | 492 | (list autoconf automake libtool pkg-config)) |
de4ca093 RG |
493 | (synopsis "Freeware Advanced Audio Coder") |
494 | (description "FAAC is an MPEG-4 and MPEG-2 AAC encoder.") | |
495 | (home-page "https://www.audiocoding.com/faac.html") | |
496 | (license | |
497 | (list | |
498 | ;; ISO MPEG-4 reference code. | |
499 | license:gpl2+ | |
500 | ;; Others. | |
501 | license:lgpl2.0+)))) | |
502 | ||
568af1bd RG |
503 | (define-public libtimidity |
504 | (package | |
505 | (name "libtimidity") | |
30295ede | 506 | (version "0.2.7") |
568af1bd RG |
507 | (source |
508 | (origin | |
509 | (method url-fetch) | |
510 | (uri | |
511 | (string-append "https://sourceforge.net/projects/" name "/files/" | |
512 | name "/" version "/" name "-" version ".tar.gz")) | |
513 | (sha256 | |
30295ede | 514 | (base32 "0sif6lxa058b1mg19zwjm8rl2sg8cg0443k4dgi65clz0jy7qi16")))) |
568af1bd RG |
515 | (build-system gnu-build-system) |
516 | (arguments | |
517 | `(#:tests? #f)) ; XXX: LibTiMidity could not be initialised | |
518 | (native-inputs | |
8394619b | 519 | (list pkg-config)) |
568af1bd | 520 | (inputs |
8394619b | 521 | (list ao)) |
568af1bd RG |
522 | (synopsis "MIDI to WAVE converter library") |
523 | (description "LibTiMidity is a MIDI to WAVE converter library that uses | |
524 | Gravis Ultrasound-compatible patch files to generate digital audio data from | |
525 | General MIDI files.") | |
526 | (home-page "http://libtimidity.sourceforge.net/") | |
527 | (license | |
528 | ;; This project is dual-licensed. | |
529 | ;; Either of the following licenses can be exercised. | |
530 | (list | |
531 | license:lgpl2.1+ | |
532 | license:artistic2.0)))) | |
533 | ||
62e9f00c RG |
534 | (define-public vo-amrwbenc |
535 | (package | |
536 | (name "vo-amrwbenc") | |
537 | (version "0.1.3") | |
538 | (source | |
539 | (origin | |
540 | (method url-fetch) | |
541 | (uri | |
542 | (string-append "https://sourceforge.net/projects/opencore-amr/files/" | |
543 | name "/" name "-" version ".tar.gz")) | |
544 | (sha256 | |
545 | (base32 "0klx3nkidc6b8aawchpk19n3xlrzgnc046w4gd0rdqphw28v6ljn")))) | |
546 | (build-system gnu-build-system) | |
547 | (synopsis "Adaptive Multi Rate Codec") | |
548 | (description "VO-AMR is a library of VisualOn implementation of | |
549 | Adaptive Multi Rate Narrowband and Wideband (AMR-NB and AMR-WB) speech codec.") | |
550 | (home-page "https://sourceforge.net/projects/opencore-amr/") | |
551 | (license license:asl2.0))) | |
552 | ||
d5fc8518 RG |
553 | (define-public opencore-amr |
554 | (package | |
555 | (name "opencore-amr") | |
556 | (version "0.1.5") | |
557 | (source | |
558 | (origin | |
559 | (method url-fetch) | |
560 | (uri | |
561 | (string-append "https://sourceforge.net/projects/opencore-amr/files/" | |
562 | name "/" name "-" version ".tar.gz")) | |
563 | (sha256 | |
564 | (base32 "0hfk9khz3by0119h3jdwgdfd7jgkdbzxnmh1wssvylgnsnwnq01c")))) | |
565 | (build-system gnu-build-system) | |
566 | (synopsis "Adaptive Multi Rate Codec") | |
567 | (description "OpenCore-AMR is a library of OpenCORE Framework | |
568 | implementation of Adaptive Multi Rate Narrowband and Wideband | |
569 | (AMR-NB and AMR-WB) speech codec.") | |
570 | (home-page "https://sourceforge.net/projects/opencore-amr/") | |
571 | (license license:asl2.0))) | |
572 | ||
eb0fb087 RW |
573 | (define-public alsa-modular-synth |
574 | (package | |
575 | (name "alsa-modular-synth") | |
9f3cb560 | 576 | (version "2.2.0") |
eb0fb087 RW |
577 | (source (origin |
578 | (method url-fetch) | |
de67e922 LF |
579 | (uri (string-append "mirror://sourceforge/alsamodular/alsamodular" |
580 | "/" version "/ams-" version ".tar.bz2")) | |
eb0fb087 RW |
581 | (sha256 |
582 | (base32 | |
9f3cb560 | 583 | "056dn6b9c5nsw2jdww7z1kxrjqqfvxjzxhsd5x9gi4wkwyiv21nz")))) |
eb0fb087 RW |
584 | (build-system gnu-build-system) |
585 | (inputs | |
8394619b LC |
586 | (list alsa-lib |
587 | ;; We cannot use zita-alsa-pcmi (the successor of clalsadrv) due to | |
588 | ;; license incompatibility. | |
589 | clalsadrv | |
590 | fftw | |
591 | jack-1 | |
592 | ladspa | |
593 | liblo | |
594 | qtbase-5)) | |
eb0fb087 | 595 | (native-inputs |
eef8e2ec | 596 | (list pkg-config qttools-5)) |
eb0fb087 RW |
597 | (home-page "http://alsamodular.sourceforge.net/") |
598 | (synopsis "Realtime modular synthesizer and effect processor") | |
599 | (description | |
600 | "AlsaModularSynth is a digital implementation of a classical analog | |
601 | modular synthesizer system. It uses virtual control voltages to control the | |
602 | parameters of the modules. The control voltages which control the frequency | |
603 | e.g. of the VCO (Voltage Controlled Oscillator) and VCF (Voltage Controlled | |
604 | Filter) modules follow the convention of 1V / Octave.") | |
605 | (license license:gpl2))) | |
606 | ||
d55f912a RW |
607 | (define-public aubio |
608 | (package | |
609 | (name "aubio") | |
4a17211a | 610 | (version "0.4.9") |
d55f912a RW |
611 | (source (origin |
612 | (method url-fetch) | |
613 | (uri (string-append | |
c2f6c9ba | 614 | "https://aubio.org/pub/aubio-" version ".tar.bz2")) |
d55f912a RW |
615 | (sha256 |
616 | (base32 | |
4a17211a | 617 | "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl")))) |
d55f912a RW |
618 | (build-system waf-build-system) |
619 | (arguments | |
4a17211a | 620 | `(#:tests? #f ; no check target |
d55f912a | 621 | #:configure-flags |
409dec3f TGR |
622 | (list |
623 | (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib") | |
624 | "--enable-fftw3f" | |
625 | "--enable-jack" | |
626 | "--enable-sndfile" | |
627 | "--enable-samplerate" | |
eb36a550 | 628 | "--enable-avcodec"))) |
d55f912a | 629 | (inputs |
8394619b | 630 | (list jack-1 libsndfile libsamplerate fftwf ffmpeg)) ; for libavcodec |
d55f912a | 631 | (native-inputs |
8394619b | 632 | (list pkg-config)) |
c2f6c9ba | 633 | (home-page "https://aubio.org/") |
a124bbd2 | 634 | (synopsis "Library for audio labelling") |
d55f912a RW |
635 | (description |
636 | "aubio is a tool designed for the extraction of annotations from audio | |
637 | signals. Its features include segmenting a sound file before each of its | |
638 | attacks, performing pitch detection, tapping the beat and producing MIDI | |
639 | streams from live audio.") | |
640 | (license license:gpl3+))) | |
641 | ||
d49976ed RW |
642 | (define (ardour-rpath-phase major-version) |
643 | `(lambda* (#:key outputs #:allow-other-keys) | |
644 | (let ((libdir (string-append (assoc-ref outputs "out") | |
645 | "/lib/ardour" ,major-version))) | |
646 | (substitute* "wscript" | |
647 | (("linker_flags = \\[\\]") | |
648 | (string-append "linker_flags = [\"" | |
649 | "-Wl,-rpath=" | |
650 | libdir ":" | |
651 | libdir "/backends" ":" | |
652 | libdir "/engines" ":" | |
653 | libdir "/panners" ":" | |
654 | libdir "/surfaces" ":" | |
655 | libdir "/vamp" "\"]")))) | |
656 | #t)) | |
657 | ||
60725232 | 658 | (define-public ardour |
88efb2c3 RW |
659 | (package |
660 | (name "ardour") | |
bd41e590 | 661 | (version "6.9") |
88efb2c3 | 662 | (source (origin |
88efb2c3 RW |
663 | (method git-fetch) |
664 | (uri (git-reference | |
7fc922fd | 665 | (url "git://git.ardour.org/ardour/ardour.git") |
88efb2c3 RW |
666 | (commit version))) |
667 | (snippet | |
b16043a3 RW |
668 | ;; Ardour expects this file to exist at build time. The revision |
669 | ;; is the output of | |
670 | ;; git describe HEAD | sed 's/^[A-Za-z]*+//' | |
02ecdeaa | 671 | `(call-with-output-file |
88efb2c3 RW |
672 | "libs/ardour/revision.cc" |
673 | (lambda (port) | |
02ecdeaa | 674 | (format port ,(string-append "#include \"ardour/revision.h\" |
7fc922fd | 675 | namespace ARDOUR { const char* revision = \"" version "\" ; const char* date = \"\"; }")) |
6cbee49d | 676 | #t))) |
88efb2c3 RW |
677 | (sha256 |
678 | (base32 | |
bd41e590 | 679 | "0vlcbd70y0an881zv87kc3akmaiz4w7whsy3yaiiqqjww35jg1mm")) |
88efb2c3 RW |
680 | (file-name (string-append name "-" version)))) |
681 | (build-system waf-build-system) | |
682 | (arguments | |
b5fc72ff | 683 | `(#:configure-flags '("--cxx11" ; required by gtkmm |
7fc922fd | 684 | "--optimize" |
ba5c8567 | 685 | "--no-phone-home" ; don't contact ardour.org |
ff46016e | 686 | "--freedesktop" ; build .desktop file |
5f0c6496 | 687 | "--test") ; build unit tests |
92e4fbe2 | 688 | #:phases |
21481a28 | 689 | (modify-phases %standard-phases |
ff46016e BT |
690 | (add-after 'unpack 'set-rpath-in-LDFLAGS |
691 | ,(ardour-rpath-phase (version-major version))) | |
692 | (add-after 'install 'install-freedesktop-files | |
693 | (lambda* (#:key outputs #:allow-other-keys) | |
694 | (let* ((out (assoc-ref outputs "out")) | |
695 | (share (string-append out "/share")) | |
696 | (ver ,(version-major version))) | |
697 | (for-each | |
698 | (lambda (size) | |
699 | (let ((dir (string-append share "/icons/hicolor/" | |
700 | size "x" size "/apps"))) | |
701 | (mkdir-p dir) | |
702 | (copy-file | |
703 | (string-append "gtk2_ardour/resources/Ardour-icon_" | |
704 | size "px.png") | |
705 | (string-append dir "/ardour" ver ".png")))) | |
706 | '("16" "22" "32" "48" "256")) | |
707 | (install-file (string-append "build/gtk2_ardour/ardour" | |
708 | ver ".desktop") | |
709 | (string-append share "/applications/")) | |
710 | (install-file (string-append "build/gtk2_ardour/ardour" | |
711 | ver ".appdata.xml") | |
712 | (string-append share "/appdata/"))) | |
713 | #t))) | |
7fc922fd | 714 | #:test-target "test")) |
88efb2c3 | 715 | (inputs |
8394619b LC |
716 | (list alsa-lib |
717 | atkmm | |
718 | aubio | |
719 | boost | |
720 | cairomm | |
721 | curl | |
722 | dbus | |
723 | eudev | |
724 | fftw | |
725 | fftwf | |
726 | flac | |
727 | glibmm | |
728 | gtkmm-2 | |
729 | jack-1 | |
730 | libarchive | |
731 | libart-lgpl | |
732 | libgnomecanvasmm | |
733 | liblo | |
734 | libogg | |
735 | libsamplerate | |
736 | libsndfile | |
737 | libusb | |
738 | libvorbis | |
739 | libwebsockets | |
740 | libxml2 | |
741 | lilv | |
742 | lrdf | |
743 | lv2 | |
744 | openssl ; Required by libwebsockets. | |
745 | pangomm | |
746 | python-rdflib | |
747 | pulseaudio | |
748 | readline | |
749 | redland | |
750 | rubberband | |
751 | serd | |
752 | sord | |
753 | soundtouch | |
754 | sratom | |
755 | suil | |
756 | taglib | |
757 | vamp)) | |
88efb2c3 | 758 | (native-inputs |
19dd523c | 759 | `(("cppunit" ,cppunit) |
ba5c8567 | 760 | ("gettext" ,gettext-minimal) |
19dd523c BT |
761 | ("itstool" ,itstool) |
762 | ("perl" ,perl) | |
88efb2c3 | 763 | ("pkg-config" ,pkg-config))) |
5ba94aa7 | 764 | (home-page "https://ardour.org") |
88efb2c3 RW |
765 | (synopsis "Digital audio workstation") |
766 | (description | |
767 | "Ardour is a multi-channel digital audio workstation, allowing users to | |
768 | record, edit, mix and master audio and MIDI projects. It is targeted at audio | |
769 | engineers, musicians, soundtrack editors and composers.") | |
770 | (license license:gpl2+))) | |
771 | ||
cd381c31 KK |
772 | (define-public audacity |
773 | (package | |
774 | (name "audacity") | |
03cdd729 | 775 | (version "3.1.3") |
cd381c31 KK |
776 | (source |
777 | (origin | |
e5dc38d3 LF |
778 | ;; If built from the release tag, Audacity will describe itself |
779 | ;; as an "Alpha test version" and suggest to users that they use | |
780 | ;; the "latest stable released version". | |
781 | (method url-fetch) | |
782 | (uri (string-append "https://github.com/audacity/audacity/releases/download/" | |
783 | "Audacity-" version "/audacity-" version | |
784 | "-source.tar.gz")) | |
cd381c31 | 785 | (sha256 |
3ae45eb4 | 786 | (base32 |
e5dc38d3 | 787 | "189agx11361k9j958s6q5bngnnfx0rwaf0dwbjxy6fwvsb1wv3px")) |
6589966b | 788 | (patches (search-patches "audacity-ffmpeg-fallback.patch")) |
3182a1d2 RW |
789 | (modules '((guix build utils))) |
790 | (snippet | |
791 | ;; Remove bundled libraries. | |
792 | '(begin | |
793 | (for-each | |
794 | (lambda (dir) | |
795 | (delete-file-recursively (string-append "lib-src/" dir))) | |
03cdd729 | 796 | '("libsoxr" "libvamp" "lv2" "soundtouch" "sqlite" "twolame" |
3182a1d2 RW |
797 | ;; FIXME: these libraries have not been packaged yet: |
798 | ;; "libnyquist" | |
799 | ;; "libscorealign" | |
3182a1d2 RW |
800 | ;; "portburn" |
801 | ;; "portsmf" | |
802 | ;; "portmixer" | |
803 | ||
804 | ;; FIXME: we have this library, but it differs in that the Slide | |
805 | ;; class does not have a member "getInverseStretchedTime". | |
806 | ;; "sbsms" | |
807 | )) | |
808 | #t)))) | |
3e6c1142 | 809 | (build-system cmake-build-system) |
cd381c31 | 810 | (inputs |
03cdd729 | 811 | (list wxwidgets-3.1 |
8394619b LC |
812 | gtk+ |
813 | alsa-lib | |
814 | jack-1 | |
815 | expat | |
8394619b | 816 | lame |
03cdd729 | 817 | linux-libre-headers |
8394619b | 818 | flac |
6589966b | 819 | ffmpeg |
8394619b | 820 | libid3tag |
03cdd729 | 821 | libjpeg-turbo |
8394619b LC |
822 | libmad |
823 | ;;("libsbsms" ,libsbsms) ;bundled version is modified | |
824 | libsndfile | |
825 | soundtouch | |
826 | soxr ;replaces libsamplerate | |
03cdd729 | 827 | sqlite |
8394619b LC |
828 | twolame |
829 | vamp | |
830 | libvorbis | |
831 | lv2 | |
832 | lilv ;for lv2 | |
833 | suil ;for lv2 | |
03cdd729 | 834 | portaudio |
8394619b | 835 | portmidi)) |
cd381c31 KK |
836 | (native-inputs |
837 | `(("autoconf" ,autoconf) | |
838 | ("automake" ,automake) | |
839 | ("gettext" ,gettext-minimal) ;for msgfmt | |
840 | ("libtool" ,libtool) | |
841 | ("pkg-config" ,pkg-config) | |
747f68bf | 842 | ("python" ,python) |
cd381c31 KK |
843 | ("which" ,which))) |
844 | (arguments | |
118a8ecc | 845 | `(#:configure-flags |
3e6c1142 | 846 | (list |
03cdd729 LMP |
847 | "-Daudacity_conan_enabled=off" |
848 | "-Daudacity_lib_preference=system" | |
849 | ;; TODO: enable this flag once we've packaged all dependencies | |
850 | ;; "-Daudacity_obey_system_dependencies=on" | |
851 | ;; disable crash reports, updates, ..., anything that phones home | |
852 | "-Daudacity_has_networking=off") | |
fa7f4781 LF |
853 | #:imported-modules ((guix build glib-or-gtk-build-system) |
854 | ,@%cmake-build-system-modules) | |
855 | #:modules | |
856 | ((guix build utils) | |
857 | (guix build cmake-build-system) | |
858 | ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)) | |
cd381c31 KK |
859 | #:phases |
860 | (modify-phases %standard-phases | |
03cdd729 LMP |
861 | (add-after 'unpack 'fix-cmake-rpath |
862 | (lambda* (#:key outputs #:allow-other-keys) | |
863 | (substitute* "CMakeLists.txt" | |
864 | (("\\$ORIGIN/\\.\\./\\$\\{_PKGLIB\\}") | |
865 | (string-append (assoc-ref outputs "out") "/lib/audacity")) | |
866 | (("CMAKE_BUILD_WITH_INSTALL_RPATH [A-Z]*") | |
867 | "CMAKE_BUILD_WITH_INSTALL_RPATH TRUE") | |
868 | (("CMAKE_INSTALL_RPATH_USE_LINK_PATH [A-Z]*") | |
869 | "CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE")) | |
870 | (substitute* "src/CMakeLists.txt" | |
871 | (("-Wl,--disable-new-dtags") "-Wl,--enable-new-dtags")))) | |
3e6c1142 | 872 | (add-after 'unpack 'comment-out-revision-ident |
cd381c31 | 873 | (lambda _ |
03cdd729 LMP |
874 | (substitute* "src/CMakeLists.txt" |
875 | (("file\\( TOUCH \".*RevisionIdent\\.h\" \\)" directive) | |
876 | (string-append "# " directive))) | |
3e6c1142 KK |
877 | (substitute* "src/AboutDialog.cpp" |
878 | (("(.*RevisionIdent\\.h.*)" include-line) | |
879 | (string-append "// " include-line))))) | |
3182a1d2 RW |
880 | (add-after 'unpack 'use-upstream-headers |
881 | (lambda* (#:key inputs #:allow-other-keys) | |
03cdd729 LMP |
882 | (substitute* '("libraries/lib-files/FileNames.cpp") |
883 | (("\"/usr/include/linux/magic.h\"") "<linux/magic.h>")))) | |
7783a18b LMP |
884 | (add-after 'install 'delete-gratuitous-script |
885 | (lambda* (#:key outputs #:allow-other-keys) | |
886 | (delete-file (string-append (assoc-ref outputs "out") | |
887 | "/audacity")))) | |
fa7f4781 LF |
888 | (add-after 'wrap-program 'glib-or-gtk-wrap |
889 | (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))) | |
03cdd729 LMP |
890 | ;; The test suite is not "well exercised" according to the developers, |
891 | ;; and fails with various errors. See | |
892 | ;; <http://sourceforge.net/p/audacity/mailman/message/33524292/>. | |
893 | #:tests? #f)) | |
894 | (native-search-paths | |
895 | (list (search-path-specification | |
896 | (variable "AUDACITY_MODULES_PATH") | |
897 | (files '("lib/audacity/modules"))) | |
898 | (search-path-specification | |
899 | (variable "AUDACITY_PATH") | |
900 | (files '("share/audacity"))))) | |
2d5fa80e | 901 | (home-page "https://www.audacityteam.org/") |
cd381c31 KK |
902 | (synopsis "Software for recording and editing sounds") |
903 | (description | |
904 | "Audacity is a multi-track audio editor designed for recording, playing | |
905 | and editing digital audio. It features digital effects and spectrum analysis | |
906 | tools.") | |
907 | (license license:gpl2+))) | |
908 | ||
a8e14943 HG |
909 | (define-public audiofile |
910 | (package | |
911 | (name "audiofile") | |
912 | (version "0.3.6") | |
913 | (source | |
914 | (origin | |
915 | (method url-fetch) | |
916 | (uri (string-append | |
917 | "https://audiofile.68k.org/audiofile-" version ".tar.gz")) | |
918 | (sha256 | |
919 | (base32 "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind")) | |
920 | (patches | |
921 | ;; CVE references according to nixpgs | |
922 | (search-patches | |
923 | "audiofile-fix-datatypes-in-tests.patch" | |
924 | "audiofile-fix-sign-conversion.patch" | |
925 | "audiofile-hurd.patch" | |
926 | "audiofile-CVE-2015-7747.patch" | |
927 | ;; CVE-2017-6829: | |
928 | "audiofile-Fix-index-overflow-in-IMA.cpp.patch" | |
929 | ;; CVE-2017-6827, CVE-2017-6828, CVE-2017-6832, CVE-2017-6835, | |
930 | ;; CVE-2017-6837: | |
8515ea12 | 931 | "audiofile-check-number-of-coefficients.patch" |
a8e14943 | 932 | ;; CVE-2017-6839: |
8515ea12 | 933 | "audiofile-overflow-in-MSADPCM.patch" |
a8e14943 | 934 | ;; CVE-2017-6830, CVE-2017-6834, CVE-2017-6836, CVE-2017-6838: |
8515ea12 LC |
935 | "audiofile-multiply-overflow.patch" |
936 | "audiofile-function-signature.patch" | |
a8e14943 HG |
937 | ;; CVE-2017-6831: |
938 | "audiofile-Fail-on-error-in-parseFormat.patch" | |
939 | ;; CVE-2017-6833: | |
8515ea12 | 940 | "audiofile-division-by-zero.patch" |
a8e14943 HG |
941 | "audiofile-CVE-2018-13440.patch" |
942 | "audiofile-CVE-2018-17095.patch")))) | |
bdab33a1 LC |
943 | (properties `((lint-hidden-cve . ("CVE-2017-6829" |
944 | ||
945 | "CVE-2017-6827" "CVE-2017-6828" | |
946 | "CVE-2017-6832" "CVE-2017-6835" | |
947 | "CVE-2017-6837" | |
948 | ||
949 | "CVE-2017-6839" | |
950 | ||
951 | "CVE-2017-6830" "CVE-2017-6834" | |
952 | "CVE-2017-6836" "CVE-2017-6838" | |
953 | ||
954 | "CVE-2017-6831" "CVE-2017-6833")))) | |
a8e14943 HG |
955 | (build-system gnu-build-system) |
956 | (inputs | |
8394619b | 957 | (list alsa-lib)) |
a8e14943 HG |
958 | (home-page "https://audiofile.68k.org/") |
959 | (synopsis "Library to handle various audio file formats") | |
960 | (description "This is an open-source version of SGI's audiofile library. | |
961 | It provides a uniform programming interface for processing of audio data to | |
962 | and from audio files of many common formats. | |
963 | ||
964 | Currently supported file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun | |
965 | .snd/.au, BICS, and raw data. Supported compression formats are currently | |
966 | G.711 mu-law and A-law.") | |
967 | (license license:lgpl2.1+))) | |
968 | ||
c3276dbe TW |
969 | (define-public autotalent |
970 | (package | |
971 | (name "autotalent") | |
972 | (version "0.2") | |
973 | (source (origin | |
974 | (method url-fetch) | |
975 | (uri (string-append "http://tombaran.info/autotalent-" | |
976 | version ".tar.gz")) | |
977 | (sha256 | |
978 | (base32 | |
979 | "1n04qm66f14195ly6gsy3ra7v2j7zad5n19d8dwfmh0qs6h9hphh")))) | |
980 | (build-system gnu-build-system) | |
981 | (arguments | |
982 | `(#:tests? #f ; no check target | |
983 | #:phases | |
984 | (modify-phases %standard-phases | |
985 | ;; no configure script | |
986 | (delete 'configure) | |
987 | (add-before 'install 'prepare-target-directory | |
988 | (lambda* (#:key outputs #:allow-other-keys) | |
989 | (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa")) | |
990 | #t)) | |
991 | (add-after 'unpack 'override-target-directory | |
992 | (lambda* (#:key outputs #:allow-other-keys) | |
993 | (substitute* "Makefile" | |
994 | (("/usr/lib64/ladspa") | |
995 | (string-append (assoc-ref outputs "out") "/lib/ladspa"))) | |
996 | #t))))) | |
997 | (inputs | |
8394619b | 998 | (list ladspa)) |
c3276dbe TW |
999 | (home-page "http://tombaran.info/autotalent.html") |
1000 | (synopsis "Pitch-correction LADSPA audio plugin") | |
1001 | (description | |
1002 | "Autotalent is a LADSPA plugin for real-time pitch-correction. Among its | |
1003 | controls are allowable notes, strength of correction, LFO for vibrato and | |
1004 | formant warp.") | |
1005 | ;; All code except the FFT routine is licensed under GPLv2+. | |
1006 | ;; The FFT routine is under BSD-3. | |
242b29ba | 1007 | (license license:gpl2+))) |
c3276dbe | 1008 | |
497e9a82 RW |
1009 | (define-public azr3 |
1010 | (package | |
1011 | (name "azr3") | |
1012 | (version "1.2.3") | |
1013 | (source (origin | |
1014 | (method url-fetch) | |
1015 | (uri (string-append "mirror://savannah/ll-plugins/azr3-jack-" | |
1016 | version | |
1017 | ".tar.bz2")) | |
1018 | (sha256 | |
1019 | (base32 | |
204adc30 RW |
1020 | "18mdw6nc0vgj6k9rsy0x8w64wvzld0frqshrxxbxfj9qi9843vlc")) |
1021 | (patches (search-patches "azr3.patch")))) | |
497e9a82 RW |
1022 | (build-system gnu-build-system) |
1023 | (arguments | |
1024 | `(#:tests? #f ; no check target | |
1025 | #:make-flags | |
1026 | (list "LV2PEG=ttl2c" | |
1027 | (string-append "prefix=" %output) | |
ef1f9acf RW |
1028 | (string-append "pkgdatadir=" %output "/share/azr3-jack")) |
1029 | #:phases | |
1030 | (modify-phases %standard-phases | |
1031 | (add-before 'install 'fix-timestamp | |
1032 | (lambda _ | |
1033 | (let ((early-1980 315619200)) ; 1980-01-02 UTC | |
1034 | (utime "azr3.1" early-1980 early-1980)) | |
1035 | #t))))) | |
497e9a82 | 1036 | (inputs |
8394619b | 1037 | (list gtkmm-2 lvtk jack-1 lash)) |
497e9a82 | 1038 | (native-inputs |
8394619b | 1039 | (list pkg-config)) |
497e9a82 RW |
1040 | (home-page "http://ll-plugins.nongnu.org/azr3/") |
1041 | (synopsis "Tonewheel organ synthesizer") | |
1042 | (description | |
1043 | "AZR-3 is a port of the free VST plugin AZR-3. It is a tonewheel organ | |
1044 | with drawbars, distortion and rotating speakers. The organ has three | |
1045 | sections, two polyphonic sections with nine drawbars each and one monophonic | |
1046 | bass section with five drawbars. A standalone JACK application and LV2 | |
1047 | plugins are provided.") | |
1048 | (license license:gpl2))) | |
1049 | ||
f62a8417 RW |
1050 | (define-public calf |
1051 | (package | |
1052 | (name "calf") | |
c8de7979 | 1053 | (version "0.90.3") |
f62a8417 RW |
1054 | (source (origin |
1055 | (method url-fetch) | |
8f946a18 | 1056 | (uri (string-append "https://calf-studio-gear.org/files/calf-" |
73cea74d | 1057 | version ".tar.gz")) |
f62a8417 RW |
1058 | (sha256 |
1059 | (base32 | |
c8de7979 | 1060 | "17x4hylgq4dn9qycsdacfxy64f5cv57n2qgkvsdp524gnqzw4az3")))) |
f62a8417 RW |
1061 | (build-system gnu-build-system) |
1062 | (inputs | |
e3196755 LC |
1063 | (list fluidsynth |
1064 | expat | |
1065 | glib | |
1066 | gtk+-2 | |
1067 | cairo | |
1068 | lash | |
1069 | jack-1 | |
1070 | lv2 | |
1071 | ladspa | |
1072 | fftw)) | |
f62a8417 | 1073 | (native-inputs |
8394619b | 1074 | (list pkg-config)) |
f62a8417 RW |
1075 | (native-search-paths |
1076 | (list (search-path-specification | |
1077 | (variable "LV2_PATH") | |
1078 | (files '("lib/lv2"))))) | |
1079 | (home-page "http://calf.sourceforge.net/") | |
1080 | (synopsis "Audio plug-in pack for LV2 and JACK environments") | |
1081 | (description | |
1082 | "Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments. | |
1083 | The suite contains lots of effects (delay, modulation, signal processing, | |
1084 | filters, equalizers, dynamics, distortion and mastering effects), | |
1085 | instruments (SF2 player, organ simulator and a monophonic synthesizer) and | |
1086 | tools (analyzer, mono/stereo tools, crossovers).") | |
1087 | ;; calfjackhost is released under GPLv2+ | |
1088 | ;; The plugins are released under LGPLv2.1+ | |
1089 | (license (list license:lgpl2.1+ license:gpl2+)))) | |
1090 | ||
7a44e875 TW |
1091 | (define-public caps-plugins-lv2 |
1092 | (package | |
1093 | (name "caps-plugins-lv2") | |
5ed105a8 | 1094 | (version "0.9.26") |
7a44e875 TW |
1095 | (source |
1096 | (origin | |
1097 | ;; The Github project hasn't tagged a release. | |
1098 | (method git-fetch) | |
1099 | (uri (git-reference | |
5ed105a8 TW |
1100 | (url "https://github.com/moddevices/caps-lv2.git") |
1101 | (commit "5d52a0c6e8863c058c2aab2dea9f901a90d96eb9"))) | |
7a44e875 TW |
1102 | (file-name (git-file-name name version)) |
1103 | (sha256 | |
1104 | (base32 | |
5ed105a8 | 1105 | "0hdl7n3ra5gqgwkdfqkw8dj9gb1cgb76bn1v91w06d2w4lj9s8xa")))) |
7a44e875 TW |
1106 | (build-system gnu-build-system) |
1107 | (arguments | |
1108 | `(#:tests? #f ; no check target | |
1109 | #:phases | |
1110 | (modify-phases %standard-phases | |
1111 | ;; no configure script | |
1112 | (delete 'configure) | |
1113 | (add-after 'unpack 'override-target-directory | |
1114 | (lambda* (#:key outputs #:allow-other-keys) | |
1115 | (substitute* (find-files "plugins" "Makefile") | |
1116 | (("/usr/local")(assoc-ref outputs "out"))) | |
1117 | #t))))) | |
1118 | (inputs | |
8394619b | 1119 | (list lv2)) |
7a44e875 TW |
1120 | ;; home-page of the original LADSPA version: http://quitte.de/dsp/caps.html |
1121 | (home-page "https://github.com/moddevices/caps-lv2") | |
7230f6d5 | 1122 | (synopsis "LV2 port of the CAPS audio plugin collection") |
7a44e875 TW |
1123 | (description |
1124 | "LV2 port of CAPS, a collection of audio plugins comprising basic virtual | |
1125 | guitar amplification and a small range of classic effects, signal processors and | |
1126 | generators of mostly elementary and occasionally exotic nature.") | |
1127 | (license license:gpl3+))) | |
1128 | ||
8f941dd2 RW |
1129 | (define-public infamous-plugins |
1130 | (package | |
1131 | (name "infamous-plugins") | |
fa4dae68 | 1132 | (version "0.3.0") |
8f941dd2 | 1133 | (source (origin |
0b8db035 RW |
1134 | (method git-fetch) |
1135 | (uri (git-reference | |
b0e7b699 | 1136 | (url "https://github.com/ssj71/infamousPlugins") |
0b8db035 RW |
1137 | (commit (string-append "v" version)))) |
1138 | (file-name (git-file-name name version)) | |
8f941dd2 RW |
1139 | (sha256 |
1140 | (base32 | |
fa4dae68 | 1141 | "1r72agk5nxf5k0mghcc2j90z43j5d9i7rqjmf49jfyqnd443isip")))) |
8f941dd2 | 1142 | (build-system cmake-build-system) |
d6618941 | 1143 | (arguments |
d11edbdf | 1144 | `(#:tests? #f ; there are no tests |
d6618941 EF |
1145 | #:phases |
1146 | (modify-phases %standard-phases | |
1147 | (add-after 'unpack 'remove-compiler-flags | |
1148 | (lambda _ | |
3e0e9e16 | 1149 | (substitute* (find-files "." "CMakeLists.txt") |
d11edbdf | 1150 | (("-msse2 -mfpmath=sse") "")) |
03eb0b1b EF |
1151 | #t)) |
1152 | (add-after 'unpack 'fix-build-with-newer-lv2 | |
1153 | (lambda _ | |
1154 | ;; https://github.com/ssj71/infamousPlugins/commit/4c7275b1fa8ea3296446421cbd29ec2df66588c0 | |
1155 | (substitute* (find-files "src" ".*\\.cxx") | |
1156 | (("_LV2UI_Descriptor") "LV2UI_Descriptor")) | |
d6618941 | 1157 | #t))))) |
8f941dd2 | 1158 | (inputs |
8394619b | 1159 | (list cairo fftwf lv2 ntk zita-resampler)) |
8f941dd2 | 1160 | (native-inputs |
8394619b | 1161 | (list pkg-config)) |
a9071e5c | 1162 | (home-page "https://ssj71.github.io/infamousPlugins") |
8f941dd2 RW |
1163 | (synopsis "LV2 plugins for live use") |
1164 | (description | |
1165 | "The infamous plugins are a collection of LV2 audio plugins for live | |
1166 | performances. The plugins include a cellular automaton synthesizer, an | |
1167 | envelope follower, distortion effects, tape effects and more.") | |
1168 | (license license:gpl2+))) | |
1169 | ||
aa13529b CB |
1170 | (define-public snapcast |
1171 | (package | |
1172 | (name "snapcast") | |
0bf5c655 | 1173 | (version "0.26.0") |
aa13529b CB |
1174 | (source (origin |
1175 | (method git-fetch) | |
1176 | (uri (git-reference | |
1177 | (url "https://github.com/badaix/snapcast") | |
1178 | (commit (string-append "v" version)))) | |
1179 | (file-name (git-file-name name version)) | |
1180 | (sha256 | |
1181 | (base32 | |
0bf5c655 | 1182 | "091gf3k1xv3k0m0kf2apr9bwiifw2czjcksd3vzwy544sfgrya08")))) |
aa13529b CB |
1183 | (build-system cmake-build-system) |
1184 | (arguments | |
1185 | '(#:tests? #f)) ; no included tests | |
1186 | (inputs | |
8394619b LC |
1187 | (list boost |
1188 | libvorbis | |
1189 | soxr | |
1190 | alsa-lib | |
1191 | avahi | |
1192 | pulseaudio | |
1193 | flac | |
1194 | opus)) | |
aa13529b | 1195 | (native-inputs |
8394619b | 1196 | (list pkg-config)) |
aa13529b CB |
1197 | (home-page "https://github.com/badaix/snapcast") |
1198 | (synopsis "Synchronous multiroom audio player") | |
1199 | (description | |
1200 | "Snapcast is a multi-room client-server audio player. Clients are time | |
1201 | synchronized with the server to play synced audio.") | |
1202 | (license license:gpl3+))) | |
1203 | ||
7366d831 OP |
1204 | (define-public swh-plugins |
1205 | (package | |
1206 | (name "swh-plugins") | |
1207 | (version "0.4.17") | |
1208 | (source (origin | |
1209 | (method git-fetch) | |
1210 | (uri (git-reference | |
b0e7b699 | 1211 | (url "https://github.com/swh/ladspa") |
7366d831 OP |
1212 | (commit (string-append "v" version)))) |
1213 | (file-name (git-file-name name version)) | |
1214 | (sha256 | |
1215 | (base32 | |
1216 | "1c98z2xxz9pgcb4dg99gz8qrylh5cnag0j18a52d88ifsy24isvq")))) | |
1217 | (native-inputs | |
e3196755 LC |
1218 | (list autoconf |
1219 | automake | |
1220 | gettext-minimal ;for autopoint | |
1221 | libtool | |
1222 | perl | |
1223 | pkg-config | |
1224 | which)) | |
7366d831 | 1225 | (inputs |
8394619b | 1226 | (list fftwf perl-xml-parser)) |
7366d831 | 1227 | (build-system gnu-build-system) |
0daf7e26 | 1228 | (home-page "http://plugin.org.uk") |
7366d831 OP |
1229 | (synopsis "The SWH Plugins package for the LADSPA plugin system") |
1230 | (description "This package provides Steve Harris's LADSPA plugins.") | |
1231 | (license license:gpl2+))) | |
1232 | ||
18f3d92b FPS |
1233 | (define-public swh-plugins-lv2 |
1234 | (package | |
1235 | (name "swh-plugins-lv2") | |
1236 | (version "1.0.16") | |
1237 | (source (origin | |
2ae23954 RW |
1238 | (method git-fetch) |
1239 | (uri (git-reference | |
b0e7b699 | 1240 | (url "https://github.com/swh/lv2") |
2ae23954 RW |
1241 | (commit (string-append "v" version)))) |
1242 | (file-name (git-file-name name version)) | |
18f3d92b FPS |
1243 | (sha256 |
1244 | (base32 | |
2ae23954 | 1245 | "0y7nnww864mm4k6ayy2lhcws3wlbhb2gkyjbrwk921fvc18qk9mz")))) |
18f3d92b FPS |
1246 | (build-system gnu-build-system) |
1247 | (arguments | |
1248 | `(#:tests? #f ; no check target | |
1249 | #:make-flags (list "CC=gcc" | |
1250 | (string-append "PREFIX=" | |
1251 | (assoc-ref %outputs "out"))) | |
1252 | #:phases | |
1253 | (modify-phases %standard-phases | |
1254 | ;; no configure script | |
1255 | (delete 'configure) | |
1256 | (add-after 'unpack 'patch-makefile-and-enter-directory | |
1257 | ;; The default install target doesn't install, but the | |
1258 | ;; "install-system" target does. | |
1259 | (lambda _ | |
1260 | (substitute* "Makefile" | |
1261 | (("install:") "install: install-system")) | |
1262 | #t))))) | |
1263 | (inputs | |
8394619b | 1264 | (list lv2 fftwf)) |
18f3d92b | 1265 | (native-inputs |
8394619b | 1266 | (list libxslt pkg-config)) |
18f3d92b FPS |
1267 | (home-page "http://plugin.org.uk") |
1268 | (synopsis "SWH plugins in LV2 format") | |
1269 | (description | |
1270 | "Swh-plugins-lv2 is a collection of audio plugins in LV2 format. Plugin | |
1271 | classes include: dynamics (compressor, limiter), time (delay, chorus, | |
1272 | flanger), ringmodulator, distortion, filters, pitchshift, oscillators, | |
1273 | emulation (valve, tape), bit fiddling (decimator, pointer-cast), etc.") | |
1274 | (license license:gpl3+))) | |
1275 | ||
f2acd45e VM |
1276 | (define-public libdjinterop |
1277 | (package | |
1278 | (name "libdjinterop") | |
1279 | (version "0.16.0") | |
1280 | (source | |
1281 | (origin | |
1282 | (method git-fetch) | |
1283 | (uri (git-reference | |
1284 | (url "https://github.com/xsco/libdjinterop") | |
1285 | (commit version))) | |
1286 | (file-name (git-file-name name version)) | |
1287 | (sha256 | |
1288 | (base32 "16nrqpr90vb9ggmp9j73m0hspd7pmfdhh0g6iyp8vd7kx7g17qnk")))) | |
1289 | (build-system meson-build-system) | |
1290 | (arguments | |
1291 | `(#:phases | |
1292 | (modify-phases %standard-phases | |
1293 | ;; crate_test writes a database file to the source tree. | |
1294 | (add-after 'unpack 'make-git-checkout-writable | |
1295 | (lambda _ | |
1296 | (for-each make-file-writable (find-files "."))))))) | |
1297 | (native-inputs | |
8394619b | 1298 | (list boost pkg-config)) |
f2acd45e | 1299 | (inputs |
8394619b | 1300 | (list sqlite zlib)) |
f2acd45e VM |
1301 | (home-page "https://github.com/xsco/libdjinterop") |
1302 | (synopsis "C++ library for access to DJ record libraries") | |
1303 | (description | |
1304 | "@code{libdjinterop} is a C++ library that allows access to database | |
1305 | formats used to store information about DJ record libraries.") | |
1306 | (license license:lgpl3+))) | |
1307 | ||
f5340e00 RW |
1308 | (define-public tao |
1309 | (package | |
1310 | (name "tao") | |
1311 | (version "1.0-beta-10May2006") | |
1312 | (source (origin | |
1313 | (method url-fetch) | |
1314 | (uri (string-append "mirror://sourceforge/taopm/Tao/" | |
1315 | "tao-" version "/" | |
1316 | "tao-" version ".tar.gz")) | |
1317 | (sha256 | |
1318 | (base32 | |
1319 | "156py3g6mmglldfd0j76bn7n242hdwf49diaprjpj7crp8vgf2pz")) | |
1320 | (patches | |
1321 | (search-patches "tao-add-missing-headers.patch" | |
1322 | "tao-fix-parser-types.patch")) | |
1323 | (modules '((guix build utils))) | |
1324 | (snippet | |
d348439b RW |
1325 | '(substitute* "configure" |
1326 | (("SHELL=/bin/sh") ""))))) | |
f5340e00 RW |
1327 | (build-system gnu-build-system) |
1328 | (arguments | |
1329 | '(#:configure-flags '("TAO_RELEASE=-beta") | |
1330 | #:phases | |
1331 | (modify-phases %standard-phases | |
1332 | (add-after 'unpack 'fix-references | |
1333 | (lambda* (#:key outputs #:allow-other-keys) | |
1334 | (substitute* "user-scripts/tao.in" | |
1335 | (("taoparse") | |
1336 | (string-append (assoc-ref outputs "out") "/bin/taoparse")) | |
1337 | (("grep") (which "grep")) | |
1338 | (("sed -f \\$distdir/user-scripts/") | |
1339 | (string-append (which "sed") " -f $distdir/")) | |
1340 | (("distdir=.*") | |
1341 | (string-append "distdir=" | |
d348439b | 1342 | (assoc-ref outputs "out") "/share/tao"))))) |
f5340e00 RW |
1343 | (add-after 'install 'install-extra-files |
1344 | (lambda* (#:key outputs #:allow-other-keys) | |
1345 | (let* ((out (assoc-ref outputs "out")) | |
1346 | (share (string-append out "/share/tao/")) | |
1347 | (inc (string-append out "/include/tao/"))) | |
1348 | (mkdir-p share) | |
1349 | (mkdir-p inc) | |
1350 | (install-file "user-scripts/error.parse" share) | |
1351 | (copy-recursively "examples" (string-append share "examples")) | |
1352 | (for-each (lambda (file) (install-file file inc)) | |
d348439b | 1353 | (find-files "include" "\\.h")))))))) |
f5340e00 | 1354 | (inputs |
a7302103 RW |
1355 | (list audiofile |
1356 | libxi | |
1357 | libxmu | |
1358 | mesa | |
1359 | freeglut | |
1360 | flex | |
1361 | bison | |
1362 | sed | |
1363 | grep)) | |
f5340e00 RW |
1364 | (home-page "http://taopm.sourceforge.net/") |
1365 | (synopsis "Sound Synthesis with Physical Models") | |
1366 | (description "Tao is a software package for sound synthesis using physical | |
1367 | models. It provides a virtual acoustic material constructed from masses and | |
1368 | springs which can be used as the basis for building quite complex virtual | |
1369 | musical instruments. Tao comes with a synthesis language for creating and | |
1370 | playing instruments and a C++ API for those who would like to use it as an | |
1371 | object library.") | |
1372 | (license license:gpl2+))) | |
1373 | ||
77fc94ef RW |
1374 | (define-public tao-synth |
1375 | (let ((commit "f3aedd81efbc775574e591081b57ae1c08427064") | |
1376 | (revision "1")) | |
1377 | (package | |
1378 | (name "tao-synth") | |
1379 | (version (git-version "0" revision commit)) | |
1380 | (source (origin | |
1381 | (method git-fetch) | |
1382 | (uri (git-reference | |
1383 | (url "https://github.com/lucasw/tao_synth") | |
1384 | (commit commit))) | |
1385 | (file-name (git-file-name name version)) | |
1386 | (sha256 | |
1387 | (base32 | |
1388 | "1jds2l3cb96b02jxd7lmrjjl9s7mylnrvg6fpw0j8c141bk8vyg3")))) | |
1389 | (build-system cmake-build-system) | |
1390 | (arguments (list #:tests? #false)) ;there are no tests | |
1391 | (inputs | |
1392 | (list glfw freeglut)) | |
1393 | (native-inputs | |
1394 | (list gcc-7)) | |
1395 | (home-page "https://github.com/lucasw/tao_synth") | |
1396 | (synopsis "Sound synthesis with physical models") | |
1397 | (description "Tao is a software package for sound synthesis using physical | |
1398 | models. It provides a virtual acoustic material constructed from masses and | |
1399 | springs which can be used as the basis for building quite complex virtual | |
1400 | musical instruments. Tao comes with a synthesis language for creating and | |
1401 | playing instruments and a C++ API for those who would like to use it as an | |
1402 | object library.") | |
1403 | (license license:lgpl2.0+)))) | |
1404 | ||
fda85ca6 RW |
1405 | (define-public csound |
1406 | (package | |
1407 | (name "csound") | |
ae221813 | 1408 | (version "6.16.2") |
d818256e NG |
1409 | (source |
1410 | (origin | |
1411 | (method git-fetch) | |
1412 | (uri (git-reference | |
b0e7b699 | 1413 | (url "https://github.com/csound/csound") |
d818256e NG |
1414 | (commit version))) |
1415 | (file-name (git-file-name name version)) | |
1416 | (sha256 | |
ae221813 | 1417 | (base32 "1lgasyk8j4cl9178vci1dph63nks3cgwhf8y1d04z9dc8gg15dyn")))) |
fda85ca6 | 1418 | (build-system cmake-build-system) |
fda85ca6 | 1419 | (native-inputs |
e3196755 | 1420 | (list bison flex gettext-minimal zlib)) |
d818256e | 1421 | (inputs |
8394619b LC |
1422 | (list alsa-lib |
1423 | boost | |
1424 | jack-1 | |
1425 | ladspa | |
1426 | liblo | |
1427 | libsndfile | |
1428 | pulseaudio)) | |
40f856fa | 1429 | (home-page "https://csound.com/") |
fda85ca6 RW |
1430 | (synopsis "Sound and music computing system") |
1431 | (description | |
1432 | "Csound is a user-programmable and user-extensible sound processing | |
1433 | language and software synthesizer.") | |
1434 | (license license:lgpl2.1+))) | |
1435 | ||
c60ab406 AT |
1436 | (define-public midicomp |
1437 | ;; The latest tagged release is 9 years old and there have been | |
1438 | ;; unreleased fixes, so we take the last commit. | |
1439 | (let ((commit "70f76963cb0cdb3cbe03ec6e7246b1fb885d3c68") | |
1440 | (revision "1")) | |
1441 | (package | |
1442 | (name "midicomp") | |
1443 | (version (git-version "0.0.8" revision commit)) | |
1444 | (source | |
1445 | (origin | |
1446 | (method git-fetch) | |
1447 | (uri (git-reference | |
1448 | (url "https://github.com/markc/midicomp") | |
1449 | (commit commit))) | |
1450 | (file-name (git-file-name name version)) | |
1451 | (sha256 | |
1452 | (base32 | |
1453 | "12zh247c6v88ssy4l8v7yirh4bl2jcc1ch7f4gdry79a82kai1gf")))) | |
1454 | (build-system cmake-build-system) | |
1455 | (arguments | |
1456 | `(#:tests? #f)) ; no "check" target | |
1457 | (synopsis "Convert SMF MIDI files to and from plain text") | |
1458 | (description | |
1459 | "midicomp can manipulate SMF (Standard MIDI File) files. It can both | |
1460 | read and write SMF files in 0 or format 1 and also read and write its own | |
1461 | plain text format. This means a SMF file can be turned into easily | |
1462 | parseable text, edited with any text editor or filtered through any script | |
1463 | language, and recompiled back into a binary SMF file.") | |
1464 | (home-page "https://github.com/markc/midicomp") | |
1465 | (license license:agpl3)))) | |
1466 | ||
631ac903 RW |
1467 | (define-public clalsadrv |
1468 | (package | |
1469 | (name "clalsadrv") | |
1470 | (version "2.0.0") | |
1471 | (source (origin | |
1472 | (method url-fetch) | |
1473 | (uri (string-append | |
1474 | "http://kokkinizita.linuxaudio.org" | |
1475 | "/linuxaudio/downloads/clalsadrv-" | |
1476 | version ".tar.bz2")) | |
1477 | (sha256 | |
1478 | (base32 | |
9de2e43c | 1479 | "0bsacx3l9065gk8g4137qmz2ij7s9x06aldvacinzlcslw7bd1kq")))) |
631ac903 RW |
1480 | (build-system gnu-build-system) |
1481 | (arguments | |
1482 | `(#:tests? #f ; no "check" target | |
1483 | #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
1484 | #:phases | |
dc1d3cde KK |
1485 | (modify-phases %standard-phases |
1486 | (add-after 'unpack 'patch-makefile-and-enter-directory | |
1487 | (lambda _ | |
1488 | (substitute* "libs/Makefile" | |
1489 | (("/sbin/ldconfig") "true") | |
1490 | (("^LIBDIR =.*") "LIBDIR = lib\n")) | |
1491 | (chdir "libs") | |
1492 | #t)) | |
1493 | (add-after 'install 'install-symlink | |
1494 | (lambda _ | |
1495 | (symlink "libclalsadrv.so" | |
1496 | (string-append (assoc-ref %outputs "out") | |
ee527187 MW |
1497 | "/lib/libclalsadrv.so.2")) |
1498 | #t)) | |
631ac903 | 1499 | ;; no configure script |
4f27a333 | 1500 | (delete 'configure)))) |
631ac903 | 1501 | (inputs |
8394619b | 1502 | (list alsa-lib fftw)) |
4817bb92 | 1503 | (home-page "https://kokkinizita.linuxaudio.org") |
631ac903 RW |
1504 | (synopsis "C++ wrapper around the ALSA API") |
1505 | (description | |
1506 | "clalsadrv is a C++ wrapper around the ALSA API simplifying access to | |
1507 | ALSA PCM devices.") | |
1508 | (license license:gpl2+))) | |
1509 | ||
8ba62f92 RW |
1510 | (define-public amb-plugins |
1511 | (package | |
1512 | (name "amb-plugins") | |
1513 | (version "0.8.1") | |
1514 | (source (origin | |
1515 | (method url-fetch) | |
1516 | (uri (string-append | |
1517 | "http://kokkinizita.linuxaudio.org" | |
1518 | "/linuxaudio/downloads/AMB-plugins-" | |
1519 | version ".tar.bz2")) | |
1520 | (sha256 | |
1521 | (base32 | |
1522 | "0x4blm4visjqj0ndqr0cg776v3b7lvplpc8cgi9n51llhavn0jpl")))) | |
1523 | (build-system gnu-build-system) | |
1524 | (arguments | |
1525 | `(#:tests? #f ; no "check" target | |
1526 | #:phases | |
1527 | (modify-phases %standard-phases | |
1528 | ;; no configure script | |
1529 | (delete 'configure) | |
1530 | (add-before 'install 'prepare-target-directory | |
1531 | (lambda* (#:key outputs #:allow-other-keys) | |
1532 | (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa")) | |
1533 | #t)) | |
1534 | (add-after 'unpack 'override-target-directory-and-tool-paths | |
1535 | (lambda* (#:key outputs #:allow-other-keys) | |
1536 | (substitute* "Makefile" | |
1537 | (("/usr/lib/ladspa") | |
1538 | (string-append (assoc-ref outputs "out") "/lib/ladspa")) | |
1539 | (("/usr/bin/install") (which "install")) | |
1540 | (("/bin/rm") "#")) | |
1541 | #t))))) | |
4817bb92 | 1542 | (home-page "https://kokkinizita.linuxaudio.org") |
8ba62f92 RW |
1543 | (synopsis "LADSPA ambisonics plugins") |
1544 | (description | |
1545 | "The AMB plugins are a set of LADSPA ambisonics plugins, mainly to be | |
1546 | used within Ardour. Features include: mono and stereo to B-format panning, | |
1547 | horizontal rotator, square, hexagon and cube decoders.") | |
1548 | (license license:gpl2+))) | |
1549 | ||
fb2e072c RW |
1550 | (define-public mcp-plugins |
1551 | (package | |
1552 | (name "mcp-plugins") | |
1553 | (version "0.4.0") | |
1554 | (source (origin | |
1555 | (method url-fetch) | |
1556 | (uri (string-append | |
1557 | "http://kokkinizita.linuxaudio.org" | |
1558 | "/linuxaudio/downloads/MCP-plugins-" | |
1559 | version ".tar.bz2")) | |
1560 | (sha256 | |
1561 | (base32 | |
1562 | "06a9r1l85jmg7l1cvc3788mk8ra0xagjfy1rmhw3b80y4n0vlnvc")))) | |
1563 | (build-system gnu-build-system) | |
1564 | (arguments | |
1565 | `(#:tests? #f ; no "check" target | |
1566 | #:phases | |
1567 | (modify-phases %standard-phases | |
1568 | ;; no configure script | |
1569 | (delete 'configure) | |
1570 | (add-before 'install 'prepare-target-directory | |
1571 | (lambda* (#:key outputs #:allow-other-keys) | |
1572 | (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa")) | |
1573 | #t)) | |
1574 | (add-after 'unpack 'override-target-directory | |
1575 | (lambda* (#:key outputs #:allow-other-keys) | |
1576 | (substitute* "Makefile" | |
1577 | (("/usr") (assoc-ref outputs "out"))) | |
1578 | #t))))) | |
4817bb92 | 1579 | (home-page "https://kokkinizita.linuxaudio.org") |
fb2e072c RW |
1580 | (synopsis "Chorus, phaser, and vintage high-pass and low-pass filters") |
1581 | (description | |
1582 | "This package provides various LADSPA plugins. @code{cs_chorus} and | |
1583 | @code{cs_phaser} provide chorus and phaser effects, respectively; | |
1584 | @code{mvclpf24} provides four implementations of the low-pass filter used in | |
1585 | vintage Moog synthesizers; @code{mvchpf24} is based on the voltage-controlled | |
1586 | high-pass filter by Robert Moog. The filters attempt to accurately emulate | |
1587 | the non-linear circuit elements of their original analog counterparts.") | |
1588 | (license license:gpl2+))) | |
1589 | ||
dffb6c3b RW |
1590 | (define-public rev-plugins |
1591 | (package | |
1592 | (name "rev-plugins") | |
1593 | (version "0.7.1") | |
1594 | (source (origin | |
1595 | (method url-fetch) | |
1596 | (uri (string-append | |
1597 | "http://kokkinizita.linuxaudio.org" | |
1598 | "/linuxaudio/downloads/REV-plugins-" | |
1599 | version ".tar.bz2")) | |
1600 | (sha256 | |
1601 | (base32 | |
1602 | "1ikpinxm00pkfi259bnkzhsy3miagrjgdihaaf5x4v7zac29j3g7")))) | |
1603 | (build-system gnu-build-system) | |
1604 | (arguments | |
1605 | `(#:tests? #f ; no "check" target | |
1606 | #:phases | |
1607 | (modify-phases %standard-phases | |
1608 | ;; no configure script | |
1609 | (delete 'configure) | |
1610 | (add-before 'install 'prepare-target-directory | |
1611 | (lambda* (#:key outputs #:allow-other-keys) | |
1612 | (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa")) | |
1613 | #t)) | |
1614 | (add-after 'unpack 'override-target-directory | |
1615 | (lambda* (#:key outputs #:allow-other-keys) | |
1616 | (substitute* "Makefile" | |
1617 | (("/usr") (assoc-ref outputs "out"))) | |
1618 | #t))))) | |
4817bb92 | 1619 | (home-page "https://kokkinizita.linuxaudio.org") |
dffb6c3b RW |
1620 | (synopsis "LADSPA reverb plugin") |
1621 | (description | |
1622 | "This package provides a stereo reverb LADSPA plugin based on the | |
1623 | well-known greverb.") | |
1624 | (license license:gpl2+))) | |
1625 | ||
75f45d16 RW |
1626 | (define-public fil-plugins |
1627 | (package | |
1628 | (name "fil-plugins") | |
1629 | (version "0.3.0") | |
1630 | (source (origin | |
1631 | (method url-fetch) | |
1632 | (uri (string-append | |
1633 | "http://kokkinizita.linuxaudio.org" | |
1634 | "/linuxaudio/downloads/FIL-plugins-" | |
1635 | version ".tar.bz2")) | |
1636 | (sha256 | |
1637 | (base32 | |
1638 | "1scfv9j7jrp50r565haa4rvxn1vk2ss86xssl5qgcr8r45qz42qw")))) | |
1639 | (build-system gnu-build-system) | |
1640 | (arguments | |
1641 | `(#:tests? #f ; no "check" target | |
1642 | #:phases | |
1643 | (modify-phases %standard-phases | |
1644 | ;; no configure script | |
1645 | (delete 'configure) | |
1646 | (add-before 'install 'prepare-target-directory | |
1647 | (lambda* (#:key outputs #:allow-other-keys) | |
1648 | (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa")) | |
1649 | #t)) | |
1650 | (add-after 'unpack 'override-target-directory | |
1651 | (lambda* (#:key outputs #:allow-other-keys) | |
1652 | (substitute* "Makefile" | |
1653 | (("/usr") (assoc-ref outputs "out"))) | |
1654 | #t))))) | |
4817bb92 | 1655 | (home-page "https://kokkinizita.linuxaudio.org") |
75f45d16 RW |
1656 | (synopsis "LADSPA four-band parametric equalizer plugin") |
1657 | (description | |
1658 | "This package provides a LADSPA plugin for a four-band parametric | |
1659 | equalizer. Each section has an active/bypass switch, frequency, bandwidth and | |
1660 | gain controls. There is also a global bypass switch and gain control. | |
1661 | ||
1662 | The 2nd order resonant filters are implemented using a Mitra-Regalia style | |
1663 | lattice filter, which is stable even while parameters are being changed. | |
1664 | ||
36a4366d | 1665 | All switches and controls are internally smoothed, so they can be used @code{live} |
75f45d16 RW |
1666 | without any clicks or zipper noises. This makes this plugin suitable for use |
1667 | in systems that allow automation of plugin control ports, such as Ardour, or | |
1668 | for stage use.") | |
1669 | (license license:gpl2+))) | |
1670 | ||
c04b4e7a RW |
1671 | (define-public ste-plugins |
1672 | (package | |
1673 | (name "ste-plugins") | |
1674 | (version "0.0.2") | |
1675 | (source (origin | |
1676 | (method url-fetch) | |
1677 | (uri (string-append | |
1678 | "http://kokkinizita.linuxaudio.org" | |
1679 | "/linuxaudio/downloads/STE-plugins-" | |
1680 | version ".tar.bz2")) | |
1681 | (sha256 | |
1682 | (base32 | |
1683 | "0s3c9w5xihs87cnd1lh9xgj3maabjdyh6bl766qp5lhkg3ax8zy6")))) | |
1684 | (build-system gnu-build-system) | |
1685 | (arguments | |
1686 | `(#:tests? #f ; no "check" target | |
1687 | #:phases | |
1688 | (modify-phases %standard-phases | |
1689 | ;; no configure script | |
1690 | (delete 'configure) | |
1691 | (add-before 'install 'prepare-target-directory | |
1692 | (lambda* (#:key outputs #:allow-other-keys) | |
1693 | (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa")) | |
1694 | #t)) | |
1695 | (add-after 'unpack 'override-target-directory | |
1696 | (lambda* (#:key outputs #:allow-other-keys) | |
1697 | (substitute* "Makefile" | |
1698 | (("/usr") (assoc-ref outputs "out"))) | |
1699 | #t))))) | |
4817bb92 | 1700 | (home-page "https://kokkinizita.linuxaudio.org") |
c04b4e7a RW |
1701 | (synopsis "LADSPA stereo width plugin") |
1702 | (description | |
1703 | "This package provides a LADSPA plugin to manipulate the stereo width of | |
1704 | audio signals.") | |
1705 | (license license:gpl2+))) | |
1706 | ||
eb4fca7e RW |
1707 | (define-public vco-plugins |
1708 | (package | |
1709 | (name "vco-plugins") | |
1710 | (version "0.3.0") | |
1711 | (source (origin | |
1712 | (method url-fetch) | |
1713 | (uri (string-append | |
1714 | "http://kokkinizita.linuxaudio.org" | |
1715 | "/linuxaudio/downloads/VCO-plugins-" | |
1716 | version ".tar.bz2")) | |
1717 | (sha256 | |
1718 | (base32 | |
1719 | "1xzqdg3b07r7zww05y9bb737l9dxvfkv28m3fyak1aazaci3rsgl")))) | |
1720 | (build-system gnu-build-system) | |
1721 | (arguments | |
1722 | `(#:tests? #f ; no "check" target | |
1723 | #:phases | |
1724 | (modify-phases %standard-phases | |
1725 | ;; no configure script | |
1726 | (delete 'configure) | |
1727 | (add-before 'install 'prepare-target-directory | |
1728 | (lambda* (#:key outputs #:allow-other-keys) | |
1729 | (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa")) | |
1730 | #t)) | |
1731 | (add-after 'unpack 'override-target-directory | |
1732 | (lambda* (#:key outputs #:allow-other-keys) | |
1733 | (substitute* "Makefile" | |
1734 | (("/usr") (assoc-ref outputs "out")) | |
1735 | (("/bin/cp") (which "cp"))) | |
1736 | #t))))) | |
4817bb92 | 1737 | (home-page "https://kokkinizita.linuxaudio.org") |
eb4fca7e RW |
1738 | (synopsis "LADSPA plugin for synthesizer oscillators") |
1739 | (description | |
1740 | "The @code{blvco} LADSPA plugin provides three anti-aliased oscillators: | |
1741 | ||
1742 | @enumerate | |
1743 | @item Pulse-VCO, a dirac pulse oscillator with flat amplitude spectrum | |
1744 | @item Saw-VCO, a sawtooth oscillator with 1/F amplitude spectrum | |
947b3ac6 | 1745 | @item Rec-VCO, a square / rectangle oscillator |
eb4fca7e RW |
1746 | @end enumerate\n |
1747 | ||
1748 | All oscillators are low-pass filtered to provide waveforms similar to the | |
1749 | output of analog synthesizers such as the Moog Voyager.") | |
1750 | (license license:gpl2+))) | |
1751 | ||
5e3161d3 RW |
1752 | (define-public wah-plugins |
1753 | (package | |
1754 | (name "wah-plugins") | |
1755 | (version "0.1.0") | |
1756 | (source (origin | |
1757 | (method url-fetch) | |
1758 | (uri (string-append | |
1759 | "http://kokkinizita.linuxaudio.org" | |
1760 | "/linuxaudio/downloads/WAH-plugins-" | |
1761 | version ".tar.bz2")) | |
1762 | (sha256 | |
1763 | (base32 | |
1764 | "1wkbjarxdhjixkh7d5abralj11dj2xxg644fz3ycd7qyfgfvjfgd")))) | |
1765 | (build-system gnu-build-system) | |
1766 | (arguments | |
1767 | `(#:tests? #f ; no "check" target | |
1768 | #:phases | |
1769 | (modify-phases %standard-phases | |
1770 | ;; no configure script | |
1771 | (delete 'configure) | |
1772 | (add-before 'install 'prepare-target-directory | |
1773 | (lambda* (#:key outputs #:allow-other-keys) | |
1774 | (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa")) | |
1775 | #t)) | |
1776 | (add-after 'unpack 'override-target-directory | |
1777 | (lambda* (#:key outputs #:allow-other-keys) | |
1778 | (substitute* "Makefile" | |
1779 | (("/usr") (assoc-ref outputs "out"))) | |
1780 | #t))))) | |
4817bb92 | 1781 | (home-page "https://kokkinizita.linuxaudio.org") |
5e3161d3 RW |
1782 | (synopsis "LADSPA Autowah effect plugin") |
1783 | (description | |
1784 | "This package provides a LADSPA plugin for a Wah effect with envelope | |
1785 | follower.") | |
1786 | (license license:gpl2+))) | |
1787 | ||
ed17465d RW |
1788 | (define-public g2reverb |
1789 | (package | |
1790 | (name "g2reverb") | |
1791 | (version "0.7.1") | |
1792 | (source (origin | |
1793 | (method url-fetch) | |
1794 | (uri (string-append | |
1795 | "http://kokkinizita.linuxaudio.org" | |
1796 | "/linuxaudio/downloads/g2reverb-" | |
1797 | version ".tar.bz2")) | |
1798 | (sha256 | |
1799 | (base32 | |
1800 | "18wb8vj1kky5glr76s34awbi8qzplsmf3wjbd7a12hfv4j0bkwrj")))) | |
1801 | (build-system gnu-build-system) | |
1802 | (arguments | |
1803 | `(#:tests? #f ; no "check" target | |
1804 | #:phases | |
1805 | (modify-phases %standard-phases | |
1806 | ;; no configure script | |
1807 | (delete 'configure) | |
1808 | (add-before 'install 'prepare-target-directory | |
1809 | (lambda* (#:key outputs #:allow-other-keys) | |
1810 | (mkdir-p (string-append (assoc-ref outputs "out") "/lib/ladspa")) | |
1811 | #t)) | |
1812 | (add-after 'unpack 'override-target-directory | |
1813 | (lambda* (#:key outputs #:allow-other-keys) | |
1814 | (substitute* "Makefile" | |
1815 | (("/usr") (assoc-ref outputs "out"))) | |
1816 | #t))))) | |
4817bb92 | 1817 | (home-page "https://kokkinizita.linuxaudio.org") |
ed17465d RW |
1818 | (synopsis "LADSPA stereo reverb plugin") |
1819 | (description | |
1820 | "This package provides a LADSPA plugin for a stereo reverb effect.") | |
1821 | (license license:gpl2+))) | |
1822 | ||
e4f43b56 RW |
1823 | (define-public fluidsynth |
1824 | (package | |
1825 | (name "fluidsynth") | |
bdc35b92 | 1826 | (version "2.2.4") |
e4f43b56 | 1827 | (source (origin |
dd46c16b RW |
1828 | (method git-fetch) |
1829 | (uri (git-reference | |
b0e7b699 | 1830 | (url "https://github.com/FluidSynth/fluidsynth") |
dd46c16b | 1831 | (commit (string-append "v" version)))) |
94781b79 | 1832 | (file-name (git-file-name name version)) |
e4f43b56 RW |
1833 | (sha256 |
1834 | (base32 | |
bdc35b92 | 1835 | "1061rdj69503spkd8vmfl3fqvyg4l41k5xcc4gw7niy31hnpnjmn")))) |
dd46c16b | 1836 | (build-system cmake-build-system) |
e4f43b56 | 1837 | (arguments |
713b519e | 1838 | '(#:tests? #f ; no check target |
dd46c16b | 1839 | #:phases |
dc1d3cde | 1840 | (modify-phases %standard-phases |
dd46c16b RW |
1841 | (add-after 'unpack 'fix-libdir |
1842 | (lambda _ | |
713b519e | 1843 | ;; Install libraries to /lib, not /lib64. |
dd46c16b RW |
1844 | (substitute* "CMakeLists.txt" |
1845 | (("LIB_SUFFIX \\$\\{_init_lib_suffix\\}") | |
bdc35b92 | 1846 | "LIB_SUFFIX \"\""))))))) |
e4f43b56 | 1847 | (inputs |
bdc35b92 | 1848 | (list ladspa)) |
e4f43b56 | 1849 | (native-inputs |
8394619b | 1850 | (list pkg-config)) |
bdc35b92 TGR |
1851 | (propagated-inputs |
1852 | ;; In Libs.private of fluidsynth.pc. | |
1853 | (list alsa-lib | |
1854 | glib | |
1855 | jack-1 | |
1856 | lash | |
1857 | libsndfile | |
1858 | readline)) | |
4b980563 | 1859 | (home-page "https://www.fluidsynth.org/") |
e4f43b56 RW |
1860 | (synopsis "SoundFont synthesizer") |
1861 | (description | |
1862 | "FluidSynth is a real-time software synthesizer based on the SoundFont 2 | |
1863 | specifications. FluidSynth reads and handles MIDI events from the MIDI input | |
e881752c | 1864 | device. It is the software analogue of a MIDI synthesizer. FluidSynth can |
e4f43b56 | 1865 | also play midifiles using a Soundfont.") |
dd46c16b | 1866 | (license license:lgpl2.1+))) |
e4f43b56 | 1867 | |
70fc29d9 TUBK |
1868 | (define-public faad2 |
1869 | (package | |
1870 | (name "faad2") | |
31f226c4 RG |
1871 | (version "2.8.8") |
1872 | (source | |
1873 | (origin | |
1874 | (method url-fetch) | |
1875 | (uri | |
1876 | (string-append "mirror://sourceforge/faac/faad2-src/faad2-" | |
1877 | (version-major+minor version) ".0/" | |
1878 | "faad2-" version ".tar.gz")) | |
1879 | (sha256 | |
1880 | (base32 "0va284hndhn0ynm4lyn219qw4y8wa4agfkqgwlaji7bqp6nkyp4q")))) | |
70fc29d9 | 1881 | (build-system gnu-build-system) |
df2f7f5b | 1882 | (home-page "https://www.audiocoding.com/faad2.html") |
70fc29d9 TUBK |
1883 | (synopsis "MPEG-4 and MPEG-2 AAC decoder") |
1884 | (description | |
df2f7f5b | 1885 | "FAAD2 is an MPEG-4 and MPEG-2 AAC decoder supporting LC, Main, LTP, SBR, -PS, and DAB+.") |
31f226c4 | 1886 | (license license:gpl2+))) |
70fc29d9 | 1887 | |
777291f0 RW |
1888 | (define-public faust |
1889 | (package | |
1890 | (name "faust") | |
a3604742 | 1891 | (version "0.9.90") |
777291f0 | 1892 | (source (origin |
a3604742 RW |
1893 | (method git-fetch) |
1894 | (uri (git-reference | |
b0e7b699 | 1895 | (url "https://github.com/grame-cncm/faust") |
a3604742 RW |
1896 | (commit (string-append "v" |
1897 | (string-map (lambda (c) | |
1898 | (if (char=? c #\.) #\- c)) | |
1899 | version))))) | |
1900 | (file-name (string-append "faust-" version "-checkout")) | |
777291f0 RW |
1901 | (sha256 |
1902 | (base32 | |
a3604742 | 1903 | "0qc6iwjd3i80jdyjc186c6ywipmjzl8wlsp4050pbr56q4rlkd4z")))) |
777291f0 RW |
1904 | (build-system gnu-build-system) |
1905 | (arguments | |
1906 | `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out"))) | |
1907 | #:tests? #f | |
1908 | #:phases | |
1909 | (modify-phases %standard-phases | |
0543c326 | 1910 | ;; no "configure" script |
a3604742 RW |
1911 | (delete 'configure) |
1912 | ;; Files appear under $out/share/faust that are read-only. The | |
1913 | ;; install phase tries to overwrite them and fails, so we change | |
1914 | ;; the permissions first. | |
1915 | (add-before 'install 'fix-permissions | |
1916 | (lambda _ | |
1917 | (for-each (lambda (file) | |
1918 | (chmod file #o644)) | |
1919 | (find-files "architecture/max-msp" ".*")) | |
1920 | #t))))) | |
777291f0 | 1921 | (native-inputs |
8394619b | 1922 | (list unzip)) |
62f6f9d9 | 1923 | (home-page "https://faust.grame.fr/") |
777291f0 RW |
1924 | (synopsis "Signal processing language") |
1925 | (description | |
1926 | "Faust is a programming language for realtime audio signal processing.") | |
1927 | (license license:gpl2+))) | |
1928 | ||
0fce0b92 RW |
1929 | ;; This version is needed to build older synths that require the lv2synth.cpp |
1930 | ;; architecture file, such as sorcer. | |
1931 | (define-public faust-0.9.67 | |
1932 | (package | |
1933 | (inherit faust) | |
1934 | (name "faust") | |
1935 | (version "0.9.67") | |
1936 | (source (origin | |
1937 | (method git-fetch) | |
1938 | (uri (git-reference | |
1939 | (url "https://github.com/grame-cncm/faust") | |
1940 | (commit (string-append "v" | |
1941 | (string-map (lambda (c) | |
1942 | (if (char=? c #\.) #\- c)) | |
1943 | version))))) | |
1944 | (file-name (git-file-name name version)) | |
1945 | (sha256 | |
1946 | (base32 | |
1947 | "0856x666s6ymzk8v15f9gy402dbr8c9v2s40hyfadhraqljmqrm0")) | |
1948 | (snippet | |
1949 | ;; Remove prebuilt library | |
1950 | '(delete-file "architecture/android/libs/armeabi-v7a/libfaust_dsp.so")))) | |
1951 | (build-system gnu-build-system) | |
1952 | (arguments | |
1953 | (list | |
1954 | #:make-flags | |
1955 | #~(list (string-append "prefix=" #$output)) | |
1956 | #:tests? #f | |
1957 | #:phases | |
1958 | '(modify-phases %standard-phases | |
1959 | ;; no "configure" script | |
1960 | (delete 'configure)))) | |
1961 | (native-inputs (list unzip)))) | |
1962 | ||
8ae60404 RW |
1963 | (define-public faust-2 |
1964 | (package | |
1965 | (inherit faust) | |
bfec24b1 | 1966 | (version "2.41.1") |
8ae60404 | 1967 | (source (origin |
89c78948 RW |
1968 | (method url-fetch) |
1969 | (uri (string-append "https://github.com/grame-cncm/faust/" | |
1970 | "releases/download/" version | |
1971 | "/faust-" version ".tar.gz")) | |
8ae60404 RW |
1972 | (sha256 |
1973 | (base32 | |
bfec24b1 GH |
1974 | "0gk8ifxrbykq7ay0nvjns8fjryhp0wfhv5npgrl8xpgw9wfmw53j")))) |
1975 | (build-system cmake-build-system) | |
8ae60404 | 1976 | (arguments |
bfec24b1 GH |
1977 | `(#:tests? #f ; no tests |
1978 | #:phases | |
1979 | (modify-phases %standard-phases | |
1980 | ;; The upstream package uses make to run cmake during the build stage. | |
1981 | ;; Here we ignore the Makefile and call cmake directly. | |
1982 | (replace 'configure | |
1983 | (lambda _ | |
1984 | (chdir "build") | |
1985 | (invoke "cmake" "-C" "backends/all.cmake" | |
1986 | (string-append "-DCMAKE_INSTALL_PREFIX=" | |
1987 | (assoc-ref %outputs "out"))))) | |
1988 | ;; The sound2faust tool would be built in the Makefile's "world" target | |
1989 | (add-after 'install 'sound2faust | |
1990 | (lambda _ | |
1991 | (chdir "../tools/sound2faust") | |
1992 | (setenv "PREFIX" (assoc-ref %outputs "out")) | |
1993 | (invoke "make") | |
1994 | (invoke "make" "install")))))) | |
8ae60404 | 1995 | (native-inputs |
bfec24b1 | 1996 | `(("llvm" ,llvm) |
8ae60404 | 1997 | ("which" ,which) |
9fc513ad | 1998 | ("xxd" ,xxd) |
8ae60404 RW |
1999 | ("ctags" ,emacs-minimal) ; for ctags |
2000 | ("pkg-config" ,pkg-config))) | |
2001 | (inputs | |
8394619b | 2002 | (list libsndfile libmicrohttpd ncurses openssl zlib)))) |
8ae60404 | 2003 | |
7c92efff RW |
2004 | (define-public freepats |
2005 | (package | |
2006 | (name "freepats") | |
2007 | (version "20060219") | |
2008 | (source (origin | |
2009 | (method url-fetch) | |
2010 | (uri (string-append "http://freepats.zenvoid.org/freepats-" | |
2011 | version ".tar.bz2")) | |
2012 | (sha256 | |
2013 | (base32 | |
2014 | "12iw36rd94zirll96cd5k0va7p5hxmf2shvjlhzihcmjaw8flq82")))) | |
2015 | (build-system trivial-build-system) | |
2016 | (arguments | |
2017 | `(#:modules ((guix build utils)) | |
2018 | #:builder (begin | |
2019 | (use-modules (guix build utils)) | |
2020 | (let ((out (string-append %output "/share/freepats"))) | |
2021 | (setenv "PATH" (string-append | |
2022 | (assoc-ref %build-inputs "bzip2") "/bin:" | |
2023 | (assoc-ref %build-inputs "tar") "/bin")) | |
e3cfef22 | 2024 | (invoke "tar" "xvf" (assoc-ref %build-inputs "source")) |
7c92efff RW |
2025 | (chdir "freepats") |
2026 | ;; Use absolute pattern references | |
2027 | (substitute* "freepats.cfg" | |
2028 | (("Tone_000") (string-append out "/Tone_000")) | |
2029 | (("Drum_000") (string-append out "/Drum_000"))) | |
2030 | (mkdir-p out) | |
e3cfef22 MW |
2031 | (copy-recursively "." out) |
2032 | #t)))) | |
7c92efff | 2033 | (native-inputs |
8394619b | 2034 | (list tar bzip2)) |
7c92efff RW |
2035 | (home-page "http://freepats.zenvoid.org") |
2036 | (synopsis "GUS compatible patches for MIDI players") | |
2037 | (description | |
2038 | "FreePats is a project to create a free and open set of GUS compatible | |
2039 | patches that can be used with softsynths such as Timidity and WildMidi.") | |
2040 | ;; GPLv2+ with exception for compositions using these patches. | |
2041 | (license license:gpl2+))) | |
2042 | ||
e597612b LMP |
2043 | (define-public freepats-gm |
2044 | (package | |
2045 | (name "freepats-gm") | |
2046 | (version "20210329") | |
2047 | (source (origin | |
2048 | (method url-fetch) | |
2049 | (uri (string-append "https://freepats.zenvoid.org/SoundSets/" | |
2050 | "FreePats-GeneralMIDI/FreePatsGM-SF2-" version ".7z")) | |
2051 | (sha256 | |
2052 | (base32 | |
2053 | "19a1mp9yi33j2zff4mjvhrjz97dwwgjwzfdlf84j9xyydhx0crhc")))) | |
2054 | (build-system trivial-build-system) | |
2055 | (native-inputs | |
2056 | `(("p7zip" ,p7zip))) | |
2057 | (arguments | |
2058 | `(#:modules ((guix build utils)) | |
2059 | #:builder | |
2060 | (let ((dir (string-append "FreePatsGM-SF2-" ,version)) | |
2061 | (file (string-append "FreePatsGM-" ,version ".sf2")) | |
2062 | (out (string-append %output "/share/soundfonts")) | |
2063 | (doc (string-append %output "/share/doc/freepats-gm-" ,version))) | |
2064 | (use-modules (guix build utils)) | |
2065 | (invoke (string-append (assoc-ref %build-inputs "p7zip") "/bin/7z") | |
2066 | "e" (assoc-ref %build-inputs "source") | |
2067 | (string-append dir "/" file) | |
2068 | (string-append dir "/gpl.txt") | |
2069 | (string-append dir "/cc0.txt") | |
2070 | (string-append dir "/readme.txt")) | |
2071 | (mkdir-p out) | |
2072 | (copy-file file (string-append out "/FreePatsGM.sf2")) | |
2073 | (mkdir-p doc) | |
2074 | (for-each | |
2075 | (lambda (file) | |
2076 | (copy-file file (string-append doc "/" file))) | |
2077 | (find-files "." "\\.txt$")) | |
2078 | #t))) | |
2079 | (home-page "https://freepats.zenvoid.org/SoundSets/general-midi.html") | |
2080 | (synopsis "General MIDI sound set") | |
2081 | (description "FreePats is a project to create a free (as in free software) | |
2082 | collection of digital instruments for music production. This sound bank is a | |
2083 | partial release of the General MIDI sound set.") | |
2084 | (license (list | |
2085 | license:gpl3+ ; with sampling exception | |
2086 | license:cc0)))) | |
2087 | ||
fcbeb00b RW |
2088 | (define-public guitarix |
2089 | (package | |
2090 | (name "guitarix") | |
002442b2 | 2091 | (version "0.43.1") |
fcbeb00b RW |
2092 | (source (origin |
2093 | (method url-fetch) | |
2094 | (uri (string-append | |
de67e922 | 2095 | "mirror://sourceforge/guitarix/guitarix/guitarix2-" |
d706d943 | 2096 | version ".tar.xz")) |
fcbeb00b RW |
2097 | (sha256 |
2098 | (base32 | |
002442b2 | 2099 | "1bsjlfd7x09p3iiljilyfbns6hpqn9cgp6psl4ccd6i1lwascfrm")))) |
fcbeb00b RW |
2100 | (build-system waf-build-system) |
2101 | (arguments | |
2102 | `(#:tests? #f ; no "check" target | |
fcbeb00b RW |
2103 | #:configure-flags |
2104 | (list | |
fcbeb00b | 2105 | ;; Add the output lib directory to the RUNPATH. |
bf592ef5 | 2106 | (string-append "--ldflags=-Wl,-rpath=" %output "/lib")))) |
fcbeb00b | 2107 | (inputs |
8394619b LC |
2108 | (list libsndfile |
2109 | boost | |
2110 | curl | |
2111 | avahi | |
2112 | eigen | |
2113 | lv2 | |
2114 | lilv | |
2115 | ladspa | |
2116 | jack-1 | |
2117 | gtkmm-3 | |
2118 | gtk+ | |
2119 | fftwf | |
2120 | lrdf | |
2121 | zita-resampler | |
2122 | zita-convolver)) | |
fcbeb00b RW |
2123 | (native-inputs |
2124 | `(("gperf" ,gperf) | |
49767428 | 2125 | ("faust" ,faust) |
fcbeb00b | 2126 | ("intltool" ,intltool) |
b94a6ca0 | 2127 | ("gettext" ,gettext-minimal) |
bf592ef5 RW |
2128 | ("pkg-config" ,pkg-config) |
2129 | ("sassc" ,sassc))) | |
fcbeb00b RW |
2130 | (native-search-paths |
2131 | (list (search-path-specification | |
2132 | (variable "LV2_PATH") | |
2133 | (files '("lib/lv2"))))) | |
096ed4f9 | 2134 | (home-page "https://guitarix.org/") |
fcbeb00b RW |
2135 | (synopsis "Virtual guitar amplifier") |
2136 | (description "Guitarix is a virtual guitar amplifier running JACK. | |
2137 | Guitarix takes the signal from your guitar as a mono-signal from your sound | |
2138 | card. The input is processed by a main amp and a rack-section. Both can be | |
2139 | routed separately and deliver a processed stereo-signal via JACK. You may | |
2140 | fill the rack with effects from more than 25 built-in modules including stuff | |
2141 | from a simple noise gate to modulation effects like flanger, phaser or | |
2142 | auto-wah.") | |
2143 | (license license:gpl2+))) | |
2144 | ||
5f5b5768 RW |
2145 | (define-public guitarix-lv2 |
2146 | (package (inherit guitarix) | |
2147 | (name "guitarix-lv2") | |
2148 | (arguments | |
2149 | (substitute-keyword-arguments (package-arguments guitarix) | |
2150 | ((#:configure-flags flags) | |
029de52f | 2151 | `(cons "--no-standalone" ,flags)))))) |
5f5b5768 | 2152 | |
11d4800a RW |
2153 | (define-public rakarrack |
2154 | (package | |
2155 | (name "rakarrack") | |
2156 | (version "0.6.1") | |
2157 | (source (origin | |
2158 | (method url-fetch) | |
2159 | (uri (string-append "mirror://sourceforge/rakarrack/rakarrack/" | |
2160 | "rakarrack-" version "/rakarrack-" | |
2161 | version ".tar.bz2")) | |
2162 | (sha256 | |
2163 | (base32 | |
2164 | "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn")) | |
2165 | (modules '((guix build utils))) | |
2166 | (snippet | |
2167 | '(begin | |
2168 | (substitute* '("src/process.C" | |
2169 | "src/global.h") | |
2170 | (("#include <Fl/") "#include <FL/")) | |
2171 | #t)))) | |
2172 | (build-system gnu-build-system) | |
2173 | (inputs | |
e3196755 LC |
2174 | (list alsa-utils |
2175 | fltk | |
2176 | libx11 | |
2177 | libxext | |
2178 | libxfixes | |
2179 | libxft | |
2180 | libxrender | |
2181 | libxpm | |
2182 | fontconfig | |
2183 | freetype | |
2184 | jack-1 | |
2185 | alsa-lib | |
2186 | libsndfile | |
2187 | libsamplerate | |
2188 | zlib)) | |
11d4800a RW |
2189 | (home-page "http://rakarrack.sourceforge.net/") |
2190 | (synopsis "Audio effects processor") | |
2191 | (description | |
2192 | "Rakarrack is a richly featured multi-effects processor emulating a | |
2193 | guitar effects pedalboard. Effects include compressor, expander, noise gate, | |
2194 | equalizers, exciter, flangers, chorus, various delay and reverb effects, | |
2195 | distortion modules and many more. Most of the effects engine is built from | |
2196 | modules found in the excellent software synthesizer ZynAddSubFX. Presets and | |
2197 | user interface are optimized for guitar, but Rakarrack processes signals in | |
2198 | stereo while it does not apply internal band-limiting filtering, and thus is | |
2199 | well suited to all musical instruments and vocals.") | |
2200 | ;; The code is explicitly licensed under the GPL version 2 only. | |
2201 | (license license:gpl2))) | |
2202 | ||
32cf42c1 RW |
2203 | (define-public ir |
2204 | (package | |
2205 | (name "ir") | |
6f85a9c4 | 2206 | (version "1.3.4") |
32cf42c1 | 2207 | (source (origin |
6f85a9c4 RW |
2208 | (method git-fetch) |
2209 | (uri (git-reference | |
2210 | (url "https://github.com/tomszilagyi/ir.lv2") | |
2211 | (commit version))) | |
2212 | (file-name (git-file-name name version)) | |
32cf42c1 RW |
2213 | (sha256 |
2214 | (base32 | |
6f85a9c4 | 2215 | "0svmjhg4r6wy5ci5rwz43ybll7yxjv7nnj7nyqscbzhr3gi5aib0")))) |
32cf42c1 RW |
2216 | (build-system gnu-build-system) |
2217 | (arguments | |
2df984f2 | 2218 | `(#:tests? #f ; no tests |
6f85a9c4 RW |
2219 | #:make-flags |
2220 | (list (string-append "PREFIX=" (assoc-ref %outputs "out")) | |
2221 | (string-append "INSTDIR=" | |
2222 | (assoc-ref %outputs "out") "/lib/lv2")) | |
63ebc380 RW |
2223 | #:phases |
2224 | (modify-phases %standard-phases | |
2225 | (delete 'configure) ; no configure script | |
2226 | ;; See https://github.com/tomszilagyi/ir.lv2/pull/20 | |
869c416c | 2227 | (add-after 'unpack 'fix-type |
63ebc380 RW |
2228 | (lambda _ |
2229 | (substitute* '("ir_gui.cc" "lv2_ui.h") | |
2230 | (("_LV2UI_Descriptor") "LV2UI_Descriptor")) | |
2231 | #t))))) | |
32cf42c1 | 2232 | (inputs |
8394619b LC |
2233 | (list libsndfile |
2234 | libsamplerate | |
2235 | lv2 | |
2236 | glib | |
2237 | gtk+-2 | |
2238 | zita-convolver)) | |
32cf42c1 | 2239 | (native-inputs |
8394619b | 2240 | (list pkg-config)) |
32cf42c1 RW |
2241 | (native-search-paths |
2242 | (list (search-path-specification | |
2243 | (variable "LV2_PATH") | |
2244 | (files '("lib/lv2"))))) | |
6f85a9c4 | 2245 | (home-page "https://tomszilagyi.github.io/plugins/ir.lv2") |
32cf42c1 RW |
2246 | (synopsis "LV2 convolution reverb") |
2247 | (description | |
2248 | "IR is a low-latency, real-time, high performance signal convolver | |
2249 | especially for creating reverb effects. It supports impulse responses with 1, | |
2250 | 2 or 4 channels, in any soundfile format supported by libsndfile.") | |
2251 | (license license:gpl2+))) | |
2252 | ||
fb68469f RW |
2253 | (define-public jack-1 |
2254 | (package | |
2255 | (name "jack") | |
31b7af76 | 2256 | (version "0.125.0") |
2ae03bf6 TGR |
2257 | (source |
2258 | (origin | |
2259 | (method url-fetch) | |
2260 | ;; jackaudio.org/downloads/jack-audio-connection-kit-0.125.0.tar.gz | |
2261 | ;; no longer exists (404). Use an unofficial mirror. | |
2262 | (uri (string-append "https://crux.ster.zone/downloads/" | |
2263 | "jack-audio-connection-kit/" | |
2264 | "jack-audio-connection-kit-" version ".tar.gz")) | |
2265 | (sha256 | |
2266 | (base32 "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm")))) | |
fb68469f | 2267 | (build-system gnu-build-system) |
8e2c0ce4 MB |
2268 | (arguments |
2269 | `(#:phases (modify-phases %standard-phases | |
2270 | (add-after 'unpack 'patch-configure | |
2271 | (lambda _ | |
2272 | (substitute* "configure" | |
2273 | ;; Install to <out/lib> regardless of platform. | |
2274 | (("libnn=lib64") "libnn=lib")) | |
2275 | #t))))) | |
fb68469f | 2276 | (inputs |
8394619b | 2277 | (list alsa-lib readline)) |
5d95e30b | 2278 | ;; uuid.h is included in the JACK type headers |
ca01b3ad | 2279 | ;; db.h is included in the libjack metadata headers |
5d95e30b | 2280 | (propagated-inputs |
bb93042c | 2281 | `(("libuuid" ,util-linux "lib") |
ca01b3ad | 2282 | ("bdb" ,bdb))) |
2f9ae82f | 2283 | (native-inputs |
8394619b | 2284 | (list pkg-config)) |
2ae03bf6 | 2285 | (home-page "https://jackaudio.org/") |
fb68469f RW |
2286 | (synopsis "JACK audio connection kit") |
2287 | (description | |
2288 | "JACK is a low-latency audio server. It can connect a number of | |
2289 | different applications to an audio device, as well as allowing them to share | |
2290 | audio between themselves. JACK is different from other audio server efforts | |
2291 | in that it has been designed from the ground up to be suitable for | |
2292 | professional audio work. This means that it focuses on two key areas: | |
2293 | synchronous execution of all clients, and low latency operation.") | |
2294 | ;; Most files are licensed under the GPL. However, the libjack/ tree is | |
2295 | ;; licensed under the LGPL in order to allow for proprietary usage. | |
e89fa047 | 2296 | (license (list license:gpl2+ license:lgpl2.1+)))) |
c54a8981 | 2297 | |
bcbc02fd RW |
2298 | ;; Packages depending on JACK should always prefer jack-1. Both jack-1 and |
2299 | ;; jack-2 implement the same API. JACK2 is provided primarily as a client | |
2300 | ;; program for users who might benefit from the D-BUS features. | |
c54a8981 | 2301 | (define-public jack-2 |
abadac23 MC |
2302 | (package |
2303 | (inherit jack-1) | |
314275c7 | 2304 | (name "jack2") |
abadac23 | 2305 | (version "1.9.21") |
c54a8981 | 2306 | (source (origin |
abadac23 MC |
2307 | (method git-fetch) |
2308 | (uri (git-reference | |
2309 | (url "https://github.com/jackaudio/jack2") | |
2310 | (commit (string-append "v" version)))) | |
2311 | (file-name (git-file-name name version)) | |
2312 | (sha256 | |
2313 | (base32 | |
2314 | "0sbrffmdbajvrk7iqvsvrnwnpvmicvbjyq3f52r6ashdsznsz03b")))) | |
c54a8981 RW |
2315 | (build-system waf-build-system) |
2316 | (arguments | |
abadac23 MC |
2317 | `(#:tests? #f ; no check target |
2318 | #:configure-flags '("--dbus" "--alsa") | |
b416c647 SB |
2319 | #:phases |
2320 | (modify-phases %standard-phases | |
fa984fa6 RW |
2321 | (add-before 'configure 'set-linkflags |
2322 | (lambda _ | |
52139ce5 MR |
2323 | ;; Ensure -lstdc++ is the tail of LDFLAGS or the simdtests.cpp |
2324 | ;; will not link with undefined reference to symbol | |
2325 | ;; '__gxx_personality_v0@@CXXABI_1.3' | |
2326 | (setenv "LDFLAGS" "-lstdc++") | |
fa984fa6 RW |
2327 | ;; Add $libdir to the RUNPATH of all the binaries. |
2328 | (substitute* "wscript" | |
2329 | ((".*CFLAGS.*-Wall.*" m) | |
2330 | (string-append m | |
2331 | " conf.env.append_unique('LINKFLAGS'," | |
abadac23 | 2332 | "'-Wl,-rpath=" %output "/lib')\n"))))) |
bc8bf605 | 2333 | (add-after 'install 'wrap-python-scripts |
abadac23 | 2334 | (lambda* (#:key outputs #:allow-other-keys) |
fa984fa6 | 2335 | ;; Make sure 'jack_control' runs with the correct PYTHONPATH. |
abadac23 MC |
2336 | (wrap-program (search-input-file outputs "bin/jack_control") |
2337 | `("GUIX_PYTHONPATH" ":" | |
2338 | prefix (,(getenv "GUIX_PYTHONPATH"))))))))) | |
c54a8981 | 2339 | (inputs |
8394619b LC |
2340 | (list alsa-lib |
2341 | dbus | |
2342 | expat | |
2343 | libsamplerate | |
2344 | opus | |
2345 | python-dbus | |
2346 | readline)) | |
c54a8981 | 2347 | (native-inputs |
8394619b | 2348 | (list pkg-config)) |
c54a8981 RW |
2349 | ;; Most files are under GPLv2+, but some headers are under LGPLv2.1+ |
2350 | (license (list license:gpl2+ license:lgpl2.1+)))) | |
f47cba0e | 2351 | |
2f4646b6 RW |
2352 | (define-public jalv |
2353 | (package | |
2354 | (name "jalv") | |
c569c735 | 2355 | (version "1.6.6") |
2f4646b6 RW |
2356 | (source (origin |
2357 | (method url-fetch) | |
0d0252e4 | 2358 | (uri (string-append "https://download.drobilla.net/jalv-" |
2f4646b6 RW |
2359 | version ".tar.bz2")) |
2360 | (sha256 | |
2361 | (base32 | |
c569c735 | 2362 | "05lycfq0f06zjp5xqvzjz9hx9kmqx72yng1lghh76hv63dw43lcj")))) |
2f4646b6 | 2363 | (build-system waf-build-system) |
d8c317df | 2364 | (arguments |
953a5ea5 | 2365 | `(#:tests? #f)) ; no check target |
2f4646b6 | 2366 | (inputs |
953a5ea5 MC |
2367 | (list lv2 |
2368 | lilv | |
2369 | suil | |
2370 | gtk | |
2371 | gtkmm | |
2372 | qtbase-5 | |
2373 | jack-1)) | |
2f4646b6 | 2374 | (native-inputs |
8394619b | 2375 | (list pkg-config)) |
0d0252e4 | 2376 | (home-page "https://drobilla.net/software/jalv/") |
2f4646b6 RW |
2377 | (synopsis "Simple LV2 host for JACK") |
2378 | (description | |
2379 | "Jalv is a simple but fully featured LV2 host for JACK. It runs LV2 | |
2380 | plugins and exposes their ports as JACK ports, essentially making any LV2 | |
2381 | plugin function as a JACK application.") | |
2382 | (license license:isc))) | |
2383 | ||
2cc7ce31 RW |
2384 | (define-public ladspa |
2385 | (package | |
2386 | (name "ladspa") | |
2387 | (version "1.13") | |
0c1910ed AV |
2388 | (source |
2389 | (origin | |
2390 | (method url-fetch) | |
2391 | ;; Since the official link is dead, | |
2392 | ;; we download the tarball from Debian or Internet Archive. | |
2393 | (uri (list (string-append "http://http.debian.net" | |
2394 | "/debian/pool/main/l/ladspa-sdk/ladspa-sdk_" | |
2395 | version ".orig.tar.gz") | |
2396 | (string-append "https://web.archive.org/web/20140717172251/" | |
2397 | "http://www.ladspa.org/download/ladspa_sdk_" | |
2398 | version ".tgz"))) | |
2399 | (sha256 | |
2400 | (base32 | |
2401 | "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm")))) | |
2cc7ce31 RW |
2402 | (build-system gnu-build-system) |
2403 | (arguments | |
2404 | `(#:tests? #f ; the "test" target is a listening test only | |
2405 | #:phases | |
ee527187 MW |
2406 | (modify-phases %standard-phases |
2407 | (replace 'configure | |
2408 | (lambda* (#:key inputs outputs #:allow-other-keys #:rest args) | |
2409 | (chdir "src") | |
2410 | (let ((out (assoc-ref outputs "out"))) | |
2411 | (substitute* "makefile" | |
2412 | (("/usr/lib/ladspa/") (string-append out "/lib/ladspa/")) | |
2413 | (("/usr/include/") (string-append out "/include/")) | |
2414 | (("/usr/bin/") (string-append out "/bin/")) | |
2415 | (("-mkdirhier") "mkdir -p") | |
2416 | (("^CC.*") "CC = gcc\n") | |
2417 | (("^CPP.*") "CPP = g++\n"))) | |
2418 | #t)) | |
2419 | (delete 'build)))) | |
0c1910ed AV |
2420 | ;; Since the home page is gone, we provide a link to the archived version. |
2421 | (home-page | |
2422 | "https://web.archive.org/web/20140729190945/http://www.ladspa.org/") | |
2cc7ce31 RW |
2423 | (synopsis "Linux Audio Developer's Simple Plugin API (LADSPA)") |
2424 | (description | |
2425 | "LADSPA is a standard that allows software audio processors and effects | |
2426 | to be plugged into a wide range of audio synthesis and recording packages.") | |
2427 | (license license:lgpl2.1+))) | |
2428 | ||
da49086a RW |
2429 | (define-public lash |
2430 | (package | |
2431 | (name "lash") | |
2432 | (version "0.6.0-rc2") | |
2433 | (source (origin | |
2434 | (method url-fetch) | |
2435 | ;; The tilde is not permitted in the builder name, but is used | |
2436 | ;; in the tarball. | |
2437 | (uri (string-append | |
2438 | "mirror://savannah/lash/lash-" | |
2439 | (string-join (string-split version #\-) "~") | |
2440 | ".tar.bz2")) | |
2441 | (file-name (string-append name "-" version ".tar.bz2")) | |
2442 | (sha256 | |
2443 | (base32 | |
2444 | "12z1vx3krrzsfccpah9xjs68900xvr7bw92wx8np5871i2yv47iw")))) | |
2445 | (build-system gnu-build-system) | |
44df7807 | 2446 | (arguments |
f03cda4d MB |
2447 | '(;; Glibc no longer includes Sun RPC support, so tell the build system |
2448 | ;; to use libtirpc instead. | |
2449 | #:make-flags (list (string-append "CFLAGS=-I" | |
2450 | (assoc-ref %build-inputs "libtirpc") | |
2451 | "/include/tirpc -ltirpc")) | |
2452 | #:phases | |
44df7807 EF |
2453 | (modify-phases %standard-phases |
2454 | ;; lashd embeds an ancient version of sigsegv so we just skip it | |
2455 | (add-after 'unpack 'skip-lashd | |
2456 | (lambda _ | |
2457 | (substitute* '("Makefile.am" "Makefile.in") | |
2458 | (("lashd ") "")) | |
b07bfd06 EF |
2459 | #t))) |
2460 | #:configure-flags '("--disable-static"))) | |
da49086a RW |
2461 | (inputs |
2462 | `(("bdb" ,bdb) | |
2463 | ("gtk" ,gtk+-2) | |
2464 | ("jack" ,jack-1) | |
f03cda4d | 2465 | ("libtirpc" ,libtirpc) |
da49086a RW |
2466 | ("readline" ,readline) |
2467 | ("python" ,python-2))) | |
2468 | ;; According to pkg-config, packages depending on lash also need to have | |
2469 | ;; at least the following packages declared as inputs. | |
2470 | (propagated-inputs | |
8394619b | 2471 | (list alsa-lib dbus libxml2)) |
da49086a | 2472 | (native-inputs |
8394619b | 2473 | (list pkg-config)) |
340978d7 | 2474 | (home-page "https://www.nongnu.org/lash/") |
da49086a RW |
2475 | (synopsis "Audio application session manager") |
2476 | (description | |
2477 | "LASH is a session management system for audio applications. It allows | |
2478 | you to save and restore audio sessions consisting of multiple interconneced | |
2479 | applications, restoring program state (i.e. loaded patches) and the | |
2480 | connections between them.") | |
2481 | (license license:gpl2+))) | |
2482 | ||
8c0b5a75 TUBK |
2483 | (define-public libbs2b |
2484 | (package | |
2485 | (name "libbs2b") | |
2486 | (version "3.1.0") | |
2487 | (source (origin | |
2488 | (method url-fetch) | |
de67e922 LF |
2489 | (uri (string-append "mirror://sourceforge/bs2b/libbs2b/" version |
2490 | "/libbs2b-" version ".tar.lzma")) | |
8c0b5a75 TUBK |
2491 | (sha256 |
2492 | (base32 | |
2493 | "1mcc4gjkmphczjybnsrip3gq1f974knzys7x49bv197xk3fn8wdr")))) | |
2494 | (build-system gnu-build-system) | |
8394619b LC |
2495 | (native-inputs (list pkg-config)) |
2496 | (inputs (list libsndfile)) | |
3b3b60d0 | 2497 | (home-page "https://sourceforge.net/projects/bs2b/") |
8c0b5a75 TUBK |
2498 | (synopsis "Bauer stereophonic-to-binaural DSP") |
2499 | (description | |
2500 | "The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is | |
2501 | designed to improve headphone listening of stereo audio records. Recommended | |
2502 | for headphone prolonged listening to disable superstereo fatigue without | |
2503 | essential distortions.") | |
2504 | (license license:expat))) | |
2505 | ||
ecd56cd1 JF |
2506 | (define-public ladspa-bs2b |
2507 | (package | |
2508 | (name "ladspa-bs2b") | |
2509 | (version "0.9.1") | |
2510 | (source (origin | |
2511 | (method url-fetch) | |
2512 | (uri (string-append | |
2513 | "mirror://sourceforge/bs2b/plugins/LADSPA%20plugin/" | |
2514 | version "/" name "-" version ".tar.gz")) | |
2515 | (sha256 | |
2516 | (base32 | |
2517 | "1b4aipbj1ba5k99gbc7gmgy14sywyrjd8rpyqj5l905j0mjv8jg2")))) | |
2518 | (build-system gnu-build-system) | |
8394619b LC |
2519 | (native-inputs (list pkg-config)) |
2520 | (inputs (list ladspa libbs2b)) | |
ecd56cd1 JF |
2521 | (home-page "https://sourceforge.net/projects/bs2b/") |
2522 | (synopsis "Bauer stereophonic-to-binaural DSP - LADSPA plugin") | |
2523 | (description "The Bauer stereophonic-to-binaural DSP (bs2b) library and | |
2524 | plugins is designed to improve headphone listening of stereo audio records. | |
2525 | Recommended for headphone prolonged listening to disable superstereo fatigue | |
2526 | without essential distortions. This package contains a LADSPA plugin for use | |
2527 | with applications that support them (e.g. PulseAudio).") | |
2528 | (license license:gpl2+))) | |
2529 | ||
f47cba0e RW |
2530 | (define-public liblo |
2531 | (package | |
2532 | (name "liblo") | |
363fe78a | 2533 | (version "0.31") |
f47cba0e RW |
2534 | (source (origin |
2535 | (method url-fetch) | |
de67e922 LF |
2536 | (uri (string-append "mirror://sourceforge/liblo/liblo/" version |
2537 | "/liblo-" version ".tar.gz")) | |
f47cba0e RW |
2538 | (sha256 |
2539 | (base32 | |
363fe78a | 2540 | "0l67rkdhfa8cffa0nynql3lh2xlbn1454h6qxhjddp1029p48krb")))) |
f47cba0e RW |
2541 | (build-system gnu-build-system) |
2542 | (arguments | |
2543 | `(;; liblo test FAILED | |
2544 | ;; liblo server error 19 in setsockopt(IP_ADD_MEMBERSHIP): No such device | |
2545 | #:tests? #f)) | |
2546 | (home-page "http://liblo.sourceforge.net") | |
2547 | (synopsis "Implementation of the Open Sound Control protocol") | |
2548 | (description | |
2549 | "liblo is a lightweight library that provides an easy to use | |
03b71957 | 2550 | implementation of the Open Sound Control (@dfn{OSC}) protocol.") |
f47cba0e | 2551 | (license license:lgpl2.1+))) |
e2420191 | 2552 | |
b6568c35 VM |
2553 | (define-public rtaudio |
2554 | (package | |
2555 | (name "rtaudio") | |
2556 | (version "5.1.0") | |
2557 | (source | |
2558 | (origin | |
2559 | (method git-fetch) | |
2560 | (uri (git-reference | |
2561 | (url "https://github.com/thestk/rtaudio") | |
2562 | (commit version))) | |
2563 | (file-name (git-file-name name version)) | |
2564 | (sha256 | |
2565 | (base32 "156c2dgh6jrsyfn1y89nslvaxm4yifmxridsb708yvkaym02w2l8")))) | |
2566 | (build-system cmake-build-system) | |
177ff077 VM |
2567 | (arguments |
2568 | `(#:phases | |
2569 | (modify-phases %standard-phases | |
2570 | ;; The header that pkg-config expects is include/rtaudio/RtAudio.h, | |
2571 | ;; but this package installs it as include/RtAudio.h by default. | |
2572 | (add-after 'install 'fix-inc-path | |
2573 | (lambda* (#:key outputs #:allow-other-keys) | |
2574 | (let* ((out (assoc-ref outputs "out")) | |
2575 | (inc (string-append out "/include"))) | |
2576 | (mkdir-p (string-append inc "/rtaudio")) | |
2577 | (rename-file (string-append inc "/RtAudio.h") | |
2578 | (string-append inc "/rtaudio/RtAudio.h")))))))) | |
b6568c35 | 2579 | (native-inputs |
8394619b | 2580 | (list pkg-config)) |
b6568c35 | 2581 | (inputs |
8394619b | 2582 | (list alsa-lib jack-1 pulseaudio)) |
b6568c35 VM |
2583 | (synopsis "Common API for real-time audio I/O") |
2584 | (description | |
2585 | "RtAudio is a set of C++ classes that provides a common API for real-time | |
2586 | audio input/output. It was designed with the following objectives: | |
2587 | ||
2588 | @itemize | |
2589 | @item object-oriented C++ design | |
2590 | @item simple, common API across all supported platforms | |
2591 | @item only one source and one header file for easy inclusion in programming | |
2592 | projects | |
2593 | @item allow simultaneous multi-api support | |
2594 | @item support dynamic connection of devices | |
2595 | @item provide extensive audio device parameter control | |
2596 | @item allow audio device capability probing | |
2597 | @item automatic internal conversion for data format, channel number | |
2598 | compensation, (de)interleaving, and byte-swapping | |
2599 | @end itemize") | |
2600 | (home-page "https://www.music.mcgill.ca/~gary/rtaudio/") | |
2601 | ;; License is expat with a non-binding request to send modifications to | |
2602 | ;; original developer. | |
2603 | (license license:expat))) | |
2604 | ||
fbcad884 OP |
2605 | (define-public python-pyaudio |
2606 | (package | |
2607 | (name "python-pyaudio") | |
2608 | (version "0.2.11") | |
2609 | (source | |
2610 | (origin | |
2611 | (method url-fetch) | |
7d4dae6a | 2612 | (uri (pypi-uri "PyAudio" version)) |
fbcad884 OP |
2613 | (sha256 |
2614 | (base32 | |
2615 | "0x7vdsigm7xgvyg3shd3lj113m8zqj2pxmrgdyj66kmnw0qdxgwk")))) | |
2616 | (build-system python-build-system) | |
2617 | (inputs | |
8394619b | 2618 | (list portaudio)) |
fbcad884 OP |
2619 | (home-page "https://people.csail.mit.edu/hubert/pyaudio/") |
2620 | (synopsis "Bindings for PortAudio v19") | |
2621 | (description "This package provides bindings for PortAudio v19, the | |
2622 | cross-platform audio input/output stream library.") | |
2623 | (license license:expat))) | |
2624 | ||
a91d72e2 RW |
2625 | (define-public python-pyliblo |
2626 | (package | |
2627 | (name "python-pyliblo") | |
2628 | (version "0.10.0") | |
2629 | (source (origin | |
2630 | (method url-fetch) | |
2631 | (uri (string-append "http://das.nasophon.de/download/pyliblo-" | |
2632 | version ".tar.gz")) | |
2633 | (sha256 | |
2634 | (base32 | |
2635 | "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw")))) | |
2636 | (build-system python-build-system) | |
2637 | (arguments `(#:tests? #f)) ;no tests | |
f2516de2 | 2638 | (native-inputs |
8394619b | 2639 | (list python-cython)) |
a91d72e2 | 2640 | (inputs |
8394619b | 2641 | (list liblo)) |
a91d72e2 RW |
2642 | (home-page "http://das.nasophon.de/pyliblo/") |
2643 | (synopsis "Python bindings for liblo") | |
2644 | (description | |
2645 | "Pyliblo is a Python wrapper for the liblo Open Sound Control (OSC) | |
2646 | library. It supports almost the complete functionality of liblo, allowing you | |
2647 | to send and receive OSC messages using a nice and simple Python API. Also | |
2648 | included are the command line utilities @code{send_osc} and @code{dump_osc}.") | |
2649 | (license license:lgpl2.1+))) | |
2650 | ||
58932576 LP |
2651 | (define-public python-soundfile |
2652 | (package | |
2653 | (name "python-soundfile") | |
2654 | (version "0.10.3.post1") | |
2655 | (source | |
2656 | (origin | |
2657 | (method url-fetch) | |
2658 | (uri (pypi-uri "SoundFile" version)) | |
2659 | (sha256 | |
2660 | (base32 | |
2661 | "0yqhrfz7xkvqrwdxdx2ydy4h467sk7z3gf984y1x2cq7cm1gy329")))) | |
2662 | (build-system python-build-system) | |
2663 | (propagated-inputs | |
8394619b | 2664 | (list python-cffi python-numpy libsndfile)) |
58932576 | 2665 | (native-inputs |
8394619b | 2666 | (list python-pytest)) |
58932576 LP |
2667 | (arguments |
2668 | `(#:tests? #f ; missing OGG support | |
2669 | #:phases | |
2670 | (modify-phases %standard-phases | |
2671 | (add-after 'unpack 'patch | |
2672 | (lambda* (#:key inputs #:allow-other-keys) | |
2673 | (substitute* "soundfile.py" | |
2674 | (("_find_library\\('sndfile'\\)") | |
2675 | (string-append "\"" (assoc-ref inputs "libsndfile") | |
2676 | "/lib/libsndfile.so\"")))))))) | |
2677 | (home-page "https://github.com/bastibe/SoundFile") | |
2678 | (synopsis "Python bindings for libsndfile") | |
2679 | (description "This package provides python bindings for libsndfile based on | |
2680 | CFFI and NumPy.") | |
2681 | (license license:expat))) | |
2682 | ||
9e2cdf72 LP |
2683 | (define-public python-python3-midi |
2684 | (package | |
2685 | (name "python-python3-midi") | |
2686 | (version "0.2.5") | |
2687 | (source | |
2688 | (origin | |
2689 | (method url-fetch) | |
2690 | (uri (pypi-uri "python3_midi" version)) | |
2691 | (sha256 | |
2692 | (base32 | |
2693 | "1z9j1w7mpn3xhkcpxmqm5rvmj6nffb5rf14bv7n3sdh07nf6n7sf")))) | |
2694 | (build-system python-build-system) | |
2695 | (home-page "https://github.com/NFJones/python3-midi") | |
2696 | (synopsis "Python MIDI API") | |
2697 | (description "This package provides a python API to read and write MIDI | |
2698 | files.") | |
2699 | (license license:expat))) | |
2700 | ||
f356c71a LP |
2701 | (define-public audio-to-midi |
2702 | (package | |
2703 | (name "audio-to-midi") | |
2704 | (version "2020.7") | |
2705 | (source | |
2706 | (origin | |
2707 | (method git-fetch) | |
2708 | (uri (git-reference | |
2709 | (url "https://github.com/NFJones/audio-to-midi") | |
2710 | (commit (string-append "v" version)))) | |
fda4a93e | 2711 | (file-name (git-file-name name version)) |
f356c71a LP |
2712 | (sha256 |
2713 | (base32 | |
2714 | "12wf17abn3psbsg2r2lk0xdnk8n5cd5rrvjlpxjnjfhd09n7qqgm")))) | |
2715 | (build-system python-build-system) | |
2716 | (propagated-inputs | |
8394619b LC |
2717 | (list python-cffi |
2718 | python-cython | |
2719 | python-numpy | |
2720 | python-progressbar2 | |
2721 | python-pycparser | |
2722 | python-python3-midi | |
2723 | python-soundfile)) | |
f356c71a | 2724 | (native-inputs |
8394619b | 2725 | (list libsndfile)) |
f356c71a LP |
2726 | (arguments |
2727 | `(#:phases | |
2728 | (modify-phases %standard-phases | |
2729 | (add-after 'unpack 'fix-versions | |
2730 | (lambda _ | |
2731 | (substitute* "requirements.txt" (("==") ">="))))))) | |
2732 | (home-page "https://github.com/NFJones/audio-to-midi") | |
38376090 | 2733 | (synopsis "Convert audio to multichannel MIDI") |
f356c71a LP |
2734 | (description "@command{audio-to-midi} converts audio files to multichannel |
2735 | MIDI files. It accomplishes this by performing FFTs on all channels of the | |
2736 | audio data at user-specified time steps. It then separates the resulting | |
2737 | frequency analysis into equivalence classes which correspond to the twelve tone | |
2738 | scale; the volume of each class being the average volume of its constituent | |
2739 | frequencies. This data is then formatted to MIDI and written to disk.") | |
2740 | (license license:expat))) | |
2741 | ||
332aad1b RW |
2742 | (define-public lilv |
2743 | (package | |
2744 | (name "lilv") | |
b331ee62 | 2745 | (version "0.24.12") |
332aad1b RW |
2746 | (source (origin |
2747 | (method url-fetch) | |
0d0252e4 | 2748 | (uri (string-append "https://download.drobilla.net/lilv-" |
d4d3df82 | 2749 | version ".tar.bz2")) |
332aad1b RW |
2750 | (sha256 |
2751 | (base32 | |
b331ee62 | 2752 | "0qchfsyrsrp2pdpd59025kllycr04ddpzd03ha1iz70ci687g8r6")))) |
332aad1b | 2753 | (build-system waf-build-system) |
d80ee442 | 2754 | (arguments |
d0b025ea | 2755 | `(#:tests? #f ; no check target |
d80ee442 TUBK |
2756 | #:phases |
2757 | (modify-phases %standard-phases | |
2d91e596 | 2758 | (add-before 'configure 'set-ldflags |
d80ee442 TUBK |
2759 | (lambda* (#:key outputs #:allow-other-keys) |
2760 | (setenv "LDFLAGS" | |
2761 | (string-append "-Wl,-rpath=" | |
b331ee62 | 2762 | (assoc-ref outputs "out") "/lib")))) |
6833c7a1 F |
2763 | (add-after 'unpack 'full-store-path-to-shared-library |
2764 | (lambda* (#:key outputs #:allow-other-keys) | |
2765 | (with-directory-excursion "bindings/python" | |
2766 | (substitute* "lilv.py" | |
2767 | (("liblilv-0.so") (string-append (assoc-ref outputs "out") | |
b331ee62 | 2768 | "/lib/liblilv-0.so"))))))))) |
d0b025ea | 2769 | ;; Required by lilv-0.pc. |
ff7df27d | 2770 | (propagated-inputs |
8394619b | 2771 | (list lv2 serd sord sratom)) |
332aad1b | 2772 | (native-inputs |
8394619b | 2773 | (list python pkg-config)) |
6833c7a1 | 2774 | (home-page "https://drobilla.net/software/lilv") |
332aad1b RW |
2775 | (synopsis "Library to simplify use of LV2 plugins in applications") |
2776 | (description | |
2777 | "Lilv is a C library to make the use of LV2 plugins as simple as possible | |
2778 | for applications. Lilv is the successor to SLV2, rewritten to be | |
2779 | significantly faster and have minimal dependencies.") | |
2780 | (license license:isc))) | |
2781 | ||
e2420191 RW |
2782 | (define-public lv2 |
2783 | (package | |
2784 | (name "lv2") | |
6a36f4e4 | 2785 | (version "1.18.2") |
e2420191 RW |
2786 | (source (origin |
2787 | (method url-fetch) | |
2c735995 | 2788 | (uri (string-append "https://lv2plug.in/spec/lv2-" |
eb21d248 | 2789 | version ".tar.bz2")) |
e2420191 RW |
2790 | (sha256 |
2791 | (base32 | |
6a36f4e4 | 2792 | "0pp0n9x1rg8d4fw853z9cvfifjdi4bl85yjxxddqa1acfjy1z2af")))) |
e2420191 RW |
2793 | (build-system waf-build-system) |
2794 | (arguments | |
2c735995 | 2795 | `(#:tests? #f ; no check target |
2e189eb8 | 2796 | #:configure-flags '("--no-plugins"))) |
e2420191 RW |
2797 | (inputs |
2798 | ;; Leaving off cairo and gtk+-2.0 which are needed for example plugins | |
8394619b | 2799 | (list libsndfile)) |
e2420191 | 2800 | (native-inputs |
8394619b | 2801 | (list pkg-config)) |
2c735995 | 2802 | (home-page "https://lv2plug.in/") |
e2420191 RW |
2803 | (synopsis "LV2 audio plugin specification") |
2804 | (description | |
2805 | "LV2 is an open specification for audio plugins and host applications. | |
2806 | At its core, LV2 is a simple stable interface, accompanied by extensions which | |
2807 | add functionality to support the needs of increasingly powerful audio | |
2808 | software.") | |
2809 | (license license:isc))) | |
5279eb6f | 2810 | |
2829fb4a RW |
2811 | (define-public ttl2c |
2812 | (package | |
2813 | (name "ttl2c") | |
2814 | (version "1.0.0") | |
2815 | (source (origin | |
2816 | (method git-fetch) | |
2817 | (uri (git-reference | |
2818 | (url "https://github.com/lvtk/ttl2c") | |
2819 | (commit version))) | |
2820 | (file-name (git-file-name name version)) | |
2821 | (sha256 | |
2822 | (base32 | |
2823 | "0aybx8i5i0sridi9130a3937xgmfmjkk8m48f9whvhlhbzwy3xbl")))) | |
2824 | (build-system waf-build-system) | |
2825 | (arguments | |
2826 | (list | |
2827 | #:tests? #false ;no check target | |
2828 | #:phases | |
2829 | `(modify-phases %standard-phases | |
2830 | (add-before 'configure 'setup-waf | |
2831 | (lambda* (#:key inputs #:allow-other-keys) | |
2832 | (let ((waf (assoc-ref inputs "python-waf"))) | |
2833 | (copy-file (string-append waf "/bin/waf") "waf"))))))) | |
2834 | (inputs (list boost)) | |
2835 | (native-inputs (list python-waf)) | |
2836 | (home-page "https://github.com/lvtk/ttl2c") | |
2837 | (synopsis "Turtle to C header conversion utility for LV2 plugins") | |
2838 | (description | |
2839 | "This package provides a conversion utility for LV2 Plugin developers to | |
2840 | generate C headers from Turtle files.") | |
2841 | (license license:gpl3+))) | |
2842 | ||
98247127 RW |
2843 | (define-public lv2-mda-piano |
2844 | (package | |
2845 | (name "lv2-mda-piano") | |
2846 | (version "0.0.2") | |
2847 | (source (origin | |
2848 | (method git-fetch) | |
2849 | (uri (git-reference | |
f6f499b3 | 2850 | (url "http://git.elephly.net/software/lv2-mdametapiano.git") |
98247127 | 2851 | (commit version))) |
35a01e67 | 2852 | (file-name (git-file-name name version)) |
98247127 RW |
2853 | (sha256 |
2854 | (base32 | |
2855 | "07lywf6lpfpndg3i9w752mmlg2hgn1bwp23h8b0mdj6awh67abqd")))) | |
2856 | (build-system gnu-build-system) | |
2857 | (arguments | |
2858 | `(#:make-flags (list | |
2859 | "TYPE=mdaPiano" | |
2860 | (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
2861 | #:tests? #f ; no check target | |
dc1d3cde | 2862 | #:phases (modify-phases %standard-phases (delete 'configure)))) |
98247127 | 2863 | (inputs |
8394619b | 2864 | (list lv2 lvtk)) |
98247127 | 2865 | (native-inputs |
82e7e05d | 2866 | (list pkg-config ttl2c)) |
98247127 RW |
2867 | (native-search-paths |
2868 | (list (search-path-specification | |
2869 | (variable "LV2_PATH") | |
2870 | (files '("lib/lv2"))))) | |
a4e8a9e0 | 2871 | (home-page "https://elephly.net/lv2/mdapiano.html") |
98247127 RW |
2872 | (synopsis "LV2 port of the mda Piano plugin") |
2873 | (description "An LV2 port of the mda Piano VSTi.") | |
2874 | (license license:gpl3+))) | |
2875 | ||
8fb79e3d RW |
2876 | (define-public lv2-mda-epiano |
2877 | (package (inherit lv2-mda-piano) | |
2878 | (name "lv2-mda-epiano") | |
2879 | (arguments | |
2880 | `(#:make-flags (list | |
2881 | "TYPE=mdaEPiano" | |
2882 | (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
2883 | #:tests? #f ; no check target | |
dc1d3cde | 2884 | #:phases (modify-phases %standard-phases (delete 'configure)))) |
a4e8a9e0 | 2885 | (home-page "https://elephly.net/lv2/mdaepiano.html") |
8fb79e3d RW |
2886 | (synopsis "LV2 port of the mda EPiano plugin") |
2887 | (description "An LV2 port of the mda EPiano VSTi."))) | |
2888 | ||
82de3b60 | 2889 | (define-public lvtk-2 |
a9e9d9f4 MC |
2890 | ;; Use the latest commit, as the latest release was made in 2014 and depends |
2891 | ;; on Python 2. | |
2892 | (let ((commit "a73feabe772f9650aa071e6a4df660e549ab7c48") | |
2893 | (revision "0")) | |
2894 | (package | |
2895 | (name "lvtk") | |
82de3b60 | 2896 | (version (git-version "2" revision commit)) |
a9e9d9f4 MC |
2897 | (source (origin |
2898 | (method git-fetch) | |
2899 | (uri (git-reference | |
2900 | (url "https://github.com/lvtk/lvtk") | |
2901 | (commit commit))) | |
2902 | (file-name (git-file-name name version)) | |
2903 | (sha256 | |
2904 | (base32 | |
2905 | "0scmv8b4jlm88d21dqqchjy98wb93zclc9x960h213gdi871vsaj")))) | |
2906 | (build-system waf-build-system) | |
2907 | (arguments (list #:tests? #f)) ;no check target | |
2908 | (inputs (list boost gtkmm lv2)) | |
2909 | (native-inputs (list pkg-config)) | |
2910 | (home-page "https://github.com/lvtk/lvtk") | |
2911 | (synopsis "C++ libraries for LV2 plugins") | |
2912 | (description | |
2913 | "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and | |
c1718190 RW |
2914 | extensions into easy to use C++ classes. It is the successor of |
2915 | lv2-c++-tools.") | |
a9e9d9f4 | 2916 | (license license:isc)))) |
c1718190 | 2917 | |
d963e6d7 RW |
2918 | (define-public lvtk-1 |
2919 | ;; Use the latest commit, as the latest release was made in 2014 and depends | |
2920 | ;; on Python 2. | |
2921 | (let ((commit "23dd99531d88d7821b69f6f0d60516ef322a6729") | |
2922 | (revision "0")) | |
2923 | (package | |
2924 | (name "lvtk") | |
2925 | (version (git-version "1.2.0" revision commit)) | |
2926 | (source (origin | |
2927 | (method git-fetch) | |
2928 | (uri (git-reference | |
2929 | (url "https://github.com/lvtk/lvtk") | |
2930 | (commit commit))) | |
2931 | (file-name (git-file-name name version)) | |
2932 | (sha256 | |
2933 | (base32 | |
2934 | "0iw7skvsn3whw69dhcxbbdns7mssaf6z6iyzxjav53607ibyfr8d")))) | |
2935 | (build-system waf-build-system) | |
2936 | (arguments | |
2937 | (list | |
2938 | #:tests? #false ;no check target | |
2939 | #:configure-flags | |
2940 | #~(list (string-append "--boost-includes=" | |
2941 | #$(this-package-input "boost") | |
2942 | "/include")) | |
2943 | #:phases | |
2944 | `(modify-phases %standard-phases | |
2945 | (add-before 'configure 'setup-waf | |
2946 | (lambda* (#:key inputs #:allow-other-keys) | |
2947 | (let ((waf (assoc-ref inputs "python-waf"))) | |
2948 | (copy-file (string-append waf "/bin/waf") "waf"))))))) | |
2949 | (inputs (list boost gtkmm lv2)) | |
2950 | (native-inputs (list pkg-config python-waf)) | |
2951 | (home-page "https://github.com/lvtk/lvtk") | |
2952 | (synopsis "C++ libraries for LV2 plugins") | |
2953 | (description | |
2954 | "The LV2 Toolkit (LVTK) contains libraries that wrap the LV2 C API and | |
2955 | extensions into easy to use C++ classes. It is the successor of | |
2956 | lv2-c++-tools.") | |
2957 | (license license:isc)))) | |
2958 | ||
82de3b60 RW |
2959 | (define-public lvtk lvtk-1) |
2960 | ||
f2fac359 TUBK |
2961 | (define-public openal |
2962 | (package | |
2963 | (name "openal") | |
d5037890 | 2964 | (version "1.20.1") |
f2fac359 TUBK |
2965 | (source (origin |
2966 | (method url-fetch) | |
2967 | (uri (string-append | |
b7ea10d0 | 2968 | "https://openal-soft.org/openal-releases/openal-soft-" |
f2fac359 TUBK |
2969 | version ".tar.bz2")) |
2970 | (sha256 | |
2971 | (base32 | |
d5037890 | 2972 | "0vax0b1lgd4212bpxa1rciz52d4mv3dkfvcbbhzw4cjp698v1kmn")))) |
f2fac359 TUBK |
2973 | (build-system cmake-build-system) |
2974 | (arguments | |
7ee5db15 RW |
2975 | `(#:tests? #f ; no check target |
2976 | #:phases | |
2977 | (modify-phases %standard-phases | |
2978 | (add-after | |
2979 | 'unpack 'use-full-library-paths | |
2980 | (lambda* (#:key inputs #:allow-other-keys) | |
69290fd0 | 2981 | (substitute* "alc/backends/pulseaudio.cpp" |
7ee5db15 RW |
2982 | (("#define PALIB \"libpulse\\.so\\.0\"") |
2983 | (string-append "#define PALIB \"" | |
2984 | (assoc-ref inputs "pulseaudio") | |
2985 | "/lib/libpulse.so.0" | |
2986 | "\""))) | |
69290fd0 | 2987 | (substitute* "alc/backends/alsa.cpp" |
7ee5db15 RW |
2988 | (("LoadLib\\(\"libasound\\.so\\.2\"\\)") |
2989 | (string-append "LoadLib(\"" | |
2990 | (assoc-ref inputs "alsa-lib") | |
2991 | "/lib/libasound.so.2" | |
2992 | "\")"))) | |
2993 | #t))))) | |
f2fac359 | 2994 | (inputs |
8394619b | 2995 | (list alsa-lib pulseaudio)) |
f2fac359 TUBK |
2996 | (synopsis "3D audio API") |
2997 | (description | |
2998 | "OpenAL provides capabilities for playing audio in a virtual 3D | |
2999 | environment. Distance attenuation, doppler shift, and directional sound | |
3000 | emitters are among the features handled by the API. More advanced effects, | |
3001 | including air absorption, occlusion, and environmental reverb, are available | |
3002 | through the EFX extension. It also facilitates streaming audio, multi-channel | |
3003 | buffers, and audio capture.") | |
b7ea10d0 | 3004 | (home-page "https://openal-soft.org/") |
f2fac359 TUBK |
3005 | (license license:lgpl2.0+))) |
3006 | ||
c2b411c2 | 3007 | (define-public freealut |
3008 | (package | |
3009 | (name "freealut") | |
3010 | (version "1.1.0") | |
3011 | (source (origin | |
3012 | (method url-fetch) | |
3013 | ;; Upstream url is unclear, many systems use Fedora, there is also | |
3014 | ;; https://github.com/vancegroup/freealut though the status of it | |
3015 | ;; (official? unofficial?) is not clear. | |
3016 | (uri (string-append | |
3017 | "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-" | |
3018 | version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name | |
3019 | "-" version ".tar.gz")) | |
3020 | (sha256 | |
3021 | (base32 | |
3022 | "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0")))) | |
3023 | (build-system cmake-build-system) | |
3024 | (arguments | |
3025 | `(#:tests? #f)) ; no check target | |
3026 | (inputs | |
8394619b | 3027 | (list openal)) |
c2b411c2 | 3028 | (synopsis "Free implementation of OpenAL's ALUT standard") |
3029 | (description "freealut is the OpenAL Utility Toolkit.") | |
aeca6070 | 3030 | (home-page "https://kcat.strangesoft.net/openal.html") |
c2b411c2 | 3031 | (license license:lgpl2.0))) |
3032 | ||
4443bb8d RW |
3033 | (define-public patchage |
3034 | (package | |
3035 | (name "patchage") | |
c3e70aac | 3036 | (version "1.0.4") |
4443bb8d RW |
3037 | (source (origin |
3038 | (method url-fetch) | |
0d0252e4 | 3039 | (uri (string-append "https://download.drobilla.net/patchage-" |
4443bb8d RW |
3040 | version |
3041 | ".tar.bz2")) | |
3042 | (sha256 | |
3043 | (base32 | |
c3e70aac | 3044 | "0gbakiw3mikgbvy3pssrmqmn7z5c7kp4vyaxj5rs4jnkscxgw9vw")))) |
4443bb8d | 3045 | (build-system waf-build-system) |
0fd9671b | 3046 | (arguments |
2a40b199 | 3047 | `(#:tests? #f)) ; no check target |
4443bb8d | 3048 | (inputs |
8394619b LC |
3049 | (list alsa-lib |
3050 | boost | |
3051 | jack-1 | |
3052 | ganv | |
3053 | glibmm | |
3054 | gtkmm-2 | |
3055 | dbus-glib)) | |
4443bb8d | 3056 | (native-inputs |
8394619b | 3057 | (list pkg-config)) |
41cb043a | 3058 | (home-page "https://drobilla.net/software/patchage.html") |
4443bb8d RW |
3059 | (synopsis "Modular patch bay for audio and MIDI systems") |
3060 | (description | |
3061 | "Patchage is a modular patch bay for audio and MIDI systems based on JACK | |
3062 | and ALSA.") | |
3063 | (license license:gpl3+))) | |
3064 | ||
a4b71b32 MB |
3065 | (define-public pcaudiolib |
3066 | (package | |
3067 | (name "pcaudiolib") | |
3068 | (version "1.1") | |
3069 | (home-page "https://github.com/espeak-ng/pcaudiolib") | |
3070 | (source (origin | |
3071 | (method git-fetch) | |
3072 | (uri (git-reference (url home-page) (commit version))) | |
3073 | (file-name (git-file-name name version)) | |
3074 | (sha256 | |
3075 | (base32 | |
3076 | "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0")))) | |
3077 | (build-system gnu-build-system) | |
3078 | (arguments | |
3079 | `(#:configure-flags '("--disable-static"))) | |
3080 | (native-inputs | |
8394619b | 3081 | (list autoconf automake libtool pkg-config which)) |
a4b71b32 | 3082 | (inputs |
8394619b | 3083 | (list alsa-lib pulseaudio)) |
a4b71b32 MB |
3084 | (synopsis "Portable C audio library") |
3085 | (description | |
3086 | "The Portable C Audio Library (pcaudiolib) provides a C@tie{}API to | |
3087 | different audio devices such as ALSA or PulseAudio.") | |
3088 | (license (list license:gpl3+ | |
3089 | ;; The bundled TPCircularBuffer uses a custom license. | |
3090 | (license:non-copyleft | |
3091 | "file://src/TPCircularBuffer/README.markdown"))))) | |
3092 | ||
0d78e377 MM |
3093 | (define-public qjackctl |
3094 | (package | |
3095 | (name "qjackctl") | |
7b570a69 | 3096 | (version "0.9.7") |
0d78e377 MM |
3097 | (source (origin |
3098 | (method url-fetch) | |
1538bc33 RW |
3099 | (uri (string-append "mirror://sourceforge/qjackctl/qjackctl/" |
3100 | version "/qjackctl-" version ".tar.gz")) | |
0d78e377 MM |
3101 | (sha256 |
3102 | (base32 | |
7b570a69 | 3103 | "104hfvr15v8cbkzil8slrqj48y3fl7lx060alj80q1sjh5hl6j2j")))) |
c9c27417 | 3104 | (build-system cmake-build-system) |
0d78e377 | 3105 | (arguments |
4dcf221c | 3106 | '(#:tests? #f)) ; no check target |
0d78e377 | 3107 | (inputs |
8394619b | 3108 | (list jack-1 alsa-lib portaudio qtbase-5 qtx11extras)) |
0d78e377 | 3109 | (native-inputs |
eef8e2ec | 3110 | (list pkg-config qttools-5)) |
0d78e377 MM |
3111 | (home-page "https://qjackctl.sourceforge.io/") |
3112 | (synopsis "Jack server control application") | |
3113 | (description "Control a Jack server. Allows you to plug various sources | |
3114 | into various outputs and to start, stop and configure jackd") | |
3115 | (license license:gpl2+))) | |
3116 | ||
40713793 RW |
3117 | (define-public qjackrcd |
3118 | (package | |
3119 | (name "qjackrcd") | |
78357403 | 3120 | (version "1.2.2") |
40713793 | 3121 | (source (origin |
78357403 RW |
3122 | (method git-fetch) |
3123 | (uri (git-reference | |
b0e7b699 | 3124 | (url "https://github.com/orouits/qjackrcd") |
78357403 | 3125 | (commit (string-append "v" version)))) |
70aa07d2 | 3126 | (file-name (git-file-name name version)) |
40713793 RW |
3127 | (sha256 |
3128 | (base32 | |
78357403 | 3129 | "1l5iq2mkqd4gn9yr8xbh9qlpp1clcflazychl4vhdbz0bzq4c6al")))) |
40713793 RW |
3130 | (build-system gnu-build-system) |
3131 | (arguments | |
3132 | `(#:phases | |
3133 | (modify-phases %standard-phases | |
3134 | (replace 'configure | |
3135 | (lambda* (#:key outputs #:allow-other-keys) | |
14a852bd TGR |
3136 | (invoke "qmake" |
3137 | (string-append "PREFIX=" | |
3138 | (assoc-ref outputs "out")))))))) | |
40713793 | 3139 | (native-inputs |
8394619b | 3140 | (list qtbase-5)) ; for qmake |
40713793 | 3141 | (inputs |
8394619b | 3142 | (list jack-1 libsndfile qtbase-5)) |
40713793 RW |
3143 | (home-page "https://sourceforge.net/projects/qjackrcd/") |
3144 | (synopsis "Stereo audio recorder for JACK") | |
3145 | (description "QJackRcd is a simple graphical stereo recorder for JACK | |
3146 | supporting silence processing for automatic pause, file splitting, and | |
3147 | background file post-processing.") | |
3148 | (license license:gpl2+))) | |
0d78e377 | 3149 | |
247384d0 MC |
3150 | (define-public supercollider |
3151 | (package | |
3152 | (name "supercollider") | |
0745c820 | 3153 | (version "3.12.1") |
abd2a5a8 NG |
3154 | (source |
3155 | (origin | |
3156 | (method git-fetch) | |
3157 | (uri (git-reference | |
3158 | (url "https://github.com/supercollider/supercollider") | |
3159 | (commit (string-append "Version-" version)) | |
3160 | ;; for nova-simd, nova-tt, hidapi, TLSF, oscpack | |
3161 | (recursive? #t))) | |
3162 | (file-name (git-file-name name version)) | |
3163 | (sha256 | |
3164 | (base32 | |
3165 | "0id522338a464j1slcspajwc7klypbc9qpigw5mqjhrw970wij5z")) | |
3166 | (modules '((guix build utils) | |
3167 | (ice-9 ftw))) | |
3168 | (snippet | |
3169 | ;; The build system doesn't allow us to unbundle the following | |
3170 | ;; libraries. hidapi is also heavily patched and upstream not | |
3171 | ;; actively maintained. | |
3172 | '(let ((keep-dirs '("nova-simd" "nova-tt" "hidapi" | |
3173 | "TLSF-2.4.6" "oscpack_1_1_0" "." ".."))) | |
3174 | (with-directory-excursion "./external_libraries" | |
3175 | (for-each | |
3176 | delete-file-recursively | |
3177 | (scandir "." | |
3178 | (lambda (x) | |
3179 | (and (eq? (stat:type (stat x)) 'directory) | |
3180 | (not (member (basename x) keep-dirs))))))) | |
3181 | ;; To find the Guix provided ableton-link library. | |
3182 | (substitute* "lang/CMakeLists.txt" | |
3183 | (("include\\(\\.\\./external_libraries/link/\ | |
a5638483 | 3184 | AbletonLinkConfig\\.cmake\\)") |
abd2a5a8 NG |
3185 | "find_package(AbletonLink NAMES AbletonLink ableton-link \ |
3186 | link REQUIRED)")))))) | |
247384d0 | 3187 | (build-system cmake-build-system) |
409d2907 | 3188 | (outputs |
abd2a5a8 NG |
3189 | '("out" ;core language |
3190 | "ide")) ;qt ide | |
247384d0 | 3191 | (arguments |
0745c820 AV |
3192 | `(#:configure-flags '("-DSYSTEM_BOOST=ON" |
3193 | "-DSYSTEM_YAMLCPP=ON" | |
3194 | "-DSC_QT=ON" | |
3195 | "-DCMAKE_BUILD_TYPE=Release" | |
267d5947 | 3196 | "-DFORTIFY=ON" |
0745c820 AV |
3197 | ;; "-DLIBSCSYNTH=ON" ; TODO: Re-enable? |
3198 | "-DSC_EL=OFF") ;scel is packaged individually as emacs-scel | |
247384d0 MC |
3199 | #:phases |
3200 | (modify-phases %standard-phases | |
2915a760 MC |
3201 | ;; HOME must be defined otherwise supercollider throws a "ERROR: |
3202 | ;; Primitive '_FileMkDir' failed." error when generating the doc. | |
3203 | ;; The graphical tests also hang without it. | |
3204 | (add-after 'unpack 'set-home-directory | |
247384d0 | 3205 | (lambda _ |
abd2a5a8 | 3206 | (setenv "HOME" (getcwd)))) |
2915a760 | 3207 | (add-after 'unpack 'patch-scclass-dir |
6241eacd GL |
3208 | (lambda* (#:key outputs #:allow-other-keys) |
3209 | (let* ((out (assoc-ref outputs "out")) | |
3210 | (scclass-dir | |
3211 | (string-append out | |
3212 | "/share/SuperCollider/SCClassLibrary"))) | |
3213 | (substitute* "lang/LangSource/SC_LanguageConfig.cpp" | |
3214 | (((string-append | |
3215 | "SC_Filesystem::instance\\(\\)\\.getDirectory" | |
3216 | "\\(DirName::Resource\\) / CLASS_LIB_DIR_NAME")) | |
abd2a5a8 | 3217 | (string-append "Path(\"" scclass-dir "\")")))))) |
2915a760 MC |
3218 | (add-before 'build 'prepare-x |
3219 | (lambda _ | |
3220 | (system "Xvfb &") | |
abd2a5a8 | 3221 | (setenv "DISPLAY" ":0"))) |
409d2907 GL |
3222 | (add-before 'install 'install-ide |
3223 | (lambda* (#:key outputs #:allow-other-keys) | |
3224 | (let* ((out (assoc-ref outputs "out")) | |
3225 | (ide (assoc-ref outputs "ide")) | |
3226 | (scide "editors/sc-ide/scide")) | |
3227 | (install-file scide | |
3228 | (string-append ide "/bin")) | |
abd2a5a8 | 3229 | (delete-file scide))))))) |
247384d0 | 3230 | (native-inputs |
eef8e2ec | 3231 | (list ableton-link pkg-config qttools-5 xorg-server-for-tests)) |
0745c820 AV |
3232 | (inputs (list jack-1 |
3233 | libsndfile | |
3234 | fftw | |
3235 | libxt | |
3236 | readline ;readline support for sclang's CLI | |
3237 | alsa-lib ;for sclang's MIDI interface | |
3238 | eudev ;for user interactions with devices | |
3239 | avahi ;zeroconf service discovery support | |
3240 | icu4c | |
3241 | boost | |
3242 | boost-sync | |
3243 | yaml-cpp | |
3244 | qtbase-5 | |
735d340a | 3245 | qtdeclarative-5 |
1ef04fb2 | 3246 | qtsvg-5 |
0938c3e3 | 3247 | qtwebchannel-5 |
d15258d9 | 3248 | qtwebsockets-5)) |
409d2907 | 3249 | (propagated-inputs ;to get native-search-path |
a0beb297 | 3250 | (list qtwebengine-5)) |
247384d0 MC |
3251 | (home-page "https://github.com/supercollider/supercollider") |
3252 | (synopsis "Synthesis engine and programming language") | |
3253 | (description "SuperCollider is a synthesis engine (@code{scsynth} or | |
3254 | @code{supernova}) and programming language (@code{sclang}). It can be used | |
3255 | for experimenting with sound synthesis and algorithmic composition. | |
3256 | ||
3257 | SuperCollider requires jackd to be installed in your user profile and your | |
3258 | user must be allowed to access the realtime features of the kernel. Search | |
3259 | for \"realtime\" in the index of the Guix manual to learn how to achieve this | |
59e80445 | 3260 | using Guix System.") |
247384d0 MC |
3261 | (license license:gpl2+))) |
3262 | ||
9fe7b55a VM |
3263 | (define-public libshout-idjc |
3264 | (package | |
3265 | (name "libshout-idjc") | |
3266 | (version "2.4.4") | |
3267 | (source | |
3268 | (origin | |
3269 | (method url-fetch) | |
3270 | (uri (string-append "mirror://sourceforge/libshoutidjc.idjc.p" | |
3271 | "/libshout-idjc-" version ".tar.gz")) | |
3272 | (sha256 | |
3273 | (base32 "1r9z8ggxylr2ab0isaljbm574rplnlcb12758j994h54nh2vikwb")))) | |
3274 | (build-system gnu-build-system) | |
3275 | (native-inputs | |
8394619b | 3276 | (list pkg-config)) |
9fe7b55a | 3277 | (inputs |
8394619b | 3278 | (list libogg libtheora libvorbis speex)) |
9fe7b55a VM |
3279 | (home-page "http://idjc.sourceforge.net/") |
3280 | (synopsis "Broadcast streaming library with IDJC extensions") | |
3281 | (description "This package provides libshout plus IDJC extensions.") | |
3282 | ;; GNU Library (not Lesser) General Public License. | |
3283 | (license license:lgpl2.0+))) | |
3284 | ||
d83bb797 JW |
3285 | (define-public resample |
3286 | (package | |
3287 | (name "resample") | |
3288 | (version "1.8.1") | |
3289 | (source (origin | |
3290 | (method url-fetch) | |
3291 | (uri (string-append "https://ccrma.stanford.edu/~jos/gz/resample-" | |
3292 | version | |
3293 | ".tar.gz")) | |
3294 | (sha256 (base32 | |
3295 | "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy")))) | |
3296 | (build-system gnu-build-system) | |
3297 | (native-inputs | |
8394619b | 3298 | (list autoconf automake pkg-config libtool)) |
ce34e87c MC |
3299 | (synopsis "Sampling rate conversion and filter design utilities") |
3300 | (description "This package contains the @command{resample} and | |
3301 | @command{windowfilter} command line utilities. The @command{resample} command | |
3302 | allows changing the sampling rate of a sound file, while the | |
ed8c12fb | 3303 | @command{windowfilter} command allows designing Finite Impulse Response (FIR) |
ce34e87c | 3304 | filters using the so-called @emph{window method}.") |
d83bb797 JW |
3305 | (home-page "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html") |
3306 | (license license:lgpl2.1+))) | |
3307 | ||
57238ff2 RW |
3308 | (define-public rubberband |
3309 | (package | |
3310 | (name "rubberband") | |
4bee557d | 3311 | (version "1.8.2") |
57238ff2 RW |
3312 | (source (origin |
3313 | (method url-fetch) | |
3314 | (uri | |
3315 | (string-append "https://bitbucket.org/breakfastquay/rubberband/get/v" | |
3316 | version | |
3317 | ".tar.bz2")) | |
fdf359f8 | 3318 | (file-name (string-append name "-" version ".tar.bz2")) |
57238ff2 RW |
3319 | (sha256 |
3320 | (base32 | |
4bee557d | 3321 | "0462fmjnfqpv2qi0s6ny42drqarkr0xy9lw8frjmfgzyzl5n9294")))) |
57238ff2 | 3322 | (build-system gnu-build-system) |
4bee557d TGR |
3323 | (arguments |
3324 | `(#:tests? #f ; no check target | |
3325 | #:phases | |
3326 | (modify-phases %standard-phases | |
3327 | (add-after 'unpack 'skip-jni-installation | |
3328 | ;; ‘make install’ unconditionally installs librubberband-jni.so, | |
3329 | ;; which is never built by ‘make all’. Skip it. | |
3330 | (lambda _ | |
3331 | (substitute* "Makefile.in" | |
3332 | ((".*cp -f \\$\\(JNI_TARGET\\).*") "")) | |
3333 | #t))))) | |
57238ff2 | 3334 | (inputs |
8394619b | 3335 | (list ladspa libsamplerate vamp)) |
57238ff2 | 3336 | (native-inputs |
8394619b | 3337 | (list pkg-config)) |
20377e4a | 3338 | (home-page "https://breakfastquay.com/rubberband/") |
57238ff2 RW |
3339 | (synopsis "Audio time-stretching and pitch-shifting library") |
3340 | (description | |
3341 | "Rubber Band is a library and utility program that permits changing the | |
3342 | tempo and pitch of an audio recording independently of one another.") | |
3343 | (license license:gpl2+))) | |
3344 | ||
cc45cff8 RW |
3345 | (define-public rtmidi |
3346 | (package | |
3347 | (name "rtmidi") | |
c3638433 | 3348 | (version "5.0.0") |
cc45cff8 | 3349 | (source (origin |
bcdf11d6 PL |
3350 | (method url-fetch) |
3351 | (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi" | |
3352 | "/release/rtmidi-" version ".tar.gz")) | |
3353 | (file-name (string-append "rtmidi-" version ".tar.gz")) | |
cc45cff8 RW |
3354 | (sha256 |
3355 | (base32 | |
c3638433 | 3356 | "1ff2yfq3k4l209fr71v3w98fpjjv1chs09vkbmxj03lcikahxns8")))) |
cc45cff8 | 3357 | (build-system gnu-build-system) |
cc45cff8 | 3358 | (inputs |
8394619b | 3359 | (list jack-1 alsa-lib)) |
cc45cff8 | 3360 | (native-inputs |
8394619b | 3361 | (list autoconf automake libtool pkg-config)) |
bcdf11d6 | 3362 | (home-page "https://www.music.mcgill.ca/~gary/rtmidi") |
cc45cff8 RW |
3363 | (synopsis "Cross-platform MIDI library for C++") |
3364 | (description | |
3365 | "RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut, and API specific | |
3366 | classes) that provide a common cross-platform API for realtime MIDI | |
3367 | input/output.") | |
3368 | (license license:expat))) | |
3369 | ||
c3638433 AT |
3370 | (define-public rtmidi-4.0 |
3371 | (package | |
3372 | (inherit rtmidi) | |
3373 | (version "4.0.0") | |
3374 | (source (origin | |
3375 | (method url-fetch) | |
3376 | (uri (string-append "https://www.music.mcgill.ca/~gary/rtmidi" | |
3377 | "/release/rtmidi-" version ".tar.gz")) | |
3378 | (file-name (string-append "rtmidi-" version ".tar.gz")) | |
3379 | (sha256 | |
3380 | (base32 | |
3381 | "1k962ljpnwyjw9jjiky2372khhri1wqvrj5qsalfpys31xqzw31p")))))) | |
3382 | ||
5279eb6f RW |
3383 | (define-public sratom |
3384 | (package | |
3385 | (name "sratom") | |
dfea2492 | 3386 | (version "0.6.6") |
5279eb6f | 3387 | (source (origin |
95f6e6da MB |
3388 | (method url-fetch) |
3389 | (uri (string-append "https://download.drobilla.net/sratom-" | |
3390 | version ".tar.bz2")) | |
3391 | (sha256 | |
3392 | (base32 | |
dfea2492 | 3393 | "178v90qvsp6lw4sqdmdz0bzyjkgwhv9m75ph1d1z8say5bv0p4gv")))) |
5279eb6f | 3394 | (build-system waf-build-system) |
95f6e6da | 3395 | (arguments `(#:tests? #f)) ;no check target |
6e0b18bf MB |
3396 | (propagated-inputs |
3397 | ;; In Requires of sratom-0.pc. | |
8394619b | 3398 | (list lv2 serd sord)) |
5279eb6f | 3399 | (native-inputs |
8394619b | 3400 | (list pkg-config)) |
0d0252e4 | 3401 | (home-page "https://drobilla.net/software/sratom/") |
5279eb6f RW |
3402 | (synopsis "Library for serialising LV2 atoms to/from RDF") |
3403 | (description | |
3404 | "Sratom is a library for serialising LV2 atoms to/from RDF, particularly | |
3405 | the Turtle syntax.") | |
3406 | (license license:isc))) | |
f3ab6ad3 RW |
3407 | |
3408 | (define-public suil | |
3409 | (package | |
3410 | (name "suil") | |
66017728 | 3411 | (version "0.10.10") |
f3ab6ad3 | 3412 | (source (origin |
8fadac95 TGR |
3413 | (method url-fetch) |
3414 | (uri (string-append "https://download.drobilla.net/suil-" | |
3415 | version ".tar.bz2")) | |
3416 | (sha256 | |
3417 | (base32 | |
66017728 | 3418 | "1ysbazqlbyxlzyr9zk7dj2mgb6pn0amllj2cd5g1m56wnzk0h3vm")))) |
f3ab6ad3 | 3419 | (build-system waf-build-system) |
9f64f7e6 | 3420 | (arguments |
0fe041bd | 3421 | `(#:tests? #f)) ;no check target |
f3ab6ad3 | 3422 | (inputs |
cfd68599 TGR |
3423 | (list lv2 |
3424 | gtk+-2 | |
3425 | gtk+ | |
3426 | qtbase-5)) | |
f3ab6ad3 | 3427 | (native-inputs |
8394619b | 3428 | (list pkg-config)) |
0d0252e4 | 3429 | (home-page "https://drobilla.net/software/suil/") |
f3ab6ad3 RW |
3430 | (synopsis "Library for loading and wrapping LV2 plugin UIs") |
3431 | (description | |
3432 | "Suil is a lightweight C library for loading and wrapping LV2 plugin UIs. | |
3433 | ||
3434 | Suil makes it possible to load a UI of a toolkit in a host using another | |
3435 | toolkit. The API is designed such that hosts do not need to explicitly | |
3436 | support specific toolkits – if Suil supports a particular toolkit, then UIs in | |
3437 | that toolkit will work in all hosts that use Suil automatically. | |
3438 | ||
a00403c6 | 3439 | Suil currently supports every combination of Gtk, Qt, and X11.") |
f3ab6ad3 | 3440 | (license license:isc))) |
db46f2fc | 3441 | |
2a4f3c17 VM |
3442 | (define-public libebur128 |
3443 | (package | |
3444 | (name "libebur128") | |
55bdb2b3 | 3445 | (version "1.2.6") |
2a4f3c17 VM |
3446 | (source |
3447 | (origin | |
3448 | (method git-fetch) | |
3449 | (uri (git-reference | |
3450 | (url "https://github.com/jiixyj/libebur128") | |
3451 | (commit (string-append "v" version)))) | |
3452 | (file-name (git-file-name name version)) | |
3453 | (sha256 | |
55bdb2b3 | 3454 | (base32 "0xkpz5rzz1j1srhprbh89669gw8z5f1njpvcnxqgf7qax69vd8sh")))) |
2a4f3c17 VM |
3455 | (build-system cmake-build-system) |
3456 | (arguments | |
3457 | `(;; Tests require proprietary .wav files. See | |
3458 | ;; https://github.com/jiixyj/libebur128/issues/82. | |
3459 | #:tests? #f | |
3460 | #:configure-flags '("-DBUILD_STATIC_LIBS=OFF"))) | |
3461 | (home-page "https://github.com/jiixyj/libebur128") | |
3462 | (synopsis "Library implementing the EBU R 128 loudness standard") | |
3463 | (description | |
3464 | "@code{libebur128} is a C library that implements the EBU R 128 standard | |
3465 | for loudness normalisation.") | |
3466 | (license license:expat))) | |
3467 | ||
9ffee457 RW |
3468 | (define-public timidity++ |
3469 | (package | |
3470 | (name "timidity++") | |
0c31e86b | 3471 | (version "2.15.0") |
9ffee457 RW |
3472 | (source (origin |
3473 | (method url-fetch) | |
de67e922 LF |
3474 | (uri (string-append "mirror://sourceforge/timidity/TiMidity++" |
3475 | "/TiMidity++-" version | |
3476 | "/TiMidity++-" version ".tar.bz2")) | |
9ffee457 RW |
3477 | (sha256 |
3478 | (base32 | |
0c31e86b | 3479 | "1xf8n6dqzvi6nr2asags12ijbj1lwk1hgl3s27vm2szib8ww07qn")))) |
9ffee457 RW |
3480 | (build-system gnu-build-system) |
3481 | (arguments | |
3482 | '(#:configure-flags | |
3483 | (list "--enable-audio=alsa,flac,jack,ao,vorbis,speex" | |
3484 | "--enable-ncurses" | |
3485 | "--enable-server" | |
3486 | "--enable-alsaseq" | |
3487 | (string-append "--with-default-path=" | |
3488 | (assoc-ref %outputs "out") "/etc/timidity")) | |
3489 | #:phases | |
dc1d3cde KK |
3490 | (modify-phases %standard-phases |
3491 | (add-after 'install 'install-config | |
3492 | (lambda _ | |
3493 | (let ((out (string-append (assoc-ref %outputs "out") | |
3494 | "/etc/timidity"))) | |
3495 | (mkdir-p out) | |
3496 | (call-with-output-file | |
3497 | (string-append out "/timidity.cfg") | |
3498 | (lambda (port) | |
3499 | (format port (string-append "source " | |
3500 | (assoc-ref %build-inputs "freepats") | |
3501 | "/share/freepats/freepats.cfg"))))) | |
3502 | #t))))) | |
9ffee457 | 3503 | (inputs |
8394619b LC |
3504 | (list alsa-lib |
3505 | ao | |
3506 | flac | |
3507 | jack-1 | |
3508 | libogg | |
3509 | libvorbis | |
3510 | speex | |
3511 | ncurses | |
3512 | freepats)) | |
9ffee457 | 3513 | (native-inputs |
8394619b | 3514 | (list pkg-config)) |
9ffee457 RW |
3515 | (home-page "http://timidity.sourceforge.net/") |
3516 | (synopsis "Software synthesizer for playing MIDI files") | |
3517 | (description | |
3518 | "TiMidity++ is a software synthesizer. It can play MIDI files by | |
3519 | converting them into PCM waveform data; give it a MIDI data along with digital | |
3520 | instrument data files, then it synthesizes them in real-time, and plays. It | |
3521 | can not only play sounds, but also can save the generated waveforms into hard | |
3522 | disks as various audio file formats.") | |
3523 | (license license:gpl2+))) | |
3524 | ||
db46f2fc RW |
3525 | (define-public vamp |
3526 | (package | |
3527 | (name "vamp") | |
b1fb59d3 | 3528 | (version "2.6") |
db46f2fc RW |
3529 | (source (origin |
3530 | (method url-fetch) | |
3531 | (uri (string-append | |
3532 | "https://code.soundsoftware.ac.uk" | |
494e9b91 | 3533 | "/attachments/download/1520/vamp-plugin-sdk-" |
b1fb59d3 | 3534 | version ".tar.gz")) |
9002e17c TUBK |
3535 | (sha256 |
3536 | (base32 | |
494e9b91 | 3537 | "0pzq0yy2kdl3jgfc2aqmh5m55nk1ild0hq8mydiiw35c6y0mglyh")))) |
db46f2fc | 3538 | (build-system gnu-build-system) |
9002e17c TUBK |
3539 | (arguments |
3540 | `(#:tests? #f ; no check target | |
3541 | #:phases | |
dc1d3cde KK |
3542 | (modify-phases %standard-phases |
3543 | (add-after 'install 'remove-libvamp-hostsdk.la | |
3544 | (lambda* (#:key outputs #:allow-other-keys) | |
3545 | ;; https://bugs.launchpad.net/ubuntu/+source/vamp-plugin-sdk/+bug/1253656 | |
3546 | (for-each delete-file | |
3547 | (let ((out (assoc-ref outputs "out"))) | |
3548 | (list (string-append out "/lib/libvamp-sdk.la") | |
3549 | (string-append out "/lib/libvamp-hostsdk.la")))) | |
4f27a333 | 3550 | #t))))) |
db46f2fc | 3551 | (inputs |
8394619b | 3552 | (list libsndfile)) |
db46f2fc | 3553 | (native-inputs |
8394619b | 3554 | (list pkg-config)) |
50a67a46 | 3555 | (home-page "https://vamp-plugins.org") |
db46f2fc RW |
3556 | (synopsis "Modular and extensible audio processing system") |
3557 | (description | |
3558 | "Vamp is an audio processing plugin system for plugins that extract | |
3559 | descriptive information from audio data — typically referred to as audio | |
3560 | analysis plugins or audio feature extraction plugins.") | |
3561 | (license | |
3562 | (license:x11-style | |
3563 | "https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk/repository/entry/COPYING")))) | |
9f1cdd9d TUBK |
3564 | |
3565 | (define-public libsbsms | |
3566 | (package | |
3567 | (name "libsbsms") | |
3568 | (version "2.0.2") | |
3569 | (source | |
3570 | (origin | |
3571 | (method url-fetch) | |
3572 | (uri (string-append "mirror://sourceforge/sbsms/sbsms/" version | |
3573 | "/libsbsms-" version ".tar.gz")) | |
3574 | (sha256 | |
3575 | (base32 "1vmf84iy4dkwxv887grnlsfk43fmhd9gbg26gc2kgcv40sbkvayf")))) | |
3576 | (build-system gnu-build-system) | |
8394619b | 3577 | (native-inputs (list automake)) |
9f1cdd9d | 3578 | (arguments |
476b2877 MW |
3579 | `(#:configure-flags |
3580 | ;; Disable the use of SSE unless on x86_64. | |
3581 | ,(if (not (string-prefix? "x86_64" (or (%current-target-system) | |
3582 | (%current-system)))) | |
3583 | ''("--disable-sse") | |
3584 | ''()) | |
3585 | #:phases | |
09c414d8 MW |
3586 | (modify-phases %standard-phases |
3587 | (add-after | |
3588 | 'unpack 'fix-ar-lib-path | |
3589 | (lambda* (#:key inputs #:allow-other-keys) | |
3590 | ;; Originally a symlink to '/usr/local/share/automake-1.12/ar-lib'. | |
3591 | (delete-file "ar-lib") | |
3592 | (symlink | |
ae112039 LC |
3593 | (search-input-file inputs |
3594 | (string-append "/share/automake-" | |
3595 | ,(package-version automake) | |
3596 | "/ar-lib")) | |
ee527187 MW |
3597 | "ar-lib") |
3598 | #t))))) | |
9f1cdd9d TUBK |
3599 | (home-page "http://sbsms.sourceforge.net/") |
3600 | (synopsis "Library for time stretching and pitch scaling of audio") | |
3601 | (description | |
3602 | "SBSMS (Subband Sinusoidal Modeling Synthesis) is software for time | |
3603 | stretching and pitch scaling of audio. This package contains the library.") | |
3604 | ;; There is no explicit declaration of a license, but a COPYING file | |
3605 | ;; containing gpl2. | |
3606 | (license license:gpl2))) | |
754a98ae | 3607 | |
5ced0440 VM |
3608 | (define-public libkeyfinder |
3609 | (package | |
3610 | (name "libkeyfinder") | |
ea0f76c0 | 3611 | (version "2.2.7") |
5ced0440 VM |
3612 | (source |
3613 | (origin | |
3614 | (method git-fetch) | |
3615 | (uri (git-reference | |
3616 | (url "https://github.com/mixxxdj/libkeyfinder") | |
ea0f76c0 | 3617 | (commit version))) |
5ced0440 VM |
3618 | (file-name (git-file-name name version)) |
3619 | (sha256 | |
ea0f76c0 | 3620 | (base32 "0nvhdzy0m3bchk3dpnspv2f518p2v9fjcrv36z1sva1pv9a2g35w")))) |
5ced0440 VM |
3621 | (build-system cmake-build-system) |
3622 | (native-inputs | |
b736af18 | 3623 | (list catch2)) |
5ced0440 | 3624 | (inputs |
8394619b | 3625 | (list fftw)) |
5ced0440 VM |
3626 | (home-page "https://mixxxdj.github.io/libkeyfinder/") |
3627 | (synopsis "Musical key detection for digital audio") | |
3628 | (description | |
3629 | "@code{libkeyfinder} is a small C++11 library for estimating the musical | |
3630 | key of digital audio.") | |
3631 | (license license:gpl3+))) | |
3632 | ||
01b90919 SB |
3633 | (define-public wavpack |
3634 | (package | |
3635 | (name "wavpack") | |
5a4d0a65 | 3636 | (version "5.4.0") |
0e001b1f TGR |
3637 | (source |
3638 | (origin | |
5a4d0a65 EF |
3639 | (method url-fetch) |
3640 | (uri (string-append "https://github.com/dbry/WavPack/releases/download/" | |
3641 | version "/wavpack-" version ".tar.xz")) | |
0e001b1f | 3642 | (sha256 |
5a4d0a65 | 3643 | (base32 "0ycbqarw25x7208jilh86vwwiqklr7f617jps9mllqc659mnmpjb")))) |
01b90919 | 3644 | (build-system gnu-build-system) |
08b7a278 | 3645 | (arguments |
0e001b1f | 3646 | '(#:configure-flags |
d9703035 EF |
3647 | (list "--disable-static" |
3648 | "--enable-tests") | |
0e001b1f TGR |
3649 | #:phases |
3650 | (modify-phases %standard-phases | |
d9703035 EF |
3651 | (replace 'check |
3652 | (lambda* (#:key tests? #:allow-other-keys) | |
3653 | (when tests? | |
3654 | (invoke "./cli/wvtest" "--default" "--short")) | |
0e001b1f | 3655 | #t))))) |
372b15f8 | 3656 | (home-page "https://www.wavpack.com/") |
01b90919 SB |
3657 | (synopsis "Hybrid lossless audio codec") |
3658 | (description | |
3659 | "WavPack is an audio compression format with lossless, lossy and hybrid | |
3660 | compression modes. This package contains command-line programs and library to | |
3661 | encode and decode wavpack files.") | |
3662 | (license license:bsd-3))) | |
3663 | ||
a176dd7e SB |
3664 | (define-public libmodplug |
3665 | (package | |
3666 | (name "libmodplug") | |
06446a7d | 3667 | (version "0.8.9.0") |
a176dd7e SB |
3668 | (source (origin |
3669 | (method url-fetch) | |
3670 | (uri (string-append | |
0f971a04 | 3671 | "mirror://sourceforge/modplug-xmms/" |
a176dd7e SB |
3672 | name "/" version "/" name "-" version ".tar.gz")) |
3673 | (sha256 | |
3674 | (base32 | |
06446a7d | 3675 | "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25")))) |
a176dd7e SB |
3676 | (build-system gnu-build-system) |
3677 | (home-page "http://modplug-xmms.sourceforge.net/") | |
3678 | (synopsis "Mod file playing library") | |
3679 | (description | |
3680 | "Libmodplug renders mod music files as raw audio data, for playing or | |
3681 | conversion. mod, .s3m, .it, .xm, and a number of lesser-known formats are | |
3682 | supported. Optional features include high-quality resampling, bass expansion, | |
3683 | surround and reverb.") | |
3684 | (license license:public-domain))) | |
3685 | ||
b97b5cda SB |
3686 | (define-public libxmp |
3687 | (package | |
3688 | (name "libxmp") | |
2784fca0 | 3689 | (version "4.4.1") |
b97b5cda SB |
3690 | (source (origin |
3691 | (method url-fetch) | |
de67e922 | 3692 | (uri (string-append "mirror://sourceforge/xmp/libxmp/" version "/" |
b97b5cda SB |
3693 | name "-" version ".tar.gz")) |
3694 | (sha256 | |
3695 | (base32 | |
2784fca0 | 3696 | "1kycz4jsyvmf7ny9227b497wc7y5ligydi6fvvldmkf8hk63ad9m")))) |
b97b5cda SB |
3697 | (build-system gnu-build-system) |
3698 | (home-page "http://xmp.sourceforge.net/") | |
3699 | (synopsis "Module player library") | |
3700 | (description | |
3701 | "Libxmp is a library that renders module files to PCM data. It supports | |
3702 | over 90 mainstream and obscure module formats including Protracker (MOD), | |
3703 | Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).") | |
3704 | (license license:lgpl2.1+))) | |
3705 | ||
3ec4bba4 SB |
3706 | (define-public xmp |
3707 | (package | |
3708 | (name "xmp") | |
1a79d476 | 3709 | (version "4.1.0") |
3ec4bba4 SB |
3710 | (source (origin |
3711 | (method url-fetch) | |
de67e922 | 3712 | (uri (string-append "mirror://sourceforge/xmp/xmp/" version "/" |
3ec4bba4 SB |
3713 | name "-" version ".tar.gz")) |
3714 | (sha256 | |
3715 | (base32 | |
1a79d476 | 3716 | "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x")))) |
3ec4bba4 SB |
3717 | (build-system gnu-build-system) |
3718 | (native-inputs | |
8394619b | 3719 | (list pkg-config)) |
3ec4bba4 | 3720 | (inputs |
8394619b | 3721 | (list libxmp pulseaudio)) |
3ec4bba4 SB |
3722 | (home-page "http://xmp.sourceforge.net/") |
3723 | (synopsis "Extended module player") | |
3724 | (description | |
3725 | "Xmp is a portable module player that plays over 90 mainstream and | |
3726 | obscure module formats, including Protracker MOD, Fasttracker II XM, Scream | |
3727 | Tracker 3 S3M and Impulse Tracker IT files.") | |
3728 | (license license:gpl2+))) | |
3729 | ||
754a98ae TUBK |
3730 | (define-public soundtouch |
3731 | (package | |
3732 | (name "soundtouch") | |
46fd582f | 3733 | (version "2.2") |
754a98ae TUBK |
3734 | (source |
3735 | (origin | |
55036ddc TGR |
3736 | (method git-fetch) |
3737 | (uri (git-reference | |
3738 | (url "https://gitlab.com/soundtouch/soundtouch.git") | |
3739 | (commit version))) | |
3740 | (file-name (git-file-name name version)) | |
754a98ae | 3741 | (sha256 |
46fd582f | 3742 | (base32 "12i6yg8vvqwyk412lxl2krbfby6hnxld8qxy0k4m5xp4g94jiq4p")))) |
754a98ae TUBK |
3743 | (build-system gnu-build-system) |
3744 | (native-inputs | |
8394619b | 3745 | (list autoconf automake libtool file)) |
c93bd94c | 3746 | (home-page "https://www.surina.net/soundtouch/") |
754a98ae TUBK |
3747 | (synopsis |
3748 | "Audio processing library for changing tempo, pitch and playback rate") | |
3749 | (description | |
3750 | "SoundTouch is an audio processing library for changing the tempo, pitch | |
3751 | and playback rates of audio streams or audio files. It is intended for | |
3752 | application developers writing sound processing tools that require tempo/pitch | |
3753 | control functionality, or just for playing around with the sound effects.") | |
3754 | (license license:lgpl2.1+))) | |
4bddd14c | 3755 | |
d739f481 AK |
3756 | (define-public sox |
3757 | (package | |
3758 | (name "sox") | |
3759 | (version "14.4.2") | |
3760 | (source (origin | |
3761 | (method url-fetch) | |
de67e922 LF |
3762 | (uri (string-append "mirror://sourceforge/sox/sox/" version "/" |
3763 | name "-" version ".tar.bz2")) | |
d739f481 AK |
3764 | (sha256 |
3765 | (base32 | |
3766 | "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1")))) | |
3767 | (build-system gnu-build-system) | |
3768 | (arguments | |
3769 | '(#:configure-flags | |
3770 | ;; The upstream asks to identify the distribution to diagnose SoX | |
3771 | ;; bug reports. | |
3772 | '("--with-distro=Guix System Distribution"))) | |
3773 | (native-inputs | |
8394619b | 3774 | (list pkg-config)) |
d739f481 | 3775 | (inputs |
8394619b LC |
3776 | (list alsa-lib |
3777 | ao | |
3778 | flac | |
3779 | lame | |
3780 | libid3tag | |
3781 | libltdl | |
3782 | libmad | |
3783 | libpng | |
3784 | libvorbis | |
3785 | pulseaudio)) | |
d739f481 AK |
3786 | (home-page "http://sox.sourceforge.net") |
3787 | (synopsis "Sound processing utility") | |
3788 | (description | |
3789 | "SoX (Sound eXchange) is a command line utility that can convert | |
3790 | various formats of computer audio files to other formats. It can also | |
3791 | apply various effects to these sound files, and, as an added bonus, SoX | |
3792 | can play and record audio files.") | |
3793 | ;; sox.c is distributed under GPL, while the files that make up | |
3794 | ;; libsox are licensed under LGPL. | |
3795 | (license (list license:gpl2+ license:lgpl2.1+)))) | |
3796 | ||
4bddd14c TUBK |
3797 | (define-public soxr |
3798 | (package | |
3799 | (name "soxr") | |
9e9a211f | 3800 | (version "0.1.3") |
4bddd14c TUBK |
3801 | (source |
3802 | (origin | |
3803 | (method url-fetch) | |
3804 | (uri | |
3805 | (string-append "mirror://sourceforge/soxr/soxr-" version | |
3806 | "-Source.tar.xz")) | |
3807 | (sha256 | |
9e9a211f | 3808 | (base32 "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di")))) |
4bddd14c TUBK |
3809 | (build-system cmake-build-system) |
3810 | (arguments '(#:tests? #f)) ;no 'check' target | |
3b3b60d0 | 3811 | (home-page "https://sourceforge.net/p/soxr/wiki/Home/") |
4bddd14c TUBK |
3812 | (synopsis "One-dimensional sample-rate conversion library") |
3813 | (description | |
3814 | "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate | |
3815 | conversion. It may be used, for example, to resample PCM-encoded audio.") | |
3816 | (license license:lgpl2.1+))) | |
49f36708 TUBK |
3817 | |
3818 | (define-public twolame | |
3819 | (package | |
3820 | (name "twolame") | |
196e3579 | 3821 | (version "0.4.0") |
49f36708 TUBK |
3822 | (source |
3823 | (origin | |
3824 | (method url-fetch) | |
de67e922 LF |
3825 | (uri (string-append "mirror://sourceforge/twolame/twolame/" version |
3826 | "/twolame-" version ".tar.gz")) | |
49f36708 | 3827 | (sha256 |
196e3579 | 3828 | (base32 "0zf8sxqb02w07ah55b1y7ab643zmpbhn62spa9pqra0rc17l4dfc")))) |
49f36708 TUBK |
3829 | (build-system gnu-build-system) |
3830 | (inputs | |
8394619b | 3831 | (list libsndfile)) |
49f36708 | 3832 | (native-inputs |
8394619b | 3833 | (list perl which)) ;used in tests/test.pl |
5c5a9cd6 | 3834 | (home-page "https://www.twolame.org/") |
49f36708 TUBK |
3835 | (synopsis "MPEG Audio Layer 2 (MP2) encoder") |
3836 | (description | |
3837 | "TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on | |
3838 | tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and | |
3839 | portions of LAME.") | |
3840 | (license license:lgpl2.1+))) | |
bd4464f2 TUBK |
3841 | |
3842 | (define-public portaudio | |
3843 | (package | |
3844 | (name "portaudio") | |
80420acb | 3845 | (version "190600.20161030") |
bd4464f2 TUBK |
3846 | (source |
3847 | (origin | |
3848 | (method url-fetch) | |
3849 | (uri (string-append | |
3850 | "http://www.portaudio.com/archives/pa_stable_v" | |
3851 | (string-map (lambda (c) (if (char=? c #\.) #\_ c)) version) | |
3852 | ".tgz")) | |
3853 | (sha256 | |
80420acb | 3854 | (base32 "04qmin6nj144b8qb9kkd9a52xfvm0qdgm8bg8jbl7s3frmyiv8pm")) |
fc1adab1 | 3855 | (patches (search-patches "portaudio-audacity-compat.patch")))) |
bd4464f2 TUBK |
3856 | (build-system gnu-build-system) |
3857 | (inputs | |
3858 | ;; TODO: Add ASIHPI. | |
8394619b | 3859 | (list alsa-lib jack-1)) |
cdb4048d RW |
3860 | ;; Autoreconf is necessary because the audacity-compat patch modifies .in |
3861 | ;; files. | |
bd4464f2 | 3862 | (native-inputs |
8394619b | 3863 | (list autoconf automake libtool pkg-config)) |
86fded86 | 3864 | (arguments |
1ce6bfc2 | 3865 | '(#:tests? #f ;no 'check' target |
c9cd4a84 | 3866 | #:parallel-build? #f ;fails on some systems |
1ce6bfc2 NG |
3867 | #:configure-flags '("--with-pic" |
3868 | "--enable-cxx" | |
3869 | ;; XXX: The following prevents a build error | |
3870 | ;; because of missing depcomp when C++ bindings are | |
3871 | ;; requested. | |
3872 | "--disable-dependency-tracking") | |
86fded86 RW |
3873 | #:phases |
3874 | (modify-phases %standard-phases | |
3875 | ;; This is needed for linking the static libraries | |
3876 | (add-after 'unpack 'build-only-position-independent-code | |
3877 | (lambda _ | |
3878 | (substitute* "configure.in" | |
3879 | (("AC_PROG_LIBTOOL" m) | |
3880 | (string-append m "\nAM_PROG_AR\nLT_INIT([pic-only])"))) | |
3881 | (delete-file "configure") | |
3882 | #t)) | |
3883 | ;; Some headers are not installed by default, but are needed by | |
3884 | ;; packages like Kaldi. | |
3885 | (add-after 'install 'install-missing-headers | |
3886 | (lambda* (#:key outputs #:allow-other-keys) | |
3887 | (install-file "src/common/pa_ringbuffer.h" | |
3888 | (string-append (assoc-ref outputs "out") "/include")) | |
3889 | #t))))) | |
bd4464f2 TUBK |
3890 | (home-page "http://www.portaudio.com/") |
3891 | (synopsis "Audio I/O library") | |
3892 | (description | |
3893 | "PortAudio is a portable C/C++ audio I/O library providing a simple API | |
3894 | to record and/or play sound using a callback function or a blocking read/write | |
3895 | interface.") | |
3896 | (license license:expat))) | |
74bbf894 | 3897 | |
fe73aef4 RW |
3898 | (define-public qsynth |
3899 | (package | |
3900 | (name "qsynth") | |
5e4cb92e | 3901 | (version "0.5.7") |
fe73aef4 RW |
3902 | (source |
3903 | (origin | |
3904 | (method url-fetch) | |
b9495d07 EF |
3905 | (uri (list |
3906 | (string-append "mirror://sourceforge/qsynth/qsynth/" version | |
3907 | "/qsynth-" version ".tar.gz") | |
3908 | (string-append "mirror://sourceforge/qsynth/qsynth (attic)" | |
3909 | "/qsynth-" version ".tar.gz"))) | |
fe73aef4 | 3910 | (sha256 |
5e4cb92e | 3911 | (base32 "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6")))) |
fe73aef4 RW |
3912 | (build-system gnu-build-system) |
3913 | (arguments | |
5e4cb92e | 3914 | `(#:tests? #f)) ; no "check" phase |
598f6394 | 3915 | (native-inputs |
eef8e2ec | 3916 | (list qttools-5 pkg-config)) |
fe73aef4 | 3917 | (inputs |
8394619b | 3918 | (list fluidsynth qtbase-5 qtx11extras)) |
12c8c997 | 3919 | (home-page "https://qsynth.sourceforge.io") |
fe73aef4 RW |
3920 | (synopsis "Graphical user interface for FluidSynth") |
3921 | (description | |
3922 | "Qsynth is a GUI front-end application for the FluidSynth SoundFont | |
3923 | synthesizer written in C++.") | |
3924 | (license license:gpl2+))) | |
3925 | ||
55b596c3 TUBK |
3926 | (define-public rsound |
3927 | (package | |
3928 | (name "rsound") | |
3929 | (version "1.1") | |
3930 | (source | |
3931 | (origin | |
458baefb RW |
3932 | (method git-fetch) |
3933 | (uri (git-reference | |
b0e7b699 | 3934 | (url "https://github.com/Themaister/RSound") |
458baefb RW |
3935 | (commit (string-append "v" version)))) |
3936 | (file-name (git-file-name name version)) | |
55b596c3 | 3937 | (sha256 |
458baefb | 3938 | (base32 "0gspmr3klwnq98h17p5hc6ifygya4p80g4g8r7a1qavm3mv19waf")))) |
55b596c3 TUBK |
3939 | (build-system gnu-build-system) |
3940 | (inputs | |
8394619b LC |
3941 | (list alsa-lib |
3942 | jack-1 | |
3943 | ao | |
3944 | libsamplerate | |
3945 | openal | |
3946 | portaudio | |
3947 | pulseaudio)) | |
55b596c3 TUBK |
3948 | (arguments |
3949 | '(#:phases | |
dc1d3cde KK |
3950 | (modify-phases %standard-phases |
3951 | (replace 'configure | |
3952 | (lambda* (#:key outputs #:allow-other-keys) | |
3953 | (setenv "CC" "gcc") | |
c3d14484 TGR |
3954 | (invoke "./configure" |
3955 | (string-append "--prefix=" (assoc-ref outputs "out")))))) | |
55b596c3 TUBK |
3956 | ;; No 'check' target. |
3957 | #:tests? #f)) | |
286ab9d3 | 3958 | (home-page "https://themaister.net/rsound.html") |
55b596c3 TUBK |
3959 | (synopsis "Networked audio system") |
3960 | (description | |
3961 | "RSound allows you to send audio from an application and transfer it | |
3962 | directly to a different computer on your LAN network. It is an audio daemon | |
3963 | with a much different focus than most other audio daemons.") | |
3964 | (license license:gpl3+))) | |
3965 | ||
caf9055c RW |
3966 | (define-public xjackfreak |
3967 | (package | |
3968 | (name "xjackfreak") | |
3969 | (version "1.0") | |
3970 | (source (origin | |
8e5995e3 RW |
3971 | (method git-fetch) |
3972 | (uri (git-reference | |
b0e7b699 | 3973 | (url "https://github.com/johnhldavis/xjackfreak") |
8e5995e3 RW |
3974 | (commit (string-append "v" version)))) |
3975 | (file-name (git-file-name name version)) | |
caf9055c RW |
3976 | (sha256 |
3977 | (base32 | |
8e5995e3 | 3978 | "18c546qidbrj0f5wfiq5llii2192xpln0ab3r4vpr7i3wybxqjfz")))) |
caf9055c RW |
3979 | (build-system gnu-build-system) |
3980 | (arguments | |
3981 | `(#:make-flags | |
3982 | (list (string-append "docdir=" (assoc-ref %outputs "out") | |
3983 | "/share/doc/xjackfreak")))) | |
3984 | (inputs | |
8394619b | 3985 | (list jack-1 libx11 libxt libxext)) |
caf9055c | 3986 | (native-inputs |
8394619b | 3987 | (list pkg-config)) |
caf9055c RW |
3988 | (home-page "https://github.com/johnhldavis/xjackfreak") |
3989 | (synopsis "JACK audio frequency analyzer and display") | |
3990 | (description | |
3991 | "XJackFreak is an audio analysis and equalizing tool for the Jack Audio | |
3992 | Connection Kit. It can display the FFT of any input, modify it and output the | |
3993 | result.") | |
3994 | (license license:gpl3+))) | |
3995 | ||
d73f7909 RW |
3996 | (define-public zita-convolver |
3997 | (package | |
3998 | (name "zita-convolver") | |
1c1ce52a | 3999 | (version "4.0.3") |
d73f7909 RW |
4000 | (source (origin |
4001 | (method url-fetch) | |
4002 | (uri (string-append | |
4003 | "http://kokkinizita.linuxaudio.org" | |
4004 | "/linuxaudio/downloads/zita-convolver-" | |
4005 | version ".tar.bz2")) | |
29e255ca SB |
4006 | (snippet |
4007 | ;; Don't optimize for a specific processor architecture. | |
6cbee49d | 4008 | '(begin |
1c1ce52a | 4009 | (substitute* "source/Makefile" |
6cbee49d MW |
4010 | (("^CXXFLAGS \\+= -march=native") "")) |
4011 | #t)) | |
29e255ca | 4012 | (modules '((guix build utils))) |
d73f7909 RW |
4013 | (sha256 |
4014 | (base32 | |
1c1ce52a | 4015 | "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs")))) |
d73f7909 RW |
4016 | (build-system gnu-build-system) |
4017 | (arguments | |
4018 | `(#:tests? #f ; no "check" target | |
1c1ce52a AT |
4019 | #:make-flags |
4020 | (list (string-append "PREFIX=" (assoc-ref %outputs "out")) | |
4021 | (string-append "SUFFIX=")) | |
d73f7909 | 4022 | #:phases |
dc1d3cde KK |
4023 | (modify-phases %standard-phases |
4024 | (add-after 'unpack 'patch-makefile-and-enter-directory | |
4025 | (lambda _ | |
1c1ce52a | 4026 | (substitute* "source/Makefile" |
dc1d3cde KK |
4027 | (("ldconfig") "true") |
4028 | (("^LIBDIR =.*") "LIBDIR = lib\n")) | |
1c1ce52a | 4029 | (chdir "source") |
ee527187 | 4030 | #t)) |
4f27a333 MB |
4031 | (add-after 'install 'install-symlink |
4032 | (lambda _ | |
4033 | (symlink "libzita-convolver.so" | |
4034 | (string-append (assoc-ref %outputs "out") | |
1c1ce52a | 4035 | "/lib/libzita-convolver.so.4")) |
ee527187 | 4036 | #t)) |
d73f7909 | 4037 | ;; no configure script |
4f27a333 | 4038 | (delete 'configure)))) |
8394619b | 4039 | (inputs (list fftwf)) |
4817bb92 | 4040 | (home-page "https://kokkinizita.linuxaudio.org") |
d73f7909 RW |
4041 | (synopsis "Fast, partitioned convolution engine library") |
4042 | (description | |
4043 | "Zita convolver is a C++ library providing a real-time convolution | |
4044 | engine.") | |
4045 | (license license:gpl3+))) | |
4046 | ||
b7ed6784 RW |
4047 | (define-public zita-resampler |
4048 | (package | |
4049 | (name "zita-resampler") | |
a35cd752 | 4050 | (version "1.6.2") |
b7ed6784 RW |
4051 | (source (origin |
4052 | (method url-fetch) | |
4053 | (uri (string-append | |
4054 | "http://kokkinizita.linuxaudio.org" | |
4055 | "/linuxaudio/downloads/zita-resampler-" | |
4056 | version ".tar.bz2")) | |
6dff4955 SB |
4057 | (snippet |
4058 | ;; Don't optimize for a specific processor architecture. | |
6cbee49d | 4059 | '(begin |
a35cd752 | 4060 | (substitute* '("apps/Makefile" "source/Makefile") |
6cbee49d MW |
4061 | (("^CXXFLAGS \\+= -march=native") "")) |
4062 | #t)) | |
6dff4955 | 4063 | (modules '((guix build utils))) |
b7ed6784 RW |
4064 | (sha256 |
4065 | (base32 | |
a35cd752 | 4066 | "1my5k2dh2dkvjp6xjnf9qy6i7s28z13kw1n9pwa4a2cpwbzawfr3")))) |
b7ed6784 RW |
4067 | (build-system gnu-build-system) |
4068 | (arguments | |
4069 | `(#:tests? #f ; no "check" target | |
a35cd752 AT |
4070 | #:make-flags |
4071 | (list (string-append "PREFIX=" (assoc-ref %outputs "out")) | |
4072 | (string-append "SUFFIX=")) | |
b7ed6784 RW |
4073 | #:phases |
4074 | (modify-phases %standard-phases | |
4075 | (add-after | |
4076 | 'unpack 'patch-makefile-and-enter-directory | |
4077 | (lambda _ | |
a35cd752 | 4078 | (substitute* "source/Makefile" |
b7ed6784 RW |
4079 | (("ldconfig") "true") |
4080 | (("^LIBDIR =.*") "LIBDIR = lib\n")) | |
a35cd752 | 4081 | (chdir "source") |
b7ed6784 RW |
4082 | #t)) |
4083 | (add-after | |
4084 | 'install 'install-symlink | |
4085 | (lambda _ | |
4086 | (symlink "libzita-resampler.so" | |
4087 | (string-append (assoc-ref %outputs "out") | |
ee527187 MW |
4088 | "/lib/libzita-resampler.so.1")) |
4089 | #t)) | |
b7ed6784 RW |
4090 | ;; no configure script |
4091 | (delete 'configure)))) | |
4817bb92 | 4092 | (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html") |
b7ed6784 RW |
4093 | (synopsis "C++ library for resampling audio signals") |
4094 | (description | |
4095 | "Libzita-resampler is a C++ library for resampling audio signals. It is | |
4096 | designed to be used within a real-time processing context, to be fast, and to | |
4097 | provide high-quality sample rate conversion.") | |
4098 | (license license:gpl3+))) | |
4099 | ||
74bbf894 RW |
4100 | (define-public zita-alsa-pcmi |
4101 | (package | |
4102 | (name "zita-alsa-pcmi") | |
d0f0e2bd | 4103 | (version "0.3.2") |
74bbf894 RW |
4104 | (source (origin |
4105 | (method url-fetch) | |
4106 | (uri (string-append | |
4107 | "http://kokkinizita.linuxaudio.org" | |
4108 | "/linuxaudio/downloads/zita-alsa-pcmi-" | |
4109 | version ".tar.bz2")) | |
4110 | (sha256 | |
4111 | (base32 | |
d0f0e2bd | 4112 | "12d7vdg74yh21w69qi0wg57iz4876j94qbiq09bvscih6xz9y78s")))) |
74bbf894 RW |
4113 | (build-system gnu-build-system) |
4114 | (arguments | |
4115 | `(#:tests? #f ; no "check" target | |
d0f0e2bd AT |
4116 | #:make-flags |
4117 | (list (string-append "PREFIX=" (assoc-ref %outputs "out")) | |
4118 | (string-append "SUFFIX=")) | |
74bbf894 | 4119 | #:phases |
dc1d3cde KK |
4120 | (modify-phases %standard-phases |
4121 | (add-after 'unpack 'patch-makefile-and-enter-directory | |
4122 | (lambda _ | |
d0f0e2bd | 4123 | (substitute* "source/Makefile" |
dc1d3cde KK |
4124 | (("ldconfig") "true") |
4125 | (("^LIBDIR =.*") "LIBDIR = lib\n")) | |
d0f0e2bd | 4126 | (chdir "source") |
dc1d3cde KK |
4127 | #t)) |
4128 | (add-after 'install 'install-symlink | |
4129 | (lambda _ | |
4130 | (symlink "libzita-alsa-pcmi.so" | |
4131 | (string-append (assoc-ref %outputs "out") | |
ee527187 MW |
4132 | "/lib/libzita-alsa-pcmi.so.0")) |
4133 | #t)) | |
dc1d3cde KK |
4134 | ;; no configure script |
4135 | (delete 'configure)))) | |
74bbf894 | 4136 | (inputs |
8394619b | 4137 | (list alsa-lib fftw)) |
4817bb92 | 4138 | (home-page "https://kokkinizita.linuxaudio.org") |
74bbf894 RW |
4139 | (synopsis "C++ wrapper around the ALSA API") |
4140 | (description | |
4141 | "Zita-alsa-pcmi is a C++ wrapper around the ALSA API. It provides easy | |
4142 | access to ALSA PCM devices, taking care of the many functions required to | |
4143 | open, initialise and use a hw: device in mmap mode, and providing floating | |
4144 | point audio data.") | |
4145 | (license license:gpl3+))) | |
6da16993 LF |
4146 | |
4147 | (define-public cuetools | |
4148 | (package | |
4149 | (name "cuetools") | |
4150 | (version "1.4.1") | |
4151 | (source (origin | |
4289a306 RW |
4152 | (method git-fetch) |
4153 | (uri (git-reference | |
b0e7b699 | 4154 | (url "https://github.com/svend/cuetools") |
4289a306 RW |
4155 | (commit version))) |
4156 | (file-name (git-file-name name version)) | |
6da16993 LF |
4157 | (sha256 |
4158 | (base32 | |
4289a306 | 4159 | "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3")))) |
6da16993 | 4160 | (build-system gnu-build-system) |
4289a306 | 4161 | ;; The source checkout is not bootstrapped. |
6da16993 | 4162 | (native-inputs |
8394619b | 4163 | (list autoconf automake flex bison)) |
6da16993 LF |
4164 | (synopsis "Cue and toc file parsers and utilities") |
4165 | (description "Cuetools is a set of programs that are useful for manipulating | |
4166 | and using CUE sheet (cue) files and Table of Contents (toc) files. CUE and TOC | |
4167 | files are a way to represent the layout of a data or audio CD in a | |
4168 | machine-readable ASCII format.") | |
4169 | (home-page "https://github.com/svend/cuetools") | |
4170 | (license license:gpl2+))) | |
6819a8dd | 4171 | |
747b98b3 VM |
4172 | (define-public mp3guessenc |
4173 | (package | |
4174 | (name "mp3guessenc") | |
4175 | (version "0.27.5") | |
4176 | (source | |
4177 | (origin | |
4178 | (method url-fetch) | |
4179 | (uri (string-append "mirror://sourceforge/mp3guessenc/mp3guessenc-" | |
4180 | (version-major+minor version) "/mp3guessenc-" | |
4181 | version ".tar.gz")) | |
4182 | (sha256 | |
4183 | (base32 "1fa3sbwwn4p2v1749lzy040bfy1xfd574mf2frwgg9ikgk3vlb3c")))) | |
4184 | (build-system gnu-build-system) | |
4185 | (arguments | |
4186 | `(#:tests? #f ; no tests | |
4187 | #:make-flags | |
4188 | (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
4189 | #:phases | |
4190 | (modify-phases %standard-phases | |
4191 | (delete 'configure)))) ; no configure phase | |
4192 | (home-page "https://mp3guessenc.sourceforge.io") | |
4193 | (synopsis "Analyze MPEG layer I/II/III files") | |
4194 | (description "mp3guessenc is a command line utility that tries to detect the | |
4195 | encoder used for an MPEG Layer III (MP3) file, as well as scan any MPEG audio | |
4196 | file (any layer) and print a lot of useful information.") | |
4197 | (license license:lgpl2.1+))) | |
4198 | ||
6819a8dd LF |
4199 | (define-public shntool |
4200 | (package | |
4201 | (name "shntool") | |
4202 | (version "3.0.10") | |
4203 | (source (origin | |
4204 | (method url-fetch) | |
7db934a9 EF |
4205 | (uri (list |
4206 | (string-append "http://etree.org/shnutils/shntool/dist/src/" | |
4207 | "shntool-" version ".tar.gz") | |
4208 | (string-append "mirror://debian/pool/main/s/shntool/shntool_" | |
4209 | version ".orig.tar.gz"))) | |
6819a8dd LF |
4210 | (sha256 |
4211 | (base32 | |
4212 | "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l")))) | |
4213 | (build-system gnu-build-system) | |
4214 | (synopsis "WAVE audio data processing tool") | |
4215 | (description "shntool is a multi-purpose WAVE data processing and reporting | |
4216 | utility. File formats are abstracted from its core, so it can process any file | |
4217 | that contains WAVE data, compressed or not---provided there exists a format | |
d5b357ec LF |
4218 | module to handle that particular file type. It can also generate CUE files, and |
4219 | use them split WAVE data into multiple files.") | |
6819a8dd | 4220 | (home-page "http://etree.org/shnutils/shntool/") |
6ac2af78 LF |
4221 | ;; 'install-sh' bears the x11 license |
4222 | (license (list license:gpl2+ license:x11)))) | |
680b54c5 DT |
4223 | |
4224 | (define-public dcadec | |
4225 | (package | |
4226 | (name "dcadec") | |
4227 | (version "0.2.0") | |
4228 | (source (origin | |
b249ff5d RW |
4229 | (method git-fetch) |
4230 | (uri (git-reference | |
b0e7b699 | 4231 | (url "https://github.com/foo86/dcadec") |
b249ff5d RW |
4232 | (commit (string-append "v" version)))) |
4233 | (file-name (git-file-name name version)) | |
680b54c5 DT |
4234 | (sha256 |
4235 | (base32 | |
b249ff5d | 4236 | "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs")))) |
680b54c5 DT |
4237 | (build-system gnu-build-system) |
4238 | (arguments | |
4239 | ;; Test files are missing: https://github.com/foo86/dcadec/issues/53 | |
4def7dac | 4240 | `(#:tests? #f |
680b54c5 | 4241 | #:make-flags |
4def7dac | 4242 | (list (string-append "CC=" ,(cc-for-target)) |
680b54c5 DT |
4243 | ;; Build shared library. |
4244 | "CONFIG_SHARED=1" | |
4245 | (string-append "PREFIX=" (assoc-ref %outputs "out")) | |
4246 | ;; Set proper runpath. | |
4247 | (string-append "LDFLAGS=-Wl,-rpath=" | |
4248 | (assoc-ref %outputs "out") | |
4249 | "/lib")) | |
4250 | #:phases | |
4251 | (modify-phases %standard-phases | |
4252 | ;; No configure script, just a hand-written Makefile. | |
4253 | (delete 'configure)))) | |
4254 | (synopsis "DTS Coherent Acoustics decoder") | |
4255 | (description "Dcadec is a DTS Coherent Acoustics surround sound decoder | |
4256 | with support for HD extensions.") | |
4257 | (home-page "https://github.com/foo86/dcadec") | |
4258 | (license license:lgpl2.1+))) | |
e87c7ec2 | 4259 | |
579e9e95 RW |
4260 | (define-public drc |
4261 | (package | |
4262 | (name "drc") | |
4263 | (version "3.2.3") | |
4264 | (source | |
4265 | (origin | |
4266 | (method url-fetch) | |
4267 | (uri (string-append "mirror://sourceforge/drc-fir/drc-fir/" | |
4268 | version "/drc-" version ".tar.gz")) | |
4269 | (sha256 | |
4270 | (base32 | |
4271 | "08ljj4776pjx119zjmfqa8w56bf7x0m7spmi27yk1m455bmiglrj")))) | |
4272 | (build-system gnu-build-system) | |
4273 | (arguments | |
4274 | (list | |
4275 | #:tests? #false ;there are none | |
4276 | #:make-flags | |
4277 | #~(list (string-append "INSTALL_PREFIX=" #$output) | |
4278 | "-C" "source") | |
4279 | #:phases | |
4280 | '(modify-phases %standard-phases | |
4281 | (delete 'configure)))) | |
4282 | (inputs (list fftw)) | |
4283 | (home-page "http://drc-fir.sourceforge.net/") | |
4284 | (synopsis "Digital room correction") | |
4285 | (description | |
4286 | "DRC is a program used to generate correction filters for acoustic | |
4287 | compensation of HiFi and audio systems in general, including listening room | |
4288 | compensation. DRC generates just the FIR correction filters, which can be | |
4289 | used with a real time or offline convolver to provide real time or offline | |
4290 | correction. DRC doesn't provide convolution features, and provides only some | |
4291 | simplified, although really accurate, measuring tools.") | |
4292 | (license license:gpl2+))) | |
4293 | ||
e87c7ec2 AG |
4294 | (define-public bs1770gain |
4295 | (package | |
4296 | (name "bs1770gain") | |
d6af2737 | 4297 | (version "0.7.0") |
f295c083 | 4298 | (home-page "https://manpages.debian.org/sid/bs1770gain/bs1770gain.1.en.html") |
e87c7ec2 AG |
4299 | (source |
4300 | (origin | |
4301 | (method url-fetch) | |
4302 | (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/" | |
4303 | version "/bs1770gain-" version ".tar.gz")) | |
4304 | (sha256 | |
d6af2737 | 4305 | (base32 "0a2dcaxvxy5m3a5sb1lhplsymvz3ypaiidc5xn9qy01h53zvyvkp")) |
17098a49 LF |
4306 | (modules '((guix build utils))) |
4307 | (snippet | |
f295c083 | 4308 | `(begin |
17098a49 | 4309 | ;; XXX |
39c746f0 TGR |
4310 | (substitute* (find-files "." "\\.[ch]$") |
4311 | (("^ \\* N..o.*") "")) | |
a2931b14 | 4312 | (substitute* "libbg/bgx.c" |
39c746f0 TGR |
4313 | (("#define BG.* ") "#define BS ") |
4314 | (("BG.*NO?.*N.*S.*E.*N.*SE?") "NO") | |
a2931b14 TGR |
4315 | (("\"( #|N).*\"") "\"\"")) |
4316 | (substitute* (list "config.h" | |
4317 | "configure.ac" | |
4318 | "configure") | |
4319 | (("https?://bs1770gain[^/]*/") | |
f295c083 | 4320 | ,home-page)) |
2777dc75 | 4321 | #t)))) |
e87c7ec2 | 4322 | (build-system gnu-build-system) |
8394619b | 4323 | (inputs (list ffmpeg sox)) |
e87c7ec2 AG |
4324 | (synopsis "Tool to adjust loudness of media files") |
4325 | (description | |
4326 | "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its | |
4327 | flavors EBU R128, ATSC A/85, and ReplayGain 2.0. It helps normalizing the | |
4328 | loudness of audio and video files to the same level.") | |
4329 | (license license:gpl2+))) | |
eb64bde1 EE |
4330 | |
4331 | (define-public filteraudio | |
4332 | (let ((revision "1") | |
4333 | (commit "2fc669581e2a0ff87fba8de85861b49133306094")) | |
4334 | (package | |
4335 | (name "filteraudio") | |
4336 | (version (string-append "0.0.0-" revision "." | |
4337 | (string-take commit 7))) | |
4338 | (source | |
4339 | (origin | |
4340 | (method git-fetch) | |
4341 | (uri (git-reference | |
b0e7b699 | 4342 | (url "https://github.com/irungentoo/filter_audio") |
eb64bde1 EE |
4343 | (commit commit))) |
4344 | (file-name (string-append name "-" version "-checkout")) | |
4345 | (sha256 | |
4346 | (base32 | |
4347 | "0hbb290n3wb23f2k692a6bhc23nnqmxqi9sc9j15pnya8wifw64g")))) | |
4348 | (build-system gnu-build-system) | |
4349 | (arguments | |
bd3200fd EF |
4350 | `(#:make-flags (list (string-append "PREFIX=" %output) |
4351 | (string-append "CC=" ,(cc-for-target))) | |
eb64bde1 EE |
4352 | #:tests? #f ; No tests |
4353 | #:phases | |
4354 | (modify-phases %standard-phases | |
4355 | ;; No configure script | |
4356 | (delete 'configure)))) | |
4357 | (synopsis "Lightweight audio filtering library") | |
4358 | (description "An easy to use audio filtering library made from webrtc | |
4359 | code, used in @code{libtoxcore}.") | |
4360 | (home-page "https://github.com/irungentoo/filter_audio") | |
4361 | (license license:bsd-3)))) | |
9a4c032c LG |
4362 | |
4363 | (define-public gsm | |
4364 | (package | |
4365 | (name "gsm") | |
2dc229a3 | 4366 | (version "1.0.20") |
9a4c032c LG |
4367 | (source |
4368 | (origin | |
4369 | (method url-fetch) | |
4370 | (uri | |
4371 | (string-append "http://www.quut.com/" name "/" name | |
4372 | "-" version ".tar.gz")) | |
4373 | (sha256 | |
2dc229a3 | 4374 | (base32 "1gwhmqs24c14gc9qr91iqb2jkbr3qqy4dvf27yf8j7mq322w65b3")))) |
9a4c032c LG |
4375 | (build-system gnu-build-system) |
4376 | (arguments | |
4377 | `(#:test-target "tst" | |
5b05f8e9 | 4378 | #:make-flags (list (string-append "INSTALL_ROOT=" %output)) |
9a4c032c LG |
4379 | #:phases |
4380 | (modify-phases %standard-phases | |
5b05f8e9 MC |
4381 | (add-after 'unpack 'add-fpic-ccflag |
4382 | (lambda _ | |
4383 | ;; The -fPIC compiler option is needed when building | |
4384 | ;; mediastreamer. | |
4385 | (substitute* "Makefile" | |
4386 | (("^CCFLAGS.*" all) | |
2dc229a3 | 4387 | (string-append all "CCFLAGS += -fPIC\n"))))) |
9a4c032c LG |
4388 | (add-before 'install 'pre-install |
4389 | (lambda _ | |
4390 | (let ((out (assoc-ref %outputs "out"))) | |
9a4c032c LG |
4391 | (mkdir-p (string-append out "/inc")) |
4392 | (mkdir-p (string-append out "/man")) | |
4393 | (mkdir-p (string-append out "/man/man1")) | |
4394 | (mkdir-p (string-append out "/man/man3")) | |
4395 | (mkdir-p (string-append out "/bin")) | |
2dc229a3 | 4396 | (mkdir-p (string-append out "/lib"))))) |
9a4c032c LG |
4397 | (add-after 'install 'post-install |
4398 | (lambda _ | |
4399 | (let ((out (assoc-ref %outputs "out"))) | |
4400 | (rename-file (string-append out "/inc") | |
4401 | (string-append out "/include")) | |
4402 | (mkdir-p (string-append out "/include/gsm")) | |
4403 | (copy-recursively "inc" | |
2dc229a3 | 4404 | (string-append out "/include/gsm"))))) |
aabe29af | 4405 | (delete 'configure)))) ; no configure script |
9a4c032c LG |
4406 | (synopsis "GSM 06.10 lossy speech compression library") |
4407 | (description "This C library provides an encoder and a decoder for the GSM | |
4408 | 06.10 RPE-LTP lossy speech compression algorithm.") | |
4409 | (home-page "http://quut.com/gsm/") | |
4410 | (license (license:non-copyleft "file://COPYRIGHT")))) | |
84d9abe4 DM |
4411 | |
4412 | (define-public python-pyalsaaudio | |
4413 | (package | |
4414 | (name "python-pyalsaaudio") | |
4415 | (version "0.8.4") | |
4416 | (source (origin | |
4417 | (method url-fetch) | |
4418 | (uri (pypi-uri "pyalsaaudio" version)) | |
4419 | (sha256 | |
4420 | (base32 | |
4421 | "1180ypn9596rq4b7y7dyv627j1q0fqilmkkrckclnzsdakdgis44")))) | |
4422 | (build-system python-build-system) | |
4423 | (arguments | |
4424 | `(#:tests? #f)) ; tests require access to ALSA devices. | |
4425 | (inputs | |
8394619b | 4426 | (list alsa-lib)) |
5adaeb36 | 4427 | (home-page "https://larsimmisch.github.io/pyalsaaudio/") |
84d9abe4 DM |
4428 | (synopsis "ALSA wrappers for Python") |
4429 | (description | |
4430 | "This package contains wrappers for accessing the ALSA API from Python. | |
4431 | It is currently fairly complete for PCM devices, and has some support for | |
4432 | mixers.") | |
4433 | (license license:psfl))) | |
4434 | ||
c8d07c5f RW |
4435 | (define-public ldacbt |
4436 | (package | |
4437 | (name "ldacbt") | |
4438 | (version "2.0.2.3") | |
4439 | (source (origin | |
4440 | (method url-fetch) | |
4441 | (uri (string-append "https://github.com/EHfive/ldacBT" | |
4442 | "/releases/download/v" version | |
4443 | "/ldacBT-" version ".tar.gz")) | |
4444 | (sha256 | |
4445 | (base32 | |
4446 | "1d65dms4klzql29abi15i90f41h523kl6mxrz9hi6p5vg37fxn2b")))) | |
4447 | (build-system cmake-build-system) | |
4448 | (arguments `(#:tests? #f)) ; no check target | |
4449 | (home-page "https://github.com/EHfive/ldacBT/") | |
4450 | (synopsis "LDAC Bluetooth encoder and ABR library") | |
4451 | (description "This package provides an encoder for the LDAC | |
4452 | high-resolution Bluetooth audio streaming codec for streaming at up to 990 | |
4453 | kbps at 24 bit/96 kHz.") | |
4454 | (license license:asl2.0))) | |
4455 | ||
dba33ca3 RW |
4456 | (define-public bluez-alsa |
4457 | (package | |
4458 | (name "bluez-alsa") | |
a079f3eb | 4459 | (version "3.0.0") |
dba33ca3 RW |
4460 | (source (origin |
4461 | ;; The tarballs are mere snapshots and don't contain a | |
4462 | ;; bootstrapped build system. | |
4463 | (method git-fetch) | |
4464 | (uri (git-reference | |
b0e7b699 | 4465 | (url "https://github.com/Arkq/bluez-alsa") |
dba33ca3 | 4466 | (commit (string-append "v" version)))) |
9f9520a1 | 4467 | (file-name (git-file-name name version)) |
dba33ca3 RW |
4468 | (sha256 |
4469 | (base32 | |
a079f3eb | 4470 | "1jlsgxyqfhncfhx1sy3ry0dp6p95kd4agh7g2b7g51h0c4cv74h8")))) |
dba33ca3 | 4471 | (build-system gnu-build-system) |
9f9520a1 RW |
4472 | (arguments |
4473 | `(#:configure-flags | |
09b00a62 RW |
4474 | (list "--enable-ldac" |
4475 | (string-append "--with-alsaplugindir=" | |
9f9520a1 RW |
4476 | (assoc-ref %outputs "out") |
4477 | "/lib/alsa-lib") | |
4478 | (string-append "--with-dbusconfdir=" | |
4479 | (assoc-ref %outputs "out") | |
8f2e2120 | 4480 | "/etc/dbus-1/system.d")))) |
dba33ca3 | 4481 | (native-inputs |
8394619b | 4482 | (list autoconf automake libtool pkg-config)) |
dba33ca3 | 4483 | (inputs |
8394619b LC |
4484 | (list alsa-lib |
4485 | bluez | |
4486 | dbus | |
4487 | glib | |
4488 | ldacbt | |
4489 | libbsd | |
4490 | ncurses | |
4491 | ortp | |
4492 | sbc)) | |
dba33ca3 RW |
4493 | (home-page "https://github.com/Arkq/bluez-alsa") |
4494 | (synopsis "Bluetooth ALSA backend") | |
4495 | (description "This project is a rebirth of a direct integration between | |
cb22d103 | 4496 | Bluez and ALSA. Since Bluez >= 5, the built-in integration has been removed |
dba33ca3 RW |
4497 | in favor of 3rd party audio applications. From now on, Bluez acts as a |
4498 | middleware between an audio application, which implements Bluetooth audio | |
4499 | profile, and a Bluetooth audio device. BlueALSA registers all known Bluetooth | |
4500 | audio profiles in Bluez, so in theory every Bluetooth device (with audio | |
4501 | capabilities) can be connected. In order to access the audio stream, one has | |
4502 | to connect to the ALSA PCM device called @code{bluealsa}. The device is based | |
4503 | on the ALSA software PCM plugin.") | |
4504 | (license license:expat))) | |
4505 | ||
d0c8e524 SB |
4506 | (define-public snd |
4507 | (package | |
4508 | (name "snd") | |
c569aae1 | 4509 | (version "20.9") |
d0c8e524 SB |
4510 | (source (origin |
4511 | (method url-fetch) | |
4512 | (uri (string-append "ftp://ccrma-ftp.stanford.edu/pub/Lisp/" | |
4513 | "snd-" version ".tar.gz")) | |
4514 | (sha256 | |
4515 | (base32 | |
c569aae1 | 4516 | "0jxkycxn6jcbs4gklk9sk3gfr0y26dz1m71nxah9rnx80wnzj6hr")))) |
d0c8e524 SB |
4517 | (build-system glib-or-gtk-build-system) |
4518 | (arguments | |
4ae9274a | 4519 | `(#:tests? #f ; no tests |
d0c8e524 SB |
4520 | #:out-of-source? #f ; for the 'install-doc' phase |
4521 | #:configure-flags | |
4522 | (let* ((out (assoc-ref %outputs "out")) | |
94774876 TGR |
4523 | (docdir (string-append out "/share/doc/" |
4524 | ,name "-" ,version))) | |
d0c8e524 SB |
4525 | (list "--with-alsa" "--with-jack" "--with-gmp" |
4526 | (string-append "--with-doc-dir=" docdir))) | |
4527 | #:phases | |
4528 | (modify-phases %standard-phases | |
4529 | (add-after 'install 'install-doc | |
4530 | (lambda* (#:key outputs #:allow-other-keys) | |
4531 | (let* ((out (assoc-ref outputs "out")) | |
4ae9274a TGR |
4532 | (doc (string-append out "/share/doc/" |
4533 | ,name "-" ,version))) | |
d0c8e524 SB |
4534 | (for-each |
4535 | (lambda (f) | |
4ae9274a | 4536 | (install-file f doc)) |
3ef664d0 | 4537 | (find-files "." "\\.html$")) |
4ae9274a | 4538 | (copy-recursively "pix" (string-append doc "/pix")) |
d0c8e524 SB |
4539 | #t)))))) |
4540 | (native-inputs | |
8394619b | 4541 | (list pkg-config)) |
d0c8e524 | 4542 | (inputs |
8394619b LC |
4543 | (list alsa-lib |
4544 | fftw | |
4545 | flac | |
4546 | gmp | |
4547 | gsl | |
4548 | gtk+ | |
4549 | jack-1 | |
4550 | libsamplerate | |
4551 | mpc | |
4552 | mpfr | |
4553 | mpg123 | |
4554 | speex | |
4555 | timidity++ | |
4556 | vorbis-tools | |
4557 | wavpack)) | |
d0c8e524 SB |
4558 | (synopsis "Sound editor") |
4559 | (home-page "https://ccrma.stanford.edu/software/snd/") | |
4560 | (description | |
4561 | "Snd is a sound editor modelled loosely after Emacs. It can be | |
4562 | customized and extended using either the s7 Scheme implementation (included in | |
4563 | the Snd sources), Ruby, or Forth.") | |
4564 | (license (license:non-copyleft "file://COPYING")))) | |
adedbe95 | 4565 | |
cf31d5e1 RW |
4566 | (define-public noise-repellent |
4567 | (package | |
4568 | (name "noise-repellent") | |
f6c8ba31 | 4569 | (version "0.1.5") |
cf31d5e1 RW |
4570 | (source (origin |
4571 | (method git-fetch) | |
4572 | (uri (git-reference | |
b0e7b699 | 4573 | (url "https://github.com/lucianodato/noise-repellent") |
cf31d5e1 RW |
4574 | (commit version))) |
4575 | (file-name (string-append name "-" version "-checkout")) | |
4576 | (sha256 | |
4577 | (base32 | |
f6c8ba31 TGR |
4578 | "0hb89x9i2knzan46q4nwscf5zmnb2nwf4w13xl2c0y1mx1ls1mwl")))) |
4579 | (build-system meson-build-system) | |
cf31d5e1 | 4580 | (arguments |
f6c8ba31 TGR |
4581 | `(#:configure-flags |
4582 | (list (string-append "--prefix=" (assoc-ref %outputs "out") | |
4583 | "/lib/lv2")))) | |
cf31d5e1 | 4584 | (inputs |
8394619b | 4585 | (list lv2 fftwf)) |
cf31d5e1 | 4586 | (native-inputs |
8394619b | 4587 | (list pkg-config)) |
cf31d5e1 RW |
4588 | (home-page "https://github.com/lucianodato/noise-repellent") |
4589 | (synopsis "LV2 plugin for broadband noise reduction") | |
4590 | (description "Noise Repellent is an LV2 plugin to reduce noise. It has | |
4591 | the following features: | |
4592 | ||
4593 | @enumerate | |
4594 | @item Spectral gating and spectral subtraction suppression rule | |
4595 | @item Adaptive and manual noise thresholds estimation | |
4596 | @item Adjustable noise floor | |
4597 | @item Adjustable offset of thresholds to perform over-subtraction | |
4598 | @item Time smoothing and a masking estimation to reduce artifacts | |
4599 | @item Basic onset detector to avoid transients suppression | |
4600 | @item Whitening of the noise floor to mask artifacts and to recover higher | |
4601 | frequencies | |
4602 | @item Option to listen to the residual signal | |
4603 | @item Soft bypass | |
4604 | @item Noise profile saved with the session | |
4605 | @end enumerate | |
4606 | ") | |
4607 | (license license:lgpl3+))) | |
4608 | ||
4f38e0e4 RW |
4609 | (define-public lv2-speech-denoiser |
4610 | (let ((commit "04cfba929630404f8d4f4ca5bac8d9b09a99152f") | |
4611 | (revision "1")) | |
4612 | (package | |
4613 | (name "lv2-speech-denoiser") | |
4614 | (version (git-version "0" revision commit)) | |
4615 | (source | |
4616 | (origin | |
4617 | (method git-fetch) | |
4618 | (uri (git-reference | |
4619 | (url "https://github.com/lucianodato/speech-denoiser/") | |
4620 | (commit commit))) | |
4621 | (file-name (git-file-name name version)) | |
4622 | (sha256 | |
4623 | (base32 "189l6lz8sz5vr6bjyzgcsrvksl1w6crqsg0q65r94b5yjsmjnpr4")))) | |
4624 | (build-system meson-build-system) | |
4625 | (arguments | |
dfd6ca19 | 4626 | `(;; Using a "release" build is recommended for performance |
4f38e0e4 RW |
4627 | #:build-type "release" |
4628 | #:phases | |
4629 | (modify-phases %standard-phases | |
4630 | (add-after 'unpack 'patch-meson-build | |
4631 | (lambda _ | |
4632 | (substitute* "meson.build" | |
4633 | (("install_folder = 'sdenoise.lv2'") | |
4634 | "install_folder = 'lib/lv2/sdenoise.lv2'") | |
4635 | (("build/manifest.ttl") "../build/manifest.ttl")) | |
4636 | #t)) | |
4637 | (add-after 'unpack 'build-rnnoise | |
4638 | (lambda _ | |
4639 | (with-directory-excursion "rnnoise" | |
4640 | (let ((old-CFLAGS (getenv "CFLAGS"))) | |
4641 | (setenv "CFLAGS" "-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL") | |
4642 | (setenv "CONFIG_SHELL" (which "bash")) | |
4643 | (invoke "autoreconf" "-vif") | |
4644 | (invoke "sh" "configure" | |
4645 | "--disable-examples" | |
4646 | "--disable-doc" | |
4647 | "--disable-shared" | |
4648 | "--enable-static") | |
4649 | (invoke "make") | |
4650 | (setenv "CFLAGS" old-CFLAGS)))))))) | |
4651 | (inputs | |
8394619b | 4652 | (list lv2)) |
4f38e0e4 | 4653 | (native-inputs |
8394619b | 4654 | (list autoconf automake libtool pkg-config)) |
4f38e0e4 RW |
4655 | (home-page "https://github.com/werman/noise-suppression-for-voice") |
4656 | (synopsis "Speech denoise LV2 plugin based on Xiph's RNNoise library") | |
4657 | (description "RNNoise is a library that uses deep learning to apply | |
7699bbb3 | 4658 | noise suppression to audio sources with voice presence. This package provides |
4f38e0e4 RW |
4659 | an LV2 audio plugin.") |
4660 | (license license:lgpl3+)))) | |
4661 | ||
adedbe95 OP |
4662 | (define-public cli-visualizer |
4663 | (package | |
4664 | (name "cli-visualizer") | |
e121cb87 | 4665 | (version "1.8") |
adedbe95 OP |
4666 | (source |
4667 | (origin | |
c2a2d364 RW |
4668 | (method git-fetch) |
4669 | (uri (git-reference | |
b0e7b699 | 4670 | (url "https://github.com/dpayne/cli-visualizer") |
e121cb87 | 4671 | (commit (string-append "v" version)))) |
c2a2d364 | 4672 | (file-name (git-file-name name version)) |
adedbe95 | 4673 | (sha256 |
e121cb87 TGR |
4674 | (base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2")))) |
4675 | (build-system cmake-build-system) | |
adedbe95 | 4676 | (native-inputs |
e121cb87 | 4677 | ;; TODO: Try using the latest googletest for versions > 1.8. |
8394619b LC |
4678 | (list ;; ("googletest" ,googletest-1.8) |
4679 | which)) | |
adedbe95 | 4680 | (inputs |
8394619b | 4681 | (list fftw ncurses pulseaudio)) |
adedbe95 | 4682 | (arguments |
e121cb87 TGR |
4683 | '(#:tests? #f |
4684 | ;; XXX Enable tests after patching them to use the system googletest. | |
4685 | ;; #:configure-flags (list "-DVIS_WITH_TESTS=true") | |
adedbe95 OP |
4686 | #:phases |
4687 | (modify-phases %standard-phases | |
e121cb87 TGR |
4688 | (add-after 'install 'install-examples |
4689 | (lambda* (#:key outputs #:allow-other-keys) | |
4690 | (with-directory-excursion "../source/examples" | |
4691 | (delete-file "mac_osx_config") | |
4692 | (for-each (lambda (file) | |
4693 | (install-file file | |
4694 | (string-append | |
4695 | (assoc-ref outputs "out") | |
4696 | "/share/doc"))) | |
4697 | (find-files "."))) | |
adedbe95 OP |
4698 | #t))))) |
4699 | (home-page "https://github.com/dpayne/cli-visualizer/") | |
4700 | (synopsis "Command-line audio visualizer") | |
4701 | (description "@code{cli-visualizer} displays fast-Fourier | |
4702 | transforms (FFTs) of the sound being played, as well as other graphical | |
4703 | representations.") | |
4704 | (license license:expat))) | |
c2c0d661 OP |
4705 | |
4706 | (define-public cava | |
4707 | (package | |
4708 | (name "cava") | |
ba31fbb1 | 4709 | (version "0.7.4") |
c2c0d661 | 4710 | (source (origin |
a7fde1a8 RW |
4711 | (method git-fetch) |
4712 | (uri (git-reference | |
b0e7b699 | 4713 | (url "https://github.com/karlstav/cava") |
a7fde1a8 RW |
4714 | (commit version))) |
4715 | (file-name (git-file-name name version)) | |
c2c0d661 OP |
4716 | (sha256 |
4717 | (base32 | |
27fc4ae3 DM |
4718 | "1mziklmqifhnb4kg9ia2r56r8wjn6xp40bkpf484hsgqvnrccl86")) |
4719 | (modules '((guix build utils))) | |
4720 | (snippet | |
4721 | #~(begin | |
4722 | (delete-file-recursively "iniparser") | |
4723 | (substitute* "configure.ac" | |
4724 | (("AC_CONFIG_FILES\\(iniparser/Makefile\\)") "")) | |
4725 | (substitute* "Makefile.am" | |
4726 | (("SUBDIRS = iniparser") "")))))) | |
c2c0d661 | 4727 | (build-system gnu-build-system) |
de4e4506 | 4728 | (native-inputs (list autoconf automake libtool)) |
27fc4ae3 | 4729 | (inputs (list fftw ncurses pulseaudio iniparser)) |
c2c0d661 | 4730 | (arguments |
de4e4506 DM |
4731 | (list #:configure-flags |
4732 | #~(list (string-append "PREFIX=" | |
4733 | #$output) | |
4734 | (string-append "FONT_DIR=" | |
4735 | #$output "/share/consolefonts")) | |
4736 | #:make-flags | |
4737 | #~(let ((lib (string-append #$output "/lib"))) | |
27fc4ae3 | 4738 | (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib " -lrt"))) |
de4e4506 DM |
4739 | #:phases |
4740 | #~(modify-phases %standard-phases | |
4741 | (replace 'bootstrap | |
4742 | (lambda _ | |
4743 | (setenv "HOME" | |
4744 | (getcwd)) | |
4745 | (invoke "sh" "autogen.sh"))) | |
4746 | (add-before 'build 'make-cava-ldflags | |
4747 | (lambda _ | |
4748 | (mkdir-p (string-append #$output "/lib")))) | |
4749 | (add-after 'install 'data | |
4750 | (lambda _ | |
4751 | (for-each (lambda (file) | |
4752 | (install-file file | |
4753 | (string-append #$output | |
4754 | "/share/doc/examples"))) | |
4755 | (find-files "example_files"))))))) | |
c2c0d661 OP |
4756 | (home-page "https://karlstav.github.io/cava/") |
4757 | (synopsis "Console audio visualizer for ALSA, MPD, and PulseAudio") | |
4758 | (description "C.A.V.A. is a bar audio spectrum visualizer for the terminal | |
4759 | using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.") | |
4760 | (license license:expat))) | |
9073c875 | 4761 | |
4762 | (define-public fluid-3 | |
4763 | (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951")) | |
4764 | (package | |
4765 | (name "fluid-3") | |
4766 | (version "2.1") | |
4767 | (source | |
4768 | (origin | |
4769 | (method url-fetch) | |
4770 | ;; Only one file is required, but the release bundles the whole | |
4771 | ;; software which is 50MiB as tar and 200MiB unpacked. The website | |
4772 | ;; directly links the soundfont release to the github file download. | |
4773 | (uri (string-append "https://github.com/musescore/MuseScore/raw/" | |
4774 | commit "/share/sound/FluidR3Mono_GM.sf3")) | |
4775 | (file-name (string-append name "-" version ".sf3")) | |
4776 | (sha256 | |
4777 | (base32 | |
4778 | "1hjfg5i15bw9279007xs92zsggjgn4s4k9pc00s851l3kvc6dkfg")))) | |
4779 | (build-system trivial-build-system) | |
4780 | (arguments | |
4781 | `(#:modules ((guix build utils)) | |
4782 | #:builder | |
4783 | (begin | |
4784 | (use-modules (guix build utils)) | |
4785 | (let ((file (assoc-ref %build-inputs "source")) | |
4786 | (out (string-append %output "/share/soundfonts"))) | |
4787 | (mkdir-p out) | |
e3cfef22 MW |
4788 | (copy-file file (string-append out "/FluidR3Mono_GM.sf3")) |
4789 | #t)))) | |
9073c875 | 4790 | (home-page "https://github.com/musescore/MuseScore/tree/master/share/sound") |
4791 | (synopsis "Pro-quality GM soundfont") | |
4792 | (description "Fluid-3 is Frank Wen's pro-quality GM soundfont.") | |
4793 | (license license:expat)))) | |
5c40a69f LF |
4794 | |
4795 | (define-public libfdk | |
b8930fd8 LF |
4796 | (package |
4797 | (name "libfdk") | |
4798 | (version "2.0.1") | |
4799 | (source | |
4800 | (origin | |
4801 | (method git-fetch) | |
4802 | (uri (git-reference | |
4803 | (url "https://github.com/mstorsjo/fdk-aac") | |
4804 | (commit (string-append "v" version)))) | |
4805 | (file-name (git-file-name name version)) | |
4806 | (sha256 | |
4807 | (base32 | |
4808 | "1fkrnzs78fmj11n9z3l0w53i2fl16jcfiyavwidck9bzmkmsf486")))) | |
4809 | (build-system gnu-build-system) | |
4810 | (native-inputs | |
8394619b | 4811 | (list autoconf automake libtool)) |
b8930fd8 LF |
4812 | (home-page "https://github.com/mstorsjo/fdk-aac") |
4813 | (synopsis "Fraunhofer FDK AAC library") | |
4814 | (description "FDK is a library for encoding and decoding Advanced Audio | |
5c40a69f LF |
4815 | Coding (AAC) format audio, developed by Fraunhofer IIS, and included as part of |
4816 | Android. It supports several Audio Object Types including MPEG-2 and MPEG-4 AAC | |
4817 | LC, HE-AAC (AAC LC + SBR), HE-AACv2 (LC + SBR + PS) as well AAC-LD (low delay) | |
4818 | and AAC-ELD (enhanced low delay) for real-time communication. The encoding | |
4819 | library supports sample rates up to 96 kHz and up to eight channels (7.1 | |
b8930fd8 LF |
4820 | surround).") |
4821 | (license (license:fsf-free "https://github.com/mstorsjo/fdk-aac/blob/master/NOTICE" | |
4822 | "https://www.gnu.org/licenses/license-list.html#fdk")))) | |
ef8517f2 EB |
4823 | |
4824 | (define-public libopenshot-audio | |
4825 | (package | |
4826 | (name "libopenshot-audio") | |
c4ca2e95 | 4827 | (version "0.2.2") |
ef8517f2 EB |
4828 | (source (origin |
4829 | (method git-fetch) | |
4830 | (uri (git-reference | |
4831 | (url "https://github.com/OpenShot/libopenshot-audio") | |
4832 | (commit (string-append "v" version)))) | |
4833 | (file-name (git-file-name name version)) | |
4834 | (sha256 | |
4835 | (base32 | |
c4ca2e95 | 4836 | "03dygh85riljk7dpn5a5a0d22a2kz45fs13gzwqgnbzzr1k17p2y")))) |
ef8517f2 EB |
4837 | (build-system cmake-build-system) |
4838 | (inputs | |
8394619b LC |
4839 | (list alsa-lib |
4840 | ;; The following are for JUCE GUI components: | |
4841 | libx11 | |
4842 | freetype | |
4843 | libxrandr | |
4844 | libxinerama | |
4845 | libxcursor)) | |
ef8517f2 EB |
4846 | (arguments |
4847 | `(#:tests? #f ;there are no tests | |
4848 | #:configure-flags | |
4849 | (list (string-append "-DCMAKE_CXX_FLAGS=-I" | |
4850 | (assoc-ref %build-inputs "freetype") | |
4851 | "/include/freetype2")))) | |
4852 | (home-page "https://openshot.org") | |
4853 | (synopsis "Audio editing and playback for OpenShot") | |
4854 | (description "OpenShot Audio Library (libopenshot-audio) allows | |
4855 | high-quality editing and playback of audio, and is based on the JUCE | |
4856 | library.") | |
4857 | (license license:lgpl3+))) | |
ea3510f8 RH |
4858 | |
4859 | (define-public faudio | |
4860 | (package | |
4861 | (name "faudio") | |
61118aed | 4862 | (version "21.10") |
ea3510f8 RH |
4863 | (source |
4864 | (origin | |
4865 | (method git-fetch) | |
4866 | (uri (git-reference | |
b0e7b699 | 4867 | (url "https://github.com/FNA-XNA/FAudio") |
ea3510f8 | 4868 | (commit version))) |
543f7ad1 | 4869 | (file-name (git-file-name name version)) |
ea3510f8 | 4870 | (sha256 |
61118aed | 4871 | (base32 "0l9bicg8v1shsyq9k48zh4wv5kwfs6lfjmm9blzd13xrgmhd07w2")))) |
ea3510f8 RH |
4872 | (arguments |
4873 | '(#:tests? #f ; No tests. | |
12158b83 | 4874 | #:configure-flags '("-DGSTREAMER=ON"))) |
ea3510f8 | 4875 | (build-system cmake-build-system) |
8394619b LC |
4876 | (native-inputs (list pkg-config)) |
4877 | (inputs (list gstreamer gst-plugins-base sdl2)) | |
ea3510f8 RH |
4878 | (home-page "https://github.com/FNA-XNA/FAudio") |
4879 | (synopsis "XAudio reimplementation") | |
4880 | (description "FAudio is an XAudio reimplementation that focuses solely on | |
4881 | developing fully accurate DirectX Audio runtime libraries.") | |
12158b83 TGR |
4882 | (license |
4883 | (list license:zlib | |
4884 | ;; stb & utils/{ui,wav}common are dual-licenced under either of: | |
4885 | license:expat | |
4886 | license:public-domain)))) | |
e13714b6 AI |
4887 | |
4888 | (define-public gnaural | |
4889 | (package | |
4890 | (name "gnaural") | |
4891 | (version "20110606") | |
4892 | (source | |
4893 | (origin | |
4894 | (method url-fetch) | |
4895 | (uri (string-append "mirror://sourceforge/gnaural/Gnaural/gnaural_" | |
4896 | version ".tar.xz")) | |
4897 | (sha256 | |
4898 | (base32 | |
4899 | "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi")))) | |
4900 | (build-system gnu-build-system) | |
4901 | (inputs | |
8394619b | 4902 | (list alsa-lib gtk+-2 libsndfile portaudio)) |
e13714b6 | 4903 | (native-inputs |
8394619b | 4904 | (list pkg-config)) |
e13714b6 AI |
4905 | (home-page "http://gnaural.sourceforge.net/") |
4906 | (synopsis "Binaural beat synthesizer") | |
4907 | (description "Gnaural is a programmable auditory binaural beat synthesizer | |
4908 | intended to be used for brainwave entrainment. Gnaural supports creation of | |
4909 | binaural beat tracks of different frequencies and exporting of tracks into | |
4910 | different audio formats. Gnaural can also be linked over the internet with | |
4911 | other Gnaural instances, allowing synchronous sessions between many users.") | |
4912 | (license license:gpl2+))) | |
2f4698d7 MW |
4913 | |
4914 | (define-public darkice | |
4915 | (package | |
4916 | (name "darkice") | |
c827c52a | 4917 | (version "1.4") |
2f4698d7 MW |
4918 | (source (origin |
4919 | (method url-fetch) | |
c827c52a LF |
4920 | (uri (string-append "https://github.com/rafael2k/darkice/releases/" |
4921 | "download/v" version "/darkice-" | |
4922 | version ".tar.gz")) | |
2f4698d7 | 4923 | (sha256 |
c827c52a LF |
4924 | (base32 |
4925 | "05yq7lggxygrkd76yiqby3msrgdn082p0qlvmzzv9xbw8hmyra76")))) | |
2f4698d7 | 4926 | (build-system gnu-build-system) |
8394619b LC |
4927 | (native-inputs (list pkg-config)) |
4928 | (inputs (list lame | |
4929 | libvorbis | |
4930 | opus | |
4931 | twolame | |
4932 | alsa-lib | |
4933 | pulseaudio | |
4934 | jack-1 | |
4935 | libsamplerate)) | |
2f4698d7 MW |
4936 | (arguments |
4937 | `(#:configure-flags | |
4938 | (list (string-append "--with-lame-prefix=" | |
4939 | (assoc-ref %build-inputs "lame"))))) | |
4940 | (home-page "http://www.darkice.org/") | |
4941 | (synopsis "Live audio streamer") | |
4942 | (description "DarkIce is a live audio streamer. It takes audio input from | |
4943 | a sound card, encodes it into Ogg Vorbis and/or mp3, and sends the audio | |
4944 | stream to one or more IceCast and/or ShoutCast servers.") | |
4945 | (license license:gpl3+))) | |
0f2ce448 AT |
4946 | |
4947 | (define-public libltc | |
4948 | (package | |
4949 | (name "libltc") | |
4950 | (version "1.3.1") | |
4951 | (source | |
4952 | (origin | |
4953 | (method url-fetch) | |
4954 | (uri | |
4955 | (string-append "https://github.com/x42/libltc/releases/download/v" | |
4956 | version "/libltc-" version ".tar.gz")) | |
4957 | (sha256 | |
4958 | (base32 | |
4959 | "173h9dgmain3nyrwk6q2d7yl4fnh4vacag4s2p01n5b7nyrkxrjh")))) | |
4960 | (build-system gnu-build-system) | |
4961 | (arguments | |
4962 | `(#:parallel-tests? #f)) ;tests fail otherwise | |
4963 | (native-inputs | |
8394619b | 4964 | (list doxygen pkg-config)) |
0f2ce448 AT |
4965 | (synopsis "Encode or decode Linear/Longitudinal Time Code (LTC) audio") |
4966 | (description "Libltc is a POSIX-C Library for handling | |
4967 | @dfn{Linear/Longitudinal Time Code} (LTC) data.") | |
4968 | (home-page "https://x42.github.io/libltc/") | |
4969 | (license license:lgpl3+))) | |
74f9a8fb | 4970 | |
8aca4f69 AT |
4971 | (define-public ttaenc |
4972 | (package | |
4973 | (name "ttaenc") | |
4974 | (version "3.4.1") | |
4975 | (source | |
4976 | (origin | |
4977 | (method url-fetch) | |
4978 | (uri (string-append "mirror://sourceforge/tta/" | |
4979 | "tta/ttaenc-src" | |
4980 | "/ttaenc-" version "-src.tgz")) | |
4981 | (sha256 | |
4982 | (base32 | |
4983 | "1iixpr4b89g9g1hwn8ak8k8iflcww3r5f09a117qdidc2nqcijdj")))) | |
4984 | (build-system gnu-build-system) | |
4985 | (arguments | |
4986 | `(#:tests? #f ;no tests | |
4987 | #:make-flags | |
4988 | (list (string-append "CC=" ,(cc-for-target)) | |
4989 | (string-append "INSDIR=" (assoc-ref %outputs "out") "/bin")) | |
4990 | #:phases | |
4991 | (modify-phases %standard-phases | |
4992 | (delete 'configure) ; no configure | |
4993 | (add-before 'install 'make-bindir | |
4994 | (lambda* (#:key outputs #:allow-other-keys) | |
4995 | (let* ((out (assoc-ref outputs "out"))) | |
4996 | (mkdir-p (string-append out "/bin")) | |
4997 | #t)))))) | |
4998 | (synopsis "TTA lossless audio encoder") | |
4999 | (description | |
5000 | "TTA performs lossless compression on multichannel 8,16 and 24 bits | |
5001 | data of the Wav audio files. Being lossless means that no data- | |
5002 | quality is lost in the compression - when uncompressed, the data will | |
5003 | be identical to the original. The compression ratios of TTA depend on | |
5004 | the type of music file being compressed, but the compression size | |
5005 | will generally range between 30% - 70% of the original. TTA format | |
5006 | supports both of ID3v1/v2 and APEv2 tags.") | |
5007 | (home-page "http://tausoft.org/") | |
5008 | (license license:gpl2+))) | |
5009 | ||
bea98f9a AT |
5010 | (define-public libsoundio |
5011 | (package | |
66c83960 MO |
5012 | (name "libsoundio") |
5013 | (version "2.0.0") | |
5014 | (source | |
bea98f9a AT |
5015 | (origin |
5016 | (method git-fetch) | |
5017 | (uri (git-reference | |
66c83960 MO |
5018 | (url "https://github.com/andrewrk/libsoundio") |
5019 | (commit version))) | |
bea98f9a AT |
5020 | (file-name (git-file-name name version)) |
5021 | (sha256 | |
66c83960 MO |
5022 | (base32 |
5023 | "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x")))) | |
5024 | (build-system cmake-build-system) | |
5025 | (arguments | |
5026 | `(#:tests? #f)) ;no tests included | |
5027 | (inputs | |
8394619b | 5028 | (list alsa-lib jack-1 pulseaudio)) |
66c83960 | 5029 | (native-inputs |
8394619b | 5030 | (list pkg-config)) |
66c83960 MO |
5031 | (home-page "http://libsound.io") |
5032 | (synopsis "C library for real-time audio input and output") | |
5033 | (description "@code{libsoundio} is a C library providing audio input and | |
5034 | output. The API is suitable for real-time software such as digital audio | |
5035 | workstations as well as consumer software such as music players.") | |
5036 | (license license:expat))) | |
bea98f9a | 5037 | |
74f9a8fb AT |
5038 | (define-public redkite |
5039 | (package | |
5040 | (name "redkite") | |
e46e144b | 5041 | (version "1.3.1") ;marked unmaintained as of Oct. 2021 |
74f9a8fb AT |
5042 | (source |
5043 | (origin | |
83ba0e42 MB |
5044 | (method git-fetch) |
5045 | (uri (git-reference | |
4ddcd0e2 | 5046 | (url "https://github.com/free-sm/redkite") |
83ba0e42 MB |
5047 | (commit (string-append "v" version)))) |
5048 | (file-name (git-file-name name version)) | |
74f9a8fb | 5049 | (sha256 |
e46e144b | 5050 | (base32 "1zb2k2a4m7z2ravqrjn8fq8lic20wbr2m8kja3p3113jsk7j9zvd")))) |
74f9a8fb AT |
5051 | (build-system cmake-build-system) |
5052 | (arguments | |
5053 | `(#:tests? #f)) ;no tests included | |
3fc49dae | 5054 | (propagated-inputs |
8394619b | 5055 | (list cairo)) |
74f9a8fb | 5056 | (native-inputs |
8394619b | 5057 | (list pkg-config)) |
74f9a8fb AT |
5058 | (synopsis "Small GUI toolkit") |
5059 | (description "Redkite is a small GUI toolkit developed in C++17 and | |
5060 | inspired from other well known GUI toolkits such as Qt and GTK. It is | |
5061 | minimal on purpose and is intended to be statically linked to applications, | |
5062 | therefore satisfying any requirements they may have to be self contained, | |
5063 | as is the case with audio plugins.") | |
5064 | (home-page "https://gitlab.com/geontime/redkite") | |
5065 | (license license:gpl3+))) | |
caa1f6a8 AT |
5066 | |
5067 | (define-public carla | |
5068 | (package | |
5069 | (name "carla") | |
c11c1080 | 5070 | (version "2.4.1") |
caa1f6a8 AT |
5071 | (source |
5072 | (origin | |
5073 | (method git-fetch) | |
5074 | (uri | |
5075 | (git-reference | |
b0e7b699 | 5076 | (url "https://github.com/falkTX/Carla") |
caa1f6a8 AT |
5077 | (commit (string-append "v" version)))) |
5078 | (file-name (git-file-name name version)) | |
5079 | (sha256 | |
c11c1080 | 5080 | (base32 "01ngkmfcxyg1bb4qmfvlkkjbx4lx62akxqhizl8zmqnhfcy4p9bx")))) |
caa1f6a8 AT |
5081 | (build-system gnu-build-system) |
5082 | (arguments | |
acfc0fea TGR |
5083 | (list #:tests? #f ; no "check" target |
5084 | #:make-flags | |
5085 | #~(list (string-append "PREFIX=" #$output)) | |
5086 | #:phases | |
5087 | #~(modify-phases %standard-phases | |
5088 | (delete 'configure) ; no configure script | |
5089 | (add-before 'build 'set-CC-variable-and-show-features | |
5090 | (lambda _ | |
a9c295c4 | 5091 | (setenv "CC" #$(cc-for-target)) |
acfc0fea TGR |
5092 | (invoke "make" "features"))) |
5093 | (add-after 'install 'make-carla-executable | |
5094 | (lambda _ | |
5095 | (chmod (string-append #$output "/share/carla/carla") #o555))) | |
5096 | (add-after 'install 'wrap-executables | |
5097 | (lambda* (#:key inputs #:allow-other-keys) | |
5098 | (wrap-script (string-append #$output "/bin/carla") | |
5099 | #:guile (search-input-file inputs "bin/guile") | |
5100 | `("GUIX_PYTHONPATH" ":" prefix | |
5101 | (,(getenv "GUIX_PYTHONPATH"))))))))) | |
caa1f6a8 | 5102 | (inputs |
eb1eac47 TGR |
5103 | (list alsa-lib |
5104 | ffmpeg | |
5105 | fluidsynth | |
5106 | file | |
5107 | liblo | |
5108 | libsndfile | |
5109 | libx11 | |
5110 | gtk+-2 ;needed for bridging GTK2 plugins in GTK3 hosts | |
5111 | gtk+ | |
5112 | python-pyliblo | |
5113 | python-pyqt | |
5114 | python-rdflib | |
5115 | ;; python-pyqt shows the following error without python-wrapper: | |
5116 | ;; Error while finding module specification for 'PyQt5.uic.pyuic' | |
5117 | ;; (ModuleNotFoundError: No module named 'PyQt5') | |
5118 | python-wrapper | |
5119 | qtbase-5 | |
5120 | zlib | |
5121 | ||
5122 | ;; For WRAP-SCRIPT above. | |
5123 | guile-2.2)) | |
caa1f6a8 | 5124 | (native-inputs |
8394619b | 5125 | (list pkg-config)) |
caa1f6a8 AT |
5126 | (home-page "https://kx.studio/Applications:Carla") |
5127 | (synopsis "Audio plugin host") | |
5128 | (description "Carla is a modular audio plugin host, with features like | |
5129 | transport control, automation of parameters via MIDI CC and remote control | |
5130 | over OSC. Carla currently supports LADSPA (including LRDF), DSSI, LV2, VST2, | |
5131 | and VST3 plugin formats, plus SF2 and SFZ file support. It uses JACK as the | |
5132 | default and preferred audio driver but also supports native drivers like ALSA.") | |
5133 | (license license:gpl2+))) | |
615a4fbf CLW |
5134 | |
5135 | (define-public ecasound | |
5136 | (package | |
5137 | (name "ecasound") | |
ec67d069 | 5138 | (version "2.9.3") |
615a4fbf CLW |
5139 | (source (origin |
5140 | (method url-fetch) | |
694c2976 | 5141 | (uri (string-append "https://nosignal.fi/download/ecasound-" |
615a4fbf CLW |
5142 | version ".tar.gz")) |
5143 | (sha256 | |
ec67d069 | 5144 | (base32 "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6")))) |
615a4fbf | 5145 | (build-system gnu-build-system) |
8394619b | 5146 | (native-inputs (list pkg-config)) |
ec67d069 TGR |
5147 | ;; It would be nice to add mikmod to inputs if that gets packaged |
5148 | ;; eventually. | |
8394619b LC |
5149 | (inputs (list alsa-lib |
5150 | jack-1 | |
5151 | mpg123 | |
5152 | lame | |
5153 | vorbis-tools | |
5154 | faad2 | |
5155 | flac | |
5156 | timidity++ | |
5157 | libsndfile | |
5158 | libsamplerate | |
5159 | ncurses | |
5160 | ladspa | |
5161 | lilv)) | |
694c2976 | 5162 | (home-page "https://nosignal.fi/ecasound/index.php") |
615a4fbf CLW |
5163 | (synopsis "Multitrack audio processing") |
5164 | (description "Ecasound is a software package designed for multitrack audio | |
5165 | processing. It can be used for simple tasks like audio playback, recording and | |
5166 | format conversions, as well as for multitrack effect processing, mixing, | |
5167 | recording and signal recycling. Ecasound supports a wide range of audio inputs, | |
5168 | outputs and effect algorithms. Effects and audio objects can be combined in | |
5169 | various ways, and their parameters can be controlled by operator objects like | |
5170 | oscillators and MIDI-CCs. A versatile console mode user-interface is included | |
5171 | in the package.") | |
d83bb797 JW |
5172 | ;; As an exception to the above, the C, C++ and python implementations |
5173 | ;; of the Ecasound Control Interface (ECI) are licensed under the LGPL | |
5174 | ;; (see the file 'COPYING.LGPL'). This allows writing ECI applications | |
615a4fbf CLW |
5175 | ;; that are not licensed under GPL. |
5176 | (license (list license:gpl2 license:lgpl2.1)))) | |
5d703da3 AT |
5177 | |
5178 | (define-public libaudec | |
5179 | (package | |
5180 | (name "libaudec") | |
4c76af04 | 5181 | (version "0.2.4") |
5d703da3 AT |
5182 | (source |
5183 | (origin | |
5184 | (method git-fetch) | |
5185 | (uri (git-reference | |
4831f4e8 | 5186 | (url "https://git.zrythm.org/zrythm/libaudec") |
5d703da3 AT |
5187 | (commit (string-append "v" version)))) |
5188 | (file-name (git-file-name name version)) | |
5189 | (sha256 | |
5190 | (base32 | |
4c76af04 | 5191 | "1570m2dfia17dbkhd2qhx8jjihrpm7g8nnyg6n4wif4vv229s7dz")))) |
5d703da3 AT |
5192 | (build-system meson-build-system) |
5193 | (arguments | |
dfd6ca19 | 5194 | `(#:configure-flags |
4c76af04 TGR |
5195 | ;; Build the tests. |
5196 | `("-Dtests=true"))) | |
5d703da3 | 5197 | (inputs |
8394619b | 5198 | (list libsamplerate libsndfile)) |
5d703da3 | 5199 | (native-inputs |
8394619b | 5200 | (list pkg-config)) |
5d703da3 AT |
5201 | (synopsis "Library for reading and resampling audio files") |
5202 | (description "libaudec is a wrapper library over ffmpeg, sndfile and | |
5203 | libsamplerate for reading and resampling audio files, based on Robin Gareus' | |
5204 | @code{audio_decoder} code.") | |
4831f4e8 | 5205 | (home-page "https://git.zrythm.org/zrythm/libaudec") |
5d703da3 | 5206 | (license license:agpl3+))) |
70d9ef51 AT |
5207 | |
5208 | (define-public lv2lint | |
5209 | (package | |
5210 | (name "lv2lint") | |
b02e52f6 | 5211 | (version "0.8.0") |
70d9ef51 AT |
5212 | (source |
5213 | (origin | |
5214 | (method git-fetch) | |
5215 | (uri (git-reference | |
5216 | (url "https://git.open-music-kontrollers.ch/lv2/lv2lint") | |
5217 | (commit version))) | |
5218 | (file-name (git-file-name name version)) | |
5219 | (sha256 | |
5220 | (base32 | |
b02e52f6 | 5221 | "1jrka0hsn4n1clri7zfkcl3c2vi52144lkpjm81l51ff8rqy8ks1")))) |
70d9ef51 AT |
5222 | (build-system meson-build-system) |
5223 | (arguments | |
5224 | `(#:configure-flags | |
5225 | `("-Delf-tests=true" ; for checking symbol visibility | |
5226 | "-Donline-tests=true"))) ; for checking URI existence | |
5227 | (inputs | |
8394619b | 5228 | (list curl libelf lilv)) |
70d9ef51 | 5229 | (native-inputs |
8394619b | 5230 | (list pkg-config)) |
70d9ef51 AT |
5231 | (synopsis "LV2 plugin lint tool") |
5232 | (description "lv2lint is an LV2 lint-like tool that checks whether a | |
5233 | given plugin and its UI(s) match up with the provided metadata and adhere | |
5234 | to well-known best practices.") | |
5235 | (home-page "https://open-music-kontrollers.ch/lv2/lv2lint/") | |
5236 | (license license:artistic2.0))) | |
670da398 AT |
5237 | |
5238 | (define-public lv2toweb | |
5239 | (package | |
5240 | (name "lv2toweb") | |
5241 | (version "0.4") | |
5242 | (source | |
5243 | (origin | |
5244 | (method git-fetch) | |
5245 | (uri (git-reference | |
5246 | (url "https://github.com/x42/lv2toweb") | |
5247 | (commit (string-append "v" version)))) | |
5248 | (file-name (git-file-name name version)) | |
5249 | (sha256 | |
5250 | (base32 | |
5251 | "007aysqvgkf25za8nkmyd5g9kp1zla460dcpidlj5xg1zc3fcdfi")))) | |
5252 | (build-system gnu-build-system) | |
5253 | (arguments | |
5254 | `(#:tests? #f ; no "check" target | |
5255 | #:make-flags (list "CC=gcc" | |
5256 | (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
5257 | #:phases | |
5258 | (modify-phases %standard-phases | |
5259 | (delete 'configure)))) | |
5260 | (inputs | |
8394619b | 5261 | (list jalv lilv)) |
670da398 | 5262 | (native-inputs |
8394619b | 5263 | (list help2man pkg-config)) |
670da398 AT |
5264 | (synopsis "Documentation generator for LV2 plugins") |
5265 | (description | |
5266 | "lv2toweb allows the user to create an xhtml page with information | |
5267 | about the given LV2 plugin, provided that the plugin and its UI(s) match up | |
5268 | with the provided metadata and adhere to well-known best practices.") | |
5269 | (home-page "https://github.com/x42/lv2toweb") | |
5270 | (license (list license:isc license:gpl2)))) | |
2f4faccc AT |
5271 | |
5272 | (define-public ztoolkit | |
5273 | (package | |
5274 | (name "ztoolkit") | |
5275 | (version "0.1.1") | |
5276 | (source | |
5277 | (origin | |
5278 | (method git-fetch) | |
5279 | (uri (git-reference | |
4831f4e8 | 5280 | (url "https://git.zrythm.org/zrythm/ztoolkit") |
2f4faccc AT |
5281 | (commit (string-append "v" version)))) |
5282 | (file-name (git-file-name name version)) | |
5283 | (sha256 | |
5284 | (base32 | |
5285 | "07xl3cmdaf7k9mm58m93cn8i1jvgimmiifdw1w7v2jl88nx60pm1")))) | |
5286 | (build-system meson-build-system) | |
2f4faccc | 5287 | (native-inputs |
8394619b | 5288 | (list pkg-config)) |
4bce3a06 AT |
5289 | ;; These are listed as propagated inputs because they are dependencies |
5290 | ;; in pkgconfig. | |
5291 | (propagated-inputs | |
8394619b | 5292 | (list cairo libx11)) |
2f4faccc AT |
5293 | (synopsis "GUI toolkit for LV2 plugins") |
5294 | (description "ZToolkit (Ztk) is a cross-platform GUI toolkit heavily | |
5295 | inspired by GTK. It handles events and low level drawing on behalf of | |
5296 | the user and provides a high-level API for managing the UI and custom | |
5297 | widgets. ZToolkit is written in C and was created to be used for building | |
5298 | audio plugin UIs, where the dependencies often need to be kept to a | |
5299 | minimum.") | |
4831f4e8 | 5300 | (home-page "https://git.zrythm.org/zrythm/ztoolkit") |
2f4faccc | 5301 | (license license:agpl3+))) |
360ebe50 | 5302 | |
d474052b VM |
5303 | (define-public libinstpatch |
5304 | (package | |
5305 | (name "libinstpatch") | |
846a6aad | 5306 | (version "1.1.6") |
d474052b VM |
5307 | (source |
5308 | (origin | |
5309 | (method git-fetch) | |
5310 | (uri (git-reference | |
5311 | (url "https://github.com/swami/libinstpatch") | |
5312 | (commit (string-append "v" version)))) | |
5313 | (file-name (git-file-name name version)) | |
5314 | (sha256 | |
846a6aad | 5315 | (base32 "1w3nk0vvd1cxic70n45zjip0bdsrja969myvyvkhq3ngbarbykir")))) |
d474052b VM |
5316 | (build-system cmake-build-system) |
5317 | (arguments | |
5318 | `(#:tests? #f)) ;there are no tests | |
5319 | (native-inputs | |
5320 | `(("glib:bin" ,glib "bin") | |
5321 | ("pkg-config" ,pkg-config))) | |
5322 | (inputs | |
8394619b | 5323 | (list glib libsndfile)) |
d474052b VM |
5324 | (home-page "http://www.swamiproject.org/") |
5325 | (synopsis "Instrument file software library") | |
5326 | (description | |
5327 | "libInstPatch is a library for processing digital sample based MIDI | |
5328 | instrument \"patch\" files. The types of files libInstPatch supports are used | |
5329 | for creating instrument sounds for wavetable synthesis. libInstPatch provides | |
5330 | an object framework (based on GObject) to load patch files, which can then be | |
5331 | edited, converted, compressed and saved.") | |
5332 | (license license:lgpl2.1))) | |
5333 | ||
360ebe50 | 5334 | (define-public ztoolkit-rsvg |
1a265842 | 5335 | (package/inherit ztoolkit |
360ebe50 AT |
5336 | (name "ztoolkit-rsvg") |
5337 | (arguments | |
5338 | `(#:configure-flags `("-Denable_rsvg=true"))) | |
60a5071f | 5339 | (propagated-inputs |
360ebe50 | 5340 | `(("librsvg" ,librsvg) |
60a5071f | 5341 | ,@(package-propagated-inputs ztoolkit))) |
360ebe50 | 5342 | (synopsis "ZToolkit with SVG support"))) |
7cd2609e | 5343 | |
913faed8 AT |
5344 | (define-public lsp-dsp-lib |
5345 | (package | |
5346 | (name "lsp-dsp-lib") | |
1e36a6ad | 5347 | (version "0.5.14") |
913faed8 AT |
5348 | (source |
5349 | (origin | |
5350 | (method url-fetch) | |
5351 | (uri (string-append "https://github.com/sadko4u/lsp-dsp-lib/" | |
f50adf0b | 5352 | "releases/download/" version |
913faed8 AT |
5353 | "/lsp-dsp-lib-" version "-src.tar.gz")) |
5354 | (sha256 | |
1e36a6ad | 5355 | (base32 "1gcznkyybywbgdi2fhx27i8sckhy6ahvxax72b213g1lr5aaw7bq")))) |
913faed8 AT |
5356 | (build-system gnu-build-system) |
5357 | (arguments | |
c7fc5086 TGR |
5358 | (list #:tests? #f ; no tests |
5359 | #:make-flags | |
5360 | #~(list (string-append "CC=" #$(cc-for-target))) | |
5361 | #:phases | |
5362 | #~(modify-phases %standard-phases | |
5363 | (add-after 'unpack 'omit-static-library | |
5364 | (lambda _ | |
5365 | (substitute* "src/Makefile" | |
5366 | ((".*cp \\$\\(ARTIFACT_SLIB\\).*") "") ; don't install it | |
5367 | ((" \\$\\(ARTIFACT_SLIB\\)") "")))) ; don't build it | |
5368 | (replace 'configure | |
5369 | (lambda _ | |
5370 | (invoke "make" "config" | |
5371 | (string-append "PREFIX=" #$output))))))) | |
913faed8 AT |
5372 | (home-page "https://github.com/sadko4u/lsp-dsp-lib") |
5373 | (synopsis "Digital signal processing library") | |
5374 | (description "The LSP DSP library provides a set of functions that perform | |
5375 | SIMD-optimized computing on several hardware architectures. All functions | |
5376 | currently operate on IEEE-754 single-precision floating-point numbers.") | |
5377 | (license license:lgpl3+))) | |
5378 | ||
7cd2609e GLV |
5379 | (define-public codec2 |
5380 | (package | |
5381 | (name "codec2") | |
5382 | (version "0.9.2") | |
5383 | (source | |
5384 | (origin | |
5385 | (method git-fetch) | |
5386 | (uri (git-reference | |
b0e7b699 | 5387 | (url "https://github.com/drowe67/codec2") |
7cd2609e GLV |
5388 | (commit (string-append "v" version)))) |
5389 | (file-name (git-file-name name version)) | |
5390 | (sha256 | |
5391 | (base32 "1jpvr7bra8srz8jvnlbmhf8andbaavq5v01qjnp2f61za93rzwba")))) | |
5392 | (build-system cmake-build-system) | |
5393 | (native-inputs | |
8394619b | 5394 | (list bc octave valgrind)) |
7cd2609e GLV |
5395 | (arguments |
5396 | `(#:tests? #f ; TODO: Fix tests (paths, graphic toolkit, octave modules). | |
5397 | #:phases | |
5398 | (modify-phases %standard-phases | |
5399 | (add-before 'check 'set-test-environment | |
5400 | (lambda _ | |
5401 | (setenv "HOME" "/tmp") | |
5402 | #t))))) | |
5403 | (synopsis "Speech codec") | |
5404 | (description | |
5405 | "Codec 2 is a speech codec designed for communications quality speech | |
5406 | between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF | |
5407 | digital radio.") | |
5408 | (home-page "https://www.rowetel.com/?page_id=452") | |
5409 | (license license:lgpl2.1))) | |
17aa4eb4 | 5410 | |
f1b0d0d7 GLV |
5411 | (define-public mbelib |
5412 | ;; No release since 2016, use commit directly. | |
5413 | (let ((commit "9a04ed5c78176a9965f3d43f7aa1b1f5330e771f") | |
5414 | (revision "1")) | |
5415 | (package | |
5416 | (name "mbelib") | |
4b861c89 | 5417 | (version (git-version "1.3.0" revision commit)) |
f1b0d0d7 GLV |
5418 | (source |
5419 | (origin | |
5420 | (method git-fetch) | |
5421 | (uri (git-reference | |
5422 | (url "https://github.com/szechyjs/mbelib") | |
5423 | (commit commit))) | |
5424 | (file-name (git-file-name name version)) | |
5425 | (sha256 | |
5426 | (base32 "0a7xmf87xnjzm5b437j2vnwv39x0ascja1j04c5wj6xs1529gw8h")))) | |
5427 | (build-system cmake-build-system) | |
5428 | (home-page "https://github.com/szechyjs/mbelib") | |
5429 | (synopsis "P25 Phase 1 and ProVoice vocoder") | |
5430 | (description | |
5431 | "The mbelib library provides support for the 7200x4400 bit/s codec used | |
5432 | in P25 Phase 1, the 7100x4400 bit/s codec used in ProVoice and the @emph{Half | |
5433 | Rate} 3600x2250 bit/s vocoder used in various radio systems.") | |
e15f7a6b TGR |
5434 | (license (list license:bsd-3 ; test/ framework |
5435 | license:isc))))) ; the rest | |
f1b0d0d7 | 5436 | |
17aa4eb4 GL |
5437 | (define-public ableton-link |
5438 | (package | |
5439 | (name "ableton-link") | |
e874c730 | 5440 | (version "3.0.3") |
17aa4eb4 GL |
5441 | (source (origin |
5442 | (method git-fetch) | |
5443 | (uri (git-reference | |
b0e7b699 | 5444 | (url "https://github.com/Ableton/link") |
17aa4eb4 GL |
5445 | (commit (string-append "Link-" version)))) |
5446 | (file-name (git-file-name name version)) | |
5447 | (sha256 | |
5448 | (base32 | |
e874c730 | 5449 | "1wplqj11ww64gmw2kzlxpvfs3v04m2036f7k5ndm34zcv12b91fa")) |
17aa4eb4 GL |
5450 | (modules '((guix build utils))) |
5451 | (patches | |
5452 | (search-patches "ableton-link-system-libraries-debian.patch")) | |
5453 | (snippet | |
5454 | '(begin | |
5455 | ;; Tests assume that CMake's "build" directory is a | |
5456 | ;; sub-directory of the source tree, so we fix it. | |
5457 | (substitute* "ci/run-tests.py" | |
5458 | (("root_dir,") "root_dir, os.pardir,")) | |
5459 | ;; Unbundle dependencies. | |
5460 | (delete-file-recursively "third_party") | |
e874c730 | 5461 | (delete-file-recursively "modules"))))) |
17aa4eb4 GL |
5462 | (build-system cmake-build-system) |
5463 | (native-inputs | |
8394619b LC |
5464 | (list catch-framework |
5465 | python ;for running tests | |
5466 | portaudio ;for portaudio examples | |
5467 | qtbase-5 ;for Qt examples | |
735d340a | 5468 | qtdeclarative-5 |
eef8e2ec | 5469 | qttools-5)) |
17aa4eb4 | 5470 | (inputs |
8394619b | 5471 | (list jack-1 ;for JACK examples |
65e5e85d | 5472 | qtquickcontrols-5)) ;for Qt examples |
17aa4eb4 GL |
5473 | (propagated-inputs |
5474 | ;; This is because include/ableton/platforms/asio/AsioWrapper.hpp | |
5475 | ;; contains '#include <asio.hpp>'. | |
8394619b | 5476 | (list asio)) |
17aa4eb4 GL |
5477 | (arguments |
5478 | `(#:configure-flags | |
5479 | '("-DLINK_BUILD_QT_EXAMPLES=ON" | |
5480 | "-DLINK_BUILD_JACK=ON") | |
5481 | #:phases | |
5482 | (modify-phases %standard-phases | |
5483 | (replace 'check | |
d29cf19b AV |
5484 | (lambda* (#:key inputs tests? #:allow-other-keys) |
5485 | (when tests? | |
5486 | (let* ((python (search-input-file inputs "/bin/python3")) | |
5487 | (run-tests "../source/ci/run-tests.py")) | |
5488 | (invoke python run-tests "--target" "LinkCoreTest") | |
5489 | (invoke python run-tests "--target" "LinkDiscoveryTest"))))) | |
17aa4eb4 GL |
5490 | (add-before 'install 'patch-cmake |
5491 | (lambda* (#:key inputs #:allow-other-keys) | |
e874c730 | 5492 | (let* ((source "../source/")) |
17aa4eb4 GL |
5493 | (substitute* (string-append source |
5494 | "cmake_include/AsioStandaloneConfig.cmake") | |
5495 | (((string-append "\\$\\{CMAKE_CURRENT_LIST_DIR\\}/\\.\\./" | |
5496 | "modules/asio-standalone/asio/include")) | |
5497 | (string-append (assoc-ref inputs "asio") | |
5498 | "/include"))) | |
5499 | (substitute* (string-append source "AbletonLinkConfig.cmake") | |
5500 | (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include") | |
5501 | "${CMAKE_CURRENT_LIST_DIR}/../../../include") | |
5502 | (("\\$\\{CMAKE_CURRENT_LIST_DIR\\}/include/ableton/Link\\.hpp") | |
e874c730 | 5503 | "${CMAKE_CURRENT_LIST_DIR}/../../../include/ableton/Link.hpp"))))) |
17aa4eb4 GL |
5504 | (replace 'install |
5505 | (lambda* (#:key outputs #:allow-other-keys) | |
5506 | (let* ((out (assoc-ref outputs "out")) | |
5507 | (bin (string-append out "/bin")) | |
5508 | (lib-cmake (string-append out "/lib/cmake/ableton-link")) | |
e874c730 | 5509 | (source "../source")) |
17aa4eb4 GL |
5510 | (for-each (lambda (test-file) |
5511 | (delete-file test-file)) | |
5512 | '("bin/LinkDiscoveryTest" "bin/LinkCoreTest")) | |
5513 | (copy-recursively "bin" bin) | |
5514 | (copy-recursively (string-append source "/include/ableton") | |
5515 | (string-append out "/include/ableton")) | |
5516 | (install-file (string-append source "/AbletonLinkConfig.cmake") | |
5517 | lib-cmake) | |
5518 | (install-file (string-append source | |
5519 | "/cmake_include/AsioStandaloneConfig.cmake") | |
e874c730 | 5520 | (string-append lib-cmake "/cmake_include")))))))) |
17aa4eb4 GL |
5521 | (home-page "https://github.com/Ableton/link") |
5522 | (synopsis "Synchronize musical beat, tempo, and phase across multiple applications") | |
5523 | (description | |
5524 | "Ableton Link is a C++ library that synchronizes musical beat, tempo, and phase | |
5525 | across multiple applications running on one or more devices. Applications on devices | |
5526 | connected to a local network discover each other automatically and form a musical | |
5527 | session in which each participant can perform independently: anyone can start or stop | |
5528 | while still staying in time.") | |
5529 | (license license:gpl2+))) | |
80986c6a LF |
5530 | |
5531 | (define-public butt | |
5532 | (package | |
5533 | (name "butt") | |
9b66f0a7 | 5534 | (version "0.1.34") |
80986c6a LF |
5535 | (source (origin |
5536 | (method url-fetch) | |
5537 | (uri (string-append "mirror://sourceforge/butt/butt/butt-" | |
5538 | version "/butt-" version ".tar.gz")) | |
5539 | (sha256 | |
5540 | (base32 | |
9b66f0a7 | 5541 | "0zd1g1673pv8z437y34fllxska8dzpd7mygpham35pzwpdyc5c1p")) |
6c7dc0ba TGR |
5542 | (modules '((guix build utils))) |
5543 | (snippet | |
5544 | '(substitute* "src/butt.cpp" | |
5545 | ((".*zica.*") ""))))) | |
80986c6a LF |
5546 | (build-system gnu-build-system) |
5547 | (arguments | |
027c21dc TGR |
5548 | (list #:phases |
5549 | #~(modify-phases %standard-phases | |
5550 | (add-after 'install 'install-documentation | |
5551 | (lambda _ | |
668313e0 | 5552 | (let ((doc (string-append #$output "/share/doc/" #$name))) |
027c21dc TGR |
5553 | (install-file "README" doc) |
5554 | (copy-file #$(this-package-native-input "manual") | |
5555 | (string-append doc "/butt-manual.pdf")))))))) | |
80986c6a LF |
5556 | (native-inputs |
5557 | `(("pkg-config" ,pkg-config) | |
cb8e483c TGR |
5558 | ("manual" |
5559 | ,(origin | |
5560 | (method url-fetch) | |
5561 | (uri (string-append "https://danielnoethen.de/butt/butt-" | |
5562 | version "_manual.pdf")) | |
5563 | (sha256 | |
5564 | (base32 "0kadqzzbk25n0aqxgbqhg4mq4hsbjq44phzcx5qj1b8847yzz8si")))))) | |
5565 | (inputs | |
5566 | (list dbus | |
5567 | flac | |
5568 | fltk | |
5569 | lame | |
5570 | libfdk | |
5571 | libsamplerate | |
5572 | libvorbis | |
5573 | libx11 | |
5574 | libxext | |
5575 | libxfixes | |
5576 | libxft | |
5577 | libxrender | |
5578 | libogg | |
5579 | openssl | |
5580 | opus | |
5581 | portaudio)) | |
80986c6a LF |
5582 | (home-page "https://danielnoethen.de/butt/") |
5583 | (synopsis "Audio streaming tool") | |
5584 | (description "Butt is a tool to stream audio to a ShoutCast or | |
5585 | Icecast server.") | |
5586 | (license license:gpl2+))) | |
ac886034 AI |
5587 | |
5588 | (define-public siggen | |
5589 | (package | |
5590 | (name "siggen") | |
5591 | (version "2.3.10") | |
5592 | (source | |
5593 | (origin | |
5594 | (method git-fetch) | |
5595 | (uri (git-reference | |
5596 | (url "https://github.com/bleskodev/siggen") | |
5597 | (commit "a407611b59d59c7770bbe62ba9b8e9a948cf3210"))) | |
5598 | (file-name (git-file-name name version)) | |
5599 | (sha256 | |
5600 | (base32 | |
5601 | "0szhgfd9kddr6qsz0imp0x66jjn6ry236f35vjl82ivc1v2bllcb")))) | |
5602 | (build-system gnu-build-system) | |
5603 | (arguments | |
5604 | `(#:make-flags (list (string-append "INSDIR=" %output "/bin") | |
5605 | (string-append "MANDIR=" %output "/share/man")) | |
5606 | #:tests? #f ; no tests | |
5607 | #:phases | |
5608 | (modify-phases %standard-phases | |
5609 | ;; Patch misc.c to prevent a segfault. | |
5610 | (add-after 'unpack 'patch-segfault | |
5611 | (lambda _ | |
5612 | (substitute* "misc.c" | |
5613 | (("#include <stdio.h>\n" all) | |
5614 | (string-append all "#include <string.h>\n"))))) | |
5615 | (delete 'configure) | |
5616 | (replace 'install | |
5617 | (lambda* (#:key make-flags outputs #:allow-other-keys) | |
5618 | (let ((out (assoc-ref outputs "out"))) | |
5619 | (for-each (lambda (dir) | |
5620 | (mkdir-p (string-append out dir))) | |
5621 | (list "/bin" "/share/man/man1" "/share/man/man5")) | |
5622 | (apply invoke "make" "sysinstall" make-flags))))))) | |
5623 | (inputs | |
8394619b | 5624 | (list ncurses)) |
ac886034 AI |
5625 | (native-inputs |
5626 | `(("groff" ,groff-minimal) ; for nroff | |
5627 | ("util-linux" ,util-linux))) ; for col | |
5628 | (home-page "https://github.com/bleskodev/siggen") | |
5629 | (synopsis "Signal generation tools") | |
5630 | (description "siggen is a set of tools for imitating a laboratory signal | |
5631 | generator, generating audio signals out of Linux's /dev/dsp audio | |
5632 | device. There is support for mono and/or stereo and 8 or 16 bit samples.") | |
5633 | (license license:gpl2))) | |
77c9c5c1 | 5634 | |
653bcab9 | 5635 | (define-public python-pysox |
5636 | ;; PyPi does not include the data folder containing audio files for testing. | |
5637 | (let ((commit "3d0053381c24ae3490f759d4de87194b85789d36") | |
5638 | (revision "0")) | |
5639 | (package | |
5640 | (name "python-pysox") | |
5641 | (version (git-version "1.4.2" revision commit)) | |
5642 | (source | |
5643 | (origin | |
5644 | (method git-fetch) | |
5645 | (uri (git-reference | |
5646 | (url "https://github.com/rabitt/pysox") | |
5647 | (commit commit))) | |
5648 | (file-name (git-file-name name version)) | |
5649 | (sha256 | |
5650 | (base32 | |
5651 | "0i62jx92vfpcr2z7lp69yzqdi9idfs3pifl3rzm2akc2c4cr1mac")))) | |
5652 | (build-system python-build-system) | |
5653 | (arguments | |
5654 | `(#:phases | |
5655 | (modify-phases %standard-phases | |
5656 | (add-after 'unpack 'patch-sox | |
5657 | (lambda* (#:key inputs #:allow-other-keys) | |
5658 | (let* ((sox-store-path (assoc-ref inputs "sox")) | |
5659 | (sox-bin (string-append sox-store-path "/bin/sox"))) | |
5660 | (substitute* "sox/__init__.py" | |
5661 | (("sox -h") | |
5662 | (string-append sox-bin " -h"))) | |
5663 | (substitute* "sox/core.py" | |
5664 | (("\\['sox") | |
5665 | (string-append "['" sox-bin)))))) | |
5666 | (replace 'check | |
5667 | (lambda* (#:key inputs outputs tests? #:allow-other-keys) | |
5668 | (when tests? | |
5669 | (add-installed-pythonpath inputs outputs) | |
5670 | (invoke "pytest"))))))) | |
5671 | (propagated-inputs | |
8394619b | 5672 | (list python-numpy python-typing-extensions)) |
653bcab9 | 5673 | (native-inputs |
8394619b | 5674 | (list sox python-pytest python-pytest-cov python-soundfile)) |
653bcab9 | 5675 | (home-page "https://github.com/rabitt/pysox") |
5676 | (synopsis "Python wrapper around SoX") | |
5677 | (description "@code{python-pysox} is a wrapper around the @command{sox} | |
5678 | command line tool. The API offers @code{Transformer} and @code{Combiner} | |
5679 | classes that allow the user to incrementally build up effects and audio | |
5680 | manipulations. @code{python-pysox} also provides methods for querying audio | |
5681 | information such as sample rate, determining whether an audio file is silent, | |
5682 | and much more.") | |
5683 | (license license:bsd-3)))) | |
5684 | ||
b615790a | 5685 | (define-public python-resampy |
5686 | (package | |
5687 | (name "python-resampy") | |
5688 | (version "0.2.2") | |
5689 | (source | |
5690 | (origin | |
5691 | (method git-fetch) | |
5692 | (uri | |
5693 | (git-reference | |
5694 | ;; PyPi does not include tests. | |
5695 | (url "https://github.com/bmcfee/resampy") | |
5696 | (commit version))) | |
5697 | (file-name (git-file-name name version)) | |
5698 | (sha256 | |
5699 | (base32 "0qmkxl5sbgh0j73n667vyi7ywzh09iaync91yp1j5rrcmwsn0qfs")))) | |
5700 | (build-system python-build-system) | |
5701 | (arguments | |
5702 | '(#:phases | |
5703 | (modify-phases %standard-phases | |
5704 | (replace 'check | |
5705 | (lambda* (#:key inputs outputs tests? #:allow-other-keys) | |
5706 | (when tests? | |
5707 | (add-installed-pythonpath inputs outputs) | |
5708 | (invoke "pytest" "tests"))))))) | |
5709 | (propagated-inputs | |
5710 | (list python-numba python-numpy python-scipy python-six)) | |
5711 | (native-inputs | |
5712 | (list python-pytest python-pytest-cov)) | |
5713 | (home-page "https://github.com/bmcfee/resampy") | |
5714 | (synopsis "Efficient signal resampling") | |
5715 | (description | |
5716 | "@code{python-resampy} implements the band-limited sinc interpolation | |
5717 | method for sampling rate conversion as described by Julius O. Smith at the | |
5718 | @url{https://ccrma.stanford.edu/~jos/resample/, Digital Audio Resampling | |
5719 | Home Page}.") | |
5720 | (license license:isc))) | |
2f0107d8 | 5721 | |
5722 | (define-public python-librosa | |
5723 | (package | |
5724 | (name "python-librosa") | |
5725 | (version "0.8.1") | |
5726 | (source | |
5727 | (origin | |
5728 | (method url-fetch) | |
5729 | (uri (pypi-uri "librosa" version)) | |
5730 | (sha256 | |
5731 | (base32 "1cx6rhcvak0hy6bx84jwzpxmwgi92m82w77279akwjmfd3khagf5")))) | |
5732 | (build-system python-build-system) | |
5733 | (arguments | |
5734 | ;; Tests require internet connection to download MATLAB scripts for | |
5735 | ;; generating the testing data. | |
5736 | `(#:tests? #f)) | |
5737 | (propagated-inputs | |
5738 | (list python-audioread | |
5739 | python-decorator | |
5740 | python-joblib | |
5741 | python-numba | |
5742 | python-numpy | |
5743 | python-packaging | |
5744 | python-pooch | |
5745 | python-resampy | |
5746 | python-scikit-learn | |
5747 | python-scipy | |
5748 | python-soundfile)) | |
5749 | (home-page "https://librosa.org") | |
5750 | (synopsis "Python module for audio and music processing") | |
5751 | (description | |
5752 | "@code{librosa} is a python package for music and audio analysis. It | |
5753 | provides the building blocks necessary to create music information retrieval | |
5754 | systems.") | |
5755 | (license license:isc))) | |
b615790a | 5756 | |
77c9c5c1 TW |
5757 | (define-public mda-lv2 |
5758 | (package | |
5759 | (name "mda-lv2") | |
5760 | (version "1.2.6") | |
5761 | (source | |
5762 | (origin | |
5763 | (method url-fetch) | |
5764 | (uri (string-append "http://download.drobilla.net/mda-lv2-" | |
5765 | version ".tar.bz2")) | |
5766 | (sha256 | |
5767 | (base32 "1nspk2j11l65m5r9z5isw8j749vh9a89wgx8mkrrq15f4iq12rnd")))) | |
5768 | (build-system waf-build-system) | |
5769 | (arguments | |
5770 | `(#:tests? #f ; There are no tests. | |
5771 | #:configure-flags | |
5772 | (list (string-append "--prefix=" | |
5773 | (assoc-ref %outputs "out"))))) | |
5774 | (inputs | |
8394619b | 5775 | (list lv2)) |
77c9c5c1 | 5776 | (native-inputs |
8394619b | 5777 | (list pkg-config)) |
77c9c5c1 TW |
5778 | (native-search-paths |
5779 | (list (search-path-specification | |
5780 | (variable "LV2_PATH") | |
5781 | (files '("lib/lv2"))))) | |
5782 | (home-page "https://drobilla.net/software/mda-lv2") | |
5783 | (synopsis "Audio plug-in pack for LV2") | |
5784 | (description | |
5785 | "MDA-LV2 is an LV2 port of the MDA plugins. It includes effects and a few | |
5786 | instrument plugins.") | |
5787 | (license license:gpl3+))) | |
830344a9 AA |
5788 | |
5789 | (define-public libodiosacd | |
5790 | (package | |
5791 | (name "libodiosacd") | |
5792 | (version "21.8.30") | |
5793 | (source (origin | |
5794 | (method git-fetch) | |
5795 | (uri (git-reference | |
5796 | (url "https://github.com/tari01/libodiosacd") | |
5797 | (commit version))) | |
5798 | (file-name (git-file-name name version)) | |
5799 | (sha256 | |
5800 | (base32 | |
5801 | "0iamf7wksbql0qfigdv5ahaax53ms2yligdav8dw6x0ay88x4lhi")))) | |
5802 | (build-system gnu-build-system) | |
5803 | (arguments | |
5804 | `(#:tests? #f ; no check target | |
5805 | #:phases | |
5806 | (modify-phases %standard-phases | |
5807 | (add-after 'unpack 'patch-makefile | |
5808 | (lambda _ | |
5809 | (substitute* "Makefile" | |
5810 | (("\\$\\(DESTDIR\\)/usr") | |
5811 | "\\$(DESTDIR)")))) | |
5812 | (delete 'configure)) ; no configure script | |
5813 | #:make-flags | |
5814 | (list (string-append "DESTDIR=" %output)))) | |
5815 | (synopsis "Library for decoding Super Audio CDs (SACD)") | |
5816 | (description | |
5817 | "The Odio SACD shared library is a decoding engine which takes a Super | |
5818 | Audio CD source and extracts a 24-bit high resolution WAV file. It handles | |
5819 | both DST and DSD streams.") | |
5820 | (home-page "https://tari.in/www/software/libodiosacd/") | |
5821 | (license license:gpl3+))) | |
0e4a2309 AA |
5822 | |
5823 | (define-public odio-sacd | |
5824 | (package | |
5825 | (name "odio-sacd") | |
5826 | (version "21.1.9") | |
5827 | (source (origin | |
5828 | (method git-fetch) | |
5829 | (uri (git-reference | |
5830 | (url "https://github.com/tari01/odio-sacd") | |
5831 | (commit version))) | |
5832 | (file-name (git-file-name name version)) | |
5833 | (sha256 | |
5834 | (base32 | |
5835 | "0314srqk0r4qv292qiaply619l2fw04nkdwvqhj3q1dqzv41g4qk")))) | |
5836 | (inputs (list libodiosacd)) | |
5837 | ;; Build system and arguments for libodiosacd are identical. | |
5838 | (build-system (package-build-system libodiosacd)) | |
5839 | (arguments (package-arguments libodiosacd)) | |
5840 | (synopsis "Rip Super Audio CDs (SACD)") | |
5841 | (description | |
5842 | "Odio SACD is a command-line application which takes a Super Audio CD | |
5843 | source and extracts a 24-bit high resolution WAV file. It handles both DST | |
5844 | and DSD streams.") | |
5845 | (home-page "https://tari.in/www/software/odio-sacd/") | |
5846 | (license license:gpl3+))) | |
8bea8797 JS |
5847 | |
5848 | (define-public qpwgraph | |
5849 | (package | |
5850 | (name "qpwgraph") | |
618699cb | 5851 | (version "0.3.5") |
8bea8797 JS |
5852 | (source (origin |
5853 | (method git-fetch) | |
5854 | (uri (git-reference | |
5855 | (url "https://gitlab.freedesktop.org/rncbc/qpwgraph") | |
5856 | (commit (string-append "v" version)))) | |
5857 | (file-name (git-file-name name version)) | |
5858 | (sha256 | |
5859 | (base32 | |
618699cb | 5860 | "01f4zabn22dp0yl7szxck6gkbayk1p5iqajfgzls7mdkba7515b6")))) |
8bea8797 | 5861 | (build-system cmake-build-system) |
6165dd3c | 5862 | (arguments (list #:tests? #f)) ;; no tests |
8bea8797 | 5863 | (inputs (list alsa-lib |
6165dd3c | 5864 | libxkbcommon |
8bea8797 | 5865 | pipewire-0.3 |
6165dd3c MC |
5866 | qtbase |
5867 | qtsvg)) | |
8bea8797 JS |
5868 | (native-inputs (list pkg-config)) |
5869 | (synopsis "PipeWire graph manager") | |
5870 | (description | |
5871 | "qpwgraph is a graph manager dedicated to PipeWire, using the Qt C++ | |
5872 | framework. It provides a visual interface to audio and video connections | |
5873 | managed by PipeWire.") | |
5874 | (home-page "https://gitlab.freedesktop.org/rncbc/qpwgraph") | |
5875 | (license license:gpl2))) | |
8dc1430a SS |
5876 | |
5877 | (define-public streamripper | |
5878 | (package | |
5879 | (name "streamripper") | |
5880 | (version "1.64.6") | |
5881 | (source | |
5882 | (origin | |
5883 | (method url-fetch) | |
5884 | (uri (string-append "https://sourceforge.net/projects/streamripper" | |
5885 | "/files/streamripper%20(current)/" | |
5886 | version "/streamripper-" version ".tar.gz")) | |
5887 | (sha256 | |
586f6c3a MB |
5888 | (base32 "0hnyv3206r0rfprn3k7k6a0j959kagsfyrmyjm3gsf3vkhp5zmy1")) |
5889 | (modules '((guix build utils))) | |
5890 | (snippet | |
5891 | ;; Delete bundled copy of libmad. | |
5892 | '(delete-file-recursively "libmad-0.15.1b")))) | |
8dc1430a SS |
5893 | (build-system gnu-build-system) |
5894 | (native-inputs (list pkg-config)) | |
5895 | (inputs (list faad2 glib libmad libvorbis)) | |
5896 | (home-page "http://streamripper.sourceforge.net") | |
5897 | (synopsis "Record audio streams to your hard drive") | |
5898 | (description "Streamripper records shoutcast-compatible | |
5899 | streams. For shoutcast style streams it finds the “meta data” or track | |
5900 | separation data, and uses that as a marker for where the track should | |
5901 | be separated.") | |
5902 | (license license:gpl2+))) |