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 ng0 <contact.ng0@cryptolab.net>
12 ;;; Copyright © 2017 Rodger Fox <thylakoid@openmailbox.org>
13 ;;; Copyright © 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
14 ;;; Copyright © 2017 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 "0a59257dc334b8df60a4d7d90b04f1766747efcf")
194 (version (string-append "1.3.1-" revision "." (string-take commit 7)))
198 (url "https://github.com/clementine-player/Clementine.git")
200 (file-name (string-append name "-" version "-checkout"))
203 "0cdcj7di7j9jgzc1ihjna1a5df64f9hnmx7b9kh8rlg76hc0l0hi"))
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 ("libechonest" ,libechonest)
266 ;; TODO: Package libgpod.
270 ("protobuf" ,protobuf)
271 ("pulseaudio" ,pulseaudio)
273 ("qtx11extras" ,qtx11extras)
274 ("qtwebkit" ,qtwebkit)
275 ("sqlite" ,sqlite-with-fts3)
276 ("sparsehash" ,sparsehash)
278 (home-page "http://clementine-player.org")
279 (synopsis "Music player and library organizer")
280 (description "Clementine is a multiplatform music player. It is inspired
281 by Amarok 1.4, focusing on a fast and easy-to-use interface for searching and
282 playing your music.")
284 ;; clementine and qtiocompressor are under GPLv3.
286 ;; gmock is under BSD-3.
288 ;; qxt is under CPL1.0.
290 ;; qsqlite and qtsingleapplication are under LGPL2.1+.
292 ;; qocoa is under MIT and CC by-sa for the icons.
293 license:cc-by-sa3.0)))))
302 "https://github.com/" name "/" name "/archive/v"
304 (file-name (string-append name "-" version ".tar.gz"))
307 "0raixgjavkm7hxppzsc5zqbfbh2bhjcmbiplhnsxsmyj8flafyc1"))))
308 (build-system gnu-build-system)
310 `(#:tests? #f ; cmus does not include tests
312 (modify-phases %standard-phases
315 (lambda* (#:key outputs #:allow-other-keys)
316 (let ((out (assoc-ref outputs "out")))
318 ;; It's an idiosyncratic configure script that doesn't
319 ;; understand --prefix=..; it wants prefix=.. instead.
321 (system* "./configure"
322 (string-append "prefix=" out)))))))))
323 ;; TODO: cmus optionally supports the following formats, which haven't yet
324 ;; been added to Guix:
328 ;; - DISCID_LIBS, apparently different from cd-discid which is included in
329 ;; Guix. See <http://sourceforge.net/projects/discid/>
331 `(("pkg-config" ,pkg-config)))
333 `(("alsa-lib" ,alsa-lib)
339 ("libcdio-paranoia" ,libcdio-paranoia)
342 ("libmodplug" ,libmodplug)
343 ("libmpcdec" ,libmpcdec)
344 ("libsamplerate" ,libsamplerate)
345 ("libvorbis" ,libvorbis)
347 ("opusfile" ,opusfile)
348 ("pulseaudio" ,pulseaudio)
349 ("wavpack" ,wavpack)))
350 (home-page "https://cmus.github.io/")
351 (synopsis "Small console music player")
352 (description "Cmus is a small and fast console music player. It supports
353 many input formats and provides a customisable Vi-style user interface.")
354 (license license:gpl2+)))
356 (define-public denemo
362 (uri (string-append "mirror://gnu/denemo/denemo-"
366 "0hggf8c4xcrjcxd5m00r788r7jg7g8ff54w2idfaqpj5j2ix3299"))))
367 (build-system gnu-build-system)
370 (modify-phases %standard-phases
372 ;; Denemo's documentation says to use this command to run its
375 (zero? (system* "make" "-C" "tests" "check"))))
376 (add-before 'build 'set-lilypond
377 ;; This phase sets the default path for lilypond to its current
378 ;; location in the store.
379 (lambda* (#:key inputs #:allow-other-keys)
380 (let* ((lilypond (string-append (assoc-ref inputs "lilypond")
382 (substitute* "src/core/prefops.c"
383 (("g_string_new \\(\"lilypond\"\\);")
384 (string-append "g_string_new (\""
388 (add-after 'install 'correct-filename
389 ;; "graft-derivation/shallow" from the (guix grafts) module runs in
390 ;; the C locale, expecting file names to be ASCII encoded. This
391 ;; phase renames a filename with a Unicode character in it to meet
392 ;; the aforementioned condition.
393 (lambda* (#:key outputs #:allow-other-keys)
394 (let* ((out (assoc-ref outputs "out")))
395 (chdir (string-append
397 "/share/denemo/templates/instruments/woodwind"))
398 (rename-file "Clarinet in B♭.denemo"
399 "Clarinet in Bb.denemo"))
402 `(("glib:bin", glib "bin") ; for gtester
403 ("pkg-config" ,pkg-config)))
405 `(("alsa-lib" ,alsa-lib)
409 ("fluidsynth" ,fluidsynth)
413 ("gtksourceview" ,gtksourceview)
415 ("intltool" ,intltool)
417 ("libsndfile" ,libsndfile)
420 ("lilypond", lilypond)
421 ("portaudio" ,portaudio)
422 ("portmidi" ,portmidi)
423 ("rubberband" ,rubberband)))
424 (synopsis "Graphical music notation, front-end to GNU Lilypond")
426 "GNU Denemo is a music notation editor that provides a convenient
427 interface to the powerful music engraving program Lilypond. Music can be
428 typed in using the computer keyboard, played in using a MIDI keyboard, or
429 even input via a microphone connected to the sound card. The final product
430 is publication-quality music notation that is continuously generated in the
431 background while you work.")
432 (home-page "http://www.denemo.org")
433 (license license:gpl3+)))
435 (define-public hydrogen
442 "https://github.com/hydrogen-music/hydrogen/archive/"
446 "1dy2jfkdw0nchars4xi4isrz66fqn53a9qk13bqza7lhmsg3s3qy"))))
447 (build-system cmake-build-system)
449 `(#:test-target "tests"))
451 `(("cppunit" ,cppunit)
452 ("pkg-config" ,pkg-config)))
454 `(("alsa-lib" ,alsa-lib)
456 ;; ("ladspa" ,ladspa) ; cannot find during configure
458 ("libarchive" ,libarchive)
459 ("libsndfile" ,libsndfile)
464 (home-page "http://www.hydrogen-music.org")
465 (synopsis "Drum machine")
467 "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to
468 enable professional yet simple and intuitive pattern-based drum programming.")
469 (license license:gpl2+)))
471 (define-public easytag
477 (uri (string-append "mirror://gnome/sources/easytag/2.4/easytag-"
481 "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw"))))
482 (build-system glib-or-gtk-build-system)
484 `(("desktop-file-utils" ,desktop-file-utils)
486 ("intltool" ,intltool)
488 ("pkg-config" ,pkg-config)
489 ("xmllint" ,libxml2)))
494 ("libid3tag" ,libid3tag)
495 ("libvorbis" ,libvorbis)
496 ("opusfile" ,opusfile)
503 (modify-phases %standard-phases
504 (add-before 'configure 'configure-libid3tag
505 (lambda* (#:key inputs #:allow-other-keys)
506 ;; libid3tag does not provide a .pc file and EasyTAG's configure
507 ;; script healivy relies on pkg-config. Providing a temporary
508 ;; local .pc file is easier than patching the configure script.
509 (let* ((libid3tag (assoc-ref inputs "libid3tag")))
510 (mkdir-p "pkgconfig")
512 "pkgconfig/id3tag.pc"
516 libdir=${prefix}/lib~@
517 includedir=${prefix}/include~@
518 Libs: -L${libdir} -lid3tag -lz~@
519 Cflags: -I${includedir}~%"
521 (setenv "PKG_CONFIG_PATH"
522 (string-append (getenv "PKG_CONFIG_PATH")
523 ":" (getcwd) "/pkgconfig")))))
524 (add-after 'unpack 'patch-makefile
526 (substitute* "Makefile.in"
527 ;; The Makefile generates a test-desktop-file-validate.sh
528 ;; script with /bin/sh hard-coded.
529 (("/bin/sh") (which "sh"))
530 ;; Don't create 'icon-theme.cache'.
531 (("gtk-update-icon-cache") "true")))))))
532 (home-page "https://wiki.gnome.org/Apps/EasyTAG")
533 (synopsis "Simple application for viewing and editing tags in audio files")
535 "EasyTAG is an application for viewing and editing tags in audio files.
536 It supports MP3, MP2, MP4/AAC, FLAC, Ogg Opus, Ogg Speex, Ogg Vorbis,
537 MusePack, Monkey's Audio, and WavPack files.")
538 (license license:gpl2+)))
540 (define-public extempore
547 "https://github.com/digego/extempore/archive/"
551 "1wap1mvsicrhlazikf7l8zxg37fir8bmnh9rin28m1rix730vcch"))
552 (file-name (string-append name "-" version ".tar.gz"))))
553 (build-system cmake-build-system)
555 `(;; The default target also includes ahead-of-time compilation of the
556 ;; standard libraries. However, during the "install" phase this would
557 ;; happen *again* for unknown reasons. Hence we only build the
558 ;; extempore executable during the build phase.
559 #:make-flags '("extempore")
560 #:configure-flags '("-DJACK=ON"
561 ;; We want to distribute.
563 ;; Don't download any dependencies.
565 #:modules ((ice-9 match)
566 (guix build cmake-build-system)
569 (modify-phases %standard-phases
570 (add-after 'unpack 'patch-directories
571 (lambda* (#:key outputs #:allow-other-keys)
572 ;; Rewrite default path to runtime directory
573 (substitute* "src/Extempore.cpp"
574 (("runtimedir \\+= \"runtime\"")
575 (string-append "runtimedir = \""
576 (assoc-ref outputs "out")
577 "/lib/extempore/runtime\"")))
578 (substitute* "extras/extempore.el"
579 (("\\(runtime-directory \\(concat default-directory \"runtime\"\\)\\)")
580 (string-append "(runtime-directory \""
581 (assoc-ref outputs "out")
582 "/lib/extempore/runtime"
585 (add-after 'unpack 'link-with-additional-libs
587 ;; The executable must be linked with libffi and zlib.
588 (substitute* "CMakeLists.txt"
589 (("add_dependencies\\(aot_extended extended_deps\\)") "")
590 (("target_link_libraries\\(extempore PRIVATE dl" line)
591 (string-append line " ffi z")))
593 ;; FIXME: AOT compilation of the nanovg bindings fail with the error:
594 ;; "Compiler Error could not bind _nvgLinearGradient"
595 (add-after 'unpack 'disable-nanovg
597 (substitute* "CMakeLists.txt"
598 (("aotcompile_lib\\(libs/external/nanovg.xtm.*") ""))
600 ;; FIXME: All examples that are used as tests segfault for some
602 (add-after 'unpack 'disable-broken-tests
604 (substitute* "CMakeLists.txt"
605 (("extempore_add_example_as_test\\(.*") ""))
607 (add-after 'unpack 'hardcode-external-lib-paths
608 (lambda* (#:key inputs #:allow-other-keys)
609 (use-modules (ice-9 match))
612 ((file-name lib pkg-name)
613 (substitute* (string-append "libs/external/" file-name ".xtm")
614 ((lib) (string-append (assoc-ref inputs pkg-name)
616 '(("assimp" "libassimp.so" "assimp")
617 ("portmidi" "libportmidi.so" "portmidi")
618 ("sndfile" "libsndfile.so" "libsndfile")
619 ("fft" "libkiss_fft.so" "kiss-fft")
620 ("stb_image" "libstb_image.so" "stb-image")
621 ("nanovg" "libnanovg.so" "nanovg")
622 ("glext" "libGL.so" "mesa")
623 ("glfw3" "libglfw.so" "glfw")
624 ("gl/glcore-directbind" "libGL.so" "mesa")
625 ("gl/glcompat-directbind" "libGL.so" "mesa")))
627 (add-after 'unpack 'use-own-llvm
628 (lambda* (#:key inputs #:allow-other-keys)
629 (setenv "EXT_LLVM_DIR" (assoc-ref inputs "llvm"))
630 ;; Our LLVM builds shared libraries, so Extempore should use
632 (substitute* "CMakeLists.txt"
633 (("CMAKE_STATIC_LIBRARY") "CMAKE_SHARED_LIBRARY"))
635 (add-after 'unpack 'fix-aot-compilation
636 (lambda* (#:key outputs #:allow-other-keys)
637 (substitute* "CMakeLists.txt"
638 ;; EXT_SHARE_DIR does not exist before installation, so the
639 ;; working directory should be the source directory instead.
640 (("WORKING_DIRECTORY \\$\\{EXT_SHARE_DIR\\}")
641 "WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}")
642 ;; Extempore needs to be told where the runtime is to be found.
643 ;; While we're at it we disable automatic tuning for a specific
644 ;; CPU to make binary substitution possible.
645 (("COMMAND extempore" prefix)
646 (string-append prefix " --sharedir " (getcwd)
647 " --mcpu=generic --attr=none")))
650 `(("llvm" ,llvm-for-extempore)
653 ("libsndfile" ,libsndfile)
656 ("stb-image" ,stb-image-for-extempore)
657 ("kiss-fft" ,kiss-fft-for-extempore)
658 ("nanovg" ,nanovg-for-extempore)
659 ("portmidi" ,portmidi-for-extempore)
661 ("alsa-lib" ,alsa-lib)
662 ("portaudio" ,portaudio)
668 ("emacs" ,emacs-no-x)))
669 ;; Extempore refuses to build on architectures other than x86_64
670 (supported-systems '("x86_64-linux"))
671 (home-page "http://digego.github.io/extempore/")
672 (synopsis "Programming environment for live coding of multimedia")
674 "Extempore is a programming language and runtime environment designed
675 with live programming in mind. It supports interactive programming in a REPL
676 style, compiling and binding code just-in-time. Although Extempore has its
677 roots in 'live coding' of audiovisual media art, it is suitable for any task
678 domain where dynamic run-time modifiability and good numerical performance are
679 required. Extempore also has strong timing and concurrency semantics, which
680 are helpful when working in problem spaces where timing is important (such as
682 (license license:bsd-2)))
690 (uri (string-append "http://das.nasophon.de/download/klick-"
694 "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j"))))
695 (build-system scons-build-system)
697 `(#:scons-flags (list (string-append "PREFIX=" %output))
698 #:tests? #f)) ;no "check" target
702 ("libsndfile" ,libsndfile)
703 ("libsamplerate" ,libsamplerate)
705 ("rubberband" ,rubberband)))
707 `(("pkg-config" ,pkg-config)))
708 (home-page "http://das.nasophon.de/klick/")
709 (synopsis "Metronome for JACK")
711 "klick is an advanced command-line based metronome for JACK. It allows
712 you to define complex tempo maps for entire songs or performances.")
713 (license license:gpl2+)))
715 (define-public gtklick
721 (uri (string-append "http://das.nasophon.de/download/gtklick-"
725 "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp"))))
726 (build-system python-build-system)
728 `(#:tests? #f ; no tests
731 (modify-phases %standard-phases
732 (add-before 'build 'add-sitedirs
733 ;; .pth files are not automatically interpreted unless the
734 ;; directories containing them are added as "sites". The directories
735 ;; are then added to those in the PYTHONPATH. This is required for
736 ;; the operation of pygtk.
738 (substitute* "gtklick/gtklick.py"
740 "import pygtk, site, sys
741 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))))
742 (add-after 'unpack 'inject-store-path-to-klick
743 (lambda* (#:key inputs #:allow-other-keys)
744 (substitute* "gtklick/klick_backend.py"
745 (("KLICK_PATH = 'klick'")
746 (string-append "KLICK_PATH = '"
747 (assoc-ref inputs "klick")
752 ("python2-pyliblo" ,python2-pyliblo)
753 ("python2-pygtk" ,python2-pygtk)))
755 `(("gettext" ,gettext-minimal)))
756 (home-page "http://das.nasophon.de/gtklick/")
757 (synopsis "Simple metronome with an easy-to-use graphical interface")
759 "Gtklick is a simple metronome with an easy-to-use graphical user
760 interface. It is implemented as a frontend to @code{klick}.")
761 (license license:gpl2+)))
763 (define-public libgme
769 (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/"
770 "downloads/game-music-emu-" version
774 "08fk7zddpn7v93d0fa7fcypx7hvgwx9b5psj9l6m8b87k2hbw4fw"))))
775 (build-system cmake-build-system)
777 '(#:tests? #f)) ; no check target
778 (home-page "https://bitbucket.org/mpyne/game-music-emu")
779 (synopsis "Video game music file playback library")
781 "Game-music-emu is a collection of video game music file emulators that
782 support the following formats and systems:
785 ZX Spectrum/Asmtrad CPC
789 Sega Genesis/Mega Drive
791 NEC TurboGrafx-16/PC Engine
793 MSX Home Computer/other Z80 systems (doesn't support FM sound)
795 Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
797 Atari systems using POKEY sound chip
799 Super Nintendo/Super Famicom
801 Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
803 (license (list license:lgpl2.1+
804 ;; demo and player directories are under the Expat license
807 (define-public lilypond
814 "http://download.linuxaudio.org/lilypond/sources/v"
815 (version-major+minor version) "/"
816 name "-" version ".tar.gz"))
819 "0lql4q946gna2pl1g409mmmsvn2qvnq2z5cihrkfhk7plcqdny9n"))))
820 (build-system gnu-build-system)
822 `(#:tests? #f ; out-test/collated-files.html fails
824 #:make-flags '("conf=www") ;to generate images for info manuals
826 (list "CONFIGURATION=www"
827 (string-append "--with-texgyre-dir="
828 (assoc-ref %build-inputs "font-tex-gyre")
829 "/share/fonts/opentype/"))
831 (modify-phases %standard-phases
832 (add-after 'unpack 'use-texlive-union
834 ;; FIXME: fonts are not found and have to be generated in HOME.
835 (setenv "HOME" "/tmp")
836 ;; The test for the "lh" package fails, even though it is among
838 (substitute* "configure"
839 (("TEX_FIKPARM=.*") "TEX_FIKPARM=found\n"))
841 (add-after 'unpack 'fix-path-references
843 (substitute* "scm/backend-library.scm"
844 (("\\(search-executable '\\(\"gs\"\\)\\)")
845 (string-append "\"" (which "gs") "\""))
847 (string-append "\"" (which "sh") "\"")))
849 (add-before 'configure 'prepare-configuration
851 (substitute* "configure"
852 (("SHELL=/bin/sh") "SHELL=sh")
853 ;; When checking the fontforge version do not consider the
854 ;; version string that's part of the directory.
855 (("head -n") "tail -n")
856 ;; Also allow for SOURCE_DATE_EPOCH = 0 in fontforge.
857 (("20110222") "19700101"))
859 (setenv "conf" "www")
861 (add-after 'install 'install-info
863 (zero? (system* "make"
864 "-j" (number->string (parallel-job-count))
865 "conf=www" "install-info")))))))
867 `(("guile" ,guile-1.8)
868 ("font-dejavu" ,font-dejavu)
869 ("font-tex-gyre" ,font-tex-gyre)
870 ("fontconfig" ,fontconfig)
871 ("freetype" ,freetype)
872 ("ghostscript" ,ghostscript)
874 ("python" ,python-2)))
879 ("fontforge" ,fontforge)
881 ("gettext" ,gettext-minimal)
882 ("imagemagick" ,imagemagick)
883 ("netpbm" ,netpbm) ;for pngtopnm
884 ("texlive" ,(texlive-union (list texlive-metapost
887 texlive-latex-cyrillic)))
889 ("texi2html" ,texi2html)
891 ("pkg-config" ,pkg-config)
893 (home-page "http://www.lilypond.org/")
894 (synopsis "Music typesetting")
896 "GNU LilyPond is a music typesetter, which produces high-quality sheet
897 music. Music is input in a text file containing control sequences which are
898 interpreted by LilyPond to produce the final document. It is extendable with
900 (license license:gpl3+)
902 ;; On armhf and mips64el, building the documentation sometimes leads to
903 ;; more than an hour of silence, so double the max silent time.
904 (properties `((max-silent-time . 7200)))))
906 (define-public non-sequencer
907 ;; The latest tagged release is three years old and uses a custom build
908 ;; system, so we take the last commit.
909 (let ((commit "10c31e57291b6e42be53371567a722b62b32d220")
912 (name "non-sequencer")
913 (version (string-append "1.9.5-" revision "." (string-take commit 7)))
917 (url "git://git.tuxfamily.org/gitroot/non/non.git")
921 "080rha4ffp7qycyg1mqcf4vj0s7z8qfvz6bxm0w29xgg2kkmb3fx"))
922 (file-name (string-append name "-" version "-checkout"))))
923 (build-system waf-build-system)
925 `(#:tests? #f ;no "check" target
927 (list "--project=sequencer"
928 ;; Disable the use of SSE unless on x86_64.
929 ,@(if (not (string-prefix? "x86_64" (or (%current-target-system)
934 (modify-phases %standard-phases
936 'configure 'set-flags
938 ;; Compile with C++11, required by libsigc++.
939 (setenv "CXXFLAGS" "-std=c++11")
944 ("libsigc++" ,libsigc++)
948 `(("pkg-config" ,pkg-config)))
949 (home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer")
950 (synopsis "Pattern-based MIDI sequencer")
952 "The Non Sequencer is a powerful, lightweight, real-time,
953 pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for
954 MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non
955 Sequencer happens on-line, in real-time. Music can be composed live, while the
956 transport is rolling.")
957 (license license:gpl2+))))
959 (define-public non-session-manager
960 (package (inherit non-sequencer)
961 (name "non-session-manager")
963 (substitute-keyword-arguments (package-arguments non-sequencer)
964 ((#:configure-flags flags)
965 `(cons "--project=session-manager"
966 (delete "--project=sequencer" ,flags)))))
972 `(("pkg-config" ,pkg-config)))
973 (home-page "http://non.tuxfamily.org/nsm/")
974 (synopsis "Audio session management")
976 "The Non Session Manager is an API and an implementation for audio
977 session management. NSM clients use a well-specified OSC protocol to
978 communicate with the session management daemon.")
979 (license license:gpl2+)))
981 (define-public non-mixer
982 (package (inherit non-sequencer)
985 (substitute-keyword-arguments (package-arguments non-sequencer)
986 ((#:configure-flags flags)
987 `(cons "--project=mixer"
988 (delete "--project=sequencer" ,flags)))))
996 `(("pkg-config" ,pkg-config)))
997 (home-page "http://non.tuxfamily.org/wiki/Non%20Mixer")
998 (synopsis "Modular digital audio mixer")
1000 "The Non Mixer is a powerful, reliable and fast modular digital audio
1001 mixer. It utilizes JACK for inter-application audio I/O and the NTK GUI
1002 toolkit for a fast and lightweight user interface. Non Mixer can be used
1003 alone or in concert with Non Timeline and Non Sequencer to form a complete
1005 (license license:gpl2+)))
1007 (define-public non-timeline
1008 (package (inherit non-sequencer)
1009 (name "non-timeline")
1011 (substitute-keyword-arguments (package-arguments non-sequencer)
1012 ((#:configure-flags flags)
1013 `(cons "--project=timeline"
1014 (delete "--project=sequencer" ,flags)))))
1018 ("libsndfile" ,libsndfile)
1021 `(("pkg-config" ,pkg-config)))
1022 (home-page "http://non.tuxfamily.org/wiki/Non%20Timeline")
1023 (synopsis "Modular digital audio timeline arranger")
1025 "The Non Timeline is a powerful, reliable and fast modular digital audio
1026 timeline arranger. It utilizes JACK for inter-application audio I/O and the
1027 NTK GUI toolkit for a fast and lightweight user interface. Non Timeline can
1028 be used alone or in concert with Non Mixer and Non Sequencer to form a
1030 (license license:gpl2+)))
1032 (define-public solfege
1039 "mirror://gnu/solfege/solfege-"
1043 "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i"))))
1044 (build-system gnu-build-system)
1046 `(#:tests? #f ; xmllint attempts to download DTD
1047 #:test-target "test"
1049 (modify-phases %standard-phases
1050 (add-after 'unpack 'fix-configuration
1051 (lambda* (#:key inputs #:allow-other-keys)
1052 (substitute* "default.config"
1053 (("/usr/bin/aplay") "aplay")
1054 (("/usr/bin/timidity") "timidity")
1055 (("/usr/bin/mpg123") "mpg123")
1056 (("/usr/bin/ogg123") "ogg123"))
1058 (add-before 'build 'patch-python-shebangs
1060 ;; Two python scripts begin with a Unicode BOM, so patch-shebang
1062 (substitute* '("solfege/parsetree.py"
1063 "solfege/presetup.py")
1064 (("#!/usr/bin/python") (string-append "#!" (which "python"))))
1066 (add-before 'build 'add-sitedirs
1067 ;; .pth files are not automatically interpreted unless the
1068 ;; directories containing them are added as "sites". The directories
1069 ;; are then added to those in the PYTHONPATH. This is required for
1070 ;; the operation of pygtk and pygobject.
1072 (substitute* "run-solfege.py"
1075 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))
1077 (add-before 'build 'adjust-config-file-prefix
1078 (lambda* (#:key outputs #:allow-other-keys)
1079 (substitute* "run-solfege.py"
1080 (("prefix = os.path.*$")
1081 (string-append "prefix = " (assoc-ref outputs "out"))))
1083 (add-after 'install 'wrap-program
1084 (lambda* (#:key inputs outputs #:allow-other-keys)
1085 ;; Make sure 'solfege' runs with the correct PYTHONPATH.
1086 (let* ((out (assoc-ref outputs "out"))
1087 (path (getenv "PYTHONPATH")))
1088 (wrap-program (string-append out "/bin/solfege")
1089 `("PYTHONPATH" ":" prefix (,path))))
1092 `(("python" ,python-2)
1093 ("pygtk" ,python2-pygtk)
1094 ("gettext" ,gettext-minimal)
1096 ("lilypond" ,lilypond)))
1098 `(("pkg-config" ,pkg-config)
1099 ("txt2man" ,txt2man)
1100 ("libxml2" ,libxml2) ; for tests
1101 ("ghostscript" ,ghostscript)
1102 ("texinfo" ,texinfo)))
1103 (home-page "https://www.gnu.org/software/solfege/")
1104 (synopsis "Ear training")
1106 "GNU Solfege is a program for practicing musical ear-training. With it,
1107 you can practice your recognition of various musical intervals and chords. It
1108 features a statistics overview so you can monitor your progress across several
1109 sessions. Solfege is also designed to be extensible so you can easily write
1111 (license license:gpl3+)))
1113 (define-public powertabeditor
1115 (name "powertabeditor")
1116 (version "2.0.0-alpha10")
1120 "https://github.com/powertab/powertabeditor/archive/"
1122 (file-name (string-append name "-" version ".tar.gz"))
1125 "1fr14ql0yhlqvh6y08yaanszm2nvca5i50rqym396kfvga3ky18x"))
1126 (modules '((guix build utils)))
1129 ;; Remove bundled sources for external libraries
1130 (delete-file-recursively "external")
1131 ;; Use only system libraries
1132 (substitute* "CMakeLists.txt"
1133 (("include\\( PTE_ThirdParty \\)")
1135 include(third_party/Qt)
1136 include(third_party/boost)
1137 add_library( Catch INTERFACE IMPORTED )
1138 add_library( rapidjson INTERFACE IMPORTED )"))
1140 (build-system cmake-build-system)
1142 `(#:modules ((guix build cmake-build-system)
1146 ;; CMake appears to lose the RUNPATH for some reason, so it has to be
1147 ;; explicitly set with CMAKE_INSTALL_RPATH.
1148 (list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
1149 (string-append "-DCMAKE_INSTALL_RPATH="
1150 (string-join (map (match-lambda
1152 (string-append directory "/lib")))
1153 %build-inputs) ";"))
1154 "-DPTE_DATA_DIR=share/powertabeditor")
1156 (modify-phases %standard-phases
1159 (zero? (system* "bin/pte_tests"
1160 ;; FIXME: these tests fail
1161 "exclude:Actions/EditStaff"
1162 "exclude:Formats/PowerTabOldImport/MergeMultiBarRests"
1163 "exclude:Score/ViewFilter/FilterRule"
1164 "exclude:Score/ViewFilter/ViewFilter"
1165 "exclude:Formats/PowerTabOldImport/Directions"
1167 ;; FIXME: This bug has been fixed upstream, but no release has been
1168 ;; made yet. See https://github.com/powertab/powertabeditor/issues/257
1169 (add-after 'unpack 'fix-boost-bug
1171 (substitute* "source/score/voiceutils.cpp"
1172 (("boost::rational<int> duration\\(4, pos.getDurationType\\(\\)\\);")
1173 "boost::rational<int> duration(4, static_cast<int>(pos.getDurationType()));"))
1175 (add-before 'configure 'remove-third-party-libs
1176 (lambda* (#:key inputs #:allow-other-keys)
1177 ;; Link with required static libraries, because we're not
1178 ;; using the bundled version of withershins.
1179 ;; Also add pthread for fixing a linker error.
1180 (substitute* "source/build/CMakeLists.txt"
1181 (("withershins" line)
1182 (string-append line "\n"
1183 (assoc-ref inputs "binutils")
1185 (assoc-ref inputs "libiberty")
1186 "/lib/libiberty.a\n"
1193 ("alsa-lib" ,alsa-lib)
1195 ("withershins" ,withershins)
1196 ("libiberty" ,libiberty) ;for withershins
1197 ("binutils" ,binutils) ;for -lbfd and -liberty (for withershins)
1198 ("timidity" ,timidity++)
1199 ("pugixml" ,pugixml)
1201 ("rapidjson" ,rapidjson)
1204 `(("catch" ,catch-framework)
1205 ("pkg-config" ,pkg-config)))
1206 (home-page "http://powertabs.net")
1207 (synopsis "Guitar tablature editor")
1209 "Power Tab Editor 2.0 is the successor to the famous original Power Tab
1210 Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
1211 (license license:gpl3+)))
1213 (define-public jalv-select
1215 (name "jalv-select")
1219 (uri (string-append "https://github.com/brummer10/jalv_select/"
1220 "archive/V" version ".tar.gz"))
1223 "0zraagwr681b5s3qifxf399c7q93jz23c8sr42gmff9zqnvxc75q"))))
1224 (build-system gnu-build-system)
1227 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1229 (modify-phases %standard-phases
1231 (add-after 'unpack 'ignore-PATH
1232 (lambda* (#:key inputs #:allow-other-keys)
1233 (substitute* "jalv.select.cpp"
1234 (("echo \\$PATH.*tr ':'.*xargs ls")
1235 (string-append "ls -1 " (assoc-ref inputs "jalv") "/bin")))
1236 (substitute* "jalv.select.h"
1237 (("gtkmm.h") "gtkmm-2.4/gtkmm.h"))
1243 ("gtkmm" ,gtkmm-2)))
1245 `(("pkg-config" ,pkg-config)))
1246 (home-page "https://github.com/brummer10/jalv_select")
1247 (synopsis "GUI to select LV2 plugins and run them with jalv")
1249 "The jalv.select package provides a graphical user interface allowing
1250 users to select LV2 plugins and run them with jalv.")
1251 (license license:public-domain)))
1253 (define-public synthv1
1260 (string-append "mirror://sourceforge/synthv1/synthv1/" version
1261 "/synthv1-" version ".tar.gz"))
1264 "141ah1gnv5r2k846v5ay15q9q90h01p74240a56vlxqh20z43g92"))))
1265 (build-system gnu-build-system)
1267 `(#:tests? #f ; There are no tests.
1269 '("CXXFLAGS=-std=gnu++11")))
1273 ("alsa-lib" ,alsa-lib)
1274 ("non-session-manager" ,non-session-manager)
1277 ("qttools" ,qttools)))
1279 `(("pkg-config" ,pkg-config)))
1280 (home-page "http://synthv1.sourceforge.net")
1281 (synopsis "Polyphonic subtractive synthesizer")
1283 "Synthv1 is an old-school subtractive polyphonic synthesizer with four
1284 oscillators and stereo effects.")
1285 (license license:gpl2+)))
1287 (define-public drumkv1
1294 (string-append "mirror://sourceforge/drumkv1/drumkv1/" version
1295 "/drumkv1-" version ".tar.gz"))
1298 "0fwxrfyp15a4m77mzz4mwj36mhdrj646whlrkvcys33p2w75f8cq"))))
1299 (build-system gnu-build-system)
1301 `(#:tests? #f ; There are no tests.
1303 '("CXXFLAGS=-std=gnu++11")))
1307 ("libsndfile" ,libsndfile)
1308 ("alsa-lib" ,alsa-lib)
1309 ("non-session-manager" ,non-session-manager)
1311 ("qtbase" ,qtbase)))
1313 `(("pkg-config" ,pkg-config)
1314 ("qttools" ,qttools)))
1315 (home-page "http://drumkv1.sourceforge.net")
1316 (synopsis "Drum-kit sampler synthesizer with stereo effects")
1318 "Drumkv1 is an old-school drum-kit sampler synthesizer with stereo
1320 (license license:gpl2+)))
1322 (define-public samplv1
1329 (string-append "mirror://sourceforge/samplv1/samplv1/" version
1330 "/samplv1-" version ".tar.gz"))
1333 "035bq7yfg1yirsqk63zwkzjw9dxl52lrzq9y0w7nga0vb11xdfij"))))
1334 (build-system gnu-build-system)
1336 `(#:tests? #f ; There are no tests.
1338 '("CXXFLAGS=-std=gnu++11")))
1342 ("libsndfile" ,libsndfile)
1343 ("alsa-lib" ,alsa-lib)
1344 ("non-session-manager" ,non-session-manager)
1346 ("qtbase" ,qtbase)))
1348 `(("pkg-config" ,pkg-config)
1349 ("qttools" ,qttools)))
1350 (home-page "http://samplv1.sourceforge.net")
1351 (synopsis "Polyphonic sampler synthesizer with stereo effects")
1353 "Samplv1 is an old-school polyphonic sampler synthesizer with stereo
1355 (license license:gpl2+)))
1357 (define-public padthv1
1364 (string-append "mirror://sourceforge/padthv1/padthv1/" version
1365 "/padthv1-" version ".tar.gz"))
1368 "1mikab2f9n5q1sfgnp3sbm1rf3v57k4085lsgh0a5gzga2h4hwxq"))))
1369 (build-system gnu-build-system)
1371 `(#:tests? #f ; There are no tests.
1373 '("CXXFLAGS=-std=gnu++11")))
1377 ("alsa-lib" ,alsa-lib)
1378 ("non-session-manager" ,non-session-manager)
1381 ("qtbase" ,qtbase)))
1383 `(("pkg-config" ,pkg-config)
1384 ("qttools" ,qttools)))
1385 (home-page "http://padthv1.sourceforge.net")
1386 (synopsis "Polyphonic additive synthesizer")
1388 "Padthv1 is an old-school polyphonic additive synthesizer with stereo
1389 effects. Padthv1 is based on the PADsynth algorithm by Paul Nasca, as a
1390 special variant of additive synthesis.")
1391 (license license:gpl2+)))
1393 (define-public amsynth
1400 (uri (string-append "https://github.com/amsynth/amsynth/releases/"
1401 "download/release-" version
1402 "/amsynth-" version ".tar.bz2"))
1405 "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
1406 (build-system gnu-build-system)
1409 (modify-phases %standard-phases
1410 (add-before 'configure 'set-flags
1412 ;; Compile with C++11, required by gtkmm.
1413 (setenv "CXXFLAGS" "-std=c++11")
1416 `(("alsa-lib" ,alsa-lib)
1420 ("libsndfile" ,libsndfile)
1422 ("gtkmm" ,gtkmm-2)))
1424 `(("pkg-config" ,pkg-config)
1425 ("intltool" ,intltool)))
1426 (home-page "http://amsynth.github.io")
1427 (synopsis "Analog modeling synthesizer")
1429 "amsynth is an easy-to-use software synthesizer with a classic
1430 subtractive synthesizer topology. Its features include: dual
1431 oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct
1432 resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato
1433 keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO
1434 which can modulate the oscillators, filter, and amplitude; distortion and
1436 (license license:gpl2+)))
1438 (define-public setbfree
1445 (string-append "https://github.com/pantherb/setBfree/archive/v"
1447 (file-name (string-append name "-" version ".tar.gz"))
1450 "0qfccny0hh9lq54272mzmxvfz2jmzcgigjkjwn6v9h6n00gi5bw4"))))
1451 (build-system gnu-build-system)
1453 `(#:tests? #f ; no "check" target
1455 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1456 (string-append "FONTFILE="
1457 (assoc-ref %build-inputs "font-bitstream-vera")
1458 "/share/fonts/truetype/VeraBd.ttf")
1459 ;; Disable unsupported optimization flags on non-x86
1460 ,@(let ((system (or (%current-target-system)
1461 (%current-system))))
1462 (if (or (string-prefix? "x86_64" system)
1463 (string-prefix? "i686" system))
1465 '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
1467 (modify-phases %standard-phases
1468 (add-before 'build 'set-CC-variable
1469 (lambda _ (setenv "CC" "gcc") #t))
1470 (delete 'configure))))
1474 ("zita-convolver" ,zita-convolver)
1477 ("font-bitstream-vera" ,font-bitstream-vera)))
1479 `(("help2man" ,help2man)
1480 ("pkg-config" ,pkg-config)))
1481 (home-page "http://setbfree.org")
1482 (synopsis "Tonewheel organ")
1484 "setBfree is a MIDI-controlled, software synthesizer designed to imitate
1485 the sound and properties of the electromechanical organs and sound
1486 modification devices that brought world-wide fame to the names and products of
1487 Laurens Hammond and Don Leslie.")
1488 (license license:gpl2+)))
1490 (define-public beast
1496 (uri (string-append "https://testbit.eu/pub/dists/beast/beast-"
1500 "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn"))))
1501 (build-system gnu-build-system)
1503 '(#:parallel-build? #f)) ; Race conditions cause build failures
1505 `(("rapicorn" ,rapicorn)
1506 ("guile" ,guile-1.8)
1507 ("python" ,python-2)
1508 ("libgnomecanvas" ,libgnomecanvas)
1512 ("alsa-lib" ,alsa-lib)
1513 ("libvorbis" ,libvorbis)
1514 ("gettext" ,gettext-minimal)))
1516 `(("pkg-config" ,pkg-config)
1517 ("glib:bin" ,glib "bin")
1518 ("cython" ,python2-cython)
1520 ("perl-xml-parser" ,perl-xml-parser)))
1521 (home-page "https://testbit.eu/wiki/Beast_Home")
1522 (synopsis "Music composition and modular synthesis environment")
1524 "Beast is a music composition and modular synthesis application. It
1525 supports a wide range of standards in the field, such as MIDI, various audio
1526 file formats and LADSPA modules. It allows for multitrack editing, real-time
1527 synthesis, 32bit audio rendering, precise timing down to sample granularity,
1528 on-demand and partial loading of wave files, on the fly decoding, stereo
1529 mixing, FFT scopes, MIDI automation and full scriptability in Scheme.")
1530 (license license:gpl3+)))
1532 (define-public bristol
1538 (uri (string-append "mirror://sourceforge/bristol/bristol/"
1539 (version-major+minor version)
1540 "/bristol-" version ".tar.gz"))
1543 "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
1544 (build-system gnu-build-system)
1547 (modify-phases %standard-phases
1548 (add-after 'unpack 'remove-sse-flags
1549 (lambda* (#:key system #:allow-other-keys)
1550 (when (not (or (string-prefix? "x86_64" system)
1551 (string-prefix? "i686" system)))
1552 (substitute* "bristol/Makefile.in"
1553 (("-msse -mfpmath=sse") "")))
1555 ;; alsa-lib 1.1.x no longer provides iatomic.h. That's okay because
1556 ;; bristol actually doesn't use it.
1557 (add-after 'unpack 'do-not-use-alsa-iatomic
1559 (substitute* "libbristolaudio/audioEngineJack.c"
1560 (("#include <alsa/iatomic.h>") ""))
1562 ;; We know that Bristol has been linked with JACK and we don't have
1563 ;; ldd, so we can just skip this check.
1564 (add-after 'unpack 'do-not-grep-for-jack
1566 (substitute* "bin/startBristol.in"
1567 (("ldd `which bristol` | grep jack") "echo guix"))
1570 `(("alsa-lib" ,alsa-lib)
1573 ("libx11" ,libx11)))
1575 `(("pkg-config" ,pkg-config)))
1576 (home-page "http://bristol.sourceforge.net/")
1577 (synopsis "Synthesizer emulator")
1579 "Bristol is an emulation package for a number of different 'classic'
1580 synthesizers including additive and subtractive and a few organs. The
1581 application consists of the engine, which is called bristol, and its own GUI
1582 library called brighton that represents all the emulations. There are
1583 currently more than twenty different emulations; each does sound different
1584 although the author maintains that the quality and accuracy of each emulation
1586 (license license:gpl3+)))
1588 (define-public tuxguitar
1595 "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-"
1596 version "/tuxguitar-" version "-src.tar.gz"))
1599 "041275vwfr82kass7wiq9g2y82w9qrbzfinzcvfij2f2q45njwmc"))
1600 (modules '((guix build utils)))
1603 ;; Delete pre-built classes
1604 (delete-file-recursively "TuxGuitar-android-gdrive/bin")
1605 (delete-file-recursively "TuxGuitar-android-gdrive-gdaa/bin")
1607 (build-system ant-build-system)
1609 `(#:build-target "build"
1611 #:tests? #f ; no tests
1613 (modify-phases %standard-phases
1614 (add-after 'unpack 'enter-dir
1615 (lambda _ (chdir "TuxGuitar-lib") #t))
1616 (add-after 'build 'build-libraries
1617 (lambda* (#:key inputs outputs #:allow-other-keys)
1618 (let* ((initial-classpath (getenv "CLASSPATH"))
1619 (build-dir (lambda (dir)
1622 (string-join (cons initial-classpath
1623 (find-files (getcwd) "\\.jar$"))
1626 (if (file-exists? "build.xml")
1627 ((assoc-ref %standard-phases 'build)
1628 #:build-target "build")
1630 ;; Generate default build.xml
1631 ((@@ (guix build ant-build-system) default-build.xml)
1632 (string-append (string-downcase dir) ".jar")
1633 (string-append (assoc-ref outputs "out")
1635 ((assoc-ref %standard-phases 'build)))))))
1636 (map build-dir '("TuxGuitar-editor-utils"
1637 "TuxGuitar-ui-toolkit"
1638 "TuxGuitar-ui-toolkit-swt"
1639 "TuxGuitar-awt-graphics")))))
1640 (add-after 'build-libraries 'build-application
1642 (chdir "../TuxGuitar")
1643 ((assoc-ref %standard-phases 'build)
1644 #:build-target "build")))
1646 (lambda* (#:key inputs outputs #:allow-other-keys)
1647 (let* ((out (assoc-ref outputs "out"))
1648 (bin (string-append out "/bin"))
1649 (share (string-append out "/share"))
1650 (lib (string-append share "/java"))
1651 (swt (assoc-ref inputs "java-swt")))
1654 (for-each (lambda (file)
1655 (install-file file lib))
1656 (find-files ".." "\\.jar$"))
1658 ;; install all resources
1659 (copy-recursively "share" share)
1662 (call-with-output-file (string-append bin "/tuxguitar")
1664 (let ((classpath (string-join (append (find-files lib "\\.jar$")
1665 (find-files swt "\\.jar$"))
1669 (string-append "#!/bin/sh\n"
1672 " -Dtuxguitar.home.path=" out
1673 " -Dtuxguitar.share.path=" out "/share"
1674 " -Dswt.library.path=" swt "/lib"
1675 " org.herac.tuxguitar.app.TGMainSingleton"
1676 " \"$1\" \"$2\"")))))
1677 (chmod (string-append bin "/tuxguitar") #o555)
1680 `(("java-swt" ,java-swt)))
1681 (home-page "http://tuxguitar.pw")
1682 (synopsis "Multitrack tablature editor and player")
1684 "TuxGuitar is a guitar tablature editor with player support through midi.
1685 It can display scores and multitrack tabs. TuxGuitar provides various
1686 additional features, including autoscrolling while playing, note duration
1687 management, bend/slide/vibrato/hammer-on/pull-off effects, support for
1688 tuplets, time signature management, tempo management, gp3/gp4/gp5 import and
1690 (license license:lgpl2.1+)))
1699 (string-append "http://msp.ucsd.edu/Software/pd-"
1700 version ".src.tar.gz"))
1703 "0k5s949kqd7yw97h3m8z81bjz32bis9m4ih8df1z0ymipnafca67"))))
1704 (build-system gnu-build-system)
1706 `(#:tests? #f ; no "check" target
1708 (modify-phases %standard-phases
1709 (add-before 'configure 'fix-wish-path
1711 (substitute* "src/s_inter.c"
1712 ((" wish ") (string-append " " (which "wish8.6") " ")))
1713 (substitute* "tcl/pd-gui.tcl"
1714 (("exec wish ") (string-append "exec " (which "wish8.6") " ")))
1716 (add-after 'unpack 'autoconf
1717 (lambda _ (zero? (system* "bash" "./autogen.sh")))))))
1719 `(("autoconf" ,autoconf)
1720 ("automake" ,automake)
1721 ("libtool" ,libtool)
1722 ("gettext" ,gettext-minimal)
1723 ("pkg-config" ,pkg-config)))
1726 ("alsa-lib" ,alsa-lib)
1728 (home-page "http://puredata.info")
1729 (synopsis "Visual programming language for artistic performances")
1731 "Pure Data (aka Pd) is a visual programming language. Pd enables
1732 musicians, visual artists, performers, researchers, and developers to create
1733 software graphically, without writing lines of code. Pd is used to process
1734 and generate sound, video, 2D/3D graphics, and interface sensors, input
1735 devices, and MIDI. Pd can easily work over local and remote networks to
1736 integrate wearable technology, motor systems, lighting rigs, and other
1737 equipment. Pd is suitable for learning basic multimedia processing and visual
1738 programming methods as well as for realizing complex systems for large-scale
1740 (license license:bsd-3)))
1742 (define-public portmidi
1748 (uri (string-append "mirror://sourceforge/portmedia/portmidi/"
1749 version "/portmidi-src-" version ".zip"))
1752 "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88"))
1753 (patches (list (search-patch "portmidi-modular-build.patch")))))
1754 (build-system cmake-build-system)
1756 `(#:tests? #f ; tests cannot be linked
1758 (list "-DPORTMIDI_ENABLE_JAVA=Off"
1759 "-DCMAKE_BUILD_TYPE=Release" ; needed to have PMALSA set
1760 "-DPORTMIDI_ENABLE_TEST=Off"))) ; tests fail linking
1762 `(("alsa-lib" ,alsa-lib)))
1764 `(("unzip" ,unzip)))
1765 (home-page "http://portmedia.sourceforge.net/portmidi/")
1766 (synopsis "Library for MIDI I/O")
1768 "PortMidi is a library supporting real-time input and output of MIDI data
1769 using a system-independent interface.")
1770 (license license:expat)))
1772 (define-public portmidi-for-extempore
1773 (package (inherit portmidi)
1774 (name "portmidi-for-extempore")
1778 (uri (string-append "https://github.com/extemporelang/portmidi/"
1779 "archive/" version ".tar.gz"))
1780 (file-name (string-append name "-" version ".tar.gz"))
1783 "0gjikwciyr8kk4y3qiv1pcq58xpgw38ql1m2gs6g0qc1s8sx4235"))))
1784 (build-system cmake-build-system)
1785 (arguments `(#:tests? #f)) ; no tests
1787 ;; Extempore refuses to build on architectures other than x86_64
1788 (supported-systems '("x86_64-linux"))
1789 (home-page "https://github.com/extemporelang/portmidi/")))
1791 (define-public python-pyportmidi
1793 (name "python-pyportmidi")
1794 (version (package-version portmidi))
1795 (source (package-source portmidi))
1796 (build-system python-build-system)
1798 `(#:tests? #f ; no tests included
1800 (modify-phases %standard-phases
1801 (add-after 'unpack 'enter-dir
1802 (lambda _ (chdir "pm_python") #t))
1803 (add-after 'enter-dir 'fix-setup.py
1805 (substitute* "setup.py"
1806 ;; Use Python 3 syntax
1807 (("print (\".*\")" _ text)
1808 (string-append "print(" text ")\n"))
1809 ;; TODO.txt and CHANGES.txt don't exist
1810 (("CHANGES =.*") "CHANGES = \"\"\n")
1811 (("TODO =.*") "TODO = \"\"\n"))
1814 `(("portmidi" ,portmidi)
1815 ("alsa-lib" ,alsa-lib)))
1817 `(("python-cython" ,python-cython)
1819 (home-page "http://portmedia.sourceforge.net/portmidi/")
1820 (synopsis "Python bindings to PortMidi")
1822 "This package provides Python bindings to the PortMidi library.")
1823 (license license:expat)))
1825 (define-public frescobaldi
1827 (name "frescobaldi")
1832 "https://github.com/wbsoft/frescobaldi/releases/download/v"
1833 version "/frescobaldi-" version ".tar.gz"))
1836 "15cqhbjbjikr7ljgiq56bz2gxrr38j8p0f78p2vhyzydaviy9a2z"))))
1837 (build-system python-build-system)
1838 (arguments `(#:tests? #f)) ; no tests included
1840 `(("lilypond" ,lilypond)
1841 ("portmidi" ,portmidi)
1842 ("python-pyqt" ,python-pyqt)
1843 ("python-ly" ,python-ly)
1844 ("python-pyportmidi" ,python-pyportmidi)
1845 ("poppler" ,poppler)
1846 ("python-poppler-qt5" ,python-poppler-qt5)
1847 ("python-sip" ,python-sip)))
1848 (home-page "http://www.frescobaldi.org/")
1849 (synopsis "LilyPond sheet music text editor")
1851 "Frescobaldi is a LilyPond sheet music text editor with syntax
1852 highlighting and automatic completion. Among other things, it can render
1853 scores next to the source, can capture input from MIDI or read MusicXML and
1854 ABC files, has a MIDI player for proof-listening, and includes a documentation
1856 (license license:gpl2+)))
1858 (define-public drumstick
1864 (uri (string-append "mirror://sourceforge/drumstick/"
1865 version "/drumstick-" version ".tar.bz2"))
1868 "13pkfqrav30bbcddgf1imd7jk6lpqbxkz1qv31718pdl446jq7df"))))
1869 (build-system cmake-build-system)
1871 `(#:tests? #f ; no test target
1872 #:configure-flags '("-DLIB_SUFFIX=")
1874 (modify-phases %standard-phases
1875 (add-before 'configure 'fix-docbook
1876 (lambda* (#:key inputs #:allow-other-keys)
1877 (substitute* "cmake_admin/CreateManpages.cmake"
1878 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1879 (string-append (assoc-ref inputs "docbook-xsl")
1880 "/xml/xsl/docbook-xsl-"
1881 ,(package-version docbook-xsl)
1882 "/manpages/docbook.xsl")))
1885 `(("qtbase" ,qtbase)
1887 ("alsa-lib" ,alsa-lib)
1888 ("fluidsynth" ,fluidsynth)))
1890 `(("pkg-config" ,pkg-config)
1891 ("libxslt" ,libxslt) ;for xsltproc
1892 ("docbook-xsl" ,docbook-xsl)
1893 ("doxygen" ,doxygen)))
1894 (home-page "http://drumstick.sourceforge.net/")
1895 (synopsis "C++ MIDI library")
1897 "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It
1898 includes a C++ wrapper around the ALSA library sequencer interface. A
1899 complementary library provides classes for processing SMF (Standard MIDI
1900 files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A
1901 multiplatform realtime MIDI I/O library is also provided with various output
1902 backends, including ALSA, OSS, Network and FluidSynth.")
1903 (license license:gpl2+)))
1905 (define-public zynaddsubfx
1907 (name "zynaddsubfx")
1912 "mirror://sourceforge/zynaddsubfx/zynaddsubfx/"
1913 version "/zynaddsubfx-" version ".tar.bz2"))
1916 "1hfpiqdm337gl4ynkmmp2qss2m5z8mzqzjrbiyg6w1v4js7l9phi"))))
1917 (build-system cmake-build-system)
1920 (modify-phases %standard-phases
1921 ;; Move SSE compiler optimization flags from generic target to
1922 ;; athlon64 and core2 targets, because otherwise the build would fail
1923 ;; on non-Intel machines.
1924 (add-after 'unpack 'remove-sse-flags-from-generic-target
1926 (substitute* "src/CMakeLists.txt"
1927 (("-msse -msse2 -mfpmath=sse") "")
1928 (("-march=(athlon64|core2)" flag)
1929 (string-append flag " -msse -msse2 -mfpmath=sse")))
1935 ("alsa-lib" ,alsa-lib)
1938 ("minixml" ,minixml)
1942 `(("pkg-config" ,pkg-config)))
1943 (home-page "http://zynaddsubfx.sf.net/")
1944 (synopsis "Software synthesizer")
1946 "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
1947 three synthesizer engines, multitimbral and polyphonic synths, microtonal
1948 capabilities, custom envelopes, effects, etc.")
1949 (license license:gpl2)))
1951 (define-public yoshimi
1957 (uri (string-append "mirror://sourceforge/yoshimi/"
1958 (version-major+minor version)
1959 "/yoshimi-" version ".tar.bz2"))
1962 "0bjfhfslpa2hjrc9h38m7dlr62953w9n4cvkgvfy495cbym12dak"))))
1963 (build-system cmake-build-system)
1965 `(#:tests? #f ; there are no tests
1967 (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR="
1968 (assoc-ref %outputs "out") "/share"))
1970 (modify-phases %standard-phases
1971 (add-before 'configure 'enter-dir
1972 (lambda _ (chdir "src") #t))
1973 ;; Move SSE compiler optimization flags from generic target to
1974 ;; athlon64 and core2 targets, because otherwise the build would fail
1975 ;; on non-Intel machines.
1976 (add-after 'unpack 'remove-sse-flags-from-generic-target
1978 (substitute* "src/CMakeLists.txt"
1979 (("-msse -msse2 -mfpmath=sse") "")
1980 (("-march=(athlon64|core2)" flag)
1981 (string-append flag " -msse -msse2 -mfpmath=sse")))
1986 ("alsa-lib" ,alsa-lib)
1988 ("fontconfig" ,fontconfig)
1989 ("minixml" ,minixml)
1993 ("readline" ,readline)
1994 ("ncurses" ,ncurses)
1998 `(("pkg-config" ,pkg-config)))
1999 (home-page "http://yoshimi.sourceforge.net/")
2000 (synopsis "Multi-paradigm software synthesizer")
2002 "Yoshimi is a fork of ZynAddSubFX, a feature-heavy real-time software
2003 synthesizer. It offers three synthesizer engines, multitimbral and polyphonic
2004 synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi
2005 improves on support for JACK features, such as JACK MIDI.")
2006 (license license:gpl2)))
2008 (define-public libgig
2014 (uri (string-append "http://download.linuxsampler.org/packages/"
2015 "libgig-" version ".tar.bz2"))
2018 "1wr8mwjmqpnyz6bx9757lspiii1zzn8zfbqsvn2ipzpgqkxv6kaz"))))
2019 (build-system gnu-build-system)
2021 `(("libuuid" ,util-linux)
2022 ("libsndfile" ,libsndfile)))
2024 `(("pkg-config" ,pkg-config)))
2025 (home-page "http://linuxsampler.org/libgig/")
2026 (synopsis "C++ library for working with Gigasampler (.gig) files")
2028 "Libgig is a C++ library for loading, modifying existing and creating new
2029 Gigasampler (.gig) files and DLS (Downloadable Sounds) Level 1/2 files, KORG
2030 sample based instruments (.KSF and .KMP files), SoundFont v2 (.sf2) files and
2031 AKAI sampler data. The package includes a couple of command line tools based
2033 ;; The library and tools are released under the GPL, except the AKAI
2034 ;; classes which are released under the LGPL.
2035 (license (list license:gpl2+ license:lgpl2.1+))))
2037 (define-public jack-keyboard
2039 (name "jack-keyboard")
2044 (uri (string-append "mirror://sourceforge/jack-keyboard/jack-keyboard/"
2045 version "/jack-keyboard-" version ".tar.gz"))
2048 "0mzmg8aavybcfdlq2yd9d0vscqd6is5p6jzrgfpfm5j3xdcvh2s3"))))
2049 (build-system gnu-build-system)
2055 `(("pkg-config" ,pkg-config)))
2056 (home-page "http://jack-keyboard.sourceforge.net/")
2057 (synopsis "Virtual MIDI keyboard")
2058 (description "Jack-keyboard is a virtual MIDI keyboard, a program that
2059 allows you to send JACK MIDI events (i.e. play) using your PC keyboard.")
2060 (license license:bsd-2)))
2062 (define-public jack-capture
2064 (name "jack-capture")
2069 (url "https://github.com/kmatheussen/jack_capture.git")
2071 (file-name (string-append name "-" version "-checkout"))
2074 "0jcqky96q8xgya6wqv1p8pj9fkf2wh7ynl67ah7x5bn3basgfclf"))))
2075 (build-system gnu-build-system)
2078 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2079 #:tests? #f ; there are none
2081 (modify-phases %standard-phases
2082 (delete 'configure))))
2084 `(("pkg-config" ,pkg-config)
2092 ("libsndfile" ,libsndfile)))
2093 (home-page "https://github.com/kmatheussen/jack_capture")
2094 (synopsis "Program for recording sound files with JACK")
2095 (description "This is a program for recording sound files with JACK. It
2096 can connect to any JACK port and record the output into a stereo WAV file.")
2097 (license license:gpl2+)))
2099 (define-public cursynth
2106 (uri (string-append "mirror://gnu/cursynth/cursynth-"
2109 (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v"))
2110 (patches (search-patches "cursynth-wave-rand.patch"))))
2111 (build-system gnu-build-system)
2112 (native-inputs `(("pkg-config" ,pkg-config)))
2113 ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently
2114 ;; prevents us from using pulseaudio
2115 (inputs `(("ncurses" ,ncurses)
2116 ("alsa" ,alsa-lib)))
2117 (home-page "https://www.gnu.org/software/cursynth/")
2118 (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses")
2119 (description "GNU cursynth is a polyphonic synthesizer that runs
2120 graphically in the terminal. It is built on a full-featured subtractive
2121 synthesis engine. Notes and parameter changes may be entered via MIDI or the
2122 computer's keyboard.")
2123 (license license:gpl3+)))
2125 (define-public aj-snapshot
2127 (name "aj-snapshot")
2131 (uri (string-append "mirror://sourceforge/aj-snapshot/"
2132 "aj-snapshot-" version ".tar.bz2"))
2135 "0yxccgp9qw2cyqv719wlbq8wfsr5ga8czvwa7bmb8dh5s11n3rn8"))))
2136 (build-system gnu-build-system)
2138 `(("minixml" ,minixml)
2140 ("alsa-lib" ,alsa-lib)))
2142 `(("pkg-config" ,pkg-config)))
2143 (home-page "http://aj-snapshot.sourceforge.net/")
2144 (synopsis "Snapshot connections between ALSA and JACK clients")
2145 (description "Aj-snapshot is a small program that can be used to make
2146 snapshots of the connections made between JACK and/or ALSA clients. Because
2147 JACK can provide both audio and MIDI support to programs, aj-snapshot can
2148 store both types of connections for JACK. ALSA, on the other hand, only
2149 provides routing facilities for MIDI clients. Aj-snapshot is meant to be used
2150 from the command line.")
2151 (license license:gpl3+)))
2153 (define-public qtractor
2159 (uri (string-append "http://downloads.sourceforge.net/qtractor/"
2160 "qtractor-" version ".tar.gz"))
2163 "0qf75bccsyplx6fcaz48k6027yp06zhl8ixhhjdbr30xgpslnjm3"))))
2164 (build-system gnu-build-system)
2165 (arguments `(#:tests? #f)) ; no "check" target
2168 ("qtx11extras" ,qtx11extras)
2169 ("alsa-lib" ,alsa-lib)
2171 ("libsndfile" ,libsndfile)
2176 ("libsamplerate" ,libsamplerate)
2177 ("libvorbis" ,libvorbis)
2179 ("rubberband" ,rubberband)
2183 `(("pkg-config" ,pkg-config)
2184 ("qttools" ,qttools)))
2185 (home-page "http://qtractor.org/")
2186 (synopsis "Audio/MIDI multi-track sequencer")
2188 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
2189 JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
2190 follows a traditional multi-track tape recorder control paradigm.")
2191 (license license:gpl2+)))
2193 (define-public ams-lv2
2200 (uri (string-append "https://github.com/blablack/ams-lv2/"
2201 "archive/" version ".tar.gz"))
2202 (file-name (string-append name "-" version ".tar.gz"))
2205 "1xacxyzqcj83g9c1gwfn36gg1c6yi15v7km4vidfidrjzb4x27fq"))))
2206 (build-system waf-build-system)
2209 (modify-phases %standard-phases
2210 (add-after 'unpack 'remove-sse-flags
2211 (lambda* (#:key system #:allow-other-keys)
2212 (when (not (or (string-prefix? "x86_64" system)
2213 (string-prefix? "i686" system)))
2214 (substitute* "wscript"
2215 (("'-msse', '-mfpmath=sse', ") ""))
2217 #:tests? #f)) ; no tests
2226 `(("pkg-config" ,pkg-config)))
2227 (home-page "https://objectivewave.wordpress.com/ams-lv2/")
2228 (synopsis "Port of Alsa Modular Synth internal modules into LV2")
2229 (description "This set of LV2 plugins is a port of the internal modules
2230 found in Alsa Modular Synth. These plugins are used to create modular
2231 synthesizers and contain: VCO, VCF, VCA, LFO, slew limiter, envelopes, sample
2233 (license license:gpl2)))
2235 (define-public gxtuner
2241 (uri (string-append "https://github.com/brummer10/gxtuner/"
2242 "archive/v" version ".tar.gz"))
2243 (file-name (string-append name "-" version ".tar.gz"))
2246 "1hn5qjac7qd00v0sp7ijhhc3sb26ks9bni06nngivva21h61xrjr"))))
2247 (build-system gnu-build-system)
2250 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2251 (string-append "INCLUDE_L_DIR="
2252 (assoc-ref %build-inputs "zita-resampler")
2255 (modify-phases %standard-phases
2256 (delete 'configure))))
2262 ("zita-resampler" ,zita-resampler)))
2264 `(("pkg-config" ,pkg-config)))
2265 (home-page "https://github.com/brummer10/gxtuner")
2266 (synopsis "Guitar tuner")
2267 (description "GXtuner is a simple guitar tuner for JACK with an
2268 analogue-like user interface.")
2269 (license license:gpl2+)))
2271 (define-public mod-host
2272 ;; The last release was in 2014 but since then more than 140 commits have
2274 (let ((commit "299a3977476e8eb0285837fbd7522cec506a11de")
2278 (version (string-append "0.10.6-" revision "." (string-take commit 9)))
2282 (url "https://github.com/moddevices/mod-host")
2286 "128q7p5mph086v954rqnafalfbkyvhgwclaq6ks6swrhj45wnag6"))
2287 (file-name (string-append name "-" version "-checkout"))))
2288 (build-system gnu-build-system)
2290 `(#:tests? #f ; no tests included
2292 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2295 (modify-phases %standard-phases
2297 (add-after 'unpack 'fix-jack-installation-directory
2299 ;; Do not attempt to install files to output of "jack" package.
2300 (substitute* "Makefile"
2301 (("\\$\\(shell pkg-config --variable=libdir jack\\)")
2310 ("readline" ,readline)))
2312 `(("pkg-config" ,pkg-config)
2313 ("python" ,python-2)))
2314 (home-page "https://github.com/moddevices/mod-host")
2315 (synopsis "LV2 host for Jack controllable via socket or command line")
2316 (description "mod-host is an LV2 plugin host for JACK, controllable via
2317 socket or command line.")
2318 (license license:gpl3+))))
2320 (define-public curseradio
2321 (let ((commit "1bd4bd0faeec675e0647bac9a100b526cba19f8d")
2325 (version (git-version "0" revision commit))
2329 (url "https://github.com/chronitis/curseradio.git")
2331 (file-name (git-file-name name version))
2334 "11bf0jnj8h2fxhpdp498189r4s6b47vy4wripv0z4nx7lxajl88i"))))
2335 (build-system python-build-system)
2337 `(("python-lxml" ,python-lxml)
2338 ("python-requests" ,python-requests)
2339 ("python-pyxdg" ,python-pyxdg)
2341 (home-page "https://github.com/chronitis/curseradio")
2342 (synopsis "Command-line Internet radio player")
2343 (description "Curseradio is a Curses-based radio player that uses a
2344 tune-in sender list from @url{http://opml.radiotime.com}.")
2345 (license license:expat))))
2347 (define-public pianobar
2350 (version "2016.06.02")
2353 (uri (string-append "https://github.com/PromyLOPh/"
2354 name "/archive/" version ".tar.gz"))
2355 (file-name (string-append name "-" version ".tar.gz"))
2358 "1hi5rr6jcr0kwf4xfz007ndwkjkp287lhwlsgfz6iryqa5n6jzcp"))))
2359 (build-system gnu-build-system)
2361 `(#:tests? #f ; no tests
2362 #:make-flags (list "CC=gcc" "CFLAGS=-std=c99"
2363 (string-append "PREFIX=" %output))
2364 #:phases (modify-phases %standard-phases
2365 (delete 'configure))))
2369 ("libgcrypt" ,libgcrypt)
2371 ("ffmpeg" ,ffmpeg)))
2373 `(("pkg-config" ,pkg-config)))
2374 (home-page "http://6xq.net/projects/pianobar/")
2375 (synopsis "Console-based pandora.com player")
2376 (description "pianobar is a console-based music player for the
2377 personalized online radio pandora.com. It has configurable keys for playing
2378 and managing stations, can be controlled remotely via fifo, and can run
2379 event-based scripts for scrobbling, notifications, etc.")
2380 (license license:expat)))
2382 (define-public python-mutagen
2384 (name "python-mutagen")
2388 (uri (pypi-uri "mutagen" version))
2391 "0rl7sxn1rcjl48fwga3dqf9f6pzspsny4ngxyf6pp337mrq0z693"))))
2392 (build-system python-build-system)
2394 `(("python-pytest" ,python-pytest)))
2395 (home-page "https://bitbucket.org/lazka/mutagen")
2396 (synopsis "Read and write audio tags")
2397 (description "Mutagen is a Python module to handle audio metadata. It
2398 supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
2399 Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
2400 of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
2401 Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
2402 APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
2403 streams on an individual packet/page level.")
2404 (license license:gpl2))) ; "later version" never mentioned
2406 (define-public python2-mutagen
2407 (package-with-python2 python-mutagen))
2409 (define-public python-musicbrainzngs
2411 (name "python-musicbrainzngs")
2415 (uri (pypi-uri "musicbrainzngs" version))
2418 "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8"))))
2419 (build-system python-build-system)
2421 '(;; The tests fail suffer from race conditions:
2422 ;; https://github.com/alastair/python-musicbrainzngs/issues/211
2424 (home-page "https://python-musicbrainzngs.readthedocs.org/")
2425 (synopsis "Python bindings for MusicBrainz NGS webservice")
2426 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
2427 web service. This library can be used to retrieve music metadata from the
2428 MusicBrainz database.")
2429 ;; 'musicbrainzngs/compat.py' is ISC licensed.
2430 (license (list license:bsd-2 license:isc))))
2432 (define-public python2-musicbrainzngs
2433 (package-with-python2 python-musicbrainzngs))
2435 (define-public python2-pyechonest
2437 (name "python2-pyechonest")
2441 (uri (pypi-uri "pyechonest" version))
2444 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
2445 (build-system python-build-system)
2447 `(;; Python 3 is not supported:
2448 ;; https://github.com/echonest/pyechonest/issues/42
2449 #:python ,python-2))
2450 (home-page "https://github.com/echonest/pyechonest")
2451 (synopsis "Python interface to The Echo Nest APIs")
2452 (description "Pyechonest is a Python library for the Echo Nest API. With
2453 Pyechonest you have Python access to the entire set of API methods including:
2456 @item artist - search for artists by name, description, or attribute, and get
2457 back detailed information about any artist including audio, similar artists,
2458 blogs, familiarity, hotttnesss, news, reviews, urls and video.
2459 @item song - search songs by artist, title, description, or attribute (tempo,
2460 duration, etc) and get detailed information back about each song, such as
2461 hotttnesss, audio_summary, or tracks.
2462 @item track - upload a track to the Echo Nest and receive summary information
2463 about the track including key, duration, mode, tempo, time signature along with
2464 detailed track info including timbre, pitch, rhythm and loudness information.
2466 (license license:bsd-3)))
2468 (define-public python-pylast
2470 (name "python-pylast")
2474 (uri (pypi-uri "pylast" version))
2477 "0r9h7g8i8l2mgqjwkda3v6prfbkb2im5kap1az9ppmhjm9i4jkcf"))))
2478 (build-system python-build-system)
2479 ;; Tests require network access. See
2480 ;; https://github.com/pylast/pylast/issues/105
2481 (arguments '(#:tests? #f))
2483 `(("python-coverage" ,python-coverage)
2484 ("python-pycodestyle" ,python-pycodestyle)
2485 ("python-mock" ,python-mock)
2486 ("python-pep8" ,python-pep8)
2487 ("python-pytest" ,python-pytest)
2488 ("python-flaky" ,python-flaky)
2489 ("python-pyflakes" ,python-pyflakes)
2490 ("python-pyyaml" ,python-pyyaml)))
2492 `(("python-six" ,python-six)))
2493 (home-page "https://github.com/pylast/pylast")
2494 (synopsis "Python interface to Last.fm and Libre.fm")
2495 (description "A Python interface to Last.fm and other API-compatible
2496 websites such as Libre.fm.")
2497 (license license:asl2.0)))
2499 (define-public python2-pylast
2500 (package-with-python2 python-pylast))
2502 (define-public instantmusic
2503 (let ((commit "300891d09c703525215fa5a116b9294af1c923c8")
2506 (name "instantmusic")
2507 (version (git-version "1.0" revision commit))
2511 (url "https://github.com/yask123/Instant-Music-Downloader.git")
2513 (file-name (git-file-name name version))
2516 "0j7qivaa04bpdz3anmgci5833dgiyfqqwq9fdrpl9m68b34gl773"))))
2517 (build-system python-build-system)
2519 `(("python-requests" ,python-requests)
2521 ("python-beautifulsoup4" ,python-beautifulsoup4)
2522 ("youtube-dl" ,youtube-dl)))
2524 '(#:modules ((guix build python-build-system)
2527 #:phases (modify-phases %standard-phases
2528 (add-before 'build 'change-directory
2530 (chdir "instantmusic-0.1") #t))
2531 (add-before 'check 'fix-file-permissions
2533 ;; Fix some read-only files that would cause a build failure
2534 (for-each (cut chmod <> #o644)
2535 (find-files "instantmusic.egg-info"
2536 "PKG-INFO|.*\\.txt"))
2538 (home-page "http://iyask.me/Instant-Music-Downloader/")
2539 (synopsis "Command-line program to download a song from YouTube")
2540 (description "InstantMusic downloads a song from YouTube in MP3 format.
2541 Songs can be searched by artist, name or even by a part of the song text.")
2542 (license license:expat))))
2544 (define-public beets
2550 (uri (pypi-uri "beets" version))
2553 "0l2vfrknwcsm6bn83m7476qrz45qwgxcb5k0h7kn96kr70irn1v2"))))
2554 (build-system python-build-system)
2557 (modify-phases %standard-phases
2558 (add-after 'unpack 'set-HOME
2559 (lambda _ (setenv "HOME" (string-append (getcwd) "/tmp"))))
2561 (lambda _ (zero? (system* "nosetests" "-v")))))))
2563 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2564 ("python-flask" ,python-flask)
2565 ("python-mock" ,python-mock)
2566 ("python-mpd2" ,python-mpd2)
2567 ("python-nose" ,python-nose)
2568 ("python-pathlib" ,python-pathlib)
2569 ("python-pyxdg" ,python-pyxdg)
2570 ("python-pylast" ,python-pylast)
2571 ("python-rarfile" ,python-rarfile)
2572 ("python-responses" ,python-responses)))
2573 ;; TODO: Install optional plugins and dependencies.
2575 `(("python-discogs-client" ,python-discogs-client)
2576 ("python-jellyfish" ,python-jellyfish)
2577 ("python-munkres" ,python-munkres)
2578 ("python-musicbrainzngs" ,python-musicbrainzngs)
2579 ("python-mutagen" ,python-mutagen)
2580 ("python-pyyaml" ,python-pyyaml)
2581 ("python-unidecode" ,python-unidecode)))
2582 (home-page "http://beets.io")
2583 (synopsis "Music organizer")
2584 (description "The purpose of beets is to get your music collection right
2585 once and for all. It catalogs your collection, automatically improving its
2586 metadata as it goes using the MusicBrainz database. Then it provides a variety
2587 of tools for manipulating and accessing your music.")
2588 (license license:expat)))
2590 (define-public milkytracker
2592 (name "milkytracker")
2596 (uri (string-append "https://github.com/milkytracker/"
2597 "MilkyTracker/archive/v"
2599 (file-name (string-append name "-" version ".tar.gz"))
2602 "1dvnddsnn9c83lz4dlm0cfjpc0m524amfkbalxbswdy0qc8cj1wv"))
2603 (modules '((guix build utils)))
2604 ;; Remove non-FSDG compliant sample songs.
2607 (delete-file-recursively "resources/music")
2608 (substitute* "CMakeLists.txt"
2609 (("add_subdirectory\\(resources/music\\)") ""))))))
2610 (build-system cmake-build-system)
2612 '(#:tests? #f ; no check target
2613 ;; This flag ensures that MilkyTracker links with the JACK library.
2614 #:configure-flags '("-DCMAKE_CXX_FLAGS=-ljack")))
2616 `(("alsa-lib" ,alsa-lib)
2621 `(("pkg-config" ,pkg-config)))
2622 (synopsis "Music tracker for working with .MOD/.XM module files")
2623 (description "MilkyTracker is a music application for creating .MOD and .XM
2624 module files. It attempts to recreate the module replay and user experience of
2625 the popular DOS program Fasttracker II, with special playback modes available
2626 for improved Amiga ProTracker 2/3 compatibility.")
2627 (home-page "http://milkytracker.titandemo.org/")
2628 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2629 (license (list license:bsd-3 license:gpl3+))))
2631 (define-public schismtracker
2633 (name "schismtracker")
2634 (version "20170910")
2638 "https://github.com/" name "/" name "/archive/"
2640 (file-name (string-append name "-" version ".tar.gz"))
2643 "01gfcjngbpv87y9w5jln8k313hycpkb1d617hdy2cdw2hxqzlclz"))
2644 (modules '((guix build utils)))
2646 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2647 `(substitute* "schism/version.c"
2648 (("Schism Tracker built %s %s.*$")
2649 (string-append "Schism Tracker version " ,version "\");"))))))
2650 (build-system gnu-build-system)
2653 (modify-phases %standard-phases
2654 (add-after 'unpack 'autoconf
2655 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
2656 (add-before 'configure 'link-libm
2657 (lambda _ (setenv "LIBS" "-lm") #t)))))
2659 `(("autoconf" ,autoconf)
2660 ("automake" ,automake)
2661 ("python" ,python)))
2663 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2665 ("libxext" ,libxext)
2667 (home-page "http://schismtracker.org")
2668 (synopsis "Oldschool sample-based music composition tool")
2670 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2671 create high quality music without the requirements of specialized, expensive
2672 equipment, and with a unique \"finger feel\" that is difficult to replicate in
2673 part. The player is based on a highly modified version of the ModPlug engine,
2674 with a number of bugfixes and changes to improve IT playback.")
2675 (license license:gpl2+)))
2677 (define-public sooperlooper
2679 (name "sooperlooper")
2683 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2687 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2688 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2689 (build-system gnu-build-system)
2691 `(#:make-flags (list "CXXFLAGS=-std=gnu++11")
2693 (modify-phases %standard-phases
2694 (add-after 'unpack 'add-sigc++-includes
2695 (lambda* (#:key inputs #:allow-other-keys)
2696 (let ((sig (assoc-ref inputs "libsigc++"))
2697 (xml (assoc-ref inputs "libxml2"))
2700 (string-append sig "/include/sigc++-2.0:"
2701 sig "/lib/sigc++-2.0/include:"
2702 xml "/include/libxml2/:"
2704 cwd "/libs/midi++")))
2705 (substitute* '("src/control_osc.hpp"
2706 "src/gui/app_frame.hpp"
2707 "src/gui/config_panel.hpp"
2708 "src/gui/keys_panel.hpp"
2709 "src/gui/latency_panel.hpp"
2710 "src/gui/main_panel.hpp"
2711 "src/gui/midi_bind_panel.hpp"
2712 "src/gui/prefs_dialog.hpp")
2713 (("sigc\\+\\+/object.h")
2715 (substitute* '("src/engine.cpp"
2716 "src/gui/latency_panel.cpp"
2717 "src/gui/looper_panel.cpp"
2718 "src/gui/main_panel.cpp")
2719 (("(\\(| )bind " _ pre)
2720 (string-append pre "sigc::bind ")))
2722 (add-after 'unpack 'fix-xpm-warnings
2724 (substitute* (find-files "." "\\.xpm$")
2725 (("static char") "static const char"))
2729 ("alsa-lib" ,alsa-lib)
2730 ("wxwidgets" ,wxwidgets-gtk2)
2731 ("libsndfile" ,libsndfile)
2732 ("libsamplerate" ,libsamplerate)
2734 ("rubberband" ,rubberband)
2735 ("libxml2" ,libxml2)
2736 ("libsigc++" ,libsigc++)
2737 ("ncurses" ,ncurses)))
2739 `(("pkg-config" ,pkg-config)))
2740 (home-page "http://essej.net/sooperlooper/")
2741 (synopsis "Live looping sampler")
2743 "SooperLooper is a live looping sampler capable of immediate loop
2744 recording, overdubbing, multiplying, reversing and more. It allows for
2745 multiple simultaneous multi-channel loops limited only by your computer's
2747 (license license:gpl2+)))
2755 (uri (string-append "http://ftp.daper.net/pub/soft/"
2757 name "-" version ".tar.bz2"))
2760 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))
2761 (modules '((guix build utils)))
2763 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2764 '(substitute* "main.c"
2765 (("printf \\(\" Built : %s\", __DATE__\\);") "")
2766 (("printf \\(\" %s\", __TIME__\\);") "")))))
2767 (build-system gnu-build-system)
2769 `(("alsa-lib" ,alsa-lib)
2775 ("libid3tag" ,libid3tag)
2776 ("libltdl" ,libltdl)
2777 ("libmodplug" ,libmodplug)
2778 ("libmpcdec" ,libmpcdec)
2781 ("libvorbis" ,libvorbis)
2782 ("ncurses" ,ncurses)
2783 ("openssl" ,openssl)
2784 ("sasl" ,cyrus-sasl)
2787 ("wavpack" ,wavpack)
2790 `(("pkg-config" ,pkg-config)))
2791 (synopsis "Console audio player designed to be powerful and easy to use")
2793 "Music on Console is a console audio player that supports many file
2794 formats, including most audio formats recognized by FFMpeg.")
2795 (home-page "http://moc.daper.net")
2796 (license license:gpl2+)))
2798 (define-public midicsv
2804 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
2805 name "-" version ".tar.gz"))
2808 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
2809 (build-system gnu-build-system)
2811 `(#:phases (modify-phases %standard-phases (delete 'configure))
2812 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
2813 (synopsis "Convert MIDI files to and from CSV")
2815 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
2816 value file (CSV), which preserves all the information in the MIDI file. The
2817 ASCII CSV file may be loaded into a spreadsheet or database application, or
2818 processed by a program to transform the MIDI data (for example, to key
2819 transpose a composition or extract a track from a multi-track sequence). A
2820 CSV file in the format created by midicsv may be converted back into a
2821 standard MIDI file with the csvmidi program.")
2822 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
2823 (license license:public-domain)))
2825 (define-public gx-guvnor-lv2
2827 (name "gx-guvnor-lv2")
2832 (url "https://github.com/brummer10/GxGuvnor.lv2.git")
2833 (commit (string-append "v" version))))
2834 (file-name (string-append name "-" version "-checkout"))
2837 "1wa5070j40p7f0b3kr259pzm99xb6cf2badr2capayjvgayd6gnm"))))
2838 (build-system gnu-build-system)
2840 `(;; The check target is used only to output a warning.
2843 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
2845 (modify-phases %standard-phases
2848 (substitute* "Makefile"
2849 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
2850 (("install : all") "install :"))
2854 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
2855 (synopsis "Overdrive/distortion pedal simulation")
2856 (description "This package provides the LV2 plugin \"GxGuvnor\", a
2857 simulation of an overdrive or distortion pedal for guitars.")
2858 ;; The LICENSE file says GPLv3 but the license headers in the files say
2859 ;; GPLv2 or later. The whole project is released under GPLv3 or later
2860 ;; according to https://github.com/brummer10/GxGuvnor.lv2/issues/1
2861 (license license:gpl3+)))
2863 (define-public gx-vbass-preamp-lv2
2864 (let ((commit "eb999b0ca0ef4da40a59e458a9ab6e7042b96c99")
2866 (package (inherit gx-guvnor-lv2)
2867 (name "gx-vbass-preamp-lv2")
2868 (version (string-append "0-" revision "." (string-take commit 9)))
2872 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
2876 "0firap073ldw4nrykkd7jvyyj0jbl1nslxyzjj4kswazp99x7d9h"))
2877 (file-name (string-append name "-" version "-checkout"))))
2882 `(("pkg-config" ,pkg-config)))
2883 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
2884 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
2885 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
2886 pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
2889 (define-public gx-overdriver-lv2
2890 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
2892 (package (inherit gx-guvnor-lv2)
2893 (name "gx-overdriver-lv2")
2894 (version (string-append "0-" revision "." (string-take commit 9)))
2898 (url "https://github.com/brummer10/GxOverDriver.lv2")
2902 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
2903 (file-name (string-append name "-" version "-checkout"))))
2904 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
2905 (synopsis "Overdrive effect with level and tone control")
2906 (description "This package provides the LV2 plugin \"GxOverDriver\", an
2907 overdrive effect."))))
2909 (define-public gx-tone-mender-lv2
2910 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
2912 (package (inherit gx-guvnor-lv2)
2913 (name "gx-tone-mender-lv2")
2914 (version (string-append "0-" revision "." (string-take commit 9)))
2918 (url "https://github.com/brummer10/GxToneMender.lv2")
2922 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
2923 (file-name (string-append name "-" version "-checkout"))))
2924 (home-page "https://github.com/brummer10/GxToneMender.lv2")
2925 (synopsis "Clean boost with a 3-knob tonestack")
2926 (description "This package provides the LV2 plugin \"GxToneMender\", a
2927 clean boost effect with a 3-knob tonestack."))))
2929 (define-public gx-push-pull-lv2
2930 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
2932 (package (inherit gx-guvnor-lv2)
2933 (name "gx-push-pull-lv2")
2934 (version (string-append "0-" revision "." (string-take commit 9)))
2938 (url "https://github.com/brummer10/GxPushPull.lv2")
2942 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
2943 (file-name (string-append name "-" version "-checkout"))))
2944 (home-page "https://github.com/brummer10/GxPushPull.lv2")
2945 (synopsis "Octave up push pull transistor fuzz simulation")
2946 (description "This package provides the LV2 plugin \"GxPushPull\", a
2947 simulation of a push pull transistor fuzz effect with added high octave."))))
2949 (define-public gx-suppa-tone-bender-lv2
2950 (package (inherit gx-guvnor-lv2)
2951 (name "gx-suppa-tone-bender-lv2")
2956 (url "https://github.com/brummer10/GxSuppaToneBender.lv2.git")
2957 (commit (string-append "v" version))))
2958 (file-name (string-append name "-" version "-checkout"))
2961 "01x6bjmllkmvxfzc5xwdix7w021j26js71awv728cxsmkxgqw0zy"))))
2962 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
2963 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
2964 (description "This package provides the LV2 plugin
2965 \"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
2968 (define-public gx-saturator-lv2
2969 (let ((commit "605330f432c94b6eb3f8203cbe472befae959532")
2971 (package (inherit gx-vbass-preamp-lv2)
2972 (name "gx-saturator-lv2")
2973 (version (string-append "0-" revision "." (string-take commit 9)))
2977 (url "https://github.com/brummer10/GxSaturator.lv2")
2981 "1w4nvh0rmxrv3s3hmh4fs74f3hc0jn31v00j769j7v68mqr7kawy"))
2982 (file-name (string-append name "-" version "-checkout"))))
2983 (home-page "https://github.com/brummer10/GxSaturator.lv2")
2984 (synopsis "Saturation effect")
2985 (description "This package provides the LV2 plugin \"GxSaturator\", a
2986 saturation effect."))))
2988 (define-public gx-hyperion-lv2
2989 (package (inherit gx-guvnor-lv2)
2990 (name "gx-hyperion-lv2")
2995 (url "https://github.com/brummer10/GxHyperion.lv2.git")
2996 (commit (string-append "v" version))))
2997 (file-name (string-append name "-" version "-checkout"))
3000 "1vx79s6s9if117y2g0ppdja2sv2wcny6xcfl3j1z4cipahnildxf"))))
3001 (home-page "https://github.com/brummer10/GxHyperion.lv2")
3002 (synopsis "Simulation of the Hyperion Fuzz pedal")
3003 (description "This package provides the LV2 plugin \"GxHyperion\", a
3004 simulation of the Hyperion Fuzz pedal.")))
3006 (define-public gx-voodoo-fuzz-lv2
3007 (package (inherit gx-guvnor-lv2)
3008 (name "gx-voodoo-fuzz-lv2")
3013 (url "https://github.com/brummer10/GxVoodoFuzz.lv2.git")
3014 (commit (string-append "v" version))))
3015 (file-name (string-append name "-" version "-checkout"))
3018 "1v0scphivri1fk4hl20j13f92i48mnx1zsil4hgnadsmm4nsfw43"))))
3019 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
3020 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
3021 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
3022 simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
3023 Bosstone circuit, followed by the tone control of the FoxToneMachine in
3024 parallel with a DarkBooster, followed by a volume control.")))
3026 (define-public gx-super-fuzz-lv2
3027 (package (inherit gx-guvnor-lv2)
3028 (name "gx-super-fuzz-lv2")
3033 (url "https://github.com/brummer10/GxSuperFuzz.lv2.git")
3034 (commit (string-append "v" version))))
3035 (file-name (string-append name "-" version "-checkout"))
3038 "1jlljd9hlgfflbiizq47lv1xbbgjyx3v835mf24zmh1q5zsw4np4"))))
3039 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
3040 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
3041 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
3042 analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
3043 pot, which is usually in the housing, is exposed as a control parameter. It
3044 adjusts the amount of harmonics.")))
3046 (define-public gx-vintage-fuzz-master-lv2
3047 (package (inherit gx-guvnor-lv2)
3048 (name "gx-vintage-fuzz-master-lv2")
3053 (url "https://github.com/brummer10/GxVintageFuzzMaster.lv2.git")
3054 (commit (string-append "v" version))))
3055 (file-name (string-append name "-" version "-checkout"))
3058 "02jb211z8rw2qr5r1z5mdxlqgiw6cbc319xpqplvn6k21c59mskv"))))
3059 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
3060 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
3061 (description "This package provides the LV2 plugin
3062 \"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
3064 (define-public gx-slow-gear-lv2
3065 (let ((commit "5d37e775b0feef1d82feee94e2a7a2d7e57efe2d")
3067 (package (inherit gx-vbass-preamp-lv2)
3068 (name "gx-slow-gear-lv2")
3069 (version (string-append "0-" revision "." (string-take commit 9)))
3073 (url "https://github.com/brummer10/GxSlowGear.lv2")
3077 "141mz69zkhk3lm54bb6wgpnghb92zm1ig7fv07240cmhydqji1q1"))
3078 (file-name (string-append name "-" version "-checkout"))))
3079 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
3080 (synopsis "Slow gear audio effect")
3081 (description "This package provides the LV2 plugin \"GxSlowGear\", a
3082 slow gear audio effect to produce volume swells."))))
3084 (define-public gx-switchless-wah-lv2
3085 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
3087 (package (inherit gx-guvnor-lv2)
3088 (name "gx-switchless-wah-lv2")
3089 (version (string-append "0-" revision "." (string-take commit 9)))
3093 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
3097 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
3098 (file-name (string-append name "-" version "-checkout"))))
3099 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
3100 (synopsis "Wah emulation with switchless activation")
3101 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
3102 a simulation of an analog Wah pedal with switchless activation."))))
3104 (define-public mod-utilities
3105 (let ((commit "80ea3ea9f52fab7f191671f4810bf90fc955a046")
3108 (name "mod-utilities")
3109 (version (string-append "0-" revision "." (string-take commit 9)))
3113 (url "https://github.com/moddevices/mod-utilities.git")
3115 (file-name (string-append name "-" version "-checkout"))
3118 "1v55zmzmlg0ka7341x5lsvb44amy17vk27s669ps1basd1bk5s5v"))))
3119 (build-system gnu-build-system)
3121 `(#:tests? #f ; there are no tests
3123 (list (string-append "INSTALL_PATH="
3124 (assoc-ref %outputs "out")
3126 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3129 (modify-phases %standard-phases
3130 (delete 'configure))))
3133 (home-page "https://github.com/moddevices/mod-utilities")
3134 (synopsis "LV2 utility plugins")
3135 (description "This package provides LV2 audio utility plugins, such as
3136 filters, crossovers, simple gain plugins without zipper noise, switch box
3137 plugins, a switch trigger, a toggle switch, and a peakmeter.")
3138 (license license:gpl2+))))
3140 (define-public ingen
3141 (let ((commit "cc4a4db33f4d126a07a4a498e053c5fb9a883be3")
3145 (version (string-append "0.0.0-" revision "."
3146 (string-take commit 9)))
3151 (url "http://git.drobilla.net/ingen.git")
3153 (file-name (string-append name "-" version "-checkout"))
3156 "1wg47vjw9djn99gbnsl2bcwj4xhdid61m4wrbn2nlp797flj91ic"))))
3157 (build-system waf-build-system)
3159 `(#:tests? #f ; no "check" target
3160 #:configure-flags (list "--no-webkit")
3162 (modify-phases %standard-phases
3163 (add-after 'unpack 'patch-wscript
3164 (lambda* (#:key outputs #:allow-other-keys)
3165 (let ((out (assoc-ref outputs "out")))
3166 (substitute* "wscript"
3167 ;; FIXME: Our version of lv2specgen.py does not behave as
3168 ;; expected. Maybe this requires a development version of
3170 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
3171 ;; Add libraries to RUNPATH.
3172 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
3173 (string-append prefix
3174 "linkflags=[\"-Wl,-rpath="
3175 out "/lib" "\"]," line)))
3176 (substitute* '("src/wscript"
3177 "src/server/wscript")
3178 ;; Add libraries to RUNPATH.
3179 (("bld.env.PTHREAD_LINKFLAGS" line)
3181 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
3182 (substitute* "src/client/wscript"
3183 ;; Add libraries to RUNPATH.
3184 (("^(.+)target.*= 'ingen_client'," line prefix)
3185 (string-append prefix
3186 "linkflags=[\"-Wl,-rpath="
3187 out "/lib" "\"]," line)))
3188 (substitute* "src/gui/wscript"
3189 ;; Add libraries to RUNPATH.
3190 (("^(.+)target.* = 'ingen_gui.*" line prefix)
3191 (string-append prefix
3192 "linkflags=[\"-Wl,-rpath="
3193 out "/lib" "\"]," line))))
3197 ("python-rdflib" ,python-rdflib)
3202 ("raul" ,raul-devel)
3203 ("ganv" ,ganv-devel)
3208 ("gtkmm" ,gtkmm-2)))
3210 `(("pkg-config" ,pkg-config)
3211 ("python-pygments" ,python-pygments)))
3212 (home-page "http://drobilla.net/software/ingen")
3213 (synopsis "Modular audio processing system")
3214 (description "Ingen is a modular audio processing system for JACK and
3215 LV2 based systems. Ingen is built around LV2 technology and a strict
3216 separation of engine from user interface. The engine is controlled
3217 exclusively through a protocol, and can execute as a headless process, with an
3218 in-process GUI, or as an LV2 plugin. The GUI can run as a program which
3219 communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
3220 communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
3221 plugin on any system where Ingen is installed. This allows users to visually
3222 develop custom plugins for use in other applications without programming.")
3223 (license license:agpl3+))))
3225 (define-public qmidiarp
3231 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
3232 version "/qmidiarp-" version ".tar.bz2"))
3235 "043yh1p0rrbj1v840y27529m9260g55gvh1km8az4jxy7mns58r2"))))
3236 (build-system gnu-build-system)
3239 (list "--enable-qt5"
3240 "CXXFLAGS=-std=gnu++11")))
3242 `(("qtbase" ,qtbase)
3243 ("alsa-lib" ,alsa-lib)
3248 `(("pkg-config" ,pkg-config)
3249 ("qttools" ,qttools)))
3250 (home-page "http://qmidiarp.sourceforge.net/")
3251 (synopsis "MIDI arpeggiator")
3252 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
3253 sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
3254 modules running in parallel.")
3255 (license license:gpl2+)))
3257 (define-public qmidiroute
3263 (uri (string-append "mirror://sourceforge/alsamodular/QMidiRoute/"
3264 version "/qmidiroute-" version ".tar.bz2"))
3267 "19v1ppbglgl3z9v7xdqc0k33w71cqq8a7d6ihvfs7iz77dygrih9"))))
3268 (build-system gnu-build-system)
3271 (list "--enable-qt5"
3272 "CXXFLAGS=-std=gnu++11")))
3274 `(("qtbase" ,qtbase)
3275 ("alsa-lib" ,alsa-lib)))
3277 `(("pkg-config" ,pkg-config)
3278 ("qttools" ,qttools)))
3279 (home-page "http://alsamodular.sourceforge.net/")
3280 (synopsis "MIDI event router and filter")
3281 (description "QMidiRoute is a MIDI event router and filter. MIDI note,
3282 control change, program change and pitch bend events are logged, and can be
3283 filtered, redirected and transformed into other events according to MIDI maps
3284 defined as tabs in the main control surface.")
3285 (license license:gpl2+)))
3287 (define-public seq24
3293 (uri (string-append "https://launchpad.net/seq24/trunk/"
3294 version "/+download/seq24-"
3295 version ".tar.bz2"))
3298 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
3299 (patches (search-patches "seq24-rename-mutex.patch"))))
3300 (build-system gnu-build-system)
3303 (list "CXXFLAGS=-std=gnu++11")))
3305 `(("gtkmm" ,gtkmm-2)
3306 ("alsa-lib" ,alsa-lib)
3310 `(("pkg-config" ,pkg-config)))
3311 (home-page "https://edge.launchpad.net/seq24/")
3312 (synopsis "Real-time MIDI sequencer")
3313 (description "Seq24 is a real-time MIDI sequencer. It was created to
3314 provide a very simple interface for editing and playing MIDI loops.")
3315 (license license:gpl2+)))
3317 (define-public python-discogs-client
3319 (name "python-discogs-client")
3323 (uri (pypi-uri "discogs-client" version))
3326 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
3327 (build-system python-build-system)
3329 `(("python-oauthlib" ,python-oauthlib)
3330 ("python-requests" ,python-requests)))
3332 `(("python-six" ,python-six)))
3333 (home-page "https://github.com/discogs/discogs_client")
3334 (synopsis "Official Python client for the Discogs API")
3335 (description "This is the official Discogs API client for Python. It enables
3336 you to query the Discogs database for information on artists, releases, labels,
3337 users, Marketplace listings, and more. It also supports OAuth 1.0a
3338 authorization, which allows you to change user data such as profile information,
3339 collections and wantlists, inventory, and orders.")
3340 (license license:bsd-2)))
3342 (define-public python2-discogs-client
3343 (package-with-python2 python-discogs-client))
3345 (define-public libsmf
3352 ;; SF download page says development moved, but the link it points to
3353 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
3354 ;; it but made no release so far (https://github.com/stump/libsmf).
3355 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
3356 version "/libsmf-" version ".tar.gz"))
3359 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
3360 (build-system gnu-build-system)
3362 "static")) ; 88KiB of .a files
3365 (modify-phases %standard-phases
3366 (add-after 'install 'move-static-libraries
3367 (lambda* (#:key outputs #:allow-other-keys)
3368 ;; Move static libraries to the "static" output.
3369 (let* ((out (assoc-ref outputs "out"))
3370 (lib (string-append out "/lib"))
3371 (static (assoc-ref outputs "static"))
3372 (slib (string-append static "/lib")))
3374 (for-each (lambda (file)
3375 (install-file file slib)
3377 (find-files lib "\\.a$"))
3380 `(("readline" ,readline)
3383 `(("doxygen" ,doxygen)
3384 ("pkg-config" ,pkg-config)))
3385 (home-page "http://libsmf.sourceforge.net/")
3386 (synopsis "Standard MIDI File format library")
3388 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3389 conversions between time and pulses, tempo map handling and more. The only dependencies
3390 are a C compiler and glib. Full API documentation and examples are included.")
3391 (license license:bsd-2)))
3400 (uri (string-append "https://github.com/LMMS/lmms/archive/v"
3402 (file-name (string-append name "-" version ".tar.gz"))
3405 "1g76z7ha3hd53vbqaq9n1qg6s3lw8zzaw51iny6y2bz0j1xqwcsr"))))
3406 (build-system cmake-build-system)
3408 `(#:tests? #f ; no tests
3410 (modify-phases %standard-phases
3411 (add-before 'configure 'set-ldflags
3412 (lambda* (#:key outputs #:allow-other-keys)
3416 (assoc-ref outputs "out") "/lib/lmms"
3418 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3421 (add-before 'configure 'remove-Werror
3423 (substitute* "CMakeLists.txt"
3424 (("SET\\(WERROR_FLAGS \"\\$\\{WERROR_FLAGS\\} -Werror")
3425 "SET(WERROR_FLAGS \"${WERROR_FLAGS}"))
3427 (add-before 'reset-gzip-timestamps 'make-manpages-writable
3428 (lambda* (#:key outputs #:allow-other-keys)
3430 (make-file-writable file))
3431 (find-files (string-append (assoc-ref outputs "out")
3436 `(("pkg-config" ,pkg-config)))
3442 ("libsamplerate" ,libsamplerate)
3443 ("fluidsynth" ,fluidsynth)
3444 ("libvorbis" ,libvorbis)
3445 ("alsa-lib" ,alsa-lib)
3446 ("portaudio" ,portaudio)
3448 ("libsndfile1" ,libsndfile)
3450 ("freetype2" ,freetype)
3452 (home-page "https://lmms.io/")
3453 (synopsis "Music composition tool")
3454 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3455 melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3456 audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3457 (license license:gpl2+)))
3459 (define-public musescore
3466 "https://github.com/musescore/MuseScore/archive/"
3467 "v" version ".tar.gz"))
3468 (file-name (string-append name "-" version ".tar.gz"))
3471 "0irwsq6ihfz3y3b943cwqy29g3si7gqbgxdscgw53vwv9vfvi085"))
3472 (modules '((guix build utils)))
3474 ;; Un-bundle OpenSSL and remove unused libraries.
3476 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3477 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3479 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3480 (("#include <openssl/.*") ""))
3481 (for-each delete-file-recursively
3482 '("thirdparty/freetype"
3483 "thirdparty/openssl"
3484 "thirdparty/portmidi"))
3486 (build-system gnu-build-system)
3489 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
3490 ;; There are tests, but no simple target to run. The command
3491 ;; used to run them is:
3493 ;; make debug && sudo make installdebug && cd \
3494 ;; build.debug/mtest && make && ctest
3496 ;; Basically, it requires to start a whole new build process.
3497 ;; So we simply skip them.
3500 (modify-phases %standard-phases
3502 (add-after 'unpack 'use-system-freetype
3504 ;; XXX: For the time being, we grossly insert the CMake
3505 ;; option needed to ignore bundled freetype. However,
3506 ;; there's a pending PR to have it as a regular make
3507 ;; option, in a future release.
3508 (substitute* "Makefile"
3509 (("cmake -DCMAKE") "cmake -DUSE_SYSTEM_FREETYPE=ON -DCMAKE"))
3512 `(("alsa-lib" ,alsa-lib)
3513 ("freetype" ,freetype)
3514 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3518 ("libsndfile" ,libsndfile)
3519 ("libvorbis" ,libvorbis)
3520 ("portaudio" ,portaudio)
3521 ("pulseaudio" ,pulseaudio)
3523 ("qtdeclarative" ,qtdeclarative)
3524 ("qtscript" ,qtscript)
3526 ("qtwebkit" ,qtwebkit)
3527 ("qtxmlpatterns" ,qtxmlpatterns)))
3530 ("pkg-config" ,pkg-config)
3531 ("qttools" ,qttools)))
3532 (synopsis "Music composition and notation software")
3533 (description "MuseScore is a music score typesetter. Its main purpose is
3534 the creation of high-quality engraved musical scores in a WYSIWYG environment.
3536 It supports unlimited staves, linked parts and part extraction, tablature,
3537 MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3538 lyrics (multiple verses), fretboard diagrams, and in general everything
3539 commonly used in sheet music. Style options and style sheets to change the
3540 appearance and layout are provided.
3542 MuseScore can also play back scores through the built-in sequencer and SoundFont
3544 (home-page "https://musescore.org")
3545 (license license:gpl2)))
3547 (define-public muse-sequencer
3549 (name "muse-sequencer")
3554 (url "https://github.com/muse-sequencer/muse.git")
3555 (commit (string-append "muse_"
3556 (string-map (lambda (c)
3558 #\_ c)) version)))))
3559 (file-name (string-append name "-" version "-checkout"))
3562 "1nninz8qyqlxxjdnrm79y3gr3056pga9l2fsqh674jd3cjvafya3"))))
3563 (build-system cmake-build-system)
3565 `(#:tests? #f ; there is no test target
3567 (list "-DENABLE_LV2_SUPPLIED=OFF"
3568 "-DENABLE_RTAUDIO=OFF" ; FIXME: not packaged
3569 "-DENABLE_INSTPATCH=OFF" ; FIXME: not packaged
3570 "-DENABLE_VST_NATIVE=OFF")
3572 (modify-phases %standard-phases
3573 (add-after 'unpack 'chdir
3574 (lambda _ (chdir "muse3"))))))
3576 `(("alsa-lib" ,alsa-lib)
3585 ("libsndfile" ,libsndfile)
3586 ("libsamplerate" ,libsamplerate)
3587 ("fluidsynth" ,fluidsynth)
3592 `(("pkg-config" ,pkg-config)
3593 ("qttools" ,qttools)))
3594 (home-page "http://muse-sequencer.org")
3595 (synopsis "MIDI/Audio sequencer")
3596 (description "MusE is a MIDI/Audio sequencer with recording and editing
3597 capabilities. Its audio sequencer supports the LADSPA, DSSI, and LV2 audio
3598 plugin formats; the MIDI sequencer provides a piano roll, a drum editor, a
3599 list view, and a score editor. MusE aims to be a complete multitrack virtual
3601 (license license:gpl2+)))
3610 "mirror://sourceforge/dssi/dssi/" version
3611 "/dssi-" version ".tar.gz"))
3614 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3615 (build-system gnu-build-system)
3617 `(("alsa-lib" ,alsa-lib)
3620 ("libsamplerate" ,libsamplerate)
3621 ("libsndfile" ,libsndfile)
3624 `(("pkg-config" ,pkg-config)))
3625 (synopsis "Audio plugin API for soft synths and effects")
3626 (description "DSSI is a plugin API for software instruments with user
3627 interfaces, permitting them to be hosted in-process by audio applications.
3628 It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3629 towards familiarity with MIDI. The DSSI distribution package contains
3630 a JACK/ALSA-sequencer reference host and some plugins as well as the
3631 specification and header.")
3632 (home-page "http://dssi.sourceforge.net/")
3633 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3634 ;; The vast majority of examples are in the public domain.
3635 (license (list license:lgpl2.1+ license:gpl2+))))
3637 (define-public rosegarden
3644 "mirror://sourceforge/rosegarden/rosegarden/"
3645 version "/rosegarden-" version ".tar.bz2"))
3648 "1khfcj22asdhjh0jvhkqsz200wgmigkhsrcz09ffia5hqm0n32lq"))))
3649 (build-system cmake-build-system)
3651 `(#:configure-flags '("-DUSE_QT5=1") ; "-DCMAKE_BUILD_TYPE=Release"
3653 (modify-phases %standard-phases
3654 (add-after 'unpack 'patch-tests
3656 (substitute* "CMakeLists.txt"
3657 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
3659 ((" -fvisibility=hidden") ""))
3661 (add-after 'unpack 'fix-references
3662 (lambda* (#:key inputs #:allow-other-keys)
3663 (substitute* "src/gui/general/ProjectPackager.cpp"
3665 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
3667 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
3669 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
3671 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
3673 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
3674 (substitute* "src/gui/general/LilyPondProcessor.cpp"
3675 (("\"convert-ly\\>")
3676 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
3678 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
3680 (add-after 'unpack 'make-reproducible
3682 ;; Prevent Last-Modified from being written.
3683 ;; The "*.qm" files that are used in locale.qrc would have a new
3684 ;; mtime otherwise that is written into qrc_locale.cpp in the
3685 ;; end - except when we disable it.
3686 (substitute* "src/CMakeLists.txt"
3687 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
3688 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
3690 ;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
3691 ; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
3693 ;; Make hashtable traversal order predicable.
3694 (setenv "QT_RCC_TEST" "1") ; important
3696 (add-before 'check 'prepare-check
3698 (setenv "QT_QPA_PLATFORM" "offscreen")
3699 ;; Tests create files in $HOME/.local/share/rosegarden .
3700 (mkdir-p "/tmp/foo")
3701 (setenv "HOME" "/tmp/foo")
3704 `(("alsa-lib" ,alsa-lib)
3712 ("libsamplerate" ,libsamplerate)
3713 ("lilypond" ,lilypond)
3718 ("wavpack" ,wavpack)
3721 `(("pkg-config" ,pkg-config)
3722 ("qtlinguist" ,qttools)))
3723 (synopsis "Music composition and editing environment based around a MIDI
3725 (description "Rosegarden is a music composition and editing environment
3726 based around a MIDI sequencer that features a rich understanding of music
3727 notation and includes basic support for digital audio.")
3728 (home-page "http://www.rosegardenmusic.com/")
3729 (license license:gpl2)))
3731 (define-public patchmatrix
3733 (name "patchmatrix")
3738 (url "https://github.com/OpenMusicKontrollers/patchmatrix.git")
3740 (file-name (string-append "patchmatrix-" version "-checkout"))
3743 "19ivp7h5vq6r1qhmycjxzvrgg7fc4a3v5vb3n4c7afs4z3pj53zi"))))
3744 (build-system cmake-build-system)
3745 (arguments '(#:tests? #f)) ; no test target
3751 `(("pkg-config" ,pkg-config)))
3752 (home-page "https://github.com/OpenMusicKontrollers/patchmatrix")
3753 (synopsis "Simple JACK patch bay")
3754 (description "PatchMatrix is a patch bay for the JACK audio connection
3755 kit. It provides a patch bay in flow matrix style for audio, MIDI, CV, and
3757 (license license:artistic2.0)))
3759 (define-public sorcer
3765 (uri (string-append "https://github.com/openAVproductions/"
3766 "openAV-Sorcer/archive/release-"
3768 (file-name (string-append name "-" version ".tar.gz"))
3771 "07iyqj28wm0xc4arrq893bm12xjpz65db7ynrlmf6w8krg8wjmd0"))))
3772 (build-system cmake-build-system)
3774 `(#:tests? #f ; no tests included
3776 (modify-phases %standard-phases
3777 (add-after 'unpack 'remove-architecture-specific-flags
3779 (substitute* "CMakeLists.txt"
3780 (("-msse2 -mfpmath=sse") ""))
3782 (add-after 'unpack 'build-faust-sources
3783 (lambda* (#:key inputs #:allow-other-keys)
3784 (with-directory-excursion "faust"
3785 (delete-file "main.cpp")
3786 (zero? (system* "faust" "-i"
3788 "-o" "main.cpp" "main.dsp"))))))))
3795 ("pkg-config" ,pkg-config)))
3796 (home-page "http://openavproductions.com/sorcer/")
3797 (synopsis "Wavetable LV2 plugin synth")
3798 (description "Sorcer is a wavetable LV2 plugin synthesizer, targeted at
3799 the electronic or dubstep genre.")
3800 (license license:gpl3+)))
3802 (define-public libechonest
3804 (name "libechonest")
3809 (url "git://anongit.kde.org/libechonest.git")
3811 (file-name (string-append name "-" version "-checkout"))
3814 "0xbavf9f355dl1d3qv59x4ryypqrdanh9xdvw2d0q66l008crdkq"))))
3815 (build-system cmake-build-system)
3817 '(#:tests? #f ; Tests require Internet access
3818 #:configure-flags '("-DBUILD_WITH_QT4=OFF")))
3820 `(("qtbase" ,qtbase)
3822 (home-page "https://projects.kde.org/projects/playground/libs/libechonest")
3823 (synopsis "C++/Qt classes to interface with The Echo Nest API")
3824 (description "@code{libechonest} is a collection of C++/Qt classes
3825 designed to make a developer's life easy when trying to use the APIs provided
3827 (license license:gpl2+)))
3829 (define-public libmygpo-qt
3831 (name "libmygpo-qt")
3835 (uri (string-append "http://stefan.derkits.at/files/"
3836 "libmygpo-qt/libmygpo-qt." version ".tar.gz"))
3839 "1wsgh2vjnd52rkvpncj1ycpbp84sj9hh12ija46b42z9mmqf2jm4"))
3841 (search-patches "libmygpo-qt-fix-jsoncreatortest.patch"))))
3842 (build-system cmake-build-system)
3844 '(#:configure-flags '("-DBUILD_WITH_QT4=OFF")))
3846 `(("pkg-config" ,pkg-config)))
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+)))