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