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>
15 ;;; This file is part of GNU Guix.
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30 (define-module (gnu packages music)
31 #:use-module (guix utils)
32 #:use-module (guix packages)
33 #:use-module (guix download)
34 #:use-module (guix git-download)
35 #:use-module ((guix licenses) #:prefix license:)
36 #:use-module (guix build-system gnu)
37 #:use-module (guix build-system ant)
38 #:use-module (guix build-system cmake)
39 #:use-module (guix build-system python)
40 #:use-module (guix build-system waf)
41 #:use-module (gnu packages)
42 #:use-module (gnu packages algebra)
43 #:use-module (gnu packages apr)
44 #:use-module (gnu packages audio)
45 #:use-module (gnu packages autotools)
46 #:use-module (gnu packages backup)
47 #:use-module (gnu packages base) ;libbdf
48 #:use-module (gnu packages bash)
49 #:use-module (gnu packages bison)
50 #:use-module (gnu packages boost)
51 #:use-module (gnu packages cdrom)
52 #:use-module (gnu packages code)
53 #:use-module (gnu packages check)
54 #:use-module (gnu packages cmake)
55 #:use-module (gnu packages compression)
56 #:use-module (gnu packages curl)
57 #:use-module (gnu packages cyrus-sasl)
58 #:use-module (gnu packages docbook)
59 #:use-module (gnu packages documentation)
60 #:use-module (gnu packages emacs)
61 #:use-module (gnu packages file)
62 #:use-module (gnu packages flex)
63 #:use-module (gnu packages fltk)
64 #:use-module (gnu packages fonts)
65 #:use-module (gnu packages fontutils)
66 #:use-module (gnu packages freedesktop)
67 #:use-module (gnu packages gcc)
68 #:use-module (gnu packages gnupg)
69 #:use-module (gnu packages gettext)
70 #:use-module (gnu packages ghostscript)
71 #:use-module (gnu packages gl)
72 #:use-module (gnu packages glib)
73 #:use-module (gnu packages gnome)
74 #:use-module (gnu packages graphics)
75 #:use-module (gnu packages gtk)
76 #:use-module (gnu packages guile)
77 #:use-module (gnu packages image)
78 #:use-module (gnu packages imagemagick)
79 #:use-module (gnu packages java)
80 #:use-module (gnu packages libffi)
81 #:use-module (gnu packages linux) ; for alsa-utils
82 #:use-module (gnu packages lirc)
83 #:use-module (gnu packages llvm)
84 #:use-module (gnu packages man)
85 #:use-module (gnu packages mp3)
86 #:use-module (gnu packages mpd)
87 #:use-module (gnu packages ncurses)
88 #:use-module (gnu packages netpbm)
89 #:use-module (gnu packages pcre)
90 #:use-module (gnu packages pdf)
91 #:use-module (gnu packages perl)
92 #:use-module (gnu packages pkg-config)
93 #:use-module (gnu packages pulseaudio) ;libsndfile
94 #:use-module (gnu packages python)
95 #:use-module (gnu packages qt)
96 #:use-module (gnu packages rdf)
97 #:use-module (gnu packages readline)
98 #:use-module (gnu packages rsync)
99 #:use-module (gnu packages sdl)
100 #:use-module (gnu packages tcl)
101 #:use-module (gnu packages texinfo)
102 #:use-module (gnu packages tex)
103 #:use-module (gnu packages tls)
104 #:use-module (gnu packages video)
105 #:use-module (gnu packages web)
106 #:use-module (gnu packages wxwidgets)
107 #:use-module (gnu packages xml)
108 #:use-module (gnu packages xorg)
109 #:use-module (gnu packages xiph)
110 #:use-module ((srfi srfi-1) #:select (last)))
112 (define-public aria-maestosa
114 (name "aria-maestosa")
118 (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/"
119 version "/AriaSrc-" version ".tar.bz2"))
122 "1cs3z6frx2ch7rm5ammx9p0rxcjrbj1vq14hvcbimpaw39rdsn3d"))))
123 (build-system gnu-build-system)
125 `(#:tests? #f ;no tests
127 ;; TODO: Add scons-build-system and use it here.
128 (modify-phases %standard-phases
130 (add-after 'unpack 'scons-propagate-environment
132 ;; By design, SCons does not, by default, propagate
133 ;; environment variables to subprocesses. See:
134 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
135 ;; Here, we modify the SConstruct file to arrange for
136 ;; environment variables to be propagated.
137 (substitute* "SConstruct"
138 (("env = Environment\\(\\)")
139 "env = Environment(ENV=os.environ)")
140 ;; Scons errors out when copying subdirectories from Resources,
141 ;; so we move them instead.
143 ;; We move the "score" and "Documentation" directories at once,
144 ;; so we have to ignore files contained therein.
145 (("if \".svn\" in file" line)
147 " or \"score/\" in file"
148 " or \"Documentation/\" in file")))
150 (replace 'build (lambda _ (zero? (system* "scons"))))
152 (lambda* (#:key outputs #:allow-other-keys)
153 (let ((out (assoc-ref outputs "out")))
155 (zero? (system* "scons"
156 (string-append "prefix=" out)
158 ;; Fix directory permissions
160 (chmod (string-append out "/share/Aria/Documentation") #o555)
161 (chmod (string-append out "/share/Aria/score") #o555)
164 `(("wxwidgets" ,wxwidgets)
166 ("alsa-lib" ,alsa-lib)))
169 ("pkg-config" ,pkg-config)))
170 (home-page "http://ariamaestosa.sourceforge.net/")
171 (synopsis "MIDI sequencer and editor")
173 "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit
174 and play MIDI files with a few clicks in a user-friendly interface offering
175 score, keyboard, guitar, drum and controller views.")
176 (license license:gpl3+)))
185 "https://github.com/" name "/" name "/archive/v"
187 (file-name (string-append name "-" version ".tar.gz"))
190 "0raixgjavkm7hxppzsc5zqbfbh2bhjcmbiplhnsxsmyj8flafyc1"))))
191 (build-system gnu-build-system)
193 `(#:tests? #f ; cmus does not include tests
195 (modify-phases %standard-phases
198 (lambda* (#:key outputs #:allow-other-keys)
199 (let ((out (assoc-ref outputs "out")))
201 ;; It's an idiosyncratic configure script that doesn't
202 ;; understand --prefix=..; it wants prefix=.. instead.
204 (system* "./configure"
205 (string-append "prefix=" out)))))))))
206 ;; TODO: cmus optionally supports the following formats, which haven't yet
207 ;; been added to Guix:
211 ;; - DISCID_LIBS, apparently different from cd-discid which is included in
212 ;; Guix. See <http://sourceforge.net/projects/discid/>
214 `(("pkg-config" ,pkg-config)))
216 `(("alsa-lib" ,alsa-lib)
222 ("libcdio-paranoia" ,libcdio-paranoia)
225 ("libmodplug" ,libmodplug)
226 ("libmpcdec" ,libmpcdec)
227 ("libsamplerate" ,libsamplerate)
228 ("libvorbis" ,libvorbis)
230 ("opusfile" ,opusfile)
231 ("pulseaudio" ,pulseaudio)
232 ("wavpack" ,wavpack)))
233 (home-page "https://cmus.github.io/")
234 (synopsis "Small console music player")
235 (description "Cmus is a small and fast console music player. It supports
236 many input formats and provides a customisable Vi-style user interface.")
237 (license license:gpl2+)))
239 (define-public denemo
245 (uri (string-append "mirror://gnu/denemo/denemo-"
249 "0hggf8c4xcrjcxd5m00r788r7jg7g8ff54w2idfaqpj5j2ix3299"))))
250 (build-system gnu-build-system)
253 (modify-phases %standard-phases
255 ;; Denemo's documentation says to use this command to run its
258 (zero? (system* "make" "-C" "tests" "check"))))
259 (add-before 'build 'set-lilypond
260 ;; This phase sets the default path for lilypond to its current
261 ;; location in the store.
262 (lambda* (#:key inputs #:allow-other-keys)
263 (let* ((lilypond (string-append (assoc-ref inputs "lilypond")
265 (substitute* "src/core/prefops.c"
266 (("g_string_new \\(\"lilypond\"\\);")
267 (string-append "g_string_new (\""
271 (add-after 'install 'correct-filename
272 ;; "graft-derivation/shallow" from the (guix grafts) module runs in
273 ;; the C locale, expecting file names to be ASCII encoded. This
274 ;; phase renames a filename with a Unicode character in it to meet
275 ;; the aforementioned condition.
276 (lambda* (#:key outputs #:allow-other-keys)
277 (let* ((out (assoc-ref outputs "out")))
278 (chdir (string-append
280 "/share/denemo/templates/instruments/woodwind"))
281 (rename-file "Clarinet in B♭.denemo"
282 "Clarinet in Bb.denemo"))
285 `(("glib:bin", glib "bin") ; for gtester
286 ("pkg-config" ,pkg-config)))
288 `(("alsa-lib" ,alsa-lib)
292 ("fluidsynth" ,fluidsynth)
296 ("gtksourceview" ,gtksourceview)
298 ("intltool" ,intltool)
300 ("libsndfile" ,libsndfile)
303 ("lilypond", lilypond)
304 ("portaudio" ,portaudio)
305 ("portmidi" ,portmidi)
306 ("rubberband" ,rubberband)))
307 (synopsis "Graphical music notation, front-end to GNU Lilypond")
309 "GNU Denemo is a music notation editor that provides a convenient
310 interface to the powerful music engraving program Lilypond. Music can be
311 typed in using the computer keyboard, played in using a MIDI keyboard, or
312 even input via a microphone connected to the sound card. The final product
313 is publication-quality music notation that is continuously generated in the
314 background while you work.")
315 (home-page "http://www.denemo.org")
316 (license license:gpl3+)))
318 (define-public hydrogen
325 "https://github.com/hydrogen-music/hydrogen/archive/"
329 "1dy2jfkdw0nchars4xi4isrz66fqn53a9qk13bqza7lhmsg3s3qy"))))
330 (build-system cmake-build-system)
332 `(#:test-target "tests"))
334 `(("cppunit" ,cppunit)
335 ("pkg-config" ,pkg-config)))
337 `(("alsa-lib" ,alsa-lib)
339 ;; ("ladspa" ,ladspa) ; cannot find during configure
341 ("libarchive" ,libarchive)
342 ("libsndfile" ,libsndfile)
347 (home-page "http://www.hydrogen-music.org")
348 (synopsis "Drum machine")
350 "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to
351 enable professional yet simple and intuitive pattern-based drum programming.")
352 (license license:gpl2+)))
354 (define-public extempore
361 "https://github.com/digego/extempore/archive/"
365 "1wap1mvsicrhlazikf7l8zxg37fir8bmnh9rin28m1rix730vcch"))
366 (file-name (string-append name "-" version ".tar.gz"))))
367 (build-system cmake-build-system)
369 `(;; The default target also includes ahead-of-time compilation of the
370 ;; standard libraries. However, during the "install" phase this would
371 ;; happen *again* for unknown reasons. Hence we only build the
372 ;; extempore executable during the build phase.
373 #:make-flags '("extempore")
374 #:configure-flags '("-DJACK=ON"
375 ;; We want to distribute.
377 ;; Don't download any dependencies.
379 #:modules ((ice-9 match)
380 (guix build cmake-build-system)
383 (modify-phases %standard-phases
384 (add-after 'unpack 'patch-directories
385 (lambda* (#:key outputs #:allow-other-keys)
386 ;; Rewrite default path to runtime directory
387 (substitute* "src/Extempore.cpp"
388 (("runtimedir \\+= \"runtime\"")
389 (string-append "runtimedir = \""
390 (assoc-ref outputs "out")
391 "/lib/extempore/runtime\"")))
392 (substitute* "extras/extempore.el"
393 (("\\(runtime-directory \\(concat default-directory \"runtime\"\\)\\)")
394 (string-append "(runtime-directory \""
395 (assoc-ref outputs "out")
396 "/lib/extempore/runtime"
399 (add-after 'unpack 'link-with-additional-libs
401 ;; The executable must be linked with libffi and zlib.
402 (substitute* "CMakeLists.txt"
403 (("add_dependencies\\(aot_extended extended_deps\\)") "")
404 (("target_link_libraries\\(extempore PRIVATE dl" line)
405 (string-append line " ffi z")))
407 ;; FIXME: AOT compilation of the nanovg bindings fail with the error:
408 ;; "Compiler Error could not bind _nvgLinearGradient"
409 (add-after 'unpack 'disable-nanovg
411 (substitute* "CMakeLists.txt"
412 (("aotcompile_lib\\(libs/external/nanovg.xtm.*") ""))
414 ;; FIXME: All examples that are used as tests segfault for some
416 (add-after 'unpack 'disable-broken-tests
418 (substitute* "CMakeLists.txt"
419 (("extempore_add_example_as_test\\(.*") ""))
421 (add-after 'unpack 'hardcode-external-lib-paths
422 (lambda* (#:key inputs #:allow-other-keys)
423 (use-modules (ice-9 match))
426 ((file-name lib pkg-name)
427 (substitute* (string-append "libs/external/" file-name ".xtm")
428 ((lib) (string-append (assoc-ref inputs pkg-name)
430 '(("assimp" "libassimp.so" "assimp")
431 ("portmidi" "libportmidi.so" "portmidi")
432 ("sndfile" "libsndfile.so" "libsndfile")
433 ("fft" "libkiss_fft.so" "kiss-fft")
434 ("stb_image" "libstb_image.so" "stb-image")
435 ("nanovg" "libnanovg.so" "nanovg")
436 ("glext" "libGL.so" "mesa")
437 ("glfw3" "libglfw.so" "glfw")
438 ("gl/glcore-directbind" "libGL.so" "mesa")
439 ("gl/glcompat-directbind" "libGL.so" "mesa")))
441 (add-after 'unpack 'use-own-llvm
442 (lambda* (#:key inputs #:allow-other-keys)
443 (setenv "EXT_LLVM_DIR" (assoc-ref inputs "llvm"))
444 ;; Our LLVM builds shared libraries, so Extempore should use
446 (substitute* "CMakeLists.txt"
447 (("CMAKE_STATIC_LIBRARY") "CMAKE_SHARED_LIBRARY"))
449 (add-after 'unpack 'fix-aot-compilation
450 (lambda* (#:key outputs #:allow-other-keys)
451 (substitute* "CMakeLists.txt"
452 ;; EXT_SHARE_DIR does not exist before installation, so the
453 ;; working directory should be the source directory instead.
454 (("WORKING_DIRECTORY \\$\\{EXT_SHARE_DIR\\}")
455 "WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}")
456 ;; Extempore needs to be told where the runtime is to be found.
457 ;; While we're at it we disable automatic tuning for a specific
458 ;; CPU to make binary substitution possible.
459 (("COMMAND extempore" prefix)
460 (string-append prefix " --sharedir " (getcwd)
461 " --mcpu=generic --attr=none")))
464 `(("llvm" ,llvm-for-extempore)
467 ("libsndfile" ,libsndfile)
470 ("stb-image" ,stb-image-for-extempore)
471 ("kiss-fft" ,kiss-fft-for-extempore)
472 ("nanovg" ,nanovg-for-extempore)
473 ("portmidi" ,portmidi-for-extempore)
475 ("alsa-lib" ,alsa-lib)
476 ("portaudio" ,portaudio)
482 ("emacs" ,emacs-no-x)))
483 ;; Extempore refuses to build on architectures other than x86_64
484 (supported-systems '("x86_64-linux"))
485 (home-page "http://digego.github.io/extempore/")
486 (synopsis "Programming environment for live coding of multimedia")
488 "Extempore is a programming language and runtime environment designed
489 with live programming in mind. It supports interactive programming in a REPL
490 style, compiling and binding code just-in-time. Although Extempore has its
491 roots in 'live coding' of audiovisual media art, it is suitable for any task
492 domain where dynamic run-time modifiability and good numerical performance are
493 required. Extempore also has strong timing and concurrency semantics, which
494 are helpful when working in problem spaces where timing is important (such as
496 (license license:bsd-2)))
504 (uri (string-append "http://das.nasophon.de/download/klick-"
508 "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j"))))
509 (build-system gnu-build-system)
511 `(#:tests? #f ;no "check" target
513 ;; TODO: Add scons-build-system and use it here.
514 (modify-phases %standard-phases
517 (lambda* (#:key inputs outputs #:allow-other-keys)
518 (let ((out (assoc-ref outputs "out")))
520 (zero? (system* "scons" (string-append "PREFIX=" out))))))
521 (replace 'install (lambda _ (zero? (system* "scons" "install")))))))
525 ("libsndfile" ,libsndfile)
526 ("libsamplerate" ,libsamplerate)
528 ("rubberband" ,rubberband)))
532 ("pkg-config" ,pkg-config)))
533 (home-page "http://das.nasophon.de/klick/")
534 (synopsis "Metronome for JACK")
536 "klick is an advanced command-line based metronome for JACK. It allows
537 you to define complex tempo maps for entire songs or performances.")
538 (license license:gpl2+)))
540 (define-public gtklick
546 (uri (string-append "http://das.nasophon.de/download/gtklick-"
550 "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp"))))
551 (build-system python-build-system)
553 `(#:tests? #f ; no tests
556 (modify-phases %standard-phases
557 (add-before 'build 'add-sitedirs
558 ;; .pth files are not automatically interpreted unless the
559 ;; directories containing them are added as "sites". The directories
560 ;; are then added to those in the PYTHONPATH. This is required for
561 ;; the operation of pygtk.
563 (substitute* "gtklick/gtklick.py"
565 "import pygtk, site, sys
566 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))))
567 (add-after 'unpack 'inject-store-path-to-klick
568 (lambda* (#:key inputs #:allow-other-keys)
569 (substitute* "gtklick/klick_backend.py"
570 (("KLICK_PATH = 'klick'")
571 (string-append "KLICK_PATH = '"
572 (assoc-ref inputs "klick")
577 ("python2-pyliblo" ,python2-pyliblo)
578 ("python2-pygtk" ,python2-pygtk)))
580 `(("gettext" ,gettext-minimal)))
581 (home-page "http://das.nasophon.de/gtklick/")
582 (synopsis "Simple metronome with an easy-to-use graphical interface")
584 "Gtklick is a simple metronome with an easy-to-use graphical user
585 interface. It is implemented as a frontend to @code{klick}.")
586 (license license:gpl2+)))
588 (define-public libgme
594 (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/"
595 "downloads/game-music-emu-" version
599 "08fk7zddpn7v93d0fa7fcypx7hvgwx9b5psj9l6m8b87k2hbw4fw"))))
600 (build-system cmake-build-system)
602 '(#:tests? #f)) ; no check target
603 (home-page "https://bitbucket.org/mpyne/game-music-emu")
604 (synopsis "Video game music file playback library")
606 "Game-music-emu is a collection of video game music file emulators that
607 support the following formats and systems:
610 ZX Spectrum/Asmtrad CPC
614 Sega Genesis/Mega Drive
616 NEC TurboGrafx-16/PC Engine
618 MSX Home Computer/other Z80 systems (doesn't support FM sound)
620 Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
622 Atari systems using POKEY sound chip
624 Super Nintendo/Super Famicom
626 Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
628 (license (list license:lgpl2.1+
629 ;; demo and player directories are under the Expat license
632 (define-public lilypond
639 "http://download.linuxaudio.org/lilypond/sources/v"
640 (version-major+minor version) "/"
641 name "-" version ".tar.gz"))
644 "0hwv7m1lzyhjiyxqhqfdrrrpx475jhiwckrnxbjbv3ynhyzkngw0"))))
645 (build-system gnu-build-system)
647 `(#:tests? #f ; out-test/collated-files.html fails
649 #:make-flags '("conf=www") ;to generate images for info manuals
651 (list "CONFIGURATION=www"
652 (string-append "--with-texgyre-dir="
653 (assoc-ref %build-inputs "font-tex-gyre")
654 "/share/fonts/opentype/"))
656 (modify-phases %standard-phases
657 (add-after 'unpack 'use-texlive-union
659 ;; FIXME: fonts are not found and have to be generated in HOME.
660 (setenv "HOME" "/tmp")
661 ;; The test for the "lh" package fails, even though it is among
663 (substitute* "configure"
664 (("TEX_FIKPARM=.*") "TEX_FIKPARM=found\n"))
666 (add-after 'unpack 'fix-path-references
668 (substitute* "scm/backend-library.scm"
669 (("\\(search-executable '\\(\"gs\"\\)\\)")
670 (string-append "\"" (which "gs") "\""))
672 (string-append "\"" (which "sh") "\"")))
674 (add-before 'configure 'prepare-configuration
676 (substitute* "configure"
677 (("SHELL=/bin/sh") "SHELL=sh")
678 ;; When checking the fontforge version do not consider the
679 ;; version string that's part of the directory.
680 (("head -n") "tail -n"))
682 (setenv "conf" "www")
684 (add-after 'install 'install-info
686 (zero? (system* "make"
687 "-j" (number->string (parallel-job-count))
688 "conf=www" "install-info")))))))
690 `(("guile" ,guile-1.8)
691 ("font-dejavu" ,font-dejavu)
692 ("font-tex-gyre" ,font-tex-gyre)
693 ("fontconfig" ,fontconfig)
694 ("freetype" ,freetype)
695 ("ghostscript" ,ghostscript)
697 ("python" ,python-2)))
702 ("fontforge" ,fontforge)
704 ("gettext" ,gettext-minimal)
705 ("imagemagick" ,imagemagick)
706 ("netpbm" ,netpbm) ;for pngtopnm
707 ("texlive" ,(texlive-union (list texlive-metapost
710 texlive-latex-cyrillic)))
712 ("texi2html" ,texi2html)
714 ("pkg-config" ,pkg-config)
716 (home-page "http://www.lilypond.org/")
717 (synopsis "Music typesetting")
719 "GNU LilyPond is a music typesetter, which produces high-quality sheet
720 music. Music is input in a text file containing control sequences which are
721 interpreted by LilyPond to produce the final document. It is extendable with
723 (license license:gpl3+)
725 ;; On armhf and mips64el, building the documentation sometimes leads to
726 ;; more than an hour of silence, so double the max silent time.
727 (properties `((max-silent-time . 7200)))))
729 (define-public non-sequencer
730 ;; The latest tagged release is three years old and uses a custom build
731 ;; system, so we take the last commit.
732 (let ((commit "10c31e57291b6e42be53371567a722b62b32d220")
735 (name "non-sequencer")
736 (version (string-append "1.9.5-" revision "." (string-take commit 7)))
740 (url "git://git.tuxfamily.org/gitroot/non/non.git")
744 "080rha4ffp7qycyg1mqcf4vj0s7z8qfvz6bxm0w29xgg2kkmb3fx"))
745 (file-name (string-append name "-" version "-checkout"))))
746 (build-system waf-build-system)
748 `(#:tests? #f ;no "check" target
750 (list "--project=sequencer"
751 ;; Disable the use of SSE unless on x86_64.
752 ,@(if (not (string-prefix? "x86_64" (or (%current-target-system)
757 (modify-phases %standard-phases
759 'configure 'set-flags
761 ;; Compile with C++11, required by libsigc++.
762 (setenv "CXXFLAGS" "-std=c++11")
767 ("libsigc++" ,libsigc++)
771 `(("pkg-config" ,pkg-config)))
772 (home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer")
773 (synopsis "Pattern-based MIDI sequencer")
775 "The Non Sequencer is a powerful, lightweight, real-time,
776 pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for
777 MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non
778 Sequencer happens on-line, in real-time. Music can be composed live, while the
779 transport is rolling.")
780 (license license:gpl2+))))
782 (define-public non-session-manager
783 (package (inherit non-sequencer)
784 (name "non-session-manager")
786 (substitute-keyword-arguments (package-arguments non-sequencer)
787 ((#:configure-flags flags)
788 `(cons "--project=session-manager"
789 (delete "--project=sequencer" ,flags)))))
795 `(("pkg-config" ,pkg-config)))
796 (home-page "http://non.tuxfamily.org/nsm/")
797 (synopsis "Audio session management")
799 "The Non Session Manager is an API and an implementation for audio
800 session management. NSM clients use a well-specified OSC protocol to
801 communicate with the session management daemon.")
802 (license license:gpl2+)))
804 (define-public non-mixer
805 (package (inherit non-sequencer)
808 (substitute-keyword-arguments (package-arguments non-sequencer)
809 ((#:configure-flags flags)
810 `(cons "--project=mixer"
811 (delete "--project=sequencer" ,flags)))))
819 `(("pkg-config" ,pkg-config)))
820 (home-page "http://non.tuxfamily.org/wiki/Non%20Mixer")
821 (synopsis "Modular digital audio mixer")
823 "The Non Mixer is a powerful, reliable and fast modular digital audio
824 mixer. It utilizes JACK for inter-application audio I/O and the NTK GUI
825 toolkit for a fast and lightweight user interface. Non Mixer can be used
826 alone or in concert with Non Timeline and Non Sequencer to form a complete
828 (license license:gpl2+)))
830 (define-public non-timeline
831 (package (inherit non-sequencer)
832 (name "non-timeline")
834 (substitute-keyword-arguments (package-arguments non-sequencer)
835 ((#:configure-flags flags)
836 `(cons "--project=timeline"
837 (delete "--project=sequencer" ,flags)))))
841 ("libsndfile" ,libsndfile)
844 `(("pkg-config" ,pkg-config)))
845 (home-page "http://non.tuxfamily.org/wiki/Non%20Timeline")
846 (synopsis "Modular digital audio timeline arranger")
848 "The Non Timeline is a powerful, reliable and fast modular digital audio
849 timeline arranger. It utilizes JACK for inter-application audio I/O and the
850 NTK GUI toolkit for a fast and lightweight user interface. Non Timeline can
851 be used alone or in concert with Non Mixer and Non Sequencer to form a
853 (license license:gpl2+)))
855 (define-public solfege
862 "mirror://gnu/solfege/solfege-"
866 "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i"))))
867 (build-system gnu-build-system)
869 `(#:tests? #f ; xmllint attempts to download DTD
872 (modify-phases %standard-phases
873 (add-after 'unpack 'fix-configuration
874 (lambda* (#:key inputs #:allow-other-keys)
875 (substitute* "default.config"
877 (string-append "csound="
878 (assoc-ref inputs "csound")
881 (string-append (assoc-ref inputs "aplay")
883 (("/usr/bin/timidity")
884 (string-append (assoc-ref inputs "timidity")
887 (string-append (assoc-ref inputs "mpg123")
890 (string-append (assoc-ref inputs "ogg123")
893 (add-before 'build 'patch-python-shebangs
895 ;; Two python scripts begin with a Unicode BOM, so patch-shebang
897 (substitute* '("solfege/parsetree.py"
898 "solfege/presetup.py")
899 (("#!/usr/bin/python") (string-append "#!" (which "python"))))
901 (add-before 'build 'add-sitedirs
902 ;; .pth files are not automatically interpreted unless the
903 ;; directories containing them are added as "sites". The directories
904 ;; are then added to those in the PYTHONPATH. This is required for
905 ;; the operation of pygtk and pygobject.
907 (substitute* "run-solfege.py"
910 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))
912 (add-before 'build 'adjust-config-file-prefix
913 (lambda* (#:key outputs #:allow-other-keys)
914 (substitute* "run-solfege.py"
915 (("prefix = os.path.*$")
916 (string-append "prefix = " (assoc-ref outputs "out"))))
918 (add-after 'install 'wrap-program
919 (lambda* (#:key inputs outputs #:allow-other-keys)
920 ;; Make sure 'solfege' runs with the correct PYTHONPATH.
921 (let* ((out (assoc-ref outputs "out"))
922 (path (getenv "PYTHONPATH")))
923 (wrap-program (string-append out "/bin/solfege")
924 `("PYTHONPATH" ":" prefix (,path))))
927 `(("python" ,python-2)
928 ("pygtk" ,python2-pygtk)
929 ("gettext" ,gettext-minimal)
931 ("lilypond" ,lilypond)
932 ;; players needed at runtime
933 ("aplay" ,alsa-utils)
934 ("csound" ,csound) ; optional, needed for some exercises
936 ("ogg123" ,vorbis-tools)
937 ("timidity" ,timidity++)))
939 `(("pkg-config" ,pkg-config)
941 ("libxml2" ,libxml2) ; for tests
942 ("ghostscript" ,ghostscript)
943 ("texinfo" ,texinfo)))
944 (home-page "https://www.gnu.org/software/solfege/")
945 (synopsis "Ear training")
947 "GNU Solfege is a program for practicing musical ear-training. With it,
948 you can practice your recognition of various musical intervals and chords. It
949 features a statistics overview so you can monitor your progress across several
950 sessions. Solfege is also designed to be extensible so you can easily write
952 (license license:gpl3+)))
954 (define-public powertabeditor
956 (name "powertabeditor")
957 (version "2.0.0-alpha10")
961 "https://github.com/powertab/powertabeditor/archive/"
963 (file-name (string-append name "-" version ".tar.gz"))
966 "1fr14ql0yhlqvh6y08yaanszm2nvca5i50rqym396kfvga3ky18x"))
967 (modules '((guix build utils)))
970 ;; Remove bundled sources for external libraries
971 (delete-file-recursively "external")
972 ;; Use only system libraries
973 (substitute* "CMakeLists.txt"
974 (("include\\( PTE_ThirdParty \\)")
976 include(third_party/Qt)
977 include(third_party/boost)
978 add_library( Catch INTERFACE IMPORTED )
979 add_library( rapidjson INTERFACE IMPORTED )"))
981 (build-system cmake-build-system)
983 `(#:modules ((guix build cmake-build-system)
987 ;; CMake appears to lose the RUNPATH for some reason, so it has to be
988 ;; explicitly set with CMAKE_INSTALL_RPATH.
989 (list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
990 (string-append "-DCMAKE_INSTALL_RPATH="
991 (string-join (map (match-lambda
993 (string-append directory "/lib")))
995 "-DPTE_DATA_DIR=share/powertabeditor")
997 (modify-phases %standard-phases
1000 (zero? (system* "bin/pte_tests"
1001 ;; FIXME: these tests fail
1002 "exclude:Actions/EditStaff"
1003 "exclude:Formats/PowerTabOldImport/MergeMultiBarRests"
1004 "exclude:Score/ViewFilter/FilterRule"
1005 "exclude:Score/ViewFilter/ViewFilter"
1006 "exclude:Formats/PowerTabOldImport/Directions"
1008 (add-before 'configure 'remove-third-party-libs
1009 (lambda* (#:key inputs #:allow-other-keys)
1010 ;; Link with required static libraries, because we're not
1011 ;; using the bundled version of withershins.
1012 ;; Also add pthread for fixing a linker error.
1013 (substitute* "source/build/CMakeLists.txt"
1014 (("withershins" line)
1015 (string-append line "\n"
1016 (assoc-ref inputs "binutils")
1018 (assoc-ref inputs "libiberty")
1019 "/lib/libiberty.a\n"
1026 ("alsa-lib" ,alsa-lib)
1028 ("withershins" ,withershins)
1029 ("libiberty" ,libiberty) ;for withershins
1030 ("binutils" ,binutils) ;for -lbfd and -liberty (for withershins)
1031 ("timidity" ,timidity++)
1032 ("pugixml" ,pugixml)
1034 ("rapidjson" ,rapidjson)
1037 `(("catch" ,catch-framework)
1038 ("pkg-config" ,pkg-config)))
1039 (home-page "http://powertabs.net")
1040 (synopsis "Guitar tablature editor")
1042 "Power Tab Editor 2.0 is the successor to the famous original Power Tab
1043 Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
1044 (license license:gpl3+)))
1046 (define-public jalv-select
1048 (name "jalv-select")
1052 (uri (string-append "https://github.com/brummer10/jalv_select/"
1053 "archive/V" version ".tar.gz"))
1056 "0zraagwr681b5s3qifxf399c7q93jz23c8sr42gmff9zqnvxc75q"))))
1057 (build-system gnu-build-system)
1060 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1062 (modify-phases %standard-phases
1064 (add-after 'unpack 'ignore-PATH
1065 (lambda* (#:key inputs #:allow-other-keys)
1066 (substitute* "jalv.select.cpp"
1067 (("echo \\$PATH.*tr ':'.*xargs ls")
1068 (string-append "ls -1 " (assoc-ref inputs "jalv") "/bin")))
1069 (substitute* "jalv.select.h"
1070 (("gtkmm.h") "gtkmm-2.4/gtkmm.h"))
1076 ("gtkmm" ,gtkmm-2)))
1078 `(("pkg-config" ,pkg-config)))
1079 (home-page "https://github.com/brummer10/jalv_select")
1080 (synopsis "GUI to select LV2 plugins and run them with jalv")
1082 "The jalv.select package provides a graphical user interface allowing
1083 users to select LV2 plugins and run them with jalv.")
1084 (license license:public-domain)))
1086 (define-public synthv1
1093 (string-append "mirror://sourceforge/synthv1/synthv1/" version
1094 "/synthv1-" version ".tar.gz"))
1097 "1yqh7jx431q01f15b3h4dh038yvmc4jcsr3vn2175kqgwfj9jqcg"))))
1098 (build-system gnu-build-system)
1100 `(#:tests? #f ; There are no tests.
1102 '("CXXFLAGS=-std=gnu++11")))
1106 ("alsa-lib" ,alsa-lib)
1107 ("non-session-manager" ,non-session-manager)
1110 ("qttools" ,qttools)))
1112 `(("pkg-config" ,pkg-config)))
1113 (home-page "http://synthv1.sourceforge.net")
1114 (synopsis "Polyphonic subtractive synthesizer")
1116 "Synthv1 is an old-school subtractive polyphonic synthesizer with four
1117 oscillators and stereo effects.")
1118 (license license:gpl2+)))
1120 (define-public drumkv1
1127 (string-append "mirror://sourceforge/drumkv1/drumkv1/" version
1128 "/drumkv1-" version ".tar.gz"))
1131 "0rvdvc81j4b4n64i7jmk58khry28al8p73g71srdv1kw7j65f2zv"))))
1132 (build-system gnu-build-system)
1134 `(#:tests? #f ; There are no tests.
1136 '("CXXFLAGS=-std=gnu++11")))
1140 ("libsndfile" ,libsndfile)
1141 ("alsa-lib" ,alsa-lib)
1142 ("non-session-manager" ,non-session-manager)
1144 ("qtbase" ,qtbase)))
1146 `(("pkg-config" ,pkg-config)
1147 ("qttools" ,qttools)))
1148 (home-page "http://drumkv1.sourceforge.net")
1149 (synopsis "Drum-kit sampler synthesizer with stereo effects")
1151 "Drumkv1 is an old-school drum-kit sampler synthesizer with stereo
1153 (license license:gpl2+)))
1155 (define-public samplv1
1162 (string-append "mirror://sourceforge/samplv1/samplv1/" version
1163 "/samplv1-" version ".tar.gz"))
1166 "1lbxrn24fg1z659zbaakzq6z8gbax6z16di9v9bhhslk8w2mndik"))))
1167 (build-system gnu-build-system)
1169 `(#:tests? #f ; There are no tests.
1171 '("CXXFLAGS=-std=gnu++11")))
1175 ("libsndfile" ,libsndfile)
1176 ("alsa-lib" ,alsa-lib)
1177 ("non-session-manager" ,non-session-manager)
1179 ("qtbase" ,qtbase)))
1181 `(("pkg-config" ,pkg-config)
1182 ("qttools" ,qttools)))
1183 (home-page "http://samplv1.sourceforge.net")
1184 (synopsis "Polyphonic sampler synthesizer with stereo effects")
1186 "Samplv1 is an old-school polyphonic sampler synthesizer with stereo
1188 (license license:gpl2+)))
1190 (define-public amsynth
1197 (uri (string-append "https://github.com/amsynth/amsynth/releases/"
1198 "download/release-" version
1199 "/amsynth-" version ".tar.bz2"))
1202 "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
1203 (build-system gnu-build-system)
1206 (modify-phases %standard-phases
1207 (add-before 'configure 'set-flags
1209 ;; Compile with C++11, required by gtkmm.
1210 (setenv "CXXFLAGS" "-std=c++11")
1213 `(("alsa-lib" ,alsa-lib)
1217 ("libsndfile" ,libsndfile)
1219 ("gtkmm" ,gtkmm-2)))
1221 `(("pkg-config" ,pkg-config)
1222 ("intltool" ,intltool)))
1223 (home-page "http://amsynth.github.io")
1224 (synopsis "Analog modeling synthesizer")
1226 "amsynth is an easy-to-use software synthesizer with a classic
1227 subtractive synthesizer topology. Its features include: dual
1228 oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct
1229 resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato
1230 keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO
1231 which can modulate the oscillators, filter, and amplitude; distortion and
1233 (license license:gpl2+)))
1235 (define-public setbfree
1242 (string-append "https://github.com/pantherb/setBfree/archive/v"
1244 (file-name (string-append name "-" version ".tar.gz"))
1247 "1g4s1920kb2q5gpp82l2vxia29qa8g8zvdjgrca8ypynvxpzn65f"))))
1248 (build-system gnu-build-system)
1250 `(#:tests? #f ; no "check" target
1252 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1253 (string-append "FONTFILE="
1254 (assoc-ref %build-inputs "font-bitstream-vera")
1255 "/share/fonts/truetype/VeraBd.ttf")
1256 ;; Disable unsupported optimization flags on non-x86
1257 ,@(let ((system (or (%current-target-system)
1258 (%current-system))))
1259 (if (or (string-prefix? "x86_64" system)
1260 (string-prefix? "i686" system))
1262 '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
1264 (modify-phases %standard-phases
1265 (add-before 'build 'set-CC-variable
1266 (lambda _ (setenv "CC" "gcc") #t))
1267 (delete 'configure))))
1271 ("zita-convolver" ,zita-convolver)
1274 ("font-bitstream-vera" ,font-bitstream-vera)))
1276 `(("help2man" ,help2man)
1277 ("pkg-config" ,pkg-config)))
1278 (home-page "http://setbfree.org")
1279 (synopsis "Tonewheel organ")
1281 "setBfree is a MIDI-controlled, software synthesizer designed to imitate
1282 the sound and properties of the electromechanical organs and sound
1283 modification devices that brought world-wide fame to the names and products of
1284 Laurens Hammond and Don Leslie.")
1285 (license license:gpl2+)))
1287 (define-public beast
1293 (uri (string-append "https://testbit.eu/pub/dists/beast/beast-"
1297 "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn"))))
1298 (build-system gnu-build-system)
1300 '(#:parallel-build? #f)) ; Race conditions cause build failures
1302 `(("rapicorn" ,rapicorn)
1303 ("guile" ,guile-1.8)
1304 ("python" ,python-2)
1305 ("libgnomecanvas" ,libgnomecanvas)
1309 ("alsa-lib" ,alsa-lib)
1310 ("libvorbis" ,libvorbis)
1311 ("gettext" ,gettext-minimal)))
1313 `(("pkg-config" ,pkg-config)
1314 ("glib:bin" ,glib "bin")
1315 ("cython" ,python2-cython)
1317 ("perl-xml-parser" ,perl-xml-parser)))
1318 (home-page "https://testbit.eu/wiki/Beast_Home")
1319 (synopsis "Music composition and modular synthesis environment")
1321 "Beast is a music composition and modular synthesis application. It
1322 supports a wide range of standards in the field, such as MIDI, various audio
1323 file formats and LADSPA modules. It allows for multitrack editing, real-time
1324 synthesis, 32bit audio rendering, precise timing down to sample granularity,
1325 on-demand and partial loading of wave files, on the fly decoding, stereo
1326 mixing, FFT scopes, MIDI automation and full scriptability in Scheme.")
1327 (license license:gpl3+)))
1329 (define-public bristol
1335 (uri (string-append "mirror://sourceforge/bristol/bristol/"
1336 (version-major+minor version)
1337 "/bristol-" version ".tar.gz"))
1340 "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
1341 (build-system gnu-build-system)
1344 (modify-phases %standard-phases
1345 (add-after 'unpack 'remove-sse-flags
1346 (lambda* (#:key system #:allow-other-keys)
1347 (when (not (or (string-prefix? "x86_64" system)
1348 (string-prefix? "i686" system)))
1349 (substitute* "bristol/Makefile.in"
1350 (("-msse -mfpmath=sse") "")))
1352 ;; alsa-lib 1.1.x no longer provides iatomic.h. That's okay because
1353 ;; bristol actually doesn't use it.
1354 (add-after 'unpack 'do-not-use-alsa-iatomic
1356 (substitute* "libbristolaudio/audioEngineJack.c"
1357 (("#include <alsa/iatomic.h>") ""))
1359 ;; We know that Bristol has been linked with JACK and we don't have
1360 ;; ldd, so we can just skip this check.
1361 (add-after 'unpack 'do-not-grep-for-jack
1363 (substitute* "bin/startBristol.in"
1364 (("ldd `which bristol` | grep jack") "echo guix"))
1367 `(("alsa-lib" ,alsa-lib)
1370 ("libx11" ,libx11)))
1372 `(("pkg-config" ,pkg-config)))
1373 (home-page "http://bristol.sourceforge.net/")
1374 (synopsis "Synthesizer emulator")
1376 "Bristol is an emulation package for a number of different 'classic'
1377 synthesizers including additive and subtractive and a few organs. The
1378 application consists of the engine, which is called bristol, and its own GUI
1379 library called brighton that represents all the emulations. There are
1380 currently more than twenty different emulations; each does sound different
1381 although the author maintains that the quality and accuracy of each emulation
1383 (license license:gpl3+)))
1385 (define-public tuxguitar
1392 "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-"
1393 version "/tuxguitar-" version "-src.tar.gz"))
1396 "041275vwfr82kass7wiq9g2y82w9qrbzfinzcvfij2f2q45njwmc"))
1397 (modules '((guix build utils)))
1400 ;; Delete pre-built classes
1401 (delete-file-recursively "TuxGuitar-android-gdrive/bin")
1402 (delete-file-recursively "TuxGuitar-android-gdrive-gdaa/bin")
1404 (build-system ant-build-system)
1406 `(#:build-target "build"
1407 #:tests? #f ; no tests
1409 (modify-phases %standard-phases
1410 (add-after 'unpack 'enter-dir
1411 (lambda _ (chdir "TuxGuitar-lib") #t))
1412 (add-after 'build 'build-libraries
1413 (lambda* (#:key inputs outputs #:allow-other-keys)
1414 (let* ((initial-classpath (getenv "CLASSPATH"))
1415 (build-dir (lambda (dir)
1418 (string-join (cons initial-classpath
1419 (find-files (getcwd) "\\.jar$"))
1422 (if (file-exists? "build.xml")
1423 ((assoc-ref %standard-phases 'build)
1424 #:build-target "build")
1426 ;; Generate default build.xml
1427 ((@@ (guix build ant-build-system) default-build.xml)
1428 (string-append (string-downcase dir) ".jar")
1429 (string-append (assoc-ref outputs "out")
1431 ((assoc-ref %standard-phases 'build)))))))
1432 (map build-dir '("TuxGuitar-editor-utils"
1433 "TuxGuitar-ui-toolkit"
1434 "TuxGuitar-ui-toolkit-swt"
1435 "TuxGuitar-awt-graphics")))))
1436 (add-after 'build-libraries 'build-application
1438 (chdir "../TuxGuitar")
1439 ((assoc-ref %standard-phases 'build)
1440 #:build-target "build")))
1442 (lambda* (#:key inputs outputs #:allow-other-keys)
1443 (let* ((out (assoc-ref outputs "out"))
1444 (bin (string-append out "/bin"))
1445 (share (string-append out "/share"))
1446 (lib (string-append share "/java"))
1447 (swt (assoc-ref inputs "java-swt")))
1450 (for-each (lambda (file)
1451 (install-file file lib))
1452 (find-files ".." "\\.jar$"))
1454 ;; install all resources
1455 (copy-recursively "share" share)
1458 (call-with-output-file (string-append bin "/tuxguitar")
1460 (let ((classpath (string-join (append (find-files lib "\\.jar$")
1461 (find-files swt "\\.jar$"))
1465 (string-append "#!/bin/sh\n"
1468 " -Dtuxguitar.home.path=" out
1469 " -Dtuxguitar.share.path=" out "/share"
1470 " -Dswt.library.path=" swt "/lib"
1471 " org.herac.tuxguitar.app.TGMainSingleton"
1472 " \"$1\" \"$2\"")))))
1473 (chmod (string-append bin "/tuxguitar") #o555)
1476 `(("java-swt" ,java-swt)))
1477 (home-page "http://tuxguitar.pw")
1478 (synopsis "Multitrack tablature editor and player")
1480 "TuxGuitar is a guitar tablature editor with player support through midi.
1481 It can display scores and multitrack tabs. TuxGuitar provides various
1482 additional features, including autoscrolling while playing, note duration
1483 management, bend/slide/vibrato/hammer-on/pull-off effects, support for
1484 tuplets, time signature management, tempo management, gp3/gp4/gp5 import and
1486 (license license:lgpl2.1+)))
1495 (string-append "http://msp.ucsd.edu/Software/pd-"
1496 version ".src.tar.gz"))
1499 "0k5s949kqd7yw97h3m8z81bjz32bis9m4ih8df1z0ymipnafca67"))))
1500 (build-system gnu-build-system)
1502 `(#:tests? #f ; no "check" target
1504 (modify-phases %standard-phases
1505 (add-before 'configure 'fix-wish-path
1507 (substitute* "src/s_inter.c"
1508 ((" wish ") (string-append " " (which "wish8.6") " ")))
1509 (substitute* "tcl/pd-gui.tcl"
1510 (("exec wish ") (string-append "exec " (which "wish8.6") " ")))
1512 (add-after 'unpack 'autoconf
1513 (lambda _ (zero? (system* "bash" "./autogen.sh")))))))
1515 `(("autoconf" ,autoconf)
1516 ("automake" ,automake)
1517 ("libtool" ,libtool)
1518 ("gettext" ,gettext-minimal)
1519 ("pkg-config" ,pkg-config)))
1522 ("alsa-lib" ,alsa-lib)
1524 (home-page "http://puredata.info")
1525 (synopsis "Visual programming language for artistic performances")
1527 "Pure Data (aka Pd) is a visual programming language. Pd enables
1528 musicians, visual artists, performers, researchers, and developers to create
1529 software graphically, without writing lines of code. Pd is used to process
1530 and generate sound, video, 2D/3D graphics, and interface sensors, input
1531 devices, and MIDI. Pd can easily work over local and remote networks to
1532 integrate wearable technology, motor systems, lighting rigs, and other
1533 equipment. Pd is suitable for learning basic multimedia processing and visual
1534 programming methods as well as for realizing complex systems for large-scale
1536 (license license:bsd-3)))
1538 (define-public portmidi
1544 (uri (string-append "mirror://sourceforge/portmedia/portmidi/"
1545 version "/portmidi-src-" version ".zip"))
1548 "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88"))
1549 (patches (list (search-patch "portmidi-modular-build.patch")))))
1550 (build-system cmake-build-system)
1552 `(#:tests? #f ; tests cannot be linked
1554 (list "-DPORTMIDI_ENABLE_JAVA=Off"
1555 "-DCMAKE_BUILD_TYPE=Release" ; needed to have PMALSA set
1556 "-DPORTMIDI_ENABLE_TEST=Off"))) ; tests fail linking
1558 `(("alsa-lib" ,alsa-lib)))
1560 `(("unzip" ,unzip)))
1561 (home-page "http://portmedia.sourceforge.net/portmidi/")
1562 (synopsis "Library for MIDI I/O")
1564 "PortMidi is a library supporting real-time input and output of MIDI data
1565 using a system-independent interface.")
1566 (license license:expat)))
1568 (define-public portmidi-for-extempore
1569 (package (inherit portmidi)
1570 (name "portmidi-for-extempore")
1574 (uri (string-append "https://github.com/extemporelang/portmidi/"
1575 "archive/" version ".tar.gz"))
1576 (file-name (string-append name "-" version ".tar.gz"))
1579 "0gjikwciyr8kk4y3qiv1pcq58xpgw38ql1m2gs6g0qc1s8sx4235"))))
1580 (build-system cmake-build-system)
1581 (arguments `(#:tests? #f)) ; no tests
1583 ;; Extempore refuses to build on architectures other than x86_64
1584 (supported-systems '("x86_64-linux"))
1585 (home-page "https://github.com/extemporelang/portmidi/")))
1587 (define-public python-pyportmidi
1589 (name "python-pyportmidi")
1590 (version (package-version portmidi))
1591 (source (package-source portmidi))
1592 (build-system python-build-system)
1594 `(#:tests? #f ; no tests included
1596 (modify-phases %standard-phases
1597 (add-after 'unpack 'enter-dir
1598 (lambda _ (chdir "pm_python") #t))
1599 (add-after 'enter-dir 'fix-setup.py
1601 (substitute* "setup.py"
1602 ;; Use Python 3 syntax
1603 (("print (\".*\")" _ text)
1604 (string-append "print(" text ")\n"))
1605 ;; TODO.txt and CHANGES.txt don't exist
1606 (("CHANGES =.*") "CHANGES = \"\"\n")
1607 (("TODO =.*") "TODO = \"\"\n"))
1610 `(("portmidi" ,portmidi)
1611 ("alsa-lib" ,alsa-lib)))
1613 `(("python-cython" ,python-cython)
1615 (home-page "http://portmedia.sourceforge.net/portmidi/")
1616 (synopsis "Python bindings to PortMidi")
1618 "This package provides Python bindings to the PortMidi library.")
1619 (license license:expat)))
1621 (define-public frescobaldi
1623 (name "frescobaldi")
1628 "https://github.com/wbsoft/frescobaldi/releases/download/v"
1629 version "/frescobaldi-" version ".tar.gz"))
1632 "15cqhbjbjikr7ljgiq56bz2gxrr38j8p0f78p2vhyzydaviy9a2z"))))
1633 (build-system python-build-system)
1634 (arguments `(#:tests? #f)) ; no tests included
1636 `(("lilypond" ,lilypond)
1637 ("portmidi" ,portmidi)
1638 ("python-pyqt" ,python-pyqt)
1639 ("python-ly" ,python-ly)
1640 ("python-pyportmidi" ,python-pyportmidi)
1641 ("poppler" ,poppler)
1642 ("python-poppler-qt5" ,python-poppler-qt5)
1643 ("python-sip" ,python-sip)))
1644 (home-page "http://www.frescobaldi.org/")
1645 (synopsis "LilyPond sheet music text editor")
1647 "Frescobaldi is a LilyPond sheet music text editor with syntax
1648 highlighting and automatic completion. Among other things, it can render
1649 scores next to the source, can capture input from MIDI or read MusicXML and
1650 ABC files, has a MIDI player for proof-listening, and includes a documentation
1652 (license license:gpl2+)))
1654 (define-public drumstick
1660 (uri (string-append "mirror://sourceforge/drumstick/"
1661 version "/drumstick-" version ".tar.bz2"))
1664 "13pkfqrav30bbcddgf1imd7jk6lpqbxkz1qv31718pdl446jq7df"))))
1665 (build-system cmake-build-system)
1667 `(#:tests? #f ; no test target
1668 #:configure-flags '("-DLIB_SUFFIX=")
1670 (modify-phases %standard-phases
1671 (add-before 'configure 'fix-docbook
1672 (lambda* (#:key inputs #:allow-other-keys)
1673 (substitute* "cmake_admin/CreateManpages.cmake"
1674 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1675 (string-append (assoc-ref inputs "docbook-xsl")
1676 "/xml/xsl/docbook-xsl-"
1677 ,(package-version docbook-xsl)
1678 "/manpages/docbook.xsl")))
1681 `(("qtbase" ,qtbase)
1683 ("alsa-lib" ,alsa-lib)
1684 ("fluidsynth" ,fluidsynth)))
1686 `(("pkg-config" ,pkg-config)
1687 ("libxslt" ,libxslt) ;for xsltproc
1688 ("docbook-xsl" ,docbook-xsl)
1689 ("doxygen" ,doxygen)))
1690 (home-page "http://drumstick.sourceforge.net/")
1691 (synopsis "C++ MIDI library")
1693 "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It
1694 includes a C++ wrapper around the ALSA library sequencer interface. A
1695 complementary library provides classes for processing SMF (Standard MIDI
1696 files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A
1697 multiplatform realtime MIDI I/O library is also provided with various output
1698 backends, including ALSA, OSS, Network and FluidSynth.")
1699 (license license:gpl2+)))
1701 (define-public zynaddsubfx
1703 (name "zynaddsubfx")
1708 "mirror://sourceforge/zynaddsubfx/zynaddsubfx/"
1709 version "/zynaddsubfx-" version ".tar.bz2"))
1712 "09mr23lqc51r7gskry5b7hk84pghdpgn1s4vnrzvx7xpa21gvplm"))))
1713 (build-system cmake-build-system)
1716 (modify-phases %standard-phases
1717 ;; Move SSE compiler optimization flags from generic target to
1718 ;; athlon64 and core2 targets, because otherwise the build would fail
1719 ;; on non-Intel machines.
1720 (add-after 'unpack 'remove-sse-flags-from-generic-target
1722 (substitute* "src/CMakeLists.txt"
1723 (("-msse -msse2 -mfpmath=sse") "")
1724 (("-march=(athlon64|core2)" flag)
1725 (string-append flag " -msse -msse2 -mfpmath=sse")))
1731 ("alsa-lib" ,alsa-lib)
1734 ("minixml" ,minixml)
1738 `(("pkg-config" ,pkg-config)))
1739 (home-page "http://zynaddsubfx.sf.net/")
1740 (synopsis "Software synthesizer")
1742 "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
1743 three synthesizer engines, multitimbral and polyphonic synths, microtonal
1744 capabilities, custom envelopes, effects, etc.")
1745 (license license:gpl2)))
1747 (define-public yoshimi
1753 (uri (string-append "mirror://sourceforge/yoshimi/"
1754 (version-major+minor version)
1755 "/yoshimi-" version ".tar.bz2"))
1758 "0sns35pyw2f74xrv1fxiyf9g9415kvh2rrbdjd60hsiv584nlari"))))
1759 (build-system cmake-build-system)
1761 `(#:tests? #f ; there are no tests
1763 (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR="
1764 (assoc-ref %outputs "out") "/share"))
1766 (modify-phases %standard-phases
1767 (add-before 'configure 'enter-dir
1768 (lambda _ (chdir "src") #t))
1769 ;; Move SSE compiler optimization flags from generic target to
1770 ;; athlon64 and core2 targets, because otherwise the build would fail
1771 ;; on non-Intel machines.
1772 (add-after 'unpack 'remove-sse-flags-from-generic-target
1774 (substitute* "src/CMakeLists.txt"
1775 (("-msse -msse2 -mfpmath=sse") "")
1776 (("-march=(athlon64|core2)" flag)
1777 (string-append flag " -msse -msse2 -mfpmath=sse")))
1779 ;; Yoshimi tries to find ncurses with pkg-config, but our ncurses
1780 ;; package does not install .pc files.
1781 (add-after 'unpack 'find-ncurses
1783 (substitute* "src/CMakeLists.txt"
1784 (("LIBNCURSES REQUIRED") "LIBNCURSES")
1785 (("NCURSES REQUIRED") "NCURSES")
1786 (("FATAL_ERROR \"libncurses") "STATUS \"libncurses")
1787 (("\\$\\{NCURSES_LIBRARIES\\}") "ncurses"))
1792 ("alsa-lib" ,alsa-lib)
1794 ("fontconfig" ,fontconfig)
1795 ("minixml" ,minixml)
1799 ("readline" ,readline)
1800 ("ncurses" ,ncurses)
1804 `(("pkg-config" ,pkg-config)))
1805 (home-page "http://yoshimi.sourceforge.net/")
1806 (synopsis "Multi-paradigm software synthesizer")
1808 "Yoshimi is a fork of ZynAddSubFX, a feature heavy realtime software
1809 synthesizer. It offers three synthesizer engines, multitimbral and polyphonic
1810 synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi
1811 improves on support for JACK features, such as JACK MIDI.")
1812 (license license:gpl2)))
1814 (define-public libgig
1820 (uri (string-append "http://download.linuxsampler.org/packages/"
1821 "libgig-" version ".tar.bz2"))
1824 "1wr8mwjmqpnyz6bx9757lspiii1zzn8zfbqsvn2ipzpgqkxv6kaz"))))
1825 (build-system gnu-build-system)
1827 `(("libuuid" ,util-linux)
1828 ("libsndfile" ,libsndfile)))
1830 `(("pkg-config" ,pkg-config)))
1831 (home-page "http://linuxsampler.org/libgig/")
1832 (synopsis "C++ library for working with Gigasampler (.gig) files")
1834 "Libgig is a C++ library for loading, modifying existing and creating new
1835 Gigasampler (.gig) files and DLS (Downloadable Sounds) Level 1/2 files, KORG
1836 sample based instruments (.KSF and .KMP files), SoundFont v2 (.sf2) files and
1837 AKAI sampler data. The package includes a couple of command line tools based
1839 ;; The library and tools are released under the GPL, except the AKAI
1840 ;; classes which are released under the LGPL.
1841 (license (list license:gpl2+ license:lgpl2.1+))))
1843 (define-public jack-keyboard
1845 (name "jack-keyboard")
1850 (uri (string-append "mirror://sourceforge/jack-keyboard/jack-keyboard/"
1851 version "/jack-keyboard-" version ".tar.gz"))
1854 "0mzmg8aavybcfdlq2yd9d0vscqd6is5p6jzrgfpfm5j3xdcvh2s3"))))
1855 (build-system gnu-build-system)
1861 `(("pkg-config" ,pkg-config)))
1862 (home-page "http://jack-keyboard.sourceforge.net/")
1863 (synopsis "Virtual MIDI keyboard")
1864 (description "Jack-keyboard is a virtual MIDI keyboard, a program that
1865 allows you to send JACK MIDI events (i.e. play) using your PC keyboard.")
1866 (license license:bsd-2)))
1868 (define-public cursynth
1875 (uri (string-append "mirror://gnu/cursynth/cursynth-"
1878 (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v"))
1879 (patches (search-patches "cursynth-wave-rand.patch"))))
1880 (build-system gnu-build-system)
1881 (native-inputs `(("pkg-config" ,pkg-config)))
1882 ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently
1883 ;; prevents us from using pulseaudio
1884 (inputs `(("ncurses" ,ncurses)
1885 ("alsa" ,alsa-lib)))
1886 (home-page "https://www.gnu.org/software/cursynth/")
1887 (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses")
1888 (description "GNU cursynth is a polyphonic synthesizer that runs
1889 graphically in the terminal. It is built on a full-featured subtractive
1890 synthesis engine. Notes and parameter changes may be entered via MIDI or the
1891 computer's keyboard.")
1892 (license license:gpl3+)))
1894 (define-public qtractor
1900 (uri (string-append "http://downloads.sourceforge.net/qtractor/"
1901 "qtractor-" version ".tar.gz"))
1904 "0ggqp2pz6r0pvapbbil51fh5185rn0i9kgzm9ff8r8y1135zllk8"))))
1905 (build-system gnu-build-system)
1906 (arguments `(#:tests? #f)) ; no "check" target
1909 ("qtx11extras" ,qtx11extras)
1910 ("alsa-lib" ,alsa-lib)
1912 ("libsndfile" ,libsndfile)
1917 ("libsamplerate" ,libsamplerate)
1918 ("libvorbis" ,libvorbis)
1920 ("rubberband" ,rubberband)
1924 `(("pkg-config" ,pkg-config)
1925 ("qttools" ,qttools)))
1926 (home-page "http://qtractor.org/")
1927 (synopsis "Audio/MIDI multi-track sequencer")
1929 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
1930 JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
1931 follows a traditional multi-track tape recorder control paradigm.")
1932 (license license:gpl2+)))
1934 (define-public ams-lv2
1941 (uri (string-append "https://github.com/blablack/ams-lv2/"
1942 "archive/" version ".tar.gz"))
1943 (file-name (string-append name "-" version ".tar.gz"))
1946 "1xacxyzqcj83g9c1gwfn36gg1c6yi15v7km4vidfidrjzb4x27fq"))))
1947 (build-system waf-build-system)
1950 (modify-phases %standard-phases
1951 (add-after 'unpack 'remove-sse-flags
1952 (lambda* (#:key system #:allow-other-keys)
1953 (when (not (or (string-prefix? "x86_64" system)
1954 (string-prefix? "i686" system)))
1955 (substitute* "wscript"
1956 (("'-msse', '-mfpmath=sse', ") ""))
1958 #:tests? #f)) ; no tests
1967 `(("pkg-config" ,pkg-config)))
1968 (home-page "https://objectivewave.wordpress.com/ams-lv2/")
1969 (synopsis "Port of Alsa Modular Synth internal modules into LV2")
1970 (description "This set of LV2 plugins is a port of the internal modules
1971 found in Alsa Modular Synth. These plugins are used to create modular
1972 synthesizers and contain: VCO, VCF, VCA, LFO, slew limiter, envelopes, sample
1974 (license license:gpl2)))
1976 (define-public gxtuner
1982 (uri (string-append "https://github.com/brummer10/gxtuner/"
1983 "archive/v" version ".tar.gz"))
1984 (file-name (string-append name "-" version ".tar.gz"))
1987 "1hn5qjac7qd00v0sp7ijhhc3sb26ks9bni06nngivva21h61xrjr"))))
1988 (build-system gnu-build-system)
1991 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1992 (string-append "INCLUDE_L_DIR="
1993 (assoc-ref %build-inputs "zita-resampler")
1996 (modify-phases %standard-phases
1997 (delete 'configure))))
2003 ("zita-resampler" ,zita-resampler)))
2005 `(("pkg-config" ,pkg-config)))
2006 (home-page "https://github.com/brummer10/gxtuner")
2007 (synopsis "Guitar tuner")
2008 (description "GXtuner is a simple guitar tuner for JACK with an
2009 analogue-like user interface.")
2010 (license license:gpl2+)))
2012 (define-public mod-host
2013 ;; The last release was in 2014 but since then more than 140 commits have
2015 (let ((commit "299a3977476e8eb0285837fbd7522cec506a11de")
2019 (version (string-append "0.10.6-" revision "." (string-take commit 9)))
2023 (url "https://github.com/moddevices/mod-host")
2027 "128q7p5mph086v954rqnafalfbkyvhgwclaq6ks6swrhj45wnag6"))
2028 (file-name (string-append name "-" version "-checkout"))))
2029 (build-system gnu-build-system)
2031 `(#:tests? #f ; no tests included
2033 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2036 (modify-phases %standard-phases
2038 (add-after 'unpack 'fix-jack-installation-directory
2040 ;; Do not attempt to install files to output of "jack" package.
2041 (substitute* "Makefile"
2042 (("\\$\\(shell pkg-config --variable=libdir jack\\)")
2051 ("readline" ,readline)))
2053 `(("pkg-config" ,pkg-config)
2054 ("python" ,python-2)))
2055 (home-page "https://github.com/moddevices/mod-host")
2056 (synopsis "LV2 host for Jack controllable via socket or command line")
2057 (description "mod-host is an LV2 plugin host for JACK, controllable via
2058 socket or command line.")
2059 (license license:gpl3+))))
2061 (define-public pianobar
2064 (version "2016.06.02")
2067 (uri (string-append "https://github.com/PromyLOPh/"
2068 name "/archive/" version ".tar.gz"))
2069 (file-name (string-append name "-" version ".tar.gz"))
2072 "1hi5rr6jcr0kwf4xfz007ndwkjkp287lhwlsgfz6iryqa5n6jzcp"))))
2073 (build-system gnu-build-system)
2075 `(#:tests? #f ; no tests
2076 #:make-flags (list "CC=gcc" "CFLAGS=-std=c99"
2077 (string-append "PREFIX=" %output))
2078 #:phases (modify-phases %standard-phases
2079 (delete 'configure))))
2083 ("libgcrypt" ,libgcrypt)
2085 ("ffmpeg" ,ffmpeg)))
2087 `(("pkg-config" ,pkg-config)))
2088 (home-page "http://6xq.net/projects/pianobar/")
2089 (synopsis "Console-based pandora.com player")
2090 (description "pianobar is a console-based music player for the
2091 personalized online radio pandora.com. It has configurable keys for playing
2092 and managing stations, can be controlled remotely via fifo, and can run
2093 event-based scripts for scrobbling, notifications, etc.")
2094 (license license:expat)))
2096 (define-public python-mutagen
2098 (name "python-mutagen")
2102 (uri (pypi-uri "mutagen" version))
2105 "0rl7sxn1rcjl48fwga3dqf9f6pzspsny4ngxyf6pp337mrq0z693"))))
2106 (build-system python-build-system)
2108 `(("python-pytest" ,python-pytest)))
2109 (home-page "https://bitbucket.org/lazka/mutagen")
2110 (synopsis "Read and write audio tags")
2111 (description "Mutagen is a Python module to handle audio metadata. It
2112 supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
2113 Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
2114 of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
2115 Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
2116 APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
2117 streams on an individual packet/page level.")
2118 (license license:gpl2))) ; "later version" never mentioned
2120 (define-public python2-mutagen
2121 (package-with-python2 python-mutagen))
2123 (define-public python-musicbrainzngs
2125 (name "python-musicbrainzngs")
2129 (uri (pypi-uri "musicbrainzngs" version))
2132 "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8"))))
2133 (build-system python-build-system)
2135 '(;; The tests fail suffer from race conditions:
2136 ;; https://github.com/alastair/python-musicbrainzngs/issues/211
2138 (home-page "https://python-musicbrainzngs.readthedocs.org/")
2139 (synopsis "Python bindings for MusicBrainz NGS webservice")
2140 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
2141 web service. This library can be used to retrieve music metadata from the
2142 MusicBrainz database.")
2143 ;; 'musicbrainzngs/compat.py' is ISC licensed.
2144 (license (list license:bsd-2 license:isc))))
2146 (define-public python2-musicbrainzngs
2147 (package-with-python2 python-musicbrainzngs))
2149 (define-public python2-pyechonest
2151 (name "python2-pyechonest")
2155 (uri (pypi-uri "pyechonest" version))
2158 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
2159 (build-system python-build-system)
2161 `(;; Python 3 is not supported:
2162 ;; https://github.com/echonest/pyechonest/issues/42
2163 #:python ,python-2))
2164 (home-page "https://github.com/echonest/pyechonest")
2165 (synopsis "Python interface to The Echo Nest APIs")
2166 (description "Pyechonest is a Python library for the Echo Nest API. With
2167 Pyechonest you have Python access to the entire set of API methods including:
2170 @item artist - search for artists by name, description, or attribute, and get
2171 back detailed information about any artist including audio, similar artists,
2172 blogs, familiarity, hotttnesss, news, reviews, urls and video.
2173 @item song - search songs by artist, title, description, or attribute (tempo,
2174 duration, etc) and get detailed information back about each song, such as
2175 hotttnesss, audio_summary, or tracks.
2176 @item track - upload a track to the Echo Nest and receive summary information
2177 about the track including key, duration, mode, tempo, time signature along with
2178 detailed track info including timbre, pitch, rhythm and loudness information.
2180 (license license:bsd-3)))
2182 (define-public python-pylast
2184 (name "python-pylast")
2188 (uri (pypi-uri "pylast" version))
2191 "190c6sicc80v21wbbwbq771nqmxw4r6aqmxs22ndj177rc2l275f"))))
2192 (build-system python-build-system)
2194 '(#:tests? #f)) ; FIXME: Requires unpackaged python-flaky.
2196 `(("python-coverage" ,python-coverage)
2197 ("python-mock" ,python-mock)
2198 ("python-pep8" ,python-pep8)
2199 ("python-pytest" ,python-pytest)
2200 ("python-pyflakes" ,python-pyflakes)
2201 ("python-pyyaml" ,python-pyyaml)))
2203 `(("python-six" ,python-six)))
2204 (home-page "https://github.com/pylast/pylast")
2205 (synopsis "Python interface to Last.fm and Libre.fm")
2206 (description "A Python interface to Last.fm and other API-compatible
2207 websites such as Libre.fm.")
2208 (license license:asl2.0)))
2210 (define-public python2-pylast
2211 (package-with-python2 python-pylast))
2213 (define-public beets
2219 (uri (pypi-uri "beets" version))
2222 "1z02j871gc8l9mnd344qy9z8akigikgmc22r15ns6driqb2qishv"))))
2223 (build-system python-build-system)
2226 (modify-phases %standard-phases
2227 (add-after 'unpack 'set-HOME
2228 (lambda _ (setenv "HOME" (string-append (getcwd) "/tmp"))))
2230 (lambda _ (zero? (system* "nosetests" "-v")))))))
2232 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2233 ("python-flask" ,python-flask)
2234 ("python-mock" ,python-mock)
2235 ("python-mpd2" ,python-mpd2)
2236 ("python-nose" ,python-nose)
2237 ("python-pathlib" ,python-pathlib)
2238 ("python-pyxdg" ,python-pyxdg)
2239 ("python-pylast" ,python-pylast)
2240 ("python-rarfile" ,python-rarfile)
2241 ("python-responses" ,python-responses)))
2242 ;; TODO: Install optional plugins and dependencies.
2244 `(("python-discogs-client" ,python-discogs-client)
2245 ("python-jellyfish" ,python-jellyfish)
2246 ("python-munkres" ,python-munkres)
2247 ("python-musicbrainzngs" ,python-musicbrainzngs)
2248 ("python-mutagen" ,python-mutagen)
2249 ("python-pyyaml" ,python-pyyaml)
2250 ("python-unidecode" ,python-unidecode)))
2251 (home-page "http://beets.io")
2252 (synopsis "Music organizer")
2253 (description "The purpose of beets is to get your music collection right
2254 once and for all. It catalogs your collection, automatically improving its
2255 metadata as it goes using the MusicBrainz database. Then it provides a variety
2256 of tools for manipulating and accessing your music.")
2257 (license license:expat)))
2259 (define-public milkytracker
2261 (name "milkytracker")
2265 (uri (string-append "https://github.com/milkytracker/"
2266 "MilkyTracker/archive/v"
2268 (file-name (string-append name "-" version ".tar.gz"))
2271 "1dvnddsnn9c83lz4dlm0cfjpc0m524amfkbalxbswdy0qc8cj1wv"))
2272 (modules '((guix build utils)))
2273 ;; Remove non-FSDG compliant sample songs.
2276 (delete-file-recursively "resources/music")
2277 (substitute* "CMakeLists.txt"
2278 (("add_subdirectory\\(resources/music\\)") ""))))))
2279 (build-system cmake-build-system)
2281 '(#:tests? #f)) ; no check target
2283 `(("alsa-lib" ,alsa-lib)
2288 `(("pkg-config" ,pkg-config)))
2289 (synopsis "Music tracker for working with .MOD/.XM module files")
2290 (description "MilkyTracker is a music application for creating .MOD and .XM
2291 module files. It attempts to recreate the module replay and user experience of
2292 the popular DOS program Fasttracker II, with special playback modes available
2293 for improved Amiga ProTracker 2/3 compatibility.")
2294 (home-page "http://milkytracker.titandemo.org/")
2295 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2296 (license (list license:bsd-3 license:gpl3+))))
2298 (define-public schismtracker
2300 (name "schismtracker")
2301 (version "20170420")
2305 "https://github.com/" name "/" name "/archive/"
2307 (file-name (string-append name "-" version ".tar.gz"))
2310 "0k06vri29ayaq7mzsik3yywh6zdar2nfpkav2sp6g2rjl6k6vi5z"))
2311 (modules '((guix build utils)))
2313 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2314 `(substitute* "schism/version.c"
2315 (("Schism Tracker built %s %s.*$")
2316 (string-append "Schism Tracker version " ,version "\");"))))))
2317 (build-system gnu-build-system)
2320 (modify-phases %standard-phases
2321 (add-after 'unpack 'autoconf
2322 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
2323 (add-before 'configure 'link-libm
2324 (lambda _ (setenv "LIBS" "-lm") #t)))))
2326 `(("autoconf" ,autoconf)
2327 ("automake" ,automake)
2328 ("python" ,python)))
2330 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2332 ("libxext" ,libxext)
2334 (home-page "http://schismtracker.org")
2335 (synopsis "Oldschool sample-based music composition tool")
2337 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2338 create high quality music without the requirements of specialized, expensive
2339 equipment, and with a unique \"finger feel\" that is difficult to replicate in
2340 part. The player is based on a highly modified version of the ModPlug engine,
2341 with a number of bugfixes and changes to improve IT playback.")
2342 (license license:gpl2+)))
2344 (define-public sooperlooper
2346 (name "sooperlooper")
2350 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2354 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2355 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2356 (build-system gnu-build-system)
2358 `(#:make-flags (list "CXXFLAGS=-std=gnu++11")
2360 (modify-phases %standard-phases
2361 (add-after 'unpack 'add-sigc++-includes
2362 (lambda* (#:key inputs #:allow-other-keys)
2363 (let ((sig (assoc-ref inputs "libsigc++"))
2364 (xml (assoc-ref inputs "libxml2"))
2367 (string-append sig "/include/sigc++-2.0:"
2368 sig "/lib/sigc++-2.0/include:"
2369 xml "/include/libxml2/:"
2371 cwd "/libs/midi++")))
2372 (substitute* '("src/control_osc.hpp"
2373 "src/gui/app_frame.hpp"
2374 "src/gui/config_panel.hpp"
2375 "src/gui/keys_panel.hpp"
2376 "src/gui/latency_panel.hpp"
2377 "src/gui/main_panel.hpp"
2378 "src/gui/midi_bind_panel.hpp"
2379 "src/gui/prefs_dialog.hpp")
2380 (("sigc\\+\\+/object.h")
2382 (substitute* '("src/engine.cpp"
2383 "src/gui/latency_panel.cpp"
2384 "src/gui/looper_panel.cpp"
2385 "src/gui/main_panel.cpp")
2386 (("(\\(| )bind " _ pre)
2387 (string-append pre "sigc::bind ")))
2389 (add-after 'unpack 'fix-xpm-warnings
2391 (substitute* (find-files "." "\\.xpm$")
2392 (("static char") "static const char"))
2396 ("alsa-lib" ,alsa-lib)
2397 ("wxwidgets" ,wxwidgets-gtk2)
2398 ("libsndfile" ,libsndfile)
2399 ("libsamplerate" ,libsamplerate)
2401 ("rubberband" ,rubberband)
2402 ("libxml2" ,libxml2)
2403 ("libsigc++" ,libsigc++)
2404 ("ncurses" ,ncurses)))
2406 `(("pkg-config" ,pkg-config)))
2407 (home-page "http://essej.net/sooperlooper/")
2408 (synopsis "Live looping sampler")
2410 "SooperLooper is a live looping sampler capable of immediate loop
2411 recording, overdubbing, multiplying, reversing and more. It allows for
2412 multiple simultaneous multi-channel loops limited only by your computer's
2414 (license license:gpl2+)))
2422 (uri (string-append "http://ftp.daper.net/pub/soft/"
2424 name "-" version ".tar.bz2"))
2427 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))
2428 (modules '((guix build utils)))
2430 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2431 '(substitute* "main.c"
2432 (("printf \\(\" Built : %s\", __DATE__\\);") "")
2433 (("printf \\(\" %s\", __TIME__\\);") "")))))
2434 (build-system gnu-build-system)
2436 `(("alsa-lib" ,alsa-lib)
2442 ("libid3tag" ,libid3tag)
2443 ("libltdl" ,libltdl)
2444 ("libmodplug" ,libmodplug)
2445 ("libmpcdec" ,libmpcdec)
2448 ("libvorbis" ,libvorbis)
2449 ("ncurses" ,ncurses)
2450 ("openssl" ,openssl)
2451 ("sasl" ,cyrus-sasl)
2454 ("wavpack" ,wavpack)
2457 `(("pkg-config" ,pkg-config)))
2458 (synopsis "Console audio player designed to be powerful and easy to use")
2460 "Music on Console is a console audio player that supports many file
2461 formats, including most audio formats recognized by FFMpeg.")
2462 (home-page "http://moc.daper.net")
2463 (license license:gpl2+)))
2465 (define-public midicsv
2471 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
2472 name "-" version ".tar.gz"))
2475 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
2476 (build-system gnu-build-system)
2478 `(#:phases (modify-phases %standard-phases (delete 'configure))
2479 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
2480 (synopsis "Convert MIDI files to and from CSV")
2482 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
2483 value file (CSV), which preserves all the information in the MIDI file. The
2484 ASCII CSV file may be loaded into a spreadsheet or database application, or
2485 processed by a program to transform the MIDI data (for example, to key
2486 transpose a composition or extract a track from a multi-track sequence). A
2487 CSV file in the format created by midicsv may be converted back into a
2488 standard MIDI file with the csvmidi program.")
2489 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
2490 (license license:public-domain)))
2492 (define-public gx-guvnor-lv2
2494 (name "gx-guvnor-lv2")
2498 (uri (string-append "https://github.com/brummer10/GxGuvnor.lv2/"
2499 "archive/v" version ".tar.gz"))
2500 (file-name (string-append name "-" version ".tar.gz"))
2503 "0rnfvrvs8qmmldyfmx4llyly33zp68448gx40ywdwj42x0mam92p"))))
2504 (build-system gnu-build-system)
2506 `(;; The check target is used only to output a warning.
2509 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
2511 (modify-phases %standard-phases
2514 (substitute* "Makefile"
2515 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n"))
2519 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
2520 (synopsis "Overdrive/distortion pedal simulation")
2521 (description "This package provides the LV2 plugin \"GxGuvnor\", a
2522 simulation of an overdrive or distortion pedal for guitars.")
2523 ;; The LICENSE file says GPLv3 but the license headers in the files say
2525 (license license:gpl2+)))
2527 (define-public gx-vbass-preamp-lv2
2528 (let ((commit "0e599abab10c7669dd444e5d06f671c2fc1b9c6c")
2530 (package (inherit gx-guvnor-lv2)
2531 (name "gx-vbass-preamp-lv2")
2532 (version (string-append "0-" revision "." (string-take commit 9)))
2536 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
2540 "1dzksdfrva666gpi62fd2ni9rhf18sl917f1894qr0b17pbdh9k1"))
2541 (file-name (string-append name "-" version "-checkout"))))
2543 (substitute-keyword-arguments (package-arguments gx-guvnor-lv2)
2545 `(modify-phases ,phases
2548 (substitute* "Makefile"
2549 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
2550 (("install : all") "install :"))
2552 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
2553 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
2554 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
2555 pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
2558 (define-public gx-overdriver-lv2
2559 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
2561 (package (inherit gx-vbass-preamp-lv2)
2562 (name "gx-overdriver-lv2")
2563 (version (string-append "0-" revision "." (string-take commit 9)))
2567 (url "https://github.com/brummer10/GxOverDriver.lv2")
2571 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
2572 (file-name (string-append name "-" version "-checkout"))))
2573 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
2574 (synopsis "Overdrive effect with level and tone control")
2575 (description "This package provides the LV2 plugin \"GxOverDriver\", an
2576 overdrive effect."))))
2578 (define-public gx-tone-mender-lv2
2579 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
2581 (package (inherit gx-vbass-preamp-lv2)
2582 (name "gx-tone-mender-lv2")
2583 (version (string-append "0-" revision "." (string-take commit 9)))
2587 (url "https://github.com/brummer10/GxToneMender.lv2")
2591 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
2592 (file-name (string-append name "-" version "-checkout"))))
2593 (home-page "https://github.com/brummer10/GxToneMender.lv2")
2594 (synopsis "Clean boost with a 3-knob tonestack")
2595 (description "This package provides the LV2 plugin \"GxToneMender\", a
2596 clean boost effect with a 3-knob tonestack."))))
2598 (define-public gx-push-pull-lv2
2599 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
2601 (package (inherit gx-vbass-preamp-lv2)
2602 (name "gx-push-pull-lv2")
2603 (version (string-append "0-" revision "." (string-take commit 9)))
2607 (url "https://github.com/brummer10/GxPushPull.lv2")
2611 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
2612 (file-name (string-append name "-" version "-checkout"))))
2613 (home-page "https://github.com/brummer10/GxPushPull.lv2")
2614 (synopsis "Octave up push pull transistor fuzz simulation")
2615 (description "This package provides the LV2 plugin \"GxPushPull\", a
2616 simulation of a push pull transistor fuzz effect with added high octave."))))
2618 (define-public gx-suppa-tone-bender-lv2
2619 (package (inherit gx-guvnor-lv2)
2620 (name "gx-suppa-tone-bender-lv2")
2624 (uri (string-append "https://github.com/brummer10/"
2625 "GxSuppaToneBender.lv2/archive/v"
2629 "1j90fns87035sfr6bxs4cvqxbyy3pqjhihx1nis8xajn202nl1hx"))
2630 (file-name (string-append name "-" version ".tar.gz"))))
2631 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
2632 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
2633 (description "This package provides the LV2 plugin
2634 \"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
2637 (define-public gx-saturator-lv2
2638 (let ((commit "0b581ac85c515325b9f16e51937cae6e1bf81a0a")
2640 (package (inherit gx-vbass-preamp-lv2)
2641 (name "gx-saturator-lv2")
2642 (version (string-append "0-" revision "." (string-take commit 9)))
2646 (url "https://github.com/brummer10/GxSaturator.lv2")
2650 "1cl785pzq8zk55m1rnhfd6qsabci6kpf4pf002gwr91vagyq246z"))
2651 (file-name (string-append name "-" version "-checkout"))))
2652 (home-page "https://github.com/brummer10/GxSaturator.lv2")
2653 (synopsis "Saturation effect")
2654 (description "This package provides the LV2 plugin \"GxSaturator\", a
2655 saturation effect."))))
2657 (define-public gx-hyperion-lv2
2658 (package (inherit gx-guvnor-lv2)
2659 (name "gx-hyperion-lv2")
2663 (uri (string-append "https://github.com/brummer10/"
2664 "GxHyperion.lv2/archive/v"
2668 "1pd7l33a14kq73wavgqq7csw4n3mwjz9d5rxaj0jgsyxd3llp3wh"))
2669 (file-name (string-append name "-" version ".tar.gz"))))
2670 (home-page "https://github.com/brummer10/GxHyperion.lv2")
2671 (synopsis "Simulation of the Hyperion Fuzz pedal")
2672 (description "This package provides the LV2 plugin \"GxHyperion\", a
2673 simulation of the Hyperion Fuzz pedal.")))
2675 (define-public gx-voodoo-fuzz-lv2
2676 (package (inherit gx-guvnor-lv2)
2677 (name "gx-voodoo-fuzz-lv2")
2681 (uri (string-append "https://github.com/brummer10/"
2682 "GxVoodoFuzz.lv2/archive/v"
2686 "0cc8sg7q493bs6pcq4ipqp6czpxv04nh9yvn8kq2x65ni2208n2f"))
2687 (file-name (string-append name "-" version ".tar.gz"))))
2688 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
2689 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
2690 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
2691 simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
2692 Bosstone circuit, followed by the tone control of the FoxToneMachine in
2693 parallel with a DarkBooster, followed by a volume control.")))
2695 (define-public gx-super-fuzz-lv2
2696 (package (inherit gx-guvnor-lv2)
2697 (name "gx-super-fuzz-lv2")
2701 (uri (string-append "https://github.com/brummer10/"
2702 "GxSuperFuzz.lv2/archive/v"
2706 "0pnivq05f1kji8c5jxsqdzhdfk3xn422v2d1x20x3jfsxnaf115x"))
2707 (file-name (string-append name "-" version ".tar.gz"))))
2708 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
2709 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
2710 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
2711 analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
2712 pot, which is usually in the housing, is exposed as a control parameter. It
2713 adjusts the amount of harmonics.")))
2715 (define-public gx-vintage-fuzz-master-lv2
2716 (package (inherit gx-guvnor-lv2)
2717 (name "gx-vintage-fuzz-master-lv2")
2721 (uri (string-append "https://github.com/brummer10/"
2722 "GxVintageFuzzMaster.lv2/archive/v"
2726 "0bdkfj6xi2g4izfw3pmr4i0nqzg8jnkdwc23x9ifxwc6p1kbayzk"))
2727 (file-name (string-append name "-" version ".tar.gz"))))
2728 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
2729 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
2730 (description "This package provides the LV2 plugin
2731 \"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
2733 (define-public gx-slow-gear-lv2
2734 (let ((commit "cb852e0426f4e6fe077e7f1ede73a4da335cfc5e")
2736 (package (inherit gx-vbass-preamp-lv2)
2737 (name "gx-slow-gear-lv2")
2738 (version (string-append "0-" revision "." (string-take commit 9)))
2742 (url "https://github.com/brummer10/GxSlowGear.lv2")
2746 "0dp7afi1r3kzciiyn1hrkz6arsq47ys9sx5g4b7xa9k1dv92ishp"))
2747 (file-name (string-append name "-" version "-checkout"))))
2748 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
2749 (synopsis "Slow gear audio effect")
2750 (description "This package provides the LV2 plugin \"GxSlowGear\", a
2751 slow gear audio effect to produce volume swells."))))
2753 (define-public gx-switchless-wah-lv2
2754 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
2756 (package (inherit gx-vbass-preamp-lv2)
2757 (name "gx-switchless-wah-lv2")
2758 (version (string-append "0-" revision "." (string-take commit 9)))
2762 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
2766 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
2767 (file-name (string-append name "-" version "-checkout"))))
2768 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
2769 (synopsis "Wah emulation with switchless activation")
2770 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
2771 a simulation of an analog Wah pedal with switchless activation."))))
2773 (define-public mod-utilities
2774 (let ((commit "7cdeeac26ae682730740105ece121d4dddb8ba3f")
2777 (name "mod-utilities")
2778 (version (string-append "0-" revision "." (string-take commit 9)))
2782 (url "https://github.com/moddevices/mod-utilities.git")
2786 "1ilnkbrmwrszxvc21qlb86h29yz7cnc6rcp0jmna1y693ny2qhf4"))
2787 (file-name (string-append name "-" version "-checkout"))))
2788 (build-system gnu-build-system)
2790 `(#:tests? #f ; there are no tests
2792 (list (string-append "INSTALL_PATH="
2793 (assoc-ref %outputs "out")
2796 (modify-phases %standard-phases
2797 (delete 'configure))))
2800 (home-page "https://github.com/moddevices/mod-utilities")
2801 (synopsis "LV2 utility plugins")
2802 (description "This package provides LV2 audio utility plugins, such as
2803 filters, crossovers, simple gain plugins without zipper noise, switch box
2804 plugins, a switch trigger, a toggle switch, and a peakmeter.")
2805 (license license:gpl2+))))
2807 (define-public ingen
2808 (let ((commit "fd147d0b888090bfb897505852c1f25dbdf77e18")
2812 (version (string-append "0.0.0-" revision "."
2813 (string-take commit 9)))
2818 (url "http://git.drobilla.net/ingen.git")
2820 (file-name (string-append name "-" version "-checkout"))
2823 "1qmg79962my82c43vyrv5sxbqci9c7gc2s9bwaaqd0fcf08xcz1z"))))
2824 (build-system waf-build-system)
2826 `(#:tests? #f ; no "check" target
2827 #:configure-flags (list "--no-webkit")
2829 (modify-phases %standard-phases
2830 (add-after 'unpack 'patch-wscript
2831 (lambda* (#:key outputs #:allow-other-keys)
2832 (let ((out (assoc-ref outputs "out")))
2833 (substitute* "wscript"
2834 ;; FIXME: Our version of lv2specgen.py does not behave as
2835 ;; expected. Maybe this requires a development version of
2837 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
2838 ;; Add libraries to RUNPATH.
2839 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
2840 (string-append prefix
2841 "linkflags=[\"-Wl,-rpath="
2842 out "/lib" "\"]," line)))
2843 (substitute* '("src/wscript"
2844 "src/server/wscript")
2845 ;; Add libraries to RUNPATH.
2846 (("bld.env.PTHREAD_LINKFLAGS" line)
2848 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
2849 (substitute* "src/client/wscript"
2850 ;; Add libraries to RUNPATH.
2851 (("^(.+)target.*= 'ingen_client'," line prefix)
2852 (string-append prefix
2853 "linkflags=[\"-Wl,-rpath="
2854 out "/lib" "\"]," line)))
2855 (substitute* "src/gui/wscript"
2856 ;; Add libraries to RUNPATH.
2857 (("^(.+)target.* = 'ingen_gui.*" line prefix)
2858 (string-append prefix
2859 "linkflags=[\"-Wl,-rpath="
2860 out "/lib" "\"]," line))))
2864 ("python-rdflib" ,python-rdflib)
2869 ("raul" ,raul-devel)
2870 ("ganv" ,ganv-devel)
2875 ("gtkmm" ,gtkmm-2)))
2877 `(("pkg-config" ,pkg-config)
2878 ("python-pygments" ,python-pygments)))
2879 (home-page "http://drobilla.net/software/ingen")
2880 (synopsis "Modular audio processing system")
2881 (description "Ingen is a modular audio processing system for JACK and
2882 LV2 based systems. Ingen is built around LV2 technology and a strict
2883 separation of engine from user interface. The engine is controlled
2884 exclusively through a protocol, and can execute as a headless process, with an
2885 in-process GUI, or as an LV2 plugin. The GUI can run as a program which
2886 communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
2887 communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
2888 plugin on any system where Ingen is installed. This allows users to visually
2889 develop custom plugins for use in other applications without programming.")
2890 (license license:agpl3+))))
2892 (define-public qmidiarp
2898 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
2899 version "/qmidiarp-" version ".tar.bz2"))
2902 "1gkfv8ajgf86kbn6j5ilfc1zlz17gdi9yxzywqd6jwff4xlm75hx"))))
2903 (build-system gnu-build-system)
2906 (list "--enable-qt5"
2907 "CXXFLAGS=-std=gnu++11")))
2909 `(("qtbase" ,qtbase)
2910 ("alsa-lib" ,alsa-lib)
2915 `(("pkg-config" ,pkg-config)
2916 ("qttools" ,qttools)))
2917 (home-page "http://qmidiarp.sourceforge.net/")
2918 (synopsis "MIDI arpeggiator")
2919 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
2920 sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
2921 modules running in parallel.")
2922 (license license:gpl2+)))
2924 (define-public seq24
2930 (uri (string-append "https://launchpad.net/seq24/trunk/"
2931 version "/+download/seq24-"
2932 version ".tar.bz2"))
2935 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
2936 (patches (search-patches "seq24-rename-mutex.patch"))))
2937 (build-system gnu-build-system)
2940 (list "CXXFLAGS=-std=gnu++11")))
2942 `(("gtkmm" ,gtkmm-2)
2943 ("alsa-lib" ,alsa-lib)
2947 `(("pkg-config" ,pkg-config)))
2948 (home-page "https://edge.launchpad.net/seq24/")
2949 (synopsis "Real-time MIDI sequencer")
2950 (description "Seq24 is a real-time MIDI sequencer. It was created to
2951 provide a very simple interface for editing and playing MIDI loops.")
2952 (license license:gpl2+)))
2954 (define-public python-discogs-client
2956 (name "python-discogs-client")
2960 (uri (pypi-uri "discogs-client" version))
2963 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
2964 (build-system python-build-system)
2966 `(("python-oauthlib" ,python-oauthlib)
2967 ("python-requests" ,python-requests)))
2969 `(("python-six" ,python-six)))
2970 (home-page "https://github.com/discogs/discogs_client")
2971 (synopsis "Official Python client for the Discogs API")
2972 (description "This is the official Discogs API client for Python. It enables
2973 you to query the Discogs database for information on artists, releases, labels,
2974 users, Marketplace listings, and more. It also supports OAuth 1.0a
2975 authorization, which allows you to change user data such as profile information,
2976 collections and wantlists, inventory, and orders.")
2977 (license license:bsd-2)))
2979 (define-public python2-discogs-client
2980 (package-with-python2 python-discogs-client))
2982 (define-public libsmf
2989 ;; SF download page says development moved, but the link it points to
2990 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
2991 ;; it but made no release so far (https://github.com/stump/libsmf).
2992 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
2993 version "/libsmf-" version ".tar.gz"))
2996 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
2997 (build-system gnu-build-system)
2999 "static")) ; 88KiB of .a files
3002 (modify-phases %standard-phases
3003 (add-after 'install 'move-static-libraries
3004 (lambda* (#:key outputs #:allow-other-keys)
3005 ;; Move static libraries to the "static" output.
3006 (let* ((out (assoc-ref outputs "out"))
3007 (lib (string-append out "/lib"))
3008 (static (assoc-ref outputs "static"))
3009 (slib (string-append static "/lib")))
3011 (for-each (lambda (file)
3012 (install-file file slib)
3014 (find-files lib "\\.a$"))
3017 `(("readline" ,readline)
3020 `(("doxygen" ,doxygen)
3021 ("pkg-config" ,pkg-config)))
3022 (home-page "http://libsmf.sourceforge.net/")
3023 (synopsis "Standard MIDI File format library")
3025 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3026 conversions between time and pulses, tempo map handling and more. The only dependencies
3027 are a C compiler and glib. Full API documentation and examples are included.")
3028 (license license:bsd-2)))
3037 (uri (string-append "https://github.com/LMMS/lmms/archive/v"
3039 (file-name (string-append name "-" version ".tar.gz"))
3042 "1g76z7ha3hd53vbqaq9n1qg6s3lw8zzaw51iny6y2bz0j1xqwcsr"))))
3043 (build-system cmake-build-system)
3045 `(#:tests? #f ; no tests
3047 (modify-phases %standard-phases
3049 'configure 'set-ldflags
3050 (lambda* (#:key outputs #:allow-other-keys)
3054 (assoc-ref outputs "out") "/lib/lmms"
3056 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3059 `(("pkg-config" ,pkg-config)))
3065 ("libsamplerate" ,libsamplerate)
3066 ("fluidsynth" ,fluidsynth)
3067 ("libvorbis" ,libvorbis)
3068 ("alsa-lib" ,alsa-lib)
3069 ("portaudio" ,portaudio)
3071 ("libsndfile1" ,libsndfile)
3073 ("freetype2" ,freetype)
3075 (home-page "https://lmms.io/")
3076 (synopsis "Music composition tool")
3077 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3078 melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3079 audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3080 (license license:gpl2+)))
3082 (define-public musescore
3089 "https://github.com/musescore/MuseScore/archive/"
3090 "v" version ".tar.gz"))
3091 (file-name (string-append name "-" version ".tar.gz"))
3094 "0irwsq6ihfz3y3b943cwqy29g3si7gqbgxdscgw53vwv9vfvi085"))
3095 (modules '((guix build utils)))
3097 ;; Un-bundle OpenSSL and remove unused libraries.
3099 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3100 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3102 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3103 (("#include <openssl/.*") ""))
3104 (for-each delete-file-recursively
3105 '("thirdparty/freetype"
3106 "thirdparty/openssl"
3107 "thirdparty/portmidi"))
3109 (build-system gnu-build-system)
3112 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
3113 ;; There are tests, but no simple target to run. The command
3114 ;; used to run them is:
3116 ;; make debug && sudo make installdebug && cd \
3117 ;; build.debug/mtest && make && ctest
3119 ;; Basically, it requires to start a whole new build process.
3120 ;; So we simply skip them.
3123 (modify-phases %standard-phases
3125 (add-after 'unpack 'use-system-freetype
3127 ;; XXX: For the time being, we grossly insert the CMake
3128 ;; option needed to ignore bundled freetype. However,
3129 ;; there's a pending PR to have it as a regular make
3130 ;; option, in a future release.
3131 (substitute* "Makefile"
3132 (("cmake -DCMAKE") "cmake -DUSE_SYSTEM_FREETYPE=ON -DCMAKE"))
3135 `(("alsa-lib" ,alsa-lib)
3136 ("freetype" ,freetype)
3137 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3141 ("libsndfile" ,libsndfile)
3142 ("libvorbis" ,libvorbis)
3143 ("portaudio" ,portaudio)
3144 ("pulseaudio" ,pulseaudio)
3146 ("qtdeclarative" ,qtdeclarative)
3147 ("qtscript" ,qtscript)
3149 ("qtwebkit" ,qtwebkit)
3150 ("qtxmlpatterns" ,qtxmlpatterns)))
3153 ("pkg-config" ,pkg-config)
3154 ("qttools" ,qttools)))
3155 (synopsis "Music composition and notation software")
3156 (description "MuseScore is a music score typesetter. Its main purpose is
3157 the creation of high-quality engraved musical scores in a WYSIWYG environment.
3159 It supports unlimited staves, linked parts and part extraction, tablature,
3160 MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3161 lyrics (multiple verses), fretboard diagrams, and in general everything
3162 commonly used in sheet music. Style options and style sheets to change the
3163 appearance and layout are provided.
3165 MuseScore can also play back scores through the built-in sequencer and SoundFont
3167 (home-page "https://musescore.org")
3168 (license license:gpl2)))
3177 "mirror://sourceforge/dssi/dssi/" version
3178 "/dssi-" version ".tar.gz"))
3181 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3182 (build-system gnu-build-system)
3184 `(("alsa-lib" ,alsa-lib)
3187 ("libsamplerate" ,libsamplerate)
3188 ("libsndfile" ,libsndfile)
3191 `(("pkg-config" ,pkg-config)))
3192 (synopsis "Audio plugin API for soft synths and effects")
3193 (description "DSSI is a plugin API for software instruments with user
3194 interfaces, permitting them to be hosted in-process by audio applications.
3195 It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3196 towards familiarity with MIDI. The DSSI distribution package contains
3197 a JACK/ALSA-sequencer reference host and some plugins as well as the
3198 specification and header.")
3199 (home-page "http://dssi.sourceforge.net/")
3200 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3201 ;; The vast majority of examples are in the public domain.
3202 (license (list license:lgpl2.1+ license:gpl2+))))
3204 (define-public rosegarden
3211 "mirror://sourceforge/rosegarden/rosegarden/"
3212 version "/rosegarden-" version ".tar.bz2"))
3215 "1khfcj22asdhjh0jvhkqsz200wgmigkhsrcz09ffia5hqm0n32lq"))))
3216 (build-system cmake-build-system)
3218 `(#:configure-flags '("-DUSE_QT5=1") ; "-DCMAKE_BUILD_TYPE=Release"
3220 (modify-phases %standard-phases
3221 (add-after 'unpack 'patch-tests
3223 (substitute* "CMakeLists.txt"
3224 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
3226 ((" -fvisibility=hidden") ""))
3228 (add-after 'unpack 'fix-references
3229 (lambda* (#:key inputs #:allow-other-keys)
3230 (substitute* "src/gui/general/ProjectPackager.cpp"
3232 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
3234 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
3236 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
3238 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
3240 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
3241 (substitute* "src/gui/general/LilyPondProcessor.cpp"
3242 (("\"convert-ly\\>")
3243 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
3245 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
3247 (add-after 'unpack 'make-reproducible
3249 ;; Prevent Last-Modified from being written.
3250 ;; The "*.qm" files that are used in locale.qrc would have a new
3251 ;; mtime otherwise that is written into qrc_locale.cpp in the
3252 ;; end - except when we disable it.
3253 (substitute* "src/CMakeLists.txt"
3254 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
3255 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
3257 ;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
3258 ; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
3260 ;; Make hashtable traversal order predicable.
3261 (setenv "QT_RCC_TEST" "1") ; important
3263 (add-before 'check 'prepare-check
3265 (setenv "QT_QPA_PLATFORM" "offscreen")
3266 ;; Tests create files in $HOME/.local/share/rosegarden .
3267 (mkdir-p "/tmp/foo")
3268 (setenv "HOME" "/tmp/foo")
3271 `(("alsa-lib" ,alsa-lib)
3279 ("libsamplerate" ,libsamplerate)
3280 ("lilypond" ,lilypond)
3285 ("wavpack" ,wavpack)
3288 `(("pkg-config" ,pkg-config)
3289 ("qtlinguist" ,qttools)))
3290 (synopsis "Music composition and editing environment based around a MIDI
3292 (description "Rosegarden is a music composition and editing environment
3293 based around a MIDI sequencer that features a rich understanding of music
3294 notation and includes basic support for digital audio.")
3295 (home-page "http://www.rosegardenmusic.com/")
3296 (license license:gpl2)))