Merge branch 'master' into ungrafting
[jackhill/guix/guix.git] / gnu / packages / music.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2019 Eric Bavier <bavier@member.fsf.org>
3 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
4 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
5 ;;; Copyright © 2016 Al McElrath <hello@yrns.org>
6 ;;; Copyright © 2016, 2017, 2019 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016, 2018 Leo Famulari <leo@famulari.name>
8 ;;; Copyright © 2016, 2017, 2019 Kei Kebreau <kkebreau@posteo.net>
9 ;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
10 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
11 ;;; Copyright © 2017 nikita <nikita@n0.is>
12 ;;; Copyright © 2017 Rodger Fox <thylakoid@openmailbox.org>
13 ;;; Copyright © 2017, 2018, 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
14 ;;; Copyright © 2017, 2018, 2019 Pierre Langlois <pierre.langlois@gmx.com>
15 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
16 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
17 ;;; Copyright © 2018 nee <nee.git@hidamari.blue>
18 ;;; Copyright © 2018 Stefan Reichör <stefan@xsteve.at>
19 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
20 ;;; Copyright © 2018, 2019 Ludovic Courtès <ludo@gnu.org>
21 ;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
22 ;;; Copyright © 2019 Gabriel Hondet <gabrielhondet@gmail.com>
23 ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
24 ;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.org>
25 ;;; Copyright © 2019 raingloom <raingloom@protonmail.com>
26 ;;; Copyright © 2019 David Wilson <david@daviwil.com>
27 ;;; Copyright © 2019, 2020 Alexandros Theodotou <alex@zrythm.org>
28 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
29 ;;; Copyright © 2020 Lars-Dominik Braun <lars@6xq.net>
30 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
31 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
32 ;;; Copyright © 2020 Tanguy Le Carrour <tanguy@bioneland.org>
33 ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
34 ;;; Copyright © 2019 Riku Viitanen <riku.viitanen0@gmail.com>
35 ;;;
36 ;;; This file is part of GNU Guix.
37 ;;;
38 ;;; GNU Guix is free software; you can redistribute it and/or modify it
39 ;;; under the terms of the GNU General Public License as published by
40 ;;; the Free Software Foundation; either version 3 of the License, or (at
41 ;;; your option) any later version.
42 ;;;
43 ;;; GNU Guix is distributed in the hope that it will be useful, but
44 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
45 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46 ;;; GNU General Public License for more details.
47 ;;;
48 ;;; You should have received a copy of the GNU General Public License
49 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
50
51 (define-module (gnu packages music)
52 #:use-module (guix utils)
53 #:use-module (guix packages)
54 #:use-module (guix download)
55 #:use-module (guix git-download)
56 #:use-module ((guix licenses) #:prefix license:)
57 #:use-module (guix build-system gnu)
58 #:use-module (guix build-system ant)
59 #:use-module (guix build-system cmake)
60 #:use-module (guix build-system meson)
61 #:use-module (guix build-system perl)
62 #:use-module (guix build-system python)
63 #:use-module (guix build-system scons)
64 #:use-module (guix build-system glib-or-gtk)
65 #:use-module (guix build-system waf)
66 #:use-module (guix build-system trivial)
67 #:use-module (guix build-system go)
68 #:use-module (gnu packages)
69 #:use-module (gnu packages admin)
70 #:use-module (gnu packages algebra)
71 #:use-module (gnu packages apr)
72 #:use-module (gnu packages audio)
73 #:use-module (gnu packages autotools)
74 #:use-module (gnu packages backup)
75 #:use-module (gnu packages base) ;libbdf
76 #:use-module (gnu packages bash)
77 #:use-module (gnu packages bison)
78 #:use-module (gnu packages boost)
79 #:use-module (gnu packages build-tools)
80 #:use-module (gnu packages cdrom)
81 #:use-module (gnu packages code)
82 #:use-module (gnu packages check)
83 #:use-module (gnu packages cmake)
84 #:use-module (gnu packages compression)
85 #:use-module (gnu packages cpp)
86 #:use-module (gnu packages crypto)
87 #:use-module (gnu packages curl)
88 #:use-module (gnu packages cyrus-sasl)
89 #:use-module (gnu packages datastructures)
90 #:use-module (gnu packages docbook)
91 #:use-module (gnu packages documentation)
92 #:use-module (gnu packages emacs)
93 #:use-module (gnu packages file)
94 #:use-module (gnu packages flex)
95 #:use-module (gnu packages fltk)
96 #:use-module (gnu packages fonts)
97 #:use-module (gnu packages fontutils)
98 #:use-module (gnu packages freedesktop)
99 #:use-module (gnu packages game-development)
100 #:use-module (gnu packages gcc)
101 #:use-module (gnu packages gnupg)
102 #:use-module (gnu packages gettext)
103 #:use-module (gnu packages ghostscript)
104 #:use-module (gnu packages gl)
105 #:use-module (gnu packages glib)
106 #:use-module (gnu packages gnome)
107 #:use-module (gnu packages gpodder)
108 #:use-module (gnu packages graphics)
109 #:use-module (gnu packages graphviz)
110 #:use-module (gnu packages gstreamer)
111 #:use-module (gnu packages gtk)
112 #:use-module (gnu packages guile)
113 #:use-module (gnu packages haskell)
114 #:use-module (gnu packages image)
115 #:use-module (gnu packages imagemagick)
116 #:use-module (gnu packages java)
117 #:use-module (gnu packages libffi)
118 #:use-module (gnu packages libusb)
119 #:use-module (gnu packages linux) ; for alsa-utils
120 #:use-module (gnu packages lirc)
121 #:use-module (gnu packages llvm)
122 #:use-module (gnu packages man)
123 #:use-module (gnu packages mp3)
124 #:use-module (gnu packages mpd)
125 #:use-module (gnu packages ncurses)
126 #:use-module (gnu packages netpbm)
127 #:use-module (gnu packages pcre)
128 #:use-module (gnu packages pdf)
129 #:use-module (gnu packages perl)
130 #:use-module (gnu packages perl-web)
131 #:use-module (gnu packages pkg-config)
132 #:use-module (gnu packages protobuf)
133 #:use-module (gnu packages pulseaudio) ;libsndfile
134 #:use-module (gnu packages python)
135 #:use-module (gnu packages python-web)
136 #:use-module (gnu packages python-xyz)
137 #:use-module (gnu packages qt)
138 #:use-module (gnu packages rdf)
139 #:use-module (gnu packages readline)
140 #:use-module (gnu packages rsync)
141 #:use-module (gnu packages sdl)
142 #:use-module (gnu packages sqlite)
143 #:use-module (gnu packages stb)
144 #:use-module (gnu packages tcl)
145 #:use-module (gnu packages texinfo)
146 #:use-module (gnu packages tex)
147 #:use-module (gnu packages time)
148 #:use-module (gnu packages tls)
149 #:use-module (gnu packages version-control)
150 #:use-module (gnu packages video)
151 #:use-module (gnu packages vim) ;for 'xxd'
152 #:use-module (gnu packages web)
153 #:use-module (gnu packages wxwidgets)
154 #:use-module (gnu packages xdisorg)
155 #:use-module (gnu packages xml)
156 #:use-module (gnu packages xorg)
157 #:use-module (gnu packages xiph)
158 #:use-module (gnu packages golang)
159 #:use-module (gnu packages lua)
160 #:use-module ((srfi srfi-1) #:select (last)))
161
162 (define-public audacious
163 (package
164 (name "audacious")
165 (version "4.0.5")
166 (source
167 (origin
168 (method url-fetch)
169 (uri (string-append "https://distfiles.audacious-media-player.org/"
170 "audacious-" version ".tar.bz2"))
171 (sha256
172 (base32 "028zjgz0p7ys15lk2a30m5zcv9xrx3ga50wjsh4m4zxilgkakbji"))))
173 (build-system gnu-build-system)
174 (arguments
175 `(#:configure-flags
176 (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))
177 #:tests? #f ; no check target
178 #:phases
179 (modify-phases %standard-phases
180 (add-after 'install 'unpack-plugins
181 (lambda* (#:key inputs #:allow-other-keys)
182 (let ((plugins (assoc-ref inputs "audacious-plugins")))
183 (invoke "tar" "xvf" plugins)
184 #t)))
185 (add-after 'unpack-plugins 'configure-plugins
186 (lambda* (#:key configure-flags outputs #:allow-other-keys)
187 (let ((out (assoc-ref outputs "out")))
188 (with-directory-excursion
189 (string-append "audacious-plugins-" ,version)
190 (substitute* "configure"
191 (("/bin/sh") (which "sh")))
192 (apply invoke "./configure"
193 (append configure-flags
194 ;; audacious-plugins requires audacious to build.
195 (list (string-append "PKG_CONFIG_PATH="
196 out "/lib/pkgconfig:"
197 (getenv "PKG_CONFIG_PATH"))
198 (string-append "--prefix=" out))))))))
199 (add-after 'configure-plugins 'build-plugins
200 (lambda _
201 (with-directory-excursion
202 (string-append "audacious-plugins-" ,version)
203 (invoke "make" "-j" (number->string (parallel-job-count))))))
204 (add-after 'build-plugins 'install-plugins
205 (lambda _
206 (with-directory-excursion
207 (string-append "audacious-plugins-" ,version)
208 (invoke "make" "install")))))))
209 (native-inputs
210 `(("audacious-plugins"
211 ,(origin
212 (method url-fetch)
213 (uri (string-append "https://distfiles.audacious-media-player.org/"
214 "audacious-plugins-" version ".tar.bz2"))
215 (sha256
216 (base32 "0ny5w1agr9jaz5w3wyyxf1ygmzmd1sivaf97lcm4z4w6529520lz"))))
217 ("gettext" ,gettext-minimal)
218 ("glib:bin" ,glib "bin") ; for gdbus-codegen
219 ("pkg-config" ,pkg-config)))
220 (inputs
221 `(("dbus" ,dbus)
222 ("qtbase" ,qtbase)
223 ("qtmultimedia" ,qtmultimedia)
224 ;; Plugin dependencies
225 ("alsa-lib" ,alsa-lib)
226 ("curl" ,curl)
227 ("faad2" ,faad2)
228 ("ffmpeg" ,ffmpeg)
229 ("flac" ,flac)
230 ("fluidsynth" ,fluidsynth)
231 ("lame" ,lame)
232 ("libbs2b" ,libbs2b)
233 ("libcddb" ,libcddb)
234 ("libcdio-paranoia" ,libcdio-paranoia)
235 ("libcue" ,libcue)
236 ("libmodplug" ,libmodplug)
237 ("libnotify" ,libnotify)
238 ("libogg" ,libogg)
239 ("libsamplerate" ,libsamplerate)
240 ("libsndfile" ,libsndfile)
241 ("libvorbis" ,libvorbis)
242 ("libxcomposite" ,libxcomposite)
243 ("libxml2" ,libxml2)
244 ("libxrender" ,libxrender)
245 ("lirc" ,lirc)
246 ("jack" ,jack-1)
247 ("mesa" ,mesa)
248 ("mpg123" ,mpg123)
249 ("neon" ,neon)
250 ("pulseaudio" ,pulseaudio)
251 ("sdl2" ,sdl2)
252 ("soxr" ,soxr)
253 ("wavpack" ,wavpack)))
254 (home-page "https://audacious-media-player.org")
255 (synopsis "Modular and skinnable audio player")
256 (description
257 "Audacious is an audio player descended from XMMS. Drag and drop
258 folders and individual song files, search for artists and albums in
259 your entire music library, or create and edit your own custom
260 playlists. Listen to CD’s or stream music from the Internet. Tweak
261 the sound with the graphical equalizer or experiment with LADSPA
262 effects. Enjoy the modern GTK-themed interface or change things up
263 with Winamp Classic skins. Use the plugins included with Audacious to
264 fetch lyrics for your music, to set an alarm in the morning, and
265 more.")
266 ;; According to COPYING, Audacious and its plugins are licensed
267 ;; under the BSD 2-clause license and libguess is licensed under
268 ;; the BSD 3-clause license.
269 (license (list license:bsd-2
270 license:bsd-3
271 ;; Plugin licenses that aren't BSD 2- or 3-clause.
272 license:lgpl2.1
273 license:gpl2
274 license:gpl3
275 license:expat
276 license:isc
277 license:lgpl2.0))))
278
279 (define-public aria-maestosa
280 (package
281 (name "aria-maestosa")
282 (version "1.4.13")
283 (source (origin
284 (method url-fetch)
285 (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/"
286 version "/AriaSrc-" version ".tar.bz2"))
287 (sha256
288 (base32
289 "1cs3z6frx2ch7rm5ammx9p0rxcjrbj1vq14hvcbimpaw39rdsn3d"))))
290 (build-system scons-build-system)
291 (arguments
292 `(#:tests? #f ;no tests
293 #:scons-flags
294 (list (string-append "prefix=" (assoc-ref %outputs "out")))
295 #:scons ,scons-python2
296 #:phases
297 (modify-phases %standard-phases
298 (delete 'configure)
299 (add-after 'unpack 'scons-propagate-environment
300 (lambda _
301 ;; By design, SCons does not, by default, propagate
302 ;; environment variables to subprocesses. See:
303 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
304 ;; Here, we modify the SConstruct file to arrange for
305 ;; environment variables to be propagated.
306 (substitute* "SConstruct"
307 (("env = Environment\\(\\)")
308 "env = Environment(ENV=os.environ)")
309 ;; Scons errors out when copying subdirectories from Resources,
310 ;; so we move them instead.
311 (("Copy") "Move")
312 ;; We move the "score" and "Documentation" directories at once,
313 ;; so we have to ignore files contained therein.
314 (("if \".svn\" in file" line)
315 (string-append line
316 " or \"score/\" in file"
317 " or \"Documentation/\" in file")))
318 #t))
319 (add-after 'install 'fix-directory-permissions
320 (lambda* (#:key outputs #:allow-other-keys)
321 (let ((out (assoc-ref outputs "out")))
322 (chmod (string-append out "/share/Aria/Documentation") #o555)
323 (chmod (string-append out "/share/Aria/score") #o555)
324 #t))))))
325 (inputs
326 `(("wxwidgets" ,wxwidgets)
327 ("glib" ,glib)
328 ("alsa-lib" ,alsa-lib)))
329 (native-inputs
330 `(("pkg-config" ,pkg-config)))
331 (home-page "http://ariamaestosa.sourceforge.net/")
332 (synopsis "MIDI sequencer and editor")
333 (description
334 "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit
335 and play MIDI files with a few clicks in a user-friendly interface offering
336 score, keyboard, guitar, drum and controller views.")
337 (license license:gpl3+)))
338
339 ;; We don't use the latest release because it depends on Qt4. Instead we
340 ;; download the sources from the tip of the "qt5" branch.
341 (define-public clementine
342 (let ((commit "4619a4c1ab3b17b13d4b2327ad477912917eaf36")
343 (revision "2"))
344 (package
345 (name "clementine")
346 (version (git-version "1.3.1" revision commit))
347 (source (origin
348 (method git-fetch)
349 (uri (git-reference
350 (url "https://github.com/clementine-player/Clementine")
351 (commit commit)))
352 (file-name (git-file-name name version))
353 (sha256
354 (base32
355 "1hximk3q0p8nw8is5w7215xgkb7k4flnfyr0pdz9svfwvcm05w1i"))
356 (modules '((guix build utils)))
357 (snippet
358 '(begin
359 (for-each
360 (lambda (dir)
361 (delete-file-recursively
362 (string-append "3rdparty/" dir)))
363 (list
364 ;; TODO: The following dependencies are still bundled:
365 ;; - "qxt": Appears to be unmaintained upstream.
366 ;; - "qsqlite"
367 ;; - "qtsingleapplication"
368 ;; - "qocoa"
369 ;; - "qtiocompressor"
370 ;; - "gmock": The tests crash when using our googletest
371 ;; package instead of the bundled gmock.
372 "SPMediaKeyTap"
373 "fancytabwidget"
374 "google-breakpad"
375 "libmygpo-qt"
376 "libmygpo-qt5"
377 "libprojectm"
378 "qtwin"
379 "sha2" ;; Replaced by openssl.
380 "taglib"
381 "tinysvcmdns"))
382 #t))
383 (patches (search-patches "clementine-use-openssl.patch"
384 "clementine-remove-crypto++-dependency.patch"
385 "clementine-fix-sqlite.patch"))))
386 (build-system cmake-build-system)
387 (arguments
388 '(#:test-target "clementine_test"
389 #:configure-flags
390 (list ;; Requires unpackaged "projectm"
391 "-DENABLE_VISUALISATIONS=OFF"
392 ;; Otherwise it may try to download a non-free library at run-time.
393 ;; TODO In an origin snippet, remove the code that performs the
394 ;; download.
395 "-DHAVE_SPOTIFY_DOWNLOADER=FALSE"
396 "-DUSE_SYSTEM_SHA2=TRUE")
397 #:phases
398 (modify-phases %standard-phases
399 (add-after 'install 'wrap-program
400 (lambda* (#:key inputs outputs #:allow-other-keys)
401 (let ((out (assoc-ref outputs "out"))
402 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
403 (wrap-program (string-append out "/bin/clementine")
404 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))
405 #t))))))
406 (native-inputs
407 `(("gettext" ,gettext-minimal)
408 ("pkg-config" ,pkg-config)
409 ("qtlinguist" ,qttools)))
410 (inputs
411 `(("boost" ,boost)
412 ("chromaprint" ,chromaprint)
413 ("fftw" ,fftw)
414 ("glib" ,glib)
415 ("glu" ,glu)
416 ("gstreamer" ,gstreamer)
417 ("gst-plugins-base" ,gst-plugins-base)
418 ("gst-plugins-good" ,gst-plugins-good)
419 ("gst-libav" ,gst-libav)
420 ("libcdio" ,libcdio)
421 ("libmygpo-qt" ,libmygpo-qt)
422 ;; TODO: Package libgpod.
423 ("libmtp" ,libmtp)
424 ("libxml2" ,libxml2)
425 ("openssl" ,openssl)
426 ("protobuf" ,protobuf)
427 ("pulseaudio" ,pulseaudio)
428 ("qtbase" ,qtbase)
429 ("qtx11extras" ,qtx11extras)
430 ("sqlite" ,sqlite)
431 ("sparsehash" ,sparsehash)
432 ("taglib" ,taglib)))
433 (home-page "https://clementine-player.org")
434 (synopsis "Music player and library organizer")
435 (description "Clementine is a multiplatform music player. It is inspired
436 by Amarok 1.4, focusing on a fast and easy-to-use interface for searching and
437 playing your music.")
438 (license (list
439 ;; clementine and qtiocompressor are under GPLv3.
440 license:gpl3+
441 ;; gmock is under BSD-3.
442 license:bsd-3
443 ;; qxt is under CPL1.0.
444 license:cpl1.0
445 ;; qsqlite and qtsingleapplication are under LGPL2.1+.
446 license:lgpl2.1+
447 ;; qocoa is under MIT and CC by-sa for the icons.
448 license:cc-by-sa3.0)))))
449
450 (define-public cmus
451 (package
452 (name "cmus")
453 (version "2.8.0")
454 (source (origin
455 (method git-fetch)
456 (uri (git-reference
457 (url "https://github.com/cmus/cmus")
458 (commit (string-append "v" version))))
459 (file-name (git-file-name name version))
460 (sha256
461 (base32
462 "1ydnvq13ay8b8mfmmgwi5qsgyf220yi1d01acbnxqn775dghmwar"))))
463 (build-system gnu-build-system)
464 (arguments
465 `(#:tests? #f ; cmus does not include tests
466 #:phases
467 (modify-phases %standard-phases
468 (replace 'configure
469 (lambda* (#:key outputs #:allow-other-keys)
470 (let ((out (assoc-ref outputs "out")))
471 ;; It's an idiosyncratic configure script that doesn't
472 ;; understand --prefix=..; it wants prefix=.. instead.
473 (invoke "./configure"
474 (string-append "prefix=" out))
475 #t))))))
476 ;; TODO: cmus optionally supports the following formats, which haven't yet
477 ;; been added to Guix:
478 ;;
479 ;; - Roar, libroar
480 ;;
481 ;; - DISCID_LIBS, apparently different from cd-discid which is included in
482 ;; Guix. See <http://sourceforge.net/projects/discid/>
483 (native-inputs
484 `(("pkg-config" ,pkg-config)))
485 (inputs
486 `(("alsa-lib" ,alsa-lib)
487 ("ao" ,ao)
488 ("faad2" ,faad2)
489 ("ffmpeg" ,ffmpeg)
490 ("flac" ,flac)
491 ("jack" ,jack-1)
492 ("libcddb" ,libcddb)
493 ("libcdio-paranoia" ,libcdio-paranoia)
494 ("libcue" ,libcue)
495 ("libmad" ,libmad)
496 ("libmodplug" ,libmodplug)
497 ("libmpcdec" ,libmpcdec)
498 ("libsamplerate" ,libsamplerate)
499 ("libvorbis" ,libvorbis)
500 ("ncurses" ,ncurses)
501 ("opusfile" ,opusfile)
502 ("pulseaudio" ,pulseaudio)
503 ("wavpack" ,wavpack)))
504 (home-page "https://cmus.github.io/")
505 (synopsis "Small console music player")
506 (description "Cmus is a small and fast console music player. It supports
507 many input formats and provides a customisable Vi-style user interface.")
508 (license license:gpl2+)))
509
510 (define-public denemo
511 (package
512 (name "denemo")
513 (version "2.4.0")
514 (source
515 (origin
516 (method url-fetch)
517 (uri (string-append "mirror://gnu/denemo/"
518 "denemo-" version ".tar.gz"))
519 (sha256
520 (base32 "145kq0zfgdadykl3i6na221i4s5wzdrcqq48amzyfarnrqk2rmpd"))))
521 (build-system gnu-build-system)
522 (arguments
523 `(#:phases
524 (modify-phases %standard-phases
525 (replace 'check
526 (lambda* (#:key inputs #:allow-other-keys)
527 ;; Tests require to write $HOME.
528 (setenv "HOME" (getcwd))
529 ;; Replace hard-coded diff file name.
530 (substitute* "tests/integration.c"
531 (("/usr/bin/diff")
532 (string-append (assoc-ref inputs "diffutils") "/bin/diff")))
533 ;; Denemo's documentation says to use this command to run its
534 ;; test suite.
535 (invoke "make" "-C" "tests" "check")))
536 (add-before 'build 'set-lilypond
537 ;; This phase sets the default path for lilypond to its current
538 ;; location in the store.
539 (lambda* (#:key inputs #:allow-other-keys)
540 (let* ((lilypond (string-append (assoc-ref inputs "lilypond")
541 "/bin/lilypond")))
542 (substitute* "src/core/prefops.c"
543 (("g_string_new \\(\"lilypond\"\\);")
544 (string-append "g_string_new (\""
545 lilypond
546 "\");"))))
547 #t)))))
548 (native-inputs
549 `(("diffutils" ,diffutils)
550 ("glib:bin" ,glib "bin") ; for gtester
551 ("gtk-doc" ,gtk-doc)
552 ("intltool" ,intltool)
553 ("libtool" ,libtool)
554 ("pkg-config" ,pkg-config)))
555 (inputs
556 `(("alsa-lib" ,alsa-lib)
557 ("aubio" ,aubio)
558 ("evince" ,evince)
559 ("fftw" ,fftw)
560 ("fluidsynth" ,fluidsynth)
561 ("glib" ,glib)
562 ("gtk+" ,gtk+)
563 ("gtksourceview" ,gtksourceview-3)
564 ("guile" ,guile-2.0)
565 ("librsvg" ,librsvg)
566 ("libsndfile" ,libsndfile)
567 ("libxml2" ,libxml2)
568 ("lilypond" ,lilypond)
569 ("portaudio" ,portaudio)
570 ("portmidi" ,portmidi)
571 ("rubberband" ,rubberband)))
572 (synopsis "Graphical music notation, front-end to GNU Lilypond")
573 (description
574 "GNU Denemo is a music notation editor that provides a convenient
575 interface to the powerful music engraving program Lilypond. Music can be
576 typed in using the computer keyboard, played in using a MIDI keyboard, or
577 even input via a microphone connected to the sound card. The final product
578 is publication-quality music notation that is continuously generated in the
579 background while you work.")
580 (home-page "http://www.denemo.org")
581 (license license:gpl3+)))
582
583 (define-public dumb
584 (package
585 (name "dumb")
586 (version "2.0.3")
587 (source
588 (origin
589 (method git-fetch)
590 (uri (git-reference
591 (url "https://github.com/kode54/dumb")
592 (commit version)))
593 (sha256
594 (base32 "1cnq6rb14d4yllr0yi32p9jmcig8avs3f43bvdjrx4r1mpawspi6"))
595 (file-name (git-file-name name version))))
596 (build-system cmake-build-system)
597 (arguments
598 '(#:tests? #f ; no check target
599 #:configure-flags
600 (list "-DBUILD_SHARED_LIBS=ON"
601 "-DBUILD_EXAMPLES=OFF")))
602 (home-page "https://github.com/kode54/dumb")
603 (synopsis "Module audio renderer library")
604 (description
605 "DUMB is a tracker library with support for IT, XM, S3M and MOD files. It
606 targets maximum accuracy to the original formats, with low-pass resonant filters
607 for the IT files, accurate timing and pitching, and three resampling quality
608 settings (aliasing, linear interpolation and cubic interpolation).")
609 ;; The DUMB license is a bit peculiar.
610 ;; Clause 8 states that clauses 4, 5 and 6 are null and void, leaving only
611 ;; the first three clauses for genuine consideration.
612 ;; Clauses 1, 2 and 3 are analogous to clauses 1, 2 and 3 of the zlib
613 ;; license, a known free software license.
614 ;; Therefore, the DUMB license may be considered a free software license.
615 (license (license:fsf-free "file://LICENSE"))))
616
617 (define-public dumb-allegro4
618 (package
619 (inherit dumb)
620 (name "dumb-allegro4")
621 (arguments
622 (substitute-keyword-arguments (package-arguments dumb)
623 ((#:configure-flags flags)
624 `(cons "-DBUILD_ALLEGRO4=ON" ,flags))))
625 (inputs
626 `(("allegro" ,allegro-4)))))
627
628 (define-public hydrogen
629 (package
630 (name "hydrogen")
631 (version "1.0.1")
632 (source
633 (origin
634 (method git-fetch)
635 (uri (git-reference
636 (url "https://github.com/hydrogen-music/hydrogen")
637 (commit version)))
638 (file-name (git-file-name name version))
639 (sha256
640 (base32 "0snljpvbcgikhz610c325dgvayi0k512p3bglck9vvi90wsqx7l1"))))
641 (build-system cmake-build-system)
642 (arguments
643 `(#:test-target "tests"
644 #:phases
645 (modify-phases %standard-phases
646 (add-after 'unpack 'fix-data-directory
647 (lambda* (#:key outputs #:allow-other-keys)
648 (substitute* "CMakeLists.txt"
649 (("/usr/share/pixmaps")
650 (string-append (assoc-ref outputs "out")
651 "/share/pixmaps")))
652 #t)))))
653 (native-inputs
654 `(("cppunit" ,cppunit)
655 ("pkg-config" ,pkg-config)
656 ("qtlinguist" ,qttools)))
657 (inputs
658 `(("alsa-lib" ,alsa-lib)
659 ("jack" ,jack-1)
660 ;; ("ladspa" ,ladspa) ; require LADSPA_PATH to be set
661 ("lash" ,lash)
662 ("libarchive" ,libarchive)
663 ("liblo" ,liblo)
664 ("libsndfile" ,libsndfile)
665 ("lrdf" ,lrdf)
666 ("pulseaudio" ,pulseaudio)
667 ("qtbase" ,qtbase)
668 ("qtxmlpatterns" ,qtxmlpatterns)
669 ("zlib" ,zlib)))
670 (home-page "http://www.hydrogen-music.org")
671 (synopsis "Drum machine")
672 (description
673 "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to
674 enable professional yet simple and intuitive pattern-based drum programming.")
675 (license license:gpl2+)))
676
677 (define-public easytag
678 (package
679 (name "easytag")
680 (version "2.4.3")
681 (source (origin
682 (method url-fetch)
683 (uri (string-append "mirror://gnome/sources/easytag/2.4/easytag-"
684 version ".tar.xz"))
685 (sha256
686 (base32
687 "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw"))))
688 (build-system glib-or-gtk-build-system)
689 (native-inputs
690 `(("desktop-file-utils" ,desktop-file-utils)
691 ("glib" ,glib "bin")
692 ("intltool" ,intltool)
693 ("itstool" ,itstool)
694 ("pkg-config" ,pkg-config)
695 ("xmllint" ,libxml2)))
696 (inputs
697 `(("flac" ,flac)
698 ("gtk+" ,gtk+)
699 ("id3lib" ,id3lib)
700 ("libid3tag" ,libid3tag)
701 ("libvorbis" ,libvorbis)
702 ("opusfile" ,opusfile)
703 ("speex" ,speex)
704 ("taglib" ,taglib)
705 ("wavpack" ,wavpack)
706 ("yelp" ,yelp)))
707 (arguments
708 '(#:phases
709 (modify-phases %standard-phases
710 (add-before 'configure 'configure-libid3tag
711 (lambda* (#:key inputs #:allow-other-keys)
712 ;; libid3tag does not provide a .pc file and EasyTAG's configure
713 ;; script healivy relies on pkg-config. Providing a temporary
714 ;; local .pc file is easier than patching the configure script.
715 (let* ((libid3tag (assoc-ref inputs "libid3tag")))
716 (mkdir-p "pkgconfig")
717 (with-output-to-file
718 "pkgconfig/id3tag.pc"
719 (lambda _
720 (format #t
721 "prefix=~@*~a~@
722 libdir=${prefix}/lib~@
723 includedir=${prefix}/include~@
724
725 Name: libid3tag~@
726 Description:~@
727 Version:~@
728 Libs: -L${libdir} -lid3tag -lz~@
729 Cflags: -I${includedir}~%"
730 libid3tag)))
731 (setenv "PKG_CONFIG_PATH"
732 (string-append (getenv "PKG_CONFIG_PATH")
733 ":" (getcwd) "/pkgconfig"))
734 #t)))
735 (add-after 'unpack 'patch-makefile
736 (lambda _
737 (substitute* "Makefile.in"
738 ;; The Makefile generates a test-desktop-file-validate.sh
739 ;; script with /bin/sh hard-coded.
740 (("/bin/sh") (which "sh"))
741 ;; Don't create 'icon-theme.cache'.
742 (("gtk-update-icon-cache") "true"))
743 #t)))))
744 (home-page "https://wiki.gnome.org/Apps/EasyTAG")
745 (synopsis "Simple application for viewing and editing tags in audio files")
746 (description
747 "EasyTAG is an application for viewing and editing tags in audio files.
748 It supports MP3, MP2, MP4/AAC, FLAC, Ogg Opus, Ogg Speex, Ogg Vorbis,
749 MusePack, Monkey's Audio, and WavPack files.")
750 (license license:gpl2+)))
751
752 (define-public extempore
753 (package
754 (name "extempore")
755 (version "0.8.6")
756 (source (origin
757 (method git-fetch)
758 (uri (git-reference
759 (url "https://github.com/digego/extempore")
760 (commit (string-append "v" version))))
761 (sha256
762 (base32
763 "182jy23qv115dipny7kglwbn21z55dp253w1ykm0kh8n6vkgs7gp"))
764 (file-name (git-file-name name version))
765 (patches (search-patches
766 "extempore-unbundle-external-dependencies.patch"))
767 (modules '((guix build utils)))
768 (snippet
769 '(begin
770 ;; Remove bundled sources.
771 (map delete-file-recursively
772 '("src/portaudio"
773 "src/pcre"))
774 #t))))
775 (build-system cmake-build-system)
776 (arguments
777 `(#:configure-flags (list "-DJACK=ON"
778 "-DPACKAGE=ON"
779 "-DEXTERNAL_SHLIBS_AUDIO=OFF"
780 "-DEXTERNAL_SHLIBS_GRAPHICS=OFF"
781 "-DCMAKE_BUILD_TYPE=Release"
782 (string-append "-DEXT_SHARE_DIR="
783 (assoc-ref %outputs "out")
784 "/share"))
785 #:modules ((ice-9 match)
786 (guix build cmake-build-system)
787 (guix build utils))
788 #:phases
789 (modify-phases %standard-phases
790 (add-after 'build 'build-aot-libs
791 (lambda _
792 (for-each (lambda (target)
793 (invoke "make" target))
794 '("aot_base"
795 "aot_math"
796 "aot_instruments"))
797 #t))
798 (add-after 'unpack 'patch-install-locations
799 (lambda* (#:key outputs #:allow-other-keys)
800 (substitute* "CMakeLists.txt"
801 (("EXT_SHARE_DIR=\"\\.\"\\)")
802 "EXT_SHARE_DIR=\"${EXT_SHARE_DIR}/extempore\")")
803 (("DESTINATION \"\\.\"\\)") "DESTINATION bin)")
804 (("DESTINATION \"\\.\"\n") "DESTINATION share/extempore\n"))
805 #t))
806 (add-after 'unpack 'patch-directories
807 (lambda* (#:key outputs #:allow-other-keys)
808 (substitute* "extras/extempore.el"
809 (("\\(runtime-directory \\(concat default-directory \"runtime\"\\)\\)")
810 (string-append "(runtime-directory \""
811 (assoc-ref outputs "out")
812 "/share/extempore/runtime"
813 "\")")))
814 #t))
815 (add-after 'unpack 'link-with-additional-libs
816 (lambda _
817 ;; The executable must be linked with libffi and zlib.
818 (substitute* "CMakeLists.txt"
819 (("target_link_libraries\\(extempore PRIVATE dl" line)
820 (string-append line " ffi z")))
821 #t))
822 ;; FIXME: All examples that are used as tests segfault for some
823 ;; unknown reason.
824 (add-after 'unpack 'disable-broken-tests
825 (lambda _
826 (substitute* "CMakeLists.txt"
827 (("extempore_add_example_as_test\\(.*") ""))
828 #t))
829 (add-after 'unpack 'hardcode-external-lib-paths
830 (lambda* (#:key inputs #:allow-other-keys)
831 (use-modules (ice-9 match))
832 (for-each
833 (match-lambda
834 ((file-name lib pkg-name)
835 (substitute* (string-append "libs/external/" file-name ".xtm")
836 ((lib) (string-append (assoc-ref inputs pkg-name)
837 "/lib/" lib)))))
838 '(("assimp" "libassimp.so" "assimp")
839 ("portmidi" "libportmidi.so" "portmidi")
840 ("sndfile" "libsndfile.so" "libsndfile")
841 ("fft" "libkiss_fft.so" "kiss-fft")
842 ("stb_image" "libstb_image.so" "stb-image")
843 ("nanovg" "libnanovg.so" "nanovg")
844 ("glext" "libGL.so" "mesa")
845 ("glfw3" "libglfw.so" "glfw")
846 ("gl/glcore-directbind" "libGL.so" "mesa")
847 ("gl/glcompat-directbind" "libGL.so" "mesa")))
848 #t))
849 (add-after 'unpack 'use-own-llvm
850 (lambda* (#:key inputs #:allow-other-keys)
851 (setenv "EXT_LLVM_DIR" (assoc-ref inputs "llvm"))
852 ;; Our LLVM builds shared libraries, so Extempore should use
853 ;; those.
854 (substitute* "CMakeLists.txt"
855 (("CMAKE_STATIC_LIBRARY") "CMAKE_SHARED_LIBRARY"))
856 #t))
857 (add-after 'unpack 'fix-aot-compilation
858 (lambda* (#:key outputs #:allow-other-keys)
859 (substitute* "CMakeLists.txt"
860 ;; Extempore needs to be told where the runtime is to be found.
861 ;; While we're at it we disable automatic tuning for a specific
862 ;; CPU to make binary substitution possible.
863 (("COMMAND extempore" prefix)
864 (string-append prefix " --sharedir " (getcwd)
865 " --mcpu=generic --attr=none")))
866 #t)))))
867 (inputs
868 `(("llvm"
869 ,(package
870 (inherit llvm-3.8)
871 (name "llvm-for-extempore")
872 (source
873 (origin
874 (method url-fetch)
875 (uri (string-append "http://extempore.moso.com.au/extras/"
876 "llvm-3.8.0.src-patched-for-extempore.tar.xz"))
877 (sha256
878 (base32
879 "1svdl6fxn8l01ni8mpm0bd5h856ahv3h9sdzgmymr6fayckjvqzs"))))))
880 ("libffi" ,libffi)
881 ("jack" ,jack-1)
882 ("libsndfile" ,libsndfile)
883 ("glfw" ,glfw)
884 ("apr" ,apr)
885 ("stb-image"
886 ,(let ((revision "1")
887 (commit "152a250a702bf28951bb0220d63bc0c99830c498"))
888 (package
889 (inherit stb-image)
890 (name "stb-image-for-extempore")
891 (version (git-version "0" revision commit))
892 (source
893 (origin (method git-fetch)
894 (uri (git-reference
895 (url "https://github.com/extemporelang/stb")
896 (commit commit)))
897 (sha256
898 (base32
899 "0y0aa20pj9311x2ii06zg8xs34idg14hfgldqc5ymizc6cf1qiqv"))
900 (file-name (git-file-name name version))))
901 (build-system cmake-build-system)
902 (arguments `(#:tests? #f)) ;no tests included
903 (inputs '()))))
904 ("kiss-fft" ,kiss-fft-for-extempore)
905 ("nanovg" ,nanovg-for-extempore)
906 ("portmidi"
907 ,(let ((version "217")
908 (revision "0")
909 (commit "8602f548f71daf5ef638b2f7d224753400cb2158"))
910 (package
911 (inherit portmidi)
912 (name "portmidi-for-extempore")
913 (version (git-version version revision commit))
914 (source (origin
915 (method git-fetch)
916 (uri (git-reference
917 (url "https://github.com/extemporelang/portmidi")
918 (commit commit)))
919 (file-name (git-file-name name version))
920 (sha256
921 (base32
922 "1qidzl1s3kzhczzm96rcd2ppn27a97k2axgfh1zhvyf0s52d7m4w"))))
923 (build-system cmake-build-system)
924 (arguments `(#:tests? #f)) ;no tests
925 (native-inputs '()))))
926 ("assimp" ,assimp)
927 ("alsa-lib" ,alsa-lib)
928 ("portaudio" ,portaudio)
929 ("mesa" ,mesa)
930 ("pcre" ,pcre)
931 ("zlib" ,zlib)))
932 (native-inputs
933 `(("perl" ,perl)
934 ("emacs" ,emacs-no-x)))
935 ;; Extempore refuses to build on architectures other than x86_64
936 (supported-systems '("x86_64-linux"))
937 (home-page "https://digego.github.io/extempore/")
938 (synopsis "Programming environment for live coding of multimedia")
939 (description
940 "Extempore is a programming language and runtime environment designed
941 with live programming in mind. It supports interactive programming in a REPL
942 style, compiling and binding code just-in-time. Although Extempore has its
943 roots in 'live coding' of audiovisual media art, it is suitable for any task
944 domain where dynamic run-time modifiability and good numerical performance are
945 required. Extempore also has strong timing and concurrency semantics, which
946 are helpful when working in problem spaces where timing is important (such as
947 audio and video).")
948 (license license:bsd-2)))
949
950 (define-public surge-synth
951 (package
952 (name "surge-synth")
953 (version "1.7.1")
954 (source
955 (origin
956 (method git-fetch)
957 (uri (git-reference
958 (url "https://github.com/surge-synthesizer/surge")
959 (commit (string-append "release_" version))
960 (recursive? #t))) ; build system expects modules to be there
961 (file-name (git-file-name name version))
962 (sha256
963 (base32
964 "1jhk8iaqh89dnci4446b47315v2lc8gclraygk8m9jl20zpjxl0l"))))
965 (build-system cmake-build-system)
966 (arguments
967 `(#:tests? #f ; no tests included
968 #:phases
969 (modify-phases %standard-phases
970 (add-after 'unpack 'replace-python
971 (lambda* (#:key inputs outputs #:allow-other-keys)
972 (substitute* "CMakeLists.txt"
973 ((" python ")
974 (string-append " " (assoc-ref inputs "python")
975 "/bin/python3 ")))
976 #t))
977 (add-after 'unpack 'fix-data-directory-name
978 (lambda* (#:key inputs outputs #:allow-other-keys)
979 (substitute* "src/common/SurgeStorage.cpp"
980 (("/usr") (assoc-ref outputs "out")))
981 #t))
982 (replace 'install ; no install target
983 (lambda* (#:key inputs outputs #:allow-other-keys)
984 (let* ((src (assoc-ref inputs "source"))
985 (out (assoc-ref outputs "out"))
986 (share (string-append out "/share"))
987 (lib (string-append out "/lib"))
988 (lv2 (string-append lib "/lv2"))
989 (vst3 (string-append lib "/vst3")))
990 (mkdir-p lv2)
991 (mkdir-p vst3)
992 ;; Install LV2 plugin.
993 (copy-recursively "surge_products/Surge.lv2"
994 (string-append lv2 "/Surge.lv2"))
995 ;; Install VST3 plugin.
996 (copy-recursively "surge_products/Surge.vst3"
997 (string-append vst3 "/Surge.vst3"))
998 ;; Install data.
999 (copy-recursively (string-append src "/resources/data")
1000 (string-append share "/Surge"))
1001 #t))))))
1002 (inputs
1003 `(("cairo" ,cairo)
1004 ("libxkbcommon" ,libxkbcommon)
1005 ("python" ,python)
1006 ("xcb-util" ,xcb-util)
1007 ("xcb-util-cursor" ,xcb-util-cursor)
1008 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1009 (native-inputs
1010 `(("pkg-config" ,pkg-config)))
1011 (home-page "https://surge-synthesizer.github.io/")
1012 (synopsis "Synthesizer plugin")
1013 (description
1014 "Surge is a subtractive hybrid digital synthesizer. Each patch contains
1015 two @dfn{scenes} which are separate instances of the entire synthesis
1016 engine (except effects) that can be used for layering or split patches.")
1017 (license license:gpl3+)))
1018
1019 (define-public klick
1020 (package
1021 (name "klick")
1022 (version "0.12.2")
1023 (source (origin
1024 (method url-fetch)
1025 (uri (string-append "http://das.nasophon.de/download/klick-"
1026 version ".tar.gz"))
1027 (sha256
1028 (base32
1029 "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j"))))
1030 (build-system scons-build-system)
1031 (arguments
1032 `(#:scons-flags (list (string-append "PREFIX=" %output))
1033 #:scons ,scons-python2
1034 #:tests? #f ; no "check" target
1035 #:phases
1036 (modify-phases %standard-phases
1037 (add-after 'unpack 'be-permissive
1038 (lambda _
1039 (substitute* "SConstruct"
1040 (("'-Wall'") "'-Wall', '-fpermissive'"))
1041 #t))
1042 (add-after 'unpack 'replace-removed-scons-syntax
1043 (lambda _
1044 (substitute* "SConstruct"
1045 (("BoolOption") "BoolVariable")
1046 (("PathOption") "PathVariable")
1047 (("Options") "Variables"))
1048 #t)))))
1049 (inputs
1050 `(("boost" ,boost)
1051 ("jack" ,jack-1)
1052 ("libsndfile" ,libsndfile)
1053 ("libsamplerate" ,libsamplerate)
1054 ("liblo" ,liblo)
1055 ("rubberband" ,rubberband)))
1056 (native-inputs
1057 `(("pkg-config" ,pkg-config)))
1058 (home-page "http://das.nasophon.de/klick/")
1059 (synopsis "Metronome for JACK")
1060 (description
1061 "klick is an advanced command-line based metronome for JACK. It allows
1062 you to define complex tempo maps for entire songs or performances.")
1063 (license license:gpl2+)))
1064
1065 (define-public glyr
1066 (package
1067 (name "glyr")
1068 (version "1.0.10")
1069 (source (origin
1070 (method git-fetch)
1071 (uri (git-reference
1072 (url "https://github.com/sahib/glyr")
1073 (commit version)))
1074 (file-name (git-file-name name version))
1075 (sha256
1076 (base32
1077 "1miwbqzkhg0v3zysrwh60pj9sv6ci4lzq2vq2hhc6pc6hdyh8xyr"))))
1078 (build-system cmake-build-system)
1079 (arguments
1080 '(#:configure-flags '("-DTEST=true")
1081 #:phases
1082 (modify-phases %standard-phases
1083 (add-after 'unpack 'patch-tests
1084 (lambda _
1085 (substitute* "spec/capi/check_api.c"
1086 (("fail_unless \\(c != NULL,\"Could not load www.google.de\"\\);")
1087 ""))
1088 #t))
1089 (replace 'check
1090 (lambda* (#:key tests? #:allow-other-keys)
1091 (when tests?
1092 ;; capi tests
1093 (invoke "bin/check_api")
1094 ;; (invoke "bin/check_opt") TODO Very dependent on the network
1095 (invoke "bin/check_dbc"))
1096
1097 ;; TODO Work out how to run the spec/providers Python tests
1098 #t)))))
1099 (inputs
1100 `(("glib" ,glib)
1101 ("curl" ,curl)
1102 ("sqlite" ,sqlite)))
1103 (native-inputs
1104 `(("pkg-config" ,pkg-config)
1105 ("check" ,check)))
1106 (home-page "https://github.com/sahib/glyr")
1107 (synopsis "Search engine for music related metadata")
1108 (description
1109 "Glyr comes both in a command-line interface tool (@command{glyrc}) and
1110 as a C library (libglyr).
1111
1112 The sort of metadata glyr is searching (and downloading) is usually the data
1113 you see in your musicplayer. And indeed, originally it was written to serve
1114 as internally library for a musicplayer, but has been extended to work as a
1115 standalone program which is able to download cover art, lyrics, photos,
1116 biographies, reviews and more.")
1117 (license license:lgpl3+)))
1118
1119 (define-public gtklick
1120 (package
1121 (name "gtklick")
1122 (version "0.6.4")
1123 (source (origin
1124 (method url-fetch)
1125 (uri (string-append "http://das.nasophon.de/download/gtklick-"
1126 version ".tar.gz"))
1127 (sha256
1128 (base32
1129 "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp"))))
1130 (build-system python-build-system)
1131 (arguments
1132 `(#:tests? #f ; no tests
1133 #:python ,python-2
1134 #:phases
1135 (modify-phases %standard-phases
1136 (add-before 'build 'add-sitedirs
1137 ;; .pth files are not automatically interpreted unless the
1138 ;; directories containing them are added as "sites". The directories
1139 ;; are then added to those in the PYTHONPATH. This is required for
1140 ;; the operation of pygtk.
1141 (lambda _
1142 (substitute* "gtklick/gtklick.py"
1143 (("import pygtk")
1144 "import pygtk, site, sys
1145 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))))
1146 (add-after 'unpack 'inject-store-path-to-klick
1147 (lambda* (#:key inputs #:allow-other-keys)
1148 (substitute* "gtklick/klick_backend.py"
1149 (("KLICK_PATH = 'klick'")
1150 (string-append "KLICK_PATH = '"
1151 (assoc-ref inputs "klick")
1152 "/bin/klick'")))
1153 #t)))))
1154 (inputs
1155 `(("klick" ,klick)
1156 ("python2-pyliblo" ,python2-pyliblo)
1157 ("python2-pygtk" ,python2-pygtk)))
1158 (native-inputs
1159 `(("gettext" ,gettext-minimal)))
1160 (home-page "http://das.nasophon.de/gtklick/")
1161 (synopsis "Simple metronome with an easy-to-use graphical interface")
1162 (description
1163 "Gtklick is a simple metronome with an easy-to-use graphical user
1164 interface. It is implemented as a frontend to @code{klick}.")
1165 (license license:gpl2+)))
1166
1167 (define-public libgme
1168 (package
1169 (name "libgme")
1170 (version "0.6.3")
1171 (source (origin
1172 (method url-fetch)
1173 (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/"
1174 "downloads/game-music-emu-" version
1175 ".tar.xz"))
1176 (sha256
1177 (base32
1178 "07857vdkak306d9s5g6fhmjyxk7vijzjhkmqb15s7ihfxx9lx8xb"))))
1179 (build-system cmake-build-system)
1180 (arguments
1181 '(#:tests? #f)) ; no check target
1182 (home-page "https://bitbucket.org/mpyne/game-music-emu")
1183 (synopsis "Video game music file playback library")
1184 (description
1185 "Game-music-emu is a collection of video game music file emulators that
1186 support the following formats and systems:
1187 @table @code
1188 @item AY
1189 ZX Spectrum/Asmtrad CPC
1190 @item GBS
1191 Nintendo Game Boy
1192 @item GYM
1193 Sega Genesis/Mega Drive
1194 @item HES
1195 NEC TurboGrafx-16/PC Engine
1196 @item KSS
1197 MSX Home Computer/other Z80 systems (doesn't support FM sound)
1198 @item NSF/NSFE
1199 Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
1200 @item SAP
1201 Atari systems using POKEY sound chip
1202 @item SPC
1203 Super Nintendo/Super Famicom
1204 @item VGM/VGZ
1205 Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
1206 @end table")
1207 (license (list license:lgpl2.1+
1208 ;; demo and player directories are under the Expat license
1209 license:expat))))
1210
1211 (define-public ninjas2
1212 (package
1213 (name "ninjas2")
1214 (version "0.2.0")
1215 (source
1216 (origin
1217 (method git-fetch)
1218 (uri
1219 (git-reference
1220 (url "https://github.com/clearly-broken-software/ninjas2")
1221 (commit (string-append "v" version))
1222 ;; Bundles a specific commit of the DISTRHO plugin framework.
1223 (recursive? #t)))
1224 (file-name (git-file-name name version))
1225 (sha256
1226 (base32 "1kwp6pmnfar2ip9693gprfbcfscklgri1k1ycimxzlqr61nkd2k9"))))
1227 (build-system gnu-build-system)
1228 (arguments
1229 `(#:tests? #f ;no tests
1230 #:make-flags
1231 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1232 (string-append "CC=" ,(cc-for-target)))
1233 #:phases
1234 (modify-phases %standard-phases
1235 (delete 'configure) ;no configure target
1236 (replace 'install ;no install target
1237 (lambda* (#:key outputs #:allow-other-keys)
1238 (let* ((out (assoc-ref outputs "out"))
1239 (bin (string-append out "/bin"))
1240 (lv2 (string-append out "/lib/lv2")))
1241 ;; Install LV2.
1242 (for-each
1243 (lambda (file)
1244 (copy-recursively file
1245 (string-append lv2 "/" (basename file))))
1246 (find-files "bin" "\\.lv2$" #:directories? #t))
1247 ;; Install executables.
1248 (for-each
1249 (lambda (file)
1250 (install-file file bin))
1251 (find-files "bin"
1252 (lambda (name stat)
1253 (and
1254 (equal? (dirname name) "bin")
1255 (not (string-suffix? ".so" name))
1256 (not (string-suffix? ".lv2" name))))))
1257 #t))))))
1258 (inputs
1259 `(("fftwf" ,fftwf)
1260 ("jack" ,jack-1) ; for the standalone JACK application
1261 ("libsamplerate" ,libsamplerate)
1262 ("mesa" ,mesa)
1263 ("libsndfile" ,libsndfile)))
1264 (native-inputs
1265 `(("ladspa" ,ladspa)
1266 ("lv2" ,lv2)
1267 ("pkg-config" ,pkg-config)))
1268 (synopsis "Sample slicer audio plugin")
1269 (description
1270 "Ninjas 2 is a rewrite of the Ninjas sample slicer audio plugin.
1271 Its goal is to be an easy to use sample slicer with quick slicing of samples
1272 and auto-mapping slices to MIDI note numbers.")
1273 (home-page "https://github.com/clearly-broken-software/ninjas2")
1274 (license license:gpl3+)))
1275
1276 (define-public lilypond
1277 (package
1278 (name "lilypond")
1279 (version "2.20.0")
1280 (source
1281 (origin
1282 (method url-fetch)
1283 (uri (string-append "http://lilypond.org/download/sources/"
1284 "v" (version-major+minor version) "/"
1285 "lilypond-" version ".tar.gz"))
1286 (sha256
1287 (base32 "0qd6pd4siss016ffmcyw5qc6pr2wihnvrgd4kh1x725w7wr02nar"))))
1288 (build-system gnu-build-system)
1289 (arguments
1290 `(#:tests? #f ;out-test/collated-files.html fails
1291 #:out-of-source? #t
1292 #:make-flags '("conf=www") ;to generate images for info manuals
1293 #:configure-flags
1294 (list "CONFIGURATION=www"
1295 (string-append "--with-texgyre-dir="
1296 (assoc-ref %build-inputs "font-tex-gyre")
1297 "/share/fonts/opentype/"))
1298 #:phases
1299 (modify-phases %standard-phases
1300 (add-after 'unpack 'use-texlive-union
1301 (lambda _
1302 ;; FIXME: fonts are not found and have to be generated in HOME.
1303 (setenv "HOME" "/tmp")
1304 ;; The test for the "lh" package fails, even though it is among
1305 ;; the inputs.
1306 (substitute* "configure"
1307 (("TEX_FIKPARM=.*") "TEX_FIKPARM=found\n"))
1308 #t))
1309 (add-after 'unpack 'fix-path-references
1310 (lambda _
1311 (substitute* "scm/backend-library.scm"
1312 (("\\(search-executable '\\(\"gs\"\\)\\)")
1313 (string-append "\"" (which "gs") "\""))
1314 (("\"/bin/sh\"")
1315 (string-append "\"" (which "sh") "\"")))
1316 #t))
1317 (add-before 'configure 'prepare-configuration
1318 (lambda _
1319 (substitute* "configure"
1320 (("SHELL=/bin/sh") "SHELL=sh")
1321 ;; When checking the fontforge version do not consider the
1322 ;; version string that's part of the directory.
1323 (("head -n") "tail -n")
1324 ;; Also allow for SOURCE_DATE_EPOCH = 0 in fontforge.
1325 (("20110222") "19700101"))
1326 (setenv "out" "www")
1327 (setenv "conf" "www")
1328 #t))
1329 (add-after 'install 'install-info
1330 (lambda _
1331 (invoke "make"
1332 "-j" (number->string (parallel-job-count))
1333 "conf=www" "install-info")
1334 #t)))))
1335 (inputs
1336 `(("guile" ,guile-1.8)
1337 ("font-dejavu" ,font-dejavu)
1338 ("font-tex-gyre" ,font-tex-gyre)
1339 ("fontconfig" ,fontconfig)
1340 ("freetype" ,freetype)
1341 ("ghostscript" ,ghostscript)
1342 ("pango" ,pango)
1343 ("python" ,python-2)))
1344 (native-inputs
1345 `(("bison" ,bison)
1346 ("perl" ,perl)
1347 ("flex" ,flex)
1348 ("fontforge" ,fontforge)
1349 ("dblatex" ,dblatex)
1350 ("gettext" ,gettext-minimal)
1351 ("imagemagick" ,imagemagick)
1352 ("netpbm" ,netpbm) ;for pngtopnm
1353 ("texlive" ,(texlive-union (list texlive-metapost
1354 texlive-generic-epsf
1355 texlive-latex-lh
1356 texlive-latex-cyrillic)))
1357 ("texinfo" ,texinfo)
1358 ("texi2html" ,texi2html-1.82)
1359 ("rsync" ,rsync)
1360 ("pkg-config" ,pkg-config)
1361 ("zip" ,zip)))
1362 (home-page "http://www.lilypond.org/")
1363 (synopsis "Music typesetting")
1364 (description
1365 "GNU LilyPond is a music typesetter, which produces high-quality sheet
1366 music. Music is input in a text file containing control sequences which are
1367 interpreted by LilyPond to produce the final document. It is extendable with
1368 Guile.")
1369 (license license:gpl3+)
1370
1371 ;; On armhf and mips64el, building the documentation sometimes leads to
1372 ;; more than an hour of silence, so double the max silent time.
1373 (properties `((max-silent-time . 7200)))))
1374
1375 (define-public non-sequencer
1376 ;; The latest tagged release is three years old and uses a custom build
1377 ;; system, so we take the last commit.
1378 (let ((commit "5ae43bb27c42387052a73e5ffc5d33efb9d946a9")
1379 (revision "4"))
1380 (package
1381 (name "non-sequencer")
1382 (version (string-append "1.9.5-" revision "." (string-take commit 7)))
1383 (source (origin
1384 (method git-fetch)
1385 (uri (git-reference
1386 (url "git://git.tuxfamily.org/gitroot/non/non.git")
1387 (commit commit)))
1388 (sha256
1389 (base32
1390 "1cljkkyi9dxqpqhx8y6l2ja4zjmlya26m26kqxml8gx08vyvddhx"))
1391 (file-name (string-append name "-" version "-checkout"))))
1392 (build-system waf-build-system)
1393 (arguments
1394 `(#:tests? #f ;no "check" target
1395 #:configure-flags
1396 (list "--project=sequencer"
1397 ;; Disable the use of SSE unless on x86_64.
1398 ,@(if (not (string-prefix? "x86_64" (or (%current-target-system)
1399 (%current-system))))
1400 '("--disable-sse")
1401 '()))
1402 #:python ,python-2))
1403 (inputs
1404 `(("jack" ,jack-1)
1405 ("libsigc++" ,libsigc++)
1406 ("liblo" ,liblo)
1407 ("ntk" ,ntk)))
1408 (native-inputs
1409 `(("pkg-config" ,pkg-config)))
1410 (home-page "https://non.tuxfamily.org/wiki/Non%20Sequencer")
1411 (synopsis "Pattern-based MIDI sequencer")
1412 (description
1413 "The Non Sequencer is a powerful, lightweight, real-time,
1414 pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for
1415 MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non
1416 Sequencer happens on-line, in real-time. Music can be composed live, while the
1417 transport is rolling.")
1418 (license license:gpl2+))))
1419
1420 (define-public non-session-manager
1421 (package (inherit non-sequencer)
1422 (name "non-session-manager")
1423 (arguments
1424 (substitute-keyword-arguments (package-arguments non-sequencer)
1425 ((#:configure-flags flags)
1426 `(cons "--project=session-manager"
1427 (delete "--project=sequencer" ,flags)))))
1428 (inputs
1429 `(("jack" ,jack-1)
1430 ("liblo" ,liblo)
1431 ("ntk" ,ntk)))
1432 (native-inputs
1433 `(("pkg-config" ,pkg-config)))
1434 (home-page "https://non.tuxfamily.org/nsm/")
1435 (synopsis "Audio session management")
1436 (description
1437 "The Non Session Manager is an API and an implementation for audio
1438 session management. NSM clients use a well-specified OSC protocol to
1439 communicate with the session management daemon.")
1440 (license license:gpl2+)))
1441
1442 (define-public non-mixer
1443 (package (inherit non-sequencer)
1444 (name "non-mixer")
1445 (arguments
1446 (substitute-keyword-arguments (package-arguments non-sequencer)
1447 ((#:configure-flags flags)
1448 `(cons "--project=mixer"
1449 (delete "--project=sequencer" ,flags)))))
1450 (inputs
1451 `(("jack" ,jack-1)
1452 ("liblo" ,liblo)
1453 ("ladspa" ,ladspa)
1454 ("lrdf" ,lrdf)
1455 ("ntk" ,ntk)))
1456 (native-inputs
1457 `(("pkg-config" ,pkg-config)))
1458 (home-page "https://non.tuxfamily.org/wiki/Non%20Mixer")
1459 (synopsis "Modular digital audio mixer")
1460 (description
1461 "The Non Mixer is a powerful, reliable and fast modular digital audio
1462 mixer. It utilizes JACK for inter-application audio I/O and the NTK GUI
1463 toolkit for a fast and lightweight user interface. Non Mixer can be used
1464 alone or in concert with Non Timeline and Non Sequencer to form a complete
1465 studio.")
1466 (license license:gpl2+)))
1467
1468 (define-public non-timeline
1469 (package (inherit non-sequencer)
1470 (name "non-timeline")
1471 (arguments
1472 (substitute-keyword-arguments (package-arguments non-sequencer)
1473 ((#:configure-flags flags)
1474 `(cons "--project=timeline"
1475 (delete "--project=sequencer" ,flags)))))
1476 (inputs
1477 `(("jack" ,jack-1)
1478 ("liblo" ,liblo)
1479 ("libsndfile" ,libsndfile)
1480 ("ntk" ,ntk)))
1481 (native-inputs
1482 `(("pkg-config" ,pkg-config)))
1483 (home-page "https://non.tuxfamily.org/wiki/Non%20Timeline")
1484 (synopsis "Modular digital audio timeline arranger")
1485 (description
1486 "The Non Timeline is a powerful, reliable and fast modular digital audio
1487 timeline arranger. It utilizes JACK for inter-application audio I/O and the
1488 NTK GUI toolkit for a fast and lightweight user interface. Non Timeline can
1489 be used alone or in concert with Non Mixer and Non Sequencer to form a
1490 complete studio.")
1491 (license license:gpl2+)))
1492
1493 (define-public tascam-gtk
1494 ;; This commit represents the latest version at the time of this writing.
1495 (let ((commit "17b8575ff88dfd2ede0f7ef9c5c5597ab8a00702")
1496 (revision "0"))
1497 (package
1498 (name "tascam-gtk")
1499 (version (git-version "0.4" revision commit))
1500 (source (origin
1501 (method git-fetch)
1502 (uri (git-reference
1503 (url "https://github.com/onkelDead/tascam-gtk")
1504 (commit commit)))
1505 (file-name (git-file-name name version))
1506 (sha256
1507 (base32
1508 "07k7rccqqg7lnygkh97a200l1i6s1rl92n01v0q6n4257sinir6f"))))
1509 (build-system gnu-build-system)
1510 (inputs
1511 `(("liblo" ,liblo)
1512 ("gtkmm" ,gtkmm)
1513 ("alsa-lib" ,alsa-lib)
1514 ("libxmlplusplus" ,libxmlplusplus-2.6)))
1515 (native-inputs
1516 `(("glib:bin" ,glib "bin")
1517 ("pkg-config" ,pkg-config)))
1518 (home-page "https://github.com/onkelDead/tascam-gtk")
1519 (synopsis "GTK+ based application to control Tascam US-16x08 DSP mixer")
1520 (description "This is a mixer application to control the Tascam US-16x08
1521 audio interface. This device contains about 280 control elements and this
1522 mixer application aims to provide comfortable access to the DSP effects the
1523 device supports.")
1524 (license license:expat))))
1525
1526 (define-public bsequencer
1527 (package
1528 (name "bsequencer")
1529 (version "1.8.0")
1530 (source (origin
1531 (method git-fetch)
1532 (uri (git-reference
1533 (url "https://github.com/sjaehn/BSEQuencer")
1534 (commit version)))
1535 (file-name (git-file-name name version))
1536 (sha256
1537 (base32
1538 "0w7iwzz2r4a699fi24qk71vv2k3jpl9ylzlgmvyc3rlgad0m01k1"))))
1539 (build-system gnu-build-system)
1540 (arguments
1541 `(#:make-flags
1542 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1543 #:tests? #f ; there are none
1544 #:phases
1545 (modify-phases %standard-phases
1546 (delete 'configure))))
1547 (inputs
1548 `(("cairo" ,cairo)
1549 ("lv2" ,lv2)
1550 ("libx11" ,libx11)))
1551 (native-inputs
1552 `(("pkg-config" ,pkg-config)))
1553 (home-page "https://github.com/sjaehn/BSEQuencer")
1554 (synopsis "Multi-channel MIDI step sequencer LV2 plugin")
1555 (description
1556 "This package provides a multi-channel MIDI step sequencer LV2 plugin
1557 with a selectable pattern matrix size.")
1558 (license license:gpl3+)))
1559
1560 (define-public bchoppr
1561 (package
1562 (inherit bsequencer)
1563 (name "bchoppr")
1564 (version "1.8.0")
1565 (source
1566 (origin
1567 (method git-fetch)
1568 (uri (git-reference
1569 (url "https://github.com/sjaehn/BChoppr")
1570 (commit version)))
1571 (file-name (git-file-name name version))
1572 (sha256
1573 (base32
1574 "1nd6byy75f0rbz9dm9drhxmpsfhxhg0y7q3v2m3098llynhy9k2j"))))
1575 (synopsis "Audio stream-chopping LV2 plugin")
1576 (description "B.Choppr cuts the audio input stream into a repeated
1577 sequence of up to 16 chops. Each chop can be leveled up or down (gating).
1578 B.Choppr is the successor of B.Slizr.")
1579 (home-page "https://github.com/sjaehn/BChoppr")
1580 (license license:gpl3+)))
1581
1582 (define-public bshapr
1583 (package
1584 (inherit bsequencer)
1585 (name "bshapr")
1586 (version "0.9")
1587 (source
1588 (origin
1589 (method git-fetch)
1590 (uri (git-reference
1591 (url "https://github.com/sjaehn/BShapr")
1592 (commit (string-append "v" version))))
1593 (file-name (git-file-name name version))
1594 (sha256
1595 (base32 "04zd3a178i2nivg5rjailzqvc5mlnilmhj1ziygmbhshbrywplri"))))
1596 (synopsis "Beat/envelope shaper LV2 plugin")
1597 (description "B.Shapr is a beat/envelope shaper LV2 plugin.")
1598 (home-page "https://github.com/sjaehn/BShapr")
1599 (license license:gpl3+)))
1600
1601 (define-public bjumblr
1602 (package
1603 (inherit bsequencer)
1604 (name "bjumblr")
1605 (version "1.4.2")
1606 (source
1607 (origin
1608 (method git-fetch)
1609 (uri (git-reference
1610 (url "https://github.com/sjaehn/BJumblr")
1611 (commit version)))
1612 (file-name (git-file-name name version))
1613 (sha256
1614 (base32
1615 "0kl6hrxmqrdf0195bfnzsa2h1073fgiqrfhg2276fm1954sm994v"))))
1616 (inputs
1617 `(("cairo" ,cairo)
1618 ("libsndfile" ,libsndfile)
1619 ("lv2" ,lv2)))
1620 (synopsis "Pattern-controlled audio stream/sample re-sequencer LV2 plugin")
1621 (description "B.Jumblr is a pattern-controlled audio stream / sample
1622 re-sequencer LV2 plugin.")
1623 (home-page "https://github.com/sjaehn/BJumblr")
1624 (license license:gpl3+)))
1625
1626 (define-public bschaffl
1627 (package
1628 (inherit bsequencer)
1629 (name "bschaffl")
1630 (version "1.2.0")
1631 (source
1632 (origin
1633 (method git-fetch)
1634 (uri (git-reference
1635 (url "https://github.com/sjaehn/BSchaffl")
1636 (commit version)))
1637 (file-name (git-file-name name version))
1638 (sha256
1639 (base32
1640 "1c09acqrbd387ba41f8ch1qykdap5h6cg9if5pgd16i4dmjnpghj"))))
1641 (inputs
1642 `(("cairo" ,cairo)
1643 ("fontconfig" ,fontconfig)
1644 ("libsndfile" ,libsndfile)
1645 ("libx11" ,libx11)
1646 ("lv2" ,lv2)))
1647 (home-page "https://github.com/sjaehn/BSchaffl")
1648 (synopsis "Pattern-controlled MIDI amp & time stretch LV2 plugin")
1649 (description "This package provides an LV2 plugin that allows for
1650 pattern-controlled MIDI amp & time stretching to produce shuffle / swing
1651 effects.
1652
1653 Key features include:
1654
1655 @enumerate
1656 @item MIDI velocity amplification and timing manipulation plugin
1657 @item Swing and shuffle rhythms
1658 @item Pre-generator dynamics
1659 @item Tempo rubato
1660 @item Pattern (sliders) or shape-controlled
1661 @item MIDI filters
1662 @item Smart quantization
1663 @end itemize
1664 ")
1665 (license license:gpl3+)))
1666
1667 (define-public solfege
1668 (package
1669 (name "solfege")
1670 (version "3.22.2")
1671 (source (origin
1672 (method url-fetch)
1673 (uri (string-append
1674 "mirror://gnu/solfege/solfege-"
1675 version ".tar.xz"))
1676 (sha256
1677 (base32
1678 "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i"))))
1679 (build-system gnu-build-system)
1680 (arguments
1681 `(#:tests? #f ; xmllint attempts to download DTD
1682 #:test-target "test"
1683 #:phases
1684 (modify-phases %standard-phases
1685 (add-after 'unpack 'fix-configuration
1686 (lambda* (#:key inputs #:allow-other-keys)
1687 (substitute* "default.config"
1688 (("/usr/bin/aplay") "aplay")
1689 (("/usr/bin/timidity") "timidity")
1690 (("/usr/bin/mpg123") "mpg123")
1691 (("/usr/bin/ogg123") "ogg123"))
1692 #t))
1693 (add-before 'build 'patch-python-shebangs
1694 (lambda _
1695 ;; Two python scripts begin with a Unicode BOM, so patch-shebang
1696 ;; has no effect.
1697 (substitute* '("solfege/parsetree.py"
1698 "solfege/presetup.py")
1699 (("#!/usr/bin/python") (string-append "#!" (which "python"))))
1700 #t))
1701 (add-before 'build 'add-sitedirs
1702 ;; .pth files are not automatically interpreted unless the
1703 ;; directories containing them are added as "sites". The directories
1704 ;; are then added to those in the PYTHONPATH. This is required for
1705 ;; the operation of pygtk and pygobject.
1706 (lambda _
1707 (substitute* "run-solfege.py"
1708 (("import os")
1709 "import os, site
1710 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))
1711 #t))
1712 (add-before 'build 'adjust-config-file-prefix
1713 (lambda* (#:key outputs #:allow-other-keys)
1714 (substitute* "run-solfege.py"
1715 (("prefix = os.path.*$")
1716 (string-append "prefix = " (assoc-ref outputs "out"))))
1717 #t))
1718 (add-after 'install 'wrap-program
1719 (lambda* (#:key inputs outputs #:allow-other-keys)
1720 ;; Make sure 'solfege' runs with the correct PYTHONPATH.
1721 (let* ((out (assoc-ref outputs "out"))
1722 (path (getenv "PYTHONPATH")))
1723 (wrap-program (string-append out "/bin/solfege")
1724 `("PYTHONPATH" ":" prefix (,path))))
1725 #t)))))
1726 (inputs
1727 `(("python" ,python-2)
1728 ("pygtk" ,python2-pygtk)
1729 ("gettext" ,gettext-minimal)
1730 ("gtk" ,gtk+)
1731 ("lilypond" ,lilypond)))
1732 (native-inputs
1733 `(("pkg-config" ,pkg-config)
1734 ("txt2man" ,txt2man)
1735 ("libxml2" ,libxml2) ; for tests
1736 ("ghostscript" ,ghostscript)
1737 ("texinfo" ,texinfo)))
1738 (home-page "https://www.gnu.org/software/solfege/")
1739 (synopsis "Ear training")
1740 (description
1741 "GNU Solfege is a program for practicing musical ear-training. With it,
1742 you can practice your recognition of various musical intervals and chords. It
1743 features a statistics overview so you can monitor your progress across several
1744 sessions. Solfege is also designed to be extensible so you can easily write
1745 your own lessons.")
1746 (license license:gpl3+)))
1747
1748 (define-public powertabeditor
1749 (package
1750 (name "powertabeditor")
1751 (version "2.0.0-alpha14")
1752 (source (origin
1753 (method git-fetch)
1754 (uri (git-reference
1755 (url "https://github.com/powertab/powertabeditor")
1756 (commit version)))
1757 (file-name (git-file-name name version))
1758 (sha256
1759 (base32
1760 "1wsvni2aa9h2bpndlic7ckch4n600ahwm56n521y5vxivwjx3jmj"))))
1761 (build-system cmake-build-system)
1762 (arguments
1763 `(#:phases
1764 (modify-phases %standard-phases
1765 (replace 'check (lambda _ (invoke "bin/pte_tests")))
1766 (add-after 'unpack 'fix-pugixml-detection
1767 (lambda _
1768 (substitute* "cmake/third_party/pugixml.cmake"
1769 (("add_library") "#add_library"))
1770 #t)))))
1771 (inputs
1772 `(("alsa-lib" ,alsa-lib)
1773 ("boost" ,boost)
1774 ("minizip" ,minizip)
1775 ("pugixml" ,pugixml)
1776 ("qtbase" ,qtbase)
1777 ("rapidjson" ,rapidjson)
1778 ("rtmidi" ,rtmidi)
1779 ("timidity" ,timidity++)
1780 ("zlib" ,zlib)))
1781 (native-inputs
1782 `(("doctest" ,doctest)
1783 ("pkg-config" ,pkg-config)))
1784 (home-page "https://github.com/powertab/powertabedito")
1785 (synopsis "Guitar tablature editor")
1786 (description
1787 "Power Tab Editor 2.0 is the successor to the famous original Power Tab
1788 Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
1789 (license license:gpl3+)))
1790
1791 (define-public jalv-select
1792 (package
1793 (name "jalv-select")
1794 (version "1.3")
1795 (source (origin
1796 (method git-fetch)
1797 (uri (git-reference
1798 (url "https://github.com/brummer10/jalv_select")
1799 (commit (string-append "v" version))))
1800 (file-name (git-file-name name version))
1801 (sha256
1802 (base32
1803 "15yanq1wra0hyh6x72ji7pk562iddg476g3vksj495x91zhnl6vm"))))
1804 (build-system gnu-build-system)
1805 (arguments
1806 `(#:make-flags
1807 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1808 #:phases
1809 (modify-phases %standard-phases
1810 (delete 'configure)
1811 (add-after 'unpack 'ignore-PATH
1812 (lambda* (#:key inputs #:allow-other-keys)
1813 (substitute* "jalv.select.cpp"
1814 (("echo \\$PATH.*tr ':'.*xargs ls")
1815 (string-append "ls -1 " (assoc-ref inputs "jalv") "/bin")))
1816 #t))
1817 (add-before 'reset-gzip-timestamps 'make-manpages-writable
1818 (lambda* (#:key outputs #:allow-other-keys)
1819 (for-each make-file-writable
1820 (find-files (string-append (assoc-ref outputs "out")
1821 "/share/man")
1822 ".*\\.gz$"))
1823 #t)))))
1824 (inputs
1825 `(("lilv" ,lilv)
1826 ("lv2" ,lv2)
1827 ("jalv" ,jalv)
1828 ("gtkmm" ,gtkmm-2)))
1829 (native-inputs
1830 `(("pkg-config" ,pkg-config)))
1831 (home-page "https://github.com/brummer10/jalv_select")
1832 (synopsis "GUI to select LV2 plugins and run them with jalv")
1833 (description
1834 "The jalv.select package provides a graphical user interface allowing
1835 users to select LV2 plugins and run them with jalv.")
1836 (license license:public-domain)))
1837
1838 (define-public synthv1
1839 (package
1840 (name "synthv1")
1841 (version "0.9.18")
1842 (source (origin
1843 (method url-fetch)
1844 (uri
1845 (string-append "mirror://sourceforge/synthv1/synthv1/" version
1846 "/synthv1-" version ".tar.gz"))
1847 (sha256
1848 (base32
1849 "1sggiaswcdpyxnnbg583ldg0m92fiys6nc5qdiqli7450w416a6c"))))
1850 (build-system gnu-build-system)
1851 (arguments
1852 `(#:tests? #f)) ; there are no tests
1853 (inputs
1854 `(("jack" ,jack-1)
1855 ("lv2" ,lv2)
1856 ("alsa-lib" ,alsa-lib)
1857 ("non-session-manager" ,non-session-manager)
1858 ("liblo" ,liblo)
1859 ("qtbase" ,qtbase)))
1860 (native-inputs
1861 `(("pkg-config" ,pkg-config)
1862 ("qttools" ,qttools)))
1863 (home-page "https://synthv1.sourceforge.io")
1864 (synopsis "Polyphonic subtractive synthesizer")
1865 (description
1866 "Synthv1 is an old-school subtractive polyphonic synthesizer with four
1867 oscillators and stereo effects.")
1868 (license license:gpl2+)))
1869
1870 (define-public drumkv1
1871 (package
1872 (name "drumkv1")
1873 (version "0.9.18")
1874 (source (origin
1875 (method url-fetch)
1876 (uri
1877 (string-append "mirror://sourceforge/drumkv1/drumkv1/" version
1878 "/drumkv1-" version ".tar.gz"))
1879 (sha256
1880 (base32
1881 "1bzkaz7sqx1pvirja8zm7i2ckzl5ad6xspr4840389ik3l8qpnr5"))))
1882 (build-system gnu-build-system)
1883 (arguments
1884 `(#:tests? #f)) ; there are no tests
1885 (inputs
1886 `(("jack" ,jack-1)
1887 ("lv2" ,lv2)
1888 ("libsndfile" ,libsndfile)
1889 ("alsa-lib" ,alsa-lib)
1890 ("non-session-manager" ,non-session-manager)
1891 ("liblo" ,liblo)
1892 ("qtbase" ,qtbase)))
1893 (native-inputs
1894 `(("pkg-config" ,pkg-config)
1895 ("qttools" ,qttools)))
1896 (home-page "https://drumkv1.sourceforge.io")
1897 (synopsis "Drum-kit sampler synthesizer with stereo effects")
1898 (description
1899 "Drumkv1 is an old-school drum-kit sampler synthesizer with stereo
1900 effects.")
1901 (license license:gpl2+)))
1902
1903 (define-public samplv1
1904 (package
1905 (name "samplv1")
1906 (version "0.9.18")
1907 (source (origin
1908 (method url-fetch)
1909 (uri
1910 (string-append "mirror://sourceforge/samplv1/samplv1/" version
1911 "/samplv1-" version ".tar.gz"))
1912 (sha256
1913 (base32
1914 "13p5aj1513fwhzi9s4i1a5dbvzmbx9867zb0ddb9s9nbwks4ry3q"))))
1915 (build-system gnu-build-system)
1916 (arguments
1917 `(#:tests? #f)) ; there are no tests
1918 (inputs
1919 `(("jack" ,jack-1)
1920 ("lv2" ,lv2)
1921 ("libsndfile" ,libsndfile)
1922 ("alsa-lib" ,alsa-lib)
1923 ("non-session-manager" ,non-session-manager)
1924 ("liblo" ,liblo)
1925 ("qtbase" ,qtbase)))
1926 (native-inputs
1927 `(("pkg-config" ,pkg-config)
1928 ("qttools" ,qttools)))
1929 (home-page "https://samplv1.sourceforge.io")
1930 (synopsis "Polyphonic sampler synthesizer with stereo effects")
1931 (description
1932 "Samplv1 is an old-school polyphonic sampler synthesizer with stereo
1933 effects.")
1934 (license license:gpl2+)))
1935
1936 (define-public padthv1
1937 (package
1938 (name "padthv1")
1939 (version "0.9.18")
1940 (source (origin
1941 (method url-fetch)
1942 (uri
1943 (string-append "mirror://sourceforge/padthv1/padthv1/" version
1944 "/padthv1-" version ".tar.gz"))
1945 (sha256
1946 (base32
1947 "1karrprb3ijrbiwpr43rl3nxnzc33lnmwrd1832psgr3flnr9fp5"))))
1948 (build-system gnu-build-system)
1949 (arguments
1950 `(#:tests? #f)) ; there are no tests
1951 (inputs
1952 `(("jack" ,jack-1)
1953 ("lv2" ,lv2)
1954 ("alsa-lib" ,alsa-lib)
1955 ("non-session-manager" ,non-session-manager)
1956 ("liblo" ,liblo)
1957 ("fftwf" ,fftwf)
1958 ("qtbase" ,qtbase)))
1959 (native-inputs
1960 `(("pkg-config" ,pkg-config)
1961 ("qttools" ,qttools)))
1962 (home-page "https://padthv1.sourceforge.io")
1963 (synopsis "Polyphonic additive synthesizer")
1964 (description
1965 "Padthv1 is an old-school polyphonic additive synthesizer with stereo
1966 effects. Padthv1 is based on the PADsynth algorithm by Paul Nasca, as a
1967 special variant of additive synthesis.")
1968 (license license:gpl2+)))
1969
1970 (define-public amsynth
1971 (package
1972 (name "amsynth")
1973 (version "1.7.1")
1974 (source
1975 (origin
1976 (method url-fetch)
1977 (uri (string-append "https://github.com/amsynth/amsynth/releases/"
1978 "download/release-" version
1979 "/amsynth-" version ".tar.bz2"))
1980 (sha256
1981 (base32
1982 "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
1983 (build-system gnu-build-system)
1984 (arguments
1985 `(#:phases
1986 (modify-phases %standard-phases
1987 (add-after 'unpack 'patch-file-names
1988 (lambda _
1989 (substitute* "src/GUI/editor_pane.c"
1990 (("/usr/bin/unzip") (which "unzip")))
1991 (substitute* "src/GUI/GUI.cc"
1992 (("/usr/bin/which") (which "which")))
1993 #t)))))
1994 (inputs
1995 `(("alsa-lib" ,alsa-lib)
1996 ("gtk+" ,gtk+-2)
1997 ("gtkmm" ,gtkmm-2)
1998 ("jack" ,jack-1)
1999 ("lash" ,lash)
2000 ("libsndfile" ,libsndfile)
2001 ("lv2" ,lv2)
2002 ;; External commands invoked at run time.
2003 ("unzip" ,unzip)
2004 ("which" ,which)))
2005 (native-inputs
2006 `(("intltool" ,intltool)
2007 ("pkg-config" ,pkg-config)))
2008 (home-page "https://amsynth.github.io")
2009 (synopsis "Analog modeling synthesizer")
2010 (description
2011 "amsynth is an easy-to-use software synthesizer with a classic
2012 subtractive synthesizer topology. Its features include: dual
2013 oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct
2014 resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato
2015 keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO
2016 which can modulate the oscillators, filter, and amplitude; distortion and
2017 reverb effects.")
2018 (license license:gpl2+)))
2019
2020 (define-public setbfree
2021 (package
2022 (name "setbfree")
2023 (version "0.8.11")
2024 (source (origin
2025 (method git-fetch)
2026 (uri (git-reference
2027 (url "https://github.com/pantherb/setBfree")
2028 (commit (string-append "v" version))))
2029 (file-name (git-file-name name version))
2030 (sha256
2031 (base32
2032 "1s3ps3cjwlm63ml4izb7mizy8ci5pl9a19lvz62xf0br089h3afc"))))
2033 (build-system gnu-build-system)
2034 (arguments
2035 `(#:tests? #f ; no "check" target
2036 #:make-flags
2037 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2038 (string-append "FONTFILE="
2039 (assoc-ref %build-inputs "font-bitstream-vera")
2040 "/share/fonts/truetype/VeraBd.ttf")
2041 ;; Disable unsupported optimization flags on non-x86
2042 ,@(let ((system (or (%current-target-system)
2043 (%current-system))))
2044 (if (or (string-prefix? "x86_64" system)
2045 (string-prefix? "i686" system))
2046 '()
2047 '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
2048 #:phases
2049 (modify-phases %standard-phases
2050 (add-before 'build 'set-CC-variable
2051 (lambda _ (setenv "CC" "gcc") #t))
2052 (delete 'configure))))
2053 (inputs
2054 `(("jack" ,jack-1)
2055 ("lv2" ,lv2)
2056 ("zita-convolver" ,zita-convolver)
2057 ("glu" ,glu)
2058 ("ftgl" ,ftgl)
2059 ("font-bitstream-vera" ,font-bitstream-vera)))
2060 (native-inputs
2061 `(("help2man" ,help2man)
2062 ("pkg-config" ,pkg-config)))
2063 (home-page "http://setbfree.org")
2064 (synopsis "Tonewheel organ")
2065 (description
2066 "setBfree is a MIDI-controlled, software synthesizer designed to imitate
2067 the sound and properties of the electromechanical organs and sound
2068 modification devices that brought world-wide fame to the names and products of
2069 Laurens Hammond and Don Leslie.")
2070 (license license:gpl2+)))
2071
2072 (define-public beast
2073 (package
2074 (name "beast")
2075 (version "0.10.0")
2076 (source (origin
2077 (method url-fetch)
2078 (uri (string-append "https://testbit.eu/pub/dists/beast/beast-"
2079 version ".tar.xz"))
2080 (sha256
2081 (base32
2082 "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn"))))
2083 (build-system gnu-build-system)
2084 (arguments
2085 '(#:parallel-build? #f)) ; Race conditions cause build failures
2086 (inputs
2087 `(("rapicorn" ,rapicorn)
2088 ("guile" ,guile-1.8)
2089 ("python" ,python-2)
2090 ("libgnomecanvas" ,libgnomecanvas)
2091 ("libogg" ,libogg)
2092 ("libmad" ,libmad)
2093 ("flac" ,flac)
2094 ("alsa-lib" ,alsa-lib)
2095 ("libvorbis" ,libvorbis)
2096 ("gettext" ,gettext-minimal)))
2097 (native-inputs
2098 `(("pkg-config" ,pkg-config)
2099 ("glib:bin" ,glib "bin")
2100 ("cython" ,python2-cython)
2101 ("perl" ,perl)
2102 ("perl-xml-parser" ,perl-xml-parser)))
2103 (home-page "https://testbit.eu/wiki/Beast_Home")
2104 (synopsis "Music composition and modular synthesis environment")
2105 (description
2106 "Beast is a music composition and modular synthesis application. It
2107 supports a wide range of standards in the field, such as MIDI, various audio
2108 file formats and LADSPA modules. It allows for multitrack editing, real-time
2109 synthesis, 32bit audio rendering, precise timing down to sample granularity,
2110 on-demand and partial loading of wave files, on the fly decoding, stereo
2111 mixing, FFT scopes, MIDI automation and full scriptability in Scheme.")
2112 (license license:gpl3+)))
2113
2114 (define-public bristol
2115 (package
2116 (name "bristol")
2117 (version "0.60.11")
2118 (source (origin
2119 (method url-fetch)
2120 (uri (string-append "mirror://sourceforge/bristol/bristol/"
2121 (version-major+minor version)
2122 "/bristol-" version ".tar.gz"))
2123 (sha256
2124 (base32
2125 "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
2126 (build-system gnu-build-system)
2127 (arguments
2128 `(#:phases
2129 (modify-phases %standard-phases
2130 (add-after 'unpack 'remove-sse-flags
2131 (lambda* (#:key system #:allow-other-keys)
2132 (when (not (or (string-prefix? "x86_64" system)
2133 (string-prefix? "i686" system)))
2134 (substitute* "bristol/Makefile.in"
2135 (("-msse -mfpmath=sse") "")))
2136 #t))
2137 ;; alsa-lib 1.1.x no longer provides iatomic.h. That's okay because
2138 ;; bristol actually doesn't use it.
2139 (add-after 'unpack 'do-not-use-alsa-iatomic
2140 (lambda _
2141 (substitute* "libbristolaudio/audioEngineJack.c"
2142 (("#include <alsa/iatomic.h>") ""))
2143 #t))
2144 ;; We know that Bristol has been linked with JACK and we don't have
2145 ;; ldd, so we can just skip this check.
2146 (add-after 'unpack 'do-not-grep-for-jack
2147 (lambda _
2148 (substitute* "bin/startBristol.in"
2149 (("ldd `which bristol` | grep jack") "echo guix"))
2150 #t)))))
2151 (inputs
2152 `(("alsa-lib" ,alsa-lib)
2153 ("jack" ,jack-1)
2154 ("liblo" ,liblo)
2155 ("libx11" ,libx11)))
2156 (native-inputs
2157 `(("pkg-config" ,pkg-config)))
2158 (home-page "http://bristol.sourceforge.net/")
2159 (synopsis "Synthesizer emulator")
2160 (description
2161 "Bristol is an emulation package for a number of different @code{classic}
2162 synthesizers including additive and subtractive and a few organs. The
2163 application consists of the engine, which is called bristol, and its own GUI
2164 library called brighton that represents all the emulations. There are
2165 currently more than twenty different emulations; each does sound different
2166 although the author maintains that the quality and accuracy of each emulation
2167 is subjective.")
2168 (license license:gpl3+)))
2169
2170 (define-public tuxguitar
2171 (package
2172 (name "tuxguitar")
2173 (version "1.5.4")
2174 (source (origin
2175 (method url-fetch)
2176 (uri (string-append
2177 "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-"
2178 version "/tuxguitar-" version "-src.tar.gz"))
2179 (sha256
2180 (base32
2181 "0fjhf56lhlhm84v08917xp4yw8y6d0qajm4qiy1gfp8dm74whwwg"))))
2182 (build-system ant-build-system)
2183 (arguments
2184 `(#:build-target "build"
2185 #:jdk ,icedtea-8
2186 #:tests? #f ; no tests
2187 #:phases
2188 (modify-phases %standard-phases
2189 (replace 'build
2190 (lambda* (#:key inputs outputs #:allow-other-keys)
2191 (let* ((initial-classpath (getenv "CLASSPATH"))
2192 (build-dir (lambda (dir)
2193 (setenv
2194 "CLASSPATH"
2195 (string-join (cons initial-classpath
2196 (find-files (getcwd) "\\.jar$"))
2197 ":"))
2198 (with-directory-excursion dir
2199 (if (file-exists? "build.xml")
2200 ((assoc-ref %standard-phases 'build)
2201 #:build-target "build")
2202 (begin
2203 ;; Generate default build.xml.
2204 ((@@ (guix build ant-build-system)
2205 default-build.xml)
2206 (string-append (string-downcase dir) ".jar")
2207 (string-append (assoc-ref outputs "out")
2208 "/share/java"))
2209 ((assoc-ref %standard-phases 'build))))))))
2210 (map build-dir '("TuxGuitar-lib"
2211 "TuxGuitar-editor-utils"
2212 "TuxGuitar-ui-toolkit"
2213 "TuxGuitar-ui-toolkit-swt"
2214 "TuxGuitar-viewer"
2215 "TuxGuitar"
2216 "TuxGuitar-gm-utils"
2217 "TuxGuitar-alsa"
2218 "TuxGuitar-midi"
2219 "TuxGuitar-midi-ui"))
2220 #t)))
2221 (add-after 'build 'build-jni
2222 (lambda _
2223 (setenv "CC" "gcc")
2224 (setenv "CFLAGS" (string-append
2225 "-fpic -I"
2226 (getcwd)
2227 "/build-scripts/native-modules/common-include"))
2228 (invoke "make" "-C" "./TuxGuitar-alsa/jni" "-f" "GNUmakefile")))
2229 (replace 'install
2230 (lambda* (#:key inputs outputs #:allow-other-keys)
2231 (let* ((out (assoc-ref outputs "out"))
2232 (bin (string-append out "/bin"))
2233 (share (string-append out "/share"))
2234 (jni-lib (string-append out "/lib"))
2235 (lib (string-append share "/java"))
2236 (swt (assoc-ref inputs "java-swt"))
2237 (mime (string-append share "/mime/packages"))
2238 (app (string-append share "/applications"))
2239 (man (string-append share "/man/man1")))
2240
2241 (mkdir-p bin)
2242 ;; Install all jars.
2243 (for-each (lambda (file)
2244 (install-file file lib))
2245 (find-files "." "\\.jar$"))
2246
2247 ;; Install jni libraries
2248 (for-each (lambda (file)
2249 (install-file file jni-lib))
2250 (find-files "." "\\-jni.so$"))
2251
2252 ;; Install all resources.
2253 (copy-recursively "./TuxGuitar/share" share)
2254
2255 ;; Install desktop and mime files
2256 (install-file "./misc/tuxguitar.xml" mime)
2257 (install-file "./misc/tuxguitar.desktop" app)
2258
2259 ;; Install manaual
2260 (install-file "./misc/tuxguitar.1" man)
2261
2262 ;; Create wrapper.
2263 (call-with-output-file (string-append bin "/tuxguitar")
2264 (lambda (port)
2265 (let ((classpath (string-join (append (find-files lib "\\.jar$")
2266 (find-files swt "\\.jar$"))
2267 ":")))
2268 (format
2269 port
2270 (string-append "#!/bin/sh\n"
2271 (which "java")
2272 " -cp " classpath
2273 " -Dtuxguitar.home.path=" out
2274 " -Dtuxguitar.share.path=" out "/share"
2275 " -Dswt.library.path=" swt "/lib"
2276 " -Djava.library.path=" out "/lib"
2277 " org.herac.tuxguitar.app.TGMainSingleton"
2278 " \"$1\" \"$2\"")))))
2279 (chmod (string-append bin "/tuxguitar") #o555)
2280 #t))))))
2281 (inputs
2282 `(("alsa-lib" ,alsa-lib)
2283 ("java-swt" ,java-swt)))
2284 (home-page "http://tuxguitar.com.ar/")
2285 (synopsis "Multitrack tablature editor and player")
2286 (description
2287 "TuxGuitar is a guitar tablature editor with player support through midi.
2288 It can display scores and multitrack tabs. TuxGuitar provides various
2289 additional features, including autoscrolling while playing, note duration
2290 management, bend/slide/vibrato/hammer-on/pull-off effects, support for
2291 tuplets, time signature management, tempo management, gp3/gp4/gp5 import and
2292 export.")
2293 (license license:lgpl2.1+)))
2294
2295 (define-public pd
2296 (package
2297 (name "pd")
2298 (version "0.51-3")
2299 (source (origin
2300 (method url-fetch)
2301 (uri
2302 (string-append "http://msp.ucsd.edu/Software/pd-"
2303 version ".src.tar.gz"))
2304 (sha256
2305 (base32
2306 "10cqg387xdpiirak5v9y1lpvcds9bpqz61znx6d1m1hb45n513aw"))))
2307 (build-system gnu-build-system)
2308 (arguments
2309 (let ((wish (string-append "wish" (version-major+minor
2310 (package-version tk)))))
2311 `(#:tests? #f ; no "check" target
2312 #:configure-flags
2313 (list
2314 "--enable-jack"
2315 (string-append "--with-wish=" (string-append
2316 (assoc-ref %build-inputs "tk")
2317 "/bin/" ,wish)))
2318 #:phases
2319 (modify-phases %standard-phases
2320 (add-before 'configure 'fix-with-path
2321 (lambda _
2322 (substitute* "tcl/pd-gui.tcl"
2323 (("exec wish ") (string-append "exec " (which ,wish) " ")))
2324 #t))))))
2325 (native-inputs
2326 `(("autoconf" ,autoconf)
2327 ("automake" ,automake)
2328 ("libtool" ,libtool)
2329 ("gettext" ,gettext-minimal)
2330 ("pkg-config" ,pkg-config)))
2331 (inputs
2332 `(("tk" ,tk)
2333 ("alsa-lib" ,alsa-lib)
2334 ("jack" ,jack-1)))
2335 (home-page "https://puredata.info")
2336 (synopsis "Visual programming language for artistic performances")
2337 (description
2338 "Pure Data (aka Pd) is a visual programming language. Pd enables
2339 musicians, visual artists, performers, researchers, and developers to create
2340 software graphically, without writing lines of code. Pd is used to process
2341 and generate sound, video, 2D/3D graphics, and interface sensors, input
2342 devices, and MIDI. Pd can easily work over local and remote networks to
2343 integrate wearable technology, motor systems, lighting rigs, and other
2344 equipment. Pd is suitable for learning basic multimedia processing and visual
2345 programming methods as well as for realizing complex systems for large-scale
2346 projects.")
2347 (license license:bsd-3)))
2348
2349 (define-public libpd
2350 (package
2351 (name "libpd")
2352 (version "0.11.0")
2353 (source (origin
2354 (method git-fetch)
2355 (uri (git-reference
2356 (url "https://github.com/libpd/libpd")
2357 (commit version)
2358 (recursive? #t))) ; for the 'pure-data' submodule
2359 (file-name (string-append name "-" version "-checkout"))
2360 (sha256
2361 (base32
2362 "1bcg1d9iyf9n37hwwphmih0c8rd1xcqykil5z1cax6xfs76552nk"))))
2363 (build-system gnu-build-system)
2364 (arguments
2365 '(#:tests? #f ; no tests
2366 #:make-flags '("CC=gcc")
2367 #:phases
2368 (modify-phases %standard-phases
2369 (delete 'configure) ; no configure script
2370 (replace 'install
2371 (lambda* (#:key outputs #:allow-other-keys)
2372 (let ((out (assoc-ref outputs "out")))
2373 (invoke "make" "install"
2374 (string-append "prefix=" out)
2375 ;; XXX: Fix the last 2 lines of 'install' target.
2376 "LIBPD_IMPLIB=NO"
2377 "LIBPD_DEF=NO")))))))
2378 (home-page "http://libpd.cc/")
2379 (synopsis "Pure Data as an embeddable audio synthesis library")
2380 (description
2381 "Libpd provides Pure Data as an embeddable audio synthesis library. Its
2382 main purpose is to liberate raw audio rendering from audio and MIDI drivers.")
2383 (license license:bsd-3)))
2384
2385 (define-public portmidi
2386 (package
2387 (name "portmidi")
2388 (version "217")
2389 (source (origin
2390 (method url-fetch)
2391 (uri (string-append "mirror://sourceforge/portmedia/portmidi/"
2392 version "/portmidi-src-" version ".zip"))
2393 (sha256
2394 (base32
2395 "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88"))
2396 (patches (list (search-patch "portmidi-modular-build.patch")))))
2397 (build-system cmake-build-system)
2398 (arguments
2399 `(#:tests? #f ; tests cannot be linked
2400 #:build-type "Release" ; needed to have PMALSA set
2401 #:configure-flags
2402 (list "-DPORTMIDI_ENABLE_JAVA=Off"
2403 "-DPORTMIDI_ENABLE_TEST=Off") ; tests fail linking
2404 #:phases
2405 (modify-phases %standard-phases
2406 ;; Some packages, e.g., MuseScore, expect "libporttime.so" instead of
2407 ;; "libportmidi.so". Distributions get away with it by creating an
2408 ;; appropriate symlink.
2409 (add-after 'install 'add-porttime
2410 (lambda* (#:key outputs #:allow-other-keys)
2411 (let* ((out (assoc-ref outputs "out"))
2412 (lib (string-append out "/lib")))
2413 (with-directory-excursion lib
2414 (symlink "libportmidi.so" "libporttime.so")))))
2415 (add-after 'install 'install-pkg-config
2416 (lambda* (#:key outputs #:allow-other-keys)
2417 (let* ((out (assoc-ref outputs "out"))
2418 (pkg-config-dir (string-append out "/lib/pkgconfig")))
2419 (mkdir-p pkg-config-dir)
2420 (with-output-to-file (string-append pkg-config-dir "/portmidi.pc")
2421 (lambda _
2422 (format #t
2423 "prefix=~@*~a~@
2424 libdir=${prefix}/lib~@
2425 includedir=${prefix}/include~@
2426
2427 Name: portmidi~@
2428 Description:~@
2429 Version: ~a~@
2430 Libs: -L${libdir} -lportmidi~@
2431 Cflags: -I${includedir}~%"
2432 out ,version)))))))))
2433 (inputs
2434 `(("alsa-lib" ,alsa-lib)))
2435 (native-inputs
2436 `(("unzip" ,unzip)))
2437 (home-page "http://portmedia.sourceforge.net/portmidi/")
2438 (synopsis "Library for MIDI I/O")
2439 (description
2440 "PortMidi is a library supporting real-time input and output of MIDI data
2441 using a system-independent interface.")
2442 (license license:expat)))
2443
2444 (define-public python-pyportmidi
2445 (package
2446 (name "python-pyportmidi")
2447 (version (package-version portmidi))
2448 (source (package-source portmidi))
2449 (build-system python-build-system)
2450 (arguments
2451 `(#:tests? #f ; no tests included
2452 #:phases
2453 (modify-phases %standard-phases
2454 (add-after 'unpack 'enter-dir
2455 (lambda _ (chdir "pm_python") #t))
2456 (add-after 'enter-dir 'fix-setup.py
2457 (lambda _
2458 (substitute* "setup.py"
2459 ;; Use Python 3 syntax
2460 (("print (\".*\")" _ text)
2461 (string-append "print(" text ")\n"))
2462 ;; TODO.txt and CHANGES.txt don't exist
2463 (("CHANGES =.*") "CHANGES = \"\"\n")
2464 (("TODO =.*") "TODO = \"\"\n"))
2465 #t)))))
2466 (inputs
2467 `(("portmidi" ,portmidi)
2468 ("alsa-lib" ,alsa-lib)))
2469 (native-inputs
2470 `(("python-cython" ,python-cython)
2471 ("unzip" ,unzip)))
2472 (home-page "http://portmedia.sourceforge.net/portmidi/")
2473 (synopsis "Python bindings to PortMidi")
2474 (description
2475 "This package provides Python bindings to the PortMidi library.")
2476 (license license:expat)))
2477
2478 (define-public frescobaldi
2479 (package
2480 (name "frescobaldi")
2481 (version "3.1.3")
2482 (source
2483 (origin
2484 (method url-fetch)
2485 (uri (string-append
2486 "https://github.com/wbsoft/frescobaldi/releases/download/v"
2487 version "/frescobaldi-" version ".tar.gz"))
2488 (sha256
2489 (base32 "1hg9yc8kj445fjsby92g3qf50crcl1pb079zfma18sb7ycv50zww"))))
2490 (build-system python-build-system)
2491 (arguments
2492 `(#:tests? #f)) ;no tests included
2493 (inputs
2494 `(("lilypond" ,lilypond)
2495 ("poppler" ,poppler)
2496 ("portmidi" ,portmidi)
2497 ("python-ly" ,python-ly)
2498 ("python-poppler-qt5" ,python-poppler-qt5)
2499 ("python-pyportmidi" ,python-pyportmidi)
2500 ("python-pyqt" ,python-pyqt)
2501 ("python-sip" ,python-sip)))
2502 (home-page "https://www.frescobaldi.org/")
2503 (synopsis "LilyPond sheet music text editor")
2504 (description
2505 "Frescobaldi is a LilyPond sheet music text editor with syntax
2506 highlighting and automatic completion. Among other things, it can render
2507 scores next to the source, can capture input from MIDI or read MusicXML and
2508 ABC files, has a MIDI player for proof-listening, and includes a documentation
2509 browser.")
2510 (license license:gpl2+)))
2511
2512 (define-public drumstick
2513 (package
2514 (name "drumstick")
2515 (version "1.1.3")
2516 (source (origin
2517 (method url-fetch)
2518 (uri (string-append "mirror://sourceforge/drumstick/"
2519 version "/drumstick-" version ".tar.bz2"))
2520 (sha256
2521 (base32
2522 "1n9wvg79yvkygrkc8xd8pgrd3d7hqmr7gh24dccf0px23lla9b3m"))))
2523 (build-system cmake-build-system)
2524 (arguments
2525 `(#:tests? #f ; no test target
2526 #:configure-flags '("-DLIB_SUFFIX=")
2527 #:phases
2528 (modify-phases %standard-phases
2529 (add-before 'configure 'fix-docbook
2530 (lambda* (#:key inputs #:allow-other-keys)
2531 (substitute* "cmake_admin/CreateManpages.cmake"
2532 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
2533 (string-append (assoc-ref inputs "docbook-xsl")
2534 "/xml/xsl/docbook-xsl-"
2535 ,(package-version docbook-xsl)
2536 "/manpages/docbook.xsl")))
2537 #t)))))
2538 (inputs
2539 `(("qtbase" ,qtbase)
2540 ("qtsvg" ,qtsvg)
2541 ("alsa-lib" ,alsa-lib)))
2542 (native-inputs
2543 `(("pkg-config" ,pkg-config)
2544 ("libxslt" ,libxslt) ; for xsltproc
2545 ("docbook-xsl" ,docbook-xsl)
2546 ("doxygen" ,doxygen)))
2547 (home-page "http://drumstick.sourceforge.net/")
2548 (synopsis "C++ MIDI library")
2549 (description
2550 "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It
2551 includes a C++ wrapper around the ALSA library sequencer interface. A
2552 complementary library provides classes for processing SMF (Standard MIDI
2553 files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A
2554 multiplatform realtime MIDI I/O library is also provided with various output
2555 backends, including ALSA, OSS, Network and FluidSynth.")
2556 (license license:gpl2+)))
2557
2558 (define-public vmpk
2559 (package
2560 (name "vmpk")
2561 (version "0.7.2")
2562 (source (origin
2563 (method url-fetch)
2564 (uri (string-append "mirror://sourceforge/vmpk/vmpk/"
2565 version "/vmpk-" version ".tar.bz2"))
2566 (sha256
2567 (base32
2568 "1i3hnvdgz46n4k5v0q4jhgh7nkh0s390ix4nqr69z0q3026yp0p6"))))
2569 (build-system cmake-build-system)
2570 (arguments
2571 `(#:tests? #f ; no test target
2572 #:phases
2573 (modify-phases %standard-phases
2574 (add-before 'configure 'fix-docbook
2575 (lambda* (#:key inputs #:allow-other-keys)
2576 (substitute* "cmake_admin/CreateManpages.cmake"
2577 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
2578 (string-append (assoc-ref inputs "docbook-xsl")
2579 "/xml/xsl/docbook-xsl-"
2580 ,(package-version docbook-xsl)
2581 "/manpages/docbook.xsl")))
2582 #t)))))
2583 (inputs
2584 `(("drumstick" ,drumstick)
2585 ("qtbase" ,qtbase)
2586 ("qtsvg" ,qtsvg)
2587 ("qtx11extras" ,qtx11extras)))
2588 (native-inputs
2589 `(("libxslt" ,libxslt) ;for xsltproc
2590 ("docbook-xsl" ,docbook-xsl)
2591 ("qttools" ,qttools)
2592 ("pkg-config" ,pkg-config)))
2593 (home-page "https://vmpk.sourceforge.io/")
2594 (synopsis "Virtual MIDI piano keyboard")
2595 (description
2596 "Virtual MIDI Piano Keyboard is a MIDI events generator and receiver. It
2597 doesn't produce any sound by itself, but can be used to drive a MIDI
2598 synthesizer (either hardware or software, internal or external). You can use
2599 the computer's keyboard to play MIDI notes, and also the mouse. You can use
2600 the Virtual MIDI Piano Keyboard to display the played MIDI notes from another
2601 instrument or MIDI file player.")
2602 (license license:gpl3+)))
2603
2604 (define-public zynaddsubfx
2605 (package
2606 (name "zynaddsubfx")
2607 (version "3.0.5")
2608 (source (origin
2609 (method url-fetch)
2610 (uri (string-append
2611 "mirror://sourceforge/zynaddsubfx/zynaddsubfx/"
2612 version "/zynaddsubfx-" version ".tar.bz2"))
2613 (sha256
2614 (base32
2615 "0qwzg14h043rmyf9jqdylxhyfy4sl0vsr0gjql51wjhid0i34ivl"))))
2616 (build-system cmake-build-system)
2617 (arguments
2618 `(#:phases
2619 (modify-phases %standard-phases
2620 ;; Move SSE compiler optimization flags from generic target to
2621 ;; athlon64 and core2 targets, because otherwise the build would fail
2622 ;; on non-Intel machines.
2623 (add-after 'unpack 'remove-sse-flags-from-generic-target
2624 (lambda _
2625 (substitute* "src/CMakeLists.txt"
2626 (("-msse -msse2 -mfpmath=sse") "")
2627 (("-march=(athlon64|core2)" flag)
2628 (string-append flag " -msse -msse2 -mfpmath=sse")))
2629 #t)))))
2630 (inputs
2631 `(("liblo" ,liblo)
2632 ("ntk" ,ntk)
2633 ("mesa" ,mesa)
2634 ("alsa-lib" ,alsa-lib)
2635 ("jack" ,jack-1)
2636 ("fftw" ,fftw)
2637 ("minixml" ,minixml)
2638 ("libxpm" ,libxpm)
2639 ("zlib" ,zlib)))
2640 (native-inputs
2641 `(("pkg-config" ,pkg-config)))
2642 (home-page "http://zynaddsubfx.sf.net/")
2643 (synopsis "Software synthesizer")
2644 (description
2645 "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
2646 three synthesizer engines, multitimbral and polyphonic synths, microtonal
2647 capabilities, custom envelopes, effects, etc.")
2648 (license license:gpl2)))
2649
2650 (define-public yoshimi
2651 (package
2652 (name "yoshimi")
2653 (version "1.7.3")
2654 (source
2655 (origin
2656 (method url-fetch)
2657 (uri (string-append "mirror://sourceforge/yoshimi/"
2658 (version-major+minor version)
2659 "/yoshimi-" version ".tar.bz2"))
2660 (sha256
2661 (base32 "1ixb2kqmfgm2lfjaj6z3h03c840hcfmca4h6pjnc4aln2mzm7fcw"))))
2662 (build-system cmake-build-system)
2663 (arguments
2664 `(#:tests? #f ; there are no tests
2665 #:configure-flags
2666 (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR="
2667 (assoc-ref %outputs "out") "/share"))
2668 #:phases
2669 (modify-phases %standard-phases
2670 (add-before 'configure 'enter-dir
2671 (lambda _ (chdir "src") #t))
2672 ;; Move SSE compiler optimization flags from generic target to
2673 ;; athlon64 and core2 targets, because otherwise the build would fail
2674 ;; on non-Intel machines.
2675 (add-after 'unpack 'remove-sse-flags-from-generic-target
2676 (lambda _
2677 (substitute* "src/CMakeLists.txt"
2678 (("-msse -msse2 -mfpmath=sse") "")
2679 (("-march=(athlon64|core2)" flag)
2680 (string-append flag " -msse -msse2 -mfpmath=sse")))
2681 #t)))))
2682 (inputs
2683 `(("boost" ,boost)
2684 ("fftwf" ,fftwf)
2685 ("alsa-lib" ,alsa-lib)
2686 ("jack" ,jack-1)
2687 ("fontconfig" ,fontconfig)
2688 ("minixml" ,minixml)
2689 ("mesa" ,mesa)
2690 ("fltk" ,fltk)
2691 ("lv2" ,lv2)
2692 ("readline" ,readline)
2693 ("ncurses" ,ncurses)
2694 ("cairo" ,cairo)
2695 ("zlib" ,zlib)))
2696 (native-inputs
2697 `(("pkg-config" ,pkg-config)))
2698 (home-page "http://yoshimi.sourceforge.net/")
2699 (synopsis "Multi-paradigm software synthesizer")
2700 (description
2701 "Yoshimi is a fork of ZynAddSubFX, a feature-heavy real-time software
2702 synthesizer. It offers three synthesizer engines, multitimbral and polyphonic
2703 synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi
2704 improves on support for JACK features, such as JACK MIDI.")
2705 (license license:gpl2)))
2706
2707 (define-public libgig
2708 (package
2709 (name "libgig")
2710 (version "4.2.0")
2711 (source (origin
2712 (method url-fetch)
2713 (uri (string-append "http://download.linuxsampler.org/packages/"
2714 "libgig-" version ".tar.bz2"))
2715 (sha256
2716 (base32
2717 "1zs5yy124bymfyapsnljr6rv2lnn5inwchm0xnwiw44b2d39l8hn"))))
2718 (build-system gnu-build-system)
2719 (inputs
2720 `(("libuuid" ,util-linux "lib")
2721 ("libsndfile" ,libsndfile)))
2722 (native-inputs
2723 `(("pkg-config" ,pkg-config)))
2724 (home-page "https://linuxsampler.org/libgig/")
2725 (synopsis "C++ library for working with Gigasampler (.gig) files")
2726 (description
2727 "Libgig is a C++ library for loading, modifying existing and creating new
2728 Gigasampler (.gig) files and DLS (Downloadable Sounds) Level 1/2 files, KORG
2729 sample based instruments (.KSF and .KMP files), SoundFont v2 (.sf2) files and
2730 AKAI sampler data. The package includes a couple of command line tools based
2731 on the library.")
2732 ;; The library and tools are released under the GPL, except the AKAI
2733 ;; classes which are released under the LGPL.
2734 (license (list license:gpl2+ license:lgpl2.1+))))
2735
2736 (define-public jack-keyboard
2737 (package
2738 (name "jack-keyboard")
2739 (version "2.5")
2740 (source
2741 (origin
2742 (method url-fetch)
2743 (uri (string-append "mirror://sourceforge/jack-keyboard/jack-keyboard/"
2744 version "/jack-keyboard-" version ".tar.gz"))
2745 (sha256
2746 (base32
2747 "0mzmg8aavybcfdlq2yd9d0vscqd6is5p6jzrgfpfm5j3xdcvh2s3"))))
2748 (build-system gnu-build-system)
2749 (inputs
2750 `(("jack" ,jack-1)
2751 ("lash" ,lash)
2752 ("gtk+" ,gtk+-2)))
2753 (native-inputs
2754 `(("pkg-config" ,pkg-config)))
2755 (home-page "http://jack-keyboard.sourceforge.net/")
2756 (synopsis "Virtual MIDI keyboard")
2757 (description "Jack-keyboard is a virtual MIDI keyboard, a program that
2758 allows you to send JACK MIDI events (i.e. play) using your PC keyboard.")
2759 (license license:bsd-2)))
2760
2761 (define-public jack-capture
2762 (package
2763 (name "jack-capture")
2764 (version "0.9.73")
2765 (source (origin
2766 (method git-fetch)
2767 (uri (git-reference
2768 (url "https://github.com/kmatheussen/jack_capture")
2769 (commit version)))
2770 (file-name (string-append name "-" version "-checkout"))
2771 (sha256
2772 (base32
2773 "0jcqky96q8xgya6wqv1p8pj9fkf2wh7ynl67ah7x5bn3basgfclf"))))
2774 (build-system gnu-build-system)
2775 (arguments
2776 `(#:make-flags
2777 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2778 #:tests? #f ; there are none
2779 #:phases
2780 (modify-phases %standard-phases
2781 (delete 'configure))))
2782 (native-inputs
2783 `(("pkg-config" ,pkg-config)
2784 ("which" ,which)))
2785 (inputs
2786 `(("gtk+" ,gtk+-2)
2787 ("jack" ,jack-1)
2788 ("libogg" ,libogg)
2789 ("liblo" ,liblo)
2790 ("lame" ,lame)
2791 ("libsndfile" ,libsndfile)))
2792 (home-page "https://github.com/kmatheussen/jack_capture")
2793 (synopsis "Program for recording sound files with JACK")
2794 (description "This is a program for recording sound files with JACK. It
2795 can connect to any JACK port and record the output into a stereo WAV file.")
2796 (license license:gpl2+)))
2797
2798 (define-public jack-select
2799 (package
2800 (name "jack-select")
2801 (version "1.5.0")
2802 (source (origin
2803 (method url-fetch)
2804 (uri (pypi-uri "jack-select" version))
2805 (sha256
2806 (base32
2807 "1zijk9ly2fczxsnnrqr8s0ajmlyx1j1vd8gk0rm5dj5zyhhmia7f"))))
2808 (build-system gnu-build-system)
2809 (arguments
2810 `(#:modules ((guix build gnu-build-system)
2811 ((guix build python-build-system) #:prefix python:)
2812 (guix build utils))
2813 #:imported-modules (,@%gnu-build-system-modules
2814 (guix build python-build-system))
2815 #:make-flags
2816 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2817 #:tests? #f ; there are none
2818 #:phases
2819 (modify-phases %standard-phases
2820 (replace 'configure
2821 (lambda* (#:key inputs #:allow-other-keys)
2822 ;; python-dbus cannot be found but it's really there. See
2823 ;; https://github.com/SpotlightKid/jack-select/issues/2
2824 (substitute* "setup.py"
2825 (("'dbus-python',") ""))
2826 ;; Fix reference to dlopened libraries.
2827 (substitute* "jackselect/alsainfo.py"
2828 (("libasound.so.2")
2829 (string-append (assoc-ref inputs "alsa-lib")
2830 "/lib/libasound.so.2")))
2831 #t))
2832 (replace 'build
2833 (assoc-ref python:%standard-phases 'build))
2834 (add-after 'install 'wrap
2835 (assoc-ref python:%standard-phases 'wrap)))))
2836 (native-inputs
2837 `(("pkg-config" ,pkg-config)))
2838 (inputs
2839 `(("alsa-lib" ,alsa-lib)
2840 ("python" ,python-wrapper)
2841 ("python-pyudev" ,python-pyudev)
2842 ("python-pyxdg" ,python-pyxdg)
2843 ("python-dbus" ,python-dbus)
2844 ("python-pygobject" ,python-pygobject)))
2845 (home-page "https://github.com/SpotlightKid/jack-select")
2846 (synopsis "Systray application to quickly change the JACK-DBus configuration")
2847 (description "This application displays an icon in the system tray (also
2848 known as notification area) of your desktop, which shows the status of the
2849 JACK audio server and when you click on it, a menu pops up, which lets you
2850 quickly select from the JACK configuration presets you created with QjackCtl.
2851 When you select a preset, its JACK engine and driver configuration settings
2852 are loaded via DBus into JACK and then the server is restarted. This allows
2853 you to switch between different audio setups with just two mouse clicks.")
2854 (license license:expat)))
2855
2856 (define-public cursynth
2857 (package
2858 (name "cursynth")
2859 (version "1.5")
2860 (source
2861 (origin
2862 (method url-fetch)
2863 (uri (string-append "mirror://gnu/cursynth/cursynth-"
2864 version ".tar.gz"))
2865 (sha256
2866 (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v"))
2867 (patches (search-patches "cursynth-wave-rand.patch"))))
2868 (build-system gnu-build-system)
2869 (native-inputs `(("pkg-config" ,pkg-config)))
2870 ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently
2871 ;; prevents us from using pulseaudio
2872 (inputs `(("ncurses" ,ncurses)
2873 ("alsa" ,alsa-lib)))
2874 (home-page "https://www.gnu.org/software/cursynth/")
2875 (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses")
2876 (description "GNU cursynth is a polyphonic synthesizer that runs
2877 graphically in the terminal. It is built on a full-featured subtractive
2878 synthesis engine. Notes and parameter changes may be entered via MIDI or the
2879 computer's keyboard.")
2880 (license license:gpl3+)))
2881
2882 (define-public aj-snapshot
2883 (package
2884 (name "aj-snapshot")
2885 (version "0.9.9")
2886 (source (origin
2887 (method url-fetch)
2888 (uri (string-append "mirror://sourceforge/aj-snapshot/"
2889 "aj-snapshot-" version ".tar.bz2"))
2890 (sha256
2891 (base32
2892 "0z8wd5yvxdmw1h1rj6km9h01xd4xmp4d86gczlix7hsc7zrf0wil"))))
2893 (build-system gnu-build-system)
2894 (inputs
2895 `(("minixml" ,minixml)
2896 ("jack" ,jack-1)
2897 ("alsa-lib" ,alsa-lib)))
2898 (native-inputs
2899 `(("pkg-config" ,pkg-config)))
2900 (home-page "http://aj-snapshot.sourceforge.net/")
2901 (synopsis "Snapshot connections between ALSA and JACK clients")
2902 (description "Aj-snapshot is a small program that can be used to make
2903 snapshots of the connections made between JACK and/or ALSA clients. Because
2904 JACK can provide both audio and MIDI support to programs, aj-snapshot can
2905 store both types of connections for JACK. ALSA, on the other hand, only
2906 provides routing facilities for MIDI clients. Aj-snapshot is meant to be used
2907 from the command line.")
2908 (license license:gpl3+)))
2909
2910 (define-public qtractor
2911 (package
2912 (name "qtractor")
2913 (version "0.9.18")
2914 (source (origin
2915 (method url-fetch)
2916 (uri (string-append "https://downloads.sourceforge.net/qtractor/"
2917 "qtractor-" version ".tar.gz"))
2918 (sha256
2919 (base32
2920 "121vmygdzp37p6f93f8dbbg2m2r55j7amyiapzkqgypgn4vfdbwr"))))
2921 (build-system gnu-build-system)
2922 (arguments
2923 `(#:tests? #f)) ; no "check" target
2924 (inputs
2925 `(("qt" ,qtbase)
2926 ("qtx11extras" ,qtx11extras)
2927 ("alsa-lib" ,alsa-lib)
2928 ("jack" ,jack-1)
2929 ("libsndfile" ,libsndfile)
2930 ("ladspa" ,ladspa)
2931 ("lv2" ,lv2)
2932 ("lilv" ,lilv)
2933 ("suil" ,suil)
2934 ("libsamplerate" ,libsamplerate)
2935 ("libvorbis" ,libvorbis)
2936 ("libmad" ,libmad)
2937 ("rubberband" ,rubberband)
2938 ("liblo" ,liblo)
2939 ("zlib" ,zlib)))
2940 (native-inputs
2941 `(("pkg-config" ,pkg-config)
2942 ("qttools" ,qttools)))
2943 (home-page "http://qtractor.org/")
2944 (synopsis "Audio/MIDI multi-track sequencer")
2945 (description
2946 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
2947 JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
2948 follows a traditional multi-track tape recorder control paradigm.")
2949 (license license:gpl2+)))
2950
2951 (define-public ams-lv2
2952 (package
2953 (name "ams-lv2")
2954 (version "1.2.2")
2955 (source
2956 (origin
2957 (method git-fetch)
2958 (uri (git-reference
2959 (url "https://github.com/blablack/ams-lv2")
2960 (commit (string-append "v" version))))
2961 (file-name (git-file-name name version))
2962 (sha256
2963 (base32 "1lz2mvk4gqsyf92yxd3aaldx0d0qi28h4rnnvsaz4ls0ccqm80nk"))))
2964 (build-system waf-build-system)
2965 (arguments
2966 `(#:phases
2967 (modify-phases %standard-phases
2968 (add-after 'unpack 'remove-sse-flags
2969 (lambda* (#:key system #:allow-other-keys)
2970 (unless (or (string-prefix? "x86_64" system)
2971 (string-prefix? "i686" system))
2972 (substitute* "wscript"
2973 (("'-msse', '-mfpmath=sse', ") "")))
2974 #t)))
2975 #:tests? #f)) ; no tests
2976 (inputs
2977 `(("cairo" ,cairo)
2978 ("fftw" ,fftw)
2979 ("gtk" ,gtk+-2)
2980 ("gtkmm" ,gtkmm-2)
2981 ("lv2" ,lv2)
2982 ("lvtk" ,lvtk)))
2983 (native-inputs
2984 `(("pkg-config" ,pkg-config)))
2985 (home-page "https://github.com/blablack/ams-lv2")
2986 (synopsis "Port of Alsa Modular Synth internal modules into LV2")
2987 (description "This set of LV2 plugins is a port of the internal modules
2988 found in Alsa Modular Synth. These plugins are used to create modular
2989 synthesizers and contain: VCO, VCF, VCA, LFO, slew limiter, envelopes, sample
2990 and hold, etc.")
2991 (license license:gpl2)))
2992
2993 (define-public gxtuner
2994 (package
2995 (name "gxtuner")
2996 (version "2.4")
2997 (source (origin
2998 (method git-fetch)
2999 (uri (git-reference
3000 (url "https://github.com/brummer10/gxtuner")
3001 (commit (string-append "v" version))))
3002 (file-name (git-file-name name version))
3003 (sha256
3004 (base32
3005 "1fxd2akan2njlr7fpkh84830783qhh1gg7yakswqk5dd466dcn96"))))
3006 (build-system gnu-build-system)
3007 (arguments
3008 `(#:make-flags
3009 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3010 (string-append "INCLUDE_L_DIR="
3011 (assoc-ref %build-inputs "zita-resampler")
3012 "/include/"))
3013 #:phases
3014 (modify-phases %standard-phases
3015 (delete 'configure))))
3016 (inputs
3017 `(("gtk+" ,gtk+)
3018 ("jack" ,jack-1)
3019 ("fftwf" ,fftwf)
3020 ("cairo" ,cairo)
3021 ("zita-resampler" ,zita-resampler)))
3022 (native-inputs
3023 `(("pkg-config" ,pkg-config)))
3024 (home-page "https://github.com/brummer10/gxtuner")
3025 (synopsis "Guitar tuner")
3026 (description "GXtuner is a simple guitar tuner for JACK with an
3027 analogue-like user interface.")
3028 (license license:gpl2+)))
3029
3030 (define-public mod-host
3031 ;; The last release was in 2014 but since then hundreds of commits have
3032 ;; been made.
3033 (let ((commit "1726ad06b11323da7e1aaed690ff8aef91f702b5")
3034 (revision "3"))
3035 (package
3036 (name "mod-host")
3037 (version (string-append "0.10.6-" revision "." (string-take commit 9)))
3038 (source (origin
3039 (method git-fetch)
3040 (uri (git-reference
3041 (url "https://github.com/moddevices/mod-host")
3042 (commit commit)))
3043 (sha256
3044 (base32
3045 "1nrd37c35w6z6ldczgrwmmd9hx1n3zyvcjcgb3mi4cygqdanvspv"))
3046 (file-name (string-append name "-" version "-checkout"))))
3047 (build-system gnu-build-system)
3048 (arguments
3049 `(#:tests? #f ; no tests included
3050 #:make-flags
3051 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3052 "CC=gcc")
3053 #:phases
3054 (modify-phases %standard-phases
3055 (delete 'configure)
3056 (add-after 'unpack 'fix-jack-installation-directory
3057 (lambda _
3058 ;; Do not attempt to install files to output of "jack" package.
3059 (substitute* "Makefile"
3060 (("\\$\\(shell pkg-config --variable=libdir jack\\)")
3061 "lib"))
3062 #t)))))
3063 (inputs
3064 `(("lilv" ,lilv)
3065 ("fftw" ,fftw)
3066 ("fftwf" ,fftwf)
3067 ("lv2" ,lv2)
3068 ("jack" ,jack-1)
3069 ("readline" ,readline)))
3070 (native-inputs
3071 `(("pkg-config" ,pkg-config)
3072 ("python" ,python-2)))
3073 (home-page "https://github.com/moddevices/mod-host")
3074 (synopsis "LV2 host for Jack controllable via socket or command line")
3075 (description "mod-host is an LV2 plugin host for JACK, controllable via
3076 socket or command line.")
3077 (license license:gpl3+))))
3078
3079 (define-public curseradio
3080 (let ((commit "1bd4bd0faeec675e0647bac9a100b526cba19f8d")
3081 (revision "1"))
3082 (package
3083 (name "curseradio")
3084 (version (git-version "0" revision commit))
3085 (source (origin
3086 (method git-fetch)
3087 (uri (git-reference
3088 (url "https://github.com/chronitis/curseradio")
3089 (commit commit)))
3090 (file-name (git-file-name name version))
3091 (sha256
3092 (base32
3093 "11bf0jnj8h2fxhpdp498189r4s6b47vy4wripv0z4nx7lxajl88i"))))
3094 (build-system python-build-system)
3095 (arguments
3096 `(#:phases
3097 (modify-phases %standard-phases
3098 (add-after 'unpack 'link-to-mpv
3099 (lambda* (#:key inputs #:allow-other-keys)
3100 (substitute* "curseradio/curseradio.py"
3101 (("/usr/bin/mpv")
3102 (string-append (assoc-ref inputs "mpv") "/bin/mpv")))
3103 #t)))))
3104 (propagated-inputs
3105 `(("python-lxml" ,python-lxml)
3106 ("python-requests" ,python-requests)
3107 ("python-pyxdg" ,python-pyxdg)))
3108 (inputs
3109 `(("mpv" ,mpv)))
3110 (home-page "https://github.com/chronitis/curseradio")
3111 (synopsis "Command-line Internet radio player")
3112 (description "Curseradio is a Curses-based radio player that uses a
3113 tune-in sender list from @url{http://opml.radiotime.com}.")
3114 (license license:expat))))
3115
3116 (define-public pianobar
3117 (package
3118 (name "pianobar")
3119 (version "2020.04.05")
3120 (source (origin
3121 (method git-fetch)
3122 (uri (git-reference
3123 (url "https://github.com/PromyLOPh/pianobar")
3124 (commit version)))
3125 (file-name (git-file-name name version))
3126 (sha256
3127 (base32
3128 "1gq8kpks6nychqz4gf0rpy7mrhz5vjw48a60x56j6y9flmazmypw"))))
3129 (build-system gnu-build-system)
3130 (arguments
3131 `(#:tests? #f ; no tests
3132 #:make-flags (list "CC=gcc" (string-append "PREFIX=" %output))
3133 #:phases (modify-phases %standard-phases
3134 (delete 'configure))))
3135 (inputs
3136 `(("ao" ,ao)
3137 ("curl" ,curl)
3138 ("libgcrypt" ,libgcrypt)
3139 ("json-c" ,json-c)
3140 ("ffmpeg" ,ffmpeg)))
3141 (native-inputs
3142 `(("pkg-config" ,pkg-config)))
3143 (home-page "https://6xq.net/pianobar/")
3144 (synopsis "Console-based pandora.com player")
3145 (description "pianobar is a console-based music player for the
3146 personalized online radio pandora.com. It has configurable keys for playing
3147 and managing stations, can be controlled remotely via fifo, and can run
3148 event-based scripts for scrobbling, notifications, etc.")
3149 (license license:expat)))
3150
3151 (define-public picard
3152 (package
3153 (name "picard")
3154 (version "2.4.4")
3155 (source (origin
3156 (method url-fetch)
3157 (uri (string-append
3158 "https://musicbrainz.osuosl.org/pub/musicbrainz/"
3159 "picard/picard-" version ".tar.gz"))
3160 (sha256
3161 (base32
3162 "1c5l7i43jaj3s4wklc0cba6nn2x9cmpcggk4q4h9m1bci2xilsiy"))
3163 (patches (search-patches "picard-fix-id3-rename-test.patch"))))
3164 (build-system python-build-system)
3165 (arguments
3166 '(#:use-setuptools? #f
3167 #:configure-flags
3168 (list "--root=/"
3169 ;; Don't phone home or show ‘Check for Update…’ in the Help menu.
3170 "--disable-autoupdate")
3171 #:phases
3172 (modify-phases %standard-phases
3173 (add-after 'unpack 'patch-source
3174 (lambda* (#:key inputs #:allow-other-keys)
3175 (substitute* "picard/const/__init__.py"
3176 (("pyfpcalc")
3177 (string-append
3178 "pyfpcalc', '"
3179 (assoc-ref inputs "chromaprint") "/bin/fpcalc")))
3180 #t)))))
3181 (native-inputs
3182 `(("gettext" ,gettext-minimal)
3183 ("python-dateutil" ,python-dateutil)))
3184 (inputs
3185 `(("chromaprint" ,chromaprint)
3186 ("python-discid" ,python-discid)
3187 ("python-pyqt" ,python-pyqt)
3188 ("python-mutagen" ,python-mutagen)))
3189 (home-page "https://picard.musicbrainz.org/")
3190 (synopsis "Graphical music tagging application")
3191 (description
3192 "MusicBrainz Picard is a music tagging application, supporting multiple
3193 formats, looking up tracks through metadata and audio fingerprints.")
3194 (license license:gpl2+)))
3195
3196 (define-public python-mutagen
3197 (package
3198 (name "python-mutagen")
3199 (version "1.45.1")
3200 (source (origin
3201 (method url-fetch)
3202 (uri (pypi-uri "mutagen" version))
3203 (sha256
3204 (base32
3205 "1qdk6i8gyhbi1c4j5jmbfpac3q8sff2ysri1pnp7nb9wzcp615v3"))))
3206 (build-system python-build-system)
3207 (native-inputs
3208 `(("python-pytest" ,python-pytest)
3209 ("python-hypothesis" ,python-hypothesis)
3210 ("python-flake8" ,python-flake8)))
3211 (home-page "https://bitbucket.org/lazka/mutagen")
3212 (synopsis "Read and write audio tags")
3213 (description "Mutagen is a Python module to handle audio metadata. It
3214 supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
3215 Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
3216 of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
3217 Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
3218 APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
3219 streams on an individual packet/page level.")
3220 (license license:gpl2))) ; "later version" never mentioned
3221
3222 (define-public python2-mutagen
3223 (package-with-python2 python-mutagen))
3224
3225 (define-public python-musicbrainzngs
3226 (package
3227 (name "python-musicbrainzngs")
3228 (version "0.6")
3229 (source (origin
3230 (method url-fetch)
3231 (uri (pypi-uri "musicbrainzngs" version))
3232 (sha256
3233 (base32
3234 "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8"))))
3235 (build-system python-build-system)
3236 (arguments
3237 '(;; The tests fail suffer from race conditions:
3238 ;; https://github.com/alastair/python-musicbrainzngs/issues/211
3239 #:tests? #f))
3240 (home-page "https://python-musicbrainzngs.readthedocs.org/")
3241 (synopsis "Python bindings for MusicBrainz NGS webservice")
3242 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
3243 web service. This library can be used to retrieve music metadata from the
3244 MusicBrainz database.")
3245 ;; 'musicbrainzngs/compat.py' is ISC licensed.
3246 (license (list license:bsd-2 license:isc))))
3247
3248 (define-public python2-musicbrainzngs
3249 (package-with-python2 python-musicbrainzngs))
3250
3251 (define-public python-isrcsubmit
3252 (package
3253 (name "python-isrcsubmit")
3254 (version "2.0.1")
3255 (source
3256 (origin
3257 (method url-fetch)
3258 (uri (pypi-uri "isrcsubmit" version))
3259 (sha256
3260 (base32
3261 "0jh4cni8qhri6dh83cmp0i0m0384vv0vznlygv49wj9xzh1d99qv"))))
3262 (build-system python-build-system)
3263 (propagated-inputs
3264 `(("python-discid" ,python-discid)
3265 ("python-musicbrainzngs" ,python-musicbrainzngs)))
3266 (home-page "https://github.com/JonnyJD/musicbrainz-isrcsubmit")
3267 (synopsis "Submit ISRCs from CDs to MusicBrainz")
3268 (description "@code{isrcsubmit} is a tool to extract @dfn{International
3269 Standard Recording Code} (ISRCs) from audio CDs and submit them to
3270 @url{https://musicbrainz.org/, MusicBrainz}.")
3271 (license license:gpl3+)))
3272
3273 (define-public python2-pyechonest
3274 (package
3275 (name "python2-pyechonest")
3276 (version "9.0.0")
3277 (source (origin
3278 (method url-fetch)
3279 (uri (pypi-uri "pyechonest" version))
3280 (sha256
3281 (base32
3282 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
3283 (build-system python-build-system)
3284 (arguments
3285 `(;; Python 3 is not supported:
3286 ;; https://github.com/echonest/pyechonest/issues/42
3287 #:python ,python-2))
3288 (home-page "https://github.com/echonest/pyechonest")
3289 (synopsis "Python interface to The Echo Nest APIs")
3290 (description "Pyechonest is a Python library for the Echo Nest API. With
3291 Pyechonest you have Python access to the entire set of API methods including:
3292
3293 @enumerate
3294 @item artist - search for artists by name, description, or attribute, and get
3295 back detailed information about any artist including audio, similar artists,
3296 blogs, familiarity, hotttnesss, news, reviews, urls and video.
3297 @item song - search songs by artist, title, description, or attribute (tempo,
3298 duration, etc) and get detailed information back about each song, such as
3299 hotttnesss, audio_summary, or tracks.
3300 @item track - upload a track to the Echo Nest and receive summary information
3301 about the track including key, duration, mode, tempo, time signature along with
3302 detailed track info including timbre, pitch, rhythm and loudness information.
3303 @end enumerate\n")
3304 (license license:bsd-3)))
3305
3306 (define-public python-pylast
3307 (package
3308 (name "python-pylast")
3309 (version "2.0.0")
3310 (source (origin
3311 (method url-fetch)
3312 (uri (pypi-uri "pylast" version))
3313 (sha256
3314 (base32
3315 "0r9h7g8i8l2mgqjwkda3v6prfbkb2im5kap1az9ppmhjm9i4jkcf"))))
3316 (build-system python-build-system)
3317 ;; Tests require network access. See
3318 ;; https://github.com/pylast/pylast/issues/105
3319 (arguments '(#:tests? #f))
3320 (native-inputs
3321 `(("python-coverage" ,python-coverage)
3322 ("python-pycodestyle" ,python-pycodestyle)
3323 ("python-mock" ,python-mock)
3324 ("python-pep8" ,python-pep8)
3325 ("python-pytest" ,python-pytest)
3326 ("python-flaky" ,python-flaky)
3327 ("python-pyflakes" ,python-pyflakes)
3328 ("python-pyyaml" ,python-pyyaml)))
3329 (propagated-inputs
3330 `(("python-six" ,python-six)))
3331 (home-page "https://github.com/pylast/pylast")
3332 (synopsis "Python interface to Last.fm and Libre.fm")
3333 (description "A Python interface to Last.fm and other API-compatible
3334 websites such as Libre.fm.")
3335 (license license:asl2.0)))
3336
3337 (define-public python2-pylast
3338 (package-with-python2 python-pylast))
3339
3340 (define-public instantmusic
3341 (let ((commit "300891d09c703525215fa5a116b9294af1c923c8")
3342 (revision "1"))
3343 (package
3344 (name "instantmusic")
3345 (version (git-version "1.0" revision commit))
3346 (source (origin
3347 (method git-fetch)
3348 (uri (git-reference
3349 (url "https://github.com/yask123/Instant-Music-Downloader")
3350 (commit commit)))
3351 (file-name (git-file-name name version))
3352 (sha256
3353 (base32
3354 "0j7qivaa04bpdz3anmgci5833dgiyfqqwq9fdrpl9m68b34gl773"))))
3355 (build-system python-build-system)
3356 (propagated-inputs
3357 `(("python-requests" ,python-requests)
3358 ("eyed3" ,eyed3)
3359 ("python-beautifulsoup4" ,python-beautifulsoup4)
3360 ("youtube-dl" ,youtube-dl)))
3361 (arguments
3362 '(#:modules ((guix build python-build-system)
3363 (guix build utils)
3364 (srfi srfi-26))
3365 #:phases (modify-phases %standard-phases
3366 (add-before 'build 'change-directory
3367 (lambda _
3368 (chdir "instantmusic-0.1") #t))
3369 (add-before 'install 'fix-file-permissions
3370 (lambda _
3371 ;; Fix some read-only files that would cause a build failure
3372 (for-each (cut chmod <> #o644)
3373 (find-files "instantmusic.egg-info"
3374 "PKG-INFO|.*\\.txt"))
3375 #t)))))
3376 (home-page "https://github.com/yask123/Instant-Music-Downloader")
3377 (synopsis "Command-line program to download a song from YouTube")
3378 (description "InstantMusic downloads a song from YouTube in MP3 format.
3379 Songs can be searched by artist, name or even by a part of the song text.")
3380 (license license:expat))))
3381
3382 (define-public beets
3383 (package
3384 (name "beets")
3385 (version "1.4.9")
3386 (source (origin
3387 (method url-fetch)
3388 (uri (pypi-uri "beets" version))
3389 (patches (search-patches "beets-werkzeug-compat.patch"))
3390 (sha256
3391 (base32
3392 "0m40rjimvfgy1dv04p8f8d5dvi2855v4ix99a9xr900cmcn476yj"))))
3393 (build-system python-build-system)
3394 (arguments
3395 `(#:phases
3396 (modify-phases %standard-phases
3397 ;; Reported upstream: <https://github.com/beetbox/beets/issues/3771>.
3398 ;; Disable the faulty test as the fix is unclear.
3399 (add-after 'unpack 'disable-failing-tests
3400 (lambda _
3401 (substitute* "test/test_mediafile.py"
3402 (("def test_read_audio_properties") "def _test_read_audio_properties"))
3403 #t))
3404 (add-after 'unpack 'set-HOME
3405 (lambda _
3406 (setenv "HOME" (string-append (getcwd) "/tmp"))
3407 #t))
3408 (replace 'check
3409 (lambda _
3410 (invoke "nosetests" "-v")))
3411 ;; Wrap the executable, so it can find python-gi (aka pygobject) and
3412 ;; gstreamer plugins.
3413 (add-after 'wrap 'wrap-typelib
3414 (lambda* (#:key outputs #:allow-other-keys)
3415 (let ((prog (string-append (assoc-ref outputs "out")
3416 "/bin/beet"))
3417 (plugins (getenv "GST_PLUGIN_SYSTEM_PATH"))
3418 (types (getenv "GI_TYPELIB_PATH")))
3419 (wrap-program prog
3420 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,plugins))
3421 `("GI_TYPELIB_PATH" ":" prefix (,types)))
3422 #t))))))
3423 (native-inputs
3424 `(("python-beautifulsoup4" ,python-beautifulsoup4)
3425 ("python-flask" ,python-flask)
3426 ("python-mock" ,python-mock)
3427 ("python-mpd2" ,python-mpd2)
3428 ("python-nose" ,python-nose)
3429 ("python-pathlib" ,python-pathlib)
3430 ("python-pyxdg" ,python-pyxdg)
3431 ("python-pylast" ,python-pylast)
3432 ("python-rarfile" ,python-rarfile)
3433 ("python-responses" ,python-responses)))
3434 ;; TODO: Install optional plugins and dependencies.
3435 (inputs
3436 `(("python-discogs-client" ,python-discogs-client)
3437 ("python-jellyfish" ,python-jellyfish)
3438 ("python-munkres" ,python-munkres)
3439 ("python-musicbrainzngs" ,python-musicbrainzngs)
3440 ("python-mutagen" ,python-mutagen)
3441 ("python-pyacoustid" ,python-pyacoustid)
3442 ("python-pyyaml" ,python-pyyaml)
3443 ("python-unidecode" ,python-unidecode)
3444 ;; For plugin replaygain.
3445 ("python-pygobject" ,python-pygobject)
3446 ("gobject-introspection" ,gobject-introspection)
3447 ("gst-plugins-base" ,gst-plugins-base)
3448 ("gst-plugins-good" ,gst-plugins-good)
3449 ("gstreamer" ,gstreamer)))
3450 (home-page "https://beets.io")
3451 (synopsis "Music organizer")
3452 (description "The purpose of beets is to get your music collection right
3453 once and for all. It catalogs your collection, automatically improving its
3454 metadata as it goes using the MusicBrainz database. Then it provides a variety
3455 of tools for manipulating and accessing your music.")
3456 (license license:expat)))
3457
3458 (define-public beets-bandcamp
3459 (package
3460 (name "beets-bandcamp")
3461 (version "0.1.3")
3462 (source (origin
3463 (method url-fetch)
3464 (uri (pypi-uri "beets-bandcamp" version))
3465 (sha256
3466 (base32
3467 "04awg0zdhhg5h510fc1p3qkvr2l1qm6nf85hlr9z8im8a7xlka0i"))))
3468 (build-system python-build-system)
3469 (arguments '(#:tests? #f)) ; there are no tests
3470 (propagated-inputs
3471 `(("beets" ,beets)
3472 ("python-isodate" ,python-isodate)))
3473 (inputs
3474 `(("python-beautifulsoup4" ,python-beautifulsoup4)
3475 ("python-requests" ,python-requests)
3476 ("python-six" ,python-six)))
3477 (home-page "https://github.com/unrblt/beets-bandcamp")
3478 (synopsis "Bandcamp plugin for beets")
3479 (description
3480 "This plugin for beets automatically obtains tag data from @uref{Bandcamp,
3481 https://bandcamp.com/}. It's also capable of getting song lyrics and album art
3482 using the beets FetchArt plugin.")
3483 (license license:gpl2)))
3484
3485 (define-public milkytracker
3486 (package
3487 (name "milkytracker")
3488 (version "1.02.00")
3489 (source (origin
3490 (method git-fetch)
3491 (uri (git-reference
3492 (url "https://github.com/milkytracker/MilkyTracker")
3493 (commit (string-append "v" version))))
3494 (file-name (git-file-name name version))
3495 (sha256
3496 (base32
3497 "05a6d7l98k9i82dwrgi855dnccm3f2lkb144gi244vhk1156n0ca"))
3498 (modules '((guix build utils)))
3499 ;; Remove non-FSDG compliant sample songs.
3500 (snippet
3501 '(begin
3502 (delete-file-recursively "resources/music")
3503 (substitute* "CMakeLists.txt"
3504 (("add_subdirectory\\(resources/music\\)") ""))
3505 #t))))
3506 (build-system cmake-build-system)
3507 (arguments
3508 '(#:tests? #f ; no check target
3509 ;; This flag ensures that MilkyTracker links with the JACK library.
3510 #:configure-flags '("-DCMAKE_CXX_FLAGS=-ljack")))
3511 (inputs
3512 `(("alsa-lib" ,alsa-lib)
3513 ("lhasa" ,lhasa)
3514 ("jack" ,jack-1)
3515 ("rtmidi" ,rtmidi)
3516 ("sdl" ,sdl2)
3517 ("zlib" ,zlib)
3518 ("zziplib" ,zziplib)))
3519 (native-inputs
3520 `(("pkg-config" ,pkg-config)))
3521 (synopsis "Music tracker for working with .MOD/.XM module files")
3522 (description "MilkyTracker is a music application for creating .MOD and .XM
3523 module files. It attempts to recreate the module replay and user experience of
3524 the popular DOS program Fasttracker II, with special playback modes available
3525 for improved Amiga ProTracker 2/3 compatibility.")
3526 (home-page "https://milkytracker.titandemo.org/")
3527 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
3528 (license (list license:bsd-3 license:gpl3+))))
3529
3530 (define-public schismtracker
3531 (package
3532 (name "schismtracker")
3533 (version "20190805")
3534 (source (origin
3535 (method git-fetch)
3536 (uri (git-reference
3537 (url "https://github.com/schismtracker/schismtracker")
3538 (commit version)))
3539 (file-name (git-file-name name version))
3540 (sha256
3541 (base32
3542 "0qqps20vvn3rgpg8174bjrrm38gqcci2z5z4c1r1vhbccclahgsd"))
3543 (modules '((guix build utils)))
3544 (snippet
3545 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
3546 `(begin
3547 (substitute* "schism/version.c"
3548 (("Schism Tracker built %s %s.*$")
3549 (string-append "Schism Tracker version " ,version "\") ;")))
3550 #t))))
3551 (build-system gnu-build-system)
3552 (arguments
3553 `(#:phases
3554 (modify-phases %standard-phases
3555 (add-before 'configure 'link-libm
3556 (lambda _ (setenv "LIBS" "-lm") #t)))))
3557 (native-inputs
3558 `(("autoconf" ,autoconf)
3559 ("automake" ,automake)
3560 ("python" ,python)))
3561 (inputs
3562 `(("alsa-lib" ,alsa-lib) ; for asound dependency
3563 ("libx11" ,libx11)
3564 ("libxext" ,libxext)
3565 ("sdl" ,sdl)))
3566 (home-page "http://schismtracker.org")
3567 (synopsis "Oldschool sample-based music composition tool")
3568 (description
3569 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
3570 create high quality music without the requirements of specialized, expensive
3571 equipment, and with a unique \"finger feel\" that is difficult to replicate in
3572 part. The player is based on a highly modified version of the ModPlug engine,
3573 with a number of bugfixes and changes to improve IT playback.")
3574 (license license:gpl2+)))
3575
3576 (define-public sooperlooper
3577 (package
3578 (name "sooperlooper")
3579 (version "1.7.4")
3580 (source
3581 (origin
3582 (method url-fetch)
3583 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
3584 version ".tar.gz"))
3585 (sha256
3586 (base32 "1jjvq4aflbyr3nr8b318k1vkad16xfa1jkqn9ckzw4419qc6c1k5"))))
3587 (build-system gnu-build-system)
3588 (arguments
3589 `(#:phases
3590 (modify-phases %standard-phases
3591 (add-after 'unpack 'add-sigc++-includes
3592 (lambda* (#:key inputs #:allow-other-keys)
3593 (let ((sig (assoc-ref inputs "libsigc++"))
3594 (xml (assoc-ref inputs "libxml2"))
3595 (cwd (getcwd)))
3596 (setenv "CPATH"
3597 (string-append sig "/include/sigc++-2.0:"
3598 sig "/lib/sigc++-2.0/include:"
3599 xml "/include/libxml2/:"
3600 cwd "/libs/pbd:"
3601 cwd "/libs/midi++:"
3602 (or (getenv "CPATH") ""))))
3603 (substitute* '("src/control_osc.hpp"
3604 "src/gui/app_frame.hpp"
3605 "src/gui/config_panel.hpp"
3606 "src/gui/keys_panel.hpp"
3607 "src/gui/latency_panel.hpp"
3608 "src/gui/main_panel.hpp"
3609 "src/gui/midi_bind_panel.hpp"
3610 "src/gui/prefs_dialog.hpp")
3611 (("sigc\\+\\+/object.h")
3612 "sigc++/sigc++.h"))
3613 (substitute* '("src/engine.cpp"
3614 "src/gui/latency_panel.cpp"
3615 "src/gui/looper_panel.cpp"
3616 "src/gui/main_panel.cpp")
3617 (("(\\(| )bind " _ pre)
3618 (string-append pre "sigc::bind ")))
3619 #t))
3620 (add-after 'unpack 'fix-xpm-warnings
3621 (lambda _
3622 (substitute* (find-files "." "\\.xpm$")
3623 (("static char") "static const char"))
3624 #t)))))
3625 (inputs
3626 `(("jack" ,jack-1)
3627 ("alsa-lib" ,alsa-lib)
3628 ("wxwidgets" ,wxwidgets-gtk2)
3629 ("libsndfile" ,libsndfile)
3630 ("libsamplerate" ,libsamplerate)
3631 ("liblo" ,liblo)
3632 ("rubberband" ,rubberband)
3633 ("libxml2" ,libxml2)
3634 ("libsigc++" ,libsigc++)
3635 ("ncurses" ,ncurses)))
3636 (native-inputs
3637 `(("pkg-config" ,pkg-config)))
3638 (home-page "http://essej.net/sooperlooper/")
3639 (synopsis "Live looping sampler")
3640 (description
3641 "SooperLooper is a live looping sampler capable of immediate loop
3642 recording, overdubbing, multiplying, reversing and more. It allows for
3643 multiple simultaneous multi-channel loops limited only by your computer's
3644 available memory.")
3645 (license license:gpl2+)))
3646
3647 (define-public moc
3648 (package
3649 (name "moc")
3650 (version "2.5.2")
3651 (source (origin
3652 (method url-fetch)
3653 (uri (string-append "http://ftp.daper.net/pub/soft/"
3654 name "/stable/"
3655 name "-" version ".tar.bz2"))
3656 (sha256
3657 (base32
3658 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))))
3659 (build-system gnu-build-system)
3660 (inputs
3661 `(("alsa-lib" ,alsa-lib)
3662 ("curl" ,curl)
3663 ("faad2" ,faad2)
3664 ("ffmpeg" ,ffmpeg-3.4)
3665 ("file" ,file)
3666 ("jack" ,jack-1)
3667 ("libid3tag" ,libid3tag)
3668 ("libltdl" ,libltdl)
3669 ("libmodplug" ,libmodplug)
3670 ("libmpcdec" ,libmpcdec)
3671 ("libmad" ,libmad)
3672 ("libogg" ,libogg)
3673 ("libvorbis" ,libvorbis)
3674 ("ncurses" ,ncurses)
3675 ("openssl" ,openssl)
3676 ("sasl" ,cyrus-sasl)
3677 ("speex" ,speex)
3678 ("taglib" ,taglib)
3679 ("wavpack" ,wavpack)
3680 ("zlib" ,zlib)))
3681 (native-inputs
3682 `(("pkg-config" ,pkg-config)))
3683 (synopsis "Console audio player designed to be powerful and easy to use")
3684 (description
3685 "Music on Console is a console audio player that supports many file
3686 formats, including most audio formats recognized by FFMpeg.")
3687 (home-page "http://moc.daper.net")
3688 (license license:gpl2+)))
3689
3690 (define-public midicsv
3691 (package
3692 (name "midicsv")
3693 (version "1.1")
3694 (source (origin
3695 (method url-fetch)
3696 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
3697 name "-" version ".tar.gz"))
3698 (sha256
3699 (base32
3700 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
3701 (build-system gnu-build-system)
3702 (arguments
3703 `(#:phases (modify-phases %standard-phases (delete 'configure))
3704 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
3705 (synopsis "Convert MIDI files to and from CSV")
3706 (description
3707 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
3708 value file (CSV), which preserves all the information in the MIDI file. The
3709 ASCII CSV file may be loaded into a spreadsheet or database application, or
3710 processed by a program to transform the MIDI data (for example, to key
3711 transpose a composition or extract a track from a multi-track sequence). A
3712 CSV file in the format created by midicsv may be converted back into a
3713 standard MIDI file with the csvmidi program.")
3714 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
3715 (license license:public-domain)))
3716
3717 (define-public gx-guvnor-lv2
3718 (package
3719 (name "gx-guvnor-lv2")
3720 (version "0.1")
3721 (source (origin
3722 (method git-fetch)
3723 (uri (git-reference
3724 (url "https://github.com/brummer10/GxGuvnor.lv2")
3725 (commit (string-append "v" version))))
3726 (file-name (string-append name "-" version "-checkout"))
3727 (sha256
3728 (base32
3729 "1wa5070j40p7f0b3kr259pzm99xb6cf2badr2capayjvgayd6gnm"))))
3730 (build-system gnu-build-system)
3731 (arguments
3732 `(;; The check target is used only to output a warning.
3733 #:tests? #f
3734 #:make-flags
3735 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
3736 #:phases
3737 (modify-phases %standard-phases
3738 (replace 'configure
3739 (lambda _
3740 (substitute* "Makefile"
3741 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
3742 (("install : all") "install :"))
3743 #t)))))
3744 (inputs
3745 `(("lv2" ,lv2)))
3746 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
3747 (synopsis "Overdrive/distortion pedal simulation")
3748 (description "This package provides the LV2 plugin \"GxGuvnor\", a
3749 simulation of an overdrive or distortion pedal for guitars.")
3750 ;; The LICENSE file says GPLv3 but the license headers in the files say
3751 ;; GPLv2 or later. The whole project is released under GPLv3 or later
3752 ;; according to https://github.com/brummer10/GxGuvnor.lv2/issues/1
3753 (license license:gpl3+)))
3754
3755 (define-public gx-vbass-preamp-lv2
3756 (let ((commit "eb999b0ca0ef4da40a59e458a9ab6e7042b96c99")
3757 (revision "2"))
3758 (package (inherit gx-guvnor-lv2)
3759 (name "gx-vbass-preamp-lv2")
3760 (version (string-append "0-" revision "." (string-take commit 9)))
3761 (source (origin
3762 (method git-fetch)
3763 (uri (git-reference
3764 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
3765 (commit commit)))
3766 (sha256
3767 (base32
3768 "0firap073ldw4nrykkd7jvyyj0jbl1nslxyzjj4kswazp99x7d9h"))
3769 (file-name (string-append name "-" version "-checkout"))))
3770 (inputs
3771 `(("lv2" ,lv2)
3772 ("gtk+" ,gtk+-2)))
3773 (native-inputs
3774 `(("pkg-config" ,pkg-config)))
3775 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
3776 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
3777 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
3778 pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
3779 Section."))))
3780
3781 (define-public gx-overdriver-lv2
3782 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
3783 (revision "1"))
3784 (package (inherit gx-guvnor-lv2)
3785 (name "gx-overdriver-lv2")
3786 (version (string-append "0-" revision "." (string-take commit 9)))
3787 (source (origin
3788 (method git-fetch)
3789 (uri (git-reference
3790 (url "https://github.com/brummer10/GxOverDriver.lv2")
3791 (commit commit)))
3792 (sha256
3793 (base32
3794 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
3795 (file-name (string-append name "-" version "-checkout"))))
3796 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
3797 (synopsis "Overdrive effect with level and tone control")
3798 (description "This package provides the LV2 plugin \"GxOverDriver\", an
3799 overdrive effect."))))
3800
3801 (define-public gx-tone-mender-lv2
3802 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
3803 (revision "1"))
3804 (package (inherit gx-guvnor-lv2)
3805 (name "gx-tone-mender-lv2")
3806 (version (string-append "0-" revision "." (string-take commit 9)))
3807 (source (origin
3808 (method git-fetch)
3809 (uri (git-reference
3810 (url "https://github.com/brummer10/GxToneMender.lv2")
3811 (commit commit)))
3812 (sha256
3813 (base32
3814 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
3815 (file-name (string-append name "-" version "-checkout"))))
3816 (home-page "https://github.com/brummer10/GxToneMender.lv2")
3817 (synopsis "Clean boost with a 3-knob tonestack")
3818 (description "This package provides the LV2 plugin \"GxToneMender\", a
3819 clean boost effect with a 3-knob tonestack."))))
3820
3821 (define-public gx-push-pull-lv2
3822 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
3823 (revision "1"))
3824 (package (inherit gx-guvnor-lv2)
3825 (name "gx-push-pull-lv2")
3826 (version (string-append "0-" revision "." (string-take commit 9)))
3827 (source (origin
3828 (method git-fetch)
3829 (uri (git-reference
3830 (url "https://github.com/brummer10/GxPushPull.lv2")
3831 (commit commit)))
3832 (sha256
3833 (base32
3834 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
3835 (file-name (string-append name "-" version "-checkout"))))
3836 (home-page "https://github.com/brummer10/GxPushPull.lv2")
3837 (synopsis "Octave up push pull transistor fuzz simulation")
3838 (description "This package provides the LV2 plugin \"GxPushPull\", a
3839 simulation of a push pull transistor fuzz effect with added high octave."))))
3840
3841 (define-public gx-suppa-tone-bender-lv2
3842 (package (inherit gx-guvnor-lv2)
3843 (name "gx-suppa-tone-bender-lv2")
3844 (version "0.1")
3845 (source (origin
3846 (method git-fetch)
3847 (uri (git-reference
3848 (url "https://github.com/brummer10/GxSuppaToneBender.lv2")
3849 (commit (string-append "v" version))))
3850 (file-name (string-append name "-" version "-checkout"))
3851 (sha256
3852 (base32
3853 "01x6bjmllkmvxfzc5xwdix7w021j26js71awv728cxsmkxgqw0zy"))))
3854 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
3855 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
3856 (description "This package provides the LV2 plugin
3857 \"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
3858 pedal.")))
3859
3860 (define-public gx-saturator-lv2
3861 (let ((commit "605330f432c94b6eb3f8203cbe472befae959532")
3862 (revision "3"))
3863 (package (inherit gx-vbass-preamp-lv2)
3864 (name "gx-saturator-lv2")
3865 (version (string-append "0-" revision "." (string-take commit 9)))
3866 (source (origin
3867 (method git-fetch)
3868 (uri (git-reference
3869 (url "https://github.com/brummer10/GxSaturator.lv2")
3870 (commit commit)))
3871 (sha256
3872 (base32
3873 "1w4nvh0rmxrv3s3hmh4fs74f3hc0jn31v00j769j7v68mqr7kawy"))
3874 (file-name (string-append name "-" version "-checkout"))))
3875 (home-page "https://github.com/brummer10/GxSaturator.lv2")
3876 (synopsis "Saturation effect")
3877 (description "This package provides the LV2 plugin \"GxSaturator\", a
3878 saturation effect."))))
3879
3880 (define-public gx-hyperion-lv2
3881 (package (inherit gx-guvnor-lv2)
3882 (name "gx-hyperion-lv2")
3883 (version "0.1")
3884 (source (origin
3885 (method git-fetch)
3886 (uri (git-reference
3887 (url "https://github.com/brummer10/GxHyperion.lv2")
3888 (commit (string-append "v" version))))
3889 (file-name (string-append name "-" version "-checkout"))
3890 (sha256
3891 (base32
3892 "1vx79s6s9if117y2g0ppdja2sv2wcny6xcfl3j1z4cipahnildxf"))))
3893 (home-page "https://github.com/brummer10/GxHyperion.lv2")
3894 (synopsis "Simulation of the Hyperion Fuzz pedal")
3895 (description "This package provides the LV2 plugin \"GxHyperion\", a
3896 simulation of the Hyperion Fuzz pedal.")))
3897
3898 (define-public gx-voodoo-fuzz-lv2
3899 (package (inherit gx-guvnor-lv2)
3900 (name "gx-voodoo-fuzz-lv2")
3901 (version "0.1")
3902 (source (origin
3903 (method git-fetch)
3904 (uri (git-reference
3905 (url "https://github.com/brummer10/GxVoodoFuzz.lv2")
3906 (commit (string-append "v" version))))
3907 (file-name (string-append name "-" version "-checkout"))
3908 (sha256
3909 (base32
3910 "1v0scphivri1fk4hl20j13f92i48mnx1zsil4hgnadsmm4nsfw43"))))
3911 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
3912 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
3913 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
3914 simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
3915 Bosstone circuit, followed by the tone control of the FoxToneMachine in
3916 parallel with a DarkBooster, followed by a volume control.")))
3917
3918 (define-public gx-super-fuzz-lv2
3919 (package (inherit gx-guvnor-lv2)
3920 (name "gx-super-fuzz-lv2")
3921 (version "0.1")
3922 (source (origin
3923 (method git-fetch)
3924 (uri (git-reference
3925 (url "https://github.com/brummer10/GxSuperFuzz.lv2")
3926 (commit (string-append "v" version))))
3927 (file-name (string-append name "-" version "-checkout"))
3928 (sha256
3929 (base32
3930 "1jlljd9hlgfflbiizq47lv1xbbgjyx3v835mf24zmh1q5zsw4np4"))))
3931 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
3932 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
3933 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
3934 analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
3935 pot, which is usually in the housing, is exposed as a control parameter. It
3936 adjusts the amount of harmonics.")))
3937
3938 (define-public gx-vintage-fuzz-master-lv2
3939 (package (inherit gx-guvnor-lv2)
3940 (name "gx-vintage-fuzz-master-lv2")
3941 (version "0.1")
3942 (source (origin
3943 (method git-fetch)
3944 (uri (git-reference
3945 (url "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
3946 (commit (string-append "v" version))))
3947 (file-name (string-append name "-" version "-checkout"))
3948 (sha256
3949 (base32
3950 "02jb211z8rw2qr5r1z5mdxlqgiw6cbc319xpqplvn6k21c59mskv"))))
3951 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
3952 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
3953 (description "This package provides the LV2 plugin
3954 \"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
3955
3956 (define-public gx-slow-gear-lv2
3957 (let ((commit "5d37e775b0feef1d82feee94e2a7a2d7e57efe2d")
3958 (revision "3"))
3959 (package (inherit gx-vbass-preamp-lv2)
3960 (name "gx-slow-gear-lv2")
3961 (version (string-append "0-" revision "." (string-take commit 9)))
3962 (source (origin
3963 (method git-fetch)
3964 (uri (git-reference
3965 (url "https://github.com/brummer10/GxSlowGear.lv2")
3966 (commit commit)))
3967 (sha256
3968 (base32
3969 "141mz69zkhk3lm54bb6wgpnghb92zm1ig7fv07240cmhydqji1q1"))
3970 (file-name (string-append name "-" version "-checkout"))))
3971 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
3972 (synopsis "Slow gear audio effect")
3973 (description "This package provides the LV2 plugin \"GxSlowGear\", a
3974 slow gear audio effect to produce volume swells."))))
3975
3976 (define-public gx-switchless-wah-lv2
3977 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
3978 (revision "2"))
3979 (package (inherit gx-guvnor-lv2)
3980 (name "gx-switchless-wah-lv2")
3981 (version (string-append "0-" revision "." (string-take commit 9)))
3982 (source (origin
3983 (method git-fetch)
3984 (uri (git-reference
3985 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
3986 (commit commit)))
3987 (sha256
3988 (base32
3989 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
3990 (file-name (string-append name "-" version "-checkout"))))
3991 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
3992 (synopsis "Wah emulation with switchless activation")
3993 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
3994 a simulation of an analog Wah pedal with switchless activation."))))
3995
3996 (define-public rkrlv2
3997 ;; This commit corresponds to the beta_3 tag
3998 (let ((commit "7edcb4e29a358623bfd57fa2c27e5da60adfcec3")
3999 (revision "2"))
4000 (package
4001 (name "rkrlv2")
4002 (version (git-version "0" revision commit))
4003 (source (origin
4004 (method git-fetch)
4005 (uri (git-reference
4006 (url "https://github.com/ssj71/rkrlv2")
4007 (commit commit)))
4008 (sha256
4009 (base32
4010 "16i4ajrib7kb0abdcn4901g8a4lkwkp2fyqyms38dhqq84slyfjs"))
4011 (file-name (git-file-name name version))))
4012 (build-system cmake-build-system)
4013 (arguments '(#:tests? #f)) ; there are no tests
4014 (inputs
4015 `(("fftw" ,fftw)
4016 ("libsamplerate" ,libsamplerate)
4017 ("lv2" ,lv2)))
4018 (native-inputs
4019 `(("pkg-config" ,pkg-config)))
4020 (home-page "https://github.com/ssj71/rkrlv2")
4021 (synopsis "Rakarrack effects ported to LV2 plugins")
4022 (description "This package provides the Rakarrack effects as LV2
4023 plugins. The ports are done such that hopefully when Rakarrack gets an active
4024 maintainer these will get merged into the original project.")
4025 (license license:gpl2))))
4026
4027 (define-public mod-utilities
4028 (let ((commit "80ea3ea9f52fab7f191671f4810bf90fc955a046")
4029 (revision "2"))
4030 (package
4031 (name "mod-utilities")
4032 (version (string-append "0-" revision "." (string-take commit 9)))
4033 (source (origin
4034 (method git-fetch)
4035 (uri (git-reference
4036 (url "https://github.com/moddevices/mod-utilities")
4037 (commit commit)))
4038 (file-name (string-append name "-" version "-checkout"))
4039 (sha256
4040 (base32
4041 "1v55zmzmlg0ka7341x5lsvb44amy17vk27s669ps1basd1bk5s5v"))))
4042 (build-system gnu-build-system)
4043 (arguments
4044 `(#:tests? #f ; there are no tests
4045 #:make-flags
4046 (list (string-append "INSTALL_PATH="
4047 (assoc-ref %outputs "out")
4048 "/lib/lv2")
4049 (string-append "PREFIX=" (assoc-ref %outputs "out"))
4050 "CC=gcc")
4051 #:phases
4052 (modify-phases %standard-phases
4053 (delete 'configure))))
4054 (inputs
4055 `(("lv2" ,lv2)))
4056 (home-page "https://github.com/moddevices/mod-utilities")
4057 (synopsis "LV2 utility plugins")
4058 (description "This package provides LV2 audio utility plugins, such as
4059 filters, crossovers, simple gain plugins without zipper noise, switch box
4060 plugins, a switch trigger, a toggle switch, and a peakmeter.")
4061 (license license:gpl2+))))
4062
4063 (define-public ingen
4064 (let ((commit "cc4a4db33f4d126a07a4a498e053c5fb9a883be3")
4065 (revision "2"))
4066 (package
4067 (name "ingen")
4068 (version (string-append "0.0.0-" revision "."
4069 (string-take commit 9)))
4070 (source
4071 (origin
4072 (method git-fetch)
4073 (uri (git-reference
4074 (url "https://git.drobilla.net/ingen.git")
4075 (commit commit)))
4076 (file-name (string-append name "-" version "-checkout"))
4077 (sha256
4078 (base32
4079 "1wg47vjw9djn99gbnsl2bcwj4xhdid61m4wrbn2nlp797flj91ic"))))
4080 (build-system waf-build-system)
4081 (arguments
4082 `(#:python ,python-2
4083 #:tests? #f ; no "check" target
4084 #:configure-flags (list "--no-webkit")
4085 #:phases
4086 (modify-phases %standard-phases
4087 (add-after 'unpack 'patch-wscript
4088 (lambda* (#:key outputs #:allow-other-keys)
4089 (let ((out (assoc-ref outputs "out")))
4090 (substitute* "wscript"
4091 ;; FIXME: Our version of lv2specgen.py does not behave as
4092 ;; expected. Maybe this requires a development version of
4093 ;; LV2.
4094 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
4095 ;; Add libraries to RUNPATH.
4096 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
4097 (string-append prefix
4098 "linkflags=[\"-Wl,-rpath="
4099 out "/lib" "\"]," line)))
4100 (substitute* '("src/wscript"
4101 "src/server/wscript")
4102 ;; Add libraries to RUNPATH.
4103 (("bld.env.PTHREAD_LINKFLAGS" line)
4104 (string-append line
4105 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
4106 (substitute* "src/client/wscript"
4107 ;; Add libraries to RUNPATH.
4108 (("^(.+)target.*= 'ingen_client'," line prefix)
4109 (string-append prefix
4110 "linkflags=[\"-Wl,-rpath="
4111 out "/lib" "\"]," line)))
4112 (substitute* "src/gui/wscript"
4113 ;; Add libraries to RUNPATH.
4114 (("^(.+)target.* = 'ingen_gui.*" line prefix)
4115 (string-append prefix
4116 "linkflags=[\"-Wl,-rpath="
4117 out "/lib" "\"]," line))))
4118 #t)))))
4119 (inputs
4120 `(("boost" ,boost)
4121 ("python-rdflib" ,python-rdflib)
4122 ("python" ,python)
4123 ("jack" ,jack-1)
4124 ("lv2" ,lv2)
4125 ("lilv" ,lilv)
4126 ("raul" ,raul-devel)
4127 ("ganv" ,ganv)
4128 ("suil" ,suil)
4129 ("serd" ,serd)
4130 ("sord" ,sord)
4131 ("sratom" ,sratom)
4132 ("gtkmm" ,gtkmm-2)))
4133 (native-inputs
4134 `(("pkg-config" ,pkg-config)
4135 ("python-pygments" ,python-pygments)))
4136 (home-page "https://drobilla.net/software/ingen")
4137 (synopsis "Modular audio processing system")
4138 (description "Ingen is a modular audio processing system for JACK and
4139 LV2 based systems. Ingen is built around LV2 technology and a strict
4140 separation of engine from user interface. The engine is controlled
4141 exclusively through a protocol, and can execute as a headless process, with an
4142 in-process GUI, or as an LV2 plugin. The GUI can run as a program which
4143 communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
4144 communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
4145 plugin on any system where Ingen is installed. This allows users to visually
4146 develop custom plugins for use in other applications without programming.")
4147 (license license:agpl3+))))
4148
4149 (define-public qmidiarp
4150 (package
4151 (name "qmidiarp")
4152 (version "0.6.5")
4153 (source (origin
4154 (method url-fetch)
4155 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
4156 version "/qmidiarp-" version ".tar.bz2"))
4157 (sha256
4158 (base32
4159 "043yh1p0rrbj1v840y27529m9260g55gvh1km8az4jxy7mns58r2"))))
4160 (build-system gnu-build-system)
4161 (arguments
4162 `(#:configure-flags
4163 (list "--enable-qt5")))
4164 (inputs
4165 `(("qtbase" ,qtbase)
4166 ("alsa-lib" ,alsa-lib)
4167 ("jack" ,jack-1)
4168 ("liblo" ,liblo)
4169 ("lv2" ,lv2)))
4170 (native-inputs
4171 `(("pkg-config" ,pkg-config)
4172 ("qttools" ,qttools)))
4173 (home-page "http://qmidiarp.sourceforge.net/")
4174 (synopsis "MIDI arpeggiator")
4175 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
4176 sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
4177 modules running in parallel.")
4178 (license license:gpl2+)))
4179
4180 (define-public qmidiroute
4181 (package
4182 (name "qmidiroute")
4183 (version "0.4.0")
4184 (source (origin
4185 (method url-fetch)
4186 (uri (string-append "mirror://sourceforge/alsamodular/QMidiRoute/"
4187 version "/qmidiroute-" version ".tar.bz2"))
4188 (sha256
4189 (base32
4190 "19v1ppbglgl3z9v7xdqc0k33w71cqq8a7d6ihvfs7iz77dygrih9"))))
4191 (build-system gnu-build-system)
4192 (arguments
4193 `(#:configure-flags
4194 (list "--enable-qt5")))
4195 (inputs
4196 `(("qtbase" ,qtbase)
4197 ("alsa-lib" ,alsa-lib)))
4198 (native-inputs
4199 `(("pkg-config" ,pkg-config)
4200 ("qttools" ,qttools)))
4201 (home-page "http://alsamodular.sourceforge.net/")
4202 (synopsis "MIDI event router and filter")
4203 (description "QMidiRoute is a MIDI event router and filter. MIDI note,
4204 control change, program change and pitch bend events are logged, and can be
4205 filtered, redirected and transformed into other events according to MIDI maps
4206 defined as tabs in the main control surface.")
4207 (license license:gpl2+)))
4208
4209 (define-public seq24
4210 (package
4211 (name "seq24")
4212 (version "0.9.3")
4213 (source (origin
4214 (method url-fetch)
4215 (uri (string-append "https://launchpad.net/seq24/trunk/"
4216 version "/+download/seq24-"
4217 version ".tar.bz2"))
4218 (sha256
4219 (base32
4220 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
4221 (patches (search-patches "seq24-rename-mutex.patch"))))
4222 (build-system gnu-build-system)
4223 (inputs
4224 `(("gtkmm" ,gtkmm-2)
4225 ("alsa-lib" ,alsa-lib)
4226 ("jack" ,jack-1)
4227 ("lash" ,lash)))
4228 (native-inputs
4229 `(("pkg-config" ,pkg-config)))
4230 (home-page "https://edge.launchpad.net/seq24/")
4231 (synopsis "Real-time MIDI sequencer")
4232 (description "Seq24 is a real-time MIDI sequencer. It was created to
4233 provide a very simple interface for editing and playing MIDI loops.")
4234 (license license:gpl2+)))
4235
4236 (define-public python-discogs-client
4237 (package
4238 (name "python-discogs-client")
4239 (version "2.2.1")
4240 (source (origin
4241 (method url-fetch)
4242 (uri (pypi-uri "discogs-client" version))
4243 (sha256
4244 (base32
4245 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
4246 (build-system python-build-system)
4247 (propagated-inputs
4248 `(("python-oauthlib" ,python-oauthlib)
4249 ("python-requests" ,python-requests)))
4250 (native-inputs
4251 `(("python-six" ,python-six)))
4252 (home-page "https://github.com/discogs/discogs_client")
4253 (synopsis "Official Python client for the Discogs API")
4254 (description "This is the official Discogs API client for Python. It enables
4255 you to query the Discogs database for information on artists, releases, labels,
4256 users, Marketplace listings, and more. It also supports OAuth 1.0a
4257 authorization, which allows you to change user data such as profile information,
4258 collections and wantlists, inventory, and orders.")
4259 (license license:bsd-2)))
4260
4261 (define-public python2-discogs-client
4262 (package-with-python2 python-discogs-client))
4263
4264 (define-public libsmf
4265 (package
4266 (name "libsmf")
4267 (version "1.3")
4268 (source
4269 (origin
4270 (method url-fetch)
4271 ;; SF download page says development moved, but the link it points to
4272 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
4273 ;; it but made no release so far (https://github.com/stump/libsmf).
4274 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
4275 version "/libsmf-" version ".tar.gz"))
4276 (sha256
4277 (base32
4278 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
4279 (build-system gnu-build-system)
4280 (outputs '("out"
4281 "static")) ; 88KiB of .a files
4282 (arguments
4283 `(#:phases
4284 (modify-phases %standard-phases
4285 (add-after 'install 'move-static-libraries
4286 (lambda* (#:key outputs #:allow-other-keys)
4287 ;; Move static libraries to the "static" output.
4288 (let* ((out (assoc-ref outputs "out"))
4289 (lib (string-append out "/lib"))
4290 (static (assoc-ref outputs "static"))
4291 (slib (string-append static "/lib")))
4292 (mkdir-p slib)
4293 (for-each (lambda (file)
4294 (install-file file slib)
4295 (delete-file file))
4296 (find-files lib "\\.a$"))
4297 #t))))))
4298 (inputs
4299 `(("readline" ,readline)
4300 ("glib" ,glib)))
4301 (native-inputs
4302 `(("doxygen" ,doxygen)
4303 ("pkg-config" ,pkg-config)))
4304 (home-page "http://libsmf.sourceforge.net/")
4305 (synopsis "Standard MIDI File format library")
4306 (description
4307 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
4308 conversions between time and pulses, tempo map handling and more. The only dependencies
4309 are a C compiler and glib. Full API documentation and examples are included.")
4310 (license license:bsd-2)))
4311
4312 (define-public lmms
4313 (package
4314 (name "lmms")
4315 (version "1.2.1")
4316 (source
4317 (origin
4318 (method git-fetch)
4319 (uri (git-reference
4320 (url "https://github.com/LMMS/lmms")
4321 (commit (string-append "v" version))))
4322 (file-name (git-file-name name version))
4323 (sha256
4324 (base32
4325 "1gx730z361xx30iqbsm99aam1k2c8yf561gcay6sryyjksb4w1wy"))))
4326 (build-system cmake-build-system)
4327 (arguments
4328 `(#:tests? #f ; no tests
4329 ;; Qt 5 support must be explicitly enabled in the 1.2 stable versions of
4330 ;; LMMS, so try removing "-DWANT_QT5=ON" in later versions.
4331 ;; Also, explicitly disabling VST support gets rid of the in-tree
4332 ;; dependency on qt5-x11embed.
4333 #:configure-flags '("-DWANT_QT5=ON"
4334 "-DWANT_VST=OFF")
4335 #:phases
4336 (modify-phases %standard-phases
4337 (add-after 'unpack 'unpack-rpmalloc
4338 (lambda* (#:key inputs #:allow-other-keys)
4339 (copy-recursively (assoc-ref inputs "rpmalloc")
4340 "src/3rdparty/rpmalloc/rpmalloc")
4341 #t))
4342 (add-before 'configure 'set-ldflags
4343 (lambda* (#:key outputs #:allow-other-keys)
4344 (setenv "LDFLAGS"
4345 (string-append
4346 "-Wl,-rpath=\""
4347 (assoc-ref outputs "out") "/lib/lmms"
4348 ":"
4349 (assoc-ref outputs "out") "/lib/lmms/ladspa"
4350 "\""))
4351 #t))
4352 (add-before 'reset-gzip-timestamps 'make-manpages-writable
4353 (lambda* (#:key outputs #:allow-other-keys)
4354 (map (lambda (file)
4355 (make-file-writable file))
4356 (find-files (string-append (assoc-ref outputs "out")
4357 "/share/man")
4358 ".*\\.gz$"))
4359 #t)))))
4360 (native-inputs
4361 `(("pkg-config" ,pkg-config)
4362 ("qttools" ,qttools)
4363 ;; rpmalloc is a public domain memory allocator. This version specified
4364 ;; below is the version required by LMMS.
4365 ;; To get the new commit of rpmalloc to use here, run
4366 ;; `git submodule--helper list | grep rpmalloc | cut -f2 -d' '`
4367 ;; in the cloned LMMS repository.
4368 ("rpmalloc"
4369 ,(origin
4370 (method git-fetch)
4371 (uri (git-reference
4372 (url "https://github.com/mjansson/rpmalloc")
4373 (commit "b5bdc18051bb74a22f0bde4bcc90b01cf590b496")))
4374 (sha256
4375 (base32
4376 "0g9pls46iggg7rdm65vzfj8nyr3v2n5xkp54c4qbh9hhalpsw4ay"))))))
4377 (inputs
4378 `(("sdl" ,sdl)
4379 ("qtbase" ,qtbase)
4380 ("qtx11extras" ,qtx11extras)
4381 ("fltk" ,fltk)
4382 ("libogg" ,libogg)
4383 ("libsamplerate" ,libsamplerate)
4384 ("fluidsynth" ,fluidsynth)
4385 ("libvorbis" ,libvorbis)
4386 ("alsa-lib" ,alsa-lib)
4387 ("portaudio" ,portaudio)
4388 ("ladspa" ,ladspa)
4389 ("libsndfile1" ,libsndfile)
4390 ("libxft" ,libxft)
4391 ("freetype2" ,freetype)
4392 ("fftw3f" ,fftwf)
4393 ("jack" ,jack-1)))
4394 (home-page "https://lmms.io/")
4395 (synopsis "Music composition tool")
4396 (description "LMMS is a digital audio workstation. It includes tools for sequencing
4397 melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
4398 audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
4399 (license license:gpl2+)))
4400
4401 (define-public musescore
4402 (package
4403 (name "musescore")
4404 (version "3.5.2")
4405 (source
4406 (origin
4407 (method git-fetch)
4408 (uri (git-reference
4409 (url "https://github.com/musescore/MuseScore")
4410 (commit (string-append "v" version))))
4411 (file-name (git-file-name name version))
4412 (sha256
4413 (base32 "0yzps5xxa50cr2i5iv2ycjdywd0mcrdd6hx93l4p8lfljag3w3al"))
4414 (modules '((guix build utils)))
4415 (snippet
4416 ;; Remove unused libraries.
4417 '(begin
4418 (for-each delete-file-recursively
4419 '("thirdparty/freetype"
4420 "thirdparty/openssl"
4421 "thirdparty/portmidi"
4422 "thirdparty/qt-google-analytics"))
4423 #t))))
4424 (build-system cmake-build-system)
4425 (arguments
4426 `(#:configure-flags
4427 `("-DBUILD_TELEMETRY_MODULE=OFF" ;don't phone home
4428 "-DBUILD_WEBENGINE=OFF"
4429 "-DDOWNLOAD_SOUNDFONT=OFF"
4430 "-DMUSESCORE_BUILD_CONFIG=release"
4431 "-DUSE_SYSTEM_FREETYPE=ON")
4432 ;; There are tests, but no simple target to run. The command used to
4433 ;; run them is:
4434 ;;
4435 ;; make debug && sudo make installdebug && cd \
4436 ;; build.debug/mtest && make && ctest
4437 ;;
4438 ;; Basically, it requires to start a whole new build process.
4439 ;; So we simply skip them.
4440 #:tests? #f))
4441 (inputs
4442 `(("alsa-lib" ,alsa-lib)
4443 ("freetype" ,freetype)
4444 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
4445 ("jack" ,jack-1)
4446 ("lame" ,lame)
4447 ("libogg" ,libogg)
4448 ("libsndfile" ,libsndfile)
4449 ("libvorbis" ,libvorbis)
4450 ("portaudio" ,portaudio)
4451 ("portmidi" ,portmidi)
4452 ("pulseaudio" ,pulseaudio)
4453 ("qtbase" ,qtbase)
4454 ("qtdeclarative" ,qtdeclarative)
4455 ("qtquickcontrols2" ,qtquickcontrols2)
4456 ("qtscript" ,qtscript)
4457 ("qtsvg" ,qtsvg)
4458 ("qtxmlpatterns" ,qtxmlpatterns)))
4459 (native-inputs
4460 `(("pkg-config" ,pkg-config)
4461 ("qttools" ,qttools)))
4462 (synopsis "Music composition and notation software")
4463 (description
4464 "MuseScore is a music score typesetter. Its main purpose is the creation
4465 of high-quality engraved musical scores in a WYSIWYG environment.
4466
4467 It supports unlimited staves, linked parts and part extraction, tablature,
4468 MIDI input, percussion notation, cross-staff beaming, automatic transposition,
4469 lyrics (multiple verses), fretboard diagrams, and in general everything
4470 commonly used in sheet music. Style options and style sheets to change the
4471 appearance and layout are provided.
4472
4473 MuseScore can also play back scores through the built-in sequencer and SoundFont
4474 sample library.")
4475 (home-page "https://musescore.org")
4476 (license license:gpl2)))
4477
4478 (define-public muse-sequencer
4479 (package
4480 (name "muse-sequencer")
4481 (version "3.1.1")
4482 (source (origin
4483 (method git-fetch)
4484 (uri (git-reference
4485 (url "https://github.com/muse-sequencer/muse")
4486 (commit (string-append "muse_"
4487 (string-map (lambda (c)
4488 (if (char=? c #\.)
4489 #\_ c)) version)))))
4490 (file-name (git-file-name name version))
4491 (sha256
4492 (base32
4493 "1rasp2v1ds2aw296lbf27rzw0l9fjl0cvbvw85d5ycvh6wkm301p"))))
4494 (build-system cmake-build-system)
4495 (arguments
4496 `(#:tests? #f ; there is no test target
4497 #:configure-flags
4498 (list "-DENABLE_INSTPATCH=OFF" ; FIXME: not packaged
4499 "-DENABLE_VST_NATIVE=OFF"
4500 (string-append "-DCMAKE_EXE_LINKER_FLAGS="
4501 "-Wl,-rpath="
4502 (assoc-ref %outputs "out") "/lib/muse-"
4503 ,(version-major+minor version) "/modules")
4504 (string-append "-DCMAKE_SHARED_LINKER_FLAGS="
4505 "-Wl,-rpath="
4506 (assoc-ref %outputs "out") "/lib/muse-"
4507 ,(version-major+minor version) "/modules"))
4508 #:phases
4509 (modify-phases %standard-phases
4510 (add-after 'unpack 'chdir
4511 (lambda _ (chdir "muse3") #t))
4512 (add-after 'chdir 'fix-include
4513 (lambda _
4514 (substitute* "muse/driver/rtaudio.h"
4515 (("rtaudio/RtAudio.h") "RtAudio.h"))
4516 #t)))))
4517 (inputs
4518 `(("alsa-lib" ,alsa-lib)
4519 ("lash" ,lash)
4520 ("jack" ,jack-1)
4521 ("liblo" ,liblo)
4522 ("dssi" ,dssi)
4523 ("ladspa" ,ladspa)
4524 ("lv2" ,lv2)
4525 ("lilv" ,lilv)
4526 ("sord" ,sord)
4527 ("libsndfile" ,libsndfile)
4528 ("libsamplerate" ,libsamplerate)
4529 ("lrdf" ,lrdf)
4530 ("fluidsynth" ,fluidsynth)
4531 ("pcre" ,pcre)
4532 ("pulseaudio" ,pulseaudio) ; required by rtaudio
4533 ("qtbase" ,qtbase)
4534 ("qtsvg" ,qtsvg)
4535 ("rtaudio" ,rtaudio)
4536 ("rubberband" ,rubberband)))
4537 (native-inputs
4538 `(("pkg-config" ,pkg-config)
4539 ("qttools" ,qttools)))
4540 (home-page "https://muse-sequencer.github.io/")
4541 (synopsis "MIDI/Audio sequencer")
4542 (description "MusE is a MIDI/Audio sequencer with recording and editing
4543 capabilities. Its audio sequencer supports the LADSPA, DSSI, and LV2 audio
4544 plugin formats; the MIDI sequencer provides a piano roll, a drum editor, a
4545 list view, and a score editor. MusE aims to be a complete multitrack virtual
4546 studio.")
4547 (license license:gpl2+)))
4548
4549 (define-public dssi
4550 (package
4551 (name "dssi")
4552 (version "1.1.1")
4553 (source (origin
4554 (method url-fetch)
4555 (uri (string-append
4556 "mirror://sourceforge/dssi/dssi/" version
4557 "/dssi-" version ".tar.gz"))
4558 (sha256
4559 (base32
4560 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
4561 (build-system gnu-build-system)
4562 (inputs
4563 `(("alsa-lib" ,alsa-lib)
4564 ("jack" ,jack-1)
4565 ("ladspa" ,ladspa)
4566 ("libsamplerate" ,libsamplerate)
4567 ("libsndfile" ,libsndfile)
4568 ("liblo" ,liblo)))
4569 (native-inputs
4570 `(("pkg-config" ,pkg-config)))
4571 (synopsis "Audio plugin API for soft synths and effects")
4572 (description "DSSI is a plugin API for software instruments with user
4573 interfaces, permitting them to be hosted in-process by audio applications.
4574 It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
4575 towards familiarity with MIDI. The DSSI distribution package contains
4576 a JACK/ALSA-sequencer reference host and some plugins as well as the
4577 specification and header.")
4578 (home-page "http://dssi.sourceforge.net/")
4579 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
4580 ;; The vast majority of examples are in the public domain.
4581 (license (list license:lgpl2.1+ license:gpl2+))))
4582
4583 (define-public rosegarden
4584 (package
4585 (name "rosegarden")
4586 (version "20.12")
4587 (source
4588 (origin
4589 (method url-fetch)
4590 (uri (string-append "mirror://sourceforge/rosegarden/rosegarden/"
4591 version "/rosegarden-" version ".tar.bz2"))
4592 (sha256
4593 (base32 "0nqw2caxmv6mqh485wzvywa024yvi18q87sd4dw9b2l5qnpq8rl8"))))
4594 (build-system cmake-build-system)
4595 (arguments
4596 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
4597 #:phases
4598 (modify-phases %standard-phases
4599 (add-after 'unpack 'patch-tests
4600 (lambda _
4601 (substitute* "CMakeLists.txt"
4602 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
4603 ;; Make tests work.
4604 ((" -fvisibility=hidden") ""))
4605 #t))
4606 (add-after 'unpack 'fix-references
4607 (lambda* (#:key inputs #:allow-other-keys)
4608 (substitute* "src/gui/general/ProjectPackager.cpp"
4609 (("\"flac\\>")
4610 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
4611 (("\"wavpack\\>")
4612 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
4613 (("\"wvunpack\\>")
4614 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
4615 (("\"bash\\>")
4616 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
4617 (("\"tar\\>")
4618 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
4619 (substitute* "src/gui/general/LilyPondProcessor.cpp"
4620 (("\"convert-ly\\>")
4621 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
4622 (("\"lilypond\\>")
4623 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
4624 #t))
4625 (add-after 'unpack 'make-reproducible
4626 (lambda _
4627 ;; Prevent Last-Modified from being written.
4628 ;; The "*.qm" files that are used in locale.qrc would have a new
4629 ;; mtime otherwise that is written into qrc_locale.cpp in the
4630 ;; end - except when we disable it.
4631 (substitute* "src/CMakeLists.txt"
4632 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
4633 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
4634 ;; Extraneous.
4635 ;;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
4636 ;; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
4637 )
4638 ;; Make hashtable traversal order predicable.
4639 (setenv "QT_RCC_TEST" "1") ; important
4640 #t))
4641 (add-before 'check 'prepare-check
4642 (lambda _
4643 (setenv "QT_QPA_PLATFORM" "offscreen")
4644 ;; Tests create files in $HOME/.local/share/rosegarden .
4645 (mkdir-p "/tmp/foo")
4646 (setenv "HOME" "/tmp/foo")
4647 (setenv "XDG_RUNTIME_DIR" "/tmp/foo")
4648 #t)))))
4649 (inputs
4650 `(("alsa-lib" ,alsa-lib)
4651 ("bash" ,bash)
4652 ("dssi" ,dssi)
4653 ("flac" ,flac)
4654 ("fftwf" ,fftwf)
4655 ("jack" ,jack-1)
4656 ("ladspa" ,ladspa)
4657 ("liblo" ,liblo)
4658 ("libsamplerate" ,libsamplerate)
4659 ("lilypond" ,lilypond)
4660 ("lrdf" ,lrdf)
4661 ("qtbase" ,qtbase)
4662 ("tar" ,tar)
4663 ("lirc" ,lirc)
4664 ("wavpack" ,wavpack)
4665 ("zlib" ,zlib)))
4666 (native-inputs
4667 `(("pkg-config" ,pkg-config)
4668 ("qtlinguist" ,qttools)))
4669 (synopsis "Music composition and editing environment based around a MIDI
4670 sequencer")
4671 (description "Rosegarden is a music composition and editing environment
4672 based around a MIDI sequencer that features a rich understanding of music
4673 notation and includes basic support for digital audio.")
4674 (home-page "https://www.rosegardenmusic.com/")
4675 (license license:gpl2)))
4676
4677 (define-public patchmatrix
4678 (package
4679 (name "patchmatrix")
4680 (version "0.16.0")
4681 (source (origin
4682 (method git-fetch)
4683 (uri (git-reference
4684 (url "https://github.com/OpenMusicKontrollers/patchmatrix")
4685 (commit version)))
4686 (file-name (git-file-name "patchmatrix" version))
4687 (sha256
4688 (base32
4689 "020vp7zzxxzzjfic57vkpg68dm8hi98ilr1bj88xjsv6i47xmjbn"))))
4690 (build-system meson-build-system)
4691 (arguments '(#:tests? #f)) ; no test target
4692 (inputs
4693 `(("jack" ,jack-1)
4694 ("lv2" ,lv2)
4695 ("mesa" ,mesa)))
4696 (native-inputs
4697 `(("pkg-config" ,pkg-config)))
4698 (home-page "https://github.com/OpenMusicKontrollers/patchmatrix")
4699 (synopsis "Simple JACK patch bay")
4700 (description "PatchMatrix is a patch bay for the JACK audio connection
4701 kit. It provides a patch bay in flow matrix style for audio, MIDI, CV, and
4702 OSC connections.")
4703 (license license:artistic2.0)))
4704
4705 (define-public sorcer
4706 (package
4707 (name "sorcer")
4708 (version "1.1.3")
4709 (source (origin
4710 (method url-fetch)
4711 (uri (string-append "https://github.com/openAVproductions/"
4712 "openAV-Sorcer/archive/release-"
4713 version ".tar.gz"))
4714 (file-name (string-append name "-" version ".tar.gz"))
4715 (sha256
4716 (base32
4717 "07iyqj28wm0xc4arrq893bm12xjpz65db7ynrlmf6w8krg8wjmd0"))))
4718 (build-system cmake-build-system)
4719 (arguments
4720 `(#:tests? #f ; no tests included
4721 #:phases
4722 (modify-phases %standard-phases
4723 (add-after 'unpack 'remove-architecture-specific-flags
4724 (lambda _
4725 (substitute* "CMakeLists.txt"
4726 (("-msse2 -mfpmath=sse") ""))
4727 #t))
4728 (add-after 'unpack 'build-faust-sources
4729 (lambda* (#:key inputs #:allow-other-keys)
4730 (with-directory-excursion "faust"
4731 (delete-file "main.cpp")
4732 (invoke "faust" "-i"
4733 "-a" "lv2synth.cpp"
4734 "-o" "main.cpp" "main.dsp")))))))
4735 (inputs
4736 `(("boost" ,boost)
4737 ("lv2" ,lv2)
4738 ("ntk" ,ntk)))
4739 (native-inputs
4740 `(("faust" ,faust)
4741 ("pkg-config" ,pkg-config)))
4742 (home-page "http://openavproductions.com/sorcer/")
4743 (synopsis "Wavetable LV2 plugin synth")
4744 (description "Sorcer is a wavetable LV2 plugin synthesizer, targeted at
4745 the electronic or dubstep genre.")
4746 (license license:gpl3+)))
4747
4748 (define-public sonivox-eas
4749 (package
4750 (name "sonivox-eas")
4751 (version "1.1.0")
4752 (source (origin
4753 (method git-fetch)
4754 (uri (git-reference
4755 (url "https://github.com/pedrolcl/Linux-SonivoxEas")
4756 (commit (string-append "v" version))))
4757 (file-name (string-append name "-" version "-checkout"))
4758 (sha256
4759 (base32
4760 "0l9gs00p5g4k4qy6i7nv1mfi2n2wnsycwjrgrh9hxzam4irf2mw2"))))
4761 (build-system cmake-build-system)
4762 (arguments '(#:tests? #f)) ; there are no tests
4763 (inputs
4764 `(("alsa-lib" ,alsa-lib)
4765 ("drumstick" ,drumstick)
4766 ("pulseaudio" ,pulseaudio)
4767 ("qtbase" ,qtbase)))
4768 (native-inputs
4769 `(("pkg-config" ,pkg-config)))
4770 (home-page "https://github.com/pedrolcl/Linux-SonivoxEas")
4771 (synopsis "MIDI synthesizer library")
4772 (description "This project is a real time General MIDI synthesizer based
4773 on the Sonivox EAS Synthesizer by Google. It does not need external
4774 soundfonts, using embedded samples instead.")
4775 ;; Sonivox is released under the ASL2.0; the rest of the code is under
4776 ;; GPLv2+.
4777 (license (list license:gpl2+ license:asl2.0))))
4778
4779 (define-public whysynth
4780 (package
4781 (name "whysynth")
4782 (version "20170701")
4783 (source (origin
4784 (method url-fetch)
4785 (uri (string-append "http://smbolton.com/whysynth/whysynth-"
4786 version ".tar.bz2"))
4787 (sha256
4788 (base32
4789 "02qbn0hbvn1iym4zxv35b201blg31yjpgh71h8db0j5zls2xc0m6"))))
4790 (build-system gnu-build-system)
4791 (inputs
4792 `(("dssi" ,dssi)
4793 ("liblo" ,liblo)
4794 ("fftwf" ,fftwf)
4795 ("gtk+" ,gtk+-2)
4796 ("ladspa" ,ladspa)
4797 ("alsa-lib" ,alsa-lib)))
4798 (native-inputs
4799 `(("pkg-config" ,pkg-config)))
4800 (home-page "http://smbolton.com/whysynth.html")
4801 (synopsis "DSSI software synthesizer")
4802 (description "WhySynth is a versatile softsynth which operates as a plugin
4803 for the DSSI Soft Synth Interface. A brief list of features:
4804
4805 @enumerate
4806 @item 4 oscillators, 2 filters, 3 LFOs, and 5 envelope generators per voice.
4807 @item 11 oscillator modes: minBLEP, wavecycle, chorused wavecycle,
4808 asynchronous granular, three FM modes, waveshaper, noise, PADsynth, and phase
4809 distortion.
4810 @item 10 filter modes.
4811 @item flexible modulation and mixdown options, plus effects.
4812 @end enumerate
4813 ")
4814 (license license:gpl2+)))
4815
4816 (define-public libdiscid
4817 (package
4818 (name "libdiscid")
4819 (version "0.6.2")
4820 (source
4821 (origin
4822 (method url-fetch)
4823 (uri (string-append
4824 "http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/libdiscid-"
4825 version ".tar.gz"))
4826 (sha256
4827 (base32
4828 "1f9irlj3dpb5gyfdnb1m4skbjvx4d4hwiz2152f83m0d9jn47r7r"))))
4829 (arguments `(#:test-target "check"))
4830 (build-system cmake-build-system)
4831 (home-page "https://musicbrainz.org/doc/libdiscid")
4832 (synopsis "Disc id reader library")
4833 (description "libdiscid is a C library for creating MusicBrainz and freedb
4834 disc IDs from audio CDs. It reads a CD's table of contents (TOC) and generates
4835 an identifier which can be used to lookup the CD at MusicBrainz. Additionally,
4836 it provides a submission URL for adding the disc ID to the database and gathers
4837 ISRCs and the MCN (=UPC/EAN) from disc.")
4838 (license license:lgpl2.1+)))
4839
4840 (define-public python-discid
4841 (package
4842 (name "python-discid")
4843 (version "1.1.1")
4844 (source
4845 (origin
4846 (method url-fetch)
4847 (uri (pypi-uri "discid" version))
4848 (sha256
4849 (base32
4850 "1fgp67nhqlbvhhwrcxq5avil7alpzw4s4579hlyvxzbphdnbz8vq"))))
4851 (build-system python-build-system)
4852 (inputs
4853 `(("libdiscid" ,libdiscid)))
4854 (arguments
4855 `(#:phases
4856 (modify-phases %standard-phases
4857 (add-before 'build 'set-libdiscid
4858 ;; Set path of libdiscid
4859 (lambda* (#:key inputs #:allow-other-keys)
4860 (let ((discid (assoc-ref inputs "libdiscid")))
4861 (substitute* "discid/libdiscid.py"
4862 (("lib_name = (.*)$" all name)
4863 (string-append "lib_name = \"" discid
4864 "/lib/libdiscid.so.0\"\n")))
4865 #t))))))
4866 (home-page "https://python-discid.readthedocs.io/")
4867 (synopsis "Python bindings for Libdiscid")
4868 (description
4869 "This package provides Python bindings for the Libdiscid library. The
4870 main purpose is the calculation of @url{https://musicbrainz.org/doc/Disc%20ID,
4871 Disc IDs} for use with the MusicBrainz database. Additionally the disc
4872 @dfn{Media Catalog Number} (MCN) and track @dfn{International Standard
4873 Recording Code} (ISRC) can be extracted.}")
4874 (license license:lgpl3+)))
4875
4876 (define-public libmusicbrainz
4877 (package
4878 (name "libmusicbrainz")
4879 (version "5.1.0")
4880 (source
4881 (origin
4882 (method url-fetch)
4883 (uri (string-append
4884 "https://github.com/metabrainz/libmusicbrainz/releases/download/release-"
4885 version "/libmusicbrainz-" version ".tar.gz"))
4886 (sha256
4887 (base32
4888 "0ikb9igyyk28jm34raxfzkw2qyn4nzzwsymdyprp7cmvi6g2ajb7"))))
4889 (build-system cmake-build-system)
4890 (arguments
4891 `(#:phases
4892 (modify-phases %standard-phases
4893 (replace 'check
4894 (lambda _
4895 ;; requires network connections
4896 ;; (invoke "tests/mbtest")
4897 (invoke "tests/ctest")
4898 #t)))))
4899 (inputs `(("neon" ,neon)
4900 ("libxml2" ,libxml2)))
4901 (native-inputs `(("pkg-config" ,pkg-config)))
4902 (home-page "https://musicbrainz.org/doc/libmusicbrainz")
4903 (synopsis "MusicBrainz client library")
4904 (description "The MusicBrainz Client Library (libmusicbrainz), also known as
4905 mb_client, is a development library geared towards developers who wish to add
4906 MusicBrainz lookup capabilities to their applications.")
4907 (license license:lgpl2.1+)))
4908
4909 (define-public perl-musicbrainz-discid
4910 (package
4911 (name "perl-musicbrainz-discid")
4912 (version "0.04")
4913 (source (origin
4914 (method url-fetch)
4915 (uri (string-append
4916 "mirror://cpan/authors/id/N/NJ/NJH/MusicBrainz-DiscID-"
4917 version ".tar.gz"))
4918 (sha256
4919 (base32
4920 "1i4qk1qfcmxdibqkyfjrrjdq2zk42vjcz590qgiyc47fi9p6xx1j"))))
4921 (build-system perl-build-system)
4922 (native-inputs `(("pkg-config" ,pkg-config)
4923 ("which" ,which)))
4924 (inputs `(("libdiscid" ,libdiscid)))
4925 (home-page "https://metacpan.org/release/MusicBrainz-DiscID")
4926 (synopsis "Perl interface to the MusicBrainz libdiscid library")
4927 (description
4928 "The @code{MusicBrainz::DiscID} module is a Perl interface to the
4929 MusicBrainz libdiscid library, allowing you to manipulate digital audio
4930 compact disc (CDDA) identifiers.")
4931 (license license:gpl2)))
4932
4933 (define-public perl-webservice-musicbrainz
4934 (package
4935 (name "perl-webservice-musicbrainz")
4936 (version "1.0.5")
4937 (source (origin
4938 (method url-fetch)
4939 (uri (string-append
4940 "mirror://cpan/authors/id/B/BF/BFAIST/WebService-MusicBrainz-"
4941 version ".tar.gz"))
4942 (sha256
4943 (base32
4944 "16chs1l58cf000d5kalkyph3p31ci73p1rlyx98mfv10d2cq6fsj"))))
4945 (build-system perl-build-system)
4946 (arguments
4947 ;; Tests try to connect to http://musicbrainz.org.
4948 '(#:tests? #f))
4949 (native-inputs
4950 `(("perl-module-build" ,perl-module-build)))
4951 (propagated-inputs
4952 `(("perl-mojolicious" ,perl-mojolicious)))
4953 (home-page "https://metacpan.org/release/WebService-MusicBrainz")
4954 (synopsis "Web service API to the MusicBrainz database")
4955 (description
4956 "This module searches the MusicBrainz database through their web service
4957 at @code{musicbrainz.org}.")
4958 (license license:perl-license)))
4959
4960 (define-public clyrics
4961 (package
4962 (name "clyrics")
4963 (version "0.12")
4964 (source
4965 (origin
4966 (method git-fetch)
4967 (uri (git-reference
4968 (url "https://github.com/trizen/clyrics")
4969 (commit version)))
4970 (file-name (git-file-name name version))
4971 (sha256
4972 (base32 "1l9iqz6vxrrxapv7s110g360bqxksir4dcqd8w0l4lhmnfmz3vnk"))))
4973 (build-system trivial-build-system)
4974 (inputs
4975 `(("bash" ,bash) ; for the wrapped program
4976 ("perl" ,perl)
4977 ("perl-www-mechanize" ,perl-www-mechanize)
4978 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
4979 ;; Required or else LWP will fail with "GET https://www.google.com/ ==>
4980 ;; 500 Can't verify SSL peers without knowing which Certificate
4981 ;; Authorities to trust".
4982 ("perl-mozilla-ca" ,perl-mozilla-ca)))
4983 (arguments
4984 `(#:modules ((guix build utils))
4985 #:builder (begin
4986 (use-modules (guix build utils)
4987 (ice-9 match)
4988 (srfi srfi-26))
4989 (let* ((source (assoc-ref %build-inputs "source"))
4990 (output (assoc-ref %outputs "out")))
4991 (setenv "PATH"
4992 (string-append
4993 (assoc-ref %build-inputs "bash") "/bin" ":"
4994 (assoc-ref %build-inputs "perl") "/bin" ":"))
4995 (copy-recursively source (getcwd))
4996 (patch-shebang "clyrics")
4997 (substitute* "clyrics"
4998 (("/usr/share") output))
4999 (install-file "clyrics" (string-append output "/bin"))
5000 (wrap-program (string-append output "/bin/clyrics")
5001 `("PERL5LIB" ":" =
5002 ,(delete
5003 ""
5004 (map (match-lambda
5005 (((? (cut string-prefix? "perl-" <>) name) . dir)
5006 (string-append dir "/lib/perl5/site_perl"))
5007 (_ ""))
5008 %build-inputs))))
5009 (copy-recursively "plugins" (string-append output "/clyrics"))
5010 #t))))
5011 (home-page "https://github.com/trizen/clyrics")
5012 (synopsis "Extensible lyrics fetcher")
5013 (description
5014 "Clyrics is an extensible command-line tool to fetch the lyrics of songs.
5015 It can be used in daemon mode along with the Music-on-Console (MOC) and cmus
5016 console music players.")
5017 (license license:gpl3+)))
5018
5019 (define-public demlo
5020 (let ((commit "fe9ec4c8ac2fa995ec18e6ac86d50d46df06ec01")
5021 (revision "0"))
5022 (package
5023 (name "demlo")
5024 (version (git-version "3.8" revision commit))
5025 (source
5026 (origin
5027 (method git-fetch)
5028 (uri (git-reference
5029 (url
5030 "https://gitlab.com/ambrevar/demlo")
5031 (commit commit)))
5032 (file-name (git-file-name name version))
5033 (sha256
5034 (base32
5035 "1afkbqhzn6da7zaf5ab7dvyqj1izqhzprwfb4hw448fllda9bdvk"))))
5036 (build-system go-build-system)
5037 (native-inputs
5038 `(("lua" ,lua)
5039 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
5040 ("go-github-com-mattn-go-colorable" ,go-github-com-mattn-go-colorable)
5041 ("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)
5042 ("go-gitlab-com-ambrevar-damerau" ,go-gitlab-com-ambrevar-damerau)
5043 ("go-gitlab-com-ambrevar-golua-unicode" ,go-gitlab-com-ambrevar-golua-unicode)
5044 ("go-github-com-mgutz-ansi" ,go-github-com-mgutz-ansi)
5045 ("go-github-com-michiwend-gomusicbrainz" ,go-github-com-michiwend-gomusicbrainz)
5046 ("go-github-com-stevedonovan-luar" ,go-github-com-stevedonovan-luar)
5047 ("go-github-com-wtolson-go-taglib" ,go-github-com-wtolson-go-taglib)
5048 ("go-github-com-yookoala-realpath" ,go-github-com-yookoala-realpath)))
5049 (inputs
5050 `(("chromaprint" ,chromaprint)
5051 ("ffmpeg" ,ffmpeg)))
5052 (arguments
5053 `(#:import-path "gitlab.com/ambrevar/demlo"
5054 #:phases
5055 (modify-phases %standard-phases
5056 (add-after 'install 'wrap-program
5057 (lambda* (#:key inputs outputs #:allow-other-keys)
5058 (let ((out (assoc-ref outputs "out"))
5059 (ffmpeg (assoc-ref inputs "ffmpeg"))
5060 (chromaprint (assoc-ref inputs "chromaprint")))
5061 (wrap-program (string-append out "/bin/demlo")
5062 `("XDG_DATA_DIRS" ":" prefix (,out))
5063 `("PATH" ":" prefix
5064 ,(map (lambda (dir)
5065 (string-append dir "/bin:"
5066 dir "/sbin"))
5067 (list ffmpeg chromaprint))))
5068 #t)))
5069 (add-after 'install 'install-scripts
5070 (lambda* (#:key outputs #:allow-other-keys)
5071 (let* ((out (assoc-ref outputs "out"))
5072 (root (string-append out "/src/gitlab.com/ambrevar/demlo"))
5073 (xdg-data-dirs (string-append out "/demlo")))
5074 (copy-recursively (string-append root "/actions")
5075 (string-append xdg-data-dirs "/actions"))
5076 (copy-recursively (string-append root "/scripts")
5077 (string-append xdg-data-dirs "/scripts"))
5078 (install-file (string-append root "/config.lua") xdg-data-dirs)
5079 ;; TODO: Test fish completion.
5080 (install-file (string-append root "/completion/demlo.fish")
5081 (string-append out "/share/fish/vendor_completions.d"))
5082 #t))))))
5083 (home-page "https://gitlab.com/ambrevar/demlo")
5084 (synopsis "Dynamic and extensible music library organizer")
5085 (description "Demlo is a music library organizer. It can encode, fix
5086 case, change folder hierarchy according to tags or file properties, tag from
5087 an online database, copy covers while ignoring duplicates or those below a
5088 quality threshold, and much more. It makes it possible to manage your
5089 libraries uniformly and dynamically. You can write your own rules to fit your
5090 needs best.
5091
5092 Demlo can address any of these recurring music library issues (and much more):
5093
5094 @itemize
5095 @item Fix the lack of folder structure.
5096 @item Normalize tags, fix their case, chose which tags to keep and which to
5097 discard.
5098 @item Handle lossy and lossless audio differently.
5099 @item Handle mp3 id3tags hell...
5100 @item Handle multiple covers, whether embedded and/or external, resize covers,
5101 discard bad quality ones.
5102 @end itemize\n")
5103 (license license:expat))))
5104
5105 (define-public fmit
5106 (package
5107 (name "fmit")
5108 (version "1.2.14")
5109 (source (origin
5110 (method git-fetch)
5111 (uri (git-reference
5112 (url "https://github.com/gillesdegottex/fmit/")
5113 (commit (string-append "v" version))))
5114 (file-name (git-file-name name version))
5115 (sha256
5116 (base32
5117 "1q062pfwz2vr9hbfn29fv54ip3jqfd9r99nhpr8w7mn1csy38azx"))))
5118 (build-system gnu-build-system)
5119 (arguments
5120 '(#:phases
5121 (modify-phases %standard-phases
5122 (delete 'configure)
5123 (add-before 'build 'qmake
5124 (lambda _
5125 (let ((out (assoc-ref %outputs "out")))
5126 (invoke "qmake"
5127 "fmit.pro"
5128 (string-append "PREFIX=" out)
5129 (string-append "PREFIXSHORTCUT=" out)
5130 "CONFIG+=acs_qt acs_alsa acs_jack acs_portaudio"))))
5131 (add-after 'install 'wrap-executable
5132 (lambda* (#:key inputs outputs #:allow-other-keys)
5133 (let ((out (assoc-ref outputs "out")))
5134 (wrap-program (string-append out "/bin/fmit")
5135 `("QT_PLUGIN_PATH" ":" prefix
5136 ,(map (lambda (label)
5137 (string-append (assoc-ref inputs label)
5138 "/lib/qt5/plugins"))
5139 '("qtbase" "qtmultimedia" "qtsvg")))
5140 `("QML2_IMPORT_PATH" ":" prefix
5141 ,(map (lambda (label)
5142 (string-append (assoc-ref inputs label)
5143 "/lib/qt5/qml"))
5144 '("qtmultimedia"))))
5145 #t))))))
5146 (inputs
5147 `(("alsa-lib" ,alsa-lib)
5148 ("fftw" ,fftw)
5149 ("jack" ,jack-1)
5150 ("portaudio" ,portaudio)
5151 ("qtbase" ,qtbase)
5152 ("qtmultimedia" ,qtmultimedia)
5153 ("qtsvg" ,qtsvg)))
5154 (native-inputs
5155 `(("gettext" ,gettext-minimal)
5156 ("hicolor-icon-theme" ,hicolor-icon-theme)
5157 ("itstool" ,itstool)
5158 ("qttools" ,qttools)))
5159 (synopsis "Musical instrument tuner")
5160 (description "FMIT is a graphical utility for tuning musical instruments,
5161 with error and volume history, and advanced features.")
5162 (home-page "https://gillesdegottex.github.io/fmit/")
5163 ;; Most of the code is under GPL2+, but some abstract or helper classes
5164 ;; are under LGPL2.1.
5165 (license (list license:gpl2+ license:lgpl2.1))))
5166
5167 (define-public mloop
5168 (let ((commit "adebff98b0b4dc5872a03acb82e89c77cb29c127")
5169 (revision "0"))
5170 (package
5171 (name "mloop")
5172 (version (git-version "0.0.1" revision commit))
5173 (source (origin
5174 (method git-fetch)
5175 (uri (git-reference
5176 (url "http://git.fuzzle.org/mloop")
5177 (commit commit)))
5178 (file-name (git-file-name name version))
5179 (sha256
5180 (base32
5181 "175gxvg5slq0bllcx1c381rjlq3xpxww8c3kpiw5i2kfr4m52myz"))))
5182 (build-system waf-build-system)
5183 (arguments
5184 `(#:python ,python-2
5185 #:tests? #f)) ; no "check" target
5186 (inputs
5187 `(("jack" ,jack-1)
5188 ("ncurses" ,ncurses)))
5189 (native-inputs
5190 `(("pkg-config" ,pkg-config)))
5191 (home-page "https://fuzzle.org/~petern/mloop.html")
5192 (synopsis "Live MIDI looper")
5193 (description "mloop is a live MIDI looping system, using jack-midi.
5194 Loops are recorded, optionally with beat quantization, and can then be played
5195 back, either once or looping. A 'note cache' system is implemented to
5196 remember which notes are pressed and their velocities. This allows for a loop
5197 to start off with the currently pressed notes, making seamless loops much
5198 easier to perform. Features include:
5199
5200 @itemize
5201 @item Quantisation; end a loop on a beat exactly.
5202 @item Delayed recording; wait for a MIDI event before starting a loop record.
5203 @item Adjust tempo; Playback speed of loops can be adjusted on the fly.
5204 @end itemize\n")
5205 (license license:gpl2))))
5206
5207 (define-public pragha
5208 (package
5209 (name "pragha")
5210 (version "1.3.4")
5211 (source (origin
5212 (method url-fetch)
5213 (uri (string-append "https://github.com/pragha-music-player/pragha/"
5214 "releases/download/v" version "/pragha-" version
5215 ".tar.bz2"))
5216 (sha256
5217 (base32
5218 "19kbhq99bkimx3aqrdzln0vlr4slkpx6kq66j731jvqyq76nlkp5"))))
5219 (build-system glib-or-gtk-build-system)
5220 (native-inputs
5221 `(("intltool" ,intltool)
5222 ("pkg-config" ,pkg-config)))
5223 (inputs
5224 `(("glib" ,glib)
5225 ("grilo" ,grilo)
5226 ("gstreamer" ,gstreamer)
5227 ("gst-plugins-base" ,gst-plugins-base)
5228 ("gst-plugins-good" ,gst-plugins-good)
5229 ("gtk+" ,gtk+)
5230 ("libcddb" ,libcddb)
5231 ("libcdio" ,libcdio)
5232 ("libcdio-paranoia" ,libcdio-paranoia)
5233 ("libgudev" ,libgudev)
5234 ("libnotify" ,libnotify)
5235 ("libpeas" ,libpeas)
5236 ("libsoup" ,libsoup)
5237 ("sqlite" ,sqlite)
5238 ("taglib" ,taglib)))
5239 (arguments
5240 `(#:phases
5241 (modify-phases %standard-phases
5242 (add-after 'install 'wrap-program
5243 (lambda* (#:key inputs outputs #:allow-other-keys)
5244 (let ((out (assoc-ref outputs "out"))
5245 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
5246 (wrap-program (string-append out "/bin/pragha")
5247 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))
5248 #t))))))
5249 (home-page "https://pragha-music-player.github.io")
5250 (synopsis "Music player")
5251 (description "Pragha is a lightweight music player based on Gtk and
5252 sqlite. It is constructed to be fast, light, and simultaneously tries to be
5253 complete without obstructing your daily work.")
5254 (license license:gpl3+)))
5255
5256 (define-public playerctl
5257 (package
5258 (name "playerctl")
5259 (version "2.2.1")
5260 (source (origin
5261 (method git-fetch)
5262 (uri (git-reference
5263 (url "https://github.com/altdesktop/playerctl")
5264 (commit (string-append "v" version))))
5265 (file-name (git-file-name name version))
5266 (sha256
5267 (base32
5268 "17hi33sw3663qz5v54bqqil31sgkrlxkb2l5bgqk87pac6x2wnbz"))))
5269 (build-system meson-build-system)
5270 (arguments
5271 `(#:configure-flags '("-Dintrospection=false" "-Dgtk-doc=false")))
5272 (inputs `(("python-pygobject" ,python-pygobject)))
5273 (native-inputs
5274 `(("glib:bin" ,glib "bin")
5275 ("pkg-config" ,pkg-config)))
5276 (synopsis "Control MPRIS-supporting media player applications")
5277 (description
5278 "Playerctl is a command-line utility and library for controlling media
5279 players that implement the MPRIS D-Bus Interface Specification. Playerctl
5280 makes it easy to bind player actions, such as play and pause, to media keys.
5281 You can also get metadata about the playing track such as the artist and title
5282 for integration into status line generators or other command-line tools.")
5283 (home-page "https://github.com/altdesktop/playerctl")
5284 (license license:lgpl3+)))
5285
5286 (define-public artyfx
5287 (package
5288 (name "artyfx")
5289 (version "1.3")
5290 (source (origin
5291 (method git-fetch)
5292 (uri (git-reference
5293 (url
5294 "https://github.com/openAVproductions/openAV-ArtyFX")
5295 (commit (string-append "release-" version))))
5296 (file-name (git-file-name name version))
5297 (sha256
5298 (base32
5299 "012hcy1mxl7gs2lipfcqp5x0xv1azb9hjrwf0h59yyxnzx96h7c9"))))
5300 (build-system cmake-build-system)
5301 (arguments
5302 `(#:tests? #f ; no tests included
5303 #:phases
5304 (modify-phases %standard-phases
5305 (add-after 'unpack 'remove-architecture-specific-flags
5306 (lambda _
5307 (substitute* "CMakeLists.txt"
5308 (("-msse2 -mfpmath=sse") ""))
5309 #t)))))
5310 (inputs
5311 `(("cairo" ,cairo)
5312 ("libsndfile" ,libsndfile)))
5313 (native-inputs
5314 `(("pkg-config" ,pkg-config)
5315 ("lv2" ,lv2)))
5316 (home-page "http://openavproductions.com/artyfx/")
5317 (synopsis "Audio effect LV2 plugin bundle")
5318 (description "ArtyFX is an LV2 plugin bundle of artistic real-time audio
5319 effects. It contains a bitcrusher, delay, distortion, equalizer, compressor,
5320 and reverb.")
5321 (license license:gpl2+)))
5322
5323 (define-public lsp-plugins
5324 (package
5325 (name "lsp-plugins")
5326 (version "1.1.26")
5327 (source
5328 (origin
5329 (method git-fetch)
5330 (uri (git-reference
5331 (url "https://github.com/sadko4u/lsp-plugins")
5332 (commit (string-append "lsp-plugins-" version))))
5333 (file-name (git-file-name name version))
5334 (sha256
5335 (base32 "1apw8zh3a3il4smkjji6bih4vbsymj0hjs10fgkrd4nazqkjvgyd"))))
5336 (build-system gnu-build-system)
5337 (arguments
5338 `(#:make-flags
5339 (list
5340 (string-append "CC=" ,(cc-for-target))
5341 "BUILD_MODULES=\"lv2 ladspa jack\"" "VST_UI=0"
5342 (string-append "PREFIX=" (assoc-ref %outputs "out"))
5343 (string-append "ETC_PATH=" (assoc-ref %outputs "out") "/etc"))
5344 #:phases
5345 (modify-phases %standard-phases
5346 (delete 'configure)) ; no configure script
5347 #:test-target "test"))
5348 (inputs
5349 `(("cairo" ,cairo)
5350 ("hicolor-icon-theme" ,hicolor-icon-theme)
5351 ("jack" ,jack-1)
5352 ("ladspa" ,ladspa)
5353 ("libsndfile" ,libsndfile)
5354 ("lv2" ,lv2)
5355 ("mesa" ,mesa)))
5356 (native-inputs
5357 `(("pkg-config" ,pkg-config)))
5358 (synopsis "Audio plugin collection")
5359 (description "LSP (Linux Studio Plugins) is a collection of audio
5360 plugins available as LADSPA/LV2 plugins and as standalone JACK
5361 applications.")
5362 (home-page "https://lsp-plug.in/")
5363 (license license:lgpl3)))
5364
5365 (define-public sherlock-lv2
5366 (package
5367 (name "sherlock-lv2")
5368 (version "0.24.0")
5369 (source
5370 (origin
5371 (method url-fetch)
5372 (uri (string-append
5373 "https://git.open-music-kontrollers.ch/lv2/"
5374 "sherlock.lv2/snapshot/sherlock.lv2-"
5375 version ".tar.xz"))
5376 (sha256
5377 (base32
5378 "08gjfx7vrsx9zvj04j8cr3vscxmq6jr2hbdi6dfgp1l1dnnpxsgq"))))
5379 (build-system meson-build-system)
5380 (inputs
5381 `(("glu" ,glu)
5382 ("libx11" ,libx11)
5383 ("mesa" ,mesa)
5384 ("sratom" ,sratom)))
5385 (native-inputs
5386 `(("flex" ,flex)
5387 ("pkg-config" ,pkg-config)))
5388 (synopsis "Investigative LV2 plugin bundle")
5389 (description "The Sherlock plugin bundle contains LV2 plugins for
5390 visualizing LV2 atom, MIDI and OSC events. They can be used for monitoring
5391 and debugging of event signal flows inside plugin graphs.")
5392 (home-page "https://open-music-kontrollers.ch/lv2/sherlock/")
5393 (license license:artistic2.0)))
5394
5395 (define-public foo-yc20
5396 (package
5397 (name "foo-yc20")
5398 (version "1.3.0")
5399 (source
5400 (origin
5401 (method url-fetch)
5402 (uri (string-append "https://github.com/sampov2/foo-yc20/releases/download/"
5403 version "/foo-yc20-" version ".tar.bz2"))
5404 (sha256
5405 (base32
5406 "1drzfyr7mzb58pdv0gsqkg6ds6kbgp6g25rrv1yya1611cljgvjh"))))
5407 (build-system gnu-build-system)
5408 (arguments
5409 `(#:make-flags
5410 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
5411 #:tests? #f ; no automated test
5412 #:phases
5413 (modify-phases %standard-phases
5414 (replace 'configure
5415 (lambda _
5416 (substitute* "Makefile"
5417 (("-mtune=native") "")
5418 (("-march=native") ""))
5419 #t)))))
5420 (inputs
5421 `(("jack" ,jack-1)
5422 ("lv2" ,lv2)
5423 ("cairo" ,cairo)
5424 ("gtk" ,gtk+-2)))
5425 (native-inputs
5426 `(("faust" ,faust)
5427 ("pkg-config" ,pkg-config)))
5428 (home-page "https://foo-yc20.codeforcode.com/")
5429 (synopsis "Implementation of Yamaha YC-20 combo organ from 1969")
5430 (description "This is a Faust implementation of a 1969 designed Yamaha
5431 combo organ, the YC-20. This package provides an LV2 plugin and a standalone
5432 version. Processing for the organ is based on original schematics and
5433 measurements from a working specimen. This instrument simulates the circutry
5434 as a whole to realisticly reproduce the features and flaws of the real deal.")
5435 ;; Note that after 1.3.0 the license was changed.
5436 (license license:gpl3+)))
5437
5438 (define-public spectacle-analyzer
5439 (package
5440 (name "spectacle-analyzer")
5441 (version "1.0")
5442 (source
5443 (origin
5444 (method git-fetch)
5445 (uri (git-reference
5446 (url "https://github.com/jpcima/spectacle")
5447 (commit (string-append "v" version))
5448 ;; Bundles a specific commit of the DISTRHO plugin framework.
5449 (recursive? #t)))
5450 (file-name (git-file-name name version))
5451 (sha256
5452 (base32
5453 "0xiqa6z8g68lcvnwhws4j7c4py35r9d20cirrili7ycyp3a6149a"))))
5454 (build-system gnu-build-system)
5455 (arguments
5456 `(#:tests? #f ; no check target
5457 #:make-flags
5458 (list "CC=gcc"
5459 (string-append "PREFIX=" (assoc-ref %outputs "out")))
5460 #:phases
5461 (modify-phases %standard-phases
5462 (delete 'configure))))
5463 (native-inputs
5464 `(("pkg-config" ,pkg-config)
5465 ("xxd" ,xxd)))
5466 (inputs
5467 `(("cairo" ,cairo)
5468 ("fftw" ,fftw)
5469 ("fftwf" ,fftwf)
5470 ("jack" ,jack-1)
5471 ("lv2" ,lv2)
5472 ("mesa" ,mesa)))
5473 (synopsis "Realtime graphical spectrum analyzer")
5474 (description "Spectacle is a real-time spectral analyzer using the
5475 short-time Fourier transform, available as LV2 audio plugin and JACK client.")
5476 (home-page "https://github.com/jpcima/spectacle")
5477 ;; The project is licensed under the ISC license, and files in
5478 ;; sources/plugin carry the Expat license.
5479 (license (list license:isc license:expat))))
5480
5481 (define-public x42-plugins
5482 (package
5483 (name "x42-plugins")
5484 (version "20200714")
5485 (source
5486 (origin
5487 (method url-fetch)
5488 (uri
5489 (string-append "https://gareus.org/misc/x42-plugins/x42-plugins-"
5490 version ".tar.xz"))
5491 (sha256
5492 (base32 "1av05ykph8x67018hm9zfgh1vk0zi39mvrsxkj6bm4hkarxf0vvl"))))
5493 (build-system gnu-build-system)
5494 (arguments
5495 `(#:tests? #f ; no "check" target
5496 #:make-flags
5497 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
5498 "LIBZITACONVOLVER=-lzita-convolver"
5499 (string-append "FONTFILE="
5500 (assoc-ref %build-inputs "font-dejavu")
5501 "/share/fonts/truetype/DejaVuSans-Bold.ttf"))
5502 #:phases
5503 (modify-phases %standard-phases
5504 (add-before 'build 'set-CC-variable
5505 (lambda _
5506 (setenv "CC" "gcc")
5507 #t))
5508 (delete 'configure))))
5509 (inputs
5510 `(("cairo" ,cairo)
5511 ("fftwf" ,fftwf)
5512 ("ftgl" ,ftgl)
5513 ("glib" ,glib)
5514 ("glu" ,glu)
5515 ("hicolor-icon-theme" ,hicolor-icon-theme)
5516 ("jack" ,jack-1)
5517 ("libltc" ,libltc)
5518 ("libsamplerate" ,libsamplerate)
5519 ("libx11" ,libx11)
5520 ("pango" ,pango)
5521 ("zita-convolver" ,zita-convolver)))
5522 (native-inputs
5523 `(("help2man" ,help2man)
5524 ("liblo" ,liblo)
5525 ("lv2" ,lv2)
5526 ("font-dejavu" ,font-dejavu)
5527 ("pkg-config" ,pkg-config)))
5528 (synopsis "Collection of LV2/JACK audio/MIDI processing plugins")
5529 (description "x42-plugins is a collection of over 80 cross-platform LV2
5530 audio and MIDI plugins that can also run as standalone JACK applications.")
5531 (home-page "https://x42-plugins.com/x42/")
5532 (license license:gpl2+)))
5533
5534 (define-public zam-plugins
5535 (package
5536 (name "zam-plugins")
5537 (version "3.13")
5538 (source
5539 (origin
5540 (method git-fetch)
5541 (uri
5542 (git-reference
5543 (url "https://github.com/zamaudio/zam-plugins")
5544 (commit version)
5545 ;; Recursive to fetch the DISTRHO plugin framework. This
5546 ;; framework is intended to be included in the sources
5547 ;; and not to be used as a library.
5548 (recursive? #t)))
5549 (file-name (git-file-name name version))
5550 (sha256
5551 (base32 "0bxvssqnnd7bph3w1d6xcmxradv4cqq3wyzyv1a1hfm71a0pdahs"))))
5552 (build-system gnu-build-system)
5553 (arguments
5554 `(#:tests? #f ;no "check" target
5555 #:make-flags
5556 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
5557 "HAVE_ZITA_CONVOLVER=true")
5558 #:phases
5559 (modify-phases %standard-phases
5560 (add-before 'build 'set-CC-variable
5561 (lambda _
5562 (setenv "CC" "gcc") #t))
5563 (delete 'configure))))
5564 (inputs
5565 `(("fftwf" ,fftwf)
5566 ("jack" ,jack-1) ;for the standalone JACK application
5567 ("liblo" ,liblo)
5568 ("libsamplerate" ,libsamplerate)
5569 ("mesa" ,mesa)
5570 ("zita-convolver" ,zita-convolver)))
5571 (native-inputs
5572 `(("ladspa" ,ladspa)
5573 ("lv2" ,lv2)
5574 ("pkg-config" ,pkg-config)))
5575 (synopsis "Collection of audio processing plugins")
5576 (description
5577 "Zam plugins is a collection of audio processing plugins in the LADSPA,
5578 LV2 and VST2 formats, as well as standalone JACK versions. The collection
5579 includes ZaMaximX2, ZamAutoSat, ZamComp, ZamCompX2, ZamEQ2, ZamGEQ31,
5580 ZamHeadX2, ZamPhono, ZamGate, ZamGateX2, ZamTube, ZamDelay, ZamDynamicEQ,
5581 ZaMultiComp, ZaMultiCompX2 and ZamSynth.")
5582 (home-page "http://www.zamaudio.com/?p=976")
5583 (license license:gpl2+)))
5584
5585 (define-public geonkick
5586 (package
5587 (name "geonkick")
5588 (version "2.3.8")
5589 (source
5590 (origin
5591 (method git-fetch)
5592 (uri (git-reference
5593 (url "https://gitlab.com/geontime/geonkick.git")
5594 (commit (string-append "v" version))))
5595 (file-name (git-file-name name version))
5596 (sha256
5597 (base32 "07809yy2q7dd6fcp0yndlg1vw2ca2zisnsplb3xrxvzdvrqlw910"))))
5598 (build-system cmake-build-system)
5599 (arguments
5600 `(#:tests? #f ;no tests included
5601 #:configure-flags
5602 (list (string-append "-DGKICK_REDKITE_SDK_PATH="
5603 (assoc-ref %build-inputs "redkite"))
5604 (string-append "-DCMAKE_INSTALL_PREFIX="
5605 (assoc-ref %outputs "out")))))
5606 (inputs
5607 `(("cairo" ,cairo)
5608 ("hicolor-icon-theme" ,hicolor-icon-theme)
5609 ("jack" ,jack-1) ;for the standalone JACK application
5610 ("libsndfile" ,libsndfile)
5611 ("libx11" ,libx11)
5612 ("redkite" ,redkite)
5613 ("rapidjson" ,rapidjson)))
5614 (native-inputs
5615 `(("lv2" ,lv2)
5616 ;; Fails with default gcc (#include <filesystem> not found).
5617 ("gcc" ,gcc-9)
5618 ("pkg-config" ,pkg-config)
5619 ("sord" ,sord)))
5620 (synopsis "Percussion synthesizer")
5621 (description "Geonkick is a synthesizer that can synthesize elements
5622 of percussion such as kicks, snares, hit-hats, shakers, claps and sticks.
5623 It can also play and mix samples.")
5624 (home-page "https://gitlab.com/geontime/geonkick")
5625 (license license:gpl3+)))
5626
5627 (define-public dpf-plugins
5628 (package
5629 (name "dpf-plugins")
5630 (version "1.3")
5631 (source
5632 (origin
5633 (method git-fetch)
5634 (uri
5635 (git-reference
5636 (url "https://github.com/DISTRHO/DPF-Plugins")
5637 (commit (string-append "v" version))))
5638 (file-name (git-file-name name version))
5639 (sha256
5640 (base32
5641 "1hsfmpv3kvpiwk8nfw9xpaipzy0n27i83y2v1yr93lznwm5rqrbs"))))
5642 (build-system gnu-build-system)
5643 (arguments
5644 `(#:tests? #f ; no "check" target
5645 #:make-flags
5646 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
5647 #:phases
5648 (modify-phases %standard-phases
5649 (add-before 'build 'set-CC-variable
5650 (lambda _ (setenv "CC" "gcc") #t))
5651 (delete 'configure))))
5652 (inputs
5653 `(("cairo" ,cairo)
5654 ("liblo" ,liblo) ; for dssi plugins
5655 ("jack" ,jack-1) ; for standalone applications
5656 ("mesa" ,mesa)))
5657 (native-inputs
5658 `(("pkg-config" ,pkg-config)
5659 ("dssi" ,dssi)
5660 ("lv2" ,lv2)))
5661 (home-page "https://github.com/DISTRHO/DPF-Plugins")
5662 (synopsis "Audio plugin collection")
5663 (description "Collection of audio plugins built with the DISTRHO Plugin
5664 Framework (DPF) available in LADSPA, DSSI, LV2 and VST2 formats. This
5665 package includes the following plugins: glBars, Kars, Max-Gen examples
5666 (MaBitcrush, MaFreeverb, MaGigaverb, MaPitchshift), Mini-Series (3BandEQ,
5667 3BandSplitter, PingPongPan), ndc-Plugs (Amplitude Imposer, Cycle Shifter,
5668 Soul Force), MVerb, Nekobi, and ProM.")
5669 ;; This package consists of several plugins refactored to use the
5670 ;; DISTHRO Plugin Framework (DPF). Different copyrights and licenses
5671 ;; apply to different plugins. The root LICENSE file has a table with
5672 ;; license information for each plugin and paths to each license
5673 (license (list license:isc license:gpl3 license:lgpl3 license:expat license:gpl2))))
5674
5675 (define-public avldrums-lv2
5676 (package
5677 (name "avldrums-lv2")
5678 (version "0.4.1")
5679 (source
5680 (origin
5681 (method git-fetch)
5682 (uri (git-reference
5683 (url "https://github.com/x42/avldrums.lv2")
5684 (commit (string-append "v" version))
5685 ;; This plugin expects the robtk submodule's source files to be
5686 ;; there in order to build.
5687 (recursive? #t)))
5688 (file-name (git-file-name name version))
5689 (sha256
5690 (base32 "1vwdp3d8qzd493qa99ddya7iql67bbfxmbcl8hk96lxif2lhmyws"))))
5691 (build-system gnu-build-system)
5692 (arguments
5693 `(#:tests? #f ; no "check" target
5694 #:make-flags
5695 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
5696 #:phases
5697 (modify-phases %standard-phases
5698 (add-before 'build 'set-CC-variable
5699 (lambda _
5700 (setenv "CC" "gcc") #t))
5701 (delete 'configure))))
5702 (inputs
5703 `(("cairo" ,cairo)
5704 ("dssi" ,dssi)
5705 ("glu" ,glu)
5706 ("mesa" ,mesa)
5707 ("pango" ,pango)))
5708 (native-inputs
5709 `(("pkg-config" ,pkg-config)
5710 ("lv2" ,lv2)))
5711 (home-page "https://x42-plugins.com/x42/x42-avldrums")
5712 (synopsis "Drum sample player LV2 plugin dedicated to the AVLinux Drumkits")
5713 (description "AVLdrums is a drum sample player LV2 plugin dedicated to Glen
5714 MacArthur's AVLdrums. This plugin provides a convenient way to sequence and mix
5715 MIDI drums and comes as two separate drumkits: Black Pearl and Red Zeppelin.")
5716 (license license:gpl2+)))
5717
5718 (define-public helm
5719 (package
5720 (name "helm")
5721 (version "0.9.0")
5722 (source
5723 (origin
5724 (method git-fetch)
5725 (uri
5726 (git-reference
5727 (url "https://github.com/mtytel/helm")
5728 (commit (string-append "v" version))))
5729 (file-name (git-file-name name version))
5730 (sha256
5731 (base32
5732 "17ys2vvhncx9i3ydg3xwgz1d3gqv4yr5mqi7vr0i0ca6nad6x3d4"))))
5733 (build-system gnu-build-system)
5734 (arguments
5735 `(#:tests? #f ; no "check" target
5736 #:make-flags
5737 (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))
5738 "lv2" "standalone")
5739 #:phases
5740 (modify-phases %standard-phases
5741 (add-after 'unpack 'include-pnglib-code-and-remove-usr-from-paths
5742 (lambda _
5743 (substitute* "standalone/builds/linux/Makefile"
5744 (("JUCE_INCLUDE_PNGLIB_CODE=0")
5745 "JUCE_INCLUDE_PNGLIB_CODE=1"))
5746 (substitute* "builds/linux/LV2/Makefile"
5747 (("JUCE_INCLUDE_PNGLIB_CODE=0")
5748 "JUCE_INCLUDE_PNGLIB_CODE=1"))
5749 (substitute* "Makefile"
5750 (("/usr") ""))
5751 #t))
5752 (add-before 'reset-gzip-timestamps 'make-gz-files-writable
5753 (lambda* (#:key outputs #:allow-other-keys)
5754 (for-each make-file-writable
5755 (find-files (string-append (assoc-ref outputs "out"))
5756 ".*\\.gz$"))
5757 #t))
5758 (delete 'configure))))
5759 (inputs
5760 `(("alsa-lib" ,alsa-lib)
5761 ("curl" ,curl)
5762 ("freetype2" ,freetype)
5763 ("hicolor-icon-theme" ,hicolor-icon-theme)
5764 ("libxcursor" ,libxcursor)
5765 ("libxinerama" ,libxinerama)
5766 ("jack" ,jack-1)
5767 ("mesa" ,mesa)))
5768 (native-inputs
5769 `(("pkg-config" ,pkg-config)
5770 ("lv2" ,lv2)))
5771 (home-page "https://tytel.org/helm/")
5772 (synopsis "Polyphonic synth with lots of modulation")
5773 (description "Helm is a cross-platform polyphonic synthesizer available standalone
5774 and as an LV2 plugin.")
5775 (license license:gpl3+)))
5776
5777 (define-public zrythm
5778 (package
5779 ;; Zrythm contains trademarks and comes with a trademark policy found in
5780 ;; TRADMARKS.md inside the release distribution. The trademark policy
5781 ;; allows verbatim re-distribution, and it also allows FSF-approved
5782 ;; distros to make necessary changes to integrate the software into the
5783 ;; distribution.
5784 (name "zrythm")
5785 (version "1.0.0-alpha.3.0.1")
5786 (source
5787 (origin
5788 (method url-fetch)
5789 (uri (string-append "https://www.zrythm.org/releases/zrythm-"
5790 version ".tar.xz"))
5791 (sha256
5792 (base32
5793 "06025367x08y4g9grhcn35bk1dsrpgm04c8l8j50i3p49dl3s1n0"))))
5794 (build-system meson-build-system)
5795 (arguments
5796 `(#:glib-or-gtk? #t
5797 #:meson ,meson-0.55
5798 #:configure-flags
5799 `("-Dtests=true"
5800 "-Dmanpage=true"
5801 "-Ddseg_font=false"
5802 "-Dgraphviz=enabled" ; for exporting routing graphs
5803 "-Dguile=enabled" ; for Guile scripting
5804 "-Djack=enabled" ; for JACK audio/MIDI backend
5805 "-Drtmidi=enabled" ; for RtMidi backend (ALSA sequencer)
5806 "-Dsdl=enabled"))) ; for SDL audio backend (which uses ALSA)
5807 (inputs
5808 `(("alsa-lib" ,alsa-lib)
5809 ("jack" ,jack-1)
5810 ("font-dseg" ,font-dseg)
5811 ("fftw" ,fftw)
5812 ("fftwf" ,fftwf)
5813 ("gettext" ,gettext-minimal)
5814 ("glibc" ,glibc)
5815 ("graphviz" ,graphviz)
5816 ("gtk+" ,gtk+)
5817 ("gtksourceview" ,gtksourceview)
5818 ("guile" ,guile-2.2)
5819 ("libaudec" ,libaudec)
5820 ("libcyaml" ,libcyaml)
5821 ("libsamplerate" ,libsamplerate)
5822 ("libsndfile" ,libsndfile)
5823 ("libyaml" ,libyaml)
5824 ("lilv" ,lilv)
5825 ("lv2" ,lv2)
5826 ("reproc" ,reproc)
5827 ("rubberband" ,rubberband)
5828 ("rtmidi" ,rtmidi)
5829 ("sdl2" ,sdl2)
5830 ("xdg-utils" ,xdg-utils)
5831 ("zstd" ,zstd "lib")))
5832 (native-inputs
5833 `(("pkg-config" ,pkg-config)
5834 ("help2man" ,help2man)
5835 ("glib" ,glib "bin"))) ; for 'glib-compile-resources'
5836 (synopsis "Digital audio workstation focusing on usability")
5837 (description "Zrythm is a digital audio workstation designed to be
5838 featureful and easy to use. It offers unlimited automation options, LV2
5839 plugin support, JACK support and chord assistance.")
5840 (home-page "https://www.zrythm.org")
5841 (license license:agpl3+)))
5842
5843 (define-public dragonfly-reverb
5844 (package
5845 (name "dragonfly-reverb")
5846 (version "3.2.1")
5847 (source
5848 (origin
5849 (method git-fetch)
5850 (uri
5851 (git-reference
5852 (url "https://github.com/michaelwillis/dragonfly-reverb")
5853 (commit version)
5854 ;; Bundles a specific commit of the DISTRHO plugin framework.
5855 (recursive? #t)))
5856 (file-name (git-file-name name version))
5857 (sha256
5858 (base32 "0vfm2510shah67k87mdyar4wr4vqwii59y9lqfhwm6blxparkrqa"))))
5859 (build-system gnu-build-system)
5860 (arguments
5861 `(#:tests? #f ; no check target
5862 #:make-flags (list "CC=gcc")
5863 #:phases
5864 (modify-phases %standard-phases
5865 (delete 'configure) ;no configure target
5866 (replace 'install ;no install target
5867 (lambda* (#:key outputs #:allow-other-keys)
5868 (let* ((out (assoc-ref outputs "out"))
5869 (bin (string-append out "/bin"))
5870 (lv2 (string-append out "/lib/lv2")))
5871 ;; Install LV2.
5872 (for-each
5873 (lambda (file)
5874 (copy-recursively file
5875 (string-append lv2 "/" (basename file))))
5876 (find-files "bin" "\\.lv2$" #:directories? #t))
5877 ;; Install executables.
5878 (for-each
5879 (lambda (file)
5880 (install-file file bin))
5881 (find-files "bin"
5882 (lambda (name stat)
5883 (and
5884 (equal? (dirname name) "bin")
5885 (not (string-suffix? ".so" name))
5886 (not (string-suffix? ".lv2" name))))))
5887 #t))))))
5888 (native-inputs
5889 `(("pkg-config" ,pkg-config)))
5890 (inputs
5891 `(("jack" ,jack-1)
5892 ("libx11" ,libx11)
5893 ("mesa" ,mesa)))
5894 (home-page "https://michaelwillis.github.io/dragonfly-reverb/")
5895 (synopsis "Concert hall reverb and room reverb effects")
5896 (description
5897 "Dragonfly Reverb is a bundle of two free audio effects: a concert
5898 hall reverb and a room reverb. Both are available as LV2 plugins as well
5899 as JACK standalone applications.")
5900 (license license:gpl3+)))
5901
5902 (define-public zlfo
5903 (package
5904 (name "zlfo")
5905 (version "0.1.3")
5906 (source
5907 (origin
5908 (method git-fetch)
5909 (uri (git-reference
5910 (url "https://git.zrythm.org/git/ZLFO")
5911 (commit (string-append "v" version))))
5912 (file-name (git-file-name name version))
5913 (sha256
5914 (base32
5915 "0bm466ci5xyvxvq7l9p6xyh789lvk6i31b4zja1igqh13akbjnjz"))))
5916 (build-system meson-build-system)
5917 (inputs
5918 `(("librsvg" ,librsvg)
5919 ("lv2" ,lv2)
5920 ("ztoolkit-rsvg" ,ztoolkit-rsvg)))
5921 (native-inputs
5922 `(("pkg-config" ,pkg-config)))
5923 (synopsis "Low frequency oscillator plugin")
5924 (description "ZLFO is a fully featured
5925 @dfn{low frequency oscillator} (LFO) for @dfn{control voltage} (CV)-based
5926 automation that comes as an LV2 plugin bundle with a custom UI.")
5927 (home-page "https://git.zrythm.org/cgit/ZLFO/")
5928 (license license:agpl3+)))
5929
5930 (define-public remid-lv2
5931 (package
5932 (name "remid-lv2")
5933 (version "0.3")
5934 (source
5935 (origin
5936 (method git-fetch)
5937 (uri (git-reference
5938 (url "https://github.com/ssj71/reMID.lv2")
5939 (commit (string-append "v" version))))
5940 (file-name (git-file-name name version))
5941 (sha256
5942 (base32
5943 "062kriniidsrhzwrf89kfxm9wb0cmgrl07asnlmgil8vcl7gl9y5"))))
5944 (build-system cmake-build-system)
5945 (arguments
5946 `(#:tests? #f)) ; no tests included
5947 (inputs
5948 `(("alsa-lib" ,alsa-lib)
5949 ("glib" ,glib)
5950 ("jack" ,jack-1)
5951 ("lv2" ,lv2)))
5952 (native-inputs
5953 `(("pkg-config" ,pkg-config)))
5954 (home-page "https://github.com/ssj71/reMID.lv2")
5955 (synopsis
5956 "MIDI-controlled implementation of the SID 6581 chip used in the
5957 Commodore 64")
5958 (description
5959 "The 6581 SID chip is the sound chip used in the Commodore 64 computer.
5960 reMID is a MIDI implementation of the 6581 SID chip using the reSID library
5961 to provide a virtual SID-based synthesizer, controllable in real-time via
5962 MIDI. It includes support for scripted instruments that allow complex sonic
5963 control of the chip.")
5964 (license license:gpl2+)))
5965
5966 (define-public vl1-emulator
5967 (package
5968 (name "vl1-emulator")
5969 (version "1.1.0.0")
5970 (source
5971 (origin
5972 (method git-fetch)
5973 (uri (git-reference
5974 (url "https://github.com/linuxmao-org/VL1-emulator")
5975 (commit (string-append "v" version))
5976 ;; bundles a specific commit of the DISTRHO plugin framework
5977 (recursive? #t)))
5978 (file-name (git-file-name name version))
5979 (sha256
5980 (base32
5981 "1npc86vqma8gk1hawa0lii0r2xmnv846plyl1ci3bdswyrdk5chm"))))
5982 (build-system gnu-build-system)
5983 (arguments
5984 `(#:tests? #f ;no check target
5985 #:make-flags
5986 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
5987 "CC=gcc")
5988 #:phases
5989 (modify-phases %standard-phases
5990 (delete 'configure)))) ;no configure target
5991 (inputs
5992 `(("cairo" ,cairo)
5993 ("jack" ,jack-1)
5994 ("mesa" ,mesa)))
5995 (native-inputs
5996 `(("pkg-config" ,pkg-config)))
5997 (home-page "https://github.com/linuxmao-org/VL1-emulator")
5998 (synopsis "Emulator of Casio VL-Tone VL1")
5999 (description "The VL1-Emulator is an emulator of Casio VL-Tone VL1,
6000 based on source code by PolyValens, offered as an LV2 plugin and a
6001 standalone JACK application.")
6002 ;; Expat or CC0
6003 (license (list license:expat license:cc0))))
6004
6005 (define-public regrader
6006 (package
6007 (inherit vl1-emulator)
6008 (name "regrader")
6009 (version "1.0.0")
6010 (source
6011 (origin
6012 (method git-fetch)
6013 (uri (git-reference
6014 (url "https://github.com/linuxmao-org/regrader")
6015 (commit (string-append "v" version))
6016 ;; bundles a specific commit of the DISTRHO plugin framework
6017 (recursive? #t)))
6018 (file-name (git-file-name name version))
6019 (sha256
6020 (base32
6021 "0gl4d5lf2afqknz22jz7hh7029sc9v1xrz6nbz9dlv42bwc0cvl0"))))
6022 (home-page "https://github.com/linuxmao-org/regrader")
6023 (synopsis "Delay effect plugin")
6024 (description
6025 "Regrader is a delay effect where the repeats degrade in resolution.
6026 This is an unofficial port of the Regrader plugin created by Igorski. It
6027 is available as an LV2 plugin and a standalone JACK application.")
6028 (license license:expat)))
6029
6030 (define-public fogpad
6031 (package
6032 (inherit vl1-emulator)
6033 (name "fogpad")
6034 (version "1.0.0")
6035 (source
6036 (origin
6037 (method git-fetch)
6038 (uri (git-reference
6039 (url "https://github.com/linuxmao-org/fogpad")
6040 (commit (string-append "v" version))
6041 ;; bundles a specific commit of the DISTRHO plugin framework
6042 (recursive? #t)))
6043 (file-name (git-file-name name version))
6044 (sha256
6045 (base32
6046 "1j1hbya2dsqpf22zkpi4kwz3dram9g1ndxzmgfwpmf3i4jd3csgb"))))
6047 (home-page "https://github.com/linuxmao-org/fogpad")
6048 (synopsis "Reverb effect plugin")
6049 (description
6050 "Fogpad is a reverb effect in which the reflections can be frozen,
6051 filtered, pitch shifted and ultimately disintegrated. This is an unofficial
6052 port of the Regrader plugin created by Igorski. It is available as an LV2
6053 plugin and a standalone JACK application.")
6054 (license license:expat)))
6055
6056 (define-public tap-lv2
6057 (let ((commit "cab6e0dfb2ce20e4ad34b067d1281ec0b193598a")
6058 (revision "1"))
6059 (package
6060 (name "tap-lv2")
6061 (version (git-version "0.0" revision commit))
6062 (source
6063 (origin
6064 (method git-fetch)
6065 (uri (git-reference
6066 (url "https://github.com/moddevices/tap-lv2")
6067 (commit commit)))
6068 (file-name (git-file-name name version))
6069 (sha256
6070 (base32
6071 "0q480djfqd9g8mzrggc4vl7yclrhdjqx563ghs8mvi2qq8liycw3"))))
6072 (build-system gnu-build-system)
6073 (arguments
6074 `(#:tests? #f ; no check target
6075 #:make-flags
6076 (list "CC=gcc")
6077 #:phases
6078 (modify-phases %standard-phases
6079 (delete 'configure) ; no configure
6080 (replace 'install
6081 (lambda _
6082 (invoke "make"
6083 (string-append "INSTALL_PATH="
6084 (assoc-ref %outputs "out")
6085 "/lib/lv2")
6086 "install"))))))
6087 (inputs
6088 `(("lv2" ,lv2)))
6089 (native-inputs
6090 `(("pkg-config" ,pkg-config)))
6091 (synopsis "Audio plugin collection")
6092 (description "TAP (Tom's Audio Processing) plugins is a collection of
6093 audio effect plugins originally released as LADSPA plugins. This package
6094 offers an LV2 version ported by moddevices.")
6095 (home-page "http://tap-plugins.sourceforge.net/")
6096 (license license:gpl2))))
6097
6098 (define-public wolf-shaper
6099 (package
6100 (name "wolf-shaper")
6101 (version "0.1.8")
6102 (source
6103 (origin
6104 (method git-fetch)
6105 (uri (git-reference
6106 (url "https://github.com/pdesaulniers/wolf-shaper")
6107 (commit (string-append "v" version))
6108 ;; Bundles a specific commit of the DISTRHO plugin framework.
6109 (recursive? #t)))
6110 (file-name (git-file-name name version))
6111 (sha256
6112 (base32
6113 "1j9xmh1nkf45ay1c5dz2g165qvrwlanzcq6mvb3nfxar265drd9q"))))
6114 (build-system gnu-build-system)
6115 (arguments
6116 `(#:tests? #f ; no check target
6117 #:make-flags (list "CC=gcc")
6118 #:phases
6119 (modify-phases %standard-phases
6120 (delete 'configure) ;no configure target
6121 (replace 'install ;no install target
6122 (lambda* (#:key outputs #:allow-other-keys)
6123 (let* ((out (assoc-ref outputs "out"))
6124 (bin (string-append out "/bin"))
6125 (lv2 (string-append out "/lib/lv2")))
6126 ;; Install LV2.
6127 (for-each
6128 (lambda (file)
6129 (copy-recursively file
6130 (string-append lv2 "/" (basename file))))
6131 (find-files "bin" "\\.lv2$" #:directories? #t))
6132 ;; Install executables.
6133 (for-each
6134 (lambda (file)
6135 (install-file file bin))
6136 (find-files "bin"
6137 (lambda (name stat)
6138 (and
6139 (equal? (dirname name) "bin")
6140 (not (string-suffix? ".so" name))
6141 (not (string-suffix? ".lv2" name))))))
6142 #t))))))
6143 (native-inputs
6144 `(("pkg-config" ,pkg-config)))
6145 (inputs
6146 `(("jack" ,jack-1)
6147 ("lv2" ,lv2)
6148 ("mesa" ,mesa)))
6149 (synopsis "Waveshaper plugin")
6150 (description "Wolf Shaper is a waveshaper plugin with a graph editor.
6151 It is provided as an LV2 plugin and as a standalone Jack application.")
6152 (home-page "https://pdesaulniers.github.io/wolf-shaper/")
6153 (license license:gpl3)))
6154
6155 (define-public wolf-spectrum
6156 (package
6157 (inherit wolf-shaper)
6158 (name "wolf-spectrum")
6159 (version "1.0.0")
6160 (source
6161 (origin
6162 (method git-fetch)
6163 (uri (git-reference
6164 (url "https://github.com/pdesaulniers/wolf-spectrum")
6165 (commit (string-append "v" version))
6166 ;; Bundles a specific commit of the DISTRHO plugin framework.
6167 (recursive? #t)))
6168 (file-name (git-file-name name version))
6169 (sha256
6170 (base32
6171 "17db1jlj7vb1xyvkdhhrsvdbwb7jqw6i4168cdvlj3yvn2ra8gpm"))))
6172 (synopsis "2D spectrogram plugin")
6173 (description "Wolf Spectrum is a real-time 2D spectrogram plugin.
6174 It is provided as an LV2 plugin and as a standalone Jack application.")
6175 (home-page "https://github.com/pdesaulniers/wolf-spectrum")
6176 (license license:gpl3)))
6177
6178 (define-public shiru-lv2
6179 (let ((commit "08853f99140012234649e67e5647906fda74f6cc")
6180 (revision "1"))
6181 (package
6182 (name "shiru-lv2")
6183 (version (git-version "0.0" revision commit))
6184 (source
6185 (origin
6186 (method git-fetch)
6187 (uri (git-reference
6188 (url "https://github.com/linuxmao-org/shiru-plugins")
6189 (commit commit)
6190 ;; Bundles a specific commit of the DISTRHO plugin framework.
6191 (recursive? #t)))
6192 (file-name (git-file-name name version))
6193 (sha256
6194 (base32
6195 "00rf6im3rhg98h60sgl1r2s37za5vr5h14pybwi07h8zbc8mi6fm"))))
6196 (build-system gnu-build-system)
6197 (arguments
6198 `(#:tests? #f ; no check target
6199 #:make-flags (list "CC=gcc")
6200 #:phases
6201 (modify-phases %standard-phases
6202 (delete 'configure) ;no configure target
6203 (replace 'install ;no install target
6204 (lambda* (#:key outputs #:allow-other-keys)
6205 (let* ((out (assoc-ref outputs "out"))
6206 (bin (string-append out "/bin"))
6207 (lv2 (string-append out "/lib/lv2")))
6208 ;; Install LV2.
6209 (for-each
6210 (lambda (file)
6211 (copy-recursively file
6212 (string-append lv2 "/" (basename file))))
6213 (find-files "bin" "\\.lv2$" #:directories? #t))
6214 ;; Install executables.
6215 (for-each
6216 (lambda (file)
6217 (install-file file bin))
6218 (find-files "bin"
6219 (lambda (name stat)
6220 (and
6221 (equal? (dirname name) "bin")
6222 (not (string-suffix? ".so" name))
6223 (not (string-suffix? ".lv2" name))))))
6224 #t))))))
6225 (native-inputs
6226 `(("pkg-config" ,pkg-config)))
6227 (inputs
6228 `(("cairo" ,cairo)
6229 ("glu" ,glu)
6230 ("jack" ,jack-1)
6231 ("lv2" ,lv2)
6232 ("mesa" ,mesa)
6233 ("pango" ,pango)))
6234 (synopsis "Audio plugin collection")
6235 (description "Shiru plugins is a collection of audio plugins created
6236 by Shiru, ported to LV2 by the Linux MAO project using the DISTRHO plugin
6237 framework.")
6238 (home-page "http://shiru.untergrund.net/software.shtml")
6239 (license license:wtfpl2))))