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