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