gnu: mono: Make build reproducible.
[jackhill/guix/guix.git] / gnu / packages / music.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
3 ;;; Copyright © 2015, 2016, 2017, 2018 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 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016, 2018 Leo Famulari <leo@famulari.name>
8 ;;; Copyright © 2016, 2017 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 Nils Gillmann <ng0@n0.is>
12 ;;; Copyright © 2017 Rodger Fox <thylakoid@openmailbox.org>
13 ;;; Copyright © 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
14 ;;; Copyright © 2017, 2018 Pierre Langlois <pierre.langlois@gmx.com>
15 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
16 ;;; Copyright © 2017, 2018 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 Ludovic Courtès <ludo@gnu.org>
21 ;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
22 ;;;
23 ;;; This file is part of GNU Guix.
24 ;;;
25 ;;; GNU Guix is free software; you can redistribute it and/or modify it
26 ;;; under the terms of the GNU General Public License as published by
27 ;;; the Free Software Foundation; either version 3 of the License, or (at
28 ;;; your option) any later version.
29 ;;;
30 ;;; GNU Guix is distributed in the hope that it will be useful, but
31 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
32 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 ;;; GNU General Public License for more details.
34 ;;;
35 ;;; You should have received a copy of the GNU General Public License
36 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
37
38 (define-module (gnu packages music)
39 #:use-module (guix utils)
40 #:use-module (guix packages)
41 #:use-module (guix download)
42 #:use-module (guix git-download)
43 #:use-module ((guix licenses) #:prefix license:)
44 #:use-module (guix build-system gnu)
45 #:use-module (guix build-system ant)
46 #:use-module (guix build-system cmake)
47 #:use-module (guix build-system meson)
48 #:use-module (guix build-system perl)
49 #:use-module (guix build-system python)
50 #:use-module (guix build-system scons)
51 #:use-module (guix build-system glib-or-gtk)
52 #:use-module (guix build-system waf)
53 #:use-module (guix build-system trivial)
54 #:use-module (guix build-system go)
55 #:use-module (gnu packages)
56 #:use-module (gnu packages algebra)
57 #:use-module (gnu packages apr)
58 #:use-module (gnu packages audio)
59 #:use-module (gnu packages autotools)
60 #:use-module (gnu packages backup)
61 #:use-module (gnu packages base) ;libbdf
62 #:use-module (gnu packages bash)
63 #:use-module (gnu packages bison)
64 #:use-module (gnu packages boost)
65 #:use-module (gnu packages cdrom)
66 #:use-module (gnu packages code)
67 #:use-module (gnu packages check)
68 #:use-module (gnu packages cmake)
69 #:use-module (gnu packages compression)
70 #:use-module (gnu packages crypto)
71 #:use-module (gnu packages curl)
72 #:use-module (gnu packages cyrus-sasl)
73 #:use-module (gnu packages databases)
74 #:use-module (gnu packages datastructures)
75 #:use-module (gnu packages docbook)
76 #:use-module (gnu packages documentation)
77 #:use-module (gnu packages emacs)
78 #:use-module (gnu packages file)
79 #:use-module (gnu packages flex)
80 #:use-module (gnu packages fltk)
81 #:use-module (gnu packages fonts)
82 #:use-module (gnu packages fontutils)
83 #:use-module (gnu packages freedesktop)
84 #:use-module (gnu packages gcc)
85 #:use-module (gnu packages gnupg)
86 #:use-module (gnu packages gettext)
87 #:use-module (gnu packages ghostscript)
88 #:use-module (gnu packages gl)
89 #:use-module (gnu packages glib)
90 #:use-module (gnu packages gnome)
91 #:use-module (gnu packages graphics)
92 #:use-module (gnu packages gstreamer)
93 #:use-module (gnu packages gtk)
94 #:use-module (gnu packages guile)
95 #:use-module (gnu packages image)
96 #:use-module (gnu packages imagemagick)
97 #:use-module (gnu packages java)
98 #:use-module (gnu packages libffi)
99 #:use-module (gnu packages libusb)
100 #:use-module (gnu packages linux) ; for alsa-utils
101 #:use-module (gnu packages lirc)
102 #:use-module (gnu packages llvm)
103 #:use-module (gnu packages man)
104 #:use-module (gnu packages mp3)
105 #:use-module (gnu packages mpd)
106 #:use-module (gnu packages ncurses)
107 #:use-module (gnu packages netpbm)
108 #:use-module (gnu packages pcre)
109 #:use-module (gnu packages pdf)
110 #:use-module (gnu packages perl)
111 #:use-module (gnu packages perl-web)
112 #:use-module (gnu packages pkg-config)
113 #:use-module (gnu packages protobuf)
114 #:use-module (gnu packages pulseaudio) ;libsndfile
115 #:use-module (gnu packages python)
116 #:use-module (gnu packages python-web)
117 #:use-module (gnu packages qt)
118 #:use-module (gnu packages rdf)
119 #:use-module (gnu packages readline)
120 #:use-module (gnu packages rsync)
121 #:use-module (gnu packages sdl)
122 #:use-module (gnu packages tcl)
123 #:use-module (gnu packages texinfo)
124 #:use-module (gnu packages tex)
125 #:use-module (gnu packages tls)
126 #:use-module (gnu packages version-control)
127 #:use-module (gnu packages video)
128 #:use-module (gnu packages web)
129 #:use-module (gnu packages wxwidgets)
130 #:use-module (gnu packages xml)
131 #:use-module (gnu packages xorg)
132 #:use-module (gnu packages xiph)
133 #:use-module (gnu packages golang)
134 #:use-module (gnu packages lua)
135 #:use-module ((srfi srfi-1) #:select (last)))
136
137 (define-public aria-maestosa
138 (package
139 (name "aria-maestosa")
140 (version "1.4.13")
141 (source (origin
142 (method url-fetch)
143 (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/"
144 version "/AriaSrc-" version ".tar.bz2"))
145 (sha256
146 (base32
147 "1cs3z6frx2ch7rm5ammx9p0rxcjrbj1vq14hvcbimpaw39rdsn3d"))))
148 (build-system scons-build-system)
149 (arguments
150 `(#:tests? #f ;no tests
151 #:scons-flags
152 (list (string-append "prefix=" (assoc-ref %outputs "out")))
153 #:scons ,scons-python2
154 #:phases
155 (modify-phases %standard-phases
156 (delete 'configure)
157 (add-after 'unpack 'scons-propagate-environment
158 (lambda _
159 ;; By design, SCons does not, by default, propagate
160 ;; environment variables to subprocesses. See:
161 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
162 ;; Here, we modify the SConstruct file to arrange for
163 ;; environment variables to be propagated.
164 (substitute* "SConstruct"
165 (("env = Environment\\(\\)")
166 "env = Environment(ENV=os.environ)")
167 ;; Scons errors out when copying subdirectories from Resources,
168 ;; so we move them instead.
169 (("Copy") "Move")
170 ;; We move the "score" and "Documentation" directories at once,
171 ;; so we have to ignore files contained therein.
172 (("if \".svn\" in file" line)
173 (string-append line
174 " or \"score/\" in file"
175 " or \"Documentation/\" in file")))
176 #t))
177 (add-after 'install 'fix-directory-permissions
178 (lambda* (#:key outputs #:allow-other-keys)
179 (let ((out (assoc-ref outputs "out")))
180 (chmod (string-append out "/share/Aria/Documentation") #o555)
181 (chmod (string-append out "/share/Aria/score") #o555)
182 #t))))))
183 (inputs
184 `(("wxwidgets" ,wxwidgets)
185 ("glib" ,glib)
186 ("alsa-lib" ,alsa-lib)))
187 (native-inputs
188 `(("pkg-config" ,pkg-config)))
189 (home-page "http://ariamaestosa.sourceforge.net/")
190 (synopsis "MIDI sequencer and editor")
191 (description
192 "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit
193 and play MIDI files with a few clicks in a user-friendly interface offering
194 score, keyboard, guitar, drum and controller views.")
195 (license license:gpl3+)))
196
197 ;; We don't use the latest release because it depends on Qt4. Instead we
198 ;; download the sources from the tip of the "qt5" branch.
199 (define-public clementine
200 (let ((commit "4619a4c1ab3b17b13d4b2327ad477912917eaf36")
201 (revision "2"))
202 (package
203 (name "clementine")
204 (version (git-version "1.3.1" revision commit))
205 (source (origin
206 (method git-fetch)
207 (uri (git-reference
208 (url "https://github.com/clementine-player/Clementine.git")
209 (commit commit)))
210 (file-name (git-file-name name version))
211 (sha256
212 (base32
213 "1hximk3q0p8nw8is5w7215xgkb7k4flnfyr0pdz9svfwvcm05w1i"))
214 (modules '((guix build utils)))
215 (snippet
216 '(begin
217 (for-each
218 (lambda (dir)
219 (delete-file-recursively
220 (string-append "3rdparty/" dir)))
221 (list
222 ;; TODO: The following dependencies are still bundled:
223 ;; - "qxt": Appears to be unmaintained upstream.
224 ;; - "qsqlite"
225 ;; - "qtsingleapplication"
226 ;; - "qocoa"
227 ;; - "qtiocompressor"
228 ;; - "gmock": The tests crash when using our googletest
229 ;; package instead of the bundled gmock.
230 "SPMediaKeyTap"
231 "fancytabwidget"
232 "google-breakpad"
233 "libmygpo-qt"
234 "libmygpo-qt5"
235 "libprojectm"
236 "qtwin"
237 "sha2" ;; Replaced by openssl.
238 "taglib"
239 "tinysvcmdns"))
240 #t))
241 (patches (search-patches "clementine-use-openssl.patch"
242 "clementine-remove-crypto++-dependency.patch"
243 "clementine-fix-sqlite.patch"))))
244 (build-system cmake-build-system)
245 (arguments
246 '(#:test-target "clementine_test"
247 #:configure-flags
248 (list ;; Requires unpackaged "projectm"
249 "-DENABLE_VISUALISATIONS=OFF"
250 ;; Otherwise it may try to download a non-free library at run-time.
251 ;; TODO In an origin snippet, remove the code that performs the
252 ;; download.
253 "-DHAVE_SPOTIFY_DOWNLOADER=FALSE"
254 "-DUSE_SYSTEM_SHA2=TRUE")
255 #:phases
256 (modify-phases %standard-phases
257 (add-after 'install 'wrap-program
258 (lambda* (#:key inputs outputs #:allow-other-keys)
259 (let ((out (assoc-ref outputs "out"))
260 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
261 (wrap-program (string-append out "/bin/clementine")
262 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))
263 #t))))))
264 (native-inputs
265 `(("gettext" ,gettext-minimal)
266 ("pkg-config" ,pkg-config)
267 ("qtlinguist" ,qttools)))
268 (inputs
269 `(("boost" ,boost)
270 ("chromaprint" ,chromaprint)
271 ("fftw" ,fftw)
272 ("glib" ,glib)
273 ("glu" ,glu)
274 ("gstreamer" ,gstreamer)
275 ("gst-plugins-base" ,gst-plugins-base)
276 ("gst-plugins-good" ,gst-plugins-good)
277 ("gst-libav" ,gst-libav)
278 ("libcdio" ,libcdio)
279 ("libmygpo-qt" ,libmygpo-qt)
280 ;; TODO: Package libgpod.
281 ("libmtp" ,libmtp)
282 ("libxml2" ,libxml2)
283 ("openssl" ,openssl)
284 ("protobuf" ,protobuf)
285 ("pulseaudio" ,pulseaudio)
286 ("qtbase" ,qtbase)
287 ("qtx11extras" ,qtx11extras)
288 ("sqlite" ,sqlite-with-column-metadata)
289 ("sparsehash" ,sparsehash)
290 ("taglib" ,taglib)))
291 (home-page "http://clementine-player.org")
292 (synopsis "Music player and library organizer")
293 (description "Clementine is a multiplatform music player. It is inspired
294 by Amarok 1.4, focusing on a fast and easy-to-use interface for searching and
295 playing your music.")
296 (license (list
297 ;; clementine and qtiocompressor are under GPLv3.
298 license:gpl3+
299 ;; gmock is under BSD-3.
300 license:bsd-3
301 ;; qxt is under CPL1.0.
302 license:cpl1.0
303 ;; qsqlite and qtsingleapplication are under LGPL2.1+.
304 license:lgpl2.1+
305 ;; qocoa is under MIT and CC by-sa for the icons.
306 license:cc-by-sa3.0)))))
307
308 (define-public cmus
309 (package
310 (name "cmus")
311 (version "2.7.1")
312 (source (origin
313 (method git-fetch)
314 (uri (git-reference
315 (url "https://github.com/cmus/cmus.git")
316 (commit (string-append "v" version))))
317 (file-name (git-file-name name version))
318 (sha256
319 (base32
320 "0xd96py21bl869qlv1353zw7xsgq6v5s8szr0ldr63zj5fgc2ps5"))))
321 (build-system gnu-build-system)
322 (arguments
323 `(#:tests? #f ; cmus does not include tests
324 #:phases
325 (modify-phases %standard-phases
326 (replace 'configure
327 (lambda* (#:key outputs #:allow-other-keys)
328 (let ((out (assoc-ref outputs "out")))
329 ;; It's an idiosyncratic configure script that doesn't
330 ;; understand --prefix=..; it wants prefix=.. instead.
331 (invoke "./configure"
332 (string-append "prefix=" out))
333 #t))))))
334 ;; TODO: cmus optionally supports the following formats, which haven't yet
335 ;; been added to Guix:
336 ;;
337 ;; - Roar, libroar
338 ;;
339 ;; - DISCID_LIBS, apparently different from cd-discid which is included in
340 ;; Guix. See <http://sourceforge.net/projects/discid/>
341 (native-inputs
342 `(("pkg-config" ,pkg-config)))
343 (inputs
344 `(("alsa-lib" ,alsa-lib)
345 ("ao" ,ao)
346 ("ffmpeg" ,ffmpeg)
347 ("flac" ,flac)
348 ("jack" ,jack-1)
349 ("libcddb" ,libcddb)
350 ("libcdio-paranoia" ,libcdio-paranoia)
351 ("libcue" ,libcue)
352 ("libmad" ,libmad)
353 ("libmodplug" ,libmodplug)
354 ("libmpcdec" ,libmpcdec)
355 ("libsamplerate" ,libsamplerate)
356 ("libvorbis" ,libvorbis)
357 ("ncurses" ,ncurses)
358 ("opusfile" ,opusfile)
359 ("pulseaudio" ,pulseaudio)
360 ("wavpack" ,wavpack)))
361 (home-page "https://cmus.github.io/")
362 (synopsis "Small console music player")
363 (description "Cmus is a small and fast console music player. It supports
364 many input formats and provides a customisable Vi-style user interface.")
365 (license license:gpl2+)))
366
367 (define-public denemo
368 (package
369 (name "denemo")
370 (version "2.1")
371 (source (origin
372 (method url-fetch)
373 (uri (string-append "mirror://gnu/denemo/denemo-"
374 version ".tar.gz"))
375 (sha256
376 (base32
377 "0hggf8c4xcrjcxd5m00r788r7jg7g8ff54w2idfaqpj5j2ix3299"))))
378 (build-system gnu-build-system)
379 (arguments
380 `(#:phases
381 (modify-phases %standard-phases
382 (replace 'check
383 ;; Denemo's documentation says to use this command to run its
384 ;; testsuite.
385 (lambda _
386 (invoke "make" "-C" "tests" "check")))
387 (add-before 'build 'set-lilypond
388 ;; This phase sets the default path for lilypond to its current
389 ;; location in the store.
390 (lambda* (#:key inputs #:allow-other-keys)
391 (let* ((lilypond (string-append (assoc-ref inputs "lilypond")
392 "/bin/lilypond")))
393 (substitute* "src/core/prefops.c"
394 (("g_string_new \\(\"lilypond\"\\);")
395 (string-append "g_string_new (\""
396 lilypond
397 "\");"))))
398 #t))
399 (add-after 'install 'correct-filename
400 ;; "graft-derivation/shallow" from the (guix grafts) module runs in
401 ;; the C locale, expecting file names to be ASCII encoded. This
402 ;; phase renames a filename with a Unicode character in it to meet
403 ;; the aforementioned condition.
404 (lambda* (#:key outputs #:allow-other-keys)
405 (let* ((out (assoc-ref outputs "out")))
406 (chdir (string-append
407 out
408 "/share/denemo/templates/instruments/woodwind"))
409 (rename-file "Clarinet in B♭.denemo"
410 "Clarinet in Bb.denemo"))
411 #t)))))
412 (native-inputs
413 `(("glib:bin" ,glib "bin") ; for gtester
414 ("pkg-config" ,pkg-config)))
415 (inputs
416 `(("alsa-lib" ,alsa-lib)
417 ("aubio" ,aubio)
418 ("evince" ,evince)
419 ("fftw" ,fftw)
420 ("fluidsynth" ,fluidsynth)
421 ("glib" ,glib)
422 ("gtk+" ,gtk+)
423 ("gtk-doc" ,gtk-doc)
424 ("gtksourceview" ,gtksourceview)
425 ("guile" ,guile-2.0)
426 ("intltool" ,intltool)
427 ("librsvg" ,librsvg)
428 ("libsndfile" ,libsndfile)
429 ("libtool" ,libtool)
430 ("libxml2" ,libxml2)
431 ("lilypond" ,lilypond)
432 ("portaudio" ,portaudio)
433 ("portmidi" ,portmidi)
434 ("rubberband" ,rubberband)))
435 (synopsis "Graphical music notation, front-end to GNU Lilypond")
436 (description
437 "GNU Denemo is a music notation editor that provides a convenient
438 interface to the powerful music engraving program Lilypond. Music can be
439 typed in using the computer keyboard, played in using a MIDI keyboard, or
440 even input via a microphone connected to the sound card. The final product
441 is publication-quality music notation that is continuously generated in the
442 background while you work.")
443 (home-page "http://www.denemo.org")
444 (license license:gpl3+)))
445
446 (define-public hydrogen
447 (package
448 (name "hydrogen")
449 (version "1.0.0-beta1")
450 (source (origin
451 (method git-fetch)
452 (uri (git-reference
453 (url "https://github.com/hydrogen-music/hydrogen.git")
454 (commit version)))
455 (file-name (string-append name "-" version "-checkout"))
456 (sha256
457 (base32
458 "0nv83l70j5bjz2wd6n3a8cq3bmgrvdvg6g2hjhc1g5h6xnbqsh9x"))))
459 (build-system cmake-build-system)
460 (arguments
461 `(#:test-target "tests"
462 #:phases
463 (modify-phases %standard-phases
464 (add-after 'unpack 'fix-data-directory
465 (lambda* (#:key outputs #:allow-other-keys)
466 (substitute* "CMakeLists.txt"
467 (("/usr/share/pixmaps")
468 (string-append (assoc-ref outputs "out")
469 "/share/pixmaps")))
470 #t)))))
471 (native-inputs
472 `(("cppunit" ,cppunit)
473 ("pkg-config" ,pkg-config)))
474 (inputs
475 `(("alsa-lib" ,alsa-lib)
476 ("jack" ,jack-1)
477 ;; ("ladspa" ,ladspa) ; cannot find during configure
478 ("lash" ,lash)
479 ("libarchive" ,libarchive)
480 ("libsndfile" ,libsndfile)
481 ("libtar" ,libtar)
482 ("lrdf" ,lrdf)
483 ("qtbase" ,qtbase)
484 ("qtxmlpatterns" ,qtxmlpatterns)
485 ("zlib" ,zlib)))
486 (home-page "http://www.hydrogen-music.org")
487 (synopsis "Drum machine")
488 (description
489 "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to
490 enable professional yet simple and intuitive pattern-based drum programming.")
491 (license license:gpl2+)))
492
493 (define-public easytag
494 (package
495 (name "easytag")
496 (version "2.4.3")
497 (source (origin
498 (method url-fetch)
499 (uri (string-append "mirror://gnome/sources/easytag/2.4/easytag-"
500 version ".tar.xz"))
501 (sha256
502 (base32
503 "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw"))))
504 (build-system glib-or-gtk-build-system)
505 (native-inputs
506 `(("desktop-file-utils" ,desktop-file-utils)
507 ("glib" ,glib "bin")
508 ("intltool" ,intltool)
509 ("itstool" ,itstool)
510 ("pkg-config" ,pkg-config)
511 ("xmllint" ,libxml2)))
512 (inputs
513 `(("flac" ,flac)
514 ("gtk+" ,gtk+)
515 ("id3lib" ,id3lib)
516 ("libid3tag" ,libid3tag)
517 ("libvorbis" ,libvorbis)
518 ("opusfile" ,opusfile)
519 ("speex" ,speex)
520 ("taglib" ,taglib)
521 ("wavpack" ,wavpack)
522 ("yelp" ,yelp)))
523 (arguments
524 '(#:phases
525 (modify-phases %standard-phases
526 (add-before 'configure 'configure-libid3tag
527 (lambda* (#:key inputs #:allow-other-keys)
528 ;; libid3tag does not provide a .pc file and EasyTAG's configure
529 ;; script healivy relies on pkg-config. Providing a temporary
530 ;; local .pc file is easier than patching the configure script.
531 (let* ((libid3tag (assoc-ref inputs "libid3tag")))
532 (mkdir-p "pkgconfig")
533 (with-output-to-file
534 "pkgconfig/id3tag.pc"
535 (lambda _
536 (format #t
537 "prefix=~@*~a~@
538 libdir=${prefix}/lib~@
539 includedir=${prefix}/include~@
540 Libs: -L${libdir} -lid3tag -lz~@
541 Cflags: -I${includedir}~%"
542 libid3tag)))
543 (setenv "PKG_CONFIG_PATH"
544 (string-append (getenv "PKG_CONFIG_PATH")
545 ":" (getcwd) "/pkgconfig")))))
546 (add-after 'unpack 'patch-makefile
547 (lambda _
548 (substitute* "Makefile.in"
549 ;; The Makefile generates a test-desktop-file-validate.sh
550 ;; script with /bin/sh hard-coded.
551 (("/bin/sh") (which "sh"))
552 ;; Don't create 'icon-theme.cache'.
553 (("gtk-update-icon-cache") "true")))))))
554 (home-page "https://wiki.gnome.org/Apps/EasyTAG")
555 (synopsis "Simple application for viewing and editing tags in audio files")
556 (description
557 "EasyTAG is an application for viewing and editing tags in audio files.
558 It supports MP3, MP2, MP4/AAC, FLAC, Ogg Opus, Ogg Speex, Ogg Vorbis,
559 MusePack, Monkey's Audio, and WavPack files.")
560 (license license:gpl2+)))
561
562 (define-public extempore
563 (package
564 (name "extempore")
565 (version "0.7.0")
566 (source (origin
567 (method git-fetch)
568 (uri (git-reference
569 (url "https://github.com/digego/extempore.git")
570 (commit version)))
571 (sha256
572 (base32
573 "12fsp7zkfxb9kykwq46l88kcbbici9arczrrsl4qn87m6vm5349l"))
574 (file-name (string-append name "-" version "-checkout"))))
575 (build-system cmake-build-system)
576 (arguments
577 `(;; The default target also includes ahead-of-time compilation of the
578 ;; standard libraries. However, during the "install" phase this would
579 ;; happen *again* for unknown reasons. Hence we only build the
580 ;; extempore executable during the build phase.
581 #:make-flags '("extempore")
582 #:configure-flags '("-DJACK=ON"
583 ;; We want to distribute.
584 "-DIN_TREE=OFF"
585 ;; Don't download any dependencies.
586 "-DBUILD_DEPS=OFF")
587 #:modules ((ice-9 match)
588 (guix build cmake-build-system)
589 (guix build utils))
590 #:phases
591 (modify-phases %standard-phases
592 (add-after 'unpack 'patch-directories
593 (lambda* (#:key outputs #:allow-other-keys)
594 ;; Rewrite default path to runtime directory
595 (substitute* "src/Extempore.cpp"
596 (("runtimedir \\+= \"runtime\"")
597 (string-append "runtimedir = \""
598 (assoc-ref outputs "out")
599 "/lib/extempore/runtime\"")))
600 (substitute* "extras/extempore.el"
601 (("\\(runtime-directory \\(concat default-directory \"runtime\"\\)\\)")
602 (string-append "(runtime-directory \""
603 (assoc-ref outputs "out")
604 "/lib/extempore/runtime"
605 "\")")))
606 #t))
607 (add-after 'unpack 'link-with-additional-libs
608 (lambda _
609 ;; The executable must be linked with libffi and zlib.
610 (substitute* "CMakeLists.txt"
611 (("add_dependencies\\(aot_extended extended_deps\\)") "")
612 (("target_link_libraries\\(extempore PRIVATE dl" line)
613 (string-append line " ffi z")))
614 #t))
615 ;; FIXME: AOT compilation of the nanovg bindings fail with the error:
616 ;; "Compiler Error could not bind _nvgLinearGradient"
617 (add-after 'unpack 'disable-nanovg
618 (lambda _
619 (substitute* "CMakeLists.txt"
620 (("aotcompile_lib\\(libs/external/nanovg.xtm.*") ""))
621 #t))
622 ;; FIXME: All examples that are used as tests segfault for some
623 ;; unknown reason.
624 (add-after 'unpack 'disable-broken-tests
625 (lambda _
626 (substitute* "CMakeLists.txt"
627 (("extempore_add_example_as_test\\(.*") ""))
628 #t))
629 (add-after 'unpack 'hardcode-external-lib-paths
630 (lambda* (#:key inputs #:allow-other-keys)
631 (use-modules (ice-9 match))
632 (for-each
633 (match-lambda
634 ((file-name lib pkg-name)
635 (substitute* (string-append "libs/external/" file-name ".xtm")
636 ((lib) (string-append (assoc-ref inputs pkg-name)
637 "/lib/" lib)))))
638 '(("assimp" "libassimp.so" "assimp")
639 ("portmidi" "libportmidi.so" "portmidi")
640 ("sndfile" "libsndfile.so" "libsndfile")
641 ("fft" "libkiss_fft.so" "kiss-fft")
642 ("stb_image" "libstb_image.so" "stb-image")
643 ("nanovg" "libnanovg.so" "nanovg")
644 ("glext" "libGL.so" "mesa")
645 ("glfw3" "libglfw.so" "glfw")
646 ("gl/glcore-directbind" "libGL.so" "mesa")
647 ("gl/glcompat-directbind" "libGL.so" "mesa")))
648 #t))
649 (add-after 'unpack 'use-own-llvm
650 (lambda* (#:key inputs #:allow-other-keys)
651 (setenv "EXT_LLVM_DIR" (assoc-ref inputs "llvm"))
652 ;; Our LLVM builds shared libraries, so Extempore should use
653 ;; those.
654 (substitute* "CMakeLists.txt"
655 (("CMAKE_STATIC_LIBRARY") "CMAKE_SHARED_LIBRARY"))
656 #t))
657 (add-after 'unpack 'fix-aot-compilation
658 (lambda* (#:key outputs #:allow-other-keys)
659 (substitute* "CMakeLists.txt"
660 ;; EXT_SHARE_DIR does not exist before installation, so the
661 ;; working directory should be the source directory instead.
662 (("WORKING_DIRECTORY \\$\\{EXT_SHARE_DIR\\}")
663 "WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}")
664 ;; Extempore needs to be told where the runtime is to be found.
665 ;; While we're at it we disable automatic tuning for a specific
666 ;; CPU to make binary substitution possible.
667 (("COMMAND extempore" prefix)
668 (string-append prefix " --sharedir " (getcwd)
669 " --mcpu=generic --attr=none")))
670 #t)))))
671 (inputs
672 `(("llvm" ,llvm-for-extempore)
673 ("libffi" ,libffi)
674 ("jack" ,jack-1)
675 ("libsndfile" ,libsndfile)
676 ("glfw" ,glfw)
677 ("apr" ,apr)
678 ("stb-image" ,stb-image-for-extempore)
679 ("kiss-fft" ,kiss-fft-for-extempore)
680 ("nanovg" ,nanovg-for-extempore)
681 ("portmidi" ,portmidi-for-extempore)
682 ("assimp" ,assimp)
683 ("alsa-lib" ,alsa-lib)
684 ("portaudio" ,portaudio)
685 ("mesa" ,mesa)
686 ("pcre" ,pcre)
687 ("zlib" ,zlib)))
688 (native-inputs
689 `(("perl" ,perl)
690 ("emacs" ,emacs-no-x)))
691 ;; Extempore refuses to build on architectures other than x86_64
692 (supported-systems '("x86_64-linux"))
693 (home-page "http://digego.github.io/extempore/")
694 (synopsis "Programming environment for live coding of multimedia")
695 (description
696 "Extempore is a programming language and runtime environment designed
697 with live programming in mind. It supports interactive programming in a REPL
698 style, compiling and binding code just-in-time. Although Extempore has its
699 roots in 'live coding' of audiovisual media art, it is suitable for any task
700 domain where dynamic run-time modifiability and good numerical performance are
701 required. Extempore also has strong timing and concurrency semantics, which
702 are helpful when working in problem spaces where timing is important (such as
703 audio and video).")
704 (license license:bsd-2)))
705
706 (define-public klick
707 (package
708 (name "klick")
709 (version "0.12.2")
710 (source (origin
711 (method url-fetch)
712 (uri (string-append "http://das.nasophon.de/download/klick-"
713 version ".tar.gz"))
714 (sha256
715 (base32
716 "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j"))))
717 (build-system scons-build-system)
718 (arguments
719 `(#:scons-flags (list (string-append "PREFIX=" %output))
720 #:scons ,scons-python2
721 #:tests? #f)) ;no "check" target
722 (inputs
723 `(("boost" ,boost)
724 ("jack" ,jack-1)
725 ("libsndfile" ,libsndfile)
726 ("libsamplerate" ,libsamplerate)
727 ("liblo" ,liblo)
728 ("rubberband" ,rubberband)))
729 (native-inputs
730 `(("pkg-config" ,pkg-config)))
731 (home-page "http://das.nasophon.de/klick/")
732 (synopsis "Metronome for JACK")
733 (description
734 "klick is an advanced command-line based metronome for JACK. It allows
735 you to define complex tempo maps for entire songs or performances.")
736 (license license:gpl2+)))
737
738 (define-public gtklick
739 (package
740 (name "gtklick")
741 (version "0.6.4")
742 (source (origin
743 (method url-fetch)
744 (uri (string-append "http://das.nasophon.de/download/gtklick-"
745 version ".tar.gz"))
746 (sha256
747 (base32
748 "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp"))))
749 (build-system python-build-system)
750 (arguments
751 `(#:tests? #f ; no tests
752 #:python ,python-2
753 #:phases
754 (modify-phases %standard-phases
755 (add-before 'build 'add-sitedirs
756 ;; .pth files are not automatically interpreted unless the
757 ;; directories containing them are added as "sites". The directories
758 ;; are then added to those in the PYTHONPATH. This is required for
759 ;; the operation of pygtk.
760 (lambda _
761 (substitute* "gtklick/gtklick.py"
762 (("import pygtk")
763 "import pygtk, site, sys
764 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))))
765 (add-after 'unpack 'inject-store-path-to-klick
766 (lambda* (#:key inputs #:allow-other-keys)
767 (substitute* "gtklick/klick_backend.py"
768 (("KLICK_PATH = 'klick'")
769 (string-append "KLICK_PATH = '"
770 (assoc-ref inputs "klick")
771 "/bin/klick'")))
772 #t)))))
773 (inputs
774 `(("klick" ,klick)
775 ("python2-pyliblo" ,python2-pyliblo)
776 ("python2-pygtk" ,python2-pygtk)))
777 (native-inputs
778 `(("gettext" ,gettext-minimal)))
779 (home-page "http://das.nasophon.de/gtklick/")
780 (synopsis "Simple metronome with an easy-to-use graphical interface")
781 (description
782 "Gtklick is a simple metronome with an easy-to-use graphical user
783 interface. It is implemented as a frontend to @code{klick}.")
784 (license license:gpl2+)))
785
786 (define-public libgme
787 (package
788 (name "libgme")
789 (version "0.6.2")
790 (source (origin
791 (method url-fetch)
792 (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/"
793 "downloads/game-music-emu-" version
794 ".tar.xz"))
795 (sha256
796 (base32
797 "0hkkmxbaas2sirlb5i4r10mgbbiaapjx8pazifabwba23m3wnijh"))))
798 (build-system cmake-build-system)
799 (arguments
800 '(#:tests? #f)) ; no check target
801 (native-inputs
802 `(;; Use gcc-4.9 to work around an internal compiler error that happens
803 ;; when using gcc-5.5.0. FIXME: Try removing this when the default
804 ;; compiler is no longer gcc-5.5.0.
805 ("gcc" ,gcc-4.9)))
806 (home-page "https://bitbucket.org/mpyne/game-music-emu")
807 (synopsis "Video game music file playback library")
808 (description
809 "Game-music-emu is a collection of video game music file emulators that
810 support the following formats and systems:
811 @table @code
812 @item AY
813 ZX Spectrum/Asmtrad CPC
814 @item GBS
815 Nintendo Game Boy
816 @item GYM
817 Sega Genesis/Mega Drive
818 @item HES
819 NEC TurboGrafx-16/PC Engine
820 @item KSS
821 MSX Home Computer/other Z80 systems (doesn't support FM sound)
822 @item NSF/NSFE
823 Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
824 @item SAP
825 Atari systems using POKEY sound chip
826 @item SPC
827 Super Nintendo/Super Famicom
828 @item VGM/VGZ
829 Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
830 @end table")
831 (license (list license:lgpl2.1+
832 ;; demo and player directories are under the Expat license
833 license:expat))))
834
835 (define-public lilypond
836 (package
837 (name "lilypond")
838 (version "2.19.80")
839 (source (origin
840 (method url-fetch)
841 (uri (string-append
842 "http://download.linuxaudio.org/lilypond/sources/v"
843 (version-major+minor version) "/"
844 name "-" version ".tar.gz"))
845 (sha256
846 (base32
847 "0lql4q946gna2pl1g409mmmsvn2qvnq2z5cihrkfhk7plcqdny9n"))))
848 (build-system gnu-build-system)
849 (arguments
850 `(#:tests? #f ; out-test/collated-files.html fails
851 #:out-of-source? #t
852 #:make-flags '("conf=www") ;to generate images for info manuals
853 #:configure-flags
854 (list "CONFIGURATION=www"
855 (string-append "--with-texgyre-dir="
856 (assoc-ref %build-inputs "font-tex-gyre")
857 "/share/fonts/opentype/"))
858 #:phases
859 (modify-phases %standard-phases
860 (add-after 'unpack 'use-texlive-union
861 (lambda _
862 ;; FIXME: fonts are not found and have to be generated in HOME.
863 (setenv "HOME" "/tmp")
864 ;; The test for the "lh" package fails, even though it is among
865 ;; the inputs.
866 (substitute* "configure"
867 (("TEX_FIKPARM=.*") "TEX_FIKPARM=found\n"))
868 #t))
869 (add-after 'unpack 'fix-path-references
870 (lambda _
871 (substitute* "scm/backend-library.scm"
872 (("\\(search-executable '\\(\"gs\"\\)\\)")
873 (string-append "\"" (which "gs") "\""))
874 (("\"/bin/sh\"")
875 (string-append "\"" (which "sh") "\"")))
876 #t))
877 (add-before 'configure 'prepare-configuration
878 (lambda _
879 (substitute* "configure"
880 (("SHELL=/bin/sh") "SHELL=sh")
881 ;; When checking the fontforge version do not consider the
882 ;; version string that's part of the directory.
883 (("head -n") "tail -n")
884 ;; Also allow for SOURCE_DATE_EPOCH = 0 in fontforge.
885 (("20110222") "19700101"))
886 (setenv "out" "www")
887 (setenv "conf" "www")
888 #t))
889 (add-after 'install 'install-info
890 (lambda _
891 (invoke "make"
892 "-j" (number->string (parallel-job-count))
893 "conf=www" "install-info")
894 #t)))))
895 (inputs
896 `(("guile" ,guile-1.8)
897 ("font-dejavu" ,font-dejavu)
898 ("font-tex-gyre" ,font-tex-gyre)
899 ("fontconfig" ,fontconfig)
900 ("freetype" ,freetype)
901 ("ghostscript" ,ghostscript)
902 ("pango" ,pango)
903 ("python" ,python-2)))
904 (native-inputs
905 `(("bison" ,bison)
906 ("perl" ,perl)
907 ("flex" ,flex)
908 ("fontforge" ,fontforge)
909 ("dblatex" ,dblatex)
910 ("gettext" ,gettext-minimal)
911 ("imagemagick" ,imagemagick)
912 ("netpbm" ,netpbm) ;for pngtopnm
913 ("texlive" ,(texlive-union (list texlive-metapost
914 texlive-generic-epsf
915 texlive-latex-lh
916 texlive-latex-cyrillic)))
917 ("texinfo" ,texinfo)
918 ("texi2html" ,texi2html)
919 ("rsync" ,rsync)
920 ("pkg-config" ,pkg-config)
921 ("zip" ,zip)))
922 (home-page "http://www.lilypond.org/")
923 (synopsis "Music typesetting")
924 (description
925 "GNU LilyPond is a music typesetter, which produces high-quality sheet
926 music. Music is input in a text file containing control sequences which are
927 interpreted by LilyPond to produce the final document. It is extendable with
928 Guile.")
929 (license license:gpl3+)
930
931 ;; On armhf and mips64el, building the documentation sometimes leads to
932 ;; more than an hour of silence, so double the max silent time.
933 (properties `((max-silent-time . 7200)))))
934
935 (define-public non-sequencer
936 ;; The latest tagged release is three years old and uses a custom build
937 ;; system, so we take the last commit.
938 (let ((commit "5ae43bb27c42387052a73e5ffc5d33efb9d946a9")
939 (revision "4"))
940 (package
941 (name "non-sequencer")
942 (version (string-append "1.9.5-" revision "." (string-take commit 7)))
943 (source (origin
944 (method git-fetch)
945 (uri (git-reference
946 (url "git://git.tuxfamily.org/gitroot/non/non.git")
947 (commit commit)))
948 (sha256
949 (base32
950 "1cljkkyi9dxqpqhx8y6l2ja4zjmlya26m26kqxml8gx08vyvddhx"))
951 (file-name (string-append name "-" version "-checkout"))))
952 (build-system waf-build-system)
953 (arguments
954 `(#:tests? #f ;no "check" target
955 #:configure-flags
956 (list "--project=sequencer"
957 ;; Disable the use of SSE unless on x86_64.
958 ,@(if (not (string-prefix? "x86_64" (or (%current-target-system)
959 (%current-system))))
960 '("--disable-sse")
961 '()))
962 #:phases
963 (modify-phases %standard-phases
964 (add-before
965 'configure 'set-flags
966 (lambda _
967 ;; Compile with C++11, required by libsigc++.
968 (setenv "CXXFLAGS" "-std=c++11")
969 #t)))
970 #:python ,python-2))
971 (inputs
972 `(("jack" ,jack-1)
973 ("libsigc++" ,libsigc++)
974 ("liblo" ,liblo)
975 ("ntk" ,ntk)))
976 (native-inputs
977 `(("pkg-config" ,pkg-config)))
978 (home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer")
979 (synopsis "Pattern-based MIDI sequencer")
980 (description
981 "The Non Sequencer is a powerful, lightweight, real-time,
982 pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for
983 MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non
984 Sequencer happens on-line, in real-time. Music can be composed live, while the
985 transport is rolling.")
986 (license license:gpl2+))))
987
988 (define-public non-session-manager
989 (package (inherit non-sequencer)
990 (name "non-session-manager")
991 (arguments
992 (substitute-keyword-arguments (package-arguments non-sequencer)
993 ((#:configure-flags flags)
994 `(cons "--project=session-manager"
995 (delete "--project=sequencer" ,flags)))))
996 (inputs
997 `(("jack" ,jack-1)
998 ("liblo" ,liblo)
999 ("ntk" ,ntk)))
1000 (native-inputs
1001 `(("pkg-config" ,pkg-config)))
1002 (home-page "http://non.tuxfamily.org/nsm/")
1003 (synopsis "Audio session management")
1004 (description
1005 "The Non Session Manager is an API and an implementation for audio
1006 session management. NSM clients use a well-specified OSC protocol to
1007 communicate with the session management daemon.")
1008 (license license:gpl2+)))
1009
1010 (define-public non-mixer
1011 (package (inherit non-sequencer)
1012 (name "non-mixer")
1013 (arguments
1014 (substitute-keyword-arguments (package-arguments non-sequencer)
1015 ((#:configure-flags flags)
1016 `(cons "--project=mixer"
1017 (delete "--project=sequencer" ,flags)))))
1018 (inputs
1019 `(("jack" ,jack-1)
1020 ("liblo" ,liblo)
1021 ("ladspa" ,ladspa)
1022 ("lrdf" ,lrdf)
1023 ("ntk" ,ntk)))
1024 (native-inputs
1025 `(("pkg-config" ,pkg-config)))
1026 (home-page "http://non.tuxfamily.org/wiki/Non%20Mixer")
1027 (synopsis "Modular digital audio mixer")
1028 (description
1029 "The Non Mixer is a powerful, reliable and fast modular digital audio
1030 mixer. It utilizes JACK for inter-application audio I/O and the NTK GUI
1031 toolkit for a fast and lightweight user interface. Non Mixer can be used
1032 alone or in concert with Non Timeline and Non Sequencer to form a complete
1033 studio.")
1034 (license license:gpl2+)))
1035
1036 (define-public non-timeline
1037 (package (inherit non-sequencer)
1038 (name "non-timeline")
1039 (arguments
1040 (substitute-keyword-arguments (package-arguments non-sequencer)
1041 ((#:configure-flags flags)
1042 `(cons "--project=timeline"
1043 (delete "--project=sequencer" ,flags)))))
1044 (inputs
1045 `(("jack" ,jack-1)
1046 ("liblo" ,liblo)
1047 ("libsndfile" ,libsndfile)
1048 ("ntk" ,ntk)))
1049 (native-inputs
1050 `(("pkg-config" ,pkg-config)))
1051 (home-page "http://non.tuxfamily.org/wiki/Non%20Timeline")
1052 (synopsis "Modular digital audio timeline arranger")
1053 (description
1054 "The Non Timeline is a powerful, reliable and fast modular digital audio
1055 timeline arranger. It utilizes JACK for inter-application audio I/O and the
1056 NTK GUI toolkit for a fast and lightweight user interface. Non Timeline can
1057 be used alone or in concert with Non Mixer and Non Sequencer to form a
1058 complete studio.")
1059 (license license:gpl2+)))
1060
1061 (define-public solfege
1062 (package
1063 (name "solfege")
1064 (version "3.22.2")
1065 (source (origin
1066 (method url-fetch)
1067 (uri (string-append
1068 "mirror://gnu/solfege/solfege-"
1069 version ".tar.xz"))
1070 (sha256
1071 (base32
1072 "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i"))))
1073 (build-system gnu-build-system)
1074 (arguments
1075 `(#:tests? #f ; xmllint attempts to download DTD
1076 #:test-target "test"
1077 #:phases
1078 (modify-phases %standard-phases
1079 (add-after 'unpack 'fix-configuration
1080 (lambda* (#:key inputs #:allow-other-keys)
1081 (substitute* "default.config"
1082 (("/usr/bin/aplay") "aplay")
1083 (("/usr/bin/timidity") "timidity")
1084 (("/usr/bin/mpg123") "mpg123")
1085 (("/usr/bin/ogg123") "ogg123"))
1086 #t))
1087 (add-before 'build 'patch-python-shebangs
1088 (lambda _
1089 ;; Two python scripts begin with a Unicode BOM, so patch-shebang
1090 ;; has no effect.
1091 (substitute* '("solfege/parsetree.py"
1092 "solfege/presetup.py")
1093 (("#!/usr/bin/python") (string-append "#!" (which "python"))))
1094 #t))
1095 (add-before 'build 'add-sitedirs
1096 ;; .pth files are not automatically interpreted unless the
1097 ;; directories containing them are added as "sites". The directories
1098 ;; are then added to those in the PYTHONPATH. This is required for
1099 ;; the operation of pygtk and pygobject.
1100 (lambda _
1101 (substitute* "run-solfege.py"
1102 (("import os")
1103 "import os, site
1104 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))
1105 #t))
1106 (add-before 'build 'adjust-config-file-prefix
1107 (lambda* (#:key outputs #:allow-other-keys)
1108 (substitute* "run-solfege.py"
1109 (("prefix = os.path.*$")
1110 (string-append "prefix = " (assoc-ref outputs "out"))))
1111 #t))
1112 (add-after 'install 'wrap-program
1113 (lambda* (#:key inputs outputs #:allow-other-keys)
1114 ;; Make sure 'solfege' runs with the correct PYTHONPATH.
1115 (let* ((out (assoc-ref outputs "out"))
1116 (path (getenv "PYTHONPATH")))
1117 (wrap-program (string-append out "/bin/solfege")
1118 `("PYTHONPATH" ":" prefix (,path))))
1119 #t)))))
1120 (inputs
1121 `(("python" ,python-2)
1122 ("pygtk" ,python2-pygtk)
1123 ("gettext" ,gettext-minimal)
1124 ("gtk" ,gtk+)
1125 ("lilypond" ,lilypond)))
1126 (native-inputs
1127 `(("pkg-config" ,pkg-config)
1128 ("txt2man" ,txt2man)
1129 ("libxml2" ,libxml2) ; for tests
1130 ("ghostscript" ,ghostscript)
1131 ("texinfo" ,texinfo)))
1132 (home-page "https://www.gnu.org/software/solfege/")
1133 (synopsis "Ear training")
1134 (description
1135 "GNU Solfege is a program for practicing musical ear-training. With it,
1136 you can practice your recognition of various musical intervals and chords. It
1137 features a statistics overview so you can monitor your progress across several
1138 sessions. Solfege is also designed to be extensible so you can easily write
1139 your own lessons.")
1140 (license license:gpl3+)))
1141
1142 (define-public powertabeditor
1143 (package
1144 (name "powertabeditor")
1145 (version "2.0.0-alpha10")
1146 (source (origin
1147 (method git-fetch)
1148 (uri (git-reference
1149 (url "https://github.com/powertab/powertabeditor.git")
1150 (commit version)))
1151 (file-name (git-file-name name version))
1152 (sha256
1153 (base32
1154 "1z4fhdp71ck9synr12rg1p6365xnypd8ih40c5icj4si36khvksk"))
1155 (modules '((guix build utils)))
1156 (snippet
1157 '(begin
1158 ;; Remove bundled sources for external libraries
1159 (delete-file-recursively "external")
1160 ;; Use only system libraries
1161 (substitute* "CMakeLists.txt"
1162 (("include\\( PTE_ThirdParty \\)")
1163 "\
1164 include(third_party/Qt)
1165 include(third_party/boost)
1166 add_library( Catch INTERFACE IMPORTED )
1167 add_library( rapidjson INTERFACE IMPORTED )"))
1168 #t))))
1169 (build-system cmake-build-system)
1170 (arguments
1171 `(#:modules ((guix build cmake-build-system)
1172 (guix build utils)
1173 (ice-9 match))
1174 #:configure-flags
1175 ;; CMake appears to lose the RUNPATH for some reason, so it has to be
1176 ;; explicitly set with CMAKE_INSTALL_RPATH.
1177 (list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
1178 (string-append "-DCMAKE_INSTALL_RPATH="
1179 (string-join (map (match-lambda
1180 ((name . directory)
1181 (string-append directory "/lib")))
1182 %build-inputs) ";"))
1183 "-DPTE_DATA_DIR=share/powertabeditor")
1184 #:phases
1185 (modify-phases %standard-phases
1186 (replace 'check
1187 (lambda _
1188 (invoke "bin/pte_tests"
1189 ;; FIXME: these tests fail
1190 "exclude:Actions/EditStaff"
1191 "exclude:Formats/PowerTabOldImport/MergeMultiBarRests"
1192 "exclude:Score/ViewFilter/FilterRule"
1193 "exclude:Score/ViewFilter/ViewFilter"
1194 "exclude:Formats/PowerTabOldImport/Directions")
1195 #t))
1196 ;; FIXME: This bug has been fixed upstream, but no release has been
1197 ;; made yet. See https://github.com/powertab/powertabeditor/issues/257
1198 (add-after 'unpack 'fix-boost-bug
1199 (lambda _
1200 (substitute* "source/score/voiceutils.cpp"
1201 (("boost::rational<int> duration\\(4, pos.getDurationType\\(\\)\\);")
1202 "boost::rational<int> duration(4, static_cast<int>(pos.getDurationType()));"))
1203 #t))
1204 ;; Fix build with Qt 5.11.
1205 (add-after 'unpack 'add-missing-headers
1206 (lambda _
1207 (substitute* (find-files "source/dialogs/" "\\.h$")
1208 (("#include <QDialog>" m)
1209 (string-append m "\n#include <QButtonGroup>")))
1210 (substitute* "source/widgets/mixer/mixeritem.h"
1211 (("#include <QWidget>" m)
1212 (string-append m "\n#include <QStyle>")))
1213 (substitute* "source/widgets/playback/playbackwidget.h"
1214 (("#include <QWidget>" m)
1215 (string-append m "\n#include <QButtonGroup>\n#include <QAction>")))
1216 #t))
1217 (add-before 'configure 'remove-third-party-libs
1218 (lambda* (#:key inputs #:allow-other-keys)
1219 ;; Link with required static libraries, because we're not
1220 ;; using the bundled version of withershins.
1221 ;; Also add pthread for fixing a linker error.
1222 (substitute* "source/build/CMakeLists.txt"
1223 (("withershins" line)
1224 (string-append line "\n"
1225 (assoc-ref inputs "binutils")
1226 "/lib/libbfd.a\n"
1227 (assoc-ref inputs "libiberty")
1228 "/lib/libiberty.a\n"
1229 "dl\n"
1230 "pthread\n"
1231 "z\n")))
1232 #t)))))
1233 (inputs
1234 `(("boost" ,boost)
1235 ("alsa-lib" ,alsa-lib)
1236 ("qtbase" ,qtbase)
1237 ("withershins" ,withershins)
1238 ("libiberty" ,libiberty) ;for withershins
1239 ("binutils" ,binutils) ;for -lbfd and -liberty (for withershins)
1240 ("timidity" ,timidity++)
1241 ("pugixml" ,pugixml)
1242 ("rtmidi" ,rtmidi)
1243 ("rapidjson" ,rapidjson)
1244 ("zlib" ,zlib)))
1245 (native-inputs
1246 `(("catch" ,catch-framework)
1247 ("pkg-config" ,pkg-config)))
1248 (home-page "http://powertabs.net")
1249 (synopsis "Guitar tablature editor")
1250 (description
1251 "Power Tab Editor 2.0 is the successor to the famous original Power Tab
1252 Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
1253 (license license:gpl3+)))
1254
1255 (define-public jalv-select
1256 (package
1257 (name "jalv-select")
1258 (version "0.8")
1259 (source (origin
1260 (method git-fetch)
1261 (uri (git-reference
1262 (url "https://github.com/brummer10/jalv_select.git")
1263 (commit (string-append "V" version))))
1264 (file-name (git-file-name name version))
1265 (sha256
1266 (base32
1267 "0gqh768sbvn9ffyx1vqg9i57py9x9v4l65bk6wjsvgga4d7m83k1"))))
1268 (build-system gnu-build-system)
1269 (arguments
1270 `(#:make-flags
1271 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1272 #:phases
1273 (modify-phases %standard-phases
1274 (delete 'configure)
1275 (add-after 'unpack 'ignore-PATH
1276 (lambda* (#:key inputs #:allow-other-keys)
1277 (substitute* "jalv.select.cpp"
1278 (("echo \\$PATH.*tr ':'.*xargs ls")
1279 (string-append "ls -1 " (assoc-ref inputs "jalv") "/bin")))
1280 (substitute* "jalv.select.h"
1281 (("gtkmm.h") "gtkmm-2.4/gtkmm.h"))
1282 #t))
1283 (add-before 'reset-gzip-timestamps 'make-manpages-writable
1284 (lambda* (#:key outputs #:allow-other-keys)
1285 (for-each make-file-writable
1286 (find-files (string-append (assoc-ref outputs "out")
1287 "/share/man")
1288 ".*\\.gz$"))
1289 #t)))))
1290 (inputs
1291 `(("lilv" ,lilv)
1292 ("lv2" ,lv2)
1293 ("jalv" ,jalv)
1294 ("gtkmm" ,gtkmm-2)))
1295 (native-inputs
1296 `(("pkg-config" ,pkg-config)))
1297 (home-page "https://github.com/brummer10/jalv_select")
1298 (synopsis "GUI to select LV2 plugins and run them with jalv")
1299 (description
1300 "The jalv.select package provides a graphical user interface allowing
1301 users to select LV2 plugins and run them with jalv.")
1302 (license license:public-domain)))
1303
1304 (define-public synthv1
1305 (package
1306 (name "synthv1")
1307 (version "0.9.2")
1308 (source (origin
1309 (method url-fetch)
1310 (uri
1311 (string-append "mirror://sourceforge/synthv1/synthv1/" version
1312 "/synthv1-" version ".tar.gz"))
1313 (sha256
1314 (base32
1315 "1r60l286n8y4a4rrlnbc3h7xk4s2pvqykvskls89prxg0lkpz7kl"))))
1316 (build-system gnu-build-system)
1317 (arguments
1318 `(#:tests? #f ; there are no tests
1319 #:configure-flags
1320 '("CXXFLAGS=-std=gnu++11")))
1321 (inputs
1322 `(("jack" ,jack-1)
1323 ("lv2" ,lv2)
1324 ("alsa-lib" ,alsa-lib)
1325 ("non-session-manager" ,non-session-manager)
1326 ("liblo" ,liblo)
1327 ("qtbase" ,qtbase)
1328 ("qttools" ,qttools)))
1329 (native-inputs
1330 `(("pkg-config" ,pkg-config)))
1331 (home-page "https://synthv1.sourceforge.io")
1332 (synopsis "Polyphonic subtractive synthesizer")
1333 (description
1334 "Synthv1 is an old-school subtractive polyphonic synthesizer with four
1335 oscillators and stereo effects.")
1336 (license license:gpl2+)))
1337
1338 (define-public drumkv1
1339 (package
1340 (name "drumkv1")
1341 (version "0.9.2")
1342 (source (origin
1343 (method url-fetch)
1344 (uri
1345 (string-append "mirror://sourceforge/drumkv1/drumkv1/" version
1346 "/drumkv1-" version ".tar.gz"))
1347 (sha256
1348 (base32
1349 "1z9l43z91d01b9rzam2cj9qmmg6s5y65fjvb83ms4iaa1p0mnwrn"))))
1350 (build-system gnu-build-system)
1351 (arguments
1352 `(#:tests? #f ; there are no tests
1353 #:configure-flags
1354 '("CXXFLAGS=-std=gnu++11")))
1355 (inputs
1356 `(("jack" ,jack-1)
1357 ("lv2" ,lv2)
1358 ("libsndfile" ,libsndfile)
1359 ("alsa-lib" ,alsa-lib)
1360 ("non-session-manager" ,non-session-manager)
1361 ("liblo" ,liblo)
1362 ("qtbase" ,qtbase)))
1363 (native-inputs
1364 `(("pkg-config" ,pkg-config)
1365 ("qttools" ,qttools)))
1366 (home-page "https://drumkv1.sourceforge.io")
1367 (synopsis "Drum-kit sampler synthesizer with stereo effects")
1368 (description
1369 "Drumkv1 is an old-school drum-kit sampler synthesizer with stereo
1370 effects.")
1371 (license license:gpl2+)))
1372
1373 (define-public samplv1
1374 (package
1375 (name "samplv1")
1376 (version "0.9.2")
1377 (source (origin
1378 (method url-fetch)
1379 (uri
1380 (string-append "mirror://sourceforge/samplv1/samplv1/" version
1381 "/samplv1-" version ".tar.gz"))
1382 (sha256
1383 (base32
1384 "0rfcp4v971qfhw1hb43hw12wlxmg2q13l0m1h93pyfi5l4mfjkds"))))
1385 (build-system gnu-build-system)
1386 (arguments
1387 `(#:tests? #f ; there are no tests
1388 #:configure-flags
1389 '("CXXFLAGS=-std=gnu++11")))
1390 (inputs
1391 `(("jack" ,jack-1)
1392 ("lv2" ,lv2)
1393 ("libsndfile" ,libsndfile)
1394 ("alsa-lib" ,alsa-lib)
1395 ("non-session-manager" ,non-session-manager)
1396 ("liblo" ,liblo)
1397 ("qtbase" ,qtbase)))
1398 (native-inputs
1399 `(("pkg-config" ,pkg-config)
1400 ("qttools" ,qttools)))
1401 (home-page "https://samplv1.sourceforge.io")
1402 (synopsis "Polyphonic sampler synthesizer with stereo effects")
1403 (description
1404 "Samplv1 is an old-school polyphonic sampler synthesizer with stereo
1405 effects.")
1406 (license license:gpl2+)))
1407
1408 (define-public padthv1
1409 (package
1410 (name "padthv1")
1411 (version "0.9.2")
1412 (source (origin
1413 (method url-fetch)
1414 (uri
1415 (string-append "mirror://sourceforge/padthv1/padthv1/" version
1416 "/padthv1-" version ".tar.gz"))
1417 (sha256
1418 (base32
1419 "1alfl0l5qdll0w5lwhrwzj5dina1big1zmjg5imi9h06dzhz51xl"))))
1420 (build-system gnu-build-system)
1421 (arguments
1422 `(#:tests? #f ; there are no tests
1423 #:configure-flags
1424 '("CXXFLAGS=-std=gnu++11")))
1425 (inputs
1426 `(("jack" ,jack-1)
1427 ("lv2" ,lv2)
1428 ("alsa-lib" ,alsa-lib)
1429 ("non-session-manager" ,non-session-manager)
1430 ("liblo" ,liblo)
1431 ("fftw" ,fftw)
1432 ("qtbase" ,qtbase)))
1433 (native-inputs
1434 `(("pkg-config" ,pkg-config)
1435 ("qttools" ,qttools)))
1436 (home-page "https://padthv1.sourceforge.io")
1437 (synopsis "Polyphonic additive synthesizer")
1438 (description
1439 "Padthv1 is an old-school polyphonic additive synthesizer with stereo
1440 effects. Padthv1 is based on the PADsynth algorithm by Paul Nasca, as a
1441 special variant of additive synthesis.")
1442 (license license:gpl2+)))
1443
1444 (define-public amsynth
1445 (package
1446 (name "amsynth")
1447 (version "1.7.1")
1448 (source
1449 (origin
1450 (method url-fetch)
1451 (uri (string-append "https://github.com/amsynth/amsynth/releases/"
1452 "download/release-" version
1453 "/amsynth-" version ".tar.bz2"))
1454 (sha256
1455 (base32
1456 "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
1457 (build-system gnu-build-system)
1458 (arguments
1459 `(#:phases
1460 (modify-phases %standard-phases
1461 (add-before 'configure 'set-flags
1462 (lambda _
1463 ;; Compile with C++11, required by gtkmm.
1464 (setenv "CXXFLAGS" "-std=c++11")
1465 #t)))))
1466 (inputs
1467 `(("alsa-lib" ,alsa-lib)
1468 ("jack" ,jack-1)
1469 ("lv2" ,lv2)
1470 ("lash" ,lash)
1471 ("libsndfile" ,libsndfile)
1472 ("gtk+" ,gtk+-2)
1473 ("gtkmm" ,gtkmm-2)))
1474 (native-inputs
1475 `(("pkg-config" ,pkg-config)
1476 ("intltool" ,intltool)))
1477 (home-page "http://amsynth.github.io")
1478 (synopsis "Analog modeling synthesizer")
1479 (description
1480 "amsynth is an easy-to-use software synthesizer with a classic
1481 subtractive synthesizer topology. Its features include: dual
1482 oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct
1483 resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato
1484 keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO
1485 which can modulate the oscillators, filter, and amplitude; distortion and
1486 reverb effects.")
1487 (license license:gpl2+)))
1488
1489 (define-public setbfree
1490 (package
1491 (name "setbfree")
1492 (version "0.8.7")
1493 (source (origin
1494 (method git-fetch)
1495 (uri (git-reference
1496 (url "https://github.com/pantherb/setBfree")
1497 (commit (string-append "v" version))))
1498 (file-name (git-file-name name version))
1499 (sha256
1500 (base32
1501 "0r2i8cp0gfzqp6scrxwwf7pn7lk2j9kmf8cx7bqjvgfyn251dw3j"))))
1502 (build-system gnu-build-system)
1503 (arguments
1504 `(#:tests? #f ; no "check" target
1505 #:make-flags
1506 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1507 (string-append "FONTFILE="
1508 (assoc-ref %build-inputs "font-bitstream-vera")
1509 "/share/fonts/truetype/VeraBd.ttf")
1510 ;; Disable unsupported optimization flags on non-x86
1511 ,@(let ((system (or (%current-target-system)
1512 (%current-system))))
1513 (if (or (string-prefix? "x86_64" system)
1514 (string-prefix? "i686" system))
1515 '()
1516 '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
1517 #:phases
1518 (modify-phases %standard-phases
1519 (add-before 'build 'set-CC-variable
1520 (lambda _ (setenv "CC" "gcc") #t))
1521 (delete 'configure))))
1522 (inputs
1523 `(("jack" ,jack-1)
1524 ("lv2" ,lv2)
1525 ("zita-convolver" ,zita-convolver)
1526 ("glu" ,glu)
1527 ("ftgl" ,ftgl)
1528 ("font-bitstream-vera" ,font-bitstream-vera)))
1529 (native-inputs
1530 `(("help2man" ,help2man)
1531 ("pkg-config" ,pkg-config)))
1532 (home-page "http://setbfree.org")
1533 (synopsis "Tonewheel organ")
1534 (description
1535 "setBfree is a MIDI-controlled, software synthesizer designed to imitate
1536 the sound and properties of the electromechanical organs and sound
1537 modification devices that brought world-wide fame to the names and products of
1538 Laurens Hammond and Don Leslie.")
1539 (license license:gpl2+)))
1540
1541 (define-public beast
1542 (package
1543 (name "beast")
1544 (version "0.10.0")
1545 (source (origin
1546 (method url-fetch)
1547 (uri (string-append "https://testbit.eu/pub/dists/beast/beast-"
1548 version ".tar.xz"))
1549 (sha256
1550 (base32
1551 "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn"))))
1552 (build-system gnu-build-system)
1553 (arguments
1554 '(#:parallel-build? #f)) ; Race conditions cause build failures
1555 (inputs
1556 `(("rapicorn" ,rapicorn)
1557 ("guile" ,guile-1.8)
1558 ("python" ,python-2)
1559 ("libgnomecanvas" ,libgnomecanvas)
1560 ("libogg" ,libogg)
1561 ("libmad" ,libmad)
1562 ("flac" ,flac)
1563 ("alsa-lib" ,alsa-lib)
1564 ("libvorbis" ,libvorbis)
1565 ("gettext" ,gettext-minimal)))
1566 (native-inputs
1567 `(("pkg-config" ,pkg-config)
1568 ("glib:bin" ,glib "bin")
1569 ("cython" ,python2-cython)
1570 ("perl" ,perl)
1571 ("perl-xml-parser" ,perl-xml-parser)))
1572 (home-page "https://testbit.eu/wiki/Beast_Home")
1573 (synopsis "Music composition and modular synthesis environment")
1574 (description
1575 "Beast is a music composition and modular synthesis application. It
1576 supports a wide range of standards in the field, such as MIDI, various audio
1577 file formats and LADSPA modules. It allows for multitrack editing, real-time
1578 synthesis, 32bit audio rendering, precise timing down to sample granularity,
1579 on-demand and partial loading of wave files, on the fly decoding, stereo
1580 mixing, FFT scopes, MIDI automation and full scriptability in Scheme.")
1581 (license license:gpl3+)))
1582
1583 (define-public bristol
1584 (package
1585 (name "bristol")
1586 (version "0.60.11")
1587 (source (origin
1588 (method url-fetch)
1589 (uri (string-append "mirror://sourceforge/bristol/bristol/"
1590 (version-major+minor version)
1591 "/bristol-" version ".tar.gz"))
1592 (sha256
1593 (base32
1594 "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
1595 (build-system gnu-build-system)
1596 (arguments
1597 `(#:phases
1598 (modify-phases %standard-phases
1599 (add-after 'unpack 'remove-sse-flags
1600 (lambda* (#:key system #:allow-other-keys)
1601 (when (not (or (string-prefix? "x86_64" system)
1602 (string-prefix? "i686" system)))
1603 (substitute* "bristol/Makefile.in"
1604 (("-msse -mfpmath=sse") "")))
1605 #t))
1606 ;; alsa-lib 1.1.x no longer provides iatomic.h. That's okay because
1607 ;; bristol actually doesn't use it.
1608 (add-after 'unpack 'do-not-use-alsa-iatomic
1609 (lambda _
1610 (substitute* "libbristolaudio/audioEngineJack.c"
1611 (("#include <alsa/iatomic.h>") ""))
1612 #t))
1613 ;; We know that Bristol has been linked with JACK and we don't have
1614 ;; ldd, so we can just skip this check.
1615 (add-after 'unpack 'do-not-grep-for-jack
1616 (lambda _
1617 (substitute* "bin/startBristol.in"
1618 (("ldd `which bristol` | grep jack") "echo guix"))
1619 #t)))))
1620 (inputs
1621 `(("alsa-lib" ,alsa-lib)
1622 ("jack" ,jack-1)
1623 ("liblo" ,liblo)
1624 ("libx11" ,libx11)))
1625 (native-inputs
1626 `(("pkg-config" ,pkg-config)))
1627 (home-page "http://bristol.sourceforge.net/")
1628 (synopsis "Synthesizer emulator")
1629 (description
1630 "Bristol is an emulation package for a number of different 'classic'
1631 synthesizers including additive and subtractive and a few organs. The
1632 application consists of the engine, which is called bristol, and its own GUI
1633 library called brighton that represents all the emulations. There are
1634 currently more than twenty different emulations; each does sound different
1635 although the author maintains that the quality and accuracy of each emulation
1636 is subjective.")
1637 (license license:gpl3+)))
1638
1639 (define-public tuxguitar
1640 (package
1641 (name "tuxguitar")
1642 (version "1.5.2")
1643 (source (origin
1644 (method url-fetch)
1645 (uri (string-append
1646 "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-"
1647 version "/tuxguitar-" version "-src.tar.gz"))
1648 (sha256
1649 (base32
1650 "10arfpgm2pw7mn922klklzn05lw5ifqx070shdrar81afmkfbbd9"))))
1651 (build-system ant-build-system)
1652 (arguments
1653 `(#:build-target "build"
1654 #:jdk ,icedtea-8
1655 #:tests? #f ; no tests
1656 #:phases
1657 (modify-phases %standard-phases
1658 (add-after 'unpack 'enter-dir
1659 (lambda _ (chdir "TuxGuitar-lib") #t))
1660 (add-after 'build 'build-libraries
1661 (lambda* (#:key inputs outputs #:allow-other-keys)
1662 (let* ((initial-classpath (getenv "CLASSPATH"))
1663 (build-dir (lambda (dir)
1664 (chdir "..")
1665 (setenv "CLASSPATH"
1666 (string-join (cons initial-classpath
1667 (find-files (getcwd) "\\.jar$"))
1668 ":"))
1669 (chdir dir)
1670 (if (file-exists? "build.xml")
1671 ((assoc-ref %standard-phases 'build)
1672 #:build-target "build")
1673 (begin
1674 ;; Generate default build.xml.
1675 ((@@ (guix build ant-build-system) default-build.xml)
1676 (string-append (string-downcase dir) ".jar")
1677 (string-append (assoc-ref outputs "out")
1678 "/share/java"))
1679 ((assoc-ref %standard-phases 'build)))))))
1680 (map build-dir '("TuxGuitar-editor-utils"
1681 "TuxGuitar-ui-toolkit"
1682 "TuxGuitar-ui-toolkit-swt"
1683 "TuxGuitar-awt-graphics")))))
1684 (add-after 'build-libraries 'build-application
1685 (lambda _
1686 (chdir "../TuxGuitar")
1687 ((assoc-ref %standard-phases 'build)
1688 #:build-target "build")))
1689 (replace 'install
1690 (lambda* (#:key inputs outputs #:allow-other-keys)
1691 (let* ((out (assoc-ref outputs "out"))
1692 (bin (string-append out "/bin"))
1693 (share (string-append out "/share"))
1694 (lib (string-append share "/java"))
1695 (swt (assoc-ref inputs "java-swt")))
1696 (mkdir-p bin)
1697 ;; Install all jars.
1698 (for-each (lambda (file)
1699 (install-file file lib))
1700 (find-files ".." "\\.jar$"))
1701
1702 ;; Install all resources.
1703 (copy-recursively "share" share)
1704
1705 ;; Create wrapper.
1706 (call-with-output-file (string-append bin "/tuxguitar")
1707 (lambda (port)
1708 (let ((classpath (string-join (append (find-files lib "\\.jar$")
1709 (find-files swt "\\.jar$"))
1710 ":")))
1711 (format
1712 port
1713 (string-append "#!/bin/sh\n"
1714 (which "java")
1715 " -cp " classpath
1716 " -Dtuxguitar.home.path=" out
1717 " -Dtuxguitar.share.path=" out "/share"
1718 " -Dswt.library.path=" swt "/lib"
1719 " org.herac.tuxguitar.app.TGMainSingleton"
1720 " \"$1\" \"$2\"")))))
1721 (chmod (string-append bin "/tuxguitar") #o555)
1722 #t))))))
1723 (inputs
1724 `(("java-swt" ,java-swt)))
1725 (home-page "http://tuxguitar.com.ar/")
1726 (synopsis "Multitrack tablature editor and player")
1727 (description
1728 "TuxGuitar is a guitar tablature editor with player support through midi.
1729 It can display scores and multitrack tabs. TuxGuitar provides various
1730 additional features, including autoscrolling while playing, note duration
1731 management, bend/slide/vibrato/hammer-on/pull-off effects, support for
1732 tuplets, time signature management, tempo management, gp3/gp4/gp5 import and
1733 export.")
1734 (license license:lgpl2.1+)))
1735
1736 (define-public pd
1737 (package
1738 (name "pd")
1739 (version "0.49-0")
1740 (source (origin
1741 (method url-fetch)
1742 (uri
1743 (string-append "http://msp.ucsd.edu/Software/pd-"
1744 version ".src.tar.gz"))
1745 (sha256
1746 (base32
1747 "18rzqbpgnnvyslap7k0ly87aw1bbxkb0rk5agpr423ibs9slxq6j"))))
1748 (build-system gnu-build-system)
1749 (arguments
1750 `(#:tests? #f ; no "check" target
1751 #:configure-flags
1752 (list
1753 "--enable-jack"
1754 (string-append "--with-wish=" (string-append
1755 (assoc-ref %build-inputs "tk")
1756 "/bin/wish8.6")))
1757 #:phases
1758 (modify-phases %standard-phases
1759 (add-before 'configure 'fix-with-path
1760 (lambda _
1761 (substitute* "tcl/pd-gui.tcl"
1762 (("exec wish ") (string-append "exec " (which "wish8.6") " ")))
1763 #t)))))
1764 (native-inputs
1765 `(("autoconf" ,autoconf)
1766 ("automake" ,automake)
1767 ("libtool" ,libtool)
1768 ("gettext" ,gettext-minimal)
1769 ("pkg-config" ,pkg-config)))
1770 (inputs
1771 `(("tk" ,tk)
1772 ("alsa-lib" ,alsa-lib)
1773 ("jack" ,jack-1)))
1774 (home-page "http://puredata.info")
1775 (synopsis "Visual programming language for artistic performances")
1776 (description
1777 "Pure Data (aka Pd) is a visual programming language. Pd enables
1778 musicians, visual artists, performers, researchers, and developers to create
1779 software graphically, without writing lines of code. Pd is used to process
1780 and generate sound, video, 2D/3D graphics, and interface sensors, input
1781 devices, and MIDI. Pd can easily work over local and remote networks to
1782 integrate wearable technology, motor systems, lighting rigs, and other
1783 equipment. Pd is suitable for learning basic multimedia processing and visual
1784 programming methods as well as for realizing complex systems for large-scale
1785 projects.")
1786 (license license:bsd-3)))
1787
1788 (define-public libpd
1789 (package
1790 (name "libpd")
1791 (version "0.11.0")
1792 (source (origin
1793 (method git-fetch)
1794 (uri (git-reference
1795 (url "https://github.com/libpd/libpd.git")
1796 (commit version)
1797 (recursive? #t))) ; for the 'pure-data' submodule
1798 (file-name (string-append name "-" version "-checkout"))
1799 (sha256
1800 (base32
1801 "1bcg1d9iyf9n37hwwphmih0c8rd1xcqykil5z1cax6xfs76552nk"))))
1802 (build-system gnu-build-system)
1803 (arguments
1804 '(#:tests? #f ; no tests
1805 #:make-flags '("CC=gcc")
1806 #:phases
1807 (modify-phases %standard-phases
1808 (delete 'configure) ; no configure script
1809 (replace 'install
1810 (lambda* (#:key outputs #:allow-other-keys)
1811 (let ((out (assoc-ref outputs "out")))
1812 (invoke "make" "install"
1813 (string-append "prefix=" out)
1814 ;; XXX: Fix the last 2 lines of 'install' target.
1815 "LIBPD_IMPLIB=NO"
1816 "LIBPD_DEF=NO")))))))
1817 (home-page "http://libpd.cc/")
1818 (synopsis "Pure Data as an embeddable audio synthesis library")
1819 (description
1820 "Libpd provides Pure Data as an embeddable audio synthesis library. Its
1821 main purpose is to liberate raw audio rendering from audio and MIDI drivers.")
1822 (license license:bsd-3)))
1823
1824 (define-public portmidi
1825 (package
1826 (name "portmidi")
1827 (version "217")
1828 (source (origin
1829 (method url-fetch)
1830 (uri (string-append "mirror://sourceforge/portmedia/portmidi/"
1831 version "/portmidi-src-" version ".zip"))
1832 (sha256
1833 (base32
1834 "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88"))
1835 (patches (list (search-patch "portmidi-modular-build.patch")))))
1836 (build-system cmake-build-system)
1837 (arguments
1838 `(#:tests? #f ; tests cannot be linked
1839 #:build-type "Release" ; needed to have PMALSA set
1840 #:configure-flags
1841 (list "-DPORTMIDI_ENABLE_JAVA=Off"
1842 "-DPORTMIDI_ENABLE_TEST=Off") ; tests fail linking
1843 #:phases
1844 (modify-phases %standard-phases
1845 ;; Some packages, e.g., MuseScore, expect "libporttime.so" instead of
1846 ;; "libportmidi.so". Distributions get away with it by creating an
1847 ;; appropriate symlink.
1848 (add-after 'install 'add-porttime
1849 (lambda* (#:key outputs #:allow-other-keys)
1850 (let* ((out (assoc-ref outputs "out"))
1851 (lib (string-append out "/lib")))
1852 (with-directory-excursion lib
1853 (symlink "libportmidi.so" "libporttime.so")))
1854 #t)))))
1855 (inputs
1856 `(("alsa-lib" ,alsa-lib)))
1857 (native-inputs
1858 `(("unzip" ,unzip)))
1859 (home-page "http://portmedia.sourceforge.net/portmidi/")
1860 (synopsis "Library for MIDI I/O")
1861 (description
1862 "PortMidi is a library supporting real-time input and output of MIDI data
1863 using a system-independent interface.")
1864 (license license:expat)))
1865
1866 (define-public portmidi-for-extempore
1867 (package (inherit portmidi)
1868 (name "portmidi-for-extempore")
1869 (version "217")
1870 (source (origin
1871 (method git-fetch)
1872 (uri (git-reference
1873 (url "https://github.com/extemporelang/portmidi.git")
1874 (commit version)))
1875 (file-name (git-file-name name version))
1876 (sha256
1877 (base32
1878 "1inriyrjf7xx2b7r54x0vmf9ngyqgr7g5060c22bwkbsgg53apzv"))))
1879 (build-system cmake-build-system)
1880 (arguments `(#:tests? #f)) ; no tests
1881 (native-inputs '())
1882 ;; Extempore refuses to build on architectures other than x86_64
1883 (supported-systems '("x86_64-linux"))
1884 (home-page "https://github.com/extemporelang/portmidi/")))
1885
1886 (define-public python-pyportmidi
1887 (package
1888 (name "python-pyportmidi")
1889 (version (package-version portmidi))
1890 (source (package-source portmidi))
1891 (build-system python-build-system)
1892 (arguments
1893 `(#:tests? #f ; no tests included
1894 #:phases
1895 (modify-phases %standard-phases
1896 (add-after 'unpack 'enter-dir
1897 (lambda _ (chdir "pm_python") #t))
1898 (add-after 'enter-dir 'fix-setup.py
1899 (lambda _
1900 (substitute* "setup.py"
1901 ;; Use Python 3 syntax
1902 (("print (\".*\")" _ text)
1903 (string-append "print(" text ")\n"))
1904 ;; TODO.txt and CHANGES.txt don't exist
1905 (("CHANGES =.*") "CHANGES = \"\"\n")
1906 (("TODO =.*") "TODO = \"\"\n"))
1907 #t)))))
1908 (inputs
1909 `(("portmidi" ,portmidi)
1910 ("alsa-lib" ,alsa-lib)))
1911 (native-inputs
1912 `(("python-cython" ,python-cython)
1913 ("unzip" ,unzip)))
1914 (home-page "http://portmedia.sourceforge.net/portmidi/")
1915 (synopsis "Python bindings to PortMidi")
1916 (description
1917 "This package provides Python bindings to the PortMidi library.")
1918 (license license:expat)))
1919
1920 (define-public frescobaldi
1921 (package
1922 (name "frescobaldi")
1923 (version "3.0.0")
1924 (source (origin
1925 (method url-fetch)
1926 (uri (string-append
1927 "https://github.com/wbsoft/frescobaldi/releases/download/v"
1928 version "/frescobaldi-" version ".tar.gz"))
1929 (sha256
1930 (base32
1931 "15cqhbjbjikr7ljgiq56bz2gxrr38j8p0f78p2vhyzydaviy9a2z"))))
1932 (build-system python-build-system)
1933 (arguments `(#:tests? #f)) ; no tests included
1934 (inputs
1935 `(("lilypond" ,lilypond)
1936 ("portmidi" ,portmidi)
1937 ("python-pyqt" ,python-pyqt)
1938 ("python-ly" ,python-ly)
1939 ("python-pyportmidi" ,python-pyportmidi)
1940 ("poppler" ,poppler)
1941 ("python-poppler-qt5" ,python-poppler-qt5)
1942 ("python-sip" ,python-sip)))
1943 (home-page "http://www.frescobaldi.org/")
1944 (synopsis "LilyPond sheet music text editor")
1945 (description
1946 "Frescobaldi is a LilyPond sheet music text editor with syntax
1947 highlighting and automatic completion. Among other things, it can render
1948 scores next to the source, can capture input from MIDI or read MusicXML and
1949 ABC files, has a MIDI player for proof-listening, and includes a documentation
1950 browser.")
1951 (license license:gpl2+)))
1952
1953 (define-public drumstick
1954 (package
1955 (name "drumstick")
1956 (version "1.1.1")
1957 (source (origin
1958 (method url-fetch)
1959 (uri (string-append "mirror://sourceforge/drumstick/"
1960 version "/drumstick-" version ".tar.bz2"))
1961 (sha256
1962 (base32
1963 "0avwxr6n9ra7narxc5lmkhdqi8ix10gmif8rpd06wp4g9iv46xrn"))))
1964 (build-system cmake-build-system)
1965 (arguments
1966 `(#:tests? #f ; no test target
1967 #:configure-flags '("-DLIB_SUFFIX=")
1968 #:phases
1969 (modify-phases %standard-phases
1970 (add-before 'configure 'fix-docbook
1971 (lambda* (#:key inputs #:allow-other-keys)
1972 (substitute* "cmake_admin/CreateManpages.cmake"
1973 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1974 (string-append (assoc-ref inputs "docbook-xsl")
1975 "/xml/xsl/docbook-xsl-"
1976 ,(package-version docbook-xsl)
1977 "/manpages/docbook.xsl")))
1978 #t)))))
1979 (inputs
1980 `(("qtbase" ,qtbase)
1981 ("qtsvg" ,qtsvg)
1982 ("alsa-lib" ,alsa-lib)))
1983 (native-inputs
1984 `(("pkg-config" ,pkg-config)
1985 ("libxslt" ,libxslt) ; for xsltproc
1986 ("docbook-xsl" ,docbook-xsl)
1987 ("doxygen" ,doxygen)))
1988 (home-page "http://drumstick.sourceforge.net/")
1989 (synopsis "C++ MIDI library")
1990 (description
1991 "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It
1992 includes a C++ wrapper around the ALSA library sequencer interface. A
1993 complementary library provides classes for processing SMF (Standard MIDI
1994 files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A
1995 multiplatform realtime MIDI I/O library is also provided with various output
1996 backends, including ALSA, OSS, Network and FluidSynth.")
1997 (license license:gpl2+)))
1998
1999 (define-public zynaddsubfx
2000 (package
2001 (name "zynaddsubfx")
2002 (version "3.0.3")
2003 (source (origin
2004 (method url-fetch)
2005 (uri (string-append
2006 "mirror://sourceforge/zynaddsubfx/zynaddsubfx/"
2007 version "/zynaddsubfx-" version ".tar.bz2"))
2008 (sha256
2009 (base32
2010 "1hfpiqdm337gl4ynkmmp2qss2m5z8mzqzjrbiyg6w1v4js7l9phi"))))
2011 (build-system cmake-build-system)
2012 (arguments
2013 `(#:phases
2014 (modify-phases %standard-phases
2015 ;; Move SSE compiler optimization flags from generic target to
2016 ;; athlon64 and core2 targets, because otherwise the build would fail
2017 ;; on non-Intel machines.
2018 (add-after 'unpack 'remove-sse-flags-from-generic-target
2019 (lambda _
2020 (substitute* "src/CMakeLists.txt"
2021 (("-msse -msse2 -mfpmath=sse") "")
2022 (("-march=(athlon64|core2)" flag)
2023 (string-append flag " -msse -msse2 -mfpmath=sse")))
2024 #t)))))
2025 (inputs
2026 `(("liblo" ,liblo)
2027 ("ntk" ,ntk)
2028 ("mesa" ,mesa)
2029 ("alsa-lib" ,alsa-lib)
2030 ("jack" ,jack-1)
2031 ("fftw" ,fftw)
2032 ("minixml" ,minixml)
2033 ("libxpm" ,libxpm)
2034 ("zlib" ,zlib)))
2035 (native-inputs
2036 `(("pkg-config" ,pkg-config)))
2037 (home-page "http://zynaddsubfx.sf.net/")
2038 (synopsis "Software synthesizer")
2039 (description
2040 "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
2041 three synthesizer engines, multitimbral and polyphonic synths, microtonal
2042 capabilities, custom envelopes, effects, etc.")
2043 (license license:gpl2)))
2044
2045 (define-public yoshimi
2046 (package
2047 (name "yoshimi")
2048 (version "1.5.9")
2049 (source (origin
2050 (method url-fetch)
2051 (uri (string-append "mirror://sourceforge/yoshimi/"
2052 (version-major+minor version)
2053 "/yoshimi-" version ".tar.bz2"))
2054 (sha256
2055 (base32
2056 "1nqwxwq6814m860zrh33r85vdyi2bgkvjg5372h3ngcdmxnb7wr0"))))
2057 (build-system cmake-build-system)
2058 (arguments
2059 `(#:tests? #f ; there are no tests
2060 #:configure-flags
2061 (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR="
2062 (assoc-ref %outputs "out") "/share"))
2063 #:phases
2064 (modify-phases %standard-phases
2065 (add-before 'configure 'enter-dir
2066 (lambda _ (chdir "src") #t))
2067 ;; Move SSE compiler optimization flags from generic target to
2068 ;; athlon64 and core2 targets, because otherwise the build would fail
2069 ;; on non-Intel machines.
2070 (add-after 'unpack 'remove-sse-flags-from-generic-target
2071 (lambda _
2072 (substitute* "src/CMakeLists.txt"
2073 (("-msse -msse2 -mfpmath=sse") "")
2074 (("-march=(athlon64|core2)" flag)
2075 (string-append flag " -msse -msse2 -mfpmath=sse")))
2076 #t)))))
2077 (inputs
2078 `(("boost" ,boost)
2079 ("fftwf" ,fftwf)
2080 ("alsa-lib" ,alsa-lib)
2081 ("jack" ,jack-1)
2082 ("fontconfig" ,fontconfig)
2083 ("minixml" ,minixml)
2084 ("mesa" ,mesa)
2085 ("fltk" ,fltk)
2086 ("lv2" ,lv2)
2087 ("readline" ,readline)
2088 ("ncurses" ,ncurses)
2089 ("cairo" ,cairo)
2090 ("zlib" ,zlib)))
2091 (native-inputs
2092 `(("pkg-config" ,pkg-config)))
2093 (home-page "http://yoshimi.sourceforge.net/")
2094 (synopsis "Multi-paradigm software synthesizer")
2095 (description
2096 "Yoshimi is a fork of ZynAddSubFX, a feature-heavy real-time software
2097 synthesizer. It offers three synthesizer engines, multitimbral and polyphonic
2098 synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi
2099 improves on support for JACK features, such as JACK MIDI.")
2100 (license license:gpl2)))
2101
2102 (define-public libgig
2103 (package
2104 (name "libgig")
2105 (version "4.1.0")
2106 (source (origin
2107 (method url-fetch)
2108 (uri (string-append "http://download.linuxsampler.org/packages/"
2109 "libgig-" version ".tar.bz2"))
2110 (sha256
2111 (base32
2112 "02xx6bqxzgkvrawwnzrnxx1ypk244q4kpwfd58266f9ji8kq18h6"))))
2113 (build-system gnu-build-system)
2114 (inputs
2115 `(("libuuid" ,util-linux)
2116 ("libsndfile" ,libsndfile)))
2117 (native-inputs
2118 `(("pkg-config" ,pkg-config)))
2119 (home-page "http://linuxsampler.org/libgig/")
2120 (synopsis "C++ library for working with Gigasampler (.gig) files")
2121 (description
2122 "Libgig is a C++ library for loading, modifying existing and creating new
2123 Gigasampler (.gig) files and DLS (Downloadable Sounds) Level 1/2 files, KORG
2124 sample based instruments (.KSF and .KMP files), SoundFont v2 (.sf2) files and
2125 AKAI sampler data. The package includes a couple of command line tools based
2126 on the library.")
2127 ;; The library and tools are released under the GPL, except the AKAI
2128 ;; classes which are released under the LGPL.
2129 (license (list license:gpl2+ license:lgpl2.1+))))
2130
2131 (define-public jack-keyboard
2132 (package
2133 (name "jack-keyboard")
2134 (version "2.5")
2135 (source
2136 (origin
2137 (method url-fetch)
2138 (uri (string-append "mirror://sourceforge/jack-keyboard/jack-keyboard/"
2139 version "/jack-keyboard-" version ".tar.gz"))
2140 (sha256
2141 (base32
2142 "0mzmg8aavybcfdlq2yd9d0vscqd6is5p6jzrgfpfm5j3xdcvh2s3"))))
2143 (build-system gnu-build-system)
2144 (inputs
2145 `(("jack" ,jack-1)
2146 ("lash" ,lash)
2147 ("gtk+" ,gtk+-2)))
2148 (native-inputs
2149 `(("pkg-config" ,pkg-config)))
2150 (home-page "http://jack-keyboard.sourceforge.net/")
2151 (synopsis "Virtual MIDI keyboard")
2152 (description "Jack-keyboard is a virtual MIDI keyboard, a program that
2153 allows you to send JACK MIDI events (i.e. play) using your PC keyboard.")
2154 (license license:bsd-2)))
2155
2156 (define-public jack-capture
2157 (package
2158 (name "jack-capture")
2159 (version "0.9.73")
2160 (source (origin
2161 (method git-fetch)
2162 (uri (git-reference
2163 (url "https://github.com/kmatheussen/jack_capture.git")
2164 (commit version)))
2165 (file-name (string-append name "-" version "-checkout"))
2166 (sha256
2167 (base32
2168 "0jcqky96q8xgya6wqv1p8pj9fkf2wh7ynl67ah7x5bn3basgfclf"))))
2169 (build-system gnu-build-system)
2170 (arguments
2171 `(#:make-flags
2172 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2173 #:tests? #f ; there are none
2174 #:phases
2175 (modify-phases %standard-phases
2176 (delete 'configure))))
2177 (native-inputs
2178 `(("pkg-config" ,pkg-config)
2179 ("which" ,which)))
2180 (inputs
2181 `(("gtk+" ,gtk+-2)
2182 ("jack" ,jack-1)
2183 ("libogg" ,libogg)
2184 ("liblo" ,liblo)
2185 ("lame" ,lame)
2186 ("libsndfile" ,libsndfile)))
2187 (home-page "https://github.com/kmatheussen/jack_capture")
2188 (synopsis "Program for recording sound files with JACK")
2189 (description "This is a program for recording sound files with JACK. It
2190 can connect to any JACK port and record the output into a stereo WAV file.")
2191 (license license:gpl2+)))
2192
2193 (define-public cursynth
2194 (package
2195 (name "cursynth")
2196 (version "1.5")
2197 (source
2198 (origin
2199 (method url-fetch)
2200 (uri (string-append "mirror://gnu/cursynth/cursynth-"
2201 version ".tar.gz"))
2202 (sha256
2203 (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v"))
2204 (patches (search-patches "cursynth-wave-rand.patch"))))
2205 (build-system gnu-build-system)
2206 (native-inputs `(("pkg-config" ,pkg-config)))
2207 ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently
2208 ;; prevents us from using pulseaudio
2209 (inputs `(("ncurses" ,ncurses)
2210 ("alsa" ,alsa-lib)))
2211 (home-page "https://www.gnu.org/software/cursynth/")
2212 (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses")
2213 (description "GNU cursynth is a polyphonic synthesizer that runs
2214 graphically in the terminal. It is built on a full-featured subtractive
2215 synthesis engine. Notes and parameter changes may be entered via MIDI or the
2216 computer's keyboard.")
2217 (license license:gpl3+)))
2218
2219 (define-public aj-snapshot
2220 (package
2221 (name "aj-snapshot")
2222 (version "0.9.8")
2223 (source (origin
2224 (method url-fetch)
2225 (uri (string-append "mirror://sourceforge/aj-snapshot/"
2226 "aj-snapshot-" version ".tar.bz2"))
2227 (sha256
2228 (base32
2229 "0wilky1g2mb88v2z0520s7sw1dsn10iwanc8id5p6z1xsnhg7b6p"))))
2230 (build-system gnu-build-system)
2231 (inputs
2232 `(("minixml" ,minixml)
2233 ("jack" ,jack-1)
2234 ("alsa-lib" ,alsa-lib)))
2235 (native-inputs
2236 `(("pkg-config" ,pkg-config)))
2237 (home-page "http://aj-snapshot.sourceforge.net/")
2238 (synopsis "Snapshot connections between ALSA and JACK clients")
2239 (description "Aj-snapshot is a small program that can be used to make
2240 snapshots of the connections made between JACK and/or ALSA clients. Because
2241 JACK can provide both audio and MIDI support to programs, aj-snapshot can
2242 store both types of connections for JACK. ALSA, on the other hand, only
2243 provides routing facilities for MIDI clients. Aj-snapshot is meant to be used
2244 from the command line.")
2245 (license license:gpl3+)))
2246
2247 (define-public qtractor
2248 (package
2249 (name "qtractor")
2250 (version "0.9.2")
2251 (source (origin
2252 (method url-fetch)
2253 (uri (string-append "http://downloads.sourceforge.net/qtractor/"
2254 "qtractor-" version ".tar.gz"))
2255 (sha256
2256 (base32
2257 "1j3rpvdkw9rw48j4zyfn6rprp01csy4rl6zckcjyx0vh7vaycchr"))))
2258 (build-system gnu-build-system)
2259 (arguments
2260 `(#:tests? #f)) ; no "check" target
2261 (inputs
2262 `(("qt" ,qtbase)
2263 ("qtx11extras" ,qtx11extras)
2264 ("alsa-lib" ,alsa-lib)
2265 ("jack" ,jack-1)
2266 ("libsndfile" ,libsndfile)
2267 ("ladspa" ,ladspa)
2268 ("lv2" ,lv2)
2269 ("lilv" ,lilv)
2270 ("suil" ,suil)
2271 ("libsamplerate" ,libsamplerate)
2272 ("libvorbis" ,libvorbis)
2273 ("libmad" ,libmad)
2274 ("rubberband" ,rubberband)
2275 ("liblo" ,liblo)
2276 ("zlib" ,zlib)))
2277 (native-inputs
2278 `(("pkg-config" ,pkg-config)
2279 ("qttools" ,qttools)))
2280 (home-page "http://qtractor.org/")
2281 (synopsis "Audio/MIDI multi-track sequencer")
2282 (description
2283 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
2284 JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
2285 follows a traditional multi-track tape recorder control paradigm.")
2286 (license license:gpl2+)))
2287
2288 (define-public ams-lv2
2289 ;; Version 1.2.1 built with Python 3.7 raises an error in the waf-script.
2290 ;; Therefore, we take two more commmits than 1.2.1 that introduce an updated
2291 ;; waf-script and fix one error.
2292 (let ((commit "377d166db54a787b48979171c5652d2eb4f1bbb5")
2293 (revision "1"))
2294 (package
2295 (name "ams-lv2")
2296 (version (git-version "1.2.1" revision commit))
2297 (source
2298 (origin
2299 (method git-fetch)
2300 (uri (git-reference
2301 (url "https://github.com/blablack/ams-lv2.git")
2302 (commit commit)))
2303 (file-name (git-file-name name version))
2304 (sha256
2305 (base32
2306 "1ndgxcxjxwidg7436k0nb5clxkyi878k1j999sbbd1gk2fm0kcqm"))))
2307 (build-system waf-build-system)
2308 (arguments
2309 `(#:phases
2310 (modify-phases %standard-phases
2311 (add-after 'unpack 'remove-sse-flags
2312 (lambda* (#:key system #:allow-other-keys)
2313 (unless (or (string-prefix? "x86_64" system)
2314 (string-prefix? "i686" system))
2315 (substitute* "wscript"
2316 (("'-msse', '-mfpmath=sse', ") "")))
2317 #t)))
2318 #:tests? #f)) ; no tests
2319 (inputs
2320 `(("lv2" ,lv2)
2321 ("lvtk" ,lvtk)
2322 ("gtkmm" ,gtkmm-2)
2323 ("gtk" ,gtk+-2)
2324 ("cairo" ,cairo)
2325 ("fftw" ,fftw)))
2326 (native-inputs
2327 `(("pkg-config" ,pkg-config)))
2328 (home-page "https://objectivewave.wordpress.com/ams-lv2/")
2329 (synopsis "Port of Alsa Modular Synth internal modules into LV2")
2330 (description "This set of LV2 plugins is a port of the internal modules
2331 found in Alsa Modular Synth. These plugins are used to create modular
2332 synthesizers and contain: VCO, VCF, VCA, LFO, slew limiter, envelopes, sample
2333 and hold, etc.")
2334 (license license:gpl2))))
2335
2336 (define-public gxtuner
2337 (package
2338 (name "gxtuner")
2339 (version "2.4")
2340 (source (origin
2341 (method git-fetch)
2342 (uri (git-reference
2343 (url "https://github.com/brummer10/gxtuner.git")
2344 (commit (string-append "v" version))))
2345 (file-name (git-file-name name version))
2346 (sha256
2347 (base32
2348 "1fxd2akan2njlr7fpkh84830783qhh1gg7yakswqk5dd466dcn96"))))
2349 (build-system gnu-build-system)
2350 (arguments
2351 `(#:make-flags
2352 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2353 (string-append "INCLUDE_L_DIR="
2354 (assoc-ref %build-inputs "zita-resampler")
2355 "/include/"))
2356 #:phases
2357 (modify-phases %standard-phases
2358 (delete 'configure))))
2359 (inputs
2360 `(("gtk+" ,gtk+)
2361 ("jack" ,jack-1)
2362 ("fftwf" ,fftwf)
2363 ("cairo" ,cairo)
2364 ("zita-resampler" ,zita-resampler)))
2365 (native-inputs
2366 `(("pkg-config" ,pkg-config)))
2367 (home-page "https://github.com/brummer10/gxtuner")
2368 (synopsis "Guitar tuner")
2369 (description "GXtuner is a simple guitar tuner for JACK with an
2370 analogue-like user interface.")
2371 (license license:gpl2+)))
2372
2373 (define-public mod-host
2374 ;; The last release was in 2014 but since then hundreds of commits have
2375 ;; been made.
2376 (let ((commit "1726ad06b11323da7e1aaed690ff8aef91f702b5")
2377 (revision "3"))
2378 (package
2379 (name "mod-host")
2380 (version (string-append "0.10.6-" revision "." (string-take commit 9)))
2381 (source (origin
2382 (method git-fetch)
2383 (uri (git-reference
2384 (url "https://github.com/moddevices/mod-host")
2385 (commit commit)))
2386 (sha256
2387 (base32
2388 "1nrd37c35w6z6ldczgrwmmd9hx1n3zyvcjcgb3mi4cygqdanvspv"))
2389 (file-name (string-append name "-" version "-checkout"))))
2390 (build-system gnu-build-system)
2391 (arguments
2392 `(#:tests? #f ; no tests included
2393 #:make-flags
2394 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2395 "CC=gcc")
2396 #:phases
2397 (modify-phases %standard-phases
2398 (delete 'configure)
2399 (add-after 'unpack 'fix-jack-installation-directory
2400 (lambda _
2401 ;; Do not attempt to install files to output of "jack" package.
2402 (substitute* "Makefile"
2403 (("\\$\\(shell pkg-config --variable=libdir jack\\)")
2404 "lib"))
2405 #t)))))
2406 (inputs
2407 `(("lilv" ,lilv)
2408 ("fftw" ,fftw)
2409 ("fftwf" ,fftwf)
2410 ("lv2" ,lv2)
2411 ("jack" ,jack-1)
2412 ("readline" ,readline)))
2413 (native-inputs
2414 `(("pkg-config" ,pkg-config)
2415 ("python" ,python-2)))
2416 (home-page "https://github.com/moddevices/mod-host")
2417 (synopsis "LV2 host for Jack controllable via socket or command line")
2418 (description "mod-host is an LV2 plugin host for JACK, controllable via
2419 socket or command line.")
2420 (license license:gpl3+))))
2421
2422 (define-public curseradio
2423 (let ((commit "1bd4bd0faeec675e0647bac9a100b526cba19f8d")
2424 (revision "1"))
2425 (package
2426 (name "curseradio")
2427 (version (git-version "0" revision commit))
2428 (source (origin
2429 (method git-fetch)
2430 (uri (git-reference
2431 (url "https://github.com/chronitis/curseradio.git")
2432 (commit commit)))
2433 (file-name (git-file-name name version))
2434 (sha256
2435 (base32
2436 "11bf0jnj8h2fxhpdp498189r4s6b47vy4wripv0z4nx7lxajl88i"))))
2437 (build-system python-build-system)
2438 (propagated-inputs
2439 `(("python-lxml" ,python-lxml)
2440 ("python-requests" ,python-requests)
2441 ("python-pyxdg" ,python-pyxdg)
2442 ("mpv" ,mpv)))
2443 (home-page "https://github.com/chronitis/curseradio")
2444 (synopsis "Command-line Internet radio player")
2445 (description "Curseradio is a Curses-based radio player that uses a
2446 tune-in sender list from @url{http://opml.radiotime.com}.")
2447 (license license:expat))))
2448
2449 (define-public pianobar
2450 (package
2451 (name "pianobar")
2452 (version "2016.06.02")
2453 (source (origin
2454 (method git-fetch)
2455 (uri (git-reference
2456 (url "https://github.com/PromyLOPh/pianobar.git")
2457 (commit version)))
2458 (file-name (git-file-name name version))
2459 (sha256
2460 (base32
2461 "058fbdxp7n35hxwy3b8slfy4pb4n63cb173vfmywqa06wh1dv6f6"))))
2462 (build-system gnu-build-system)
2463 (arguments
2464 `(#:tests? #f ; no tests
2465 #:make-flags (list "CC=gcc" "CFLAGS=-std=c99"
2466 (string-append "PREFIX=" %output))
2467 #:phases (modify-phases %standard-phases
2468 (delete 'configure))))
2469 (inputs
2470 `(("ao" ,ao)
2471 ("curl" ,curl)
2472 ("libgcrypt" ,libgcrypt)
2473 ("json-c" ,json-c)
2474 ("ffmpeg" ,ffmpeg-3.4)))
2475 (native-inputs
2476 `(("pkg-config" ,pkg-config)))
2477 (home-page "http://6xq.net/projects/pianobar/")
2478 (synopsis "Console-based pandora.com player")
2479 (description "pianobar is a console-based music player for the
2480 personalized online radio pandora.com. It has configurable keys for playing
2481 and managing stations, can be controlled remotely via fifo, and can run
2482 event-based scripts for scrobbling, notifications, etc.")
2483 (license license:expat)))
2484
2485 (define-public picard
2486 (package
2487 (name "picard")
2488 (version "2.0.4")
2489 (source (origin
2490 (method url-fetch)
2491 (uri (string-append
2492 "https://musicbrainz.osuosl.org/pub/musicbrainz/"
2493 "picard/picard-" version ".tar.gz"))
2494 (sha256
2495 (base32
2496 "0ds3ylpqn717fnzcjrfn05v5xram01bj6n3hwn9igmkd1jgf8vhc"))))
2497 (build-system python-build-system)
2498 (arguments
2499 '(#:phases
2500 (modify-phases %standard-phases
2501 (add-after 'unpack 'patch-source
2502 (lambda* (#:key inputs #:allow-other-keys)
2503 (substitute* "picard/const/__init__.py"
2504 (("pyfpcalc")
2505 (string-append
2506 "pyfpcalc', '"
2507 (assoc-ref inputs "chromaprint") "/bin/fpcalc")))))
2508 (replace 'install
2509 (lambda* (#:key outputs #:allow-other-keys)
2510 (invoke "python" "setup.py" "install"
2511 (string-append "--prefix=" (assoc-ref outputs "out"))
2512 "--root=/"))))))
2513 (native-inputs
2514 `(("gettext" ,gettext-minimal)))
2515 (inputs
2516 `(("chromaprint" ,chromaprint)
2517 ("python-pyqt" ,python-pyqt)
2518 ("python-mutagen" ,python-mutagen)))
2519 (home-page "https://picard.musicbrainz.org/")
2520 (synopsis "Graphical music tagging application")
2521 (description
2522 "MusicBrainz Picard is a music tagging application, supporting multiple
2523 formats, looking up tracks through metadata and audio fingerprints.")
2524 (license license:gpl2+)))
2525
2526 (define-public python-mutagen
2527 (package
2528 (name "python-mutagen")
2529 (version "1.38")
2530 (source (origin
2531 (method url-fetch)
2532 (uri (pypi-uri "mutagen" version))
2533 (sha256
2534 (base32
2535 "0rl7sxn1rcjl48fwga3dqf9f6pzspsny4ngxyf6pp337mrq0z693"))))
2536 (build-system python-build-system)
2537 (native-inputs
2538 `(("python-pytest" ,python-pytest)))
2539 (home-page "https://bitbucket.org/lazka/mutagen")
2540 (synopsis "Read and write audio tags")
2541 (description "Mutagen is a Python module to handle audio metadata. It
2542 supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
2543 Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
2544 of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
2545 Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
2546 APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
2547 streams on an individual packet/page level.")
2548 (license license:gpl2))) ; "later version" never mentioned
2549
2550 (define-public python2-mutagen
2551 (package-with-python2 python-mutagen))
2552
2553 (define-public python-musicbrainzngs
2554 (package
2555 (name "python-musicbrainzngs")
2556 (version "0.6")
2557 (source (origin
2558 (method url-fetch)
2559 (uri (pypi-uri "musicbrainzngs" version))
2560 (sha256
2561 (base32
2562 "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8"))))
2563 (build-system python-build-system)
2564 (arguments
2565 '(;; The tests fail suffer from race conditions:
2566 ;; https://github.com/alastair/python-musicbrainzngs/issues/211
2567 #:tests? #f))
2568 (home-page "https://python-musicbrainzngs.readthedocs.org/")
2569 (synopsis "Python bindings for MusicBrainz NGS webservice")
2570 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
2571 web service. This library can be used to retrieve music metadata from the
2572 MusicBrainz database.")
2573 ;; 'musicbrainzngs/compat.py' is ISC licensed.
2574 (license (list license:bsd-2 license:isc))))
2575
2576 (define-public python2-musicbrainzngs
2577 (package-with-python2 python-musicbrainzngs))
2578
2579 (define-public python2-pyechonest
2580 (package
2581 (name "python2-pyechonest")
2582 (version "9.0.0")
2583 (source (origin
2584 (method url-fetch)
2585 (uri (pypi-uri "pyechonest" version))
2586 (sha256
2587 (base32
2588 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
2589 (build-system python-build-system)
2590 (arguments
2591 `(;; Python 3 is not supported:
2592 ;; https://github.com/echonest/pyechonest/issues/42
2593 #:python ,python-2))
2594 (home-page "https://github.com/echonest/pyechonest")
2595 (synopsis "Python interface to The Echo Nest APIs")
2596 (description "Pyechonest is a Python library for the Echo Nest API. With
2597 Pyechonest you have Python access to the entire set of API methods including:
2598
2599 @enumerate
2600 @item artist - search for artists by name, description, or attribute, and get
2601 back detailed information about any artist including audio, similar artists,
2602 blogs, familiarity, hotttnesss, news, reviews, urls and video.
2603 @item song - search songs by artist, title, description, or attribute (tempo,
2604 duration, etc) and get detailed information back about each song, such as
2605 hotttnesss, audio_summary, or tracks.
2606 @item track - upload a track to the Echo Nest and receive summary information
2607 about the track including key, duration, mode, tempo, time signature along with
2608 detailed track info including timbre, pitch, rhythm and loudness information.
2609 @end enumerate\n")
2610 (license license:bsd-3)))
2611
2612 (define-public python-pylast
2613 (package
2614 (name "python-pylast")
2615 (version "2.0.0")
2616 (source (origin
2617 (method url-fetch)
2618 (uri (pypi-uri "pylast" version))
2619 (sha256
2620 (base32
2621 "0r9h7g8i8l2mgqjwkda3v6prfbkb2im5kap1az9ppmhjm9i4jkcf"))))
2622 (build-system python-build-system)
2623 ;; Tests require network access. See
2624 ;; https://github.com/pylast/pylast/issues/105
2625 (arguments '(#:tests? #f))
2626 (native-inputs
2627 `(("python-coverage" ,python-coverage)
2628 ("python-pycodestyle" ,python-pycodestyle)
2629 ("python-mock" ,python-mock)
2630 ("python-pep8" ,python-pep8)
2631 ("python-pytest" ,python-pytest)
2632 ("python-flaky" ,python-flaky)
2633 ("python-pyflakes" ,python-pyflakes)
2634 ("python-pyyaml" ,python-pyyaml)))
2635 (propagated-inputs
2636 `(("python-six" ,python-six)))
2637 (home-page "https://github.com/pylast/pylast")
2638 (synopsis "Python interface to Last.fm and Libre.fm")
2639 (description "A Python interface to Last.fm and other API-compatible
2640 websites such as Libre.fm.")
2641 (license license:asl2.0)))
2642
2643 (define-public python2-pylast
2644 (package-with-python2 python-pylast))
2645
2646 (define-public instantmusic
2647 (let ((commit "300891d09c703525215fa5a116b9294af1c923c8")
2648 (revision "1"))
2649 (package
2650 (name "instantmusic")
2651 (version (git-version "1.0" revision commit))
2652 (source (origin
2653 (method git-fetch)
2654 (uri (git-reference
2655 (url "https://github.com/yask123/Instant-Music-Downloader.git")
2656 (commit commit)))
2657 (file-name (git-file-name name version))
2658 (sha256
2659 (base32
2660 "0j7qivaa04bpdz3anmgci5833dgiyfqqwq9fdrpl9m68b34gl773"))))
2661 (build-system python-build-system)
2662 (propagated-inputs
2663 `(("python-requests" ,python-requests)
2664 ("eyed3" ,eyed3)
2665 ("python-beautifulsoup4" ,python-beautifulsoup4)
2666 ("youtube-dl" ,youtube-dl)))
2667 (arguments
2668 '(#:modules ((guix build python-build-system)
2669 (guix build utils)
2670 (srfi srfi-26))
2671 #:phases (modify-phases %standard-phases
2672 (add-before 'build 'change-directory
2673 (lambda _
2674 (chdir "instantmusic-0.1") #t))
2675 (add-before 'check 'fix-file-permissions
2676 (lambda _
2677 ;; Fix some read-only files that would cause a build failure
2678 (for-each (cut chmod <> #o644)
2679 (find-files "instantmusic.egg-info"
2680 "PKG-INFO|.*\\.txt"))
2681 #t)))))
2682 (home-page "http://iyask.me/Instant-Music-Downloader/")
2683 (synopsis "Command-line program to download a song from YouTube")
2684 (description "InstantMusic downloads a song from YouTube in MP3 format.
2685 Songs can be searched by artist, name or even by a part of the song text.")
2686 (license license:expat))))
2687
2688 (define-public beets
2689 (package
2690 (name "beets")
2691 (version "1.4.6")
2692 (source (origin
2693 (method url-fetch)
2694 (uri (pypi-uri "beets" version))
2695 (sha256
2696 (base32
2697 "0l2vfrknwcsm6bn83m7476qrz45qwgxcb5k0h7kn96kr70irn1v2"))))
2698 (build-system python-build-system)
2699 (arguments
2700 `(#:phases
2701 (modify-phases %standard-phases
2702 (add-after 'unpack 'set-HOME
2703 (lambda _
2704 (setenv "HOME" (string-append (getcwd) "/tmp"))
2705 #t))
2706 (replace 'check
2707 (lambda _
2708 (invoke "nosetests" "-v"))))))
2709 (native-inputs
2710 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2711 ("python-flask" ,python-flask)
2712 ("python-mock" ,python-mock)
2713 ("python-mpd2" ,python-mpd2)
2714 ("python-nose" ,python-nose)
2715 ("python-pathlib" ,python-pathlib)
2716 ("python-pyxdg" ,python-pyxdg)
2717 ("python-pylast" ,python-pylast)
2718 ("python-rarfile" ,python-rarfile)
2719 ("python-responses" ,python-responses)))
2720 ;; TODO: Install optional plugins and dependencies.
2721 (inputs
2722 `(("python-discogs-client" ,python-discogs-client)
2723 ("python-jellyfish" ,python-jellyfish)
2724 ("python-munkres" ,python-munkres)
2725 ("python-musicbrainzngs" ,python-musicbrainzngs)
2726 ("python-mutagen" ,python-mutagen)
2727 ("python-pyyaml" ,python-pyyaml)
2728 ("python-unidecode" ,python-unidecode)))
2729 (home-page "http://beets.io")
2730 (synopsis "Music organizer")
2731 (description "The purpose of beets is to get your music collection right
2732 once and for all. It catalogs your collection, automatically improving its
2733 metadata as it goes using the MusicBrainz database. Then it provides a variety
2734 of tools for manipulating and accessing your music.")
2735 (license license:expat)))
2736
2737 (define-public milkytracker
2738 (package
2739 (name "milkytracker")
2740 (version "1.02.00")
2741 (source (origin
2742 (method git-fetch)
2743 (uri (git-reference
2744 (url "https://github.com/milkytracker/MilkyTracker.git")
2745 (commit (string-append "v" version))))
2746 (file-name (git-file-name name version))
2747 (sha256
2748 (base32
2749 "05a6d7l98k9i82dwrgi855dnccm3f2lkb144gi244vhk1156n0ca"))
2750 (modules '((guix build utils)))
2751 ;; Remove non-FSDG compliant sample songs.
2752 (snippet
2753 '(begin
2754 (delete-file-recursively "resources/music")
2755 (substitute* "CMakeLists.txt"
2756 (("add_subdirectory\\(resources/music\\)") ""))
2757 #t))))
2758 (build-system cmake-build-system)
2759 (arguments
2760 '(#:tests? #f ; no check target
2761 ;; This flag ensures that MilkyTracker links with the JACK library.
2762 #:configure-flags '("-DCMAKE_CXX_FLAGS=-ljack")))
2763 (inputs
2764 `(("alsa-lib" ,alsa-lib)
2765 ("jack" ,jack-1)
2766 ("sdl" ,sdl2)
2767 ("zlib" ,zlib)))
2768 (native-inputs
2769 `(("pkg-config" ,pkg-config)))
2770 (synopsis "Music tracker for working with .MOD/.XM module files")
2771 (description "MilkyTracker is a music application for creating .MOD and .XM
2772 module files. It attempts to recreate the module replay and user experience of
2773 the popular DOS program Fasttracker II, with special playback modes available
2774 for improved Amiga ProTracker 2/3 compatibility.")
2775 (home-page "http://milkytracker.titandemo.org/")
2776 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2777 (license (list license:bsd-3 license:gpl3+))))
2778
2779 (define-public schismtracker
2780 (package
2781 (name "schismtracker")
2782 (version "20180513")
2783 (source (origin
2784 (method git-fetch)
2785 (uri (git-reference
2786 (url "https://github.com/schismtracker/schismtracker.git")
2787 (commit version)))
2788 (file-name (git-file-name name version))
2789 (sha256
2790 (base32
2791 "0fayix1zbl96zhkfszgj71qr25dnddgy9hr6149nslww4gl7jk36"))
2792 (modules '((guix build utils)))
2793 (snippet
2794 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2795 `(begin
2796 (substitute* "schism/version.c"
2797 (("Schism Tracker built %s %s.*$")
2798 (string-append "Schism Tracker version " ,version "\");")))
2799 #t))))
2800 (build-system gnu-build-system)
2801 (arguments
2802 `(#:phases
2803 (modify-phases %standard-phases
2804 (add-before 'configure 'link-libm
2805 (lambda _ (setenv "LIBS" "-lm") #t)))))
2806 (native-inputs
2807 `(("autoconf" ,autoconf)
2808 ("automake" ,automake)
2809 ("python" ,python)))
2810 (inputs
2811 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2812 ("libx11" ,libx11)
2813 ("libxext" ,libxext)
2814 ("sdl" ,sdl)))
2815 (home-page "http://schismtracker.org")
2816 (synopsis "Oldschool sample-based music composition tool")
2817 (description
2818 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2819 create high quality music without the requirements of specialized, expensive
2820 equipment, and with a unique \"finger feel\" that is difficult to replicate in
2821 part. The player is based on a highly modified version of the ModPlug engine,
2822 with a number of bugfixes and changes to improve IT playback.")
2823 (license license:gpl2+)))
2824
2825 (define-public sooperlooper
2826 (package
2827 (name "sooperlooper")
2828 (version "1.7.3")
2829 (source (origin
2830 (method url-fetch)
2831 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2832 version ".tar.gz"))
2833 (sha256
2834 (base32
2835 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2836 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2837 (build-system gnu-build-system)
2838 (arguments
2839 `(#:make-flags (list "CXXFLAGS=-std=gnu++11")
2840 #:phases
2841 (modify-phases %standard-phases
2842 (add-after 'unpack 'add-sigc++-includes
2843 (lambda* (#:key inputs #:allow-other-keys)
2844 (let ((sig (assoc-ref inputs "libsigc++"))
2845 (xml (assoc-ref inputs "libxml2"))
2846 (cwd (getcwd)))
2847 (setenv "CPATH"
2848 (string-append sig "/include/sigc++-2.0:"
2849 sig "/lib/sigc++-2.0/include:"
2850 xml "/include/libxml2/:"
2851 cwd "/libs/pbd:"
2852 cwd "/libs/midi++")))
2853 (substitute* '("src/control_osc.hpp"
2854 "src/gui/app_frame.hpp"
2855 "src/gui/config_panel.hpp"
2856 "src/gui/keys_panel.hpp"
2857 "src/gui/latency_panel.hpp"
2858 "src/gui/main_panel.hpp"
2859 "src/gui/midi_bind_panel.hpp"
2860 "src/gui/prefs_dialog.hpp")
2861 (("sigc\\+\\+/object.h")
2862 "sigc++/sigc++.h"))
2863 (substitute* '("src/engine.cpp"
2864 "src/gui/latency_panel.cpp"
2865 "src/gui/looper_panel.cpp"
2866 "src/gui/main_panel.cpp")
2867 (("(\\(| )bind " _ pre)
2868 (string-append pre "sigc::bind ")))
2869 #t))
2870 (add-after 'unpack 'fix-xpm-warnings
2871 (lambda _
2872 (substitute* (find-files "." "\\.xpm$")
2873 (("static char") "static const char"))
2874 #t)))))
2875 (inputs
2876 `(("jack" ,jack-1)
2877 ("alsa-lib" ,alsa-lib)
2878 ("wxwidgets" ,wxwidgets-gtk2)
2879 ("libsndfile" ,libsndfile)
2880 ("libsamplerate" ,libsamplerate)
2881 ("liblo" ,liblo)
2882 ("rubberband" ,rubberband)
2883 ("libxml2" ,libxml2)
2884 ("libsigc++" ,libsigc++)
2885 ("ncurses" ,ncurses)))
2886 (native-inputs
2887 `(("pkg-config" ,pkg-config)))
2888 (home-page "http://essej.net/sooperlooper/")
2889 (synopsis "Live looping sampler")
2890 (description
2891 "SooperLooper is a live looping sampler capable of immediate loop
2892 recording, overdubbing, multiplying, reversing and more. It allows for
2893 multiple simultaneous multi-channel loops limited only by your computer's
2894 available memory.")
2895 (license license:gpl2+)))
2896
2897 (define-public moc
2898 (package
2899 (name "moc")
2900 (version "2.5.2")
2901 (source (origin
2902 (method url-fetch)
2903 (uri (string-append "http://ftp.daper.net/pub/soft/"
2904 name "/stable/"
2905 name "-" version ".tar.bz2"))
2906 (sha256
2907 (base32
2908 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))))
2909 (build-system gnu-build-system)
2910 (inputs
2911 `(("alsa-lib" ,alsa-lib)
2912 ("curl" ,curl)
2913 ("faad2" ,faad2)
2914 ("ffmpeg" ,ffmpeg-3.4)
2915 ("file" ,file)
2916 ("jack" ,jack-1)
2917 ("libid3tag" ,libid3tag)
2918 ("libltdl" ,libltdl)
2919 ("libmodplug" ,libmodplug)
2920 ("libmpcdec" ,libmpcdec)
2921 ("libmad" ,libmad)
2922 ("libogg" ,libogg)
2923 ("libvorbis" ,libvorbis)
2924 ("ncurses" ,ncurses)
2925 ("openssl" ,openssl)
2926 ("sasl" ,cyrus-sasl)
2927 ("speex" ,speex)
2928 ("taglib" ,taglib)
2929 ("wavpack" ,wavpack)
2930 ("zlib" ,zlib)))
2931 (native-inputs
2932 `(("pkg-config" ,pkg-config)))
2933 (synopsis "Console audio player designed to be powerful and easy to use")
2934 (description
2935 "Music on Console is a console audio player that supports many file
2936 formats, including most audio formats recognized by FFMpeg.")
2937 (home-page "http://moc.daper.net")
2938 (license license:gpl2+)))
2939
2940 (define-public midicsv
2941 (package
2942 (name "midicsv")
2943 (version "1.1")
2944 (source (origin
2945 (method url-fetch)
2946 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
2947 name "-" version ".tar.gz"))
2948 (sha256
2949 (base32
2950 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
2951 (build-system gnu-build-system)
2952 (arguments
2953 `(#:phases (modify-phases %standard-phases (delete 'configure))
2954 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
2955 (synopsis "Convert MIDI files to and from CSV")
2956 (description
2957 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
2958 value file (CSV), which preserves all the information in the MIDI file. The
2959 ASCII CSV file may be loaded into a spreadsheet or database application, or
2960 processed by a program to transform the MIDI data (for example, to key
2961 transpose a composition or extract a track from a multi-track sequence). A
2962 CSV file in the format created by midicsv may be converted back into a
2963 standard MIDI file with the csvmidi program.")
2964 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
2965 (license license:public-domain)))
2966
2967 (define-public gx-guvnor-lv2
2968 (package
2969 (name "gx-guvnor-lv2")
2970 (version "0.1")
2971 (source (origin
2972 (method git-fetch)
2973 (uri (git-reference
2974 (url "https://github.com/brummer10/GxGuvnor.lv2.git")
2975 (commit (string-append "v" version))))
2976 (file-name (string-append name "-" version "-checkout"))
2977 (sha256
2978 (base32
2979 "1wa5070j40p7f0b3kr259pzm99xb6cf2badr2capayjvgayd6gnm"))))
2980 (build-system gnu-build-system)
2981 (arguments
2982 `(;; The check target is used only to output a warning.
2983 #:tests? #f
2984 #:make-flags
2985 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
2986 #:phases
2987 (modify-phases %standard-phases
2988 (replace 'configure
2989 (lambda _
2990 (substitute* "Makefile"
2991 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
2992 (("install : all") "install :"))
2993 #t)))))
2994 (inputs
2995 `(("lv2" ,lv2)))
2996 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
2997 (synopsis "Overdrive/distortion pedal simulation")
2998 (description "This package provides the LV2 plugin \"GxGuvnor\", a
2999 simulation of an overdrive or distortion pedal for guitars.")
3000 ;; The LICENSE file says GPLv3 but the license headers in the files say
3001 ;; GPLv2 or later. The whole project is released under GPLv3 or later
3002 ;; according to https://github.com/brummer10/GxGuvnor.lv2/issues/1
3003 (license license:gpl3+)))
3004
3005 (define-public gx-vbass-preamp-lv2
3006 (let ((commit "eb999b0ca0ef4da40a59e458a9ab6e7042b96c99")
3007 (revision "2"))
3008 (package (inherit gx-guvnor-lv2)
3009 (name "gx-vbass-preamp-lv2")
3010 (version (string-append "0-" revision "." (string-take commit 9)))
3011 (source (origin
3012 (method git-fetch)
3013 (uri (git-reference
3014 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
3015 (commit commit)))
3016 (sha256
3017 (base32
3018 "0firap073ldw4nrykkd7jvyyj0jbl1nslxyzjj4kswazp99x7d9h"))
3019 (file-name (string-append name "-" version "-checkout"))))
3020 (inputs
3021 `(("lv2" ,lv2)
3022 ("gtk+" ,gtk+-2)))
3023 (native-inputs
3024 `(("pkg-config" ,pkg-config)))
3025 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
3026 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
3027 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
3028 pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
3029 Section."))))
3030
3031 (define-public gx-overdriver-lv2
3032 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
3033 (revision "1"))
3034 (package (inherit gx-guvnor-lv2)
3035 (name "gx-overdriver-lv2")
3036 (version (string-append "0-" revision "." (string-take commit 9)))
3037 (source (origin
3038 (method git-fetch)
3039 (uri (git-reference
3040 (url "https://github.com/brummer10/GxOverDriver.lv2")
3041 (commit commit)))
3042 (sha256
3043 (base32
3044 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
3045 (file-name (string-append name "-" version "-checkout"))))
3046 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
3047 (synopsis "Overdrive effect with level and tone control")
3048 (description "This package provides the LV2 plugin \"GxOverDriver\", an
3049 overdrive effect."))))
3050
3051 (define-public gx-tone-mender-lv2
3052 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
3053 (revision "1"))
3054 (package (inherit gx-guvnor-lv2)
3055 (name "gx-tone-mender-lv2")
3056 (version (string-append "0-" revision "." (string-take commit 9)))
3057 (source (origin
3058 (method git-fetch)
3059 (uri (git-reference
3060 (url "https://github.com/brummer10/GxToneMender.lv2")
3061 (commit commit)))
3062 (sha256
3063 (base32
3064 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
3065 (file-name (string-append name "-" version "-checkout"))))
3066 (home-page "https://github.com/brummer10/GxToneMender.lv2")
3067 (synopsis "Clean boost with a 3-knob tonestack")
3068 (description "This package provides the LV2 plugin \"GxToneMender\", a
3069 clean boost effect with a 3-knob tonestack."))))
3070
3071 (define-public gx-push-pull-lv2
3072 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
3073 (revision "1"))
3074 (package (inherit gx-guvnor-lv2)
3075 (name "gx-push-pull-lv2")
3076 (version (string-append "0-" revision "." (string-take commit 9)))
3077 (source (origin
3078 (method git-fetch)
3079 (uri (git-reference
3080 (url "https://github.com/brummer10/GxPushPull.lv2")
3081 (commit commit)))
3082 (sha256
3083 (base32
3084 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
3085 (file-name (string-append name "-" version "-checkout"))))
3086 (home-page "https://github.com/brummer10/GxPushPull.lv2")
3087 (synopsis "Octave up push pull transistor fuzz simulation")
3088 (description "This package provides the LV2 plugin \"GxPushPull\", a
3089 simulation of a push pull transistor fuzz effect with added high octave."))))
3090
3091 (define-public gx-suppa-tone-bender-lv2
3092 (package (inherit gx-guvnor-lv2)
3093 (name "gx-suppa-tone-bender-lv2")
3094 (version "0.1")
3095 (source (origin
3096 (method git-fetch)
3097 (uri (git-reference
3098 (url "https://github.com/brummer10/GxSuppaToneBender.lv2.git")
3099 (commit (string-append "v" version))))
3100 (file-name (string-append name "-" version "-checkout"))
3101 (sha256
3102 (base32
3103 "01x6bjmllkmvxfzc5xwdix7w021j26js71awv728cxsmkxgqw0zy"))))
3104 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
3105 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
3106 (description "This package provides the LV2 plugin
3107 \"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
3108 pedal.")))
3109
3110 (define-public gx-saturator-lv2
3111 (let ((commit "605330f432c94b6eb3f8203cbe472befae959532")
3112 (revision "3"))
3113 (package (inherit gx-vbass-preamp-lv2)
3114 (name "gx-saturator-lv2")
3115 (version (string-append "0-" revision "." (string-take commit 9)))
3116 (source (origin
3117 (method git-fetch)
3118 (uri (git-reference
3119 (url "https://github.com/brummer10/GxSaturator.lv2")
3120 (commit commit)))
3121 (sha256
3122 (base32
3123 "1w4nvh0rmxrv3s3hmh4fs74f3hc0jn31v00j769j7v68mqr7kawy"))
3124 (file-name (string-append name "-" version "-checkout"))))
3125 (home-page "https://github.com/brummer10/GxSaturator.lv2")
3126 (synopsis "Saturation effect")
3127 (description "This package provides the LV2 plugin \"GxSaturator\", a
3128 saturation effect."))))
3129
3130 (define-public gx-hyperion-lv2
3131 (package (inherit gx-guvnor-lv2)
3132 (name "gx-hyperion-lv2")
3133 (version "0.1")
3134 (source (origin
3135 (method git-fetch)
3136 (uri (git-reference
3137 (url "https://github.com/brummer10/GxHyperion.lv2.git")
3138 (commit (string-append "v" version))))
3139 (file-name (string-append name "-" version "-checkout"))
3140 (sha256
3141 (base32
3142 "1vx79s6s9if117y2g0ppdja2sv2wcny6xcfl3j1z4cipahnildxf"))))
3143 (home-page "https://github.com/brummer10/GxHyperion.lv2")
3144 (synopsis "Simulation of the Hyperion Fuzz pedal")
3145 (description "This package provides the LV2 plugin \"GxHyperion\", a
3146 simulation of the Hyperion Fuzz pedal.")))
3147
3148 (define-public gx-voodoo-fuzz-lv2
3149 (package (inherit gx-guvnor-lv2)
3150 (name "gx-voodoo-fuzz-lv2")
3151 (version "0.1")
3152 (source (origin
3153 (method git-fetch)
3154 (uri (git-reference
3155 (url "https://github.com/brummer10/GxVoodoFuzz.lv2.git")
3156 (commit (string-append "v" version))))
3157 (file-name (string-append name "-" version "-checkout"))
3158 (sha256
3159 (base32
3160 "1v0scphivri1fk4hl20j13f92i48mnx1zsil4hgnadsmm4nsfw43"))))
3161 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
3162 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
3163 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
3164 simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
3165 Bosstone circuit, followed by the tone control of the FoxToneMachine in
3166 parallel with a DarkBooster, followed by a volume control.")))
3167
3168 (define-public gx-super-fuzz-lv2
3169 (package (inherit gx-guvnor-lv2)
3170 (name "gx-super-fuzz-lv2")
3171 (version "0.1")
3172 (source (origin
3173 (method git-fetch)
3174 (uri (git-reference
3175 (url "https://github.com/brummer10/GxSuperFuzz.lv2.git")
3176 (commit (string-append "v" version))))
3177 (file-name (string-append name "-" version "-checkout"))
3178 (sha256
3179 (base32
3180 "1jlljd9hlgfflbiizq47lv1xbbgjyx3v835mf24zmh1q5zsw4np4"))))
3181 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
3182 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
3183 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
3184 analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
3185 pot, which is usually in the housing, is exposed as a control parameter. It
3186 adjusts the amount of harmonics.")))
3187
3188 (define-public gx-vintage-fuzz-master-lv2
3189 (package (inherit gx-guvnor-lv2)
3190 (name "gx-vintage-fuzz-master-lv2")
3191 (version "0.1")
3192 (source (origin
3193 (method git-fetch)
3194 (uri (git-reference
3195 (url "https://github.com/brummer10/GxVintageFuzzMaster.lv2.git")
3196 (commit (string-append "v" version))))
3197 (file-name (string-append name "-" version "-checkout"))
3198 (sha256
3199 (base32
3200 "02jb211z8rw2qr5r1z5mdxlqgiw6cbc319xpqplvn6k21c59mskv"))))
3201 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
3202 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
3203 (description "This package provides the LV2 plugin
3204 \"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
3205
3206 (define-public gx-slow-gear-lv2
3207 (let ((commit "5d37e775b0feef1d82feee94e2a7a2d7e57efe2d")
3208 (revision "3"))
3209 (package (inherit gx-vbass-preamp-lv2)
3210 (name "gx-slow-gear-lv2")
3211 (version (string-append "0-" revision "." (string-take commit 9)))
3212 (source (origin
3213 (method git-fetch)
3214 (uri (git-reference
3215 (url "https://github.com/brummer10/GxSlowGear.lv2")
3216 (commit commit)))
3217 (sha256
3218 (base32
3219 "141mz69zkhk3lm54bb6wgpnghb92zm1ig7fv07240cmhydqji1q1"))
3220 (file-name (string-append name "-" version "-checkout"))))
3221 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
3222 (synopsis "Slow gear audio effect")
3223 (description "This package provides the LV2 plugin \"GxSlowGear\", a
3224 slow gear audio effect to produce volume swells."))))
3225
3226 (define-public gx-switchless-wah-lv2
3227 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
3228 (revision "2"))
3229 (package (inherit gx-guvnor-lv2)
3230 (name "gx-switchless-wah-lv2")
3231 (version (string-append "0-" revision "." (string-take commit 9)))
3232 (source (origin
3233 (method git-fetch)
3234 (uri (git-reference
3235 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
3236 (commit commit)))
3237 (sha256
3238 (base32
3239 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
3240 (file-name (string-append name "-" version "-checkout"))))
3241 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
3242 (synopsis "Wah emulation with switchless activation")
3243 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
3244 a simulation of an analog Wah pedal with switchless activation."))))
3245
3246 (define-public mod-utilities
3247 (let ((commit "80ea3ea9f52fab7f191671f4810bf90fc955a046")
3248 (revision "2"))
3249 (package
3250 (name "mod-utilities")
3251 (version (string-append "0-" revision "." (string-take commit 9)))
3252 (source (origin
3253 (method git-fetch)
3254 (uri (git-reference
3255 (url "https://github.com/moddevices/mod-utilities.git")
3256 (commit commit)))
3257 (file-name (string-append name "-" version "-checkout"))
3258 (sha256
3259 (base32
3260 "1v55zmzmlg0ka7341x5lsvb44amy17vk27s669ps1basd1bk5s5v"))))
3261 (build-system gnu-build-system)
3262 (arguments
3263 `(#:tests? #f ; there are no tests
3264 #:make-flags
3265 (list (string-append "INSTALL_PATH="
3266 (assoc-ref %outputs "out")
3267 "/lib/lv2")
3268 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3269 "CC=gcc")
3270 #:phases
3271 (modify-phases %standard-phases
3272 (delete 'configure))))
3273 (inputs
3274 `(("lv2" ,lv2)))
3275 (home-page "https://github.com/moddevices/mod-utilities")
3276 (synopsis "LV2 utility plugins")
3277 (description "This package provides LV2 audio utility plugins, such as
3278 filters, crossovers, simple gain plugins without zipper noise, switch box
3279 plugins, a switch trigger, a toggle switch, and a peakmeter.")
3280 (license license:gpl2+))))
3281
3282 (define-public ingen
3283 (let ((commit "cc4a4db33f4d126a07a4a498e053c5fb9a883be3")
3284 (revision "2"))
3285 (package
3286 (name "ingen")
3287 (version (string-append "0.0.0-" revision "."
3288 (string-take commit 9)))
3289 (source
3290 (origin
3291 (method git-fetch)
3292 (uri (git-reference
3293 (url "https://git.drobilla.net/ingen.git")
3294 (commit commit)))
3295 (file-name (string-append name "-" version "-checkout"))
3296 (sha256
3297 (base32
3298 "1wg47vjw9djn99gbnsl2bcwj4xhdid61m4wrbn2nlp797flj91ic"))))
3299 (build-system waf-build-system)
3300 (arguments
3301 `(#:tests? #f ; no "check" target
3302 #:configure-flags (list "--no-webkit")
3303 #:phases
3304 (modify-phases %standard-phases
3305 (add-after 'unpack 'patch-wscript
3306 (lambda* (#:key outputs #:allow-other-keys)
3307 (let ((out (assoc-ref outputs "out")))
3308 (substitute* "wscript"
3309 ;; FIXME: Our version of lv2specgen.py does not behave as
3310 ;; expected. Maybe this requires a development version of
3311 ;; LV2.
3312 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
3313 ;; Add libraries to RUNPATH.
3314 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
3315 (string-append prefix
3316 "linkflags=[\"-Wl,-rpath="
3317 out "/lib" "\"]," line)))
3318 (substitute* '("src/wscript"
3319 "src/server/wscript")
3320 ;; Add libraries to RUNPATH.
3321 (("bld.env.PTHREAD_LINKFLAGS" line)
3322 (string-append line
3323 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
3324 (substitute* "src/client/wscript"
3325 ;; Add libraries to RUNPATH.
3326 (("^(.+)target.*= 'ingen_client'," line prefix)
3327 (string-append prefix
3328 "linkflags=[\"-Wl,-rpath="
3329 out "/lib" "\"]," line)))
3330 (substitute* "src/gui/wscript"
3331 ;; Add libraries to RUNPATH.
3332 (("^(.+)target.* = 'ingen_gui.*" line prefix)
3333 (string-append prefix
3334 "linkflags=[\"-Wl,-rpath="
3335 out "/lib" "\"]," line))))
3336 #t)))))
3337 (inputs
3338 `(("boost" ,boost)
3339 ("python-rdflib" ,python-rdflib)
3340 ("python" ,python)
3341 ("jack" ,jack-1)
3342 ("lv2" ,lv2-devel)
3343 ("lilv" ,lilv)
3344 ("raul" ,raul-devel)
3345 ("ganv" ,ganv-devel)
3346 ("suil" ,suil)
3347 ("serd" ,serd)
3348 ("sord" ,sord)
3349 ("sratom" ,sratom)
3350 ("gtkmm" ,gtkmm-2)))
3351 (native-inputs
3352 `(("pkg-config" ,pkg-config)
3353 ("python-pygments" ,python-pygments)))
3354 (home-page "https://drobilla.net/software/ingen")
3355 (synopsis "Modular audio processing system")
3356 (description "Ingen is a modular audio processing system for JACK and
3357 LV2 based systems. Ingen is built around LV2 technology and a strict
3358 separation of engine from user interface. The engine is controlled
3359 exclusively through a protocol, and can execute as a headless process, with an
3360 in-process GUI, or as an LV2 plugin. The GUI can run as a program which
3361 communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
3362 communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
3363 plugin on any system where Ingen is installed. This allows users to visually
3364 develop custom plugins for use in other applications without programming.")
3365 (license license:agpl3+))))
3366
3367 (define-public qmidiarp
3368 (package
3369 (name "qmidiarp")
3370 (version "0.6.5")
3371 (source (origin
3372 (method url-fetch)
3373 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
3374 version "/qmidiarp-" version ".tar.bz2"))
3375 (sha256
3376 (base32
3377 "043yh1p0rrbj1v840y27529m9260g55gvh1km8az4jxy7mns58r2"))))
3378 (build-system gnu-build-system)
3379 (arguments
3380 `(#:configure-flags
3381 (list "--enable-qt5"
3382 "CXXFLAGS=-std=gnu++11")))
3383 (inputs
3384 `(("qtbase" ,qtbase)
3385 ("alsa-lib" ,alsa-lib)
3386 ("jack" ,jack-1)
3387 ("liblo" ,liblo)
3388 ("lv2" ,lv2)))
3389 (native-inputs
3390 `(("pkg-config" ,pkg-config)
3391 ("qttools" ,qttools)))
3392 (home-page "http://qmidiarp.sourceforge.net/")
3393 (synopsis "MIDI arpeggiator")
3394 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
3395 sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
3396 modules running in parallel.")
3397 (license license:gpl2+)))
3398
3399 (define-public qmidiroute
3400 (package
3401 (name "qmidiroute")
3402 (version "0.4.0")
3403 (source (origin
3404 (method url-fetch)
3405 (uri (string-append "mirror://sourceforge/alsamodular/QMidiRoute/"
3406 version "/qmidiroute-" version ".tar.bz2"))
3407 (sha256
3408 (base32
3409 "19v1ppbglgl3z9v7xdqc0k33w71cqq8a7d6ihvfs7iz77dygrih9"))))
3410 (build-system gnu-build-system)
3411 (arguments
3412 `(#:configure-flags
3413 (list "--enable-qt5"
3414 "CXXFLAGS=-std=gnu++11")))
3415 (inputs
3416 `(("qtbase" ,qtbase)
3417 ("alsa-lib" ,alsa-lib)))
3418 (native-inputs
3419 `(("pkg-config" ,pkg-config)
3420 ("qttools" ,qttools)))
3421 (home-page "http://alsamodular.sourceforge.net/")
3422 (synopsis "MIDI event router and filter")
3423 (description "QMidiRoute is a MIDI event router and filter. MIDI note,
3424 control change, program change and pitch bend events are logged, and can be
3425 filtered, redirected and transformed into other events according to MIDI maps
3426 defined as tabs in the main control surface.")
3427 (license license:gpl2+)))
3428
3429 (define-public seq24
3430 (package
3431 (name "seq24")
3432 (version "0.9.3")
3433 (source (origin
3434 (method url-fetch)
3435 (uri (string-append "https://launchpad.net/seq24/trunk/"
3436 version "/+download/seq24-"
3437 version ".tar.bz2"))
3438 (sha256
3439 (base32
3440 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
3441 (patches (search-patches "seq24-rename-mutex.patch"))))
3442 (build-system gnu-build-system)
3443 (arguments
3444 `(#:configure-flags
3445 (list "CXXFLAGS=-std=gnu++11")))
3446 (inputs
3447 `(("gtkmm" ,gtkmm-2)
3448 ("alsa-lib" ,alsa-lib)
3449 ("jack" ,jack-1)
3450 ("lash" ,lash)))
3451 (native-inputs
3452 `(("pkg-config" ,pkg-config)))
3453 (home-page "https://edge.launchpad.net/seq24/")
3454 (synopsis "Real-time MIDI sequencer")
3455 (description "Seq24 is a real-time MIDI sequencer. It was created to
3456 provide a very simple interface for editing and playing MIDI loops.")
3457 (license license:gpl2+)))
3458
3459 (define-public python-discogs-client
3460 (package
3461 (name "python-discogs-client")
3462 (version "2.2.1")
3463 (source (origin
3464 (method url-fetch)
3465 (uri (pypi-uri "discogs-client" version))
3466 (sha256
3467 (base32
3468 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
3469 (build-system python-build-system)
3470 (propagated-inputs
3471 `(("python-oauthlib" ,python-oauthlib)
3472 ("python-requests" ,python-requests)))
3473 (native-inputs
3474 `(("python-six" ,python-six)))
3475 (home-page "https://github.com/discogs/discogs_client")
3476 (synopsis "Official Python client for the Discogs API")
3477 (description "This is the official Discogs API client for Python. It enables
3478 you to query the Discogs database for information on artists, releases, labels,
3479 users, Marketplace listings, and more. It also supports OAuth 1.0a
3480 authorization, which allows you to change user data such as profile information,
3481 collections and wantlists, inventory, and orders.")
3482 (license license:bsd-2)))
3483
3484 (define-public python2-discogs-client
3485 (package-with-python2 python-discogs-client))
3486
3487 (define-public libsmf
3488 (package
3489 (name "libsmf")
3490 (version "1.3")
3491 (source
3492 (origin
3493 (method url-fetch)
3494 ;; SF download page says development moved, but the link it points to
3495 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
3496 ;; it but made no release so far (https://github.com/stump/libsmf).
3497 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
3498 version "/libsmf-" version ".tar.gz"))
3499 (sha256
3500 (base32
3501 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
3502 (build-system gnu-build-system)
3503 (outputs '("out"
3504 "static")) ; 88KiB of .a files
3505 (arguments
3506 `(#:phases
3507 (modify-phases %standard-phases
3508 (add-after 'install 'move-static-libraries
3509 (lambda* (#:key outputs #:allow-other-keys)
3510 ;; Move static libraries to the "static" output.
3511 (let* ((out (assoc-ref outputs "out"))
3512 (lib (string-append out "/lib"))
3513 (static (assoc-ref outputs "static"))
3514 (slib (string-append static "/lib")))
3515 (mkdir-p slib)
3516 (for-each (lambda (file)
3517 (install-file file slib)
3518 (delete-file file))
3519 (find-files lib "\\.a$"))
3520 #t))))))
3521 (inputs
3522 `(("readline" ,readline)
3523 ("glib" ,glib)))
3524 (native-inputs
3525 `(("doxygen" ,doxygen)
3526 ("pkg-config" ,pkg-config)))
3527 (home-page "http://libsmf.sourceforge.net/")
3528 (synopsis "Standard MIDI File format library")
3529 (description
3530 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3531 conversions between time and pulses, tempo map handling and more. The only dependencies
3532 are a C compiler and glib. Full API documentation and examples are included.")
3533 (license license:bsd-2)))
3534
3535 (define-public lmms
3536 (package
3537 (name "lmms")
3538 (version "1.1.3")
3539 (source
3540 (origin
3541 (method git-fetch)
3542 (uri (git-reference
3543 (url "https://github.com/LMMS/lmms.git")
3544 (commit (string-append "v" version))))
3545 (file-name (git-file-name name version))
3546 (sha256
3547 (base32
3548 "03hhymc6d73fa3wbcqb7rm1l03zkw605k5i9kvkvjmv488bqh3pd"))))
3549 (build-system cmake-build-system)
3550 (arguments
3551 `(#:tests? #f ; no tests
3552 #:phases
3553 (modify-phases %standard-phases
3554 (add-before 'configure 'set-ldflags
3555 (lambda* (#:key outputs #:allow-other-keys)
3556 (setenv "LDFLAGS"
3557 (string-append
3558 "-Wl,-rpath=\""
3559 (assoc-ref outputs "out") "/lib/lmms"
3560 ":"
3561 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3562 "\""))
3563 #t))
3564 (add-before 'configure 'remove-Werror
3565 (lambda _
3566 (substitute* "CMakeLists.txt"
3567 (("SET\\(WERROR_FLAGS \"\\$\\{WERROR_FLAGS\\} -Werror")
3568 "SET(WERROR_FLAGS \"${WERROR_FLAGS}"))
3569 #t))
3570 (add-before 'reset-gzip-timestamps 'make-manpages-writable
3571 (lambda* (#:key outputs #:allow-other-keys)
3572 (map (lambda (file)
3573 (make-file-writable file))
3574 (find-files (string-append (assoc-ref outputs "out")
3575 "/share/man")
3576 ".*\\.gz$"))
3577 #t)))))
3578 (native-inputs
3579 `(("pkg-config" ,pkg-config)))
3580 (inputs
3581 `(("sdl" ,sdl)
3582 ("qt" ,qt-4)
3583 ("fltk" ,fltk)
3584 ("libogg" ,libogg)
3585 ("libsamplerate" ,libsamplerate)
3586 ("fluidsynth" ,fluidsynth-1) ;XXX: try using 2.x when updating
3587 ("libvorbis" ,libvorbis)
3588 ("alsa-lib" ,alsa-lib)
3589 ("portaudio" ,portaudio)
3590 ("ladspa" ,ladspa)
3591 ("libsndfile1" ,libsndfile)
3592 ("libxft" ,libxft)
3593 ("freetype2" ,freetype)
3594 ("fftw3f" ,fftwf)))
3595 (home-page "https://lmms.io/")
3596 (synopsis "Music composition tool")
3597 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3598 melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3599 audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3600 (license license:gpl2+)))
3601
3602 (define-public musescore
3603 (package
3604 (name "musescore")
3605 (version "2.3.2")
3606 (source (origin
3607 (method git-fetch)
3608 (uri (git-reference
3609 (url "https://github.com/musescore/MuseScore.git")
3610 (commit (string-append "v" version))))
3611 (file-name (git-file-name name version))
3612 (sha256
3613 (base32
3614 "0ncv0xfmq87plqa43cm0fpidlwzz1nq5s7h7139llrbc36yp3pr1"))
3615 (modules '((guix build utils)))
3616 (snippet
3617 ;; Un-bundle OpenSSL and remove unused libraries.
3618 '(begin
3619 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3620 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3621 ""))
3622 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3623 (("#include <openssl/.*") ""))
3624 (for-each delete-file-recursively
3625 '("thirdparty/freetype"
3626 "thirdparty/openssl"
3627 "thirdparty/portmidi"))
3628 #t))))
3629 (build-system gnu-build-system)
3630 (arguments
3631 `(#:make-flags
3632 `(,(string-append "PREFIX=" (assoc-ref %outputs "out"))
3633 "USE_SYSTEM_FREETYPE=ON"
3634 "DOWNLOAD_SOUNDFONT=OFF"
3635 ;; The following is not supported since Qt 5.11. May be removed in
3636 ;; a future release.
3637 "BUILD_WEBKIT=OFF")
3638 ;; There are tests, but no simple target to run. The command
3639 ;; used to run them is:
3640 ;;
3641 ;; make debug && sudo make installdebug && cd \
3642 ;; build.debug/mtest && make && ctest
3643 ;;
3644 ;; Basically, it requires to start a whole new build process.
3645 ;; So we simply skip them.
3646 #:tests? #f
3647 #:phases
3648 (modify-phases %standard-phases
3649 (delete 'configure))))
3650 (inputs
3651 `(("alsa-lib" ,alsa-lib)
3652 ("freetype" ,freetype)
3653 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3654 ("jack" ,jack-1)
3655 ("lame" ,lame)
3656 ("libogg" ,libogg)
3657 ("libsndfile" ,libsndfile)
3658 ("libvorbis" ,libvorbis)
3659 ("portaudio" ,portaudio)
3660 ("portmidi" ,portmidi)
3661 ("pulseaudio" ,pulseaudio)
3662 ("qtbase" ,qtbase)
3663 ("qtdeclarative" ,qtdeclarative)
3664 ("qtscript" ,qtscript)
3665 ("qtsvg" ,qtsvg)
3666 ("qtxmlpatterns" ,qtxmlpatterns)))
3667 (native-inputs
3668 `(("cmake" ,cmake)
3669 ("pkg-config" ,pkg-config)
3670 ("qttools" ,qttools)))
3671 (synopsis "Music composition and notation software")
3672 (description "MuseScore is a music score typesetter. Its main purpose is
3673 the creation of high-quality engraved musical scores in a WYSIWYG environment.
3674
3675 It supports unlimited staves, linked parts and part extraction, tablature,
3676 MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3677 lyrics (multiple verses), fretboard diagrams, and in general everything
3678 commonly used in sheet music. Style options and style sheets to change the
3679 appearance and layout are provided.
3680
3681 MuseScore can also play back scores through the built-in sequencer and SoundFont
3682 sample library.")
3683 (home-page "https://musescore.org")
3684 (license license:gpl2)))
3685
3686 (define-public muse-sequencer
3687 (package
3688 (name "muse-sequencer")
3689 (version "3.0.0")
3690 (source (origin
3691 (method git-fetch)
3692 (uri (git-reference
3693 (url "https://github.com/muse-sequencer/muse.git")
3694 (commit (string-append "muse_"
3695 (string-map (lambda (c)
3696 (if (char=? c #\.)
3697 #\_ c)) version)))))
3698 (file-name (string-append name "-" version "-checkout"))
3699 (sha256
3700 (base32
3701 "1nninz8qyqlxxjdnrm79y3gr3056pga9l2fsqh674jd3cjvafya3"))))
3702 (build-system cmake-build-system)
3703 (arguments
3704 `(#:tests? #f ; there is no test target
3705 #:configure-flags
3706 (list "-DENABLE_LV2_SUPPLIED=OFF"
3707 "-DENABLE_RTAUDIO=OFF" ; FIXME: not packaged
3708 "-DENABLE_INSTPATCH=OFF" ; FIXME: not packaged
3709 "-DENABLE_VST_NATIVE=OFF")
3710 #:phases
3711 (modify-phases %standard-phases
3712 (add-after 'unpack 'chdir
3713 (lambda _ (chdir "muse3"))))))
3714 (inputs
3715 `(("alsa-lib" ,alsa-lib)
3716 ("lash" ,lash)
3717 ("jack" ,jack-1)
3718 ("liblo" ,liblo)
3719 ("dssi" ,dssi)
3720 ("ladspa" ,ladspa)
3721 ("lv2" ,lv2)
3722 ("lilv" ,lilv)
3723 ("sord" ,sord)
3724 ("libsndfile" ,libsndfile)
3725 ("libsamplerate" ,libsamplerate)
3726 ("fluidsynth" ,fluidsynth)
3727 ("pcre" ,pcre)
3728 ("qtbase" ,qtbase)
3729 ("qtsvg" ,qtsvg)))
3730 (native-inputs
3731 `(("pkg-config" ,pkg-config)
3732 ("qttools" ,qttools)))
3733 (home-page "http://muse-sequencer.org")
3734 (synopsis "MIDI/Audio sequencer")
3735 (description "MusE is a MIDI/Audio sequencer with recording and editing
3736 capabilities. Its audio sequencer supports the LADSPA, DSSI, and LV2 audio
3737 plugin formats; the MIDI sequencer provides a piano roll, a drum editor, a
3738 list view, and a score editor. MusE aims to be a complete multitrack virtual
3739 studio.")
3740 (license license:gpl2+)))
3741
3742 (define-public dssi
3743 (package
3744 (name "dssi")
3745 (version "1.1.1")
3746 (source (origin
3747 (method url-fetch)
3748 (uri (string-append
3749 "mirror://sourceforge/dssi/dssi/" version
3750 "/dssi-" version ".tar.gz"))
3751 (sha256
3752 (base32
3753 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3754 (build-system gnu-build-system)
3755 (inputs
3756 `(("alsa-lib" ,alsa-lib)
3757 ("jack" ,jack-1)
3758 ("ladspa" ,ladspa)
3759 ("libsamplerate" ,libsamplerate)
3760 ("libsndfile" ,libsndfile)
3761 ("liblo" ,liblo)))
3762 (native-inputs
3763 `(("pkg-config" ,pkg-config)))
3764 (synopsis "Audio plugin API for soft synths and effects")
3765 (description "DSSI is a plugin API for software instruments with user
3766 interfaces, permitting them to be hosted in-process by audio applications.
3767 It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3768 towards familiarity with MIDI. The DSSI distribution package contains
3769 a JACK/ALSA-sequencer reference host and some plugins as well as the
3770 specification and header.")
3771 (home-page "http://dssi.sourceforge.net/")
3772 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3773 ;; The vast majority of examples are in the public domain.
3774 (license (list license:lgpl2.1+ license:gpl2+))))
3775
3776 (define-public rosegarden
3777 (package
3778 (name "rosegarden")
3779 (version "18.06")
3780 (source (origin
3781 (method url-fetch)
3782 (uri (string-append
3783 "mirror://sourceforge/rosegarden/rosegarden/"
3784 version "/rosegarden-" version ".tar.bz2"))
3785 (sha256
3786 (base32
3787 "04qc80sqb2ji42pq3mayhvqqn39hlxzymsywpbpzfpchr19chxx7"))))
3788 (build-system cmake-build-system)
3789 (arguments
3790 `(#:configure-flags '("-DUSE_QT5=1") ; "-DCMAKE_BUILD_TYPE=Release"
3791 #:phases
3792 (modify-phases %standard-phases
3793 (add-after 'unpack 'patch-tests
3794 (lambda _
3795 (substitute* "CMakeLists.txt"
3796 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
3797 ;; Make tests work.
3798 ((" -fvisibility=hidden") ""))
3799 #t))
3800 (add-after 'unpack 'fix-references
3801 (lambda* (#:key inputs #:allow-other-keys)
3802 (substitute* "src/gui/general/ProjectPackager.cpp"
3803 (("\"flac\\>")
3804 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
3805 (("\"wavpack\\>")
3806 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
3807 (("\"wvunpack\\>")
3808 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
3809 (("\"bash\\>")
3810 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
3811 (("\"tar\\>")
3812 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
3813 (substitute* "src/gui/general/LilyPondProcessor.cpp"
3814 (("\"convert-ly\\>")
3815 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
3816 (("\"lilypond\\>")
3817 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
3818 #t))
3819 (add-after 'unpack 'make-reproducible
3820 (lambda _
3821 ;; Prevent Last-Modified from being written.
3822 ;; The "*.qm" files that are used in locale.qrc would have a new
3823 ;; mtime otherwise that is written into qrc_locale.cpp in the
3824 ;; end - except when we disable it.
3825 (substitute* "src/CMakeLists.txt"
3826 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
3827 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
3828 ;; Extraneous.
3829 ;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
3830 ; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
3831 )
3832 ;; Make hashtable traversal order predicable.
3833 (setenv "QT_RCC_TEST" "1") ; important
3834 #t))
3835 (add-before 'check 'prepare-check
3836 (lambda _
3837 (setenv "QT_QPA_PLATFORM" "offscreen")
3838 ;; Tests create files in $HOME/.local/share/rosegarden .
3839 (mkdir-p "/tmp/foo")
3840 (setenv "HOME" "/tmp/foo")
3841 (setenv "XDG_RUNTIME_DIR" "/tmp/foo")
3842 #t)))))
3843 (inputs
3844 `(("alsa-lib" ,alsa-lib)
3845 ("bash" ,bash)
3846 ("dssi" ,dssi)
3847 ("flac" ,flac)
3848 ("fftwf" ,fftwf)
3849 ("jack" ,jack-1)
3850 ("ladspa" ,ladspa)
3851 ("liblo" ,liblo)
3852 ("libsamplerate" ,libsamplerate)
3853 ("lilypond" ,lilypond)
3854 ("lrdf" ,lrdf)
3855 ("qtbase" ,qtbase)
3856 ("tar" ,tar)
3857 ("lirc" ,lirc)
3858 ("wavpack" ,wavpack)
3859 ("zlib" ,zlib)))
3860 (native-inputs
3861 `(("pkg-config" ,pkg-config)
3862 ("qtlinguist" ,qttools)))
3863 (synopsis "Music composition and editing environment based around a MIDI
3864 sequencer")
3865 (description "Rosegarden is a music composition and editing environment
3866 based around a MIDI sequencer that features a rich understanding of music
3867 notation and includes basic support for digital audio.")
3868 (home-page "https://www.rosegardenmusic.com/")
3869 (license license:gpl2)))
3870
3871 (define-public patchmatrix
3872 ;; There have been no releases for more than a year.
3873 (let ((commit "a0b0b1e791f4574d5abd059cfe1819c71e8b18d5")
3874 (revision "1"))
3875 (package
3876 (name "patchmatrix")
3877 (version (git-version "0.12.0" revision commit))
3878 (source (origin
3879 (method git-fetch)
3880 (uri (git-reference
3881 (url "https://github.com/OpenMusicKontrollers/patchmatrix.git")
3882 (commit commit)))
3883 (file-name (string-append "patchmatrix-" version "-checkout"))
3884 (sha256
3885 (base32
3886 "0pph4ra7aci3rbpqvvr564pi16vxrk448bmvp8985cd9lbjlrp3m"))))
3887 (build-system meson-build-system)
3888 (arguments
3889 '(#:tests? #f ; no test target
3890 #:phases
3891 (modify-phases %standard-phases
3892 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
3893 (lambda* (#:key outputs #:allow-other-keys)
3894 (map make-file-writable
3895 (find-files (assoc-ref outputs "out") ".*\\.gz$"))
3896 #t)))))
3897 (inputs
3898 `(("jack" ,jack-1)
3899 ("lv2" ,lv2)
3900 ("mesa" ,mesa)))
3901 (native-inputs
3902 `(("pkg-config" ,pkg-config)))
3903 (home-page "https://github.com/OpenMusicKontrollers/patchmatrix")
3904 (synopsis "Simple JACK patch bay")
3905 (description "PatchMatrix is a patch bay for the JACK audio connection
3906 kit. It provides a patch bay in flow matrix style for audio, MIDI, CV, and
3907 OSC connections.")
3908 (license license:artistic2.0))))
3909
3910 (define-public sorcer
3911 (package
3912 (name "sorcer")
3913 (version "1.1.3")
3914 (source (origin
3915 (method url-fetch)
3916 (uri (string-append "https://github.com/openAVproductions/"
3917 "openAV-Sorcer/archive/release-"
3918 version ".tar.gz"))
3919 (file-name (string-append name "-" version ".tar.gz"))
3920 (sha256
3921 (base32
3922 "07iyqj28wm0xc4arrq893bm12xjpz65db7ynrlmf6w8krg8wjmd0"))))
3923 (build-system cmake-build-system)
3924 (arguments
3925 `(#:tests? #f ; no tests included
3926 #:phases
3927 (modify-phases %standard-phases
3928 (add-after 'unpack 'remove-architecture-specific-flags
3929 (lambda _
3930 (substitute* "CMakeLists.txt"
3931 (("-msse2 -mfpmath=sse") ""))
3932 #t))
3933 (add-after 'unpack 'build-faust-sources
3934 (lambda* (#:key inputs #:allow-other-keys)
3935 (with-directory-excursion "faust"
3936 (delete-file "main.cpp")
3937 (zero? (system* "faust" "-i"
3938 "-a" "lv2synth.cpp"
3939 "-o" "main.cpp" "main.dsp"))))))))
3940 (inputs
3941 `(("boost" ,boost)
3942 ("lv2" ,lv2)
3943 ("ntk" ,ntk)))
3944 (native-inputs
3945 `(("faust" ,faust)
3946 ("pkg-config" ,pkg-config)))
3947 (home-page "http://openavproductions.com/sorcer/")
3948 (synopsis "Wavetable LV2 plugin synth")
3949 (description "Sorcer is a wavetable LV2 plugin synthesizer, targeted at
3950 the electronic or dubstep genre.")
3951 (license license:gpl3+)))
3952
3953 (define-public libmygpo-qt
3954 (package
3955 (name "libmygpo-qt")
3956 (version "1.1.0")
3957 (source (origin
3958 (method url-fetch)
3959 (uri (string-append "http://stefan.derkits.at/files/"
3960 "libmygpo-qt/libmygpo-qt." version ".tar.gz"))
3961 (sha256
3962 (base32
3963 "1kg18qrq2rsswgzhl65r3mlyx7kpqg4wwnbp4yiv6svvmadmlxl2"))
3964 (patches (search-patches "libmygpo-qt-fix-qt-5.11.patch"
3965 "libmygpo-qt-missing-qt5-modules.patch"))))
3966 (build-system cmake-build-system)
3967 (native-inputs
3968 `(("pkg-config" ,pkg-config)))
3969 (inputs
3970 `(("qt" ,qtbase)))
3971 (arguments
3972 `(#:configure-flags '("-DMYGPO_BUILD_TESTS=ON")
3973 ;; TODO: Enable tests when https://github.com/gpodder/gpodder/issues/446
3974 ;; is fixed.
3975 #:tests? #f))
3976 (home-page "http://wiki.gpodder.org/wiki/Libmygpo-qt")
3977 (synopsis "Qt/C++ library wrapping the gpodder web service")
3978 (description "@code{libmygpo-qt} is a Qt/C++ library wrapping the
3979 @url{https://gpodder.net} APIs. It allows applications to discover, manage
3980 and track podcasts.")
3981 (license license:lgpl2.1+)))
3982
3983 (define-public sonivox-eas
3984 (package
3985 (name "sonivox-eas")
3986 (version "1.1.0")
3987 (source (origin
3988 (method git-fetch)
3989 (uri (git-reference
3990 (url "https://github.com/pedrolcl/Linux-SonivoxEas.git")
3991 (commit (string-append "v" version))))
3992 (file-name (string-append name "-" version "-checkout"))
3993 (sha256
3994 (base32
3995 "0l9gs00p5g4k4qy6i7nv1mfi2n2wnsycwjrgrh9hxzam4irf2mw2"))))
3996 (build-system cmake-build-system)
3997 (arguments '(#:tests? #f)) ; there are no tests
3998 (inputs
3999 `(("alsa-lib" ,alsa-lib)
4000 ("drumstick" ,drumstick)
4001 ("pulseaudio" ,pulseaudio)
4002 ("qtbase" ,qtbase)))
4003 (native-inputs
4004 `(("pkg-config" ,pkg-config)))
4005 (home-page "https://github.com/pedrolcl/Linux-SonivoxEas")
4006 (synopsis "MIDI synthesizer library")
4007 (description "This project is a real time General MIDI synthesizer based
4008 on the Sonivox EAS Synthesizer by Google. It does not need external
4009 soundfonts, using embedded samples instead.")
4010 ;; Sonivox is released under the ASL2.0; the rest of the code is under
4011 ;; GPLv2+.
4012 (license (list license:gpl2+ license:asl2.0))))
4013
4014 (define-public whysynth
4015 (package
4016 (name "whysynth")
4017 (version "20170701")
4018 (source (origin
4019 (method url-fetch)
4020 (uri (string-append "http://smbolton.com/whysynth/whysynth-"
4021 version ".tar.bz2"))
4022 (sha256
4023 (base32
4024 "02qbn0hbvn1iym4zxv35b201blg31yjpgh71h8db0j5zls2xc0m6"))))
4025 (build-system gnu-build-system)
4026 (inputs
4027 `(("dssi" ,dssi)
4028 ("liblo" ,liblo)
4029 ("fftwf" ,fftwf)
4030 ("gtk+" ,gtk+-2)
4031 ("ladspa" ,ladspa)
4032 ("alsa-lib" ,alsa-lib)))
4033 (native-inputs
4034 `(("pkg-config" ,pkg-config)))
4035 (home-page "http://smbolton.com/whysynth.html")
4036 (synopsis "DSSI software synthesizer")
4037 (description "WhySynth is a versatile softsynth which operates as a plugin
4038 for the DSSI Soft Synth Interface. A brief list of features:
4039
4040 @enumerate
4041 @item 4 oscillators, 2 filters, 3 LFOs, and 5 envelope generators per voice.
4042 @item 11 oscillator modes: minBLEP, wavecycle, chorused wavecycle,
4043 asynchronous granular, three FM modes, waveshaper, noise, PADsynth, and phase
4044 distortion.
4045 @item 10 filter modes.
4046 @item flexible modulation and mixdown options, plus effects.
4047 @end enumerate
4048 ")
4049 (license license:gpl2+)))
4050
4051 (define-public libdiscid
4052 (package
4053 (name "libdiscid")
4054 (version "0.6.2")
4055 (source
4056 (origin
4057 (method url-fetch)
4058 (uri (string-append
4059 "http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/libdiscid-"
4060 version ".tar.gz"))
4061 (sha256
4062 (base32
4063 "1f9irlj3dpb5gyfdnb1m4skbjvx4d4hwiz2152f83m0d9jn47r7r"))))
4064 (arguments `(#:test-target "check"))
4065 (build-system cmake-build-system)
4066 (home-page "https://musicbrainz.org/doc/libdiscid")
4067 (synopsis "Disc id reader library")
4068 (description "libdiscid is a C library for creating MusicBrainz and freedb
4069 disc IDs from audio CDs. It reads a CD's table of contents (TOC) and generates
4070 an identifier which can be used to lookup the CD at MusicBrainz. Additionally,
4071 it provides a submission URL for adding the disc ID to the database and gathers
4072 ISRCs and the MCN (=UPC/EAN) from disc.")
4073 (license license:lgpl2.1+)))
4074
4075 (define-public libmusicbrainz
4076 (package
4077 (name "libmusicbrainz")
4078 (version "5.1.0")
4079 (source
4080 (origin
4081 (method url-fetch)
4082 (uri (string-append
4083 "https://github.com/metabrainz/libmusicbrainz/releases/download/release-"
4084 version "/libmusicbrainz-" version ".tar.gz"))
4085 (sha256
4086 (base32
4087 "0ikb9igyyk28jm34raxfzkw2qyn4nzzwsymdyprp7cmvi6g2ajb7"))))
4088 (build-system cmake-build-system)
4089 (arguments
4090 `(#:phases
4091 (modify-phases %standard-phases
4092 (replace 'check
4093 (lambda _
4094 ;; requires network connections
4095 ;; (invoke "tests/mbtest")
4096 (invoke "tests/ctest")
4097 #t)))))
4098 (inputs `(("neon" ,neon)
4099 ("libxml2" ,libxml2)))
4100 (native-inputs `(("pkg-config" ,pkg-config)))
4101 (home-page "https://musicbrainz.org/doc/libmusicbrainz")
4102 (synopsis "MusicBrainz client library")
4103 (description "The MusicBrainz Client Library (libmusicbrainz), also known as
4104 mb_client, is a development library geared towards developers who wish to add
4105 MusicBrainz lookup capabilities to their applications.")
4106 (license license:lgpl2.1+)))
4107
4108 (define-public perl-musicbrainz-discid
4109 (package
4110 (name "perl-musicbrainz-discid")
4111 (version "0.04")
4112 (source (origin
4113 (method url-fetch)
4114 (uri (string-append
4115 "mirror://cpan/authors/id/N/NJ/NJH/MusicBrainz-DiscID-"
4116 version ".tar.gz"))
4117 (sha256
4118 (base32
4119 "1i4qk1qfcmxdibqkyfjrrjdq2zk42vjcz590qgiyc47fi9p6xx1j"))))
4120 (build-system perl-build-system)
4121 (native-inputs `(("pkg-config" ,pkg-config)
4122 ("which" ,which)))
4123 (inputs `(("libdiscid" ,libdiscid)))
4124 (home-page "https://metacpan.org/release/MusicBrainz-DiscID")
4125 (synopsis "Perl interface to the MusicBrainz libdiscid library")
4126 (description
4127 "The @code{MusicBrainz::DiscID} module is a Perl interface to the
4128 MusicBrainz libdiscid library, allowing you to manipulate digital audio
4129 compact disc (CDDA) identifiers.")
4130 (license license:gpl2)))
4131
4132 (define-public perl-webservice-musicbrainz
4133 (package
4134 (name "perl-webservice-musicbrainz")
4135 (version "1.0.4")
4136 (source (origin
4137 (method url-fetch)
4138 (uri (string-append
4139 "mirror://cpan/authors/id/B/BF/BFAIST/WebService-MusicBrainz-"
4140 version ".tar.gz"))
4141 (sha256
4142 (base32
4143 "182z3xjajk6s7k5xm3kssjy3hqx2qbnq4f8864hma098ryy2ph3a"))))
4144 (build-system perl-build-system)
4145 (arguments
4146 ;; Tests try to connect to http://musicbrainz.org.
4147 '(#:tests? #f))
4148 (native-inputs
4149 `(("perl-module-build" ,perl-module-build)))
4150 (propagated-inputs
4151 `(("perl-mojolicious" ,perl-mojolicious)))
4152 (home-page "https://metacpan.org/release/WebService-MusicBrainz")
4153 (synopsis "Web service API to the MusicBrainz database")
4154 (description
4155 "This module searches the MusicBrainz database through their web service
4156 at @code{musicbrainz.org}.")
4157 (license license:perl-license)))
4158
4159 (define-public clyrics
4160 (package
4161 (name "clyrics")
4162 (version "0.10")
4163 (source
4164 (origin
4165 (method git-fetch)
4166 (uri (git-reference
4167 (url "https://github.com/trizen/clyrics.git")
4168 (commit version)))
4169 (file-name (git-file-name name version))
4170 (sha256
4171 (base32
4172 "1qvj4dyipkkdccx5hci4z0q23i54ldk6hh7x5m35a7f70rrj6fbk"))))
4173 (build-system trivial-build-system)
4174 (inputs
4175 `(("bash" ,bash) ;for the wrapped program
4176 ("perl" ,perl)
4177 ("perl-www-mechanize" ,perl-www-mechanize)
4178 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
4179 ;; Required or else LWP will fail with "GET https://www.google.com/ ==>
4180 ;; 500 Can't verify SSL peers without knowing which Certificate
4181 ;; Authorities to trust".
4182 ("perl-mozilla-ca" ,perl-mozilla-ca)))
4183 (arguments
4184 `(#:modules ((guix build utils))
4185 #:builder (begin
4186 (use-modules (guix build utils)
4187 (ice-9 match)
4188 (srfi srfi-26))
4189 (let* ((source (assoc-ref %build-inputs "source"))
4190 (output (assoc-ref %outputs "out")))
4191 (setenv "PATH"
4192 (string-append
4193 (assoc-ref %build-inputs "bash") "/bin" ":"
4194 (assoc-ref %build-inputs "perl") "/bin" ":"))
4195 (copy-recursively source (getcwd))
4196 (patch-shebang "clyrics")
4197 (substitute* "clyrics"
4198 (("/usr/share") output))
4199 (install-file "clyrics" (string-append output "/bin"))
4200 (wrap-program (string-append output "/bin/clyrics")
4201 `("PERL5LIB" ":" =
4202 ,(delete
4203 ""
4204 (map (match-lambda
4205 (((? (cut string-prefix? "perl-" <>) name) . dir)
4206 (string-append dir "/lib/perl5/site_perl"))
4207 (_ ""))
4208 %build-inputs))))
4209 (copy-recursively "plugins" (string-append output "/clyrics"))
4210 #t))))
4211 (home-page "https://github.com/trizen/clyrics")
4212 (synopsis "Extensible lyrics fetcher")
4213 (description
4214 "Clyrics is an extensible command-line tool to fetch the lyrics of songs.
4215 It can be used in daemon mode along with the Music-on-Console (MOC) and cmus
4216 console music players.")
4217 (license license:gpl3+)))
4218
4219 (define-public demlo
4220 (let ((commit "fe9ec4c8ac2fa995ec18e6ac86d50d46df06ec01")
4221 (revision "0"))
4222 (package
4223 (name "demlo")
4224 (version (git-version "3.8" revision commit))
4225 (source
4226 (origin
4227 (method git-fetch)
4228 (uri (git-reference
4229 (url
4230 "https://gitlab.com/ambrevar/demlo")
4231 (commit commit)))
4232 (file-name (git-file-name name version))
4233 (sha256
4234 (base32
4235 "1afkbqhzn6da7zaf5ab7dvyqj1izqhzprwfb4hw448fllda9bdvk"))))
4236 (build-system go-build-system)
4237 (native-inputs
4238 `(("lua" ,lua)
4239 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
4240 ("go-github-com-mattn-go-colorable" ,go-github-com-mattn-go-colorable)
4241 ("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)
4242 ("go-gitlab-com-ambrevar-damerau" ,go-gitlab-com-ambrevar-damerau)
4243 ("go-gitlab-com-ambrevar-golua-unicode" ,go-gitlab-com-ambrevar-golua-unicode)
4244 ("go-github-com-mgutz-ansi" ,go-github-com-mgutz-ansi)
4245 ("go-github-com-michiwend-gomusicbrainz" ,go-github-com-michiwend-gomusicbrainz)
4246 ("go-github-com-stevedonovan-luar" ,go-github-com-stevedonovan-luar)
4247 ("go-github-com-wtolson-go-taglib" ,go-github-com-wtolson-go-taglib)
4248 ("go-github-com-yookoala-realpath" ,go-github-com-yookoala-realpath)))
4249 (inputs
4250 `(("chromaprint" ,chromaprint)
4251 ("ffmpeg" ,ffmpeg)))
4252 (arguments
4253 `(#:import-path "gitlab.com/ambrevar/demlo"
4254 #:phases
4255 (modify-phases %standard-phases
4256 (add-after 'install 'wrap-program
4257 (lambda* (#:key inputs outputs #:allow-other-keys)
4258 (let ((out (assoc-ref outputs "out"))
4259 (ffmpeg (assoc-ref inputs "ffmpeg"))
4260 (chromaprint (assoc-ref inputs "chromaprint")))
4261 (wrap-program (string-append out "/bin/demlo")
4262 `("XDG_DATA_DIRS" ":" prefix (,out))
4263 `("PATH" ":" prefix
4264 ,(map (lambda (dir)
4265 (string-append dir "/bin:"
4266 dir "/sbin"))
4267 (list ffmpeg chromaprint))))
4268 #t)))
4269 (add-after 'install-source 'install-scripts
4270 (lambda* (#:key outputs #:allow-other-keys)
4271 (let* ((out (assoc-ref outputs "out"))
4272 (root (string-append out "/src/gitlab.com/ambrevar/demlo"))
4273 (xdg-data-dirs (string-append out "/demlo")))
4274 (copy-recursively (string-append root "/actions")
4275 (string-append xdg-data-dirs "/actions"))
4276 (copy-recursively (string-append root "/scripts")
4277 (string-append xdg-data-dirs "/scripts"))
4278 (install-file (string-append root "/config.lua") xdg-data-dirs)
4279 ;; TODO: Test fish completion.
4280 (install-file (string-append root "/completion/demlo.fish")
4281 (string-append out "/share/fish/vendor_completions.d"))
4282 #t))))))
4283 (home-page "https://gitlab.com/ambrevar/demlo")
4284 (synopsis "Dynamic and extensible music library organizer")
4285 (description "Demlo is a music library organizer. It can encode, fix
4286 case, change folder hierarchy according to tags or file properties, tag from
4287 an online database, copy covers while ignoring duplicates or those below a
4288 quality threshold, and much more. It makes it possible to manage your
4289 libraries uniformly and dynamically. You can write your own rules to fit your
4290 needs best.
4291
4292 Demlo can address any of these recurring music library issues (and much more):
4293
4294 @itemize
4295 @item Fix the lack of folder structure.
4296 @item Normalize tags, fix their case, chose which tags to keep and which to
4297 discard.
4298 @item Handle lossy and lossless audio differently.
4299 @item Handle mp3 id3tags hell...
4300 @item Handle multiple covers, whether embedded and/or external, resize covers,
4301 discard bad quality ones.
4302 @end itemize\n")
4303 (license license:expat))))
4304
4305 (define-public lpd8editor
4306 (package
4307 (name "lpd8editor")
4308 (version "0.0.12")
4309 (source (origin
4310 (method git-fetch)
4311 (uri (git-reference
4312 (url "https://github.com/charlesfleche/lpd8editor.git")
4313 (commit (string-append "v" version))))
4314 (file-name (git-file-name name version))
4315 (sha256
4316 (base32
4317 "1v3fz8h1zs7kkl80faah79pp6yqwz0j7bkv3dbmh2hp42zbfiz1q"))))
4318 (build-system gnu-build-system)
4319 (arguments
4320 '(#:phases
4321 (modify-phases %standard-phases
4322 (add-after 'unpack 'setenv
4323 (lambda _
4324 (setenv "INSTALL_PREFIX"
4325 (assoc-ref %outputs "out"))))
4326 (delete 'configure) ; no configure script
4327 (add-before 'build 'qmake
4328 (lambda _ (invoke "qmake"))))))
4329 (native-inputs
4330 `(("pkg-config" ,pkg-config)))
4331 (inputs
4332 `(("alsa" ,alsa-lib)
4333 ("qtbase" ,qtbase)
4334 ("qtsvg" ,qtsvg)))
4335 (synopsis "Graphical editor for the Akai LPD8 MIDI controller")
4336 (description "lpd8editor is a graphical patch editor for the Akai LPD8 MIDI
4337 controller.")
4338 (home-page "https://github.com/charlesfleche/lpd8editor")
4339 (license license:expat)))