1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
3 ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
4 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
5 ;;; Copyright © 2016 Al McElrath <hello@yrns.org>
6 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
8 ;;; Copyright © 2016, 2017 Kei Kebreau <kkebreau@posteo.net>
9 ;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
10 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
11 ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
12 ;;; Copyright © 2017 Rodger Fox <thylakoid@openmailbox.org>
13 ;;; Copyright © 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
14 ;;; Copyright © 2017, 2018 Pierre Langlois <pierre.langlois@gmx.com>
15 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
16 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
17 ;;; Copyright © 2018 nee <nee.git@hidamari.blue>
18 ;;; Copyright © 2018 Stefan Reichör <stefan@xsteve.at>
20 ;;; This file is part of GNU Guix.
22 ;;; GNU Guix is free software; you can redistribute it and/or modify it
23 ;;; under the terms of the GNU General Public License as published by
24 ;;; the Free Software Foundation; either version 3 of the License, or (at
25 ;;; your option) any later version.
27 ;;; GNU Guix is distributed in the hope that it will be useful, but
28 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
29 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 ;;; GNU General Public License for more details.
32 ;;; You should have received a copy of the GNU General Public License
33 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
35 (define-module (gnu packages music)
36 #:use-module (guix utils)
37 #:use-module (guix packages)
38 #:use-module (guix download)
39 #:use-module (guix git-download)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (guix build-system gnu)
42 #:use-module (guix build-system ant)
43 #:use-module (guix build-system cmake)
44 #:use-module (guix build-system python)
45 #:use-module (guix build-system scons)
46 #:use-module (guix build-system glib-or-gtk)
47 #:use-module (guix build-system waf)
48 #:use-module (gnu packages)
49 #:use-module (gnu packages algebra)
50 #:use-module (gnu packages apr)
51 #:use-module (gnu packages audio)
52 #:use-module (gnu packages autotools)
53 #:use-module (gnu packages backup)
54 #:use-module (gnu packages base) ;libbdf
55 #:use-module (gnu packages bash)
56 #:use-module (gnu packages bison)
57 #:use-module (gnu packages boost)
58 #:use-module (gnu packages cdrom)
59 #:use-module (gnu packages code)
60 #:use-module (gnu packages check)
61 #:use-module (gnu packages cmake)
62 #:use-module (gnu packages compression)
63 #:use-module (gnu packages crypto)
64 #:use-module (gnu packages curl)
65 #:use-module (gnu packages cyrus-sasl)
66 #:use-module (gnu packages databases)
67 #:use-module (gnu packages datastructures)
68 #:use-module (gnu packages docbook)
69 #:use-module (gnu packages documentation)
70 #:use-module (gnu packages emacs)
71 #:use-module (gnu packages file)
72 #:use-module (gnu packages flex)
73 #:use-module (gnu packages fltk)
74 #:use-module (gnu packages fonts)
75 #:use-module (gnu packages fontutils)
76 #:use-module (gnu packages freedesktop)
77 #:use-module (gnu packages gcc)
78 #:use-module (gnu packages gnupg)
79 #:use-module (gnu packages gettext)
80 #:use-module (gnu packages ghostscript)
81 #:use-module (gnu packages gl)
82 #:use-module (gnu packages glib)
83 #:use-module (gnu packages gnome)
84 #:use-module (gnu packages graphics)
85 #:use-module (gnu packages gstreamer)
86 #:use-module (gnu packages gtk)
87 #:use-module (gnu packages guile)
88 #:use-module (gnu packages image)
89 #:use-module (gnu packages imagemagick)
90 #:use-module (gnu packages java)
91 #:use-module (gnu packages libffi)
92 #:use-module (gnu packages libusb)
93 #:use-module (gnu packages linux) ; for alsa-utils
94 #:use-module (gnu packages lirc)
95 #:use-module (gnu packages llvm)
96 #:use-module (gnu packages man)
97 #:use-module (gnu packages mp3)
98 #:use-module (gnu packages mpd)
99 #:use-module (gnu packages ncurses)
100 #:use-module (gnu packages netpbm)
101 #:use-module (gnu packages pcre)
102 #:use-module (gnu packages pdf)
103 #:use-module (gnu packages perl)
104 #:use-module (gnu packages pkg-config)
105 #:use-module (gnu packages protobuf)
106 #:use-module (gnu packages pulseaudio) ;libsndfile
107 #:use-module (gnu packages python)
108 #:use-module (gnu packages python-web)
109 #:use-module (gnu packages qt)
110 #:use-module (gnu packages rdf)
111 #:use-module (gnu packages readline)
112 #:use-module (gnu packages rsync)
113 #:use-module (gnu packages sdl)
114 #:use-module (gnu packages tcl)
115 #:use-module (gnu packages texinfo)
116 #:use-module (gnu packages tex)
117 #:use-module (gnu packages tls)
118 #:use-module (gnu packages version-control)
119 #:use-module (gnu packages video)
120 #:use-module (gnu packages web)
121 #:use-module (gnu packages wxwidgets)
122 #:use-module (gnu packages xml)
123 #:use-module (gnu packages xorg)
124 #:use-module (gnu packages xiph)
125 #:use-module ((srfi srfi-1) #:select (last)))
127 (define-public aria-maestosa
129 (name "aria-maestosa")
133 (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/"
134 version "/AriaSrc-" version ".tar.bz2"))
137 "1cs3z6frx2ch7rm5ammx9p0rxcjrbj1vq14hvcbimpaw39rdsn3d"))))
138 (build-system scons-build-system)
140 `(#:tests? #f ;no tests
142 (list (string-append "prefix=" (assoc-ref %outputs "out")))
143 #:scons ,scons-python2
145 (modify-phases %standard-phases
147 (add-after 'unpack 'scons-propagate-environment
149 ;; By design, SCons does not, by default, propagate
150 ;; environment variables to subprocesses. See:
151 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
152 ;; Here, we modify the SConstruct file to arrange for
153 ;; environment variables to be propagated.
154 (substitute* "SConstruct"
155 (("env = Environment\\(\\)")
156 "env = Environment(ENV=os.environ)")
157 ;; Scons errors out when copying subdirectories from Resources,
158 ;; so we move them instead.
160 ;; We move the "score" and "Documentation" directories at once,
161 ;; so we have to ignore files contained therein.
162 (("if \".svn\" in file" line)
164 " or \"score/\" in file"
165 " or \"Documentation/\" in file")))
167 (add-after 'install 'fix-directory-permissions
168 (lambda* (#:key outputs #:allow-other-keys)
169 (let ((out (assoc-ref outputs "out")))
170 (chmod (string-append out "/share/Aria/Documentation") #o555)
171 (chmod (string-append out "/share/Aria/score") #o555)
174 `(("wxwidgets" ,wxwidgets)
176 ("alsa-lib" ,alsa-lib)))
178 `(("pkg-config" ,pkg-config)))
179 (home-page "http://ariamaestosa.sourceforge.net/")
180 (synopsis "MIDI sequencer and editor")
182 "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit
183 and play MIDI files with a few clicks in a user-friendly interface offering
184 score, keyboard, guitar, drum and controller views.")
185 (license license:gpl3+)))
187 ;; We don't use the latest release because it depends on Qt4. Instead we
188 ;; download the sources from the tip of the "qt5" branch.
189 (define-public clementine
190 (let ((commit "4619a4c1ab3b17b13d4b2327ad477912917eaf36")
194 (version (git-version "1.3.1" revision commit))
198 (url "https://github.com/clementine-player/Clementine.git")
200 (file-name (git-file-name name version))
203 "1hximk3q0p8nw8is5w7215xgkb7k4flnfyr0pdz9svfwvcm05w1i"))
204 (modules '((guix build utils)))
208 (delete-file-recursively
209 (string-append "3rdparty/" dir)))
211 ;; TODO: The following dependencies are still bundled:
212 ;; - "qxt": Appears to be unmaintained upstream.
214 ;; - "qtsingleapplication"
216 ;; - "qtiocompressor"
217 ;; - "gmock": The tests crash when using our googletest
218 ;; package instead of the bundled gmock.
226 "sha2" ;; Replaced by openssl.
229 (patches (search-patches "clementine-use-openssl.patch"
230 "clementine-remove-crypto++-dependency.patch"))))
231 (build-system cmake-build-system)
233 '(#:test-target "clementine_test"
235 (list ;; Requires unpackaged "projectm"
236 "-DENABLE_VISUALISATIONS=OFF"
237 ;; Otherwise it may try to download a non-free library at run-time.
238 ;; TODO In an origin snippet, remove the code that performs the
240 "-DHAVE_SPOTIFY_DOWNLOADER=FALSE"
241 "-DUSE_SYSTEM_SHA2=TRUE")
243 (modify-phases %standard-phases
244 (add-after 'install 'wrap-program
245 (lambda* (#:key inputs outputs #:allow-other-keys)
246 (let ((out (assoc-ref outputs "out"))
247 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
248 (wrap-program (string-append out "/bin/clementine")
249 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))
252 `(("gettext" ,gettext-minimal)
253 ("pkg-config" ,pkg-config)
254 ("qtlinguist" ,qttools)))
257 ("chromaprint" ,chromaprint)
261 ("gstreamer" ,gstreamer)
262 ("gst-plugins-base" ,gst-plugins-base)
264 ("libmygpo-qt" ,libmygpo-qt)
265 ;; TODO: Package libgpod.
269 ("protobuf" ,protobuf)
270 ("pulseaudio" ,pulseaudio)
272 ("qtx11extras" ,qtx11extras)
273 ("qtwebkit" ,qtwebkit)
274 ("sqlite" ,sqlite-with-fts3)
275 ("sparsehash" ,sparsehash)
277 (home-page "http://clementine-player.org")
278 (synopsis "Music player and library organizer")
279 (description "Clementine is a multiplatform music player. It is inspired
280 by Amarok 1.4, focusing on a fast and easy-to-use interface for searching and
281 playing your music.")
283 ;; clementine and qtiocompressor are under GPLv3.
285 ;; gmock is under BSD-3.
287 ;; qxt is under CPL1.0.
289 ;; qsqlite and qtsingleapplication are under LGPL2.1+.
291 ;; qocoa is under MIT and CC by-sa for the icons.
292 license:cc-by-sa3.0)))))
301 "https://github.com/" name "/" name "/archive/v"
303 (file-name (string-append name "-" version ".tar.gz"))
306 "0raixgjavkm7hxppzsc5zqbfbh2bhjcmbiplhnsxsmyj8flafyc1"))))
307 (build-system gnu-build-system)
309 `(#:tests? #f ; cmus does not include tests
311 (modify-phases %standard-phases
314 (lambda* (#:key outputs #:allow-other-keys)
315 (let ((out (assoc-ref outputs "out")))
317 ;; It's an idiosyncratic configure script that doesn't
318 ;; understand --prefix=..; it wants prefix=.. instead.
320 (system* "./configure"
321 (string-append "prefix=" out)))))))))
322 ;; TODO: cmus optionally supports the following formats, which haven't yet
323 ;; been added to Guix:
327 ;; - DISCID_LIBS, apparently different from cd-discid which is included in
328 ;; Guix. See <http://sourceforge.net/projects/discid/>
330 `(("pkg-config" ,pkg-config)))
332 `(("alsa-lib" ,alsa-lib)
338 ("libcdio-paranoia" ,libcdio-paranoia)
341 ("libmodplug" ,libmodplug)
342 ("libmpcdec" ,libmpcdec)
343 ("libsamplerate" ,libsamplerate)
344 ("libvorbis" ,libvorbis)
346 ("opusfile" ,opusfile)
347 ("pulseaudio" ,pulseaudio)
348 ("wavpack" ,wavpack)))
349 (home-page "https://cmus.github.io/")
350 (synopsis "Small console music player")
351 (description "Cmus is a small and fast console music player. It supports
352 many input formats and provides a customisable Vi-style user interface.")
353 (license license:gpl2+)))
355 (define-public denemo
361 (uri (string-append "mirror://gnu/denemo/denemo-"
365 "0hggf8c4xcrjcxd5m00r788r7jg7g8ff54w2idfaqpj5j2ix3299"))))
366 (build-system gnu-build-system)
369 (modify-phases %standard-phases
371 ;; Denemo's documentation says to use this command to run its
374 (zero? (system* "make" "-C" "tests" "check"))))
375 (add-before 'build 'set-lilypond
376 ;; This phase sets the default path for lilypond to its current
377 ;; location in the store.
378 (lambda* (#:key inputs #:allow-other-keys)
379 (let* ((lilypond (string-append (assoc-ref inputs "lilypond")
381 (substitute* "src/core/prefops.c"
382 (("g_string_new \\(\"lilypond\"\\);")
383 (string-append "g_string_new (\""
387 (add-after 'install 'correct-filename
388 ;; "graft-derivation/shallow" from the (guix grafts) module runs in
389 ;; the C locale, expecting file names to be ASCII encoded. This
390 ;; phase renames a filename with a Unicode character in it to meet
391 ;; the aforementioned condition.
392 (lambda* (#:key outputs #:allow-other-keys)
393 (let* ((out (assoc-ref outputs "out")))
394 (chdir (string-append
396 "/share/denemo/templates/instruments/woodwind"))
397 (rename-file "Clarinet in B♭.denemo"
398 "Clarinet in Bb.denemo"))
401 `(("glib:bin" ,glib "bin") ; for gtester
402 ("pkg-config" ,pkg-config)))
404 `(("alsa-lib" ,alsa-lib)
408 ("fluidsynth" ,fluidsynth)
412 ("gtksourceview" ,gtksourceview)
414 ("intltool" ,intltool)
416 ("libsndfile" ,libsndfile)
419 ("lilypond" ,lilypond)
420 ("portaudio" ,portaudio)
421 ("portmidi" ,portmidi)
422 ("rubberband" ,rubberband)))
423 (synopsis "Graphical music notation, front-end to GNU Lilypond")
425 "GNU Denemo is a music notation editor that provides a convenient
426 interface to the powerful music engraving program Lilypond. Music can be
427 typed in using the computer keyboard, played in using a MIDI keyboard, or
428 even input via a microphone connected to the sound card. The final product
429 is publication-quality music notation that is continuously generated in the
430 background while you work.")
431 (home-page "http://www.denemo.org")
432 (license license:gpl3+)))
434 (define-public hydrogen
437 (version "1.0.0-beta1")
441 (url "https://github.com/hydrogen-music/hydrogen.git")
443 (file-name (string-append name "-" version "-checkout"))
446 "0nv83l70j5bjz2wd6n3a8cq3bmgrvdvg6g2hjhc1g5h6xnbqsh9x"))))
447 (build-system cmake-build-system)
449 `(#:test-target "tests"
451 (modify-phases %standard-phases
452 (add-after 'unpack 'fix-data-directory
453 (lambda* (#:key outputs #:allow-other-keys)
454 (substitute* "CMakeLists.txt"
455 (("/usr/share/pixmaps")
456 (string-append (assoc-ref outputs "out")
460 `(("cppunit" ,cppunit)
461 ("pkg-config" ,pkg-config)))
463 `(("alsa-lib" ,alsa-lib)
465 ;; ("ladspa" ,ladspa) ; cannot find during configure
467 ("libarchive" ,libarchive)
468 ("libsndfile" ,libsndfile)
472 ("qtxmlpatterns" ,qtxmlpatterns)
474 (home-page "http://www.hydrogen-music.org")
475 (synopsis "Drum machine")
477 "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to
478 enable professional yet simple and intuitive pattern-based drum programming.")
479 (license license:gpl2+)))
481 (define-public easytag
487 (uri (string-append "mirror://gnome/sources/easytag/2.4/easytag-"
491 "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw"))))
492 (build-system glib-or-gtk-build-system)
494 `(("desktop-file-utils" ,desktop-file-utils)
496 ("intltool" ,intltool)
498 ("pkg-config" ,pkg-config)
499 ("xmllint" ,libxml2)))
504 ("libid3tag" ,libid3tag)
505 ("libvorbis" ,libvorbis)
506 ("opusfile" ,opusfile)
513 (modify-phases %standard-phases
514 (add-before 'configure 'configure-libid3tag
515 (lambda* (#:key inputs #:allow-other-keys)
516 ;; libid3tag does not provide a .pc file and EasyTAG's configure
517 ;; script healivy relies on pkg-config. Providing a temporary
518 ;; local .pc file is easier than patching the configure script.
519 (let* ((libid3tag (assoc-ref inputs "libid3tag")))
520 (mkdir-p "pkgconfig")
522 "pkgconfig/id3tag.pc"
526 libdir=${prefix}/lib~@
527 includedir=${prefix}/include~@
528 Libs: -L${libdir} -lid3tag -lz~@
529 Cflags: -I${includedir}~%"
531 (setenv "PKG_CONFIG_PATH"
532 (string-append (getenv "PKG_CONFIG_PATH")
533 ":" (getcwd) "/pkgconfig")))))
534 (add-after 'unpack 'patch-makefile
536 (substitute* "Makefile.in"
537 ;; The Makefile generates a test-desktop-file-validate.sh
538 ;; script with /bin/sh hard-coded.
539 (("/bin/sh") (which "sh"))
540 ;; Don't create 'icon-theme.cache'.
541 (("gtk-update-icon-cache") "true")))))))
542 (home-page "https://wiki.gnome.org/Apps/EasyTAG")
543 (synopsis "Simple application for viewing and editing tags in audio files")
545 "EasyTAG is an application for viewing and editing tags in audio files.
546 It supports MP3, MP2, MP4/AAC, FLAC, Ogg Opus, Ogg Speex, Ogg Vorbis,
547 MusePack, Monkey's Audio, and WavPack files.")
548 (license license:gpl2+)))
550 (define-public extempore
557 "https://github.com/digego/extempore/archive/"
561 "1wap1mvsicrhlazikf7l8zxg37fir8bmnh9rin28m1rix730vcch"))
562 (file-name (string-append name "-" version ".tar.gz"))))
563 (build-system cmake-build-system)
565 `(;; The default target also includes ahead-of-time compilation of the
566 ;; standard libraries. However, during the "install" phase this would
567 ;; happen *again* for unknown reasons. Hence we only build the
568 ;; extempore executable during the build phase.
569 #:make-flags '("extempore")
570 #:configure-flags '("-DJACK=ON"
571 ;; We want to distribute.
573 ;; Don't download any dependencies.
575 #:modules ((ice-9 match)
576 (guix build cmake-build-system)
579 (modify-phases %standard-phases
580 (add-after 'unpack 'patch-directories
581 (lambda* (#:key outputs #:allow-other-keys)
582 ;; Rewrite default path to runtime directory
583 (substitute* "src/Extempore.cpp"
584 (("runtimedir \\+= \"runtime\"")
585 (string-append "runtimedir = \""
586 (assoc-ref outputs "out")
587 "/lib/extempore/runtime\"")))
588 (substitute* "extras/extempore.el"
589 (("\\(runtime-directory \\(concat default-directory \"runtime\"\\)\\)")
590 (string-append "(runtime-directory \""
591 (assoc-ref outputs "out")
592 "/lib/extempore/runtime"
595 (add-after 'unpack 'link-with-additional-libs
597 ;; The executable must be linked with libffi and zlib.
598 (substitute* "CMakeLists.txt"
599 (("add_dependencies\\(aot_extended extended_deps\\)") "")
600 (("target_link_libraries\\(extempore PRIVATE dl" line)
601 (string-append line " ffi z")))
603 ;; FIXME: AOT compilation of the nanovg bindings fail with the error:
604 ;; "Compiler Error could not bind _nvgLinearGradient"
605 (add-after 'unpack 'disable-nanovg
607 (substitute* "CMakeLists.txt"
608 (("aotcompile_lib\\(libs/external/nanovg.xtm.*") ""))
610 ;; FIXME: All examples that are used as tests segfault for some
612 (add-after 'unpack 'disable-broken-tests
614 (substitute* "CMakeLists.txt"
615 (("extempore_add_example_as_test\\(.*") ""))
617 (add-after 'unpack 'hardcode-external-lib-paths
618 (lambda* (#:key inputs #:allow-other-keys)
619 (use-modules (ice-9 match))
622 ((file-name lib pkg-name)
623 (substitute* (string-append "libs/external/" file-name ".xtm")
624 ((lib) (string-append (assoc-ref inputs pkg-name)
626 '(("assimp" "libassimp.so" "assimp")
627 ("portmidi" "libportmidi.so" "portmidi")
628 ("sndfile" "libsndfile.so" "libsndfile")
629 ("fft" "libkiss_fft.so" "kiss-fft")
630 ("stb_image" "libstb_image.so" "stb-image")
631 ("nanovg" "libnanovg.so" "nanovg")
632 ("glext" "libGL.so" "mesa")
633 ("glfw3" "libglfw.so" "glfw")
634 ("gl/glcore-directbind" "libGL.so" "mesa")
635 ("gl/glcompat-directbind" "libGL.so" "mesa")))
637 (add-after 'unpack 'use-own-llvm
638 (lambda* (#:key inputs #:allow-other-keys)
639 (setenv "EXT_LLVM_DIR" (assoc-ref inputs "llvm"))
640 ;; Our LLVM builds shared libraries, so Extempore should use
642 (substitute* "CMakeLists.txt"
643 (("CMAKE_STATIC_LIBRARY") "CMAKE_SHARED_LIBRARY"))
645 (add-after 'unpack 'fix-aot-compilation
646 (lambda* (#:key outputs #:allow-other-keys)
647 (substitute* "CMakeLists.txt"
648 ;; EXT_SHARE_DIR does not exist before installation, so the
649 ;; working directory should be the source directory instead.
650 (("WORKING_DIRECTORY \\$\\{EXT_SHARE_DIR\\}")
651 "WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}")
652 ;; Extempore needs to be told where the runtime is to be found.
653 ;; While we're at it we disable automatic tuning for a specific
654 ;; CPU to make binary substitution possible.
655 (("COMMAND extempore" prefix)
656 (string-append prefix " --sharedir " (getcwd)
657 " --mcpu=generic --attr=none")))
660 `(("llvm" ,llvm-for-extempore)
663 ("libsndfile" ,libsndfile)
666 ("stb-image" ,stb-image-for-extempore)
667 ("kiss-fft" ,kiss-fft-for-extempore)
668 ("nanovg" ,nanovg-for-extempore)
669 ("portmidi" ,portmidi-for-extempore)
671 ("alsa-lib" ,alsa-lib)
672 ("portaudio" ,portaudio)
678 ("emacs" ,emacs-no-x)))
679 ;; Extempore refuses to build on architectures other than x86_64
680 (supported-systems '("x86_64-linux"))
681 (home-page "http://digego.github.io/extempore/")
682 (synopsis "Programming environment for live coding of multimedia")
684 "Extempore is a programming language and runtime environment designed
685 with live programming in mind. It supports interactive programming in a REPL
686 style, compiling and binding code just-in-time. Although Extempore has its
687 roots in 'live coding' of audiovisual media art, it is suitable for any task
688 domain where dynamic run-time modifiability and good numerical performance are
689 required. Extempore also has strong timing and concurrency semantics, which
690 are helpful when working in problem spaces where timing is important (such as
692 (license license:bsd-2)))
700 (uri (string-append "http://das.nasophon.de/download/klick-"
704 "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j"))))
705 (build-system scons-build-system)
707 `(#:scons-flags (list (string-append "PREFIX=" %output))
708 #:tests? #f)) ;no "check" target
712 ("libsndfile" ,libsndfile)
713 ("libsamplerate" ,libsamplerate)
715 ("rubberband" ,rubberband)))
717 `(("pkg-config" ,pkg-config)))
718 (home-page "http://das.nasophon.de/klick/")
719 (synopsis "Metronome for JACK")
721 "klick is an advanced command-line based metronome for JACK. It allows
722 you to define complex tempo maps for entire songs or performances.")
723 (license license:gpl2+)))
725 (define-public gtklick
731 (uri (string-append "http://das.nasophon.de/download/gtklick-"
735 "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp"))))
736 (build-system python-build-system)
738 `(#:tests? #f ; no tests
741 (modify-phases %standard-phases
742 (add-before 'build 'add-sitedirs
743 ;; .pth files are not automatically interpreted unless the
744 ;; directories containing them are added as "sites". The directories
745 ;; are then added to those in the PYTHONPATH. This is required for
746 ;; the operation of pygtk.
748 (substitute* "gtklick/gtklick.py"
750 "import pygtk, site, sys
751 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))))
752 (add-after 'unpack 'inject-store-path-to-klick
753 (lambda* (#:key inputs #:allow-other-keys)
754 (substitute* "gtklick/klick_backend.py"
755 (("KLICK_PATH = 'klick'")
756 (string-append "KLICK_PATH = '"
757 (assoc-ref inputs "klick")
762 ("python2-pyliblo" ,python2-pyliblo)
763 ("python2-pygtk" ,python2-pygtk)))
765 `(("gettext" ,gettext-minimal)))
766 (home-page "http://das.nasophon.de/gtklick/")
767 (synopsis "Simple metronome with an easy-to-use graphical interface")
769 "Gtklick is a simple metronome with an easy-to-use graphical user
770 interface. It is implemented as a frontend to @code{klick}.")
771 (license license:gpl2+)))
773 (define-public libgme
779 (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/"
780 "downloads/game-music-emu-" version
784 "08fk7zddpn7v93d0fa7fcypx7hvgwx9b5psj9l6m8b87k2hbw4fw"))))
785 (build-system cmake-build-system)
787 '(#:tests? #f)) ; no check target
788 (home-page "https://bitbucket.org/mpyne/game-music-emu")
789 (synopsis "Video game music file playback library")
791 "Game-music-emu is a collection of video game music file emulators that
792 support the following formats and systems:
795 ZX Spectrum/Asmtrad CPC
799 Sega Genesis/Mega Drive
801 NEC TurboGrafx-16/PC Engine
803 MSX Home Computer/other Z80 systems (doesn't support FM sound)
805 Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
807 Atari systems using POKEY sound chip
809 Super Nintendo/Super Famicom
811 Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
813 (license (list license:lgpl2.1+
814 ;; demo and player directories are under the Expat license
817 (define-public lilypond
824 "http://download.linuxaudio.org/lilypond/sources/v"
825 (version-major+minor version) "/"
826 name "-" version ".tar.gz"))
829 "0lql4q946gna2pl1g409mmmsvn2qvnq2z5cihrkfhk7plcqdny9n"))))
830 (build-system gnu-build-system)
832 `(#:tests? #f ; out-test/collated-files.html fails
834 #:make-flags '("conf=www") ;to generate images for info manuals
836 (list "CONFIGURATION=www"
837 (string-append "--with-texgyre-dir="
838 (assoc-ref %build-inputs "font-tex-gyre")
839 "/share/fonts/opentype/"))
841 (modify-phases %standard-phases
842 (add-after 'unpack 'use-texlive-union
844 ;; FIXME: fonts are not found and have to be generated in HOME.
845 (setenv "HOME" "/tmp")
846 ;; The test for the "lh" package fails, even though it is among
848 (substitute* "configure"
849 (("TEX_FIKPARM=.*") "TEX_FIKPARM=found\n"))
851 (add-after 'unpack 'fix-path-references
853 (substitute* "scm/backend-library.scm"
854 (("\\(search-executable '\\(\"gs\"\\)\\)")
855 (string-append "\"" (which "gs") "\""))
857 (string-append "\"" (which "sh") "\"")))
859 (add-before 'configure 'prepare-configuration
861 (substitute* "configure"
862 (("SHELL=/bin/sh") "SHELL=sh")
863 ;; When checking the fontforge version do not consider the
864 ;; version string that's part of the directory.
865 (("head -n") "tail -n")
866 ;; Also allow for SOURCE_DATE_EPOCH = 0 in fontforge.
867 (("20110222") "19700101"))
869 (setenv "conf" "www")
871 (add-after 'install 'install-info
873 (zero? (system* "make"
874 "-j" (number->string (parallel-job-count))
875 "conf=www" "install-info")))))))
877 `(("guile" ,guile-1.8)
878 ("font-dejavu" ,font-dejavu)
879 ("font-tex-gyre" ,font-tex-gyre)
880 ("fontconfig" ,fontconfig)
881 ("freetype" ,freetype)
882 ("ghostscript" ,ghostscript)
884 ("python" ,python-2)))
889 ("fontforge" ,fontforge)
891 ("gettext" ,gettext-minimal)
892 ("imagemagick" ,imagemagick)
893 ("netpbm" ,netpbm) ;for pngtopnm
894 ("texlive" ,(texlive-union (list texlive-metapost
897 texlive-latex-cyrillic)))
899 ("texi2html" ,texi2html)
901 ("pkg-config" ,pkg-config)
903 (home-page "http://www.lilypond.org/")
904 (synopsis "Music typesetting")
906 "GNU LilyPond is a music typesetter, which produces high-quality sheet
907 music. Music is input in a text file containing control sequences which are
908 interpreted by LilyPond to produce the final document. It is extendable with
910 (license license:gpl3+)
912 ;; On armhf and mips64el, building the documentation sometimes leads to
913 ;; more than an hour of silence, so double the max silent time.
914 (properties `((max-silent-time . 7200)))))
916 (define-public non-sequencer
917 ;; The latest tagged release is three years old and uses a custom build
918 ;; system, so we take the last commit.
919 (let ((commit "10c31e57291b6e42be53371567a722b62b32d220")
922 (name "non-sequencer")
923 (version (string-append "1.9.5-" revision "." (string-take commit 7)))
927 (url "git://git.tuxfamily.org/gitroot/non/non.git")
931 "080rha4ffp7qycyg1mqcf4vj0s7z8qfvz6bxm0w29xgg2kkmb3fx"))
932 (file-name (string-append name "-" version "-checkout"))))
933 (build-system waf-build-system)
935 `(#:tests? #f ;no "check" target
937 (list "--project=sequencer"
938 ;; Disable the use of SSE unless on x86_64.
939 ,@(if (not (string-prefix? "x86_64" (or (%current-target-system)
944 (modify-phases %standard-phases
946 'configure 'set-flags
948 ;; Compile with C++11, required by libsigc++.
949 (setenv "CXXFLAGS" "-std=c++11")
954 ("libsigc++" ,libsigc++)
958 `(("pkg-config" ,pkg-config)))
959 (home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer")
960 (synopsis "Pattern-based MIDI sequencer")
962 "The Non Sequencer is a powerful, lightweight, real-time,
963 pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for
964 MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non
965 Sequencer happens on-line, in real-time. Music can be composed live, while the
966 transport is rolling.")
967 (license license:gpl2+))))
969 (define-public non-session-manager
970 (package (inherit non-sequencer)
971 (name "non-session-manager")
973 (substitute-keyword-arguments (package-arguments non-sequencer)
974 ((#:configure-flags flags)
975 `(cons "--project=session-manager"
976 (delete "--project=sequencer" ,flags)))))
982 `(("pkg-config" ,pkg-config)))
983 (home-page "http://non.tuxfamily.org/nsm/")
984 (synopsis "Audio session management")
986 "The Non Session Manager is an API and an implementation for audio
987 session management. NSM clients use a well-specified OSC protocol to
988 communicate with the session management daemon.")
989 (license license:gpl2+)))
991 (define-public non-mixer
992 (package (inherit non-sequencer)
995 (substitute-keyword-arguments (package-arguments non-sequencer)
996 ((#:configure-flags flags)
997 `(cons "--project=mixer"
998 (delete "--project=sequencer" ,flags)))))
1006 `(("pkg-config" ,pkg-config)))
1007 (home-page "http://non.tuxfamily.org/wiki/Non%20Mixer")
1008 (synopsis "Modular digital audio mixer")
1010 "The Non Mixer is a powerful, reliable and fast modular digital audio
1011 mixer. It utilizes JACK for inter-application audio I/O and the NTK GUI
1012 toolkit for a fast and lightweight user interface. Non Mixer can be used
1013 alone or in concert with Non Timeline and Non Sequencer to form a complete
1015 (license license:gpl2+)))
1017 (define-public non-timeline
1018 (package (inherit non-sequencer)
1019 (name "non-timeline")
1021 (substitute-keyword-arguments (package-arguments non-sequencer)
1022 ((#:configure-flags flags)
1023 `(cons "--project=timeline"
1024 (delete "--project=sequencer" ,flags)))))
1028 ("libsndfile" ,libsndfile)
1031 `(("pkg-config" ,pkg-config)))
1032 (home-page "http://non.tuxfamily.org/wiki/Non%20Timeline")
1033 (synopsis "Modular digital audio timeline arranger")
1035 "The Non Timeline is a powerful, reliable and fast modular digital audio
1036 timeline arranger. It utilizes JACK for inter-application audio I/O and the
1037 NTK GUI toolkit for a fast and lightweight user interface. Non Timeline can
1038 be used alone or in concert with Non Mixer and Non Sequencer to form a
1040 (license license:gpl2+)))
1042 (define-public solfege
1049 "mirror://gnu/solfege/solfege-"
1053 "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i"))))
1054 (build-system gnu-build-system)
1056 `(#:tests? #f ; xmllint attempts to download DTD
1057 #:test-target "test"
1059 (modify-phases %standard-phases
1060 (add-after 'unpack 'fix-configuration
1061 (lambda* (#:key inputs #:allow-other-keys)
1062 (substitute* "default.config"
1063 (("/usr/bin/aplay") "aplay")
1064 (("/usr/bin/timidity") "timidity")
1065 (("/usr/bin/mpg123") "mpg123")
1066 (("/usr/bin/ogg123") "ogg123"))
1068 (add-before 'build 'patch-python-shebangs
1070 ;; Two python scripts begin with a Unicode BOM, so patch-shebang
1072 (substitute* '("solfege/parsetree.py"
1073 "solfege/presetup.py")
1074 (("#!/usr/bin/python") (string-append "#!" (which "python"))))
1076 (add-before 'build 'add-sitedirs
1077 ;; .pth files are not automatically interpreted unless the
1078 ;; directories containing them are added as "sites". The directories
1079 ;; are then added to those in the PYTHONPATH. This is required for
1080 ;; the operation of pygtk and pygobject.
1082 (substitute* "run-solfege.py"
1085 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))
1087 (add-before 'build 'adjust-config-file-prefix
1088 (lambda* (#:key outputs #:allow-other-keys)
1089 (substitute* "run-solfege.py"
1090 (("prefix = os.path.*$")
1091 (string-append "prefix = " (assoc-ref outputs "out"))))
1093 (add-after 'install 'wrap-program
1094 (lambda* (#:key inputs outputs #:allow-other-keys)
1095 ;; Make sure 'solfege' runs with the correct PYTHONPATH.
1096 (let* ((out (assoc-ref outputs "out"))
1097 (path (getenv "PYTHONPATH")))
1098 (wrap-program (string-append out "/bin/solfege")
1099 `("PYTHONPATH" ":" prefix (,path))))
1102 `(("python" ,python-2)
1103 ("pygtk" ,python2-pygtk)
1104 ("gettext" ,gettext-minimal)
1106 ("lilypond" ,lilypond)))
1108 `(("pkg-config" ,pkg-config)
1109 ("txt2man" ,txt2man)
1110 ("libxml2" ,libxml2) ; for tests
1111 ("ghostscript" ,ghostscript)
1112 ("texinfo" ,texinfo)))
1113 (home-page "https://www.gnu.org/software/solfege/")
1114 (synopsis "Ear training")
1116 "GNU Solfege is a program for practicing musical ear-training. With it,
1117 you can practice your recognition of various musical intervals and chords. It
1118 features a statistics overview so you can monitor your progress across several
1119 sessions. Solfege is also designed to be extensible so you can easily write
1121 (license license:gpl3+)))
1123 (define-public powertabeditor
1125 (name "powertabeditor")
1126 (version "2.0.0-alpha10")
1130 "https://github.com/powertab/powertabeditor/archive/"
1132 (file-name (string-append name "-" version ".tar.gz"))
1135 "1fr14ql0yhlqvh6y08yaanszm2nvca5i50rqym396kfvga3ky18x"))
1136 (modules '((guix build utils)))
1139 ;; Remove bundled sources for external libraries
1140 (delete-file-recursively "external")
1141 ;; Use only system libraries
1142 (substitute* "CMakeLists.txt"
1143 (("include\\( PTE_ThirdParty \\)")
1145 include(third_party/Qt)
1146 include(third_party/boost)
1147 add_library( Catch INTERFACE IMPORTED )
1148 add_library( rapidjson INTERFACE IMPORTED )"))
1150 (build-system cmake-build-system)
1152 `(#:modules ((guix build cmake-build-system)
1156 ;; CMake appears to lose the RUNPATH for some reason, so it has to be
1157 ;; explicitly set with CMAKE_INSTALL_RPATH.
1158 (list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
1159 (string-append "-DCMAKE_INSTALL_RPATH="
1160 (string-join (map (match-lambda
1162 (string-append directory "/lib")))
1163 %build-inputs) ";"))
1164 "-DPTE_DATA_DIR=share/powertabeditor")
1166 (modify-phases %standard-phases
1169 (zero? (system* "bin/pte_tests"
1170 ;; FIXME: these tests fail
1171 "exclude:Actions/EditStaff"
1172 "exclude:Formats/PowerTabOldImport/MergeMultiBarRests"
1173 "exclude:Score/ViewFilter/FilterRule"
1174 "exclude:Score/ViewFilter/ViewFilter"
1175 "exclude:Formats/PowerTabOldImport/Directions"
1177 ;; FIXME: This bug has been fixed upstream, but no release has been
1178 ;; made yet. See https://github.com/powertab/powertabeditor/issues/257
1179 (add-after 'unpack 'fix-boost-bug
1181 (substitute* "source/score/voiceutils.cpp"
1182 (("boost::rational<int> duration\\(4, pos.getDurationType\\(\\)\\);")
1183 "boost::rational<int> duration(4, static_cast<int>(pos.getDurationType()));"))
1185 (add-before 'configure 'remove-third-party-libs
1186 (lambda* (#:key inputs #:allow-other-keys)
1187 ;; Link with required static libraries, because we're not
1188 ;; using the bundled version of withershins.
1189 ;; Also add pthread for fixing a linker error.
1190 (substitute* "source/build/CMakeLists.txt"
1191 (("withershins" line)
1192 (string-append line "\n"
1193 (assoc-ref inputs "binutils")
1195 (assoc-ref inputs "libiberty")
1196 "/lib/libiberty.a\n"
1203 ("alsa-lib" ,alsa-lib)
1205 ("withershins" ,withershins)
1206 ("libiberty" ,libiberty) ;for withershins
1207 ("binutils" ,binutils) ;for -lbfd and -liberty (for withershins)
1208 ("timidity" ,timidity++)
1209 ("pugixml" ,pugixml)
1211 ("rapidjson" ,rapidjson)
1214 `(("catch" ,catch-framework)
1215 ("pkg-config" ,pkg-config)))
1216 (home-page "http://powertabs.net")
1217 (synopsis "Guitar tablature editor")
1219 "Power Tab Editor 2.0 is the successor to the famous original Power Tab
1220 Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
1221 (license license:gpl3+)))
1223 (define-public jalv-select
1225 (name "jalv-select")
1229 (uri (string-append "https://github.com/brummer10/jalv_select/"
1230 "archive/V" version ".tar.gz"))
1233 "0zraagwr681b5s3qifxf399c7q93jz23c8sr42gmff9zqnvxc75q"))))
1234 (build-system gnu-build-system)
1237 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1239 (modify-phases %standard-phases
1241 (add-after 'unpack 'ignore-PATH
1242 (lambda* (#:key inputs #:allow-other-keys)
1243 (substitute* "jalv.select.cpp"
1244 (("echo \\$PATH.*tr ':'.*xargs ls")
1245 (string-append "ls -1 " (assoc-ref inputs "jalv") "/bin")))
1246 (substitute* "jalv.select.h"
1247 (("gtkmm.h") "gtkmm-2.4/gtkmm.h"))
1253 ("gtkmm" ,gtkmm-2)))
1255 `(("pkg-config" ,pkg-config)))
1256 (home-page "https://github.com/brummer10/jalv_select")
1257 (synopsis "GUI to select LV2 plugins and run them with jalv")
1259 "The jalv.select package provides a graphical user interface allowing
1260 users to select LV2 plugins and run them with jalv.")
1261 (license license:public-domain)))
1263 (define-public synthv1
1270 (string-append "mirror://sourceforge/synthv1/synthv1/" version
1271 "/synthv1-" version ".tar.gz"))
1274 "1skynjg6ip0qfbqqkybfjh6xcwxagq89ghl08f7sp7j0sz5qdcwp"))))
1275 (build-system gnu-build-system)
1277 `(#:tests? #f ; There are no tests.
1279 '("CXXFLAGS=-std=gnu++11")))
1283 ("alsa-lib" ,alsa-lib)
1284 ("non-session-manager" ,non-session-manager)
1287 ("qttools" ,qttools)))
1289 `(("pkg-config" ,pkg-config)))
1290 (home-page "http://synthv1.sourceforge.net")
1291 (synopsis "Polyphonic subtractive synthesizer")
1293 "Synthv1 is an old-school subtractive polyphonic synthesizer with four
1294 oscillators and stereo effects.")
1295 (license license:gpl2+)))
1297 (define-public drumkv1
1304 (string-append "mirror://sourceforge/drumkv1/drumkv1/" version
1305 "/drumkv1-" version ".tar.gz"))
1308 "1vm8lrk3lykdic6fyfpl12jx1xg6rcaid242s8sij30p1ix4zdab"))))
1309 (build-system gnu-build-system)
1311 `(#:tests? #f ; There are no tests.
1313 '("CXXFLAGS=-std=gnu++11")))
1317 ("libsndfile" ,libsndfile)
1318 ("alsa-lib" ,alsa-lib)
1319 ("non-session-manager" ,non-session-manager)
1321 ("qtbase" ,qtbase)))
1323 `(("pkg-config" ,pkg-config)
1324 ("qttools" ,qttools)))
1325 (home-page "http://drumkv1.sourceforge.net")
1326 (synopsis "Drum-kit sampler synthesizer with stereo effects")
1328 "Drumkv1 is an old-school drum-kit sampler synthesizer with stereo
1330 (license license:gpl2+)))
1332 (define-public samplv1
1339 (string-append "mirror://sourceforge/samplv1/samplv1/" version
1340 "/samplv1-" version ".tar.gz"))
1343 "0g67vm9ilmq5nlvk0f3abia9pbinr4ck5v4mll6igni1rxz2n7wk"))))
1344 (build-system gnu-build-system)
1346 `(#:tests? #f ; There are no tests.
1348 '("CXXFLAGS=-std=gnu++11")))
1352 ("libsndfile" ,libsndfile)
1353 ("alsa-lib" ,alsa-lib)
1354 ("non-session-manager" ,non-session-manager)
1356 ("qtbase" ,qtbase)))
1358 `(("pkg-config" ,pkg-config)
1359 ("qttools" ,qttools)))
1360 (home-page "http://samplv1.sourceforge.net")
1361 (synopsis "Polyphonic sampler synthesizer with stereo effects")
1363 "Samplv1 is an old-school polyphonic sampler synthesizer with stereo
1365 (license license:gpl2+)))
1367 (define-public padthv1
1374 (string-append "mirror://sourceforge/padthv1/padthv1/" version
1375 "/padthv1-" version ".tar.gz"))
1378 "0c519qk2g0dk8gqf9ywqfp7dnr4b25lsnxxbf2l1spnnvf8nysvh"))))
1379 (build-system gnu-build-system)
1381 `(#:tests? #f ; There are no tests.
1383 '("CXXFLAGS=-std=gnu++11")))
1387 ("alsa-lib" ,alsa-lib)
1388 ("non-session-manager" ,non-session-manager)
1391 ("qtbase" ,qtbase)))
1393 `(("pkg-config" ,pkg-config)
1394 ("qttools" ,qttools)))
1395 (home-page "http://padthv1.sourceforge.net")
1396 (synopsis "Polyphonic additive synthesizer")
1398 "Padthv1 is an old-school polyphonic additive synthesizer with stereo
1399 effects. Padthv1 is based on the PADsynth algorithm by Paul Nasca, as a
1400 special variant of additive synthesis.")
1401 (license license:gpl2+)))
1403 (define-public amsynth
1410 (uri (string-append "https://github.com/amsynth/amsynth/releases/"
1411 "download/release-" version
1412 "/amsynth-" version ".tar.bz2"))
1415 "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
1416 (build-system gnu-build-system)
1419 (modify-phases %standard-phases
1420 (add-before 'configure 'set-flags
1422 ;; Compile with C++11, required by gtkmm.
1423 (setenv "CXXFLAGS" "-std=c++11")
1426 `(("alsa-lib" ,alsa-lib)
1430 ("libsndfile" ,libsndfile)
1432 ("gtkmm" ,gtkmm-2)))
1434 `(("pkg-config" ,pkg-config)
1435 ("intltool" ,intltool)))
1436 (home-page "http://amsynth.github.io")
1437 (synopsis "Analog modeling synthesizer")
1439 "amsynth is an easy-to-use software synthesizer with a classic
1440 subtractive synthesizer topology. Its features include: dual
1441 oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct
1442 resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato
1443 keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO
1444 which can modulate the oscillators, filter, and amplitude; distortion and
1446 (license license:gpl2+)))
1448 (define-public setbfree
1455 (string-append "https://github.com/pantherb/setBfree/archive/v"
1457 (file-name (string-append name "-" version ".tar.gz"))
1460 "0qfccny0hh9lq54272mzmxvfz2jmzcgigjkjwn6v9h6n00gi5bw4"))))
1461 (build-system gnu-build-system)
1463 `(#:tests? #f ; no "check" target
1465 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1466 (string-append "FONTFILE="
1467 (assoc-ref %build-inputs "font-bitstream-vera")
1468 "/share/fonts/truetype/VeraBd.ttf")
1469 ;; Disable unsupported optimization flags on non-x86
1470 ,@(let ((system (or (%current-target-system)
1471 (%current-system))))
1472 (if (or (string-prefix? "x86_64" system)
1473 (string-prefix? "i686" system))
1475 '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
1477 (modify-phases %standard-phases
1478 (add-before 'build 'set-CC-variable
1479 (lambda _ (setenv "CC" "gcc") #t))
1480 (delete 'configure))))
1484 ("zita-convolver" ,zita-convolver)
1487 ("font-bitstream-vera" ,font-bitstream-vera)))
1489 `(("help2man" ,help2man)
1490 ("pkg-config" ,pkg-config)))
1491 (home-page "http://setbfree.org")
1492 (synopsis "Tonewheel organ")
1494 "setBfree is a MIDI-controlled, software synthesizer designed to imitate
1495 the sound and properties of the electromechanical organs and sound
1496 modification devices that brought world-wide fame to the names and products of
1497 Laurens Hammond and Don Leslie.")
1498 (license license:gpl2+)))
1500 (define-public beast
1506 (uri (string-append "https://testbit.eu/pub/dists/beast/beast-"
1510 "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn"))))
1511 (build-system gnu-build-system)
1513 '(#:parallel-build? #f)) ; Race conditions cause build failures
1515 `(("rapicorn" ,rapicorn)
1516 ("guile" ,guile-1.8)
1517 ("python" ,python-2)
1518 ("libgnomecanvas" ,libgnomecanvas)
1522 ("alsa-lib" ,alsa-lib)
1523 ("libvorbis" ,libvorbis)
1524 ("gettext" ,gettext-minimal)))
1526 `(("pkg-config" ,pkg-config)
1527 ("glib:bin" ,glib "bin")
1528 ("cython" ,python2-cython)
1530 ("perl-xml-parser" ,perl-xml-parser)))
1531 (home-page "https://testbit.eu/wiki/Beast_Home")
1532 (synopsis "Music composition and modular synthesis environment")
1534 "Beast is a music composition and modular synthesis application. It
1535 supports a wide range of standards in the field, such as MIDI, various audio
1536 file formats and LADSPA modules. It allows for multitrack editing, real-time
1537 synthesis, 32bit audio rendering, precise timing down to sample granularity,
1538 on-demand and partial loading of wave files, on the fly decoding, stereo
1539 mixing, FFT scopes, MIDI automation and full scriptability in Scheme.")
1540 (license license:gpl3+)))
1542 (define-public bristol
1548 (uri (string-append "mirror://sourceforge/bristol/bristol/"
1549 (version-major+minor version)
1550 "/bristol-" version ".tar.gz"))
1553 "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
1554 (build-system gnu-build-system)
1557 (modify-phases %standard-phases
1558 (add-after 'unpack 'remove-sse-flags
1559 (lambda* (#:key system #:allow-other-keys)
1560 (when (not (or (string-prefix? "x86_64" system)
1561 (string-prefix? "i686" system)))
1562 (substitute* "bristol/Makefile.in"
1563 (("-msse -mfpmath=sse") "")))
1565 ;; alsa-lib 1.1.x no longer provides iatomic.h. That's okay because
1566 ;; bristol actually doesn't use it.
1567 (add-after 'unpack 'do-not-use-alsa-iatomic
1569 (substitute* "libbristolaudio/audioEngineJack.c"
1570 (("#include <alsa/iatomic.h>") ""))
1572 ;; We know that Bristol has been linked with JACK and we don't have
1573 ;; ldd, so we can just skip this check.
1574 (add-after 'unpack 'do-not-grep-for-jack
1576 (substitute* "bin/startBristol.in"
1577 (("ldd `which bristol` | grep jack") "echo guix"))
1580 `(("alsa-lib" ,alsa-lib)
1583 ("libx11" ,libx11)))
1585 `(("pkg-config" ,pkg-config)))
1586 (home-page "http://bristol.sourceforge.net/")
1587 (synopsis "Synthesizer emulator")
1589 "Bristol is an emulation package for a number of different 'classic'
1590 synthesizers including additive and subtractive and a few organs. The
1591 application consists of the engine, which is called bristol, and its own GUI
1592 library called brighton that represents all the emulations. There are
1593 currently more than twenty different emulations; each does sound different
1594 although the author maintains that the quality and accuracy of each emulation
1596 (license license:gpl3+)))
1598 (define-public tuxguitar
1605 "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-"
1606 version "/tuxguitar-" version "-src.tar.gz"))
1609 "1yd5wv17sh6i8pkndxayfd6r2k1ccgnc4w3nda3lpniv8cpjzz3k"))
1610 (modules '((guix build utils)))
1613 ;; Delete pre-built classes
1614 (delete-file-recursively "TuxGuitar-android-gdrive/bin")
1615 (delete-file-recursively "TuxGuitar-android-gdrive-gdaa/bin")
1617 (build-system ant-build-system)
1619 `(#:build-target "build"
1621 #:tests? #f ; no tests
1623 (modify-phases %standard-phases
1624 (add-after 'unpack 'enter-dir
1625 (lambda _ (chdir "TuxGuitar-lib") #t))
1626 (add-after 'build 'build-libraries
1627 (lambda* (#:key inputs outputs #:allow-other-keys)
1628 (let* ((initial-classpath (getenv "CLASSPATH"))
1629 (build-dir (lambda (dir)
1632 (string-join (cons initial-classpath
1633 (find-files (getcwd) "\\.jar$"))
1636 (if (file-exists? "build.xml")
1637 ((assoc-ref %standard-phases 'build)
1638 #:build-target "build")
1640 ;; Generate default build.xml
1641 ((@@ (guix build ant-build-system) default-build.xml)
1642 (string-append (string-downcase dir) ".jar")
1643 (string-append (assoc-ref outputs "out")
1645 ((assoc-ref %standard-phases 'build)))))))
1646 (map build-dir '("TuxGuitar-editor-utils"
1647 "TuxGuitar-ui-toolkit"
1648 "TuxGuitar-ui-toolkit-swt"
1649 "TuxGuitar-awt-graphics")))))
1650 (add-after 'build-libraries 'build-application
1652 (chdir "../TuxGuitar")
1653 ((assoc-ref %standard-phases 'build)
1654 #:build-target "build")))
1656 (lambda* (#:key inputs outputs #:allow-other-keys)
1657 (let* ((out (assoc-ref outputs "out"))
1658 (bin (string-append out "/bin"))
1659 (share (string-append out "/share"))
1660 (lib (string-append share "/java"))
1661 (swt (assoc-ref inputs "java-swt")))
1664 (for-each (lambda (file)
1665 (install-file file lib))
1666 (find-files ".." "\\.jar$"))
1668 ;; install all resources
1669 (copy-recursively "share" share)
1672 (call-with-output-file (string-append bin "/tuxguitar")
1674 (let ((classpath (string-join (append (find-files lib "\\.jar$")
1675 (find-files swt "\\.jar$"))
1679 (string-append "#!/bin/sh\n"
1682 " -Dtuxguitar.home.path=" out
1683 " -Dtuxguitar.share.path=" out "/share"
1684 " -Dswt.library.path=" swt "/lib"
1685 " org.herac.tuxguitar.app.TGMainSingleton"
1686 " \"$1\" \"$2\"")))))
1687 (chmod (string-append bin "/tuxguitar") #o555)
1690 `(("java-swt" ,java-swt)))
1691 (home-page "http://tuxguitar.com.ar/")
1692 (synopsis "Multitrack tablature editor and player")
1694 "TuxGuitar is a guitar tablature editor with player support through midi.
1695 It can display scores and multitrack tabs. TuxGuitar provides various
1696 additional features, including autoscrolling while playing, note duration
1697 management, bend/slide/vibrato/hammer-on/pull-off effects, support for
1698 tuplets, time signature management, tempo management, gp3/gp4/gp5 import and
1700 (license license:lgpl2.1+)))
1709 (string-append "http://msp.ucsd.edu/Software/pd-"
1710 version ".src.tar.gz"))
1713 "0k5s949kqd7yw97h3m8z81bjz32bis9m4ih8df1z0ymipnafca67"))))
1714 (build-system gnu-build-system)
1716 `(#:tests? #f ; no "check" target
1718 (modify-phases %standard-phases
1719 (add-before 'configure 'fix-wish-path
1721 (substitute* "src/s_inter.c"
1722 ((" wish ") (string-append " " (which "wish8.6") " ")))
1723 (substitute* "tcl/pd-gui.tcl"
1724 (("exec wish ") (string-append "exec " (which "wish8.6") " ")))
1726 (add-after 'unpack 'autoconf
1727 (lambda _ (zero? (system* "bash" "./autogen.sh")))))))
1729 `(("autoconf" ,autoconf)
1730 ("automake" ,automake)
1731 ("libtool" ,libtool)
1732 ("gettext" ,gettext-minimal)
1733 ("pkg-config" ,pkg-config)))
1736 ("alsa-lib" ,alsa-lib)
1738 (home-page "http://puredata.info")
1739 (synopsis "Visual programming language for artistic performances")
1741 "Pure Data (aka Pd) is a visual programming language. Pd enables
1742 musicians, visual artists, performers, researchers, and developers to create
1743 software graphically, without writing lines of code. Pd is used to process
1744 and generate sound, video, 2D/3D graphics, and interface sensors, input
1745 devices, and MIDI. Pd can easily work over local and remote networks to
1746 integrate wearable technology, motor systems, lighting rigs, and other
1747 equipment. Pd is suitable for learning basic multimedia processing and visual
1748 programming methods as well as for realizing complex systems for large-scale
1750 (license license:bsd-3)))
1752 (define-public portmidi
1758 (uri (string-append "mirror://sourceforge/portmedia/portmidi/"
1759 version "/portmidi-src-" version ".zip"))
1762 "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88"))
1763 (patches (list (search-patch "portmidi-modular-build.patch")))))
1764 (build-system cmake-build-system)
1766 `(#:tests? #f ; tests cannot be linked
1767 #:build-type "Release" ; needed to have PMALSA set
1769 (list "-DPORTMIDI_ENABLE_JAVA=Off"
1770 "-DPORTMIDI_ENABLE_TEST=Off") ; tests fail linking
1772 (modify-phases %standard-phases
1773 ;; Some packages, e.g., MuseScore, expect "libporttime.so" instead of
1774 ;; "libportmidi.so". Distributions get away with it by creating an
1775 ;; appropriate symlink.
1776 (add-after 'install 'add-porttime
1777 (lambda* (#:key outputs #:allow-other-keys)
1778 (let* ((out (assoc-ref outputs "out"))
1779 (lib (string-append out "/lib")))
1780 (with-directory-excursion lib
1781 (symlink "libportmidi.so" "libporttime.so")))
1784 `(("alsa-lib" ,alsa-lib)))
1786 `(("unzip" ,unzip)))
1787 (home-page "http://portmedia.sourceforge.net/portmidi/")
1788 (synopsis "Library for MIDI I/O")
1790 "PortMidi is a library supporting real-time input and output of MIDI data
1791 using a system-independent interface.")
1792 (license license:expat)))
1794 (define-public portmidi-for-extempore
1795 (package (inherit portmidi)
1796 (name "portmidi-for-extempore")
1800 (uri (string-append "https://github.com/extemporelang/portmidi/"
1801 "archive/" version ".tar.gz"))
1802 (file-name (string-append name "-" version ".tar.gz"))
1805 "0gjikwciyr8kk4y3qiv1pcq58xpgw38ql1m2gs6g0qc1s8sx4235"))))
1806 (build-system cmake-build-system)
1807 (arguments `(#:tests? #f)) ; no tests
1809 ;; Extempore refuses to build on architectures other than x86_64
1810 (supported-systems '("x86_64-linux"))
1811 (home-page "https://github.com/extemporelang/portmidi/")))
1813 (define-public python-pyportmidi
1815 (name "python-pyportmidi")
1816 (version (package-version portmidi))
1817 (source (package-source portmidi))
1818 (build-system python-build-system)
1820 `(#:tests? #f ; no tests included
1822 (modify-phases %standard-phases
1823 (add-after 'unpack 'enter-dir
1824 (lambda _ (chdir "pm_python") #t))
1825 (add-after 'enter-dir 'fix-setup.py
1827 (substitute* "setup.py"
1828 ;; Use Python 3 syntax
1829 (("print (\".*\")" _ text)
1830 (string-append "print(" text ")\n"))
1831 ;; TODO.txt and CHANGES.txt don't exist
1832 (("CHANGES =.*") "CHANGES = \"\"\n")
1833 (("TODO =.*") "TODO = \"\"\n"))
1836 `(("portmidi" ,portmidi)
1837 ("alsa-lib" ,alsa-lib)))
1839 `(("python-cython" ,python-cython)
1841 (home-page "http://portmedia.sourceforge.net/portmidi/")
1842 (synopsis "Python bindings to PortMidi")
1844 "This package provides Python bindings to the PortMidi library.")
1845 (license license:expat)))
1847 (define-public frescobaldi
1849 (name "frescobaldi")
1854 "https://github.com/wbsoft/frescobaldi/releases/download/v"
1855 version "/frescobaldi-" version ".tar.gz"))
1858 "15cqhbjbjikr7ljgiq56bz2gxrr38j8p0f78p2vhyzydaviy9a2z"))))
1859 (build-system python-build-system)
1860 (arguments `(#:tests? #f)) ; no tests included
1862 `(("lilypond" ,lilypond)
1863 ("portmidi" ,portmidi)
1864 ("python-pyqt" ,python-pyqt)
1865 ("python-ly" ,python-ly)
1866 ("python-pyportmidi" ,python-pyportmidi)
1867 ("poppler" ,poppler)
1868 ("python-poppler-qt5" ,python-poppler-qt5)
1869 ("python-sip" ,python-sip)))
1870 (home-page "http://www.frescobaldi.org/")
1871 (synopsis "LilyPond sheet music text editor")
1873 "Frescobaldi is a LilyPond sheet music text editor with syntax
1874 highlighting and automatic completion. Among other things, it can render
1875 scores next to the source, can capture input from MIDI or read MusicXML and
1876 ABC files, has a MIDI player for proof-listening, and includes a documentation
1878 (license license:gpl2+)))
1880 (define-public drumstick
1886 (uri (string-append "mirror://sourceforge/drumstick/"
1887 version "/drumstick-" version ".tar.bz2"))
1890 "0avwxr6n9ra7narxc5lmkhdqi8ix10gmif8rpd06wp4g9iv46xrn"))))
1891 (build-system cmake-build-system)
1893 `(#:tests? #f ; no test target
1894 #:configure-flags '("-DLIB_SUFFIX=")
1896 (modify-phases %standard-phases
1897 (add-before 'configure 'fix-docbook
1898 (lambda* (#:key inputs #:allow-other-keys)
1899 (substitute* "cmake_admin/CreateManpages.cmake"
1900 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1901 (string-append (assoc-ref inputs "docbook-xsl")
1902 "/xml/xsl/docbook-xsl-"
1903 ,(package-version docbook-xsl)
1904 "/manpages/docbook.xsl")))
1907 `(("qtbase" ,qtbase)
1909 ("alsa-lib" ,alsa-lib)))
1911 `(("pkg-config" ,pkg-config)
1912 ("libxslt" ,libxslt) ; for xsltproc
1913 ("docbook-xsl" ,docbook-xsl)
1914 ("doxygen" ,doxygen)))
1915 (home-page "http://drumstick.sourceforge.net/")
1916 (synopsis "C++ MIDI library")
1918 "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It
1919 includes a C++ wrapper around the ALSA library sequencer interface. A
1920 complementary library provides classes for processing SMF (Standard MIDI
1921 files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A
1922 multiplatform realtime MIDI I/O library is also provided with various output
1923 backends, including ALSA, OSS, Network and FluidSynth.")
1924 (license license:gpl2+)))
1926 (define-public zynaddsubfx
1928 (name "zynaddsubfx")
1933 "mirror://sourceforge/zynaddsubfx/zynaddsubfx/"
1934 version "/zynaddsubfx-" version ".tar.bz2"))
1937 "1hfpiqdm337gl4ynkmmp2qss2m5z8mzqzjrbiyg6w1v4js7l9phi"))))
1938 (build-system cmake-build-system)
1941 (modify-phases %standard-phases
1942 ;; Move SSE compiler optimization flags from generic target to
1943 ;; athlon64 and core2 targets, because otherwise the build would fail
1944 ;; on non-Intel machines.
1945 (add-after 'unpack 'remove-sse-flags-from-generic-target
1947 (substitute* "src/CMakeLists.txt"
1948 (("-msse -msse2 -mfpmath=sse") "")
1949 (("-march=(athlon64|core2)" flag)
1950 (string-append flag " -msse -msse2 -mfpmath=sse")))
1956 ("alsa-lib" ,alsa-lib)
1959 ("minixml" ,minixml)
1963 `(("pkg-config" ,pkg-config)))
1964 (home-page "http://zynaddsubfx.sf.net/")
1965 (synopsis "Software synthesizer")
1967 "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
1968 three synthesizer engines, multitimbral and polyphonic synths, microtonal
1969 capabilities, custom envelopes, effects, etc.")
1970 (license license:gpl2)))
1972 (define-public yoshimi
1978 (uri (string-append "mirror://sourceforge/yoshimi/"
1979 (version-major+minor version)
1980 "/yoshimi-" version ".tar.bz2"))
1983 "0gwsr5srzy28hwqhfzrc8pswysmyra8kbww3bxfx8bq4mdjifdj6"))))
1984 (build-system cmake-build-system)
1986 `(#:tests? #f ; there are no tests
1988 (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR="
1989 (assoc-ref %outputs "out") "/share"))
1991 (modify-phases %standard-phases
1992 (add-before 'configure 'enter-dir
1993 (lambda _ (chdir "src") #t))
1994 ;; Move SSE compiler optimization flags from generic target to
1995 ;; athlon64 and core2 targets, because otherwise the build would fail
1996 ;; on non-Intel machines.
1997 (add-after 'unpack 'remove-sse-flags-from-generic-target
1999 (substitute* "src/CMakeLists.txt"
2000 (("-msse -msse2 -mfpmath=sse") "")
2001 (("-march=(athlon64|core2)" flag)
2002 (string-append flag " -msse -msse2 -mfpmath=sse")))
2007 ("alsa-lib" ,alsa-lib)
2009 ("fontconfig" ,fontconfig)
2010 ("minixml" ,minixml)
2014 ("readline" ,readline)
2015 ("ncurses" ,ncurses)
2019 `(("pkg-config" ,pkg-config)))
2020 (home-page "http://yoshimi.sourceforge.net/")
2021 (synopsis "Multi-paradigm software synthesizer")
2023 "Yoshimi is a fork of ZynAddSubFX, a feature-heavy real-time software
2024 synthesizer. It offers three synthesizer engines, multitimbral and polyphonic
2025 synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi
2026 improves on support for JACK features, such as JACK MIDI.")
2027 (license license:gpl2)))
2029 (define-public libgig
2035 (uri (string-append "http://download.linuxsampler.org/packages/"
2036 "libgig-" version ".tar.bz2"))
2039 "1wr8mwjmqpnyz6bx9757lspiii1zzn8zfbqsvn2ipzpgqkxv6kaz"))))
2040 (build-system gnu-build-system)
2042 `(("libuuid" ,util-linux)
2043 ("libsndfile" ,libsndfile)))
2045 `(("pkg-config" ,pkg-config)))
2046 (home-page "http://linuxsampler.org/libgig/")
2047 (synopsis "C++ library for working with Gigasampler (.gig) files")
2049 "Libgig is a C++ library for loading, modifying existing and creating new
2050 Gigasampler (.gig) files and DLS (Downloadable Sounds) Level 1/2 files, KORG
2051 sample based instruments (.KSF and .KMP files), SoundFont v2 (.sf2) files and
2052 AKAI sampler data. The package includes a couple of command line tools based
2054 ;; The library and tools are released under the GPL, except the AKAI
2055 ;; classes which are released under the LGPL.
2056 (license (list license:gpl2+ license:lgpl2.1+))))
2058 (define-public jack-keyboard
2060 (name "jack-keyboard")
2065 (uri (string-append "mirror://sourceforge/jack-keyboard/jack-keyboard/"
2066 version "/jack-keyboard-" version ".tar.gz"))
2069 "0mzmg8aavybcfdlq2yd9d0vscqd6is5p6jzrgfpfm5j3xdcvh2s3"))))
2070 (build-system gnu-build-system)
2076 `(("pkg-config" ,pkg-config)))
2077 (home-page "http://jack-keyboard.sourceforge.net/")
2078 (synopsis "Virtual MIDI keyboard")
2079 (description "Jack-keyboard is a virtual MIDI keyboard, a program that
2080 allows you to send JACK MIDI events (i.e. play) using your PC keyboard.")
2081 (license license:bsd-2)))
2083 (define-public jack-capture
2085 (name "jack-capture")
2090 (url "https://github.com/kmatheussen/jack_capture.git")
2092 (file-name (string-append name "-" version "-checkout"))
2095 "0jcqky96q8xgya6wqv1p8pj9fkf2wh7ynl67ah7x5bn3basgfclf"))))
2096 (build-system gnu-build-system)
2099 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2100 #:tests? #f ; there are none
2102 (modify-phases %standard-phases
2103 (delete 'configure))))
2105 `(("pkg-config" ,pkg-config)
2113 ("libsndfile" ,libsndfile)))
2114 (home-page "https://github.com/kmatheussen/jack_capture")
2115 (synopsis "Program for recording sound files with JACK")
2116 (description "This is a program for recording sound files with JACK. It
2117 can connect to any JACK port and record the output into a stereo WAV file.")
2118 (license license:gpl2+)))
2120 (define-public cursynth
2127 (uri (string-append "mirror://gnu/cursynth/cursynth-"
2130 (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v"))
2131 (patches (search-patches "cursynth-wave-rand.patch"))))
2132 (build-system gnu-build-system)
2133 (native-inputs `(("pkg-config" ,pkg-config)))
2134 ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently
2135 ;; prevents us from using pulseaudio
2136 (inputs `(("ncurses" ,ncurses)
2137 ("alsa" ,alsa-lib)))
2138 (home-page "https://www.gnu.org/software/cursynth/")
2139 (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses")
2140 (description "GNU cursynth is a polyphonic synthesizer that runs
2141 graphically in the terminal. It is built on a full-featured subtractive
2142 synthesis engine. Notes and parameter changes may be entered via MIDI or the
2143 computer's keyboard.")
2144 (license license:gpl3+)))
2146 (define-public aj-snapshot
2148 (name "aj-snapshot")
2152 (uri (string-append "mirror://sourceforge/aj-snapshot/"
2153 "aj-snapshot-" version ".tar.bz2"))
2156 "0wilky1g2mb88v2z0520s7sw1dsn10iwanc8id5p6z1xsnhg7b6p"))))
2157 (build-system gnu-build-system)
2159 `(("minixml" ,minixml)
2161 ("alsa-lib" ,alsa-lib)))
2163 `(("pkg-config" ,pkg-config)))
2164 (home-page "http://aj-snapshot.sourceforge.net/")
2165 (synopsis "Snapshot connections between ALSA and JACK clients")
2166 (description "Aj-snapshot is a small program that can be used to make
2167 snapshots of the connections made between JACK and/or ALSA clients. Because
2168 JACK can provide both audio and MIDI support to programs, aj-snapshot can
2169 store both types of connections for JACK. ALSA, on the other hand, only
2170 provides routing facilities for MIDI clients. Aj-snapshot is meant to be used
2171 from the command line.")
2172 (license license:gpl3+)))
2174 (define-public qtractor
2180 (uri (string-append "http://downloads.sourceforge.net/qtractor/"
2181 "qtractor-" version ".tar.gz"))
2184 "07csbqr7q4m1j0pqg89kn7jdw0snd5lwna5rha0986s4plq4z1qb"))))
2185 (build-system gnu-build-system)
2187 `(#:tests? #f ; no "check" target
2189 (modify-phases %standard-phases
2190 (add-after 'unpack 'fix-build-with-qt-5.11
2192 (substitute* "src/qtractorMeter.h"
2193 (("#include <QFrame>" m)
2194 (string-append "#include <QAction>\n" m)))
2195 (substitute* "src/qtractorTrackButton.h"
2196 (("#include <QPushButton>" m)
2197 (string-append "#include <QAction>\n" m)))
2201 ("qtx11extras" ,qtx11extras)
2202 ("alsa-lib" ,alsa-lib)
2204 ("libsndfile" ,libsndfile)
2209 ("libsamplerate" ,libsamplerate)
2210 ("libvorbis" ,libvorbis)
2212 ("rubberband" ,rubberband)
2216 `(("pkg-config" ,pkg-config)
2217 ("qttools" ,qttools)))
2218 (home-page "http://qtractor.org/")
2219 (synopsis "Audio/MIDI multi-track sequencer")
2221 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
2222 JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
2223 follows a traditional multi-track tape recorder control paradigm.")
2224 (license license:gpl2+)))
2226 (define-public ams-lv2
2233 (uri (string-append "https://github.com/blablack/ams-lv2/"
2234 "archive/" version ".tar.gz"))
2235 (file-name (string-append name "-" version ".tar.gz"))
2238 "1xacxyzqcj83g9c1gwfn36gg1c6yi15v7km4vidfidrjzb4x27fq"))))
2239 (build-system waf-build-system)
2242 (modify-phases %standard-phases
2243 (add-after 'unpack 'remove-sse-flags
2244 (lambda* (#:key system #:allow-other-keys)
2245 (when (not (or (string-prefix? "x86_64" system)
2246 (string-prefix? "i686" system)))
2247 (substitute* "wscript"
2248 (("'-msse', '-mfpmath=sse', ") ""))
2250 #:tests? #f)) ; no tests
2259 `(("pkg-config" ,pkg-config)))
2260 (home-page "https://objectivewave.wordpress.com/ams-lv2/")
2261 (synopsis "Port of Alsa Modular Synth internal modules into LV2")
2262 (description "This set of LV2 plugins is a port of the internal modules
2263 found in Alsa Modular Synth. These plugins are used to create modular
2264 synthesizers and contain: VCO, VCF, VCA, LFO, slew limiter, envelopes, sample
2266 (license license:gpl2)))
2268 (define-public gxtuner
2274 (uri (string-append "https://github.com/brummer10/gxtuner/"
2275 "archive/v" version ".tar.gz"))
2276 (file-name (string-append name "-" version ".tar.gz"))
2279 "1hn5qjac7qd00v0sp7ijhhc3sb26ks9bni06nngivva21h61xrjr"))))
2280 (build-system gnu-build-system)
2283 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2284 (string-append "INCLUDE_L_DIR="
2285 (assoc-ref %build-inputs "zita-resampler")
2288 (modify-phases %standard-phases
2289 (delete 'configure))))
2295 ("zita-resampler" ,zita-resampler)))
2297 `(("pkg-config" ,pkg-config)))
2298 (home-page "https://github.com/brummer10/gxtuner")
2299 (synopsis "Guitar tuner")
2300 (description "GXtuner is a simple guitar tuner for JACK with an
2301 analogue-like user interface.")
2302 (license license:gpl2+)))
2304 (define-public mod-host
2305 ;; The last release was in 2014 but since then hundreds of commits have
2307 (let ((commit "1726ad06b11323da7e1aaed690ff8aef91f702b5")
2311 (version (string-append "0.10.6-" revision "." (string-take commit 9)))
2315 (url "https://github.com/moddevices/mod-host")
2319 "1nrd37c35w6z6ldczgrwmmd9hx1n3zyvcjcgb3mi4cygqdanvspv"))
2320 (file-name (string-append name "-" version "-checkout"))))
2321 (build-system gnu-build-system)
2323 `(#:tests? #f ; no tests included
2325 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2328 (modify-phases %standard-phases
2330 (add-after 'unpack 'fix-jack-installation-directory
2332 ;; Do not attempt to install files to output of "jack" package.
2333 (substitute* "Makefile"
2334 (("\\$\\(shell pkg-config --variable=libdir jack\\)")
2343 ("readline" ,readline)))
2345 `(("pkg-config" ,pkg-config)
2346 ("python" ,python-2)))
2347 (home-page "https://github.com/moddevices/mod-host")
2348 (synopsis "LV2 host for Jack controllable via socket or command line")
2349 (description "mod-host is an LV2 plugin host for JACK, controllable via
2350 socket or command line.")
2351 (license license:gpl3+))))
2353 (define-public curseradio
2354 (let ((commit "1bd4bd0faeec675e0647bac9a100b526cba19f8d")
2358 (version (git-version "0" revision commit))
2362 (url "https://github.com/chronitis/curseradio.git")
2364 (file-name (git-file-name name version))
2367 "11bf0jnj8h2fxhpdp498189r4s6b47vy4wripv0z4nx7lxajl88i"))))
2368 (build-system python-build-system)
2370 `(("python-lxml" ,python-lxml)
2371 ("python-requests" ,python-requests)
2372 ("python-pyxdg" ,python-pyxdg)
2374 (home-page "https://github.com/chronitis/curseradio")
2375 (synopsis "Command-line Internet radio player")
2376 (description "Curseradio is a Curses-based radio player that uses a
2377 tune-in sender list from @url{http://opml.radiotime.com}.")
2378 (license license:expat))))
2380 (define-public pianobar
2383 (version "2016.06.02")
2386 (uri (string-append "https://github.com/PromyLOPh/"
2387 name "/archive/" version ".tar.gz"))
2388 (file-name (string-append name "-" version ".tar.gz"))
2391 "1hi5rr6jcr0kwf4xfz007ndwkjkp287lhwlsgfz6iryqa5n6jzcp"))))
2392 (build-system gnu-build-system)
2394 `(#:tests? #f ; no tests
2395 #:make-flags (list "CC=gcc" "CFLAGS=-std=c99"
2396 (string-append "PREFIX=" %output))
2397 #:phases (modify-phases %standard-phases
2398 (delete 'configure))))
2402 ("libgcrypt" ,libgcrypt)
2404 ("ffmpeg" ,ffmpeg-3.4)))
2406 `(("pkg-config" ,pkg-config)))
2407 (home-page "http://6xq.net/projects/pianobar/")
2408 (synopsis "Console-based pandora.com player")
2409 (description "pianobar is a console-based music player for the
2410 personalized online radio pandora.com. It has configurable keys for playing
2411 and managing stations, can be controlled remotely via fifo, and can run
2412 event-based scripts for scrobbling, notifications, etc.")
2413 (license license:expat)))
2415 (define-public python-mutagen
2417 (name "python-mutagen")
2421 (uri (pypi-uri "mutagen" version))
2424 "0rl7sxn1rcjl48fwga3dqf9f6pzspsny4ngxyf6pp337mrq0z693"))))
2425 (build-system python-build-system)
2427 `(("python-pytest" ,python-pytest)))
2428 (home-page "https://bitbucket.org/lazka/mutagen")
2429 (synopsis "Read and write audio tags")
2430 (description "Mutagen is a Python module to handle audio metadata. It
2431 supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
2432 Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
2433 of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
2434 Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
2435 APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
2436 streams on an individual packet/page level.")
2437 (license license:gpl2))) ; "later version" never mentioned
2439 (define-public python2-mutagen
2440 (package-with-python2 python-mutagen))
2442 (define-public python-musicbrainzngs
2444 (name "python-musicbrainzngs")
2448 (uri (pypi-uri "musicbrainzngs" version))
2451 "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8"))))
2452 (build-system python-build-system)
2454 '(;; The tests fail suffer from race conditions:
2455 ;; https://github.com/alastair/python-musicbrainzngs/issues/211
2457 (home-page "https://python-musicbrainzngs.readthedocs.org/")
2458 (synopsis "Python bindings for MusicBrainz NGS webservice")
2459 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
2460 web service. This library can be used to retrieve music metadata from the
2461 MusicBrainz database.")
2462 ;; 'musicbrainzngs/compat.py' is ISC licensed.
2463 (license (list license:bsd-2 license:isc))))
2465 (define-public python2-musicbrainzngs
2466 (package-with-python2 python-musicbrainzngs))
2468 (define-public python2-pyechonest
2470 (name "python2-pyechonest")
2474 (uri (pypi-uri "pyechonest" version))
2477 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
2478 (build-system python-build-system)
2480 `(;; Python 3 is not supported:
2481 ;; https://github.com/echonest/pyechonest/issues/42
2482 #:python ,python-2))
2483 (home-page "https://github.com/echonest/pyechonest")
2484 (synopsis "Python interface to The Echo Nest APIs")
2485 (description "Pyechonest is a Python library for the Echo Nest API. With
2486 Pyechonest you have Python access to the entire set of API methods including:
2489 @item artist - search for artists by name, description, or attribute, and get
2490 back detailed information about any artist including audio, similar artists,
2491 blogs, familiarity, hotttnesss, news, reviews, urls and video.
2492 @item song - search songs by artist, title, description, or attribute (tempo,
2493 duration, etc) and get detailed information back about each song, such as
2494 hotttnesss, audio_summary, or tracks.
2495 @item track - upload a track to the Echo Nest and receive summary information
2496 about the track including key, duration, mode, tempo, time signature along with
2497 detailed track info including timbre, pitch, rhythm and loudness information.
2499 (license license:bsd-3)))
2501 (define-public python-pylast
2503 (name "python-pylast")
2507 (uri (pypi-uri "pylast" version))
2510 "0r9h7g8i8l2mgqjwkda3v6prfbkb2im5kap1az9ppmhjm9i4jkcf"))))
2511 (build-system python-build-system)
2512 ;; Tests require network access. See
2513 ;; https://github.com/pylast/pylast/issues/105
2514 (arguments '(#:tests? #f))
2516 `(("python-coverage" ,python-coverage)
2517 ("python-pycodestyle" ,python-pycodestyle)
2518 ("python-mock" ,python-mock)
2519 ("python-pep8" ,python-pep8)
2520 ("python-pytest" ,python-pytest)
2521 ("python-flaky" ,python-flaky)
2522 ("python-pyflakes" ,python-pyflakes)
2523 ("python-pyyaml" ,python-pyyaml)))
2525 `(("python-six" ,python-six)))
2526 (home-page "https://github.com/pylast/pylast")
2527 (synopsis "Python interface to Last.fm and Libre.fm")
2528 (description "A Python interface to Last.fm and other API-compatible
2529 websites such as Libre.fm.")
2530 (license license:asl2.0)))
2532 (define-public python2-pylast
2533 (package-with-python2 python-pylast))
2535 (define-public instantmusic
2536 (let ((commit "300891d09c703525215fa5a116b9294af1c923c8")
2539 (name "instantmusic")
2540 (version (git-version "1.0" revision commit))
2544 (url "https://github.com/yask123/Instant-Music-Downloader.git")
2546 (file-name (git-file-name name version))
2549 "0j7qivaa04bpdz3anmgci5833dgiyfqqwq9fdrpl9m68b34gl773"))))
2550 (build-system python-build-system)
2552 `(("python-requests" ,python-requests)
2554 ("python-beautifulsoup4" ,python-beautifulsoup4)
2555 ("youtube-dl" ,youtube-dl)))
2557 '(#:modules ((guix build python-build-system)
2560 #:phases (modify-phases %standard-phases
2561 (add-before 'build 'change-directory
2563 (chdir "instantmusic-0.1") #t))
2564 (add-before 'check 'fix-file-permissions
2566 ;; Fix some read-only files that would cause a build failure
2567 (for-each (cut chmod <> #o644)
2568 (find-files "instantmusic.egg-info"
2569 "PKG-INFO|.*\\.txt"))
2571 (home-page "http://iyask.me/Instant-Music-Downloader/")
2572 (synopsis "Command-line program to download a song from YouTube")
2573 (description "InstantMusic downloads a song from YouTube in MP3 format.
2574 Songs can be searched by artist, name or even by a part of the song text.")
2575 (license license:expat))))
2577 (define-public beets
2583 (uri (pypi-uri "beets" version))
2586 "0l2vfrknwcsm6bn83m7476qrz45qwgxcb5k0h7kn96kr70irn1v2"))))
2587 (build-system python-build-system)
2590 (modify-phases %standard-phases
2591 (add-after 'unpack 'set-HOME
2593 (setenv "HOME" (string-append (getcwd) "/tmp"))
2597 (invoke "nosetests" "-v"))))))
2599 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2600 ("python-flask" ,python-flask)
2601 ("python-mock" ,python-mock)
2602 ("python-mpd2" ,python-mpd2)
2603 ("python-nose" ,python-nose)
2604 ("python-pathlib" ,python-pathlib)
2605 ("python-pyxdg" ,python-pyxdg)
2606 ("python-pylast" ,python-pylast)
2607 ("python-rarfile" ,python-rarfile)
2608 ("python-responses" ,python-responses)))
2609 ;; TODO: Install optional plugins and dependencies.
2611 `(("python-discogs-client" ,python-discogs-client)
2612 ("python-jellyfish" ,python-jellyfish)
2613 ("python-munkres" ,python-munkres)
2614 ("python-musicbrainzngs" ,python-musicbrainzngs)
2615 ("python-mutagen" ,python-mutagen)
2616 ("python-pyyaml" ,python-pyyaml)
2617 ("python-unidecode" ,python-unidecode)))
2618 (home-page "http://beets.io")
2619 (synopsis "Music organizer")
2620 (description "The purpose of beets is to get your music collection right
2621 once and for all. It catalogs your collection, automatically improving its
2622 metadata as it goes using the MusicBrainz database. Then it provides a variety
2623 of tools for manipulating and accessing your music.")
2624 (license license:expat)))
2626 (define-public milkytracker
2628 (name "milkytracker")
2632 (uri (string-append "https://github.com/milkytracker/"
2633 "MilkyTracker/archive/v"
2635 (file-name (string-append name "-" version ".tar.gz"))
2638 "1dvnddsnn9c83lz4dlm0cfjpc0m524amfkbalxbswdy0qc8cj1wv"))
2639 (modules '((guix build utils)))
2640 ;; Remove non-FSDG compliant sample songs.
2643 (delete-file-recursively "resources/music")
2644 (substitute* "CMakeLists.txt"
2645 (("add_subdirectory\\(resources/music\\)") ""))))))
2646 (build-system cmake-build-system)
2648 '(#:tests? #f ; no check target
2649 ;; This flag ensures that MilkyTracker links with the JACK library.
2650 #:configure-flags '("-DCMAKE_CXX_FLAGS=-ljack")))
2652 `(("alsa-lib" ,alsa-lib)
2657 `(("pkg-config" ,pkg-config)))
2658 (synopsis "Music tracker for working with .MOD/.XM module files")
2659 (description "MilkyTracker is a music application for creating .MOD and .XM
2660 module files. It attempts to recreate the module replay and user experience of
2661 the popular DOS program Fasttracker II, with special playback modes available
2662 for improved Amiga ProTracker 2/3 compatibility.")
2663 (home-page "http://milkytracker.titandemo.org/")
2664 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2665 (license (list license:bsd-3 license:gpl3+))))
2667 (define-public schismtracker
2669 (name "schismtracker")
2670 (version "20170910")
2674 "https://github.com/" name "/" name "/archive/"
2676 (file-name (string-append name "-" version ".tar.gz"))
2679 "01gfcjngbpv87y9w5jln8k313hycpkb1d617hdy2cdw2hxqzlclz"))
2680 (modules '((guix build utils)))
2682 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2683 `(substitute* "schism/version.c"
2684 (("Schism Tracker built %s %s.*$")
2685 (string-append "Schism Tracker version " ,version "\");"))))))
2686 (build-system gnu-build-system)
2689 (modify-phases %standard-phases
2690 (add-after 'unpack 'autoconf
2691 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
2692 (add-before 'configure 'link-libm
2693 (lambda _ (setenv "LIBS" "-lm") #t)))))
2695 `(("autoconf" ,autoconf)
2696 ("automake" ,automake)
2697 ("python" ,python)))
2699 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2701 ("libxext" ,libxext)
2703 (home-page "http://schismtracker.org")
2704 (synopsis "Oldschool sample-based music composition tool")
2706 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2707 create high quality music without the requirements of specialized, expensive
2708 equipment, and with a unique \"finger feel\" that is difficult to replicate in
2709 part. The player is based on a highly modified version of the ModPlug engine,
2710 with a number of bugfixes and changes to improve IT playback.")
2711 (license license:gpl2+)))
2713 (define-public sooperlooper
2715 (name "sooperlooper")
2719 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2723 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2724 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2725 (build-system gnu-build-system)
2727 `(#:make-flags (list "CXXFLAGS=-std=gnu++11")
2729 (modify-phases %standard-phases
2730 (add-after 'unpack 'add-sigc++-includes
2731 (lambda* (#:key inputs #:allow-other-keys)
2732 (let ((sig (assoc-ref inputs "libsigc++"))
2733 (xml (assoc-ref inputs "libxml2"))
2736 (string-append sig "/include/sigc++-2.0:"
2737 sig "/lib/sigc++-2.0/include:"
2738 xml "/include/libxml2/:"
2740 cwd "/libs/midi++")))
2741 (substitute* '("src/control_osc.hpp"
2742 "src/gui/app_frame.hpp"
2743 "src/gui/config_panel.hpp"
2744 "src/gui/keys_panel.hpp"
2745 "src/gui/latency_panel.hpp"
2746 "src/gui/main_panel.hpp"
2747 "src/gui/midi_bind_panel.hpp"
2748 "src/gui/prefs_dialog.hpp")
2749 (("sigc\\+\\+/object.h")
2751 (substitute* '("src/engine.cpp"
2752 "src/gui/latency_panel.cpp"
2753 "src/gui/looper_panel.cpp"
2754 "src/gui/main_panel.cpp")
2755 (("(\\(| )bind " _ pre)
2756 (string-append pre "sigc::bind ")))
2758 (add-after 'unpack 'fix-xpm-warnings
2760 (substitute* (find-files "." "\\.xpm$")
2761 (("static char") "static const char"))
2765 ("alsa-lib" ,alsa-lib)
2766 ("wxwidgets" ,wxwidgets-gtk2)
2767 ("libsndfile" ,libsndfile)
2768 ("libsamplerate" ,libsamplerate)
2770 ("rubberband" ,rubberband)
2771 ("libxml2" ,libxml2)
2772 ("libsigc++" ,libsigc++)
2773 ("ncurses" ,ncurses)))
2775 `(("pkg-config" ,pkg-config)))
2776 (home-page "http://essej.net/sooperlooper/")
2777 (synopsis "Live looping sampler")
2779 "SooperLooper is a live looping sampler capable of immediate loop
2780 recording, overdubbing, multiplying, reversing and more. It allows for
2781 multiple simultaneous multi-channel loops limited only by your computer's
2783 (license license:gpl2+)))
2791 (uri (string-append "http://ftp.daper.net/pub/soft/"
2793 name "-" version ".tar.bz2"))
2796 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))))
2797 (build-system gnu-build-system)
2799 `(("alsa-lib" ,alsa-lib)
2802 ("ffmpeg" ,ffmpeg-3.4)
2805 ("libid3tag" ,libid3tag)
2806 ("libltdl" ,libltdl)
2807 ("libmodplug" ,libmodplug)
2808 ("libmpcdec" ,libmpcdec)
2811 ("libvorbis" ,libvorbis)
2812 ("ncurses" ,ncurses)
2813 ("openssl" ,openssl)
2814 ("sasl" ,cyrus-sasl)
2817 ("wavpack" ,wavpack)
2820 `(("pkg-config" ,pkg-config)))
2821 (synopsis "Console audio player designed to be powerful and easy to use")
2823 "Music on Console is a console audio player that supports many file
2824 formats, including most audio formats recognized by FFMpeg.")
2825 (home-page "http://moc.daper.net")
2826 (license license:gpl2+)))
2828 (define-public midicsv
2834 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
2835 name "-" version ".tar.gz"))
2838 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
2839 (build-system gnu-build-system)
2841 `(#:phases (modify-phases %standard-phases (delete 'configure))
2842 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
2843 (synopsis "Convert MIDI files to and from CSV")
2845 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
2846 value file (CSV), which preserves all the information in the MIDI file. The
2847 ASCII CSV file may be loaded into a spreadsheet or database application, or
2848 processed by a program to transform the MIDI data (for example, to key
2849 transpose a composition or extract a track from a multi-track sequence). A
2850 CSV file in the format created by midicsv may be converted back into a
2851 standard MIDI file with the csvmidi program.")
2852 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
2853 (license license:public-domain)))
2855 (define-public gx-guvnor-lv2
2857 (name "gx-guvnor-lv2")
2862 (url "https://github.com/brummer10/GxGuvnor.lv2.git")
2863 (commit (string-append "v" version))))
2864 (file-name (string-append name "-" version "-checkout"))
2867 "1wa5070j40p7f0b3kr259pzm99xb6cf2badr2capayjvgayd6gnm"))))
2868 (build-system gnu-build-system)
2870 `(;; The check target is used only to output a warning.
2873 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
2875 (modify-phases %standard-phases
2878 (substitute* "Makefile"
2879 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
2880 (("install : all") "install :"))
2884 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
2885 (synopsis "Overdrive/distortion pedal simulation")
2886 (description "This package provides the LV2 plugin \"GxGuvnor\", a
2887 simulation of an overdrive or distortion pedal for guitars.")
2888 ;; The LICENSE file says GPLv3 but the license headers in the files say
2889 ;; GPLv2 or later. The whole project is released under GPLv3 or later
2890 ;; according to https://github.com/brummer10/GxGuvnor.lv2/issues/1
2891 (license license:gpl3+)))
2893 (define-public gx-vbass-preamp-lv2
2894 (let ((commit "eb999b0ca0ef4da40a59e458a9ab6e7042b96c99")
2896 (package (inherit gx-guvnor-lv2)
2897 (name "gx-vbass-preamp-lv2")
2898 (version (string-append "0-" revision "." (string-take commit 9)))
2902 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
2906 "0firap073ldw4nrykkd7jvyyj0jbl1nslxyzjj4kswazp99x7d9h"))
2907 (file-name (string-append name "-" version "-checkout"))))
2912 `(("pkg-config" ,pkg-config)))
2913 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
2914 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
2915 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
2916 pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
2919 (define-public gx-overdriver-lv2
2920 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
2922 (package (inherit gx-guvnor-lv2)
2923 (name "gx-overdriver-lv2")
2924 (version (string-append "0-" revision "." (string-take commit 9)))
2928 (url "https://github.com/brummer10/GxOverDriver.lv2")
2932 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
2933 (file-name (string-append name "-" version "-checkout"))))
2934 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
2935 (synopsis "Overdrive effect with level and tone control")
2936 (description "This package provides the LV2 plugin \"GxOverDriver\", an
2937 overdrive effect."))))
2939 (define-public gx-tone-mender-lv2
2940 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
2942 (package (inherit gx-guvnor-lv2)
2943 (name "gx-tone-mender-lv2")
2944 (version (string-append "0-" revision "." (string-take commit 9)))
2948 (url "https://github.com/brummer10/GxToneMender.lv2")
2952 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
2953 (file-name (string-append name "-" version "-checkout"))))
2954 (home-page "https://github.com/brummer10/GxToneMender.lv2")
2955 (synopsis "Clean boost with a 3-knob tonestack")
2956 (description "This package provides the LV2 plugin \"GxToneMender\", a
2957 clean boost effect with a 3-knob tonestack."))))
2959 (define-public gx-push-pull-lv2
2960 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
2962 (package (inherit gx-guvnor-lv2)
2963 (name "gx-push-pull-lv2")
2964 (version (string-append "0-" revision "." (string-take commit 9)))
2968 (url "https://github.com/brummer10/GxPushPull.lv2")
2972 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
2973 (file-name (string-append name "-" version "-checkout"))))
2974 (home-page "https://github.com/brummer10/GxPushPull.lv2")
2975 (synopsis "Octave up push pull transistor fuzz simulation")
2976 (description "This package provides the LV2 plugin \"GxPushPull\", a
2977 simulation of a push pull transistor fuzz effect with added high octave."))))
2979 (define-public gx-suppa-tone-bender-lv2
2980 (package (inherit gx-guvnor-lv2)
2981 (name "gx-suppa-tone-bender-lv2")
2986 (url "https://github.com/brummer10/GxSuppaToneBender.lv2.git")
2987 (commit (string-append "v" version))))
2988 (file-name (string-append name "-" version "-checkout"))
2991 "01x6bjmllkmvxfzc5xwdix7w021j26js71awv728cxsmkxgqw0zy"))))
2992 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
2993 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
2994 (description "This package provides the LV2 plugin
2995 \"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
2998 (define-public gx-saturator-lv2
2999 (let ((commit "605330f432c94b6eb3f8203cbe472befae959532")
3001 (package (inherit gx-vbass-preamp-lv2)
3002 (name "gx-saturator-lv2")
3003 (version (string-append "0-" revision "." (string-take commit 9)))
3007 (url "https://github.com/brummer10/GxSaturator.lv2")
3011 "1w4nvh0rmxrv3s3hmh4fs74f3hc0jn31v00j769j7v68mqr7kawy"))
3012 (file-name (string-append name "-" version "-checkout"))))
3013 (home-page "https://github.com/brummer10/GxSaturator.lv2")
3014 (synopsis "Saturation effect")
3015 (description "This package provides the LV2 plugin \"GxSaturator\", a
3016 saturation effect."))))
3018 (define-public gx-hyperion-lv2
3019 (package (inherit gx-guvnor-lv2)
3020 (name "gx-hyperion-lv2")
3025 (url "https://github.com/brummer10/GxHyperion.lv2.git")
3026 (commit (string-append "v" version))))
3027 (file-name (string-append name "-" version "-checkout"))
3030 "1vx79s6s9if117y2g0ppdja2sv2wcny6xcfl3j1z4cipahnildxf"))))
3031 (home-page "https://github.com/brummer10/GxHyperion.lv2")
3032 (synopsis "Simulation of the Hyperion Fuzz pedal")
3033 (description "This package provides the LV2 plugin \"GxHyperion\", a
3034 simulation of the Hyperion Fuzz pedal.")))
3036 (define-public gx-voodoo-fuzz-lv2
3037 (package (inherit gx-guvnor-lv2)
3038 (name "gx-voodoo-fuzz-lv2")
3043 (url "https://github.com/brummer10/GxVoodoFuzz.lv2.git")
3044 (commit (string-append "v" version))))
3045 (file-name (string-append name "-" version "-checkout"))
3048 "1v0scphivri1fk4hl20j13f92i48mnx1zsil4hgnadsmm4nsfw43"))))
3049 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
3050 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
3051 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
3052 simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
3053 Bosstone circuit, followed by the tone control of the FoxToneMachine in
3054 parallel with a DarkBooster, followed by a volume control.")))
3056 (define-public gx-super-fuzz-lv2
3057 (package (inherit gx-guvnor-lv2)
3058 (name "gx-super-fuzz-lv2")
3063 (url "https://github.com/brummer10/GxSuperFuzz.lv2.git")
3064 (commit (string-append "v" version))))
3065 (file-name (string-append name "-" version "-checkout"))
3068 "1jlljd9hlgfflbiizq47lv1xbbgjyx3v835mf24zmh1q5zsw4np4"))))
3069 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
3070 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
3071 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
3072 analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
3073 pot, which is usually in the housing, is exposed as a control parameter. It
3074 adjusts the amount of harmonics.")))
3076 (define-public gx-vintage-fuzz-master-lv2
3077 (package (inherit gx-guvnor-lv2)
3078 (name "gx-vintage-fuzz-master-lv2")
3083 (url "https://github.com/brummer10/GxVintageFuzzMaster.lv2.git")
3084 (commit (string-append "v" version))))
3085 (file-name (string-append name "-" version "-checkout"))
3088 "02jb211z8rw2qr5r1z5mdxlqgiw6cbc319xpqplvn6k21c59mskv"))))
3089 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
3090 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
3091 (description "This package provides the LV2 plugin
3092 \"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
3094 (define-public gx-slow-gear-lv2
3095 (let ((commit "5d37e775b0feef1d82feee94e2a7a2d7e57efe2d")
3097 (package (inherit gx-vbass-preamp-lv2)
3098 (name "gx-slow-gear-lv2")
3099 (version (string-append "0-" revision "." (string-take commit 9)))
3103 (url "https://github.com/brummer10/GxSlowGear.lv2")
3107 "141mz69zkhk3lm54bb6wgpnghb92zm1ig7fv07240cmhydqji1q1"))
3108 (file-name (string-append name "-" version "-checkout"))))
3109 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
3110 (synopsis "Slow gear audio effect")
3111 (description "This package provides the LV2 plugin \"GxSlowGear\", a
3112 slow gear audio effect to produce volume swells."))))
3114 (define-public gx-switchless-wah-lv2
3115 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
3117 (package (inherit gx-guvnor-lv2)
3118 (name "gx-switchless-wah-lv2")
3119 (version (string-append "0-" revision "." (string-take commit 9)))
3123 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
3127 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
3128 (file-name (string-append name "-" version "-checkout"))))
3129 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
3130 (synopsis "Wah emulation with switchless activation")
3131 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
3132 a simulation of an analog Wah pedal with switchless activation."))))
3134 (define-public mod-utilities
3135 (let ((commit "80ea3ea9f52fab7f191671f4810bf90fc955a046")
3138 (name "mod-utilities")
3139 (version (string-append "0-" revision "." (string-take commit 9)))
3143 (url "https://github.com/moddevices/mod-utilities.git")
3145 (file-name (string-append name "-" version "-checkout"))
3148 "1v55zmzmlg0ka7341x5lsvb44amy17vk27s669ps1basd1bk5s5v"))))
3149 (build-system gnu-build-system)
3151 `(#:tests? #f ; there are no tests
3153 (list (string-append "INSTALL_PATH="
3154 (assoc-ref %outputs "out")
3156 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3159 (modify-phases %standard-phases
3160 (delete 'configure))))
3163 (home-page "https://github.com/moddevices/mod-utilities")
3164 (synopsis "LV2 utility plugins")
3165 (description "This package provides LV2 audio utility plugins, such as
3166 filters, crossovers, simple gain plugins without zipper noise, switch box
3167 plugins, a switch trigger, a toggle switch, and a peakmeter.")
3168 (license license:gpl2+))))
3170 (define-public ingen
3171 (let ((commit "cc4a4db33f4d126a07a4a498e053c5fb9a883be3")
3175 (version (string-append "0.0.0-" revision "."
3176 (string-take commit 9)))
3181 (url "http://git.drobilla.net/ingen.git")
3183 (file-name (string-append name "-" version "-checkout"))
3186 "1wg47vjw9djn99gbnsl2bcwj4xhdid61m4wrbn2nlp797flj91ic"))))
3187 (build-system waf-build-system)
3189 `(#:tests? #f ; no "check" target
3190 #:configure-flags (list "--no-webkit")
3192 (modify-phases %standard-phases
3193 (add-after 'unpack 'patch-wscript
3194 (lambda* (#:key outputs #:allow-other-keys)
3195 (let ((out (assoc-ref outputs "out")))
3196 (substitute* "wscript"
3197 ;; FIXME: Our version of lv2specgen.py does not behave as
3198 ;; expected. Maybe this requires a development version of
3200 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
3201 ;; Add libraries to RUNPATH.
3202 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
3203 (string-append prefix
3204 "linkflags=[\"-Wl,-rpath="
3205 out "/lib" "\"]," line)))
3206 (substitute* '("src/wscript"
3207 "src/server/wscript")
3208 ;; Add libraries to RUNPATH.
3209 (("bld.env.PTHREAD_LINKFLAGS" line)
3211 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
3212 (substitute* "src/client/wscript"
3213 ;; Add libraries to RUNPATH.
3214 (("^(.+)target.*= 'ingen_client'," line prefix)
3215 (string-append prefix
3216 "linkflags=[\"-Wl,-rpath="
3217 out "/lib" "\"]," line)))
3218 (substitute* "src/gui/wscript"
3219 ;; Add libraries to RUNPATH.
3220 (("^(.+)target.* = 'ingen_gui.*" line prefix)
3221 (string-append prefix
3222 "linkflags=[\"-Wl,-rpath="
3223 out "/lib" "\"]," line))))
3227 ("python-rdflib" ,python-rdflib)
3232 ("raul" ,raul-devel)
3233 ("ganv" ,ganv-devel)
3238 ("gtkmm" ,gtkmm-2)))
3240 `(("pkg-config" ,pkg-config)
3241 ("python-pygments" ,python-pygments)))
3242 (home-page "http://drobilla.net/software/ingen")
3243 (synopsis "Modular audio processing system")
3244 (description "Ingen is a modular audio processing system for JACK and
3245 LV2 based systems. Ingen is built around LV2 technology and a strict
3246 separation of engine from user interface. The engine is controlled
3247 exclusively through a protocol, and can execute as a headless process, with an
3248 in-process GUI, or as an LV2 plugin. The GUI can run as a program which
3249 communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
3250 communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
3251 plugin on any system where Ingen is installed. This allows users to visually
3252 develop custom plugins for use in other applications without programming.")
3253 (license license:agpl3+))))
3255 (define-public qmidiarp
3261 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
3262 version "/qmidiarp-" version ".tar.bz2"))
3265 "043yh1p0rrbj1v840y27529m9260g55gvh1km8az4jxy7mns58r2"))))
3266 (build-system gnu-build-system)
3269 (list "--enable-qt5"
3270 "CXXFLAGS=-std=gnu++11")))
3272 `(("qtbase" ,qtbase)
3273 ("alsa-lib" ,alsa-lib)
3278 `(("pkg-config" ,pkg-config)
3279 ("qttools" ,qttools)))
3280 (home-page "http://qmidiarp.sourceforge.net/")
3281 (synopsis "MIDI arpeggiator")
3282 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
3283 sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
3284 modules running in parallel.")
3285 (license license:gpl2+)))
3287 (define-public qmidiroute
3293 (uri (string-append "mirror://sourceforge/alsamodular/QMidiRoute/"
3294 version "/qmidiroute-" version ".tar.bz2"))
3297 "19v1ppbglgl3z9v7xdqc0k33w71cqq8a7d6ihvfs7iz77dygrih9"))))
3298 (build-system gnu-build-system)
3301 (list "--enable-qt5"
3302 "CXXFLAGS=-std=gnu++11")))
3304 `(("qtbase" ,qtbase)
3305 ("alsa-lib" ,alsa-lib)))
3307 `(("pkg-config" ,pkg-config)
3308 ("qttools" ,qttools)))
3309 (home-page "http://alsamodular.sourceforge.net/")
3310 (synopsis "MIDI event router and filter")
3311 (description "QMidiRoute is a MIDI event router and filter. MIDI note,
3312 control change, program change and pitch bend events are logged, and can be
3313 filtered, redirected and transformed into other events according to MIDI maps
3314 defined as tabs in the main control surface.")
3315 (license license:gpl2+)))
3317 (define-public seq24
3323 (uri (string-append "https://launchpad.net/seq24/trunk/"
3324 version "/+download/seq24-"
3325 version ".tar.bz2"))
3328 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
3329 (patches (search-patches "seq24-rename-mutex.patch"))))
3330 (build-system gnu-build-system)
3333 (list "CXXFLAGS=-std=gnu++11")))
3335 `(("gtkmm" ,gtkmm-2)
3336 ("alsa-lib" ,alsa-lib)
3340 `(("pkg-config" ,pkg-config)))
3341 (home-page "https://edge.launchpad.net/seq24/")
3342 (synopsis "Real-time MIDI sequencer")
3343 (description "Seq24 is a real-time MIDI sequencer. It was created to
3344 provide a very simple interface for editing and playing MIDI loops.")
3345 (license license:gpl2+)))
3347 (define-public python-discogs-client
3349 (name "python-discogs-client")
3353 (uri (pypi-uri "discogs-client" version))
3356 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
3357 (build-system python-build-system)
3359 `(("python-oauthlib" ,python-oauthlib)
3360 ("python-requests" ,python-requests)))
3362 `(("python-six" ,python-six)))
3363 (home-page "https://github.com/discogs/discogs_client")
3364 (synopsis "Official Python client for the Discogs API")
3365 (description "This is the official Discogs API client for Python. It enables
3366 you to query the Discogs database for information on artists, releases, labels,
3367 users, Marketplace listings, and more. It also supports OAuth 1.0a
3368 authorization, which allows you to change user data such as profile information,
3369 collections and wantlists, inventory, and orders.")
3370 (license license:bsd-2)))
3372 (define-public python2-discogs-client
3373 (package-with-python2 python-discogs-client))
3375 (define-public libsmf
3382 ;; SF download page says development moved, but the link it points to
3383 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
3384 ;; it but made no release so far (https://github.com/stump/libsmf).
3385 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
3386 version "/libsmf-" version ".tar.gz"))
3389 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
3390 (build-system gnu-build-system)
3392 "static")) ; 88KiB of .a files
3395 (modify-phases %standard-phases
3396 (add-after 'install 'move-static-libraries
3397 (lambda* (#:key outputs #:allow-other-keys)
3398 ;; Move static libraries to the "static" output.
3399 (let* ((out (assoc-ref outputs "out"))
3400 (lib (string-append out "/lib"))
3401 (static (assoc-ref outputs "static"))
3402 (slib (string-append static "/lib")))
3404 (for-each (lambda (file)
3405 (install-file file slib)
3407 (find-files lib "\\.a$"))
3410 `(("readline" ,readline)
3413 `(("doxygen" ,doxygen)
3414 ("pkg-config" ,pkg-config)))
3415 (home-page "http://libsmf.sourceforge.net/")
3416 (synopsis "Standard MIDI File format library")
3418 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3419 conversions between time and pulses, tempo map handling and more. The only dependencies
3420 are a C compiler and glib. Full API documentation and examples are included.")
3421 (license license:bsd-2)))
3430 (uri (string-append "https://github.com/LMMS/lmms/archive/v"
3432 (file-name (string-append name "-" version ".tar.gz"))
3435 "1g76z7ha3hd53vbqaq9n1qg6s3lw8zzaw51iny6y2bz0j1xqwcsr"))))
3436 (build-system cmake-build-system)
3438 `(#:tests? #f ; no tests
3440 (modify-phases %standard-phases
3441 (add-before 'configure 'set-ldflags
3442 (lambda* (#:key outputs #:allow-other-keys)
3446 (assoc-ref outputs "out") "/lib/lmms"
3448 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3451 (add-before 'configure 'remove-Werror
3453 (substitute* "CMakeLists.txt"
3454 (("SET\\(WERROR_FLAGS \"\\$\\{WERROR_FLAGS\\} -Werror")
3455 "SET(WERROR_FLAGS \"${WERROR_FLAGS}"))
3457 (add-before 'reset-gzip-timestamps 'make-manpages-writable
3458 (lambda* (#:key outputs #:allow-other-keys)
3460 (make-file-writable file))
3461 (find-files (string-append (assoc-ref outputs "out")
3466 `(("pkg-config" ,pkg-config)))
3472 ("libsamplerate" ,libsamplerate)
3473 ("fluidsynth" ,fluidsynth)
3474 ("libvorbis" ,libvorbis)
3475 ("alsa-lib" ,alsa-lib)
3476 ("portaudio" ,portaudio)
3478 ("libsndfile1" ,libsndfile)
3480 ("freetype2" ,freetype)
3482 (home-page "https://lmms.io/")
3483 (synopsis "Music composition tool")
3484 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3485 melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3486 audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3487 (license license:gpl2+)))
3489 (define-public musescore
3496 "https://github.com/musescore/MuseScore/archive/"
3497 "v" version ".tar.gz"))
3498 (file-name (string-append name "-" version ".tar.gz"))
3501 "1ml99ayzpdyd18cypcp0lbsbasfg3abw57i5fl7ph5739vikj6i6"))
3502 (modules '((guix build utils)))
3504 ;; Un-bundle OpenSSL and remove unused libraries.
3506 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3507 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3509 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3510 (("#include <openssl/.*") ""))
3511 (for-each delete-file-recursively
3512 '("thirdparty/freetype"
3513 "thirdparty/openssl"
3514 "thirdparty/portmidi"))
3516 (build-system gnu-build-system)
3519 `(,(string-append "PREFIX=" (assoc-ref %outputs "out"))
3520 "USE_SYSTEM_FREETYPE=ON"
3521 "DOWNLOAD_SOUNDFONT=OFF")
3522 ;; There are tests, but no simple target to run. The command
3523 ;; used to run them is:
3525 ;; make debug && sudo make installdebug && cd \
3526 ;; build.debug/mtest && make && ctest
3528 ;; Basically, it requires to start a whole new build process.
3529 ;; So we simply skip them.
3532 (modify-phases %standard-phases
3533 (delete 'configure))))
3535 `(("alsa-lib" ,alsa-lib)
3536 ("freetype" ,freetype)
3537 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3541 ("libsndfile" ,libsndfile)
3542 ("libvorbis" ,libvorbis)
3543 ("portaudio" ,portaudio)
3544 ("portmidi" ,portmidi)
3545 ("pulseaudio" ,pulseaudio)
3547 ("qtdeclarative" ,qtdeclarative)
3548 ("qtscript" ,qtscript)
3550 ("qtwebkit" ,qtwebkit)
3551 ("qtxmlpatterns" ,qtxmlpatterns)))
3554 ("pkg-config" ,pkg-config)
3555 ("qttools" ,qttools)))
3556 (synopsis "Music composition and notation software")
3557 (description "MuseScore is a music score typesetter. Its main purpose is
3558 the creation of high-quality engraved musical scores in a WYSIWYG environment.
3560 It supports unlimited staves, linked parts and part extraction, tablature,
3561 MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3562 lyrics (multiple verses), fretboard diagrams, and in general everything
3563 commonly used in sheet music. Style options and style sheets to change the
3564 appearance and layout are provided.
3566 MuseScore can also play back scores through the built-in sequencer and SoundFont
3568 (home-page "https://musescore.org")
3569 (license license:gpl2)))
3571 (define-public muse-sequencer
3573 (name "muse-sequencer")
3578 (url "https://github.com/muse-sequencer/muse.git")
3579 (commit (string-append "muse_"
3580 (string-map (lambda (c)
3582 #\_ c)) version)))))
3583 (file-name (string-append name "-" version "-checkout"))
3586 "1nninz8qyqlxxjdnrm79y3gr3056pga9l2fsqh674jd3cjvafya3"))))
3587 (build-system cmake-build-system)
3589 `(#:tests? #f ; there is no test target
3591 (list "-DENABLE_LV2_SUPPLIED=OFF"
3592 "-DENABLE_RTAUDIO=OFF" ; FIXME: not packaged
3593 "-DENABLE_INSTPATCH=OFF" ; FIXME: not packaged
3594 "-DENABLE_VST_NATIVE=OFF")
3596 (modify-phases %standard-phases
3597 (add-after 'unpack 'chdir
3598 (lambda _ (chdir "muse3"))))))
3600 `(("alsa-lib" ,alsa-lib)
3609 ("libsndfile" ,libsndfile)
3610 ("libsamplerate" ,libsamplerate)
3611 ("fluidsynth" ,fluidsynth)
3616 `(("pkg-config" ,pkg-config)
3617 ("qttools" ,qttools)))
3618 (home-page "http://muse-sequencer.org")
3619 (synopsis "MIDI/Audio sequencer")
3620 (description "MusE is a MIDI/Audio sequencer with recording and editing
3621 capabilities. Its audio sequencer supports the LADSPA, DSSI, and LV2 audio
3622 plugin formats; the MIDI sequencer provides a piano roll, a drum editor, a
3623 list view, and a score editor. MusE aims to be a complete multitrack virtual
3625 (license license:gpl2+)))
3634 "mirror://sourceforge/dssi/dssi/" version
3635 "/dssi-" version ".tar.gz"))
3638 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3639 (build-system gnu-build-system)
3641 `(("alsa-lib" ,alsa-lib)
3644 ("libsamplerate" ,libsamplerate)
3645 ("libsndfile" ,libsndfile)
3648 `(("pkg-config" ,pkg-config)))
3649 (synopsis "Audio plugin API for soft synths and effects")
3650 (description "DSSI is a plugin API for software instruments with user
3651 interfaces, permitting them to be hosted in-process by audio applications.
3652 It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3653 towards familiarity with MIDI. The DSSI distribution package contains
3654 a JACK/ALSA-sequencer reference host and some plugins as well as the
3655 specification and header.")
3656 (home-page "http://dssi.sourceforge.net/")
3657 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3658 ;; The vast majority of examples are in the public domain.
3659 (license (list license:lgpl2.1+ license:gpl2+))))
3661 (define-public rosegarden
3668 "mirror://sourceforge/rosegarden/rosegarden/"
3669 version "/rosegarden-" version ".tar.bz2"))
3672 "1khfcj22asdhjh0jvhkqsz200wgmigkhsrcz09ffia5hqm0n32lq"))))
3673 (build-system cmake-build-system)
3675 `(#:configure-flags '("-DUSE_QT5=1") ; "-DCMAKE_BUILD_TYPE=Release"
3677 (modify-phases %standard-phases
3678 (add-after 'unpack 'patch-tests
3680 (substitute* "CMakeLists.txt"
3681 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
3683 ((" -fvisibility=hidden") ""))
3685 (add-after 'unpack 'fix-references
3686 (lambda* (#:key inputs #:allow-other-keys)
3687 (substitute* "src/gui/general/ProjectPackager.cpp"
3689 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
3691 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
3693 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
3695 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
3697 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
3698 (substitute* "src/gui/general/LilyPondProcessor.cpp"
3699 (("\"convert-ly\\>")
3700 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
3702 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
3704 (add-after 'unpack 'make-reproducible
3706 ;; Prevent Last-Modified from being written.
3707 ;; The "*.qm" files that are used in locale.qrc would have a new
3708 ;; mtime otherwise that is written into qrc_locale.cpp in the
3709 ;; end - except when we disable it.
3710 (substitute* "src/CMakeLists.txt"
3711 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
3712 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
3714 ;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
3715 ; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
3717 ;; Make hashtable traversal order predicable.
3718 (setenv "QT_RCC_TEST" "1") ; important
3720 (add-before 'check 'prepare-check
3722 (setenv "QT_QPA_PLATFORM" "offscreen")
3723 ;; Tests create files in $HOME/.local/share/rosegarden .
3724 (mkdir-p "/tmp/foo")
3725 (setenv "HOME" "/tmp/foo")
3728 `(("alsa-lib" ,alsa-lib)
3736 ("libsamplerate" ,libsamplerate)
3737 ("lilypond" ,lilypond)
3742 ("wavpack" ,wavpack)
3745 `(("pkg-config" ,pkg-config)
3746 ("qtlinguist" ,qttools)))
3747 (synopsis "Music composition and editing environment based around a MIDI
3749 (description "Rosegarden is a music composition and editing environment
3750 based around a MIDI sequencer that features a rich understanding of music
3751 notation and includes basic support for digital audio.")
3752 (home-page "http://www.rosegardenmusic.com/")
3753 (license license:gpl2)))
3755 (define-public patchmatrix
3757 (name "patchmatrix")
3762 (url "https://github.com/OpenMusicKontrollers/patchmatrix.git")
3764 (file-name (string-append "patchmatrix-" version "-checkout"))
3767 "19ivp7h5vq6r1qhmycjxzvrgg7fc4a3v5vb3n4c7afs4z3pj53zi"))))
3768 (build-system cmake-build-system)
3769 (arguments '(#:tests? #f)) ; no test target
3775 `(("pkg-config" ,pkg-config)))
3776 (home-page "https://github.com/OpenMusicKontrollers/patchmatrix")
3777 (synopsis "Simple JACK patch bay")
3778 (description "PatchMatrix is a patch bay for the JACK audio connection
3779 kit. It provides a patch bay in flow matrix style for audio, MIDI, CV, and
3781 (license license:artistic2.0)))
3783 (define-public sorcer
3789 (uri (string-append "https://github.com/openAVproductions/"
3790 "openAV-Sorcer/archive/release-"
3792 (file-name (string-append name "-" version ".tar.gz"))
3795 "07iyqj28wm0xc4arrq893bm12xjpz65db7ynrlmf6w8krg8wjmd0"))))
3796 (build-system cmake-build-system)
3798 `(#:tests? #f ; no tests included
3800 (modify-phases %standard-phases
3801 (add-after 'unpack 'remove-architecture-specific-flags
3803 (substitute* "CMakeLists.txt"
3804 (("-msse2 -mfpmath=sse") ""))
3806 (add-after 'unpack 'build-faust-sources
3807 (lambda* (#:key inputs #:allow-other-keys)
3808 (with-directory-excursion "faust"
3809 (delete-file "main.cpp")
3810 (zero? (system* "faust" "-i"
3812 "-o" "main.cpp" "main.dsp"))))))))
3819 ("pkg-config" ,pkg-config)))
3820 (home-page "http://openavproductions.com/sorcer/")
3821 (synopsis "Wavetable LV2 plugin synth")
3822 (description "Sorcer is a wavetable LV2 plugin synthesizer, targeted at
3823 the electronic or dubstep genre.")
3824 (license license:gpl3+)))
3826 (define-public libmygpo-qt
3828 (name "libmygpo-qt")
3832 (uri (string-append "http://stefan.derkits.at/files/"
3833 "libmygpo-qt/libmygpo-qt." version ".tar.gz"))
3836 "1kg18qrq2rsswgzhl65r3mlyx7kpqg4wwnbp4yiv6svvmadmlxl2"))
3837 (patches (search-patches "libmygpo-qt-fix-qt-5.11.patch"
3838 "libmygpo-qt-missing-qt5-modules.patch"))))
3839 (build-system cmake-build-system)
3841 `(("pkg-config" ,pkg-config)))
3845 `(#:configure-flags '("-DMYGPO_BUILD_TESTS=ON")
3846 ;; TODO: Enable tests when https://github.com/gpodder/gpodder/issues/446
3849 (home-page "http://wiki.gpodder.org/wiki/Libmygpo-qt")
3850 (synopsis "Qt/C++ library wrapping the gpodder web service")
3851 (description "@code{libmygpo-qt} is a Qt/C++ library wrapping the
3852 @url{https://gpodder.net} APIs. It allows applications to discover, manage
3853 and track podcasts.")
3854 (license license:lgpl2.1+)))
3856 (define-public sonivox-eas
3858 (name "sonivox-eas")
3863 (url "https://github.com/pedrolcl/Linux-SonivoxEas.git")
3864 (commit (string-append "v" version))))
3865 (file-name (string-append name "-" version "-checkout"))
3868 "0l9gs00p5g4k4qy6i7nv1mfi2n2wnsycwjrgrh9hxzam4irf2mw2"))))
3869 (build-system cmake-build-system)
3870 (arguments '(#:tests? #f)) ; there are no tests
3872 `(("alsa-lib" ,alsa-lib)
3873 ("drumstick" ,drumstick)
3874 ("pulseaudio" ,pulseaudio)
3875 ("qtbase" ,qtbase)))
3877 `(("pkg-config" ,pkg-config)))
3878 (home-page "https://github.com/pedrolcl/Linux-SonivoxEas")
3879 (synopsis "MIDI synthesizer library")
3880 (description "This project is a real time General MIDI synthesizer based
3881 on the Sonivox EAS Synthesizer by Google. It does not need external
3882 soundfonts, using embedded samples instead.")
3883 ;; Sonivox is released under the ASL2.0; the rest of the code is under
3885 (license (list license:gpl2+ license:asl2.0))))
3887 (define-public whysynth
3890 (version "20170701")
3893 (uri (string-append "http://smbolton.com/whysynth/whysynth-"
3894 version ".tar.bz2"))
3897 "02qbn0hbvn1iym4zxv35b201blg31yjpgh71h8db0j5zls2xc0m6"))))
3898 (build-system gnu-build-system)
3905 ("alsa-lib" ,alsa-lib)))
3907 `(("pkg-config" ,pkg-config)))
3908 (home-page "http://smbolton.com/whysynth.html")
3909 (synopsis "DSSI software synthesizer")
3910 (description "WhySynth is a versatile softsynth which operates as a plugin
3911 for the DSSI Soft Synth Interface. A brief list of features:
3914 @item 4 oscillators, 2 filters, 3 LFOs, and 5 envelope generators per voice.
3915 @item 11 oscillator modes: minBLEP, wavecycle, chorused wavecycle,
3916 asynchronous granular, three FM modes, waveshaper, noise, PADsynth, and phase
3918 @item 10 filter modes.
3919 @item flexible modulation and mixdown options, plus effects.
3922 (license license:gpl2+)))
3924 (define-public libdiscid
3932 "http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/libdiscid-"
3936 "1f9irlj3dpb5gyfdnb1m4skbjvx4d4hwiz2152f83m0d9jn47r7r"))))
3937 (arguments `(#:test-target "check"))
3938 (build-system cmake-build-system)
3939 (home-page "https://musicbrainz.org/doc/libdiscid")
3940 (synopsis "Disc id reader library")
3941 (description "libdiscid is a C library for creating MusicBrainz and freedb
3942 disc IDs from audio CDs. It reads a CD's table of contents (TOC) and generates
3943 an identifier which can be used to lookup the CD at MusicBrainz. Additionally,
3944 it provides a submission URL for adding the disc ID to the database and gathers
3945 ISRCs and the MCN (=UPC/EAN) from disc.")
3946 (license license:lgpl2.1+)))
3948 (define-public libmusicbrainz
3950 (name "libmusicbrainz")
3956 "https://github.com/metabrainz/libmusicbrainz/releases/download/release-"
3957 version "/libmusicbrainz-" version ".tar.gz"))
3960 "0ikb9igyyk28jm34raxfzkw2qyn4nzzwsymdyprp7cmvi6g2ajb7"))))
3961 (build-system cmake-build-system)
3962 (arguments `(#:phases
3963 (modify-phases %standard-phases
3967 ;; requires network connections
3968 ;; (zero? (system* "tests/mbtest"))
3969 (zero? (system* "tests/ctest"))))))))
3970 (inputs `(("neon" ,neon)
3971 ("libxml2" ,libxml2)))
3972 (native-inputs `(("pkg-config" ,pkg-config)))
3973 (home-page "https://musicbrainz.org/doc/libmusicbrainz")
3974 (synopsis "MusicBrainz client library")
3975 (description "The MusicBrainz Client Library (libmusicbrainz), also known as
3976 mb_client, is a development library geared towards developers who wish to add
3977 MusicBrainz lookup capabilities to their applications.")
3978 (license license:lgpl2.1+)))