1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
3 ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
4 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
5 ;;; Copyright © 2016 Al McElrath <hello@yrns.org>
6 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
8 ;;; Copyright © 2016, 2017 Kei Kebreau <kkebreau@posteo.net>
9 ;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
10 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
11 ;;; Copyright © 2017 ng0 <contact.ng0@cryptolab.net>
12 ;;; Copyright © 2017 Rodger Fox <thylakoid@openmailbox.org>
13 ;;; Copyright © 2017 Nicolas Goaziou <mail@nicolasgoaziou.fr>
15 ;;; This file is part of GNU Guix.
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30 (define-module (gnu packages music)
31 #:use-module (guix utils)
32 #:use-module (guix packages)
33 #:use-module (guix download)
34 #:use-module (guix git-download)
35 #:use-module ((guix licenses) #:prefix license:)
36 #:use-module (guix build-system gnu)
37 #:use-module (guix build-system ant)
38 #:use-module (guix build-system cmake)
39 #:use-module (guix build-system python)
40 #:use-module (guix build-system waf)
41 #:use-module (gnu packages)
42 #:use-module (gnu packages algebra)
43 #:use-module (gnu packages apr)
44 #:use-module (gnu packages audio)
45 #:use-module (gnu packages autotools)
46 #:use-module (gnu packages backup)
47 #:use-module (gnu packages base) ;libbdf
48 #:use-module (gnu packages bison)
49 #:use-module (gnu packages boost)
50 #:use-module (gnu packages cdrom)
51 #:use-module (gnu packages code)
52 #:use-module (gnu packages check)
53 #:use-module (gnu packages cmake)
54 #:use-module (gnu packages compression)
55 #:use-module (gnu packages curl)
56 #:use-module (gnu packages cyrus-sasl)
57 #:use-module (gnu packages docbook)
58 #:use-module (gnu packages documentation)
59 #:use-module (gnu packages emacs)
60 #:use-module (gnu packages file)
61 #:use-module (gnu packages flex)
62 #:use-module (gnu packages fltk)
63 #:use-module (gnu packages fonts)
64 #:use-module (gnu packages fontutils)
65 #:use-module (gnu packages freedesktop)
66 #:use-module (gnu packages gcc)
67 #:use-module (gnu packages gnupg)
68 #:use-module (gnu packages gettext)
69 #:use-module (gnu packages ghostscript)
70 #:use-module (gnu packages gl)
71 #:use-module (gnu packages glib)
72 #:use-module (gnu packages gnome)
73 #:use-module (gnu packages graphics)
74 #:use-module (gnu packages gtk)
75 #:use-module (gnu packages guile)
76 #:use-module (gnu packages image)
77 #:use-module (gnu packages imagemagick)
78 #:use-module (gnu packages java)
79 #:use-module (gnu packages linux) ; for alsa-utils
80 #:use-module (gnu packages libffi)
81 #:use-module (gnu packages llvm)
82 #:use-module (gnu packages man)
83 #:use-module (gnu packages mp3)
84 #:use-module (gnu packages mpd)
85 #:use-module (gnu packages ncurses)
86 #:use-module (gnu packages netpbm)
87 #:use-module (gnu packages pcre)
88 #:use-module (gnu packages pdf)
89 #:use-module (gnu packages perl)
90 #:use-module (gnu packages pkg-config)
91 #:use-module (gnu packages pulseaudio) ;libsndfile
92 #:use-module (gnu packages python)
93 #:use-module (gnu packages qt)
94 #:use-module (gnu packages rdf)
95 #:use-module (gnu packages readline)
96 #:use-module (gnu packages rsync)
97 #:use-module (gnu packages sdl)
98 #:use-module (gnu packages tcl)
99 #:use-module (gnu packages texinfo)
100 #:use-module (gnu packages tex)
101 #:use-module (gnu packages tls)
102 #:use-module (gnu packages video)
103 #:use-module (gnu packages web)
104 #:use-module (gnu packages wxwidgets)
105 #:use-module (gnu packages xml)
106 #:use-module (gnu packages xorg)
107 #:use-module (gnu packages xiph)
108 #:use-module ((srfi srfi-1) #:select (last)))
110 (define-public aria-maestosa
112 (name "aria-maestosa")
116 (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/"
117 version "/AriaSrc-" version ".tar.bz2"))
120 "1cs3z6frx2ch7rm5ammx9p0rxcjrbj1vq14hvcbimpaw39rdsn3d"))))
121 (build-system gnu-build-system)
123 `(#:tests? #f ;no tests
125 ;; TODO: Add scons-build-system and use it here.
126 (modify-phases %standard-phases
128 (add-after 'unpack 'scons-propagate-environment
130 ;; By design, SCons does not, by default, propagate
131 ;; environment variables to subprocesses. See:
132 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
133 ;; Here, we modify the SConstruct file to arrange for
134 ;; environment variables to be propagated.
135 (substitute* "SConstruct"
136 (("env = Environment\\(\\)")
137 "env = Environment(ENV=os.environ)")
138 ;; Scons errors out when copying subdirectories from Resources,
139 ;; so we move them instead.
141 ;; We move the "score" and "Documentation" directories at once,
142 ;; so we have to ignore files contained therein.
143 (("if \".svn\" in file" line)
145 " or \"score/\" in file"
146 " or \"Documentation/\" in file")))
148 (replace 'build (lambda _ (zero? (system* "scons"))))
150 (lambda* (#:key outputs #:allow-other-keys)
151 (let ((out (assoc-ref outputs "out")))
153 (zero? (system* "scons"
154 (string-append "prefix=" out)
156 ;; Fix directory permissions
158 (chmod (string-append out "/share/Aria/Documentation") #o555)
159 (chmod (string-append out "/share/Aria/score") #o555)
162 `(("wxwidgets" ,wxwidgets)
164 ("alsa-lib" ,alsa-lib)))
167 ("pkg-config" ,pkg-config)))
168 (home-page "http://ariamaestosa.sourceforge.net/")
169 (synopsis "MIDI sequencer and editor")
171 "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit
172 and play MIDI files with a few clicks in a user-friendly interface offering
173 score, keyboard, guitar, drum and controller views.")
174 (license license:gpl3+)))
183 "https://github.com/" name "/" name "/archive/v"
185 (file-name (string-append name "-" version ".tar.gz"))
188 "0raixgjavkm7hxppzsc5zqbfbh2bhjcmbiplhnsxsmyj8flafyc1"))))
189 (build-system gnu-build-system)
191 `(#:tests? #f ; cmus does not include tests
193 (modify-phases %standard-phases
196 (lambda* (#:key outputs #:allow-other-keys)
197 (let ((out (assoc-ref outputs "out")))
199 ;; It's an idiosyncratic configure script that doesn't
200 ;; understand --prefix=..; it wants prefix=.. instead.
202 (system* "./configure"
203 (string-append "prefix=" out)))))))))
204 ;; TODO: cmus optionally supports the following formats, which haven't yet
205 ;; been added to Guix:
209 ;; - DISCID_LIBS, apparently different from cd-discid which is included in
210 ;; Guix. See <http://sourceforge.net/projects/discid/>
212 `(("pkg-config" ,pkg-config)))
214 `(("alsa-lib" ,alsa-lib)
220 ("libcdio-paranoia" ,libcdio-paranoia)
223 ("libmodplug" ,libmodplug)
224 ("libmpcdec" ,libmpcdec)
225 ("libsamplerate" ,libsamplerate)
226 ("libvorbis" ,libvorbis)
228 ("opusfile" ,opusfile)
229 ("pulseaudio" ,pulseaudio)
230 ("wavpack" ,wavpack)))
231 (home-page "https://cmus.github.io/")
232 (synopsis "Small console music player")
233 (description "Cmus is a small and fast console music player. It supports
234 many input formats and provides a customisable Vi-style user interface.")
235 (license license:gpl2+)))
237 (define-public denemo
243 (uri (string-append "mirror://gnu/denemo/denemo-"
247 "0hggf8c4xcrjcxd5m00r788r7jg7g8ff54w2idfaqpj5j2ix3299"))))
248 (build-system gnu-build-system)
251 (modify-phases %standard-phases
253 ;; Denemo's documentation says to use this command to run its
256 (zero? (system* "make" "-C" "tests" "check"))))
257 (add-before 'build 'set-lilypond
258 ;; This phase sets the default path for lilypond to its current
259 ;; location in the store.
260 (lambda* (#:key inputs #:allow-other-keys)
261 (let* ((lilypond (string-append (assoc-ref inputs "lilypond")
263 (substitute* "src/core/prefops.c"
264 (("g_string_new \\(\"lilypond\"\\);")
265 (string-append "g_string_new (\""
269 (add-after 'install 'correct-filename
270 ;; "graft-derivation/shallow" from the (guix grafts) module runs in
271 ;; the C locale, expecting file names to be ASCII encoded. This
272 ;; phase renames a filename with a Unicode character in it to meet
273 ;; the aforementioned condition.
274 (lambda* (#:key outputs #:allow-other-keys)
275 (let* ((out (assoc-ref outputs "out")))
276 (chdir (string-append
278 "/share/denemo/templates/instruments/woodwind"))
279 (rename-file "Clarinet in B♭.denemo"
280 "Clarinet in Bb.denemo"))
283 `(("glib:bin", glib "bin") ; for gtester
284 ("pkg-config" ,pkg-config)))
286 `(("alsa-lib" ,alsa-lib)
290 ("fluidsynth" ,fluidsynth)
294 ("gtksourceview" ,gtksourceview)
296 ("intltool" ,intltool)
298 ("libsndfile" ,libsndfile)
301 ("lilypond", lilypond)
302 ("portaudio" ,portaudio)
303 ("portmidi" ,portmidi)
304 ("rubberband" ,rubberband)))
305 (synopsis "Graphical music notation, front-end to GNU Lilypond")
307 "GNU Denemo is a music notation editor that provides a convenient
308 interface to the powerful music engraving program Lilypond. Music can be
309 typed in using the computer keyboard, played in using a MIDI keyboard, or
310 even input via a microphone connected to the sound card. The final product
311 is publication-quality music notation that is continuously generated in the
312 background while you work.")
313 (home-page "http://www.denemo.org")
314 (license license:gpl3+)))
316 (define-public hydrogen
323 "https://github.com/hydrogen-music/hydrogen/archive/"
327 "1dy2jfkdw0nchars4xi4isrz66fqn53a9qk13bqza7lhmsg3s3qy"))))
328 (build-system cmake-build-system)
330 `(#:test-target "tests"))
332 `(("cppunit" ,cppunit)
333 ("pkg-config" ,pkg-config)))
335 `(("alsa-lib" ,alsa-lib)
337 ;; ("ladspa" ,ladspa) ; cannot find during configure
339 ("libarchive" ,libarchive)
340 ("libsndfile" ,libsndfile)
345 (home-page "http://www.hydrogen-music.org")
346 (synopsis "Drum machine")
348 "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to
349 enable professional yet simple and intuitive pattern-based drum programming.")
350 (license license:gpl2+)))
352 (define-public extempore
359 "https://github.com/digego/extempore/archive/"
363 "1wap1mvsicrhlazikf7l8zxg37fir8bmnh9rin28m1rix730vcch"))
364 (file-name (string-append name "-" version ".tar.gz"))))
365 (build-system cmake-build-system)
367 `(;; The default target also includes ahead-of-time compilation of the
368 ;; standard libraries. However, during the "install" phase this would
369 ;; happen *again* for unknown reasons. Hence we only build the
370 ;; extempore executable during the build phase.
371 #:make-flags '("extempore")
372 #:configure-flags '("-DJACK=ON"
373 ;; We want to distribute.
375 ;; Don't download any dependencies.
377 #:modules ((ice-9 match)
378 (guix build cmake-build-system)
381 (modify-phases %standard-phases
382 (add-after 'unpack 'patch-directories
383 (lambda* (#:key outputs #:allow-other-keys)
384 ;; Rewrite default path to runtime directory
385 (substitute* "src/Extempore.cpp"
386 (("runtimedir \\+= \"runtime\"")
387 (string-append "runtimedir = \""
388 (assoc-ref outputs "out")
389 "/lib/extempore/runtime\"")))
390 (substitute* "extras/extempore.el"
391 (("\\(runtime-directory \\(concat default-directory \"runtime\"\\)\\)")
392 (string-append "(runtime-directory \""
393 (assoc-ref outputs "out")
394 "/lib/extempore/runtime"
397 (add-after 'unpack 'link-with-additional-libs
399 ;; The executable must be linked with libffi and zlib.
400 (substitute* "CMakeLists.txt"
401 (("add_dependencies\\(aot_extended extended_deps\\)") "")
402 (("target_link_libraries\\(extempore PRIVATE dl" line)
403 (string-append line " ffi z")))
405 ;; FIXME: AOT compilation of the nanovg bindings fail with the error:
406 ;; "Compiler Error could not bind _nvgLinearGradient"
407 (add-after 'unpack 'disable-nanovg
409 (substitute* "CMakeLists.txt"
410 (("aotcompile_lib\\(libs/external/nanovg.xtm.*") ""))
412 ;; FIXME: All examples that are used as tests segfault for some
414 (add-after 'unpack 'disable-broken-tests
416 (substitute* "CMakeLists.txt"
417 (("extempore_add_example_as_test\\(.*") ""))
419 (add-after 'unpack 'hardcode-external-lib-paths
420 (lambda* (#:key inputs #:allow-other-keys)
421 (use-modules (ice-9 match))
424 ((file-name lib pkg-name)
425 (substitute* (string-append "libs/external/" file-name ".xtm")
426 ((lib) (string-append (assoc-ref inputs pkg-name)
428 '(("assimp" "libassimp.so" "assimp")
429 ("portmidi" "libportmidi.so" "portmidi")
430 ("sndfile" "libsndfile.so" "libsndfile")
431 ("fft" "libkiss_fft.so" "kiss-fft")
432 ("stb_image" "libstb_image.so" "stb-image")
433 ("nanovg" "libnanovg.so" "nanovg")
434 ("glext" "libGL.so" "mesa")
435 ("glfw3" "libglfw.so" "glfw")
436 ("gl/glcore-directbind" "libGL.so" "mesa")
437 ("gl/glcompat-directbind" "libGL.so" "mesa")))
439 (add-after 'unpack 'use-own-llvm
440 (lambda* (#:key inputs #:allow-other-keys)
441 (setenv "EXT_LLVM_DIR" (assoc-ref inputs "llvm"))
442 ;; Our LLVM builds shared libraries, so Extempore should use
444 (substitute* "CMakeLists.txt"
445 (("CMAKE_STATIC_LIBRARY") "CMAKE_SHARED_LIBRARY"))
447 (add-after 'unpack 'fix-aot-compilation
448 (lambda* (#:key outputs #:allow-other-keys)
449 (substitute* "CMakeLists.txt"
450 ;; EXT_SHARE_DIR does not exist before installation, so the
451 ;; working directory should be the source directory instead.
452 (("WORKING_DIRECTORY \\$\\{EXT_SHARE_DIR\\}")
453 "WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}")
454 ;; Extempore needs to be told where the runtime is to be found.
455 ;; While we're at it we disable automatic tuning for a specific
456 ;; CPU to make binary substitution possible.
457 (("COMMAND extempore" prefix)
458 (string-append prefix " --sharedir " (getcwd)
459 " --mcpu=generic --attr=none")))
462 `(("llvm" ,llvm-for-extempore)
465 ("libsndfile" ,libsndfile)
468 ("stb-image" ,stb-image-for-extempore)
469 ("kiss-fft" ,kiss-fft-for-extempore)
470 ("nanovg" ,nanovg-for-extempore)
471 ("portmidi" ,portmidi-for-extempore)
473 ("alsa-lib" ,alsa-lib)
474 ("portaudio" ,portaudio)
480 ("emacs" ,emacs-no-x)))
481 ;; Extempore refuses to build on architectures other than x86_64
482 (supported-systems '("x86_64-linux"))
483 (home-page "http://digego.github.io/extempore/")
484 (synopsis "Programming environment for live coding of multimedia")
486 "Extempore is a programming language and runtime environment designed
487 with live programming in mind. It supports interactive programming in a REPL
488 style, compiling and binding code just-in-time. Although Extempore has its
489 roots in 'live coding' of audiovisual media art, it is suitable for any task
490 domain where dynamic run-time modifiability and good numerical performance are
491 required. Extempore also has strong timing and concurrency semantics, which
492 are helpful when working in problem spaces where timing is important (such as
494 (license license:bsd-2)))
502 (uri (string-append "http://das.nasophon.de/download/klick-"
506 "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j"))))
507 (build-system gnu-build-system)
509 `(#:tests? #f ;no "check" target
511 ;; TODO: Add scons-build-system and use it here.
512 (modify-phases %standard-phases
515 (lambda* (#:key inputs outputs #:allow-other-keys)
516 (let ((out (assoc-ref outputs "out")))
518 (zero? (system* "scons" (string-append "PREFIX=" out))))))
519 (replace 'install (lambda _ (zero? (system* "scons" "install")))))))
523 ("libsndfile" ,libsndfile)
524 ("libsamplerate" ,libsamplerate)
526 ("rubberband" ,rubberband)))
530 ("pkg-config" ,pkg-config)))
531 (home-page "http://das.nasophon.de/klick/")
532 (synopsis "Metronome for JACK")
534 "klick is an advanced command-line based metronome for JACK. It allows
535 you to define complex tempo maps for entire songs or performances.")
536 (license license:gpl2+)))
538 (define-public gtklick
544 (uri (string-append "http://das.nasophon.de/download/gtklick-"
548 "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp"))))
549 (build-system python-build-system)
551 `(#:tests? #f ; no tests
554 (modify-phases %standard-phases
555 (add-before 'build 'add-sitedirs
556 ;; .pth files are not automatically interpreted unless the
557 ;; directories containing them are added as "sites". The directories
558 ;; are then added to those in the PYTHONPATH. This is required for
559 ;; the operation of pygtk.
561 (substitute* "gtklick/gtklick.py"
563 "import pygtk, site, sys
564 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))))
565 (add-after 'unpack 'inject-store-path-to-klick
566 (lambda* (#:key inputs #:allow-other-keys)
567 (substitute* "gtklick/klick_backend.py"
568 (("KLICK_PATH = 'klick'")
569 (string-append "KLICK_PATH = '"
570 (assoc-ref inputs "klick")
575 ("python2-pyliblo" ,python2-pyliblo)
576 ("python2-pygtk" ,python2-pygtk)))
578 `(("gettext" ,gettext-minimal)))
579 (home-page "http://das.nasophon.de/gtklick/")
580 (synopsis "Simple metronome with an easy-to-use graphical interface")
582 "Gtklick is a simple metronome with an easy-to-use graphical user
583 interface. It is implemented as a frontend to @code{klick}.")
584 (license license:gpl2+)))
586 (define-public libgme
592 (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/"
593 "downloads/game-music-emu-" version
597 "08fk7zddpn7v93d0fa7fcypx7hvgwx9b5psj9l6m8b87k2hbw4fw"))))
598 (build-system cmake-build-system)
600 '(#:tests? #f)) ; no check target
601 (home-page "https://bitbucket.org/mpyne/game-music-emu")
602 (synopsis "Video game music file playback library")
604 "Game-music-emu is a collection of video game music file emulators that
605 support the following formats and systems:
608 ZX Spectrum/Asmtrad CPC
612 Sega Genesis/Mega Drive
614 NEC TurboGrafx-16/PC Engine
616 MSX Home Computer/other Z80 systems (doesn't support FM sound)
618 Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
620 Atari systems using POKEY sound chip
622 Super Nintendo/Super Famicom
624 Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
626 (license (list license:lgpl2.1+
627 ;; demo and player directories are under the Expat license
630 (define-public lilypond
637 "http://download.linuxaudio.org/lilypond/sources/v"
638 (version-major+minor version) "/"
639 name "-" version ".tar.gz"))
642 "0hwv7m1lzyhjiyxqhqfdrrrpx475jhiwckrnxbjbv3ynhyzkngw0"))))
643 (build-system gnu-build-system)
645 `(#:tests? #f ; out-test/collated-files.html fails
647 #:make-flags '("conf=www") ;to generate images for info manuals
649 (list "CONFIGURATION=www"
650 (string-append "--with-texgyre-dir="
651 (assoc-ref %build-inputs "font-tex-gyre")
652 "/share/fonts/opentype/"))
654 (modify-phases %standard-phases
655 (add-after 'unpack 'use-texlive-union
657 ;; FIXME: fonts are not found and have to be generated in HOME.
658 (setenv "HOME" "/tmp")
659 ;; The test for the "lh" package fails, even though it is among
661 (substitute* "configure"
662 (("TEX_FIKPARM=.*") "TEX_FIKPARM=found\n"))
664 (add-after 'unpack 'fix-path-references
666 (substitute* "scm/backend-library.scm"
667 (("\\(search-executable '\\(\"gs\"\\)\\)")
668 (string-append "\"" (which "gs") "\""))
670 (string-append "\"" (which "sh") "\"")))
672 (add-before 'configure 'prepare-configuration
674 (substitute* "configure"
675 (("SHELL=/bin/sh") "SHELL=sh")
676 ;; When checking the fontforge version do not consider the
677 ;; version string that's part of the directory.
678 (("head -n") "tail -n"))
680 (setenv "conf" "www")
682 (add-after 'install 'install-info
684 (zero? (system* "make"
685 "-j" (number->string (parallel-job-count))
686 "conf=www" "install-info")))))))
688 `(("guile" ,guile-1.8)
689 ("font-dejavu" ,font-dejavu)
690 ("font-tex-gyre" ,font-tex-gyre)
691 ("fontconfig" ,fontconfig)
692 ("freetype" ,freetype)
693 ("ghostscript" ,ghostscript)
695 ("python" ,python-2)))
700 ("fontforge" ,fontforge)
702 ("gettext" ,gettext-minimal)
703 ("imagemagick" ,imagemagick)
704 ("netpbm" ,netpbm) ;for pngtopnm
705 ("texlive" ,(texlive-union (list texlive-metapost
708 texlive-latex-cyrillic)))
710 ("texi2html" ,texi2html)
712 ("pkg-config" ,pkg-config)
714 (home-page "http://www.lilypond.org/")
715 (synopsis "Music typesetting")
717 "GNU LilyPond is a music typesetter, which produces high-quality sheet
718 music. Music is input in a text file containing control sequences which are
719 interpreted by LilyPond to produce the final document. It is extendable with
721 (license license:gpl3+)
723 ;; On armhf and mips64el, building the documentation sometimes leads to
724 ;; more than an hour of silence, so double the max silent time.
725 (properties `((max-silent-time . 7200)))))
727 (define-public non-sequencer
728 ;; The latest tagged release is three years old and uses a custom build
729 ;; system, so we take the last commit.
730 (let ((commit "10c31e57291b6e42be53371567a722b62b32d220")
733 (name "non-sequencer")
734 (version (string-append "1.9.5-" revision "." (string-take commit 7)))
738 (url "git://git.tuxfamily.org/gitroot/non/non.git")
742 "080rha4ffp7qycyg1mqcf4vj0s7z8qfvz6bxm0w29xgg2kkmb3fx"))
743 (file-name (string-append name "-" version "-checkout"))))
744 (build-system waf-build-system)
746 `(#:tests? #f ;no "check" target
748 (list "--project=sequencer"
749 ;; Disable the use of SSE unless on x86_64.
750 ,@(if (not (string-prefix? "x86_64" (or (%current-target-system)
755 (modify-phases %standard-phases
757 'configure 'set-flags
759 ;; Compile with C++11, required by libsigc++.
760 (setenv "CXXFLAGS" "-std=c++11")
765 ("libsigc++" ,libsigc++)
769 `(("pkg-config" ,pkg-config)))
770 (home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer")
771 (synopsis "Pattern-based MIDI sequencer")
773 "The Non Sequencer is a powerful, lightweight, real-time,
774 pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for
775 MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non
776 Sequencer happens on-line, in real-time. Music can be composed live, while the
777 transport is rolling.")
778 (license license:gpl2+))))
780 (define-public non-session-manager
781 (package (inherit non-sequencer)
782 (name "non-session-manager")
784 (substitute-keyword-arguments (package-arguments non-sequencer)
785 ((#:configure-flags flags)
786 `(cons "--project=session-manager"
787 (delete "--project=sequencer" ,flags)))))
793 `(("pkg-config" ,pkg-config)))
794 (home-page "http://non.tuxfamily.org/nsm/")
795 (synopsis "Audio session management")
797 "The Non Session Manager is an API and an implementation for audio
798 session management. NSM clients use a well-specified OSC protocol to
799 communicate with the session management daemon.")
800 (license license:gpl2+)))
802 (define-public non-mixer
803 (package (inherit non-sequencer)
806 (substitute-keyword-arguments (package-arguments non-sequencer)
807 ((#:configure-flags flags)
808 `(cons "--project=mixer"
809 (delete "--project=sequencer" ,flags)))))
817 `(("pkg-config" ,pkg-config)))
818 (home-page "http://non.tuxfamily.org/wiki/Non%20Mixer")
819 (synopsis "Modular digital audio mixer")
821 "The Non Mixer is a powerful, reliable and fast modular digital audio
822 mixer. It utilizes JACK for inter-application audio I/O and the NTK GUI
823 toolkit for a fast and lightweight user interface. Non Mixer can be used
824 alone or in concert with Non Timeline and Non Sequencer to form a complete
826 (license license:gpl2+)))
828 (define-public non-timeline
829 (package (inherit non-sequencer)
830 (name "non-timeline")
832 (substitute-keyword-arguments (package-arguments non-sequencer)
833 ((#:configure-flags flags)
834 `(cons "--project=timeline"
835 (delete "--project=sequencer" ,flags)))))
839 ("libsndfile" ,libsndfile)
842 `(("pkg-config" ,pkg-config)))
843 (home-page "http://non.tuxfamily.org/wiki/Non%20Timeline")
844 (synopsis "Modular digital audio timeline arranger")
846 "The Non Timeline is a powerful, reliable and fast modular digital audio
847 timeline arranger. It utilizes JACK for inter-application audio I/O and the
848 NTK GUI toolkit for a fast and lightweight user interface. Non Timeline can
849 be used alone or in concert with Non Mixer and Non Sequencer to form a
851 (license license:gpl2+)))
853 (define-public solfege
860 "mirror://gnu/solfege/solfege-"
864 "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i"))))
865 (build-system gnu-build-system)
867 `(#:tests? #f ; xmllint attempts to download DTD
871 'unpack 'fix-configuration
872 (lambda* (#:key inputs #:allow-other-keys)
873 (substitute* "default.config"
875 (string-append "csound="
876 (assoc-ref inputs "csound")
879 (string-append (assoc-ref inputs "aplay")
881 (("/usr/bin/timidity")
882 (string-append (assoc-ref inputs "timidity")
885 (string-append (assoc-ref inputs "mpg123")
888 (string-append (assoc-ref inputs "ogg123")
891 'build 'patch-python-shebangs
893 ;; Two python scripts begin with a Unicode BOM, so patch-shebang
895 (substitute* '("solfege/parsetree.py"
896 "solfege/presetup.py")
897 (("#!/usr/bin/python") (string-append "#!" (which "python")))))
900 ;; .pth files are not automatically interpreted unless the
901 ;; directories containing them are added as "sites". The directories
902 ;; are then added to those in the PYTHONPATH. This is required for
903 ;; the operation of pygtk and pygobject.
905 (substitute* "run-solfege.py"
908 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)")))
910 'build 'adjust-config-file-prefix
911 (lambda* (#:key outputs #:allow-other-keys)
912 (substitute* "run-solfege.py"
913 (("prefix = os.path.*$")
914 (string-append "prefix = " (assoc-ref outputs "out")))))
916 'install 'wrap-program
917 (lambda* (#:key inputs outputs #:allow-other-keys)
918 ;; Make sure 'solfege' runs with the correct PYTHONPATH.
919 (let* ((out (assoc-ref outputs "out"))
920 (path (getenv "PYTHONPATH")))
921 (wrap-program (string-append out "/bin/solfege")
922 `("PYTHONPATH" ":" prefix (,path)))))
923 %standard-phases)))))))
925 `(("python" ,python-2)
926 ("pygtk" ,python2-pygtk)
927 ("gettext" ,gettext-minimal)
929 ("lilypond" ,lilypond)
930 ;; players needed at runtime
931 ("aplay" ,alsa-utils)
932 ("csound" ,csound) ; optional, needed for some exercises
934 ("ogg123" ,vorbis-tools)
935 ("timidity" ,timidity++)))
937 `(("pkg-config" ,pkg-config)
939 ("libxml2" ,libxml2) ; for tests
940 ("ghostscript" ,ghostscript)
941 ("texinfo" ,texinfo)))
942 (home-page "https://www.gnu.org/software/solfege/")
943 (synopsis "Ear training")
945 "GNU Solfege is a program for practicing musical ear-training. With it,
946 you can practice your recognition of various musical intervals and chords. It
947 features a statistics overview so you can monitor your progress across several
948 sessions. Solfege is also designed to be extensible so you can easily write
950 (license license:gpl3+)))
952 (define-public powertabeditor
954 (name "powertabeditor")
955 (version "2.0.0-alpha10")
959 "https://github.com/powertab/powertabeditor/archive/"
961 (file-name (string-append name "-" version ".tar.gz"))
964 "1fr14ql0yhlqvh6y08yaanszm2nvca5i50rqym396kfvga3ky18x"))
965 (modules '((guix build utils)))
968 ;; Remove bundled sources for external libraries
969 (delete-file-recursively "external")
970 ;; Use only system libraries
971 (substitute* "CMakeLists.txt"
972 (("include\\( PTE_ThirdParty \\)")
974 include(third_party/Qt)
975 include(third_party/boost)
976 add_library( Catch INTERFACE IMPORTED )
977 add_library( rapidjson INTERFACE IMPORTED )"))
979 (build-system cmake-build-system)
981 `(#:modules ((guix build cmake-build-system)
985 ;; CMake appears to lose the RUNPATH for some reason, so it has to be
986 ;; explicitly set with CMAKE_INSTALL_RPATH.
987 (list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
988 (string-append "-DCMAKE_INSTALL_RPATH="
989 (string-join (map (match-lambda
991 (string-append directory "/lib")))
993 "-DPTE_DATA_DIR=share/powertabeditor")
995 (modify-phases %standard-phases
998 (zero? (system* "bin/pte_tests"
999 ;; FIXME: these tests fail
1000 "exclude:Actions/EditStaff"
1001 "exclude:Formats/PowerTabOldImport/MergeMultiBarRests"
1002 "exclude:Score/ViewFilter/FilterRule"
1003 "exclude:Score/ViewFilter/ViewFilter"
1004 "exclude:Formats/PowerTabOldImport/Directions"
1006 (add-before 'configure 'remove-third-party-libs
1007 (lambda* (#:key inputs #:allow-other-keys)
1008 ;; Link with required static libraries, because we're not
1009 ;; using the bundled version of withershins.
1010 ;; Also add pthread for fixing a linker error.
1011 (substitute* "source/build/CMakeLists.txt"
1012 (("withershins" line)
1013 (string-append line "\n"
1014 (assoc-ref inputs "binutils")
1016 (assoc-ref inputs "libiberty")
1017 "/lib/libiberty.a\n"
1024 ("alsa-lib" ,alsa-lib)
1026 ("withershins" ,withershins)
1027 ("libiberty" ,libiberty) ;for withershins
1028 ("binutils" ,binutils) ;for -lbfd and -liberty (for withershins)
1029 ("timidity" ,timidity++)
1030 ("pugixml" ,pugixml)
1032 ("rapidjson" ,rapidjson)
1035 `(("catch" ,catch-framework)
1036 ("pkg-config" ,pkg-config)))
1037 (home-page "http://powertabs.net")
1038 (synopsis "Guitar tablature editor")
1040 "Power Tab Editor 2.0 is the successor to the famous original Power Tab
1041 Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
1042 (license license:gpl3+)))
1044 (define-public jalv-select
1046 (name "jalv-select")
1050 (uri (string-append "https://github.com/brummer10/jalv_select/"
1051 "archive/V" version ".tar.gz"))
1054 "0zraagwr681b5s3qifxf399c7q93jz23c8sr42gmff9zqnvxc75q"))))
1055 (build-system gnu-build-system)
1058 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1060 (modify-phases %standard-phases
1062 (add-after 'unpack 'ignore-PATH
1063 (lambda* (#:key inputs #:allow-other-keys)
1064 (substitute* "jalv.select.cpp"
1065 (("echo \\$PATH.*tr ':'.*xargs ls")
1066 (string-append "ls -1 " (assoc-ref inputs "jalv") "/bin")))
1067 (substitute* "jalv.select.h"
1068 (("gtkmm.h") "gtkmm-2.4/gtkmm.h"))
1074 ("gtkmm" ,gtkmm-2)))
1076 `(("pkg-config" ,pkg-config)))
1077 (home-page "https://github.com/brummer10/jalv_select")
1078 (synopsis "GUI to select LV2 plugins and run them with jalv")
1080 "The jalv.select package provides a graphical user interface allowing
1081 users to select LV2 plugins and run them with jalv.")
1082 (license license:public-domain)))
1084 (define-public synthv1
1091 (string-append "mirror://sourceforge/synthv1/synthv1/" version
1092 "/synthv1-" version ".tar.gz"))
1095 "1yqh7jx431q01f15b3h4dh038yvmc4jcsr3vn2175kqgwfj9jqcg"))))
1096 (build-system gnu-build-system)
1098 `(#:tests? #f ; There are no tests.
1100 '("CXXFLAGS=-std=gnu++11")))
1104 ("alsa-lib" ,alsa-lib)
1105 ("non-session-manager" ,non-session-manager)
1108 ("qttools" ,qttools)))
1110 `(("pkg-config" ,pkg-config)))
1111 (home-page "http://synthv1.sourceforge.net")
1112 (synopsis "Polyphonic subtractive synthesizer")
1114 "Synthv1 is an old-school subtractive polyphonic synthesizer with four
1115 oscillators and stereo effects.")
1116 (license license:gpl2+)))
1118 (define-public drumkv1
1125 (string-append "mirror://sourceforge/drumkv1/drumkv1/" version
1126 "/drumkv1-" version ".tar.gz"))
1129 "0rvdvc81j4b4n64i7jmk58khry28al8p73g71srdv1kw7j65f2zv"))))
1130 (build-system gnu-build-system)
1132 `(#:tests? #f ; There are no tests.
1134 '("CXXFLAGS=-std=gnu++11")))
1138 ("libsndfile" ,libsndfile)
1139 ("alsa-lib" ,alsa-lib)
1140 ("non-session-manager" ,non-session-manager)
1142 ("qtbase" ,qtbase)))
1144 `(("pkg-config" ,pkg-config)
1145 ("qttools" ,qttools)))
1146 (home-page "http://drumkv1.sourceforge.net")
1147 (synopsis "Drum-kit sampler synthesizer with stereo effects")
1149 "Drumkv1 is an old-school drum-kit sampler synthesizer with stereo
1151 (license license:gpl2+)))
1153 (define-public samplv1
1160 (string-append "mirror://sourceforge/samplv1/samplv1/" version
1161 "/samplv1-" version ".tar.gz"))
1164 "1lbxrn24fg1z659zbaakzq6z8gbax6z16di9v9bhhslk8w2mndik"))))
1165 (build-system gnu-build-system)
1167 `(#:tests? #f ; There are no tests.
1169 '("CXXFLAGS=-std=gnu++11")))
1173 ("libsndfile" ,libsndfile)
1174 ("alsa-lib" ,alsa-lib)
1175 ("non-session-manager" ,non-session-manager)
1177 ("qtbase" ,qtbase)))
1179 `(("pkg-config" ,pkg-config)
1180 ("qttools" ,qttools)))
1181 (home-page "http://samplv1.sourceforge.net")
1182 (synopsis "Polyphonic sampler synthesizer with stereo effects")
1184 "Samplv1 is an old-school polyphonic sampler synthesizer with stereo
1186 (license license:gpl2+)))
1188 (define-public amsynth
1195 (uri (string-append "https://github.com/amsynth/amsynth/releases/"
1196 "download/release-" version
1197 "/amsynth-" version ".tar.bz2"))
1200 "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
1201 (build-system gnu-build-system)
1204 (modify-phases %standard-phases
1205 (add-before 'configure 'set-flags
1207 ;; Compile with C++11, required by gtkmm.
1208 (setenv "CXXFLAGS" "-std=c++11")
1211 `(("alsa-lib" ,alsa-lib)
1215 ("libsndfile" ,libsndfile)
1217 ("gtkmm" ,gtkmm-2)))
1219 `(("pkg-config" ,pkg-config)
1220 ("intltool" ,intltool)))
1221 (home-page "http://amsynth.github.io")
1222 (synopsis "Analog modeling synthesizer")
1224 "amsynth is an easy-to-use software synthesizer with a classic
1225 subtractive synthesizer topology. Its features include: dual
1226 oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct
1227 resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato
1228 keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO
1229 which can modulate the oscillators, filter, and amplitude; distortion and
1231 (license license:gpl2+)))
1233 (define-public setbfree
1240 (string-append "https://github.com/pantherb/setBfree/archive/v"
1242 (file-name (string-append name "-" version ".tar.gz"))
1245 "1g4s1920kb2q5gpp82l2vxia29qa8g8zvdjgrca8ypynvxpzn65f"))))
1246 (build-system gnu-build-system)
1248 `(#:tests? #f ; no "check" target
1250 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1251 (string-append "FONTFILE="
1252 (assoc-ref %build-inputs "font-bitstream-vera")
1253 "/share/fonts/truetype/VeraBd.ttf")
1254 ;; Disable unsupported optimization flags on non-x86
1255 ,@(let ((system (or (%current-target-system)
1256 (%current-system))))
1257 (if (or (string-prefix? "x86_64" system)
1258 (string-prefix? "i686" system))
1260 '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
1262 (modify-phases %standard-phases
1263 (add-before 'build 'set-CC-variable
1264 (lambda _ (setenv "CC" "gcc") #t))
1265 (delete 'configure))))
1269 ("zita-convolver" ,zita-convolver)
1272 ("font-bitstream-vera" ,font-bitstream-vera)))
1274 `(("help2man" ,help2man)
1275 ("pkg-config" ,pkg-config)))
1276 (home-page "http://setbfree.org")
1277 (synopsis "Tonewheel organ")
1279 "setBfree is a MIDI-controlled, software synthesizer designed to imitate
1280 the sound and properties of the electromechanical organs and sound
1281 modification devices that brought world-wide fame to the names and products of
1282 Laurens Hammond and Don Leslie.")
1283 (license license:gpl2+)))
1285 (define-public beast
1291 (uri (string-append "https://testbit.eu/pub/dists/beast/beast-"
1295 "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn"))))
1296 (build-system gnu-build-system)
1298 '(#:parallel-build? #f)) ; Race conditions cause build failures
1300 `(("rapicorn" ,rapicorn)
1301 ("guile" ,guile-1.8)
1302 ("python" ,python-2)
1303 ("libgnomecanvas" ,libgnomecanvas)
1307 ("alsa-lib" ,alsa-lib)
1308 ("libvorbis" ,libvorbis)
1309 ("gettext" ,gettext-minimal)))
1311 `(("pkg-config" ,pkg-config)
1312 ("glib:bin" ,glib "bin")
1313 ("cython" ,python2-cython)
1315 ("perl-xml-parser" ,perl-xml-parser)))
1316 (home-page "https://testbit.eu/wiki/Beast_Home")
1317 (synopsis "Music composition and modular synthesis environment")
1319 "Beast is a music composition and modular synthesis application. It
1320 supports a wide range of standards in the field, such as MIDI, various audio
1321 file formats and LADSPA modules. It allows for multitrack editing, real-time
1322 synthesis, 32bit audio rendering, precise timing down to sample granularity,
1323 on-demand and partial loading of wave files, on the fly decoding, stereo
1324 mixing, FFT scopes, MIDI automation and full scriptability in Scheme.")
1325 (license license:gpl3+)))
1327 (define-public bristol
1333 (uri (string-append "mirror://sourceforge/bristol/bristol/"
1334 (version-major+minor version)
1335 "/bristol-" version ".tar.gz"))
1338 "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
1339 (build-system gnu-build-system)
1342 (modify-phases %standard-phases
1343 (add-after 'unpack 'remove-sse-flags
1344 (lambda* (#:key system #:allow-other-keys)
1345 (when (not (or (string-prefix? "x86_64" system)
1346 (string-prefix? "i686" system)))
1347 (substitute* "bristol/Makefile.in"
1348 (("-msse -mfpmath=sse") "")))
1350 ;; alsa-lib 1.1.x no longer provides iatomic.h. That's okay because
1351 ;; bristol actually doesn't use it.
1352 (add-after 'unpack 'do-not-use-alsa-iatomic
1354 (substitute* "libbristolaudio/audioEngineJack.c"
1355 (("#include <alsa/iatomic.h>") ""))
1357 ;; We know that Bristol has been linked with JACK and we don't have
1358 ;; ldd, so we can just skip this check.
1359 (add-after 'unpack 'do-not-grep-for-jack
1361 (substitute* "bin/startBristol.in"
1362 (("ldd `which bristol` | grep jack") "echo guix"))
1365 `(("alsa-lib" ,alsa-lib)
1368 ("libx11" ,libx11)))
1370 `(("pkg-config" ,pkg-config)))
1371 (home-page "http://bristol.sourceforge.net/")
1372 (synopsis "Synthesizer emulator")
1374 "Bristol is an emulation package for a number of different 'classic'
1375 synthesizers including additive and subtractive and a few organs. The
1376 application consists of the engine, which is called bristol, and its own GUI
1377 library called brighton that represents all the emulations. There are
1378 currently more than twenty different emulations; each does sound different
1379 although the author maintains that the quality and accuracy of each emulation
1381 (license license:gpl3+)))
1383 (define-public tuxguitar
1390 "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-"
1391 version "/tuxguitar-" version "-src.tar.gz"))
1394 "041275vwfr82kass7wiq9g2y82w9qrbzfinzcvfij2f2q45njwmc"))
1395 (modules '((guix build utils)))
1398 ;; Delete pre-built classes
1399 (delete-file-recursively "TuxGuitar-android-gdrive/bin")
1400 (delete-file-recursively "TuxGuitar-android-gdrive-gdaa/bin")
1402 (build-system ant-build-system)
1404 `(#:build-target "build"
1405 #:tests? #f ; no tests
1407 (modify-phases %standard-phases
1408 (add-after 'unpack 'enter-dir
1409 (lambda _ (chdir "TuxGuitar-lib") #t))
1410 (add-after 'build 'build-libraries
1411 (lambda* (#:key inputs outputs #:allow-other-keys)
1412 (let* ((initial-classpath (getenv "CLASSPATH"))
1413 (build-dir (lambda (dir)
1416 (string-join (cons initial-classpath
1417 (find-files (getcwd) "\\.jar$"))
1420 (if (file-exists? "build.xml")
1421 ((assoc-ref %standard-phases 'build)
1422 #:build-target "build")
1424 ;; Generate default build.xml
1425 ((@@ (guix build ant-build-system) default-build.xml)
1426 (string-append (string-downcase dir) ".jar")
1427 (string-append (assoc-ref outputs "out")
1429 ((assoc-ref %standard-phases 'build)))))))
1430 (map build-dir '("TuxGuitar-editor-utils"
1431 "TuxGuitar-ui-toolkit"
1432 "TuxGuitar-ui-toolkit-swt"
1433 "TuxGuitar-awt-graphics")))))
1434 (add-after 'build-libraries 'build-application
1436 (chdir "../TuxGuitar")
1437 ((assoc-ref %standard-phases 'build)
1438 #:build-target "build")))
1440 (lambda* (#:key inputs outputs #:allow-other-keys)
1441 (let* ((out (assoc-ref outputs "out"))
1442 (bin (string-append out "/bin"))
1443 (share (string-append out "/share"))
1444 (lib (string-append share "/java"))
1445 (swt (assoc-ref inputs "java-swt")))
1448 (for-each (lambda (file)
1449 (install-file file lib))
1450 (find-files ".." "\\.jar$"))
1452 ;; install all resources
1453 (copy-recursively "share" share)
1456 (call-with-output-file (string-append bin "/tuxguitar")
1458 (let ((classpath (string-join (append (find-files lib "\\.jar$")
1459 (find-files swt "\\.jar$"))
1463 (string-append "#!/bin/sh\n"
1466 " -Dtuxguitar.home.path=" out
1467 " -Dtuxguitar.share.path=" out "/share"
1468 " -Dswt.library.path=" swt "/lib"
1469 " org.herac.tuxguitar.app.TGMainSingleton"
1470 " \"$1\" \"$2\"")))))
1471 (chmod (string-append bin "/tuxguitar") #o555)
1474 `(("java-swt" ,java-swt)))
1475 (home-page "http://tuxguitar.pw")
1476 (synopsis "Multitrack tablature editor and player")
1478 "TuxGuitar is a guitar tablature editor with player support through midi.
1479 It can display scores and multitrack tabs. TuxGuitar provides various
1480 additional features, including autoscrolling while playing, note duration
1481 management, bend/slide/vibrato/hammer-on/pull-off effects, support for
1482 tuplets, time signature management, tempo management, gp3/gp4/gp5 import and
1484 (license license:lgpl2.1+)))
1493 (string-append "http://msp.ucsd.edu/Software/pd-"
1494 version ".src.tar.gz"))
1497 "0k5s949kqd7yw97h3m8z81bjz32bis9m4ih8df1z0ymipnafca67"))))
1498 (build-system gnu-build-system)
1500 `(#:tests? #f ; no "check" target
1502 (modify-phases %standard-phases
1503 (add-before 'configure 'fix-wish-path
1505 (substitute* "src/s_inter.c"
1506 ((" wish ") (string-append " " (which "wish8.6") " ")))
1507 (substitute* "tcl/pd-gui.tcl"
1508 (("exec wish ") (string-append "exec " (which "wish8.6") " ")))
1510 (add-after 'unpack 'autoconf
1511 (lambda _ (zero? (system* "bash" "./autogen.sh")))))))
1513 `(("autoconf" ,autoconf)
1514 ("automake" ,automake)
1515 ("libtool" ,libtool)
1516 ("gettext" ,gettext-minimal)
1517 ("pkg-config" ,pkg-config)))
1520 ("alsa-lib" ,alsa-lib)
1522 (home-page "http://puredata.info")
1523 (synopsis "Visual programming language for artistic performances")
1525 "Pure Data (aka Pd) is a visual programming language. Pd enables
1526 musicians, visual artists, performers, researchers, and developers to create
1527 software graphically, without writing lines of code. Pd is used to process
1528 and generate sound, video, 2D/3D graphics, and interface sensors, input
1529 devices, and MIDI. Pd can easily work over local and remote networks to
1530 integrate wearable technology, motor systems, lighting rigs, and other
1531 equipment. Pd is suitable for learning basic multimedia processing and visual
1532 programming methods as well as for realizing complex systems for large-scale
1534 (license license:bsd-3)))
1536 (define-public portmidi
1542 (uri (string-append "mirror://sourceforge/portmedia/portmidi/"
1543 version "/portmidi-src-" version ".zip"))
1546 "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88"))
1547 (patches (list (search-patch "portmidi-modular-build.patch")))))
1548 (build-system cmake-build-system)
1550 `(#:tests? #f ; tests cannot be linked
1552 (list "-DPORTMIDI_ENABLE_JAVA=Off"
1553 "-DCMAKE_BUILD_TYPE=Release" ; needed to have PMALSA set
1554 "-DPORTMIDI_ENABLE_TEST=Off"))) ; tests fail linking
1556 `(("alsa-lib" ,alsa-lib)))
1558 `(("unzip" ,unzip)))
1559 (home-page "http://portmedia.sourceforge.net/portmidi/")
1560 (synopsis "Library for MIDI I/O")
1562 "PortMidi is a library supporting real-time input and output of MIDI data
1563 using a system-independent interface.")
1564 (license license:expat)))
1566 (define-public portmidi-for-extempore
1567 (package (inherit portmidi)
1568 (name "portmidi-for-extempore")
1572 (uri (string-append "https://github.com/extemporelang/portmidi/"
1573 "archive/" version ".tar.gz"))
1574 (file-name (string-append name "-" version ".tar.gz"))
1577 "0gjikwciyr8kk4y3qiv1pcq58xpgw38ql1m2gs6g0qc1s8sx4235"))))
1578 (build-system cmake-build-system)
1579 (arguments `(#:tests? #f)) ; no tests
1581 ;; Extempore refuses to build on architectures other than x86_64
1582 (supported-systems '("x86_64-linux"))
1583 (home-page "https://github.com/extemporelang/portmidi/")))
1585 (define-public python-pyportmidi
1587 (name "python-pyportmidi")
1588 (version (package-version portmidi))
1589 (source (package-source portmidi))
1590 (build-system python-build-system)
1592 `(#:tests? #f ; no tests included
1594 (modify-phases %standard-phases
1595 (add-after 'unpack 'enter-dir
1596 (lambda _ (chdir "pm_python") #t))
1597 (add-after 'enter-dir 'fix-setup.py
1599 (substitute* "setup.py"
1600 ;; Use Python 3 syntax
1601 (("print (\".*\")" _ text)
1602 (string-append "print(" text ")\n"))
1603 ;; TODO.txt and CHANGES.txt don't exist
1604 (("CHANGES =.*") "CHANGES = \"\"\n")
1605 (("TODO =.*") "TODO = \"\"\n"))
1608 `(("portmidi" ,portmidi)
1609 ("alsa-lib" ,alsa-lib)))
1611 `(("python-cython" ,python-cython)
1613 (home-page "http://portmedia.sourceforge.net/portmidi/")
1614 (synopsis "Python bindings to PortMidi")
1616 "This package provides Python bindings to the PortMidi library.")
1617 (license license:expat)))
1619 (define-public frescobaldi
1621 (name "frescobaldi")
1626 "https://github.com/wbsoft/frescobaldi/releases/download/v"
1627 version "/frescobaldi-" version ".tar.gz"))
1630 "15cqhbjbjikr7ljgiq56bz2gxrr38j8p0f78p2vhyzydaviy9a2z"))))
1631 (build-system python-build-system)
1632 (arguments `(#:tests? #f)) ; no tests included
1634 `(("lilypond" ,lilypond)
1635 ("portmidi" ,portmidi)
1636 ("python-pyqt" ,python-pyqt)
1637 ("python-ly" ,python-ly)
1638 ("python-pyportmidi" ,python-pyportmidi)
1639 ("poppler" ,poppler)
1640 ("python-poppler-qt5" ,python-poppler-qt5)
1641 ("python-sip" ,python-sip)))
1642 (home-page "http://www.frescobaldi.org/")
1643 (synopsis "LilyPond sheet music text editor")
1645 "Frescobaldi is a LilyPond sheet music text editor with syntax
1646 highlighting and automatic completion. Among other things, it can render
1647 scores next to the source, can capture input from MIDI or read MusicXML and
1648 ABC files, has a MIDI player for proof-listening, and includes a documentation
1650 (license license:gpl2+)))
1652 (define-public drumstick
1658 (uri (string-append "mirror://sourceforge/drumstick/"
1659 version "/drumstick-" version ".tar.bz2"))
1662 "13pkfqrav30bbcddgf1imd7jk6lpqbxkz1qv31718pdl446jq7df"))))
1663 (build-system cmake-build-system)
1665 `(#:tests? #f ; no test target
1666 #:configure-flags '("-DLIB_SUFFIX=")
1668 (modify-phases %standard-phases
1669 (add-before 'configure 'fix-docbook
1670 (lambda* (#:key inputs #:allow-other-keys)
1671 (substitute* "cmake_admin/CreateManpages.cmake"
1672 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1673 (string-append (assoc-ref inputs "docbook-xsl")
1674 "/xml/xsl/docbook-xsl-"
1675 ,(package-version docbook-xsl)
1676 "/manpages/docbook.xsl")))
1679 `(("qtbase" ,qtbase)
1681 ("alsa-lib" ,alsa-lib)
1682 ("fluidsynth" ,fluidsynth)))
1684 `(("pkg-config" ,pkg-config)
1685 ("libxslt" ,libxslt) ;for xsltproc
1686 ("docbook-xsl" ,docbook-xsl)
1687 ("doxygen" ,doxygen)))
1688 (home-page "http://drumstick.sourceforge.net/")
1689 (synopsis "C++ MIDI library")
1691 "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It
1692 includes a C++ wrapper around the ALSA library sequencer interface. A
1693 complementary library provides classes for processing SMF (Standard MIDI
1694 files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A
1695 multiplatform realtime MIDI I/O library is also provided with various output
1696 backends, including ALSA, OSS, Network and FluidSynth.")
1697 (license license:gpl2+)))
1699 (define-public zynaddsubfx
1701 (name "zynaddsubfx")
1706 "mirror://sourceforge/zynaddsubfx/zynaddsubfx/"
1707 version "/zynaddsubfx-" version ".tar.bz2"))
1710 "09mr23lqc51r7gskry5b7hk84pghdpgn1s4vnrzvx7xpa21gvplm"))))
1711 (build-system cmake-build-system)
1714 (modify-phases %standard-phases
1715 ;; Move SSE compiler optimization flags from generic target to
1716 ;; athlon64 and core2 targets, because otherwise the build would fail
1717 ;; on non-Intel machines.
1718 (add-after 'unpack 'remove-sse-flags-from-generic-target
1720 (substitute* "src/CMakeLists.txt"
1721 (("-msse -msse2 -mfpmath=sse") "")
1722 (("-march=(athlon64|core2)" flag)
1723 (string-append flag " -msse -msse2 -mfpmath=sse")))
1729 ("alsa-lib" ,alsa-lib)
1732 ("minixml" ,minixml)
1736 `(("pkg-config" ,pkg-config)))
1737 (home-page "http://zynaddsubfx.sf.net/")
1738 (synopsis "Software synthesizer")
1740 "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
1741 three synthesizer engines, multitimbral and polyphonic synths, microtonal
1742 capabilities, custom envelopes, effects, etc.")
1743 (license license:gpl2)))
1745 (define-public yoshimi
1751 (uri (string-append "mirror://sourceforge/yoshimi/"
1752 (version-major+minor version)
1753 "/yoshimi-" version ".tar.bz2"))
1756 "0sns35pyw2f74xrv1fxiyf9g9415kvh2rrbdjd60hsiv584nlari"))))
1757 (build-system cmake-build-system)
1759 `(#:tests? #f ; there are no tests
1761 (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR="
1762 (assoc-ref %outputs "out") "/share"))
1764 (modify-phases %standard-phases
1765 (add-before 'configure 'enter-dir
1766 (lambda _ (chdir "src") #t))
1767 ;; Move SSE compiler optimization flags from generic target to
1768 ;; athlon64 and core2 targets, because otherwise the build would fail
1769 ;; on non-Intel machines.
1770 (add-after 'unpack 'remove-sse-flags-from-generic-target
1772 (substitute* "src/CMakeLists.txt"
1773 (("-msse -msse2 -mfpmath=sse") "")
1774 (("-march=(athlon64|core2)" flag)
1775 (string-append flag " -msse -msse2 -mfpmath=sse")))
1777 ;; Yoshimi tries to find ncurses with pkg-config, but our ncurses
1778 ;; package does not install .pc files.
1779 (add-after 'unpack 'find-ncurses
1781 (substitute* "src/CMakeLists.txt"
1782 (("LIBNCURSES REQUIRED") "LIBNCURSES")
1783 (("NCURSES REQUIRED") "NCURSES")
1784 (("FATAL_ERROR \"libncurses") "STATUS \"libncurses")
1785 (("\\$\\{NCURSES_LIBRARIES\\}") "ncurses"))
1790 ("alsa-lib" ,alsa-lib)
1792 ("fontconfig" ,fontconfig)
1793 ("minixml" ,minixml)
1797 ("readline" ,readline)
1798 ("ncurses" ,ncurses)
1802 `(("pkg-config" ,pkg-config)))
1803 (home-page "http://yoshimi.sourceforge.net/")
1804 (synopsis "Multi-paradigm software synthesizer")
1806 "Yoshimi is a fork of ZynAddSubFX, a feature heavy realtime software
1807 synthesizer. It offers three synthesizer engines, multitimbral and polyphonic
1808 synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi
1809 improves on support for JACK features, such as JACK MIDI.")
1810 (license license:gpl2)))
1812 (define-public libgig
1818 (uri (string-append "http://download.linuxsampler.org/packages/"
1819 "libgig-" version ".tar.bz2"))
1822 "1wr8mwjmqpnyz6bx9757lspiii1zzn8zfbqsvn2ipzpgqkxv6kaz"))))
1823 (build-system gnu-build-system)
1825 `(("libuuid" ,util-linux)
1826 ("libsndfile" ,libsndfile)))
1828 `(("pkg-config" ,pkg-config)))
1829 (home-page "http://linuxsampler.org/libgig/")
1830 (synopsis "C++ library for working with Gigasampler (.gig) files")
1832 "Libgig is a C++ library for loading, modifying existing and creating new
1833 Gigasampler (.gig) files and DLS (Downloadable Sounds) Level 1/2 files, KORG
1834 sample based instruments (.KSF and .KMP files), SoundFont v2 (.sf2) files and
1835 AKAI sampler data. The package includes a couple of command line tools based
1837 ;; The library and tools are released under the GPL, except the AKAI
1838 ;; classes which are released under the LGPL.
1839 (license (list license:gpl2+ license:lgpl2.1+))))
1841 (define-public jack-keyboard
1843 (name "jack-keyboard")
1848 (uri (string-append "mirror://sourceforge/jack-keyboard/jack-keyboard/"
1849 version "/jack-keyboard-" version ".tar.gz"))
1852 "0mzmg8aavybcfdlq2yd9d0vscqd6is5p6jzrgfpfm5j3xdcvh2s3"))))
1853 (build-system gnu-build-system)
1859 `(("pkg-config" ,pkg-config)))
1860 (home-page "http://jack-keyboard.sourceforge.net/")
1861 (synopsis "Virtual MIDI keyboard")
1862 (description "Jack-keyboard is a virtual MIDI keyboard, a program that
1863 allows you to send JACK MIDI events (i.e. play) using your PC keyboard.")
1864 (license license:bsd-2)))
1866 (define-public cursynth
1873 (uri (string-append "mirror://gnu/cursynth/cursynth-"
1876 (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v"))
1877 (patches (search-patches "cursynth-wave-rand.patch"))))
1878 (build-system gnu-build-system)
1879 (native-inputs `(("pkg-config" ,pkg-config)))
1880 ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently
1881 ;; prevents us from using pulseaudio
1882 (inputs `(("ncurses" ,ncurses)
1883 ("alsa" ,alsa-lib)))
1884 (home-page "https://www.gnu.org/software/cursynth/")
1885 (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses")
1886 (description "GNU cursynth is a polyphonic synthesizer that runs
1887 graphically in the terminal. It is built on a full-featured subtractive
1888 synthesis engine. Notes and parameter changes may be entered via MIDI or the
1889 computer's keyboard.")
1890 (license license:gpl3+)))
1892 (define-public qtractor
1898 (uri (string-append "http://downloads.sourceforge.net/qtractor/"
1899 "qtractor-" version ".tar.gz"))
1902 "0ggqp2pz6r0pvapbbil51fh5185rn0i9kgzm9ff8r8y1135zllk8"))))
1903 (build-system gnu-build-system)
1904 (arguments `(#:tests? #f)) ; no "check" target
1907 ("qtx11extras" ,qtx11extras)
1908 ("alsa-lib" ,alsa-lib)
1910 ("libsndfile" ,libsndfile)
1915 ("libsamplerate" ,libsamplerate)
1916 ("libvorbis" ,libvorbis)
1918 ("rubberband" ,rubberband)
1922 `(("pkg-config" ,pkg-config)
1923 ("qttools" ,qttools)))
1924 (home-page "http://qtractor.org/")
1925 (synopsis "Audio/MIDI multi-track sequencer")
1927 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
1928 JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
1929 follows a traditional multi-track tape recorder control paradigm.")
1930 (license license:gpl2+)))
1932 (define-public ams-lv2
1939 (uri (string-append "https://github.com/blablack/ams-lv2/"
1940 "archive/" version ".tar.gz"))
1941 (file-name (string-append name "-" version ".tar.gz"))
1944 "1xacxyzqcj83g9c1gwfn36gg1c6yi15v7km4vidfidrjzb4x27fq"))))
1945 (build-system waf-build-system)
1948 (modify-phases %standard-phases
1949 (add-after 'unpack 'remove-sse-flags
1950 (lambda* (#:key system #:allow-other-keys)
1951 (when (not (or (string-prefix? "x86_64" system)
1952 (string-prefix? "i686" system)))
1953 (substitute* "wscript"
1954 (("'-msse', '-mfpmath=sse', ") ""))
1956 #:tests? #f)) ; no tests
1965 `(("pkg-config" ,pkg-config)))
1966 (home-page "https://objectivewave.wordpress.com/ams-lv2/")
1967 (synopsis "Port of Alsa Modular Synth internal modules into LV2")
1968 (description "This set of LV2 plugins is a port of the internal modules
1969 found in Alsa Modular Synth. These plugins are used to create modular
1970 synthesizers and contain: VCO, VCF, VCA, LFO, slew limiter, envelopes, sample
1972 (license license:gpl2)))
1974 (define-public gxtuner
1980 (uri (string-append "https://github.com/brummer10/gxtuner/"
1981 "archive/v" version ".tar.gz"))
1982 (file-name (string-append name "-" version ".tar.gz"))
1985 "1hn5qjac7qd00v0sp7ijhhc3sb26ks9bni06nngivva21h61xrjr"))))
1986 (build-system gnu-build-system)
1989 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1990 (string-append "INCLUDE_L_DIR="
1991 (assoc-ref %build-inputs "zita-resampler")
1994 (modify-phases %standard-phases
1995 (delete 'configure))))
2001 ("zita-resampler" ,zita-resampler)))
2003 `(("pkg-config" ,pkg-config)))
2004 (home-page "https://github.com/brummer10/gxtuner")
2005 (synopsis "Guitar tuner")
2006 (description "GXtuner is a simple guitar tuner for JACK with an
2007 analogue-like user interface.")
2008 (license license:gpl2+)))
2010 (define-public mod-host
2011 ;; The last release was in 2014 but since then more than 140 commits have
2013 (let ((commit "299a3977476e8eb0285837fbd7522cec506a11de")
2017 (version (string-append "0.10.6-" revision "." (string-take commit 9)))
2021 (url "https://github.com/moddevices/mod-host")
2025 "128q7p5mph086v954rqnafalfbkyvhgwclaq6ks6swrhj45wnag6"))
2026 (file-name (string-append name "-" version "-checkout"))))
2027 (build-system gnu-build-system)
2029 `(#:tests? #f ; no tests included
2031 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2034 (modify-phases %standard-phases
2036 (add-after 'unpack 'fix-jack-installation-directory
2038 ;; Do not attempt to install files to output of "jack" package.
2039 (substitute* "Makefile"
2040 (("\\$\\(shell pkg-config --variable=libdir jack\\)")
2049 ("readline" ,readline)))
2051 `(("pkg-config" ,pkg-config)
2052 ("python" ,python-2)))
2053 (home-page "https://github.com/moddevices/mod-host")
2054 (synopsis "LV2 host for Jack controllable via socket or command line")
2055 (description "mod-host is an LV2 plugin host for JACK, controllable via
2056 socket or command line.")
2057 (license license:gpl3+))))
2059 (define-public pianobar
2062 (version "2016.06.02")
2065 (uri (string-append "https://github.com/PromyLOPh/"
2066 name "/archive/" version ".tar.gz"))
2067 (file-name (string-append name "-" version ".tar.gz"))
2070 "1hi5rr6jcr0kwf4xfz007ndwkjkp287lhwlsgfz6iryqa5n6jzcp"))))
2071 (build-system gnu-build-system)
2073 `(#:tests? #f ; no tests
2074 #:make-flags (list "CC=gcc" "CFLAGS=-std=c99"
2075 (string-append "PREFIX=" %output))
2076 #:phases (modify-phases %standard-phases
2077 (delete 'configure))))
2081 ("libgcrypt" ,libgcrypt)
2083 ("ffmpeg" ,ffmpeg)))
2085 `(("pkg-config" ,pkg-config)))
2086 (home-page "http://6xq.net/projects/pianobar/")
2087 (synopsis "Console-based pandora.com player")
2088 (description "pianobar is a console-based music player for the
2089 personalized online radio pandora.com. It has configurable keys for playing
2090 and managing stations, can be controlled remotely via fifo, and can run
2091 event-based scripts for scrobbling, notifications, etc.")
2092 (license license:expat)))
2094 (define-public python-mutagen
2096 (name "python-mutagen")
2100 (uri (pypi-uri "mutagen" version))
2103 "0rl7sxn1rcjl48fwga3dqf9f6pzspsny4ngxyf6pp337mrq0z693"))))
2104 (build-system python-build-system)
2106 `(("python-pytest" ,python-pytest)))
2107 (home-page "https://bitbucket.org/lazka/mutagen")
2108 (synopsis "Read and write audio tags")
2109 (description "Mutagen is a Python module to handle audio metadata. It
2110 supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
2111 Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
2112 of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
2113 Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
2114 APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
2115 streams on an individual packet/page level.")
2116 (license license:gpl2))) ; "later version" never mentioned
2118 (define-public python2-mutagen
2119 (package-with-python2 python-mutagen))
2121 (define-public python-musicbrainzngs
2123 (name "python-musicbrainzngs")
2127 (uri (pypi-uri "musicbrainzngs" version))
2130 "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8"))))
2131 (build-system python-build-system)
2133 '(;; The tests fail suffer from race conditions:
2134 ;; https://github.com/alastair/python-musicbrainzngs/issues/211
2136 (home-page "https://python-musicbrainzngs.readthedocs.org/")
2137 (synopsis "Python bindings for MusicBrainz NGS webservice")
2138 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
2139 web service. This library can be used to retrieve music metadata from the
2140 MusicBrainz database.")
2141 ;; 'musicbrainzngs/compat.py' is ISC licensed.
2142 (license (list license:bsd-2 license:isc))))
2144 (define-public python2-musicbrainzngs
2145 (package-with-python2 python-musicbrainzngs))
2147 (define-public python2-pyechonest
2149 (name "python2-pyechonest")
2153 (uri (pypi-uri "pyechonest" version))
2156 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
2157 (build-system python-build-system)
2159 `(;; Python 3 is not supported:
2160 ;; https://github.com/echonest/pyechonest/issues/42
2161 #:python ,python-2))
2162 (home-page "https://github.com/echonest/pyechonest")
2163 (synopsis "Python interface to The Echo Nest APIs")
2164 (description "Pyechonest is a Python library for the Echo Nest API. With
2165 Pyechonest you have Python access to the entire set of API methods including:
2168 @item artist - search for artists by name, description, or attribute, and get
2169 back detailed information about any artist including audio, similar artists,
2170 blogs, familiarity, hotttnesss, news, reviews, urls and video.
2171 @item song - search songs by artist, title, description, or attribute (tempo,
2172 duration, etc) and get detailed information back about each song, such as
2173 hotttnesss, audio_summary, or tracks.
2174 @item track - upload a track to the Echo Nest and receive summary information
2175 about the track including key, duration, mode, tempo, time signature along with
2176 detailed track info including timbre, pitch, rhythm and loudness information.
2178 (license license:bsd-3)))
2180 (define-public python-pylast
2182 (name "python-pylast")
2186 (uri (pypi-uri "pylast" version))
2189 "190c6sicc80v21wbbwbq771nqmxw4r6aqmxs22ndj177rc2l275f"))))
2190 (build-system python-build-system)
2192 '(#:tests? #f)) ; FIXME: Requires unpackaged python-flaky.
2194 `(("python-coverage" ,python-coverage)
2195 ("python-mock" ,python-mock)
2196 ("python-pep8" ,python-pep8)
2197 ("python-pytest" ,python-pytest)
2198 ("python-pyflakes" ,python-pyflakes)
2199 ("python-pyyaml" ,python-pyyaml)))
2201 `(("python-six" ,python-six)))
2202 (home-page "https://github.com/pylast/pylast")
2203 (synopsis "Python interface to Last.fm and Libre.fm")
2204 (description "A Python interface to Last.fm and other API-compatible
2205 websites such as Libre.fm.")
2206 (license license:asl2.0)))
2208 (define-public python2-pylast
2209 (package-with-python2 python-pylast))
2211 (define-public beets
2217 (uri (pypi-uri "beets" version))
2220 "1z02j871gc8l9mnd344qy9z8akigikgmc22r15ns6driqb2qishv"))))
2221 (build-system python-build-system)
2224 (modify-phases %standard-phases
2225 (add-after 'unpack 'set-HOME
2226 (lambda _ (setenv "HOME" (string-append (getcwd) "/tmp"))))
2228 (lambda _ (zero? (system* "nosetests" "-v")))))))
2230 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2231 ("python-flask" ,python-flask)
2232 ("python-mock" ,python-mock)
2233 ("python-mpd2" ,python-mpd2)
2234 ("python-nose" ,python-nose)
2235 ("python-pathlib" ,python-pathlib)
2236 ("python-pyxdg" ,python-pyxdg)
2237 ("python-pylast" ,python-pylast)
2238 ("python-rarfile" ,python-rarfile)
2239 ("python-responses" ,python-responses)))
2240 ;; TODO: Install optional plugins and dependencies.
2242 `(("python-discogs-client" ,python-discogs-client)
2243 ("python-jellyfish" ,python-jellyfish)
2244 ("python-munkres" ,python-munkres)
2245 ("python-musicbrainzngs" ,python-musicbrainzngs)
2246 ("python-mutagen" ,python-mutagen)
2247 ("python-pyyaml" ,python-pyyaml)
2248 ("python-unidecode" ,python-unidecode)))
2249 (home-page "http://beets.io")
2250 (synopsis "Music organizer")
2251 (description "The purpose of beets is to get your music collection right
2252 once and for all. It catalogs your collection, automatically improving its
2253 metadata as it goes using the MusicBrainz database. Then it provides a variety
2254 of tools for manipulating and accessing your music.")
2255 (license license:expat)))
2257 (define-public milkytracker
2259 (name "milkytracker")
2263 (uri (string-append "https://github.com/milkytracker/"
2264 "MilkyTracker/archive/v"
2266 (file-name (string-append name "-" version ".tar.gz"))
2269 "1dvnddsnn9c83lz4dlm0cfjpc0m524amfkbalxbswdy0qc8cj1wv"))
2270 (modules '((guix build utils)))
2271 ;; Remove non-FSDG compliant sample songs.
2274 (delete-file-recursively "resources/music")
2275 (substitute* "CMakeLists.txt"
2276 (("add_subdirectory\\(resources/music\\)") ""))))))
2277 (build-system cmake-build-system)
2279 '(#:tests? #f)) ; no check target
2281 `(("alsa-lib" ,alsa-lib)
2286 `(("pkg-config" ,pkg-config)))
2287 (synopsis "Music tracker for working with .MOD/.XM module files")
2288 (description "MilkyTracker is a music application for creating .MOD and .XM
2289 module files. It attempts to recreate the module replay and user experience of
2290 the popular DOS program Fasttracker II, with special playback modes available
2291 for improved Amiga ProTracker 2/3 compatibility.")
2292 (home-page "http://milkytracker.titandemo.org/")
2293 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2294 (license (list license:bsd-3 license:gpl3+))))
2296 (define-public schismtracker
2298 (name "schismtracker")
2299 (version "20170420")
2303 "https://github.com/" name "/" name "/archive/"
2305 (file-name (string-append name "-" version ".tar.gz"))
2308 "0k06vri29ayaq7mzsik3yywh6zdar2nfpkav2sp6g2rjl6k6vi5z"))
2309 (modules '((guix build utils)))
2311 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2312 `(substitute* "schism/version.c"
2313 (("Schism Tracker built %s %s.*$")
2314 (string-append "Schism Tracker version " ,version "\");"))))))
2315 (build-system gnu-build-system)
2318 (modify-phases %standard-phases
2319 (add-after 'unpack 'autoconf
2320 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
2321 (add-before 'configure 'link-libm
2322 (lambda _ (setenv "LIBS" "-lm") #t)))))
2324 `(("autoconf" ,autoconf)
2325 ("automake" ,automake)
2326 ("python" ,python)))
2328 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2330 ("libxext" ,libxext)
2332 (home-page "http://schismtracker.org")
2333 (synopsis "Oldschool sample-based music composition tool")
2335 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2336 create high quality music without the requirements of specialized, expensive
2337 equipment, and with a unique \"finger feel\" that is difficult to replicate in
2338 part. The player is based on a highly modified version of the ModPlug engine,
2339 with a number of bugfixes and changes to improve IT playback.")
2340 (license license:gpl2+)))
2342 (define-public sooperlooper
2344 (name "sooperlooper")
2348 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2352 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2353 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2354 (build-system gnu-build-system)
2356 `(#:make-flags (list "CXXFLAGS=-std=gnu++11")
2358 (modify-phases %standard-phases
2359 (add-after 'unpack 'add-sigc++-includes
2360 (lambda* (#:key inputs #:allow-other-keys)
2361 (let ((sig (assoc-ref inputs "libsigc++"))
2362 (xml (assoc-ref inputs "libxml2"))
2365 (string-append sig "/include/sigc++-2.0:"
2366 sig "/lib/sigc++-2.0/include:"
2367 xml "/include/libxml2/:"
2369 cwd "/libs/midi++")))
2370 (substitute* '("src/control_osc.hpp"
2371 "src/gui/app_frame.hpp"
2372 "src/gui/config_panel.hpp"
2373 "src/gui/keys_panel.hpp"
2374 "src/gui/latency_panel.hpp"
2375 "src/gui/main_panel.hpp"
2376 "src/gui/midi_bind_panel.hpp"
2377 "src/gui/prefs_dialog.hpp")
2378 (("sigc\\+\\+/object.h")
2380 (substitute* '("src/engine.cpp"
2381 "src/gui/latency_panel.cpp"
2382 "src/gui/looper_panel.cpp"
2383 "src/gui/main_panel.cpp")
2384 (("(\\(| )bind " _ pre)
2385 (string-append pre "sigc::bind ")))
2387 (add-after 'unpack 'fix-xpm-warnings
2389 (substitute* (find-files "." "\\.xpm$")
2390 (("static char") "static const char"))
2394 ("alsa-lib" ,alsa-lib)
2395 ("wxwidgets" ,wxwidgets-gtk2)
2396 ("libsndfile" ,libsndfile)
2397 ("libsamplerate" ,libsamplerate)
2399 ("rubberband" ,rubberband)
2400 ("libxml2" ,libxml2)
2401 ("libsigc++" ,libsigc++)
2402 ("ncurses" ,ncurses)))
2404 `(("pkg-config" ,pkg-config)))
2405 (home-page "http://essej.net/sooperlooper/")
2406 (synopsis "Live looping sampler")
2408 "SooperLooper is a live looping sampler capable of immediate loop
2409 recording, overdubbing, multiplying, reversing and more. It allows for
2410 multiple simultaneous multi-channel loops limited only by your computer's
2412 (license license:gpl2+)))
2420 (uri (string-append "http://ftp.daper.net/pub/soft/"
2422 name "-" version ".tar.bz2"))
2425 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))
2426 (modules '((guix build utils)))
2428 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2429 '(substitute* "main.c"
2430 (("printf \\(\" Built : %s\", __DATE__\\);") "")
2431 (("printf \\(\" %s\", __TIME__\\);") "")))))
2432 (build-system gnu-build-system)
2434 `(("alsa-lib" ,alsa-lib)
2440 ("libid3tag" ,libid3tag)
2441 ("libltdl" ,libltdl)
2442 ("libmodplug" ,libmodplug)
2443 ("libmpcdec" ,libmpcdec)
2446 ("libvorbis" ,libvorbis)
2447 ("ncurses" ,ncurses)
2448 ("openssl" ,openssl)
2449 ("sasl" ,cyrus-sasl)
2452 ("wavpack" ,wavpack)
2455 `(("pkg-config" ,pkg-config)))
2456 (synopsis "Console audio player designed to be powerful and easy to use")
2458 "Music on Console is a console audio player that supports many file
2459 formats, including most audio formats recognized by FFMpeg.")
2460 (home-page "http://moc.daper.net")
2461 (license license:gpl2+)))
2463 (define-public midicsv
2469 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
2470 name "-" version ".tar.gz"))
2473 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
2474 (build-system gnu-build-system)
2476 `(#:phases (modify-phases %standard-phases (delete 'configure))
2477 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
2478 (synopsis "Convert MIDI files to and from CSV")
2480 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
2481 value file (CSV), which preserves all the information in the MIDI file. The
2482 ASCII CSV file may be loaded into a spreadsheet or database application, or
2483 processed by a program to transform the MIDI data (for example, to key
2484 transpose a composition or extract a track from a multi-track sequence). A
2485 CSV file in the format created by midicsv may be converted back into a
2486 standard MIDI file with the csvmidi program.")
2487 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
2488 (license license:public-domain)))
2490 (define-public gx-guvnor-lv2
2492 (name "gx-guvnor-lv2")
2496 (uri (string-append "https://github.com/brummer10/GxGuvnor.lv2/"
2497 "archive/v" version ".tar.gz"))
2498 (file-name (string-append name "-" version ".tar.gz"))
2501 "0rnfvrvs8qmmldyfmx4llyly33zp68448gx40ywdwj42x0mam92p"))))
2502 (build-system gnu-build-system)
2504 `(;; The check target is used only to output a warning.
2507 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
2509 (modify-phases %standard-phases
2512 (substitute* "Makefile"
2513 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n"))
2517 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
2518 (synopsis "Overdrive/distortion pedal simulation")
2519 (description "This package provides the LV2 plugin \"GxGuvnor\", a
2520 simulation of an overdrive or distortion pedal for guitars.")
2521 ;; The LICENSE file says GPLv3 but the license headers in the files say
2523 (license license:gpl2+)))
2525 (define-public gx-vbass-preamp-lv2
2526 (let ((commit "0e599abab10c7669dd444e5d06f671c2fc1b9c6c")
2528 (package (inherit gx-guvnor-lv2)
2529 (name "gx-vbass-preamp-lv2")
2530 (version (string-append "0-" revision "." (string-take commit 9)))
2534 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
2538 "1dzksdfrva666gpi62fd2ni9rhf18sl917f1894qr0b17pbdh9k1"))
2539 (file-name (string-append name "-" version "-checkout"))))
2541 (substitute-keyword-arguments (package-arguments gx-guvnor-lv2)
2543 `(modify-phases ,phases
2546 (substitute* "Makefile"
2547 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
2548 (("install : all") "install :"))
2550 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
2551 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
2552 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
2553 pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
2556 (define-public gx-overdriver-lv2
2557 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
2559 (package (inherit gx-vbass-preamp-lv2)
2560 (name "gx-overdriver-lv2")
2561 (version (string-append "0-" revision "." (string-take commit 9)))
2565 (url "https://github.com/brummer10/GxOverDriver.lv2")
2569 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
2570 (file-name (string-append name "-" version "-checkout"))))
2571 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
2572 (synopsis "Overdrive effect with level and tone control")
2573 (description "This package provides the LV2 plugin \"GxOverDriver\", an
2574 overdrive effect."))))
2576 (define-public gx-tone-mender-lv2
2577 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
2579 (package (inherit gx-vbass-preamp-lv2)
2580 (name "gx-tone-mender-lv2")
2581 (version (string-append "0-" revision "." (string-take commit 9)))
2585 (url "https://github.com/brummer10/GxToneMender.lv2")
2589 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
2590 (file-name (string-append name "-" version "-checkout"))))
2591 (home-page "https://github.com/brummer10/GxToneMender.lv2")
2592 (synopsis "Clean boost with a 3-knob tonestack")
2593 (description "This package provides the LV2 plugin \"GxToneMender\", a
2594 clean boost effect with a 3-knob tonestack."))))
2596 (define-public gx-push-pull-lv2
2597 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
2599 (package (inherit gx-vbass-preamp-lv2)
2600 (name "gx-push-pull-lv2")
2601 (version (string-append "0-" revision "." (string-take commit 9)))
2605 (url "https://github.com/brummer10/GxPushPull.lv2")
2609 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
2610 (file-name (string-append name "-" version "-checkout"))))
2611 (home-page "https://github.com/brummer10/GxPushPull.lv2")
2612 (synopsis "Octave up push pull transistor fuzz simulation")
2613 (description "This package provides the LV2 plugin \"GxPushPull\", a
2614 simulation of a push pull transistor fuzz effect with added high octave."))))
2616 (define-public gx-suppa-tone-bender-lv2
2617 (package (inherit gx-guvnor-lv2)
2618 (name "gx-suppa-tone-bender-lv2")
2622 (uri (string-append "https://github.com/brummer10/"
2623 "GxSuppaToneBender.lv2/archive/v"
2627 "1j90fns87035sfr6bxs4cvqxbyy3pqjhihx1nis8xajn202nl1hx"))
2628 (file-name (string-append name "-" version ".tar.gz"))))
2629 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
2630 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
2631 (description "This package provides the LV2 plugin
2632 \"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
2635 (define-public gx-saturator-lv2
2636 (let ((commit "0b581ac85c515325b9f16e51937cae6e1bf81a0a")
2638 (package (inherit gx-vbass-preamp-lv2)
2639 (name "gx-saturator-lv2")
2640 (version (string-append "0-" revision "." (string-take commit 9)))
2644 (url "https://github.com/brummer10/GxSaturator.lv2")
2648 "1cl785pzq8zk55m1rnhfd6qsabci6kpf4pf002gwr91vagyq246z"))
2649 (file-name (string-append name "-" version "-checkout"))))
2650 (home-page "https://github.com/brummer10/GxSaturator.lv2")
2651 (synopsis "Saturation effect")
2652 (description "This package provides the LV2 plugin \"GxSaturator\", a
2653 saturation effect."))))
2655 (define-public gx-hyperion-lv2
2656 (package (inherit gx-guvnor-lv2)
2657 (name "gx-hyperion-lv2")
2661 (uri (string-append "https://github.com/brummer10/"
2662 "GxHyperion.lv2/archive/v"
2666 "1pd7l33a14kq73wavgqq7csw4n3mwjz9d5rxaj0jgsyxd3llp3wh"))
2667 (file-name (string-append name "-" version ".tar.gz"))))
2668 (home-page "https://github.com/brummer10/GxHyperion.lv2")
2669 (synopsis "Simulation of the Hyperion Fuzz pedal")
2670 (description "This package provides the LV2 plugin \"GxHyperion\", a
2671 simulation of the Hyperion Fuzz pedal.")))
2673 (define-public gx-voodoo-fuzz-lv2
2674 (package (inherit gx-guvnor-lv2)
2675 (name "gx-voodoo-fuzz-lv2")
2679 (uri (string-append "https://github.com/brummer10/"
2680 "GxVoodoFuzz.lv2/archive/v"
2684 "0cc8sg7q493bs6pcq4ipqp6czpxv04nh9yvn8kq2x65ni2208n2f"))
2685 (file-name (string-append name "-" version ".tar.gz"))))
2686 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
2687 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
2688 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
2689 simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
2690 Bosstone circuit, followed by the tone control of the FoxToneMachine in
2691 parallel with a DarkBooster, followed by a volume control.")))
2693 (define-public gx-super-fuzz-lv2
2694 (package (inherit gx-guvnor-lv2)
2695 (name "gx-super-fuzz-lv2")
2699 (uri (string-append "https://github.com/brummer10/"
2700 "GxSuperFuzz.lv2/archive/v"
2704 "0pnivq05f1kji8c5jxsqdzhdfk3xn422v2d1x20x3jfsxnaf115x"))
2705 (file-name (string-append name "-" version ".tar.gz"))))
2706 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
2707 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
2708 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
2709 analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
2710 pot, which is usually in the housing, is exposed as a control parameter. It
2711 adjusts the amount of harmonics.")))
2713 (define-public gx-vintage-fuzz-master-lv2
2714 (package (inherit gx-guvnor-lv2)
2715 (name "gx-vintage-fuzz-master-lv2")
2719 (uri (string-append "https://github.com/brummer10/"
2720 "GxVintageFuzzMaster.lv2/archive/v"
2724 "0bdkfj6xi2g4izfw3pmr4i0nqzg8jnkdwc23x9ifxwc6p1kbayzk"))
2725 (file-name (string-append name "-" version ".tar.gz"))))
2726 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
2727 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
2728 (description "This package provides the LV2 plugin
2729 \"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
2731 (define-public gx-slow-gear-lv2
2732 (let ((commit "cb852e0426f4e6fe077e7f1ede73a4da335cfc5e")
2734 (package (inherit gx-vbass-preamp-lv2)
2735 (name "gx-slow-gear-lv2")
2736 (version (string-append "0-" revision "." (string-take commit 9)))
2740 (url "https://github.com/brummer10/GxSlowGear.lv2")
2744 "0dp7afi1r3kzciiyn1hrkz6arsq47ys9sx5g4b7xa9k1dv92ishp"))
2745 (file-name (string-append name "-" version "-checkout"))))
2746 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
2747 (synopsis "Slow gear audio effect")
2748 (description "This package provides the LV2 plugin \"GxSlowGear\", a
2749 slow gear audio effect to produce volume swells."))))
2751 (define-public gx-switchless-wah-lv2
2752 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
2754 (package (inherit gx-vbass-preamp-lv2)
2755 (name "gx-switchless-wah-lv2")
2756 (version (string-append "0-" revision "." (string-take commit 9)))
2760 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
2764 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
2765 (file-name (string-append name "-" version "-checkout"))))
2766 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
2767 (synopsis "Wah emulation with switchless activation")
2768 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
2769 a simulation of an analog Wah pedal with switchless activation."))))
2771 (define-public mod-utilities
2772 (let ((commit "7cdeeac26ae682730740105ece121d4dddb8ba3f")
2775 (name "mod-utilities")
2776 (version (string-append "0-" revision "." (string-take commit 9)))
2780 (url "https://github.com/moddevices/mod-utilities.git")
2784 "1ilnkbrmwrszxvc21qlb86h29yz7cnc6rcp0jmna1y693ny2qhf4"))
2785 (file-name (string-append name "-" version "-checkout"))))
2786 (build-system gnu-build-system)
2788 `(#:tests? #f ; there are no tests
2790 (list (string-append "INSTALL_PATH="
2791 (assoc-ref %outputs "out")
2794 (modify-phases %standard-phases
2795 (delete 'configure))))
2798 (home-page "https://github.com/moddevices/mod-utilities")
2799 (synopsis "LV2 utility plugins")
2800 (description "This package provides LV2 audio utility plugins, such as
2801 filters, crossovers, simple gain plugins without zipper noise, switch box
2802 plugins, a switch trigger, a toggle switch, and a peakmeter.")
2803 (license license:gpl2+))))
2805 (define-public ingen
2806 (let ((commit "fd147d0b888090bfb897505852c1f25dbdf77e18")
2810 (version (string-append "0.0.0-" revision "."
2811 (string-take commit 9)))
2816 (url "http://git.drobilla.net/ingen.git")
2818 (file-name (string-append name "-" version "-checkout"))
2821 "1qmg79962my82c43vyrv5sxbqci9c7gc2s9bwaaqd0fcf08xcz1z"))))
2822 (build-system waf-build-system)
2824 `(#:tests? #f ; no "check" target
2825 #:configure-flags (list "--no-webkit")
2827 (modify-phases %standard-phases
2828 (add-after 'unpack 'patch-wscript
2829 (lambda* (#:key outputs #:allow-other-keys)
2830 (let ((out (assoc-ref outputs "out")))
2831 (substitute* "wscript"
2832 ;; FIXME: Our version of lv2specgen.py does not behave as
2833 ;; expected. Maybe this requires a development version of
2835 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
2836 ;; Add libraries to RUNPATH.
2837 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
2838 (string-append prefix
2839 "linkflags=[\"-Wl,-rpath="
2840 out "/lib" "\"]," line)))
2841 (substitute* '("src/wscript"
2842 "src/server/wscript")
2843 ;; Add libraries to RUNPATH.
2844 (("bld.env.PTHREAD_LINKFLAGS" line)
2846 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
2847 (substitute* "src/client/wscript"
2848 ;; Add libraries to RUNPATH.
2849 (("^(.+)target.*= 'ingen_client'," line prefix)
2850 (string-append prefix
2851 "linkflags=[\"-Wl,-rpath="
2852 out "/lib" "\"]," line)))
2853 (substitute* "src/gui/wscript"
2854 ;; Add libraries to RUNPATH.
2855 (("^(.+)target.* = 'ingen_gui.*" line prefix)
2856 (string-append prefix
2857 "linkflags=[\"-Wl,-rpath="
2858 out "/lib" "\"]," line))))
2862 ("python-rdflib" ,python-rdflib)
2867 ("raul" ,raul-devel)
2868 ("ganv" ,ganv-devel)
2873 ("gtkmm" ,gtkmm-2)))
2875 `(("pkg-config" ,pkg-config)
2876 ("python-pygments" ,python-pygments)))
2877 (home-page "http://drobilla.net/software/ingen")
2878 (synopsis "Modular audio processing system")
2879 (description "Ingen is a modular audio processing system for JACK and
2880 LV2 based systems. Ingen is built around LV2 technology and a strict
2881 separation of engine from user interface. The engine is controlled
2882 exclusively through a protocol, and can execute as a headless process, with an
2883 in-process GUI, or as an LV2 plugin. The GUI can run as a program which
2884 communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
2885 communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
2886 plugin on any system where Ingen is installed. This allows users to visually
2887 develop custom plugins for use in other applications without programming.")
2888 (license license:agpl3+))))
2890 (define-public qmidiarp
2896 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
2897 version "/qmidiarp-" version ".tar.bz2"))
2900 "1gkfv8ajgf86kbn6j5ilfc1zlz17gdi9yxzywqd6jwff4xlm75hx"))))
2901 (build-system gnu-build-system)
2904 (list "--enable-qt5"
2905 "CXXFLAGS=-std=gnu++11")))
2907 `(("qtbase" ,qtbase)
2908 ("alsa-lib" ,alsa-lib)
2913 `(("pkg-config" ,pkg-config)
2914 ("qttools" ,qttools)))
2915 (home-page "http://qmidiarp.sourceforge.net/")
2916 (synopsis "MIDI arpeggiator")
2917 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
2918 sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
2919 modules running in parallel.")
2920 (license license:gpl2+)))
2922 (define-public seq24
2928 (uri (string-append "https://launchpad.net/seq24/trunk/"
2929 version "/+download/seq24-"
2930 version ".tar.bz2"))
2933 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
2934 (patches (search-patches "seq24-rename-mutex.patch"))))
2935 (build-system gnu-build-system)
2938 (list "CXXFLAGS=-std=gnu++11")))
2940 `(("gtkmm" ,gtkmm-2)
2941 ("alsa-lib" ,alsa-lib)
2945 `(("pkg-config" ,pkg-config)))
2946 (home-page "https://edge.launchpad.net/seq24/")
2947 (synopsis "Real-time MIDI sequencer")
2948 (description "Seq24 is a real-time MIDI sequencer. It was created to
2949 provide a very simple interface for editing and playing MIDI loops.")
2950 (license license:gpl2+)))
2952 (define-public python-discogs-client
2954 (name "python-discogs-client")
2958 (uri (pypi-uri "discogs-client" version))
2961 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
2962 (build-system python-build-system)
2964 `(("python-oauthlib" ,python-oauthlib)
2965 ("python-requests" ,python-requests)))
2967 `(("python-six" ,python-six)))
2968 (home-page "https://github.com/discogs/discogs_client")
2969 (synopsis "Official Python client for the Discogs API")
2970 (description "This is the official Discogs API client for Python. It enables
2971 you to query the Discogs database for information on artists, releases, labels,
2972 users, Marketplace listings, and more. It also supports OAuth 1.0a
2973 authorization, which allows you to change user data such as profile information,
2974 collections and wantlists, inventory, and orders.")
2975 (license license:bsd-2)))
2977 (define-public python2-discogs-client
2978 (package-with-python2 python-discogs-client))
2980 (define-public libsmf
2987 ;; SF download page says development moved, but the link it points to
2988 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
2989 ;; it but made no release so far (https://github.com/stump/libsmf).
2990 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
2991 version "/libsmf-" version ".tar.gz"))
2994 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
2995 (build-system gnu-build-system)
2997 "static")) ; 88KiB of .a files
3000 (modify-phases %standard-phases
3001 (add-after 'install 'move-static-libraries
3002 (lambda* (#:key outputs #:allow-other-keys)
3003 ;; Move static libraries to the "static" output.
3004 (let* ((out (assoc-ref outputs "out"))
3005 (lib (string-append out "/lib"))
3006 (static (assoc-ref outputs "static"))
3007 (slib (string-append static "/lib")))
3009 (for-each (lambda (file)
3010 (install-file file slib)
3012 (find-files lib "\\.a$"))
3015 `(("readline" ,readline)
3018 `(("doxygen" ,doxygen)
3019 ("pkg-config" ,pkg-config)))
3020 (home-page "http://libsmf.sourceforge.net/")
3021 (synopsis "Standard MIDI File format library")
3023 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3024 conversions between time and pulses, tempo map handling and more. The only dependencies
3025 are a C compiler and glib. Full API documentation and examples are included.")
3026 (license license:bsd-2)))
3035 (uri (string-append "https://github.com/LMMS/lmms/archive/v"
3037 (file-name (string-append name "-" version ".tar.gz"))
3040 "1g76z7ha3hd53vbqaq9n1qg6s3lw8zzaw51iny6y2bz0j1xqwcsr"))))
3041 (build-system cmake-build-system)
3043 `(#:tests? #f ; no tests
3045 (modify-phases %standard-phases
3047 'configure 'set-ldflags
3048 (lambda* (#:key outputs #:allow-other-keys)
3052 (assoc-ref outputs "out") "/lib/lmms"
3054 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3057 `(("pkg-config" ,pkg-config)))
3063 ("libsamplerate" ,libsamplerate)
3064 ("fluidsynth" ,fluidsynth)
3065 ("libvorbis" ,libvorbis)
3066 ("alsa-lib" ,alsa-lib)
3067 ("portaudio" ,portaudio)
3069 ("libsndfile1" ,libsndfile)
3071 ("freetype2" ,freetype)
3073 (home-page "https://lmms.io/")
3074 (synopsis "Music composition tool")
3075 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3076 melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3077 audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3078 (license license:gpl2+)))
3080 (define-public musescore
3087 "https://github.com/musescore/MuseScore/archive/"
3088 "v" version ".tar.gz"))
3089 (file-name (string-append name "-" version ".tar.gz"))
3092 "0irwsq6ihfz3y3b943cwqy29g3si7gqbgxdscgw53vwv9vfvi085"))
3093 (modules '((guix build utils)))
3095 ;; Un-bundle OpenSSL and remove unused libraries.
3097 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3098 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3100 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3101 (("#include <openssl/.*") ""))
3102 (for-each delete-file-recursively
3103 '("thirdparty/freetype"
3104 "thirdparty/openssl"
3105 "thirdparty/portmidi"))
3107 (build-system gnu-build-system)
3110 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
3111 ;; There are tests, but no simple target to run. The command
3112 ;; used to run them is:
3114 ;; make debug && sudo make installdebug && cd \
3115 ;; build.debug/mtest && make && ctest
3117 ;; Basically, it requires to start a whole new build process.
3118 ;; So we simply skip them.
3121 (modify-phases %standard-phases
3123 (add-after 'unpack 'use-system-freetype
3125 ;; XXX: For the time being, we grossly insert the CMake
3126 ;; option needed to ignore bundled freetype. However,
3127 ;; there's a pending PR to have it as a regular make
3128 ;; option, in a future release.
3129 (substitute* "Makefile"
3130 (("cmake -DCMAKE") "cmake -DUSE_SYSTEM_FREETYPE=ON -DCMAKE"))
3133 `(("alsa-lib" ,alsa-lib)
3134 ("freetype" ,freetype)
3135 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3139 ("libsndfile" ,libsndfile)
3140 ("libvorbis" ,libvorbis)
3141 ("portaudio" ,portaudio)
3142 ("pulseaudio" ,pulseaudio)
3144 ("qtdeclarative" ,qtdeclarative)
3145 ("qtscript" ,qtscript)
3147 ("qtwebkit" ,qtwebkit)
3148 ("qtxmlpatterns" ,qtxmlpatterns)))
3151 ("pkg-config" ,pkg-config)
3152 ("qttools" ,qttools)))
3153 (synopsis "Music composition and notation software")
3154 (description "MuseScore is a music score typesetter. Its main purpose is
3155 the creation of high-quality engraved musical scores in a WYSIWYG environment.
3157 It supports unlimited staves, linked parts and part extraction, tablature,
3158 MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3159 lyrics (multiple verses), fretboard diagrams, and in general everything
3160 commonly used in sheet music. Style options and style sheets to change the
3161 appearance and layout are provided.
3163 MuseScore can also play back scores through the built-in sequencer and SoundFont
3165 (home-page "https://musescore.org")
3166 (license license:gpl2)))
3175 "mirror://sourceforge/dssi/dssi/" version
3176 "/dssi-" version ".tar.gz"))
3179 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3180 (build-system gnu-build-system)
3182 `(("alsa-lib" ,alsa-lib)
3185 ("libsamplerate" ,libsamplerate)
3186 ("libsndfile" ,libsndfile)
3189 `(("pkg-config" ,pkg-config)))
3190 (synopsis "Audio plugin API for soft synths and effects")
3191 (description "DSSI is a plugin API for software instruments with user
3192 interfaces, permitting them to be hosted in-process by audio applications.
3193 It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3194 towards familiarity with MIDI. The DSSI distribution package contains
3195 a JACK/ALSA-sequencer reference host and some plugins as well as the
3196 specification and header.")
3197 (home-page "http://dssi.sourceforge.net/")
3198 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3199 ;; The vast majority of examples are in the public domain.
3200 (license (list license:lgpl2.1+ license:gpl2+))))