1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
3 ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
4 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
5 ;;; Copyright © 2016 Al McElrath <hello@yrns.org>
6 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
8 ;;; Copyright © 2016, 2017 Kei Kebreau <kkebreau@posteo.net>
9 ;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
10 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
11 ;;; Copyright © 2017 ng0 <contact.ng0@cryptolab.net>
12 ;;; Copyright © 2017 Rodger Fox <thylakoid@openmailbox.org>
13 ;;; Copyright © 2017 Nicolas Goaziou <mail@nicolasgoaziou.fr>
14 ;;; Copyright © 2017 Pierre Langlois <pierre.langlois@gmx.com>
16 ;;; This file is part of GNU Guix.
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31 (define-module (gnu packages music)
32 #:use-module (guix utils)
33 #:use-module (guix packages)
34 #:use-module (guix download)
35 #:use-module (guix git-download)
36 #:use-module ((guix licenses) #:prefix license:)
37 #:use-module (guix build-system gnu)
38 #:use-module (guix build-system ant)
39 #:use-module (guix build-system cmake)
40 #:use-module (guix build-system python)
41 #:use-module (guix build-system waf)
42 #:use-module (gnu packages)
43 #:use-module (gnu packages algebra)
44 #:use-module (gnu packages apr)
45 #:use-module (gnu packages audio)
46 #:use-module (gnu packages autotools)
47 #:use-module (gnu packages backup)
48 #:use-module (gnu packages base) ;libbdf
49 #:use-module (gnu packages bash)
50 #:use-module (gnu packages bison)
51 #:use-module (gnu packages boost)
52 #:use-module (gnu packages cdrom)
53 #:use-module (gnu packages code)
54 #:use-module (gnu packages check)
55 #:use-module (gnu packages cmake)
56 #:use-module (gnu packages compression)
57 #:use-module (gnu packages curl)
58 #:use-module (gnu packages cyrus-sasl)
59 #:use-module (gnu packages docbook)
60 #:use-module (gnu packages documentation)
61 #:use-module (gnu packages emacs)
62 #:use-module (gnu packages file)
63 #:use-module (gnu packages flex)
64 #:use-module (gnu packages fltk)
65 #:use-module (gnu packages fonts)
66 #:use-module (gnu packages fontutils)
67 #:use-module (gnu packages freedesktop)
68 #:use-module (gnu packages gcc)
69 #:use-module (gnu packages gnupg)
70 #:use-module (gnu packages gettext)
71 #:use-module (gnu packages ghostscript)
72 #:use-module (gnu packages gl)
73 #:use-module (gnu packages glib)
74 #:use-module (gnu packages gnome)
75 #:use-module (gnu packages graphics)
76 #:use-module (gnu packages gtk)
77 #:use-module (gnu packages guile)
78 #:use-module (gnu packages image)
79 #:use-module (gnu packages imagemagick)
80 #:use-module (gnu packages java)
81 #:use-module (gnu packages libffi)
82 #:use-module (gnu packages linux) ; for alsa-utils
83 #:use-module (gnu packages lirc)
84 #:use-module (gnu packages llvm)
85 #:use-module (gnu packages man)
86 #:use-module (gnu packages mp3)
87 #:use-module (gnu packages mpd)
88 #:use-module (gnu packages ncurses)
89 #:use-module (gnu packages netpbm)
90 #:use-module (gnu packages pcre)
91 #:use-module (gnu packages pdf)
92 #:use-module (gnu packages perl)
93 #:use-module (gnu packages pkg-config)
94 #:use-module (gnu packages pulseaudio) ;libsndfile
95 #:use-module (gnu packages python)
96 #:use-module (gnu packages python-web)
97 #:use-module (gnu packages qt)
98 #:use-module (gnu packages rdf)
99 #:use-module (gnu packages readline)
100 #:use-module (gnu packages rsync)
101 #:use-module (gnu packages sdl)
102 #:use-module (gnu packages tcl)
103 #:use-module (gnu packages texinfo)
104 #:use-module (gnu packages tex)
105 #:use-module (gnu packages tls)
106 #:use-module (gnu packages video)
107 #:use-module (gnu packages web)
108 #:use-module (gnu packages wxwidgets)
109 #:use-module (gnu packages xml)
110 #:use-module (gnu packages xorg)
111 #:use-module (gnu packages xiph)
112 #:use-module ((srfi srfi-1) #:select (last)))
114 (define-public aria-maestosa
116 (name "aria-maestosa")
120 (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/"
121 version "/AriaSrc-" version ".tar.bz2"))
124 "1cs3z6frx2ch7rm5ammx9p0rxcjrbj1vq14hvcbimpaw39rdsn3d"))))
125 (build-system gnu-build-system)
127 `(#:tests? #f ;no tests
129 ;; TODO: Add scons-build-system and use it here.
130 (modify-phases %standard-phases
132 (add-after 'unpack 'scons-propagate-environment
134 ;; By design, SCons does not, by default, propagate
135 ;; environment variables to subprocesses. See:
136 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
137 ;; Here, we modify the SConstruct file to arrange for
138 ;; environment variables to be propagated.
139 (substitute* "SConstruct"
140 (("env = Environment\\(\\)")
141 "env = Environment(ENV=os.environ)")
142 ;; Scons errors out when copying subdirectories from Resources,
143 ;; so we move them instead.
145 ;; We move the "score" and "Documentation" directories at once,
146 ;; so we have to ignore files contained therein.
147 (("if \".svn\" in file" line)
149 " or \"score/\" in file"
150 " or \"Documentation/\" in file")))
152 (replace 'build (lambda _ (zero? (system* "scons"))))
154 (lambda* (#:key outputs #:allow-other-keys)
155 (let ((out (assoc-ref outputs "out")))
157 (zero? (system* "scons"
158 (string-append "prefix=" out)
160 ;; Fix directory permissions
162 (chmod (string-append out "/share/Aria/Documentation") #o555)
163 (chmod (string-append out "/share/Aria/score") #o555)
166 `(("wxwidgets" ,wxwidgets)
168 ("alsa-lib" ,alsa-lib)))
171 ("pkg-config" ,pkg-config)))
172 (home-page "http://ariamaestosa.sourceforge.net/")
173 (synopsis "MIDI sequencer and editor")
175 "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit
176 and play MIDI files with a few clicks in a user-friendly interface offering
177 score, keyboard, guitar, drum and controller views.")
178 (license license:gpl3+)))
187 "https://github.com/" name "/" name "/archive/v"
189 (file-name (string-append name "-" version ".tar.gz"))
192 "0raixgjavkm7hxppzsc5zqbfbh2bhjcmbiplhnsxsmyj8flafyc1"))))
193 (build-system gnu-build-system)
195 `(#:tests? #f ; cmus does not include tests
197 (modify-phases %standard-phases
200 (lambda* (#:key outputs #:allow-other-keys)
201 (let ((out (assoc-ref outputs "out")))
203 ;; It's an idiosyncratic configure script that doesn't
204 ;; understand --prefix=..; it wants prefix=.. instead.
206 (system* "./configure"
207 (string-append "prefix=" out)))))))))
208 ;; TODO: cmus optionally supports the following formats, which haven't yet
209 ;; been added to Guix:
213 ;; - DISCID_LIBS, apparently different from cd-discid which is included in
214 ;; Guix. See <http://sourceforge.net/projects/discid/>
216 `(("pkg-config" ,pkg-config)))
218 `(("alsa-lib" ,alsa-lib)
224 ("libcdio-paranoia" ,libcdio-paranoia)
227 ("libmodplug" ,libmodplug)
228 ("libmpcdec" ,libmpcdec)
229 ("libsamplerate" ,libsamplerate)
230 ("libvorbis" ,libvorbis)
232 ("opusfile" ,opusfile)
233 ("pulseaudio" ,pulseaudio)
234 ("wavpack" ,wavpack)))
235 (home-page "https://cmus.github.io/")
236 (synopsis "Small console music player")
237 (description "Cmus is a small and fast console music player. It supports
238 many input formats and provides a customisable Vi-style user interface.")
239 (license license:gpl2+)))
241 (define-public denemo
247 (uri (string-append "mirror://gnu/denemo/denemo-"
251 "0hggf8c4xcrjcxd5m00r788r7jg7g8ff54w2idfaqpj5j2ix3299"))))
252 (build-system gnu-build-system)
255 (modify-phases %standard-phases
257 ;; Denemo's documentation says to use this command to run its
260 (zero? (system* "make" "-C" "tests" "check"))))
261 (add-before 'build 'set-lilypond
262 ;; This phase sets the default path for lilypond to its current
263 ;; location in the store.
264 (lambda* (#:key inputs #:allow-other-keys)
265 (let* ((lilypond (string-append (assoc-ref inputs "lilypond")
267 (substitute* "src/core/prefops.c"
268 (("g_string_new \\(\"lilypond\"\\);")
269 (string-append "g_string_new (\""
273 (add-after 'install 'correct-filename
274 ;; "graft-derivation/shallow" from the (guix grafts) module runs in
275 ;; the C locale, expecting file names to be ASCII encoded. This
276 ;; phase renames a filename with a Unicode character in it to meet
277 ;; the aforementioned condition.
278 (lambda* (#:key outputs #:allow-other-keys)
279 (let* ((out (assoc-ref outputs "out")))
280 (chdir (string-append
282 "/share/denemo/templates/instruments/woodwind"))
283 (rename-file "Clarinet in B♭.denemo"
284 "Clarinet in Bb.denemo"))
287 `(("glib:bin", glib "bin") ; for gtester
288 ("pkg-config" ,pkg-config)))
290 `(("alsa-lib" ,alsa-lib)
294 ("fluidsynth" ,fluidsynth)
298 ("gtksourceview" ,gtksourceview)
300 ("intltool" ,intltool)
302 ("libsndfile" ,libsndfile)
305 ("lilypond", lilypond)
306 ("portaudio" ,portaudio)
307 ("portmidi" ,portmidi)
308 ("rubberband" ,rubberband)))
309 (synopsis "Graphical music notation, front-end to GNU Lilypond")
311 "GNU Denemo is a music notation editor that provides a convenient
312 interface to the powerful music engraving program Lilypond. Music can be
313 typed in using the computer keyboard, played in using a MIDI keyboard, or
314 even input via a microphone connected to the sound card. The final product
315 is publication-quality music notation that is continuously generated in the
316 background while you work.")
317 (home-page "http://www.denemo.org")
318 (license license:gpl3+)))
320 (define-public hydrogen
327 "https://github.com/hydrogen-music/hydrogen/archive/"
331 "1dy2jfkdw0nchars4xi4isrz66fqn53a9qk13bqza7lhmsg3s3qy"))))
332 (build-system cmake-build-system)
334 `(#:test-target "tests"))
336 `(("cppunit" ,cppunit)
337 ("pkg-config" ,pkg-config)))
339 `(("alsa-lib" ,alsa-lib)
341 ;; ("ladspa" ,ladspa) ; cannot find during configure
343 ("libarchive" ,libarchive)
344 ("libsndfile" ,libsndfile)
349 (home-page "http://www.hydrogen-music.org")
350 (synopsis "Drum machine")
352 "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to
353 enable professional yet simple and intuitive pattern-based drum programming.")
354 (license license:gpl2+)))
356 (define-public extempore
363 "https://github.com/digego/extempore/archive/"
367 "1wap1mvsicrhlazikf7l8zxg37fir8bmnh9rin28m1rix730vcch"))
368 (file-name (string-append name "-" version ".tar.gz"))))
369 (build-system cmake-build-system)
371 `(;; The default target also includes ahead-of-time compilation of the
372 ;; standard libraries. However, during the "install" phase this would
373 ;; happen *again* for unknown reasons. Hence we only build the
374 ;; extempore executable during the build phase.
375 #:make-flags '("extempore")
376 #:configure-flags '("-DJACK=ON"
377 ;; We want to distribute.
379 ;; Don't download any dependencies.
381 #:modules ((ice-9 match)
382 (guix build cmake-build-system)
385 (modify-phases %standard-phases
386 (add-after 'unpack 'patch-directories
387 (lambda* (#:key outputs #:allow-other-keys)
388 ;; Rewrite default path to runtime directory
389 (substitute* "src/Extempore.cpp"
390 (("runtimedir \\+= \"runtime\"")
391 (string-append "runtimedir = \""
392 (assoc-ref outputs "out")
393 "/lib/extempore/runtime\"")))
394 (substitute* "extras/extempore.el"
395 (("\\(runtime-directory \\(concat default-directory \"runtime\"\\)\\)")
396 (string-append "(runtime-directory \""
397 (assoc-ref outputs "out")
398 "/lib/extempore/runtime"
401 (add-after 'unpack 'link-with-additional-libs
403 ;; The executable must be linked with libffi and zlib.
404 (substitute* "CMakeLists.txt"
405 (("add_dependencies\\(aot_extended extended_deps\\)") "")
406 (("target_link_libraries\\(extempore PRIVATE dl" line)
407 (string-append line " ffi z")))
409 ;; FIXME: AOT compilation of the nanovg bindings fail with the error:
410 ;; "Compiler Error could not bind _nvgLinearGradient"
411 (add-after 'unpack 'disable-nanovg
413 (substitute* "CMakeLists.txt"
414 (("aotcompile_lib\\(libs/external/nanovg.xtm.*") ""))
416 ;; FIXME: All examples that are used as tests segfault for some
418 (add-after 'unpack 'disable-broken-tests
420 (substitute* "CMakeLists.txt"
421 (("extempore_add_example_as_test\\(.*") ""))
423 (add-after 'unpack 'hardcode-external-lib-paths
424 (lambda* (#:key inputs #:allow-other-keys)
425 (use-modules (ice-9 match))
428 ((file-name lib pkg-name)
429 (substitute* (string-append "libs/external/" file-name ".xtm")
430 ((lib) (string-append (assoc-ref inputs pkg-name)
432 '(("assimp" "libassimp.so" "assimp")
433 ("portmidi" "libportmidi.so" "portmidi")
434 ("sndfile" "libsndfile.so" "libsndfile")
435 ("fft" "libkiss_fft.so" "kiss-fft")
436 ("stb_image" "libstb_image.so" "stb-image")
437 ("nanovg" "libnanovg.so" "nanovg")
438 ("glext" "libGL.so" "mesa")
439 ("glfw3" "libglfw.so" "glfw")
440 ("gl/glcore-directbind" "libGL.so" "mesa")
441 ("gl/glcompat-directbind" "libGL.so" "mesa")))
443 (add-after 'unpack 'use-own-llvm
444 (lambda* (#:key inputs #:allow-other-keys)
445 (setenv "EXT_LLVM_DIR" (assoc-ref inputs "llvm"))
446 ;; Our LLVM builds shared libraries, so Extempore should use
448 (substitute* "CMakeLists.txt"
449 (("CMAKE_STATIC_LIBRARY") "CMAKE_SHARED_LIBRARY"))
451 (add-after 'unpack 'fix-aot-compilation
452 (lambda* (#:key outputs #:allow-other-keys)
453 (substitute* "CMakeLists.txt"
454 ;; EXT_SHARE_DIR does not exist before installation, so the
455 ;; working directory should be the source directory instead.
456 (("WORKING_DIRECTORY \\$\\{EXT_SHARE_DIR\\}")
457 "WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}")
458 ;; Extempore needs to be told where the runtime is to be found.
459 ;; While we're at it we disable automatic tuning for a specific
460 ;; CPU to make binary substitution possible.
461 (("COMMAND extempore" prefix)
462 (string-append prefix " --sharedir " (getcwd)
463 " --mcpu=generic --attr=none")))
466 `(("llvm" ,llvm-for-extempore)
469 ("libsndfile" ,libsndfile)
472 ("stb-image" ,stb-image-for-extempore)
473 ("kiss-fft" ,kiss-fft-for-extempore)
474 ("nanovg" ,nanovg-for-extempore)
475 ("portmidi" ,portmidi-for-extempore)
477 ("alsa-lib" ,alsa-lib)
478 ("portaudio" ,portaudio)
484 ("emacs" ,emacs-no-x)))
485 ;; Extempore refuses to build on architectures other than x86_64
486 (supported-systems '("x86_64-linux"))
487 (home-page "http://digego.github.io/extempore/")
488 (synopsis "Programming environment for live coding of multimedia")
490 "Extempore is a programming language and runtime environment designed
491 with live programming in mind. It supports interactive programming in a REPL
492 style, compiling and binding code just-in-time. Although Extempore has its
493 roots in 'live coding' of audiovisual media art, it is suitable for any task
494 domain where dynamic run-time modifiability and good numerical performance are
495 required. Extempore also has strong timing and concurrency semantics, which
496 are helpful when working in problem spaces where timing is important (such as
498 (license license:bsd-2)))
506 (uri (string-append "http://das.nasophon.de/download/klick-"
510 "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j"))))
511 (build-system gnu-build-system)
513 `(#:tests? #f ;no "check" target
515 ;; TODO: Add scons-build-system and use it here.
516 (modify-phases %standard-phases
519 (lambda* (#:key inputs outputs #:allow-other-keys)
520 (let ((out (assoc-ref outputs "out")))
522 (zero? (system* "scons" (string-append "PREFIX=" out))))))
523 (replace 'install (lambda _ (zero? (system* "scons" "install")))))))
527 ("libsndfile" ,libsndfile)
528 ("libsamplerate" ,libsamplerate)
530 ("rubberband" ,rubberband)))
534 ("pkg-config" ,pkg-config)))
535 (home-page "http://das.nasophon.de/klick/")
536 (synopsis "Metronome for JACK")
538 "klick is an advanced command-line based metronome for JACK. It allows
539 you to define complex tempo maps for entire songs or performances.")
540 (license license:gpl2+)))
542 (define-public gtklick
548 (uri (string-append "http://das.nasophon.de/download/gtklick-"
552 "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp"))))
553 (build-system python-build-system)
555 `(#:tests? #f ; no tests
558 (modify-phases %standard-phases
559 (add-before 'build 'add-sitedirs
560 ;; .pth files are not automatically interpreted unless the
561 ;; directories containing them are added as "sites". The directories
562 ;; are then added to those in the PYTHONPATH. This is required for
563 ;; the operation of pygtk.
565 (substitute* "gtklick/gtklick.py"
567 "import pygtk, site, sys
568 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))))
569 (add-after 'unpack 'inject-store-path-to-klick
570 (lambda* (#:key inputs #:allow-other-keys)
571 (substitute* "gtklick/klick_backend.py"
572 (("KLICK_PATH = 'klick'")
573 (string-append "KLICK_PATH = '"
574 (assoc-ref inputs "klick")
579 ("python2-pyliblo" ,python2-pyliblo)
580 ("python2-pygtk" ,python2-pygtk)))
582 `(("gettext" ,gettext-minimal)))
583 (home-page "http://das.nasophon.de/gtklick/")
584 (synopsis "Simple metronome with an easy-to-use graphical interface")
586 "Gtklick is a simple metronome with an easy-to-use graphical user
587 interface. It is implemented as a frontend to @code{klick}.")
588 (license license:gpl2+)))
590 (define-public libgme
596 (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/"
597 "downloads/game-music-emu-" version
601 "08fk7zddpn7v93d0fa7fcypx7hvgwx9b5psj9l6m8b87k2hbw4fw"))))
602 (build-system cmake-build-system)
604 '(#:tests? #f)) ; no check target
605 (home-page "https://bitbucket.org/mpyne/game-music-emu")
606 (synopsis "Video game music file playback library")
608 "Game-music-emu is a collection of video game music file emulators that
609 support the following formats and systems:
612 ZX Spectrum/Asmtrad CPC
616 Sega Genesis/Mega Drive
618 NEC TurboGrafx-16/PC Engine
620 MSX Home Computer/other Z80 systems (doesn't support FM sound)
622 Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
624 Atari systems using POKEY sound chip
626 Super Nintendo/Super Famicom
628 Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
630 (license (list license:lgpl2.1+
631 ;; demo and player directories are under the Expat license
634 (define-public lilypond
641 "http://download.linuxaudio.org/lilypond/sources/v"
642 (version-major+minor version) "/"
643 name "-" version ".tar.gz"))
646 "0hwv7m1lzyhjiyxqhqfdrrrpx475jhiwckrnxbjbv3ynhyzkngw0"))))
647 (build-system gnu-build-system)
649 `(#:tests? #f ; out-test/collated-files.html fails
651 #:make-flags '("conf=www") ;to generate images for info manuals
653 (list "CONFIGURATION=www"
654 (string-append "--with-texgyre-dir="
655 (assoc-ref %build-inputs "font-tex-gyre")
656 "/share/fonts/opentype/"))
658 (modify-phases %standard-phases
659 (add-after 'unpack 'use-texlive-union
661 ;; FIXME: fonts are not found and have to be generated in HOME.
662 (setenv "HOME" "/tmp")
663 ;; The test for the "lh" package fails, even though it is among
665 (substitute* "configure"
666 (("TEX_FIKPARM=.*") "TEX_FIKPARM=found\n"))
668 (add-after 'unpack 'fix-path-references
670 (substitute* "scm/backend-library.scm"
671 (("\\(search-executable '\\(\"gs\"\\)\\)")
672 (string-append "\"" (which "gs") "\""))
674 (string-append "\"" (which "sh") "\"")))
676 (add-before 'configure 'prepare-configuration
678 (substitute* "configure"
679 (("SHELL=/bin/sh") "SHELL=sh")
680 ;; When checking the fontforge version do not consider the
681 ;; version string that's part of the directory.
682 (("head -n") "tail -n")
683 ;; Also allow for SOURCE_DATE_EPOCH = 0 in fontforge.
684 (("20110222") "19700101"))
686 (setenv "conf" "www")
688 (add-after 'install 'install-info
690 (zero? (system* "make"
691 "-j" (number->string (parallel-job-count))
692 "conf=www" "install-info")))))))
694 `(("guile" ,guile-1.8)
695 ("font-dejavu" ,font-dejavu)
696 ("font-tex-gyre" ,font-tex-gyre)
697 ("fontconfig" ,fontconfig)
698 ("freetype" ,freetype)
699 ("ghostscript" ,ghostscript)
701 ("python" ,python-2)))
706 ("fontforge" ,fontforge)
708 ("gettext" ,gettext-minimal)
709 ("imagemagick" ,imagemagick)
710 ("netpbm" ,netpbm) ;for pngtopnm
711 ("texlive" ,(texlive-union (list texlive-metapost
714 texlive-latex-cyrillic)))
716 ("texi2html" ,texi2html)
718 ("pkg-config" ,pkg-config)
720 (home-page "http://www.lilypond.org/")
721 (synopsis "Music typesetting")
723 "GNU LilyPond is a music typesetter, which produces high-quality sheet
724 music. Music is input in a text file containing control sequences which are
725 interpreted by LilyPond to produce the final document. It is extendable with
727 (license license:gpl3+)
729 ;; On armhf and mips64el, building the documentation sometimes leads to
730 ;; more than an hour of silence, so double the max silent time.
731 (properties `((max-silent-time . 7200)))))
733 (define-public non-sequencer
734 ;; The latest tagged release is three years old and uses a custom build
735 ;; system, so we take the last commit.
736 (let ((commit "10c31e57291b6e42be53371567a722b62b32d220")
739 (name "non-sequencer")
740 (version (string-append "1.9.5-" revision "." (string-take commit 7)))
744 (url "git://git.tuxfamily.org/gitroot/non/non.git")
748 "080rha4ffp7qycyg1mqcf4vj0s7z8qfvz6bxm0w29xgg2kkmb3fx"))
749 (file-name (string-append name "-" version "-checkout"))))
750 (build-system waf-build-system)
752 `(#:tests? #f ;no "check" target
754 (list "--project=sequencer"
755 ;; Disable the use of SSE unless on x86_64.
756 ,@(if (not (string-prefix? "x86_64" (or (%current-target-system)
761 (modify-phases %standard-phases
763 'configure 'set-flags
765 ;; Compile with C++11, required by libsigc++.
766 (setenv "CXXFLAGS" "-std=c++11")
771 ("libsigc++" ,libsigc++)
775 `(("pkg-config" ,pkg-config)))
776 (home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer")
777 (synopsis "Pattern-based MIDI sequencer")
779 "The Non Sequencer is a powerful, lightweight, real-time,
780 pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for
781 MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non
782 Sequencer happens on-line, in real-time. Music can be composed live, while the
783 transport is rolling.")
784 (license license:gpl2+))))
786 (define-public non-session-manager
787 (package (inherit non-sequencer)
788 (name "non-session-manager")
790 (substitute-keyword-arguments (package-arguments non-sequencer)
791 ((#:configure-flags flags)
792 `(cons "--project=session-manager"
793 (delete "--project=sequencer" ,flags)))))
799 `(("pkg-config" ,pkg-config)))
800 (home-page "http://non.tuxfamily.org/nsm/")
801 (synopsis "Audio session management")
803 "The Non Session Manager is an API and an implementation for audio
804 session management. NSM clients use a well-specified OSC protocol to
805 communicate with the session management daemon.")
806 (license license:gpl2+)))
808 (define-public non-mixer
809 (package (inherit non-sequencer)
812 (substitute-keyword-arguments (package-arguments non-sequencer)
813 ((#:configure-flags flags)
814 `(cons "--project=mixer"
815 (delete "--project=sequencer" ,flags)))))
823 `(("pkg-config" ,pkg-config)))
824 (home-page "http://non.tuxfamily.org/wiki/Non%20Mixer")
825 (synopsis "Modular digital audio mixer")
827 "The Non Mixer is a powerful, reliable and fast modular digital audio
828 mixer. It utilizes JACK for inter-application audio I/O and the NTK GUI
829 toolkit for a fast and lightweight user interface. Non Mixer can be used
830 alone or in concert with Non Timeline and Non Sequencer to form a complete
832 (license license:gpl2+)))
834 (define-public non-timeline
835 (package (inherit non-sequencer)
836 (name "non-timeline")
838 (substitute-keyword-arguments (package-arguments non-sequencer)
839 ((#:configure-flags flags)
840 `(cons "--project=timeline"
841 (delete "--project=sequencer" ,flags)))))
845 ("libsndfile" ,libsndfile)
848 `(("pkg-config" ,pkg-config)))
849 (home-page "http://non.tuxfamily.org/wiki/Non%20Timeline")
850 (synopsis "Modular digital audio timeline arranger")
852 "The Non Timeline is a powerful, reliable and fast modular digital audio
853 timeline arranger. It utilizes JACK for inter-application audio I/O and the
854 NTK GUI toolkit for a fast and lightweight user interface. Non Timeline can
855 be used alone or in concert with Non Mixer and Non Sequencer to form a
857 (license license:gpl2+)))
859 (define-public solfege
866 "mirror://gnu/solfege/solfege-"
870 "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i"))))
871 (build-system gnu-build-system)
873 `(#:tests? #f ; xmllint attempts to download DTD
876 (modify-phases %standard-phases
877 (add-after 'unpack 'fix-configuration
878 (lambda* (#:key inputs #:allow-other-keys)
879 (substitute* "default.config"
881 (string-append "csound="
882 (assoc-ref inputs "csound")
885 (string-append (assoc-ref inputs "aplay")
887 (("/usr/bin/timidity")
888 (string-append (assoc-ref inputs "timidity")
891 (string-append (assoc-ref inputs "mpg123")
894 (string-append (assoc-ref inputs "ogg123")
897 (add-before 'build 'patch-python-shebangs
899 ;; Two python scripts begin with a Unicode BOM, so patch-shebang
901 (substitute* '("solfege/parsetree.py"
902 "solfege/presetup.py")
903 (("#!/usr/bin/python") (string-append "#!" (which "python"))))
905 (add-before 'build 'add-sitedirs
906 ;; .pth files are not automatically interpreted unless the
907 ;; directories containing them are added as "sites". The directories
908 ;; are then added to those in the PYTHONPATH. This is required for
909 ;; the operation of pygtk and pygobject.
911 (substitute* "run-solfege.py"
914 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))
916 (add-before 'build 'adjust-config-file-prefix
917 (lambda* (#:key outputs #:allow-other-keys)
918 (substitute* "run-solfege.py"
919 (("prefix = os.path.*$")
920 (string-append "prefix = " (assoc-ref outputs "out"))))
922 (add-after 'install 'wrap-program
923 (lambda* (#:key inputs outputs #:allow-other-keys)
924 ;; Make sure 'solfege' runs with the correct PYTHONPATH.
925 (let* ((out (assoc-ref outputs "out"))
926 (path (getenv "PYTHONPATH")))
927 (wrap-program (string-append out "/bin/solfege")
928 `("PYTHONPATH" ":" prefix (,path))))
931 `(("python" ,python-2)
932 ("pygtk" ,python2-pygtk)
933 ("gettext" ,gettext-minimal)
935 ("lilypond" ,lilypond)
936 ;; players needed at runtime
937 ("aplay" ,alsa-utils)
938 ("csound" ,csound) ; optional, needed for some exercises
940 ("ogg123" ,vorbis-tools)
941 ("timidity" ,timidity++)))
943 `(("pkg-config" ,pkg-config)
945 ("libxml2" ,libxml2) ; for tests
946 ("ghostscript" ,ghostscript)
947 ("texinfo" ,texinfo)))
948 (home-page "https://www.gnu.org/software/solfege/")
949 (synopsis "Ear training")
951 "GNU Solfege is a program for practicing musical ear-training. With it,
952 you can practice your recognition of various musical intervals and chords. It
953 features a statistics overview so you can monitor your progress across several
954 sessions. Solfege is also designed to be extensible so you can easily write
956 (license license:gpl3+)))
958 (define-public powertabeditor
960 (name "powertabeditor")
961 (version "2.0.0-alpha10")
965 "https://github.com/powertab/powertabeditor/archive/"
967 (file-name (string-append name "-" version ".tar.gz"))
970 "1fr14ql0yhlqvh6y08yaanszm2nvca5i50rqym396kfvga3ky18x"))
971 (modules '((guix build utils)))
974 ;; Remove bundled sources for external libraries
975 (delete-file-recursively "external")
976 ;; Use only system libraries
977 (substitute* "CMakeLists.txt"
978 (("include\\( PTE_ThirdParty \\)")
980 include(third_party/Qt)
981 include(third_party/boost)
982 add_library( Catch INTERFACE IMPORTED )
983 add_library( rapidjson INTERFACE IMPORTED )"))
985 (build-system cmake-build-system)
987 `(#:modules ((guix build cmake-build-system)
991 ;; CMake appears to lose the RUNPATH for some reason, so it has to be
992 ;; explicitly set with CMAKE_INSTALL_RPATH.
993 (list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
994 (string-append "-DCMAKE_INSTALL_RPATH="
995 (string-join (map (match-lambda
997 (string-append directory "/lib")))
999 "-DPTE_DATA_DIR=share/powertabeditor")
1001 (modify-phases %standard-phases
1004 (zero? (system* "bin/pte_tests"
1005 ;; FIXME: these tests fail
1006 "exclude:Actions/EditStaff"
1007 "exclude:Formats/PowerTabOldImport/MergeMultiBarRests"
1008 "exclude:Score/ViewFilter/FilterRule"
1009 "exclude:Score/ViewFilter/ViewFilter"
1010 "exclude:Formats/PowerTabOldImport/Directions"
1012 (add-before 'configure 'remove-third-party-libs
1013 (lambda* (#:key inputs #:allow-other-keys)
1014 ;; Link with required static libraries, because we're not
1015 ;; using the bundled version of withershins.
1016 ;; Also add pthread for fixing a linker error.
1017 (substitute* "source/build/CMakeLists.txt"
1018 (("withershins" line)
1019 (string-append line "\n"
1020 (assoc-ref inputs "binutils")
1022 (assoc-ref inputs "libiberty")
1023 "/lib/libiberty.a\n"
1030 ("alsa-lib" ,alsa-lib)
1032 ("withershins" ,withershins)
1033 ("libiberty" ,libiberty) ;for withershins
1034 ("binutils" ,binutils) ;for -lbfd and -liberty (for withershins)
1035 ("timidity" ,timidity++)
1036 ("pugixml" ,pugixml)
1038 ("rapidjson" ,rapidjson)
1041 `(("catch" ,catch-framework)
1042 ("pkg-config" ,pkg-config)))
1043 (home-page "http://powertabs.net")
1044 (synopsis "Guitar tablature editor")
1046 "Power Tab Editor 2.0 is the successor to the famous original Power Tab
1047 Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
1048 (license license:gpl3+)))
1050 (define-public jalv-select
1052 (name "jalv-select")
1056 (uri (string-append "https://github.com/brummer10/jalv_select/"
1057 "archive/V" version ".tar.gz"))
1060 "0zraagwr681b5s3qifxf399c7q93jz23c8sr42gmff9zqnvxc75q"))))
1061 (build-system gnu-build-system)
1064 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1066 (modify-phases %standard-phases
1068 (add-after 'unpack 'ignore-PATH
1069 (lambda* (#:key inputs #:allow-other-keys)
1070 (substitute* "jalv.select.cpp"
1071 (("echo \\$PATH.*tr ':'.*xargs ls")
1072 (string-append "ls -1 " (assoc-ref inputs "jalv") "/bin")))
1073 (substitute* "jalv.select.h"
1074 (("gtkmm.h") "gtkmm-2.4/gtkmm.h"))
1080 ("gtkmm" ,gtkmm-2)))
1082 `(("pkg-config" ,pkg-config)))
1083 (home-page "https://github.com/brummer10/jalv_select")
1084 (synopsis "GUI to select LV2 plugins and run them with jalv")
1086 "The jalv.select package provides a graphical user interface allowing
1087 users to select LV2 plugins and run them with jalv.")
1088 (license license:public-domain)))
1090 (define-public synthv1
1097 (string-append "mirror://sourceforge/synthv1/synthv1/" version
1098 "/synthv1-" version ".tar.gz"))
1101 "0awk2zx0xa6vl6ah24zz0k2mwsx50hh5g1rh32mp790fp4x7l5s8"))))
1102 (build-system gnu-build-system)
1104 `(#:tests? #f ; There are no tests.
1106 '("CXXFLAGS=-std=gnu++11")))
1110 ("alsa-lib" ,alsa-lib)
1111 ("non-session-manager" ,non-session-manager)
1114 ("qttools" ,qttools)))
1116 `(("pkg-config" ,pkg-config)))
1117 (home-page "http://synthv1.sourceforge.net")
1118 (synopsis "Polyphonic subtractive synthesizer")
1120 "Synthv1 is an old-school subtractive polyphonic synthesizer with four
1121 oscillators and stereo effects.")
1122 (license license:gpl2+)))
1124 (define-public drumkv1
1131 (string-append "mirror://sourceforge/drumkv1/drumkv1/" version
1132 "/drumkv1-" version ".tar.gz"))
1135 "0qqpklzy4wgw9jy0v2810j06712q90bwc69fp7da82536ba058a9"))))
1136 (build-system gnu-build-system)
1138 `(#:tests? #f ; There are no tests.
1140 '("CXXFLAGS=-std=gnu++11")))
1144 ("libsndfile" ,libsndfile)
1145 ("alsa-lib" ,alsa-lib)
1146 ("non-session-manager" ,non-session-manager)
1148 ("qtbase" ,qtbase)))
1150 `(("pkg-config" ,pkg-config)
1151 ("qttools" ,qttools)))
1152 (home-page "http://drumkv1.sourceforge.net")
1153 (synopsis "Drum-kit sampler synthesizer with stereo effects")
1155 "Drumkv1 is an old-school drum-kit sampler synthesizer with stereo
1157 (license license:gpl2+)))
1159 (define-public samplv1
1166 (string-append "mirror://sourceforge/samplv1/samplv1/" version
1167 "/samplv1-" version ".tar.gz"))
1170 "107p2xsj066q2bil0xcgqrrn7lawp02wzf7qmlajcbnd79jhsi6i"))))
1171 (build-system gnu-build-system)
1173 `(#:tests? #f ; There are no tests.
1175 '("CXXFLAGS=-std=gnu++11")))
1179 ("libsndfile" ,libsndfile)
1180 ("alsa-lib" ,alsa-lib)
1181 ("non-session-manager" ,non-session-manager)
1183 ("qtbase" ,qtbase)))
1185 `(("pkg-config" ,pkg-config)
1186 ("qttools" ,qttools)))
1187 (home-page "http://samplv1.sourceforge.net")
1188 (synopsis "Polyphonic sampler synthesizer with stereo effects")
1190 "Samplv1 is an old-school polyphonic sampler synthesizer with stereo
1192 (license license:gpl2+)))
1194 (define-public amsynth
1201 (uri (string-append "https://github.com/amsynth/amsynth/releases/"
1202 "download/release-" version
1203 "/amsynth-" version ".tar.bz2"))
1206 "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
1207 (build-system gnu-build-system)
1210 (modify-phases %standard-phases
1211 (add-before 'configure 'set-flags
1213 ;; Compile with C++11, required by gtkmm.
1214 (setenv "CXXFLAGS" "-std=c++11")
1217 `(("alsa-lib" ,alsa-lib)
1221 ("libsndfile" ,libsndfile)
1223 ("gtkmm" ,gtkmm-2)))
1225 `(("pkg-config" ,pkg-config)
1226 ("intltool" ,intltool)))
1227 (home-page "http://amsynth.github.io")
1228 (synopsis "Analog modeling synthesizer")
1230 "amsynth is an easy-to-use software synthesizer with a classic
1231 subtractive synthesizer topology. Its features include: dual
1232 oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct
1233 resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato
1234 keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO
1235 which can modulate the oscillators, filter, and amplitude; distortion and
1237 (license license:gpl2+)))
1239 (define-public setbfree
1246 (string-append "https://github.com/pantherb/setBfree/archive/v"
1248 (file-name (string-append name "-" version ".tar.gz"))
1251 "1g4s1920kb2q5gpp82l2vxia29qa8g8zvdjgrca8ypynvxpzn65f"))))
1252 (build-system gnu-build-system)
1254 `(#:tests? #f ; no "check" target
1256 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1257 (string-append "FONTFILE="
1258 (assoc-ref %build-inputs "font-bitstream-vera")
1259 "/share/fonts/truetype/VeraBd.ttf")
1260 ;; Disable unsupported optimization flags on non-x86
1261 ,@(let ((system (or (%current-target-system)
1262 (%current-system))))
1263 (if (or (string-prefix? "x86_64" system)
1264 (string-prefix? "i686" system))
1266 '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
1268 (modify-phases %standard-phases
1269 (add-before 'build 'set-CC-variable
1270 (lambda _ (setenv "CC" "gcc") #t))
1271 (delete 'configure))))
1275 ("zita-convolver" ,zita-convolver)
1278 ("font-bitstream-vera" ,font-bitstream-vera)))
1280 `(("help2man" ,help2man)
1281 ("pkg-config" ,pkg-config)))
1282 (home-page "http://setbfree.org")
1283 (synopsis "Tonewheel organ")
1285 "setBfree is a MIDI-controlled, software synthesizer designed to imitate
1286 the sound and properties of the electromechanical organs and sound
1287 modification devices that brought world-wide fame to the names and products of
1288 Laurens Hammond and Don Leslie.")
1289 (license license:gpl2+)))
1291 (define-public beast
1297 (uri (string-append "https://testbit.eu/pub/dists/beast/beast-"
1301 "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn"))))
1302 (build-system gnu-build-system)
1304 '(#:parallel-build? #f)) ; Race conditions cause build failures
1306 `(("rapicorn" ,rapicorn)
1307 ("guile" ,guile-1.8)
1308 ("python" ,python-2)
1309 ("libgnomecanvas" ,libgnomecanvas)
1313 ("alsa-lib" ,alsa-lib)
1314 ("libvorbis" ,libvorbis)
1315 ("gettext" ,gettext-minimal)))
1317 `(("pkg-config" ,pkg-config)
1318 ("glib:bin" ,glib "bin")
1319 ("cython" ,python2-cython)
1321 ("perl-xml-parser" ,perl-xml-parser)))
1322 (home-page "https://testbit.eu/wiki/Beast_Home")
1323 (synopsis "Music composition and modular synthesis environment")
1325 "Beast is a music composition and modular synthesis application. It
1326 supports a wide range of standards in the field, such as MIDI, various audio
1327 file formats and LADSPA modules. It allows for multitrack editing, real-time
1328 synthesis, 32bit audio rendering, precise timing down to sample granularity,
1329 on-demand and partial loading of wave files, on the fly decoding, stereo
1330 mixing, FFT scopes, MIDI automation and full scriptability in Scheme.")
1331 (license license:gpl3+)))
1333 (define-public bristol
1339 (uri (string-append "mirror://sourceforge/bristol/bristol/"
1340 (version-major+minor version)
1341 "/bristol-" version ".tar.gz"))
1344 "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
1345 (build-system gnu-build-system)
1348 (modify-phases %standard-phases
1349 (add-after 'unpack 'remove-sse-flags
1350 (lambda* (#:key system #:allow-other-keys)
1351 (when (not (or (string-prefix? "x86_64" system)
1352 (string-prefix? "i686" system)))
1353 (substitute* "bristol/Makefile.in"
1354 (("-msse -mfpmath=sse") "")))
1356 ;; alsa-lib 1.1.x no longer provides iatomic.h. That's okay because
1357 ;; bristol actually doesn't use it.
1358 (add-after 'unpack 'do-not-use-alsa-iatomic
1360 (substitute* "libbristolaudio/audioEngineJack.c"
1361 (("#include <alsa/iatomic.h>") ""))
1363 ;; We know that Bristol has been linked with JACK and we don't have
1364 ;; ldd, so we can just skip this check.
1365 (add-after 'unpack 'do-not-grep-for-jack
1367 (substitute* "bin/startBristol.in"
1368 (("ldd `which bristol` | grep jack") "echo guix"))
1371 `(("alsa-lib" ,alsa-lib)
1374 ("libx11" ,libx11)))
1376 `(("pkg-config" ,pkg-config)))
1377 (home-page "http://bristol.sourceforge.net/")
1378 (synopsis "Synthesizer emulator")
1380 "Bristol is an emulation package for a number of different 'classic'
1381 synthesizers including additive and subtractive and a few organs. The
1382 application consists of the engine, which is called bristol, and its own GUI
1383 library called brighton that represents all the emulations. There are
1384 currently more than twenty different emulations; each does sound different
1385 although the author maintains that the quality and accuracy of each emulation
1387 (license license:gpl3+)))
1389 (define-public tuxguitar
1396 "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-"
1397 version "/tuxguitar-" version "-src.tar.gz"))
1400 "041275vwfr82kass7wiq9g2y82w9qrbzfinzcvfij2f2q45njwmc"))
1401 (modules '((guix build utils)))
1404 ;; Delete pre-built classes
1405 (delete-file-recursively "TuxGuitar-android-gdrive/bin")
1406 (delete-file-recursively "TuxGuitar-android-gdrive-gdaa/bin")
1408 (build-system ant-build-system)
1410 `(#:build-target "build"
1412 #:tests? #f ; no tests
1414 (modify-phases %standard-phases
1415 (add-after 'unpack 'enter-dir
1416 (lambda _ (chdir "TuxGuitar-lib") #t))
1417 (add-after 'build 'build-libraries
1418 (lambda* (#:key inputs outputs #:allow-other-keys)
1419 (let* ((initial-classpath (getenv "CLASSPATH"))
1420 (build-dir (lambda (dir)
1423 (string-join (cons initial-classpath
1424 (find-files (getcwd) "\\.jar$"))
1427 (if (file-exists? "build.xml")
1428 ((assoc-ref %standard-phases 'build)
1429 #:build-target "build")
1431 ;; Generate default build.xml
1432 ((@@ (guix build ant-build-system) default-build.xml)
1433 (string-append (string-downcase dir) ".jar")
1434 (string-append (assoc-ref outputs "out")
1436 ((assoc-ref %standard-phases 'build)))))))
1437 (map build-dir '("TuxGuitar-editor-utils"
1438 "TuxGuitar-ui-toolkit"
1439 "TuxGuitar-ui-toolkit-swt"
1440 "TuxGuitar-awt-graphics")))))
1441 (add-after 'build-libraries 'build-application
1443 (chdir "../TuxGuitar")
1444 ((assoc-ref %standard-phases 'build)
1445 #:build-target "build")))
1447 (lambda* (#:key inputs outputs #:allow-other-keys)
1448 (let* ((out (assoc-ref outputs "out"))
1449 (bin (string-append out "/bin"))
1450 (share (string-append out "/share"))
1451 (lib (string-append share "/java"))
1452 (swt (assoc-ref inputs "java-swt")))
1455 (for-each (lambda (file)
1456 (install-file file lib))
1457 (find-files ".." "\\.jar$"))
1459 ;; install all resources
1460 (copy-recursively "share" share)
1463 (call-with-output-file (string-append bin "/tuxguitar")
1465 (let ((classpath (string-join (append (find-files lib "\\.jar$")
1466 (find-files swt "\\.jar$"))
1470 (string-append "#!/bin/sh\n"
1473 " -Dtuxguitar.home.path=" out
1474 " -Dtuxguitar.share.path=" out "/share"
1475 " -Dswt.library.path=" swt "/lib"
1476 " org.herac.tuxguitar.app.TGMainSingleton"
1477 " \"$1\" \"$2\"")))))
1478 (chmod (string-append bin "/tuxguitar") #o555)
1481 `(("java-swt" ,java-swt)))
1482 (home-page "http://tuxguitar.pw")
1483 (synopsis "Multitrack tablature editor and player")
1485 "TuxGuitar is a guitar tablature editor with player support through midi.
1486 It can display scores and multitrack tabs. TuxGuitar provides various
1487 additional features, including autoscrolling while playing, note duration
1488 management, bend/slide/vibrato/hammer-on/pull-off effects, support for
1489 tuplets, time signature management, tempo management, gp3/gp4/gp5 import and
1491 (license license:lgpl2.1+)))
1500 (string-append "http://msp.ucsd.edu/Software/pd-"
1501 version ".src.tar.gz"))
1504 "0k5s949kqd7yw97h3m8z81bjz32bis9m4ih8df1z0ymipnafca67"))))
1505 (build-system gnu-build-system)
1507 `(#:tests? #f ; no "check" target
1509 (modify-phases %standard-phases
1510 (add-before 'configure 'fix-wish-path
1512 (substitute* "src/s_inter.c"
1513 ((" wish ") (string-append " " (which "wish8.6") " ")))
1514 (substitute* "tcl/pd-gui.tcl"
1515 (("exec wish ") (string-append "exec " (which "wish8.6") " ")))
1517 (add-after 'unpack 'autoconf
1518 (lambda _ (zero? (system* "bash" "./autogen.sh")))))))
1520 `(("autoconf" ,autoconf)
1521 ("automake" ,automake)
1522 ("libtool" ,libtool)
1523 ("gettext" ,gettext-minimal)
1524 ("pkg-config" ,pkg-config)))
1527 ("alsa-lib" ,alsa-lib)
1529 (home-page "http://puredata.info")
1530 (synopsis "Visual programming language for artistic performances")
1532 "Pure Data (aka Pd) is a visual programming language. Pd enables
1533 musicians, visual artists, performers, researchers, and developers to create
1534 software graphically, without writing lines of code. Pd is used to process
1535 and generate sound, video, 2D/3D graphics, and interface sensors, input
1536 devices, and MIDI. Pd can easily work over local and remote networks to
1537 integrate wearable technology, motor systems, lighting rigs, and other
1538 equipment. Pd is suitable for learning basic multimedia processing and visual
1539 programming methods as well as for realizing complex systems for large-scale
1541 (license license:bsd-3)))
1543 (define-public portmidi
1549 (uri (string-append "mirror://sourceforge/portmedia/portmidi/"
1550 version "/portmidi-src-" version ".zip"))
1553 "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88"))
1554 (patches (list (search-patch "portmidi-modular-build.patch")))))
1555 (build-system cmake-build-system)
1557 `(#:tests? #f ; tests cannot be linked
1559 (list "-DPORTMIDI_ENABLE_JAVA=Off"
1560 "-DCMAKE_BUILD_TYPE=Release" ; needed to have PMALSA set
1561 "-DPORTMIDI_ENABLE_TEST=Off"))) ; tests fail linking
1563 `(("alsa-lib" ,alsa-lib)))
1565 `(("unzip" ,unzip)))
1566 (home-page "http://portmedia.sourceforge.net/portmidi/")
1567 (synopsis "Library for MIDI I/O")
1569 "PortMidi is a library supporting real-time input and output of MIDI data
1570 using a system-independent interface.")
1571 (license license:expat)))
1573 (define-public portmidi-for-extempore
1574 (package (inherit portmidi)
1575 (name "portmidi-for-extempore")
1579 (uri (string-append "https://github.com/extemporelang/portmidi/"
1580 "archive/" version ".tar.gz"))
1581 (file-name (string-append name "-" version ".tar.gz"))
1584 "0gjikwciyr8kk4y3qiv1pcq58xpgw38ql1m2gs6g0qc1s8sx4235"))))
1585 (build-system cmake-build-system)
1586 (arguments `(#:tests? #f)) ; no tests
1588 ;; Extempore refuses to build on architectures other than x86_64
1589 (supported-systems '("x86_64-linux"))
1590 (home-page "https://github.com/extemporelang/portmidi/")))
1592 (define-public python-pyportmidi
1594 (name "python-pyportmidi")
1595 (version (package-version portmidi))
1596 (source (package-source portmidi))
1597 (build-system python-build-system)
1599 `(#:tests? #f ; no tests included
1601 (modify-phases %standard-phases
1602 (add-after 'unpack 'enter-dir
1603 (lambda _ (chdir "pm_python") #t))
1604 (add-after 'enter-dir 'fix-setup.py
1606 (substitute* "setup.py"
1607 ;; Use Python 3 syntax
1608 (("print (\".*\")" _ text)
1609 (string-append "print(" text ")\n"))
1610 ;; TODO.txt and CHANGES.txt don't exist
1611 (("CHANGES =.*") "CHANGES = \"\"\n")
1612 (("TODO =.*") "TODO = \"\"\n"))
1615 `(("portmidi" ,portmidi)
1616 ("alsa-lib" ,alsa-lib)))
1618 `(("python-cython" ,python-cython)
1620 (home-page "http://portmedia.sourceforge.net/portmidi/")
1621 (synopsis "Python bindings to PortMidi")
1623 "This package provides Python bindings to the PortMidi library.")
1624 (license license:expat)))
1626 (define-public frescobaldi
1628 (name "frescobaldi")
1633 "https://github.com/wbsoft/frescobaldi/releases/download/v"
1634 version "/frescobaldi-" version ".tar.gz"))
1637 "15cqhbjbjikr7ljgiq56bz2gxrr38j8p0f78p2vhyzydaviy9a2z"))))
1638 (build-system python-build-system)
1639 (arguments `(#:tests? #f)) ; no tests included
1641 `(("lilypond" ,lilypond)
1642 ("portmidi" ,portmidi)
1643 ("python-pyqt" ,python-pyqt)
1644 ("python-ly" ,python-ly)
1645 ("python-pyportmidi" ,python-pyportmidi)
1646 ("poppler" ,poppler)
1647 ("python-poppler-qt5" ,python-poppler-qt5)
1648 ("python-sip" ,python-sip)))
1649 (home-page "http://www.frescobaldi.org/")
1650 (synopsis "LilyPond sheet music text editor")
1652 "Frescobaldi is a LilyPond sheet music text editor with syntax
1653 highlighting and automatic completion. Among other things, it can render
1654 scores next to the source, can capture input from MIDI or read MusicXML and
1655 ABC files, has a MIDI player for proof-listening, and includes a documentation
1657 (license license:gpl2+)))
1659 (define-public drumstick
1665 (uri (string-append "mirror://sourceforge/drumstick/"
1666 version "/drumstick-" version ".tar.bz2"))
1669 "13pkfqrav30bbcddgf1imd7jk6lpqbxkz1qv31718pdl446jq7df"))))
1670 (build-system cmake-build-system)
1672 `(#:tests? #f ; no test target
1673 #:configure-flags '("-DLIB_SUFFIX=")
1675 (modify-phases %standard-phases
1676 (add-before 'configure 'fix-docbook
1677 (lambda* (#:key inputs #:allow-other-keys)
1678 (substitute* "cmake_admin/CreateManpages.cmake"
1679 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1680 (string-append (assoc-ref inputs "docbook-xsl")
1681 "/xml/xsl/docbook-xsl-"
1682 ,(package-version docbook-xsl)
1683 "/manpages/docbook.xsl")))
1686 `(("qtbase" ,qtbase)
1688 ("alsa-lib" ,alsa-lib)
1689 ("fluidsynth" ,fluidsynth)))
1691 `(("pkg-config" ,pkg-config)
1692 ("libxslt" ,libxslt) ;for xsltproc
1693 ("docbook-xsl" ,docbook-xsl)
1694 ("doxygen" ,doxygen)))
1695 (home-page "http://drumstick.sourceforge.net/")
1696 (synopsis "C++ MIDI library")
1698 "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It
1699 includes a C++ wrapper around the ALSA library sequencer interface. A
1700 complementary library provides classes for processing SMF (Standard MIDI
1701 files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A
1702 multiplatform realtime MIDI I/O library is also provided with various output
1703 backends, including ALSA, OSS, Network and FluidSynth.")
1704 (license license:gpl2+)))
1706 (define-public zynaddsubfx
1708 (name "zynaddsubfx")
1713 "mirror://sourceforge/zynaddsubfx/zynaddsubfx/"
1714 version "/zynaddsubfx-" version ".tar.bz2"))
1717 "09mr23lqc51r7gskry5b7hk84pghdpgn1s4vnrzvx7xpa21gvplm"))))
1718 (build-system cmake-build-system)
1721 (modify-phases %standard-phases
1722 ;; Move SSE compiler optimization flags from generic target to
1723 ;; athlon64 and core2 targets, because otherwise the build would fail
1724 ;; on non-Intel machines.
1725 (add-after 'unpack 'remove-sse-flags-from-generic-target
1727 (substitute* "src/CMakeLists.txt"
1728 (("-msse -msse2 -mfpmath=sse") "")
1729 (("-march=(athlon64|core2)" flag)
1730 (string-append flag " -msse -msse2 -mfpmath=sse")))
1736 ("alsa-lib" ,alsa-lib)
1739 ("minixml" ,minixml)
1743 `(("pkg-config" ,pkg-config)))
1744 (home-page "http://zynaddsubfx.sf.net/")
1745 (synopsis "Software synthesizer")
1747 "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
1748 three synthesizer engines, multitimbral and polyphonic synths, microtonal
1749 capabilities, custom envelopes, effects, etc.")
1750 (license license:gpl2)))
1752 (define-public yoshimi
1758 (uri (string-append "mirror://sourceforge/yoshimi/"
1759 (version-major+minor version)
1760 "/yoshimi-" version ".tar.bz2"))
1763 "0sns35pyw2f74xrv1fxiyf9g9415kvh2rrbdjd60hsiv584nlari"))))
1764 (build-system cmake-build-system)
1766 `(#:tests? #f ; there are no tests
1768 (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR="
1769 (assoc-ref %outputs "out") "/share"))
1771 (modify-phases %standard-phases
1772 (add-before 'configure 'enter-dir
1773 (lambda _ (chdir "src") #t))
1774 ;; Move SSE compiler optimization flags from generic target to
1775 ;; athlon64 and core2 targets, because otherwise the build would fail
1776 ;; on non-Intel machines.
1777 (add-after 'unpack 'remove-sse-flags-from-generic-target
1779 (substitute* "src/CMakeLists.txt"
1780 (("-msse -msse2 -mfpmath=sse") "")
1781 (("-march=(athlon64|core2)" flag)
1782 (string-append flag " -msse -msse2 -mfpmath=sse")))
1784 ;; Yoshimi tries to find ncurses with pkg-config, but our ncurses
1785 ;; package does not install .pc files.
1786 (add-after 'unpack 'find-ncurses
1788 (substitute* "src/CMakeLists.txt"
1789 (("LIBNCURSES REQUIRED") "LIBNCURSES")
1790 (("NCURSES REQUIRED") "NCURSES")
1791 (("FATAL_ERROR \"libncurses") "STATUS \"libncurses")
1792 (("\\$\\{NCURSES_LIBRARIES\\}") "ncurses"))
1797 ("alsa-lib" ,alsa-lib)
1799 ("fontconfig" ,fontconfig)
1800 ("minixml" ,minixml)
1804 ("readline" ,readline)
1805 ("ncurses" ,ncurses)
1809 `(("pkg-config" ,pkg-config)))
1810 (home-page "http://yoshimi.sourceforge.net/")
1811 (synopsis "Multi-paradigm software synthesizer")
1813 "Yoshimi is a fork of ZynAddSubFX, a feature heavy realtime software
1814 synthesizer. It offers three synthesizer engines, multitimbral and polyphonic
1815 synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi
1816 improves on support for JACK features, such as JACK MIDI.")
1817 (license license:gpl2)))
1819 (define-public libgig
1825 (uri (string-append "http://download.linuxsampler.org/packages/"
1826 "libgig-" version ".tar.bz2"))
1829 "1wr8mwjmqpnyz6bx9757lspiii1zzn8zfbqsvn2ipzpgqkxv6kaz"))))
1830 (build-system gnu-build-system)
1832 `(("libuuid" ,util-linux)
1833 ("libsndfile" ,libsndfile)))
1835 `(("pkg-config" ,pkg-config)))
1836 (home-page "http://linuxsampler.org/libgig/")
1837 (synopsis "C++ library for working with Gigasampler (.gig) files")
1839 "Libgig is a C++ library for loading, modifying existing and creating new
1840 Gigasampler (.gig) files and DLS (Downloadable Sounds) Level 1/2 files, KORG
1841 sample based instruments (.KSF and .KMP files), SoundFont v2 (.sf2) files and
1842 AKAI sampler data. The package includes a couple of command line tools based
1844 ;; The library and tools are released under the GPL, except the AKAI
1845 ;; classes which are released under the LGPL.
1846 (license (list license:gpl2+ license:lgpl2.1+))))
1848 (define-public jack-keyboard
1850 (name "jack-keyboard")
1855 (uri (string-append "mirror://sourceforge/jack-keyboard/jack-keyboard/"
1856 version "/jack-keyboard-" version ".tar.gz"))
1859 "0mzmg8aavybcfdlq2yd9d0vscqd6is5p6jzrgfpfm5j3xdcvh2s3"))))
1860 (build-system gnu-build-system)
1866 `(("pkg-config" ,pkg-config)))
1867 (home-page "http://jack-keyboard.sourceforge.net/")
1868 (synopsis "Virtual MIDI keyboard")
1869 (description "Jack-keyboard is a virtual MIDI keyboard, a program that
1870 allows you to send JACK MIDI events (i.e. play) using your PC keyboard.")
1871 (license license:bsd-2)))
1873 (define-public cursynth
1880 (uri (string-append "mirror://gnu/cursynth/cursynth-"
1883 (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v"))
1884 (patches (search-patches "cursynth-wave-rand.patch"))))
1885 (build-system gnu-build-system)
1886 (native-inputs `(("pkg-config" ,pkg-config)))
1887 ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently
1888 ;; prevents us from using pulseaudio
1889 (inputs `(("ncurses" ,ncurses)
1890 ("alsa" ,alsa-lib)))
1891 (home-page "https://www.gnu.org/software/cursynth/")
1892 (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses")
1893 (description "GNU cursynth is a polyphonic synthesizer that runs
1894 graphically in the terminal. It is built on a full-featured subtractive
1895 synthesis engine. Notes and parameter changes may be entered via MIDI or the
1896 computer's keyboard.")
1897 (license license:gpl3+)))
1899 (define-public qtractor
1905 (uri (string-append "http://downloads.sourceforge.net/qtractor/"
1906 "qtractor-" version ".tar.gz"))
1909 "17bbjfn94843g5q1h7xh23fwyazpfgg4fw6drrn5wgk2vx7qpkis"))))
1910 (build-system gnu-build-system)
1911 (arguments `(#:tests? #f)) ; no "check" target
1914 ("qtx11extras" ,qtx11extras)
1915 ("alsa-lib" ,alsa-lib)
1917 ("libsndfile" ,libsndfile)
1922 ("libsamplerate" ,libsamplerate)
1923 ("libvorbis" ,libvorbis)
1925 ("rubberband" ,rubberband)
1929 `(("pkg-config" ,pkg-config)
1930 ("qttools" ,qttools)))
1931 (home-page "http://qtractor.org/")
1932 (synopsis "Audio/MIDI multi-track sequencer")
1934 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
1935 JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
1936 follows a traditional multi-track tape recorder control paradigm.")
1937 (license license:gpl2+)))
1939 (define-public ams-lv2
1946 (uri (string-append "https://github.com/blablack/ams-lv2/"
1947 "archive/" version ".tar.gz"))
1948 (file-name (string-append name "-" version ".tar.gz"))
1951 "1xacxyzqcj83g9c1gwfn36gg1c6yi15v7km4vidfidrjzb4x27fq"))))
1952 (build-system waf-build-system)
1955 (modify-phases %standard-phases
1956 (add-after 'unpack 'remove-sse-flags
1957 (lambda* (#:key system #:allow-other-keys)
1958 (when (not (or (string-prefix? "x86_64" system)
1959 (string-prefix? "i686" system)))
1960 (substitute* "wscript"
1961 (("'-msse', '-mfpmath=sse', ") ""))
1963 #:tests? #f)) ; no tests
1972 `(("pkg-config" ,pkg-config)))
1973 (home-page "https://objectivewave.wordpress.com/ams-lv2/")
1974 (synopsis "Port of Alsa Modular Synth internal modules into LV2")
1975 (description "This set of LV2 plugins is a port of the internal modules
1976 found in Alsa Modular Synth. These plugins are used to create modular
1977 synthesizers and contain: VCO, VCF, VCA, LFO, slew limiter, envelopes, sample
1979 (license license:gpl2)))
1981 (define-public gxtuner
1987 (uri (string-append "https://github.com/brummer10/gxtuner/"
1988 "archive/v" version ".tar.gz"))
1989 (file-name (string-append name "-" version ".tar.gz"))
1992 "1hn5qjac7qd00v0sp7ijhhc3sb26ks9bni06nngivva21h61xrjr"))))
1993 (build-system gnu-build-system)
1996 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1997 (string-append "INCLUDE_L_DIR="
1998 (assoc-ref %build-inputs "zita-resampler")
2001 (modify-phases %standard-phases
2002 (delete 'configure))))
2008 ("zita-resampler" ,zita-resampler)))
2010 `(("pkg-config" ,pkg-config)))
2011 (home-page "https://github.com/brummer10/gxtuner")
2012 (synopsis "Guitar tuner")
2013 (description "GXtuner is a simple guitar tuner for JACK with an
2014 analogue-like user interface.")
2015 (license license:gpl2+)))
2017 (define-public mod-host
2018 ;; The last release was in 2014 but since then more than 140 commits have
2020 (let ((commit "299a3977476e8eb0285837fbd7522cec506a11de")
2024 (version (string-append "0.10.6-" revision "." (string-take commit 9)))
2028 (url "https://github.com/moddevices/mod-host")
2032 "128q7p5mph086v954rqnafalfbkyvhgwclaq6ks6swrhj45wnag6"))
2033 (file-name (string-append name "-" version "-checkout"))))
2034 (build-system gnu-build-system)
2036 `(#:tests? #f ; no tests included
2038 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2041 (modify-phases %standard-phases
2043 (add-after 'unpack 'fix-jack-installation-directory
2045 ;; Do not attempt to install files to output of "jack" package.
2046 (substitute* "Makefile"
2047 (("\\$\\(shell pkg-config --variable=libdir jack\\)")
2056 ("readline" ,readline)))
2058 `(("pkg-config" ,pkg-config)
2059 ("python" ,python-2)))
2060 (home-page "https://github.com/moddevices/mod-host")
2061 (synopsis "LV2 host for Jack controllable via socket or command line")
2062 (description "mod-host is an LV2 plugin host for JACK, controllable via
2063 socket or command line.")
2064 (license license:gpl3+))))
2066 (define-public pianobar
2069 (version "2016.06.02")
2072 (uri (string-append "https://github.com/PromyLOPh/"
2073 name "/archive/" version ".tar.gz"))
2074 (file-name (string-append name "-" version ".tar.gz"))
2077 "1hi5rr6jcr0kwf4xfz007ndwkjkp287lhwlsgfz6iryqa5n6jzcp"))))
2078 (build-system gnu-build-system)
2080 `(#:tests? #f ; no tests
2081 #:make-flags (list "CC=gcc" "CFLAGS=-std=c99"
2082 (string-append "PREFIX=" %output))
2083 #:phases (modify-phases %standard-phases
2084 (delete 'configure))))
2088 ("libgcrypt" ,libgcrypt)
2090 ("ffmpeg" ,ffmpeg)))
2092 `(("pkg-config" ,pkg-config)))
2093 (home-page "http://6xq.net/projects/pianobar/")
2094 (synopsis "Console-based pandora.com player")
2095 (description "pianobar is a console-based music player for the
2096 personalized online radio pandora.com. It has configurable keys for playing
2097 and managing stations, can be controlled remotely via fifo, and can run
2098 event-based scripts for scrobbling, notifications, etc.")
2099 (license license:expat)))
2101 (define-public python-mutagen
2103 (name "python-mutagen")
2107 (uri (pypi-uri "mutagen" version))
2110 "0rl7sxn1rcjl48fwga3dqf9f6pzspsny4ngxyf6pp337mrq0z693"))))
2111 (build-system python-build-system)
2113 `(("python-pytest" ,python-pytest)))
2114 (home-page "https://bitbucket.org/lazka/mutagen")
2115 (synopsis "Read and write audio tags")
2116 (description "Mutagen is a Python module to handle audio metadata. It
2117 supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
2118 Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
2119 of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
2120 Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
2121 APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
2122 streams on an individual packet/page level.")
2123 (license license:gpl2))) ; "later version" never mentioned
2125 (define-public python2-mutagen
2126 (package-with-python2 python-mutagen))
2128 (define-public python-musicbrainzngs
2130 (name "python-musicbrainzngs")
2134 (uri (pypi-uri "musicbrainzngs" version))
2137 "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8"))))
2138 (build-system python-build-system)
2140 '(;; The tests fail suffer from race conditions:
2141 ;; https://github.com/alastair/python-musicbrainzngs/issues/211
2143 (home-page "https://python-musicbrainzngs.readthedocs.org/")
2144 (synopsis "Python bindings for MusicBrainz NGS webservice")
2145 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
2146 web service. This library can be used to retrieve music metadata from the
2147 MusicBrainz database.")
2148 ;; 'musicbrainzngs/compat.py' is ISC licensed.
2149 (license (list license:bsd-2 license:isc))))
2151 (define-public python2-musicbrainzngs
2152 (package-with-python2 python-musicbrainzngs))
2154 (define-public python2-pyechonest
2156 (name "python2-pyechonest")
2160 (uri (pypi-uri "pyechonest" version))
2163 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
2164 (build-system python-build-system)
2166 `(;; Python 3 is not supported:
2167 ;; https://github.com/echonest/pyechonest/issues/42
2168 #:python ,python-2))
2169 (home-page "https://github.com/echonest/pyechonest")
2170 (synopsis "Python interface to The Echo Nest APIs")
2171 (description "Pyechonest is a Python library for the Echo Nest API. With
2172 Pyechonest you have Python access to the entire set of API methods including:
2175 @item artist - search for artists by name, description, or attribute, and get
2176 back detailed information about any artist including audio, similar artists,
2177 blogs, familiarity, hotttnesss, news, reviews, urls and video.
2178 @item song - search songs by artist, title, description, or attribute (tempo,
2179 duration, etc) and get detailed information back about each song, such as
2180 hotttnesss, audio_summary, or tracks.
2181 @item track - upload a track to the Echo Nest and receive summary information
2182 about the track including key, duration, mode, tempo, time signature along with
2183 detailed track info including timbre, pitch, rhythm and loudness information.
2185 (license license:bsd-3)))
2187 (define-public python-pylast
2189 (name "python-pylast")
2193 (uri (pypi-uri "pylast" version))
2196 "190c6sicc80v21wbbwbq771nqmxw4r6aqmxs22ndj177rc2l275f"))))
2197 (build-system python-build-system)
2199 '(#:tests? #f)) ; FIXME: Requires unpackaged python-flaky.
2201 `(("python-coverage" ,python-coverage)
2202 ("python-mock" ,python-mock)
2203 ("python-pep8" ,python-pep8)
2204 ("python-pytest" ,python-pytest)
2205 ("python-pyflakes" ,python-pyflakes)
2206 ("python-pyyaml" ,python-pyyaml)))
2208 `(("python-six" ,python-six)))
2209 (home-page "https://github.com/pylast/pylast")
2210 (synopsis "Python interface to Last.fm and Libre.fm")
2211 (description "A Python interface to Last.fm and other API-compatible
2212 websites such as Libre.fm.")
2213 (license license:asl2.0)))
2215 (define-public python2-pylast
2216 (package-with-python2 python-pylast))
2218 (define-public beets
2224 (uri (pypi-uri "beets" version))
2227 "1z02j871gc8l9mnd344qy9z8akigikgmc22r15ns6driqb2qishv"))))
2228 (build-system python-build-system)
2231 (modify-phases %standard-phases
2232 (add-after 'unpack 'set-HOME
2233 (lambda _ (setenv "HOME" (string-append (getcwd) "/tmp"))))
2235 (lambda _ (zero? (system* "nosetests" "-v")))))))
2237 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2238 ("python-flask" ,python-flask)
2239 ("python-mock" ,python-mock)
2240 ("python-mpd2" ,python-mpd2)
2241 ("python-nose" ,python-nose)
2242 ("python-pathlib" ,python-pathlib)
2243 ("python-pyxdg" ,python-pyxdg)
2244 ("python-pylast" ,python-pylast)
2245 ("python-rarfile" ,python-rarfile)
2246 ("python-responses" ,python-responses)))
2247 ;; TODO: Install optional plugins and dependencies.
2249 `(("python-discogs-client" ,python-discogs-client)
2250 ("python-jellyfish" ,python-jellyfish)
2251 ("python-munkres" ,python-munkres)
2252 ("python-musicbrainzngs" ,python-musicbrainzngs)
2253 ("python-mutagen" ,python-mutagen)
2254 ("python-pyyaml" ,python-pyyaml)
2255 ("python-unidecode" ,python-unidecode)))
2256 (home-page "http://beets.io")
2257 (synopsis "Music organizer")
2258 (description "The purpose of beets is to get your music collection right
2259 once and for all. It catalogs your collection, automatically improving its
2260 metadata as it goes using the MusicBrainz database. Then it provides a variety
2261 of tools for manipulating and accessing your music.")
2262 (license license:expat)))
2264 (define-public milkytracker
2266 (name "milkytracker")
2270 (uri (string-append "https://github.com/milkytracker/"
2271 "MilkyTracker/archive/v"
2273 (file-name (string-append name "-" version ".tar.gz"))
2276 "1dvnddsnn9c83lz4dlm0cfjpc0m524amfkbalxbswdy0qc8cj1wv"))
2277 (modules '((guix build utils)))
2278 ;; Remove non-FSDG compliant sample songs.
2281 (delete-file-recursively "resources/music")
2282 (substitute* "CMakeLists.txt"
2283 (("add_subdirectory\\(resources/music\\)") ""))))))
2284 (build-system cmake-build-system)
2286 '(#:tests? #f)) ; no check target
2288 `(("alsa-lib" ,alsa-lib)
2293 `(("pkg-config" ,pkg-config)))
2294 (synopsis "Music tracker for working with .MOD/.XM module files")
2295 (description "MilkyTracker is a music application for creating .MOD and .XM
2296 module files. It attempts to recreate the module replay and user experience of
2297 the popular DOS program Fasttracker II, with special playback modes available
2298 for improved Amiga ProTracker 2/3 compatibility.")
2299 (home-page "http://milkytracker.titandemo.org/")
2300 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2301 (license (list license:bsd-3 license:gpl3+))))
2303 (define-public schismtracker
2305 (name "schismtracker")
2306 (version "20170910")
2310 "https://github.com/" name "/" name "/archive/"
2312 (file-name (string-append name "-" version ".tar.gz"))
2315 "01gfcjngbpv87y9w5jln8k313hycpkb1d617hdy2cdw2hxqzlclz"))
2316 (modules '((guix build utils)))
2318 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2319 `(substitute* "schism/version.c"
2320 (("Schism Tracker built %s %s.*$")
2321 (string-append "Schism Tracker version " ,version "\");"))))))
2322 (build-system gnu-build-system)
2325 (modify-phases %standard-phases
2326 (add-after 'unpack 'autoconf
2327 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
2328 (add-before 'configure 'link-libm
2329 (lambda _ (setenv "LIBS" "-lm") #t)))))
2331 `(("autoconf" ,autoconf)
2332 ("automake" ,automake)
2333 ("python" ,python)))
2335 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2337 ("libxext" ,libxext)
2339 (home-page "http://schismtracker.org")
2340 (synopsis "Oldschool sample-based music composition tool")
2342 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2343 create high quality music without the requirements of specialized, expensive
2344 equipment, and with a unique \"finger feel\" that is difficult to replicate in
2345 part. The player is based on a highly modified version of the ModPlug engine,
2346 with a number of bugfixes and changes to improve IT playback.")
2347 (license license:gpl2+)))
2349 (define-public sooperlooper
2351 (name "sooperlooper")
2355 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2359 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2360 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2361 (build-system gnu-build-system)
2363 `(#:make-flags (list "CXXFLAGS=-std=gnu++11")
2365 (modify-phases %standard-phases
2366 (add-after 'unpack 'add-sigc++-includes
2367 (lambda* (#:key inputs #:allow-other-keys)
2368 (let ((sig (assoc-ref inputs "libsigc++"))
2369 (xml (assoc-ref inputs "libxml2"))
2372 (string-append sig "/include/sigc++-2.0:"
2373 sig "/lib/sigc++-2.0/include:"
2374 xml "/include/libxml2/:"
2376 cwd "/libs/midi++")))
2377 (substitute* '("src/control_osc.hpp"
2378 "src/gui/app_frame.hpp"
2379 "src/gui/config_panel.hpp"
2380 "src/gui/keys_panel.hpp"
2381 "src/gui/latency_panel.hpp"
2382 "src/gui/main_panel.hpp"
2383 "src/gui/midi_bind_panel.hpp"
2384 "src/gui/prefs_dialog.hpp")
2385 (("sigc\\+\\+/object.h")
2387 (substitute* '("src/engine.cpp"
2388 "src/gui/latency_panel.cpp"
2389 "src/gui/looper_panel.cpp"
2390 "src/gui/main_panel.cpp")
2391 (("(\\(| )bind " _ pre)
2392 (string-append pre "sigc::bind ")))
2394 (add-after 'unpack 'fix-xpm-warnings
2396 (substitute* (find-files "." "\\.xpm$")
2397 (("static char") "static const char"))
2401 ("alsa-lib" ,alsa-lib)
2402 ("wxwidgets" ,wxwidgets-gtk2)
2403 ("libsndfile" ,libsndfile)
2404 ("libsamplerate" ,libsamplerate)
2406 ("rubberband" ,rubberband)
2407 ("libxml2" ,libxml2)
2408 ("libsigc++" ,libsigc++)
2409 ("ncurses" ,ncurses)))
2411 `(("pkg-config" ,pkg-config)))
2412 (home-page "http://essej.net/sooperlooper/")
2413 (synopsis "Live looping sampler")
2415 "SooperLooper is a live looping sampler capable of immediate loop
2416 recording, overdubbing, multiplying, reversing and more. It allows for
2417 multiple simultaneous multi-channel loops limited only by your computer's
2419 (license license:gpl2+)))
2427 (uri (string-append "http://ftp.daper.net/pub/soft/"
2429 name "-" version ".tar.bz2"))
2432 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))
2433 (modules '((guix build utils)))
2435 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2436 '(substitute* "main.c"
2437 (("printf \\(\" Built : %s\", __DATE__\\);") "")
2438 (("printf \\(\" %s\", __TIME__\\);") "")))))
2439 (build-system gnu-build-system)
2441 `(("alsa-lib" ,alsa-lib)
2447 ("libid3tag" ,libid3tag)
2448 ("libltdl" ,libltdl)
2449 ("libmodplug" ,libmodplug)
2450 ("libmpcdec" ,libmpcdec)
2453 ("libvorbis" ,libvorbis)
2454 ("ncurses" ,ncurses)
2455 ("openssl" ,openssl)
2456 ("sasl" ,cyrus-sasl)
2459 ("wavpack" ,wavpack)
2462 `(("pkg-config" ,pkg-config)))
2463 (synopsis "Console audio player designed to be powerful and easy to use")
2465 "Music on Console is a console audio player that supports many file
2466 formats, including most audio formats recognized by FFMpeg.")
2467 (home-page "http://moc.daper.net")
2468 (license license:gpl2+)))
2470 (define-public midicsv
2476 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
2477 name "-" version ".tar.gz"))
2480 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
2481 (build-system gnu-build-system)
2483 `(#:phases (modify-phases %standard-phases (delete 'configure))
2484 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
2485 (synopsis "Convert MIDI files to and from CSV")
2487 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
2488 value file (CSV), which preserves all the information in the MIDI file. The
2489 ASCII CSV file may be loaded into a spreadsheet or database application, or
2490 processed by a program to transform the MIDI data (for example, to key
2491 transpose a composition or extract a track from a multi-track sequence). A
2492 CSV file in the format created by midicsv may be converted back into a
2493 standard MIDI file with the csvmidi program.")
2494 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
2495 (license license:public-domain)))
2497 (define-public gx-guvnor-lv2
2499 (name "gx-guvnor-lv2")
2503 (uri (string-append "https://github.com/brummer10/GxGuvnor.lv2/"
2504 "archive/v" version ".tar.gz"))
2505 (file-name (string-append name "-" version ".tar.gz"))
2508 "0rnfvrvs8qmmldyfmx4llyly33zp68448gx40ywdwj42x0mam92p"))))
2509 (build-system gnu-build-system)
2511 `(;; The check target is used only to output a warning.
2514 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
2516 (modify-phases %standard-phases
2519 (substitute* "Makefile"
2520 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n"))
2524 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
2525 (synopsis "Overdrive/distortion pedal simulation")
2526 (description "This package provides the LV2 plugin \"GxGuvnor\", a
2527 simulation of an overdrive or distortion pedal for guitars.")
2528 ;; The LICENSE file says GPLv3 but the license headers in the files say
2530 (license license:gpl2+)))
2532 (define-public gx-vbass-preamp-lv2
2533 (let ((commit "0e599abab10c7669dd444e5d06f671c2fc1b9c6c")
2535 (package (inherit gx-guvnor-lv2)
2536 (name "gx-vbass-preamp-lv2")
2537 (version (string-append "0-" revision "." (string-take commit 9)))
2541 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
2545 "1dzksdfrva666gpi62fd2ni9rhf18sl917f1894qr0b17pbdh9k1"))
2546 (file-name (string-append name "-" version "-checkout"))))
2548 (substitute-keyword-arguments (package-arguments gx-guvnor-lv2)
2550 `(modify-phases ,phases
2553 (substitute* "Makefile"
2554 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
2555 (("install : all") "install :"))
2557 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
2558 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
2559 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
2560 pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
2563 (define-public gx-overdriver-lv2
2564 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
2566 (package (inherit gx-vbass-preamp-lv2)
2567 (name "gx-overdriver-lv2")
2568 (version (string-append "0-" revision "." (string-take commit 9)))
2572 (url "https://github.com/brummer10/GxOverDriver.lv2")
2576 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
2577 (file-name (string-append name "-" version "-checkout"))))
2578 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
2579 (synopsis "Overdrive effect with level and tone control")
2580 (description "This package provides the LV2 plugin \"GxOverDriver\", an
2581 overdrive effect."))))
2583 (define-public gx-tone-mender-lv2
2584 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
2586 (package (inherit gx-vbass-preamp-lv2)
2587 (name "gx-tone-mender-lv2")
2588 (version (string-append "0-" revision "." (string-take commit 9)))
2592 (url "https://github.com/brummer10/GxToneMender.lv2")
2596 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
2597 (file-name (string-append name "-" version "-checkout"))))
2598 (home-page "https://github.com/brummer10/GxToneMender.lv2")
2599 (synopsis "Clean boost with a 3-knob tonestack")
2600 (description "This package provides the LV2 plugin \"GxToneMender\", a
2601 clean boost effect with a 3-knob tonestack."))))
2603 (define-public gx-push-pull-lv2
2604 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
2606 (package (inherit gx-vbass-preamp-lv2)
2607 (name "gx-push-pull-lv2")
2608 (version (string-append "0-" revision "." (string-take commit 9)))
2612 (url "https://github.com/brummer10/GxPushPull.lv2")
2616 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
2617 (file-name (string-append name "-" version "-checkout"))))
2618 (home-page "https://github.com/brummer10/GxPushPull.lv2")
2619 (synopsis "Octave up push pull transistor fuzz simulation")
2620 (description "This package provides the LV2 plugin \"GxPushPull\", a
2621 simulation of a push pull transistor fuzz effect with added high octave."))))
2623 (define-public gx-suppa-tone-bender-lv2
2624 (package (inherit gx-guvnor-lv2)
2625 (name "gx-suppa-tone-bender-lv2")
2629 (uri (string-append "https://github.com/brummer10/"
2630 "GxSuppaToneBender.lv2/archive/v"
2634 "1j90fns87035sfr6bxs4cvqxbyy3pqjhihx1nis8xajn202nl1hx"))
2635 (file-name (string-append name "-" version ".tar.gz"))))
2636 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
2637 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
2638 (description "This package provides the LV2 plugin
2639 \"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
2642 (define-public gx-saturator-lv2
2643 (let ((commit "0b581ac85c515325b9f16e51937cae6e1bf81a0a")
2645 (package (inherit gx-vbass-preamp-lv2)
2646 (name "gx-saturator-lv2")
2647 (version (string-append "0-" revision "." (string-take commit 9)))
2651 (url "https://github.com/brummer10/GxSaturator.lv2")
2655 "1cl785pzq8zk55m1rnhfd6qsabci6kpf4pf002gwr91vagyq246z"))
2656 (file-name (string-append name "-" version "-checkout"))))
2657 (home-page "https://github.com/brummer10/GxSaturator.lv2")
2658 (synopsis "Saturation effect")
2659 (description "This package provides the LV2 plugin \"GxSaturator\", a
2660 saturation effect."))))
2662 (define-public gx-hyperion-lv2
2663 (package (inherit gx-guvnor-lv2)
2664 (name "gx-hyperion-lv2")
2668 (uri (string-append "https://github.com/brummer10/"
2669 "GxHyperion.lv2/archive/v"
2673 "1pd7l33a14kq73wavgqq7csw4n3mwjz9d5rxaj0jgsyxd3llp3wh"))
2674 (file-name (string-append name "-" version ".tar.gz"))))
2675 (home-page "https://github.com/brummer10/GxHyperion.lv2")
2676 (synopsis "Simulation of the Hyperion Fuzz pedal")
2677 (description "This package provides the LV2 plugin \"GxHyperion\", a
2678 simulation of the Hyperion Fuzz pedal.")))
2680 (define-public gx-voodoo-fuzz-lv2
2681 (package (inherit gx-guvnor-lv2)
2682 (name "gx-voodoo-fuzz-lv2")
2686 (uri (string-append "https://github.com/brummer10/"
2687 "GxVoodoFuzz.lv2/archive/v"
2691 "0cc8sg7q493bs6pcq4ipqp6czpxv04nh9yvn8kq2x65ni2208n2f"))
2692 (file-name (string-append name "-" version ".tar.gz"))))
2693 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
2694 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
2695 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
2696 simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
2697 Bosstone circuit, followed by the tone control of the FoxToneMachine in
2698 parallel with a DarkBooster, followed by a volume control.")))
2700 (define-public gx-super-fuzz-lv2
2701 (package (inherit gx-guvnor-lv2)
2702 (name "gx-super-fuzz-lv2")
2706 (uri (string-append "https://github.com/brummer10/"
2707 "GxSuperFuzz.lv2/archive/v"
2711 "0pnivq05f1kji8c5jxsqdzhdfk3xn422v2d1x20x3jfsxnaf115x"))
2712 (file-name (string-append name "-" version ".tar.gz"))))
2713 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
2714 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
2715 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
2716 analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
2717 pot, which is usually in the housing, is exposed as a control parameter. It
2718 adjusts the amount of harmonics.")))
2720 (define-public gx-vintage-fuzz-master-lv2
2721 (package (inherit gx-guvnor-lv2)
2722 (name "gx-vintage-fuzz-master-lv2")
2726 (uri (string-append "https://github.com/brummer10/"
2727 "GxVintageFuzzMaster.lv2/archive/v"
2731 "0bdkfj6xi2g4izfw3pmr4i0nqzg8jnkdwc23x9ifxwc6p1kbayzk"))
2732 (file-name (string-append name "-" version ".tar.gz"))))
2733 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
2734 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
2735 (description "This package provides the LV2 plugin
2736 \"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
2738 (define-public gx-slow-gear-lv2
2739 (let ((commit "cb852e0426f4e6fe077e7f1ede73a4da335cfc5e")
2741 (package (inherit gx-vbass-preamp-lv2)
2742 (name "gx-slow-gear-lv2")
2743 (version (string-append "0-" revision "." (string-take commit 9)))
2747 (url "https://github.com/brummer10/GxSlowGear.lv2")
2751 "0dp7afi1r3kzciiyn1hrkz6arsq47ys9sx5g4b7xa9k1dv92ishp"))
2752 (file-name (string-append name "-" version "-checkout"))))
2753 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
2754 (synopsis "Slow gear audio effect")
2755 (description "This package provides the LV2 plugin \"GxSlowGear\", a
2756 slow gear audio effect to produce volume swells."))))
2758 (define-public gx-switchless-wah-lv2
2759 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
2761 (package (inherit gx-vbass-preamp-lv2)
2762 (name "gx-switchless-wah-lv2")
2763 (version (string-append "0-" revision "." (string-take commit 9)))
2767 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
2771 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
2772 (file-name (string-append name "-" version "-checkout"))))
2773 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
2774 (synopsis "Wah emulation with switchless activation")
2775 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
2776 a simulation of an analog Wah pedal with switchless activation."))))
2778 (define-public mod-utilities
2779 (let ((commit "7cdeeac26ae682730740105ece121d4dddb8ba3f")
2782 (name "mod-utilities")
2783 (version (string-append "0-" revision "." (string-take commit 9)))
2787 (url "https://github.com/moddevices/mod-utilities.git")
2791 "1ilnkbrmwrszxvc21qlb86h29yz7cnc6rcp0jmna1y693ny2qhf4"))
2792 (file-name (string-append name "-" version "-checkout"))))
2793 (build-system gnu-build-system)
2795 `(#:tests? #f ; there are no tests
2797 (list (string-append "INSTALL_PATH="
2798 (assoc-ref %outputs "out")
2801 (modify-phases %standard-phases
2802 (delete 'configure))))
2805 (home-page "https://github.com/moddevices/mod-utilities")
2806 (synopsis "LV2 utility plugins")
2807 (description "This package provides LV2 audio utility plugins, such as
2808 filters, crossovers, simple gain plugins without zipper noise, switch box
2809 plugins, a switch trigger, a toggle switch, and a peakmeter.")
2810 (license license:gpl2+))))
2812 (define-public ingen
2813 (let ((commit "cc4a4db33f4d126a07a4a498e053c5fb9a883be3")
2817 (version (string-append "0.0.0-" revision "."
2818 (string-take commit 9)))
2823 (url "http://git.drobilla.net/ingen.git")
2825 (file-name (string-append name "-" version "-checkout"))
2828 "1wg47vjw9djn99gbnsl2bcwj4xhdid61m4wrbn2nlp797flj91ic"))))
2829 (build-system waf-build-system)
2831 `(#:tests? #f ; no "check" target
2832 #:configure-flags (list "--no-webkit")
2834 (modify-phases %standard-phases
2835 (add-after 'unpack 'patch-wscript
2836 (lambda* (#:key outputs #:allow-other-keys)
2837 (let ((out (assoc-ref outputs "out")))
2838 (substitute* "wscript"
2839 ;; FIXME: Our version of lv2specgen.py does not behave as
2840 ;; expected. Maybe this requires a development version of
2842 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
2843 ;; Add libraries to RUNPATH.
2844 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
2845 (string-append prefix
2846 "linkflags=[\"-Wl,-rpath="
2847 out "/lib" "\"]," line)))
2848 (substitute* '("src/wscript"
2849 "src/server/wscript")
2850 ;; Add libraries to RUNPATH.
2851 (("bld.env.PTHREAD_LINKFLAGS" line)
2853 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
2854 (substitute* "src/client/wscript"
2855 ;; Add libraries to RUNPATH.
2856 (("^(.+)target.*= 'ingen_client'," line prefix)
2857 (string-append prefix
2858 "linkflags=[\"-Wl,-rpath="
2859 out "/lib" "\"]," line)))
2860 (substitute* "src/gui/wscript"
2861 ;; Add libraries to RUNPATH.
2862 (("^(.+)target.* = 'ingen_gui.*" line prefix)
2863 (string-append prefix
2864 "linkflags=[\"-Wl,-rpath="
2865 out "/lib" "\"]," line))))
2869 ("python-rdflib" ,python-rdflib)
2874 ("raul" ,raul-devel)
2875 ("ganv" ,ganv-devel)
2880 ("gtkmm" ,gtkmm-2)))
2882 `(("pkg-config" ,pkg-config)
2883 ("python-pygments" ,python-pygments)))
2884 (home-page "http://drobilla.net/software/ingen")
2885 (synopsis "Modular audio processing system")
2886 (description "Ingen is a modular audio processing system for JACK and
2887 LV2 based systems. Ingen is built around LV2 technology and a strict
2888 separation of engine from user interface. The engine is controlled
2889 exclusively through a protocol, and can execute as a headless process, with an
2890 in-process GUI, or as an LV2 plugin. The GUI can run as a program which
2891 communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
2892 communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
2893 plugin on any system where Ingen is installed. This allows users to visually
2894 develop custom plugins for use in other applications without programming.")
2895 (license license:agpl3+))))
2897 (define-public qmidiarp
2903 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
2904 version "/qmidiarp-" version ".tar.bz2"))
2907 "1gkfv8ajgf86kbn6j5ilfc1zlz17gdi9yxzywqd6jwff4xlm75hx"))))
2908 (build-system gnu-build-system)
2911 (list "--enable-qt5"
2912 "CXXFLAGS=-std=gnu++11")))
2914 `(("qtbase" ,qtbase)
2915 ("alsa-lib" ,alsa-lib)
2920 `(("pkg-config" ,pkg-config)
2921 ("qttools" ,qttools)))
2922 (home-page "http://qmidiarp.sourceforge.net/")
2923 (synopsis "MIDI arpeggiator")
2924 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
2925 sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
2926 modules running in parallel.")
2927 (license license:gpl2+)))
2929 (define-public qmidiroute
2935 (uri (string-append "mirror://sourceforge/alsamodular/QMidiRoute/"
2936 version "/qmidiroute-" version ".tar.bz2"))
2939 "19v1ppbglgl3z9v7xdqc0k33w71cqq8a7d6ihvfs7iz77dygrih9"))))
2940 (build-system gnu-build-system)
2943 (list "--enable-qt5"
2944 "CXXFLAGS=-std=gnu++11")))
2946 `(("qtbase" ,qtbase)
2947 ("alsa-lib" ,alsa-lib)))
2949 `(("pkg-config" ,pkg-config)
2950 ("qttools" ,qttools)))
2951 (home-page "http://alsamodular.sourceforge.net/")
2952 (synopsis "MIDI event router and filter")
2953 (description "QMidiRoute is a MIDI event router and filter. MIDI note,
2954 control change, program change and pitch bend events are logged, and can be
2955 filtered, redirected and transformed into other events according to MIDI maps
2956 defined as tabs in the main control surface.")
2957 (license license:gpl2+)))
2959 (define-public seq24
2965 (uri (string-append "https://launchpad.net/seq24/trunk/"
2966 version "/+download/seq24-"
2967 version ".tar.bz2"))
2970 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
2971 (patches (search-patches "seq24-rename-mutex.patch"))))
2972 (build-system gnu-build-system)
2975 (list "CXXFLAGS=-std=gnu++11")))
2977 `(("gtkmm" ,gtkmm-2)
2978 ("alsa-lib" ,alsa-lib)
2982 `(("pkg-config" ,pkg-config)))
2983 (home-page "https://edge.launchpad.net/seq24/")
2984 (synopsis "Real-time MIDI sequencer")
2985 (description "Seq24 is a real-time MIDI sequencer. It was created to
2986 provide a very simple interface for editing and playing MIDI loops.")
2987 (license license:gpl2+)))
2989 (define-public python-discogs-client
2991 (name "python-discogs-client")
2995 (uri (pypi-uri "discogs-client" version))
2998 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
2999 (build-system python-build-system)
3001 `(("python-oauthlib" ,python-oauthlib)
3002 ("python-requests" ,python-requests)))
3004 `(("python-six" ,python-six)))
3005 (home-page "https://github.com/discogs/discogs_client")
3006 (synopsis "Official Python client for the Discogs API")
3007 (description "This is the official Discogs API client for Python. It enables
3008 you to query the Discogs database for information on artists, releases, labels,
3009 users, Marketplace listings, and more. It also supports OAuth 1.0a
3010 authorization, which allows you to change user data such as profile information,
3011 collections and wantlists, inventory, and orders.")
3012 (license license:bsd-2)))
3014 (define-public python2-discogs-client
3015 (package-with-python2 python-discogs-client))
3017 (define-public libsmf
3024 ;; SF download page says development moved, but the link it points to
3025 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
3026 ;; it but made no release so far (https://github.com/stump/libsmf).
3027 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
3028 version "/libsmf-" version ".tar.gz"))
3031 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
3032 (build-system gnu-build-system)
3034 "static")) ; 88KiB of .a files
3037 (modify-phases %standard-phases
3038 (add-after 'install 'move-static-libraries
3039 (lambda* (#:key outputs #:allow-other-keys)
3040 ;; Move static libraries to the "static" output.
3041 (let* ((out (assoc-ref outputs "out"))
3042 (lib (string-append out "/lib"))
3043 (static (assoc-ref outputs "static"))
3044 (slib (string-append static "/lib")))
3046 (for-each (lambda (file)
3047 (install-file file slib)
3049 (find-files lib "\\.a$"))
3052 `(("readline" ,readline)
3055 `(("doxygen" ,doxygen)
3056 ("pkg-config" ,pkg-config)))
3057 (home-page "http://libsmf.sourceforge.net/")
3058 (synopsis "Standard MIDI File format library")
3060 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3061 conversions between time and pulses, tempo map handling and more. The only dependencies
3062 are a C compiler and glib. Full API documentation and examples are included.")
3063 (license license:bsd-2)))
3072 (uri (string-append "https://github.com/LMMS/lmms/archive/v"
3074 (file-name (string-append name "-" version ".tar.gz"))
3077 "1g76z7ha3hd53vbqaq9n1qg6s3lw8zzaw51iny6y2bz0j1xqwcsr"))))
3078 (build-system cmake-build-system)
3080 `(#:tests? #f ; no tests
3082 (modify-phases %standard-phases
3084 'configure 'set-ldflags
3085 (lambda* (#:key outputs #:allow-other-keys)
3089 (assoc-ref outputs "out") "/lib/lmms"
3091 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3094 `(("pkg-config" ,pkg-config)))
3100 ("libsamplerate" ,libsamplerate)
3101 ("fluidsynth" ,fluidsynth)
3102 ("libvorbis" ,libvorbis)
3103 ("alsa-lib" ,alsa-lib)
3104 ("portaudio" ,portaudio)
3106 ("libsndfile1" ,libsndfile)
3108 ("freetype2" ,freetype)
3110 (home-page "https://lmms.io/")
3111 (synopsis "Music composition tool")
3112 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3113 melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3114 audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3115 (license license:gpl2+)))
3117 (define-public musescore
3124 "https://github.com/musescore/MuseScore/archive/"
3125 "v" version ".tar.gz"))
3126 (file-name (string-append name "-" version ".tar.gz"))
3129 "0irwsq6ihfz3y3b943cwqy29g3si7gqbgxdscgw53vwv9vfvi085"))
3130 (modules '((guix build utils)))
3132 ;; Un-bundle OpenSSL and remove unused libraries.
3134 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3135 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3137 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3138 (("#include <openssl/.*") ""))
3139 (for-each delete-file-recursively
3140 '("thirdparty/freetype"
3141 "thirdparty/openssl"
3142 "thirdparty/portmidi"))
3144 (build-system gnu-build-system)
3147 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
3148 ;; There are tests, but no simple target to run. The command
3149 ;; used to run them is:
3151 ;; make debug && sudo make installdebug && cd \
3152 ;; build.debug/mtest && make && ctest
3154 ;; Basically, it requires to start a whole new build process.
3155 ;; So we simply skip them.
3158 (modify-phases %standard-phases
3160 (add-after 'unpack 'use-system-freetype
3162 ;; XXX: For the time being, we grossly insert the CMake
3163 ;; option needed to ignore bundled freetype. However,
3164 ;; there's a pending PR to have it as a regular make
3165 ;; option, in a future release.
3166 (substitute* "Makefile"
3167 (("cmake -DCMAKE") "cmake -DUSE_SYSTEM_FREETYPE=ON -DCMAKE"))
3170 `(("alsa-lib" ,alsa-lib)
3171 ("freetype" ,freetype)
3172 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3176 ("libsndfile" ,libsndfile)
3177 ("libvorbis" ,libvorbis)
3178 ("portaudio" ,portaudio)
3179 ("pulseaudio" ,pulseaudio)
3181 ("qtdeclarative" ,qtdeclarative)
3182 ("qtscript" ,qtscript)
3184 ("qtwebkit" ,qtwebkit)
3185 ("qtxmlpatterns" ,qtxmlpatterns)))
3188 ("pkg-config" ,pkg-config)
3189 ("qttools" ,qttools)))
3190 (synopsis "Music composition and notation software")
3191 (description "MuseScore is a music score typesetter. Its main purpose is
3192 the creation of high-quality engraved musical scores in a WYSIWYG environment.
3194 It supports unlimited staves, linked parts and part extraction, tablature,
3195 MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3196 lyrics (multiple verses), fretboard diagrams, and in general everything
3197 commonly used in sheet music. Style options and style sheets to change the
3198 appearance and layout are provided.
3200 MuseScore can also play back scores through the built-in sequencer and SoundFont
3202 (home-page "https://musescore.org")
3203 (license license:gpl2)))
3212 "mirror://sourceforge/dssi/dssi/" version
3213 "/dssi-" version ".tar.gz"))
3216 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3217 (build-system gnu-build-system)
3219 `(("alsa-lib" ,alsa-lib)
3222 ("libsamplerate" ,libsamplerate)
3223 ("libsndfile" ,libsndfile)
3226 `(("pkg-config" ,pkg-config)))
3227 (synopsis "Audio plugin API for soft synths and effects")
3228 (description "DSSI is a plugin API for software instruments with user
3229 interfaces, permitting them to be hosted in-process by audio applications.
3230 It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3231 towards familiarity with MIDI. The DSSI distribution package contains
3232 a JACK/ALSA-sequencer reference host and some plugins as well as the
3233 specification and header.")
3234 (home-page "http://dssi.sourceforge.net/")
3235 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3236 ;; The vast majority of examples are in the public domain.
3237 (license (list license:lgpl2.1+ license:gpl2+))))
3239 (define-public rosegarden
3246 "mirror://sourceforge/rosegarden/rosegarden/"
3247 version "/rosegarden-" version ".tar.bz2"))
3250 "1khfcj22asdhjh0jvhkqsz200wgmigkhsrcz09ffia5hqm0n32lq"))))
3251 (build-system cmake-build-system)
3253 `(#:configure-flags '("-DUSE_QT5=1") ; "-DCMAKE_BUILD_TYPE=Release"
3255 (modify-phases %standard-phases
3256 (add-after 'unpack 'patch-tests
3258 (substitute* "CMakeLists.txt"
3259 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
3261 ((" -fvisibility=hidden") ""))
3263 (add-after 'unpack 'fix-references
3264 (lambda* (#:key inputs #:allow-other-keys)
3265 (substitute* "src/gui/general/ProjectPackager.cpp"
3267 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
3269 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
3271 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
3273 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
3275 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
3276 (substitute* "src/gui/general/LilyPondProcessor.cpp"
3277 (("\"convert-ly\\>")
3278 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
3280 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
3282 (add-after 'unpack 'make-reproducible
3284 ;; Prevent Last-Modified from being written.
3285 ;; The "*.qm" files that are used in locale.qrc would have a new
3286 ;; mtime otherwise that is written into qrc_locale.cpp in the
3287 ;; end - except when we disable it.
3288 (substitute* "src/CMakeLists.txt"
3289 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
3290 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
3292 ;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
3293 ; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
3295 ;; Make hashtable traversal order predicable.
3296 (setenv "QT_RCC_TEST" "1") ; important
3298 (add-before 'check 'prepare-check
3300 (setenv "QT_QPA_PLATFORM" "offscreen")
3301 ;; Tests create files in $HOME/.local/share/rosegarden .
3302 (mkdir-p "/tmp/foo")
3303 (setenv "HOME" "/tmp/foo")
3306 `(("alsa-lib" ,alsa-lib)
3314 ("libsamplerate" ,libsamplerate)
3315 ("lilypond" ,lilypond)
3320 ("wavpack" ,wavpack)
3323 `(("pkg-config" ,pkg-config)
3324 ("qtlinguist" ,qttools)))
3325 (synopsis "Music composition and editing environment based around a MIDI
3327 (description "Rosegarden is a music composition and editing environment
3328 based around a MIDI sequencer that features a rich understanding of music
3329 notation and includes basic support for digital audio.")
3330 (home-page "http://www.rosegardenmusic.com/")
3331 (license license:gpl2)))
3333 (define-public sorcer
3339 (uri (string-append "https://github.com/openAVproductions/"
3340 "openAV-Sorcer/archive/release-"
3342 (file-name (string-append name "-" version ".tar.gz"))
3345 "07iyqj28wm0xc4arrq893bm12xjpz65db7ynrlmf6w8krg8wjmd0"))))
3346 (build-system cmake-build-system)
3348 `(#:tests? #f ; no tests included
3350 (modify-phases %standard-phases
3351 (add-after 'unpack 'remove-architecture-specific-flags
3353 (substitute* "CMakeLists.txt"
3354 (("-msse2 -mfpmath=sse") ""))
3356 (add-after 'unpack 'build-faust-sources
3357 (lambda* (#:key inputs #:allow-other-keys)
3358 (with-directory-excursion "faust"
3359 (delete-file "main.cpp")
3360 (zero? (system* "faust" "-i"
3362 "-o" "main.cpp" "main.dsp"))))))))
3369 ("pkg-config" ,pkg-config)))
3370 (home-page "http://openavproductions.com/sorcer/")
3371 (synopsis "Wavetable LV2 plugin synth")
3372 (description "Sorcer is a wavetable LV2 plugin synthesizer, targeted at
3373 the electronic or dubstep genre.")
3374 (license license:gpl3+)))
3376 (define-public libechonest
3378 (name "libechonest")
3383 (url "git://anongit.kde.org/libechonest.git")
3385 (file-name (string-append name "-" version "-checkout"))
3388 "0xbavf9f355dl1d3qv59x4ryypqrdanh9xdvw2d0q66l008crdkq"))))
3389 (build-system cmake-build-system)
3391 '(#:tests? #f ; Tests require Internet access
3392 #:configure-flags '("-DBUILD_WITH_QT4=OFF")))
3394 `(("qtbase" ,qtbase)
3396 (home-page "https://projects.kde.org/projects/playground/libs/libechonest")
3397 (synopsis "C++/Qt classes to interface with The Echo Nest API")
3398 (description "@code{libechonest} is a collection of C++/Qt classes
3399 designed to make a developer's life easy when trying to use the APIs provided
3401 (license license:gpl2+)))