1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2019 Eric Bavier <bavier@member.fsf.org>
3 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 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, 2018 Leo Famulari <leo@famulari.name>
8 ;;; Copyright © 2016, 2017, 2019 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 <ng0@n0.is>
12 ;;; Copyright © 2017 Rodger Fox <thylakoid@openmailbox.org>
13 ;;; Copyright © 2017, 2018, 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
14 ;;; Copyright © 2017, 2018, 2019 Pierre Langlois <pierre.langlois@gmx.com>
15 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
16 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
17 ;;; Copyright © 2018 nee <nee.git@hidamari.blue>
18 ;;; Copyright © 2018 Stefan Reichör <stefan@xsteve.at>
19 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
20 ;;; Copyright © 2018, 2019 Ludovic Courtès <ludo@gnu.org>
21 ;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
22 ;;; Copyright © 2019 Gabriel Hondet <gabrielhondet@gmail.com>
23 ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
24 ;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.lonestar.org>
25 ;;; Copyright © 2019 raingloom <raingloom@protonmail.com>
26 ;;; Copyright © 2019 David Wilson <david@daviwil.com>
28 ;;; This file is part of GNU Guix.
30 ;;; GNU Guix is free software; you can redistribute it and/or modify it
31 ;;; under the terms of the GNU General Public License as published by
32 ;;; the Free Software Foundation; either version 3 of the License, or (at
33 ;;; your option) any later version.
35 ;;; GNU Guix is distributed in the hope that it will be useful, but
36 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
37 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 ;;; GNU General Public License for more details.
40 ;;; You should have received a copy of the GNU General Public License
41 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
43 (define-module (gnu packages music)
44 #:use-module (guix utils)
45 #:use-module (guix packages)
46 #:use-module (guix download)
47 #:use-module (guix git-download)
48 #:use-module ((guix licenses) #:prefix license:)
49 #:use-module (guix build-system gnu)
50 #:use-module (guix build-system ant)
51 #:use-module (guix build-system cmake)
52 #:use-module (guix build-system meson)
53 #:use-module (guix build-system perl)
54 #:use-module (guix build-system python)
55 #:use-module (guix build-system scons)
56 #:use-module (guix build-system glib-or-gtk)
57 #:use-module (guix build-system waf)
58 #:use-module (guix build-system trivial)
59 #:use-module (guix build-system go)
60 #:use-module (gnu packages)
61 #:use-module (gnu packages admin)
62 #:use-module (gnu packages algebra)
63 #:use-module (gnu packages apr)
64 #:use-module (gnu packages audio)
65 #:use-module (gnu packages autotools)
66 #:use-module (gnu packages backup)
67 #:use-module (gnu packages base) ;libbdf
68 #:use-module (gnu packages bash)
69 #:use-module (gnu packages bison)
70 #:use-module (gnu packages boost)
71 #:use-module (gnu packages cdrom)
72 #:use-module (gnu packages code)
73 #:use-module (gnu packages check)
74 #:use-module (gnu packages cmake)
75 #:use-module (gnu packages compression)
76 #:use-module (gnu packages crypto)
77 #:use-module (gnu packages curl)
78 #:use-module (gnu packages cyrus-sasl)
79 #:use-module (gnu packages datastructures)
80 #:use-module (gnu packages docbook)
81 #:use-module (gnu packages documentation)
82 #:use-module (gnu packages emacs)
83 #:use-module (gnu packages file)
84 #:use-module (gnu packages flex)
85 #:use-module (gnu packages fltk)
86 #:use-module (gnu packages fonts)
87 #:use-module (gnu packages fontutils)
88 #:use-module (gnu packages freedesktop)
89 #:use-module (gnu packages game-development)
90 #:use-module (gnu packages gcc)
91 #:use-module (gnu packages gnupg)
92 #:use-module (gnu packages gettext)
93 #:use-module (gnu packages ghostscript)
94 #:use-module (gnu packages gl)
95 #:use-module (gnu packages glib)
96 #:use-module (gnu packages gnome)
97 #:use-module (gnu packages gpodder)
98 #:use-module (gnu packages graphics)
99 #:use-module (gnu packages gstreamer)
100 #:use-module (gnu packages gtk)
101 #:use-module (gnu packages guile)
102 #:use-module (gnu packages haskell)
103 #:use-module (gnu packages image)
104 #:use-module (gnu packages imagemagick)
105 #:use-module (gnu packages java)
106 #:use-module (gnu packages libffi)
107 #:use-module (gnu packages libusb)
108 #:use-module (gnu packages linux) ; for alsa-utils
109 #:use-module (gnu packages lirc)
110 #:use-module (gnu packages llvm)
111 #:use-module (gnu packages man)
112 #:use-module (gnu packages mp3)
113 #:use-module (gnu packages mpd)
114 #:use-module (gnu packages ncurses)
115 #:use-module (gnu packages netpbm)
116 #:use-module (gnu packages pcre)
117 #:use-module (gnu packages pdf)
118 #:use-module (gnu packages perl)
119 #:use-module (gnu packages perl-web)
120 #:use-module (gnu packages pkg-config)
121 #:use-module (gnu packages protobuf)
122 #:use-module (gnu packages pulseaudio) ;libsndfile
123 #:use-module (gnu packages python)
124 #:use-module (gnu packages python-web)
125 #:use-module (gnu packages python-xyz)
126 #:use-module (gnu packages qt)
127 #:use-module (gnu packages rdf)
128 #:use-module (gnu packages readline)
129 #:use-module (gnu packages rsync)
130 #:use-module (gnu packages sdl)
131 #:use-module (gnu packages sqlite)
132 #:use-module (gnu packages tcl)
133 #:use-module (gnu packages texinfo)
134 #:use-module (gnu packages tex)
135 #:use-module (gnu packages time)
136 #:use-module (gnu packages tls)
137 #:use-module (gnu packages version-control)
138 #:use-module (gnu packages video)
139 #:use-module (gnu packages web)
140 #:use-module (gnu packages wxwidgets)
141 #:use-module (gnu packages xml)
142 #:use-module (gnu packages xorg)
143 #:use-module (gnu packages xiph)
144 #:use-module (gnu packages golang)
145 #:use-module (gnu packages lua)
146 #:use-module ((srfi srfi-1) #:select (last)))
148 (define-public aria-maestosa
150 (name "aria-maestosa")
154 (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/"
155 version "/AriaSrc-" version ".tar.bz2"))
158 "1cs3z6frx2ch7rm5ammx9p0rxcjrbj1vq14hvcbimpaw39rdsn3d"))))
159 (build-system scons-build-system)
161 `(#:tests? #f ;no tests
163 (list (string-append "prefix=" (assoc-ref %outputs "out")))
164 #:scons ,scons-python2
166 (modify-phases %standard-phases
168 (add-after 'unpack 'scons-propagate-environment
170 ;; By design, SCons does not, by default, propagate
171 ;; environment variables to subprocesses. See:
172 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
173 ;; Here, we modify the SConstruct file to arrange for
174 ;; environment variables to be propagated.
175 (substitute* "SConstruct"
176 (("env = Environment\\(\\)")
177 "env = Environment(ENV=os.environ)")
178 ;; Scons errors out when copying subdirectories from Resources,
179 ;; so we move them instead.
181 ;; We move the "score" and "Documentation" directories at once,
182 ;; so we have to ignore files contained therein.
183 (("if \".svn\" in file" line)
185 " or \"score/\" in file"
186 " or \"Documentation/\" in file")))
188 (add-after 'install 'fix-directory-permissions
189 (lambda* (#:key outputs #:allow-other-keys)
190 (let ((out (assoc-ref outputs "out")))
191 (chmod (string-append out "/share/Aria/Documentation") #o555)
192 (chmod (string-append out "/share/Aria/score") #o555)
195 `(("wxwidgets" ,wxwidgets)
197 ("alsa-lib" ,alsa-lib)))
199 `(("pkg-config" ,pkg-config)))
200 (home-page "http://ariamaestosa.sourceforge.net/")
201 (synopsis "MIDI sequencer and editor")
203 "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit
204 and play MIDI files with a few clicks in a user-friendly interface offering
205 score, keyboard, guitar, drum and controller views.")
206 (license license:gpl3+)))
208 ;; We don't use the latest release because it depends on Qt4. Instead we
209 ;; download the sources from the tip of the "qt5" branch.
210 (define-public clementine
211 (let ((commit "4619a4c1ab3b17b13d4b2327ad477912917eaf36")
215 (version (git-version "1.3.1" revision commit))
219 (url "https://github.com/clementine-player/Clementine.git")
221 (file-name (git-file-name name version))
224 "1hximk3q0p8nw8is5w7215xgkb7k4flnfyr0pdz9svfwvcm05w1i"))
225 (modules '((guix build utils)))
230 (delete-file-recursively
231 (string-append "3rdparty/" dir)))
233 ;; TODO: The following dependencies are still bundled:
234 ;; - "qxt": Appears to be unmaintained upstream.
236 ;; - "qtsingleapplication"
238 ;; - "qtiocompressor"
239 ;; - "gmock": The tests crash when using our googletest
240 ;; package instead of the bundled gmock.
248 "sha2" ;; Replaced by openssl.
252 (patches (search-patches "clementine-use-openssl.patch"
253 "clementine-remove-crypto++-dependency.patch"
254 "clementine-fix-sqlite.patch"))))
255 (build-system cmake-build-system)
257 '(#:test-target "clementine_test"
259 (list ;; Requires unpackaged "projectm"
260 "-DENABLE_VISUALISATIONS=OFF"
261 ;; Otherwise it may try to download a non-free library at run-time.
262 ;; TODO In an origin snippet, remove the code that performs the
264 "-DHAVE_SPOTIFY_DOWNLOADER=FALSE"
265 "-DUSE_SYSTEM_SHA2=TRUE")
267 (modify-phases %standard-phases
268 (add-after 'install 'wrap-program
269 (lambda* (#:key inputs outputs #:allow-other-keys)
270 (let ((out (assoc-ref outputs "out"))
271 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
272 (wrap-program (string-append out "/bin/clementine")
273 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))
276 `(("gettext" ,gettext-minimal)
277 ("pkg-config" ,pkg-config)
278 ("qtlinguist" ,qttools)))
281 ("chromaprint" ,chromaprint)
285 ("gstreamer" ,gstreamer)
286 ("gst-plugins-base" ,gst-plugins-base)
287 ("gst-plugins-good" ,gst-plugins-good)
288 ("gst-libav" ,gst-libav)
290 ("libmygpo-qt" ,libmygpo-qt)
291 ;; TODO: Package libgpod.
295 ("protobuf" ,protobuf)
296 ("pulseaudio" ,pulseaudio)
298 ("qtx11extras" ,qtx11extras)
299 ("sqlite" ,sqlite-with-column-metadata)
300 ("sparsehash" ,sparsehash)
302 (home-page "https://clementine-player.org")
303 (synopsis "Music player and library organizer")
304 (description "Clementine is a multiplatform music player. It is inspired
305 by Amarok 1.4, focusing on a fast and easy-to-use interface for searching and
306 playing your music.")
308 ;; clementine and qtiocompressor are under GPLv3.
310 ;; gmock is under BSD-3.
312 ;; qxt is under CPL1.0.
314 ;; qsqlite and qtsingleapplication are under LGPL2.1+.
316 ;; qocoa is under MIT and CC by-sa for the icons.
317 license:cc-by-sa3.0)))))
326 (url "https://github.com/cmus/cmus.git")
327 (commit (string-append "v" version))))
328 (file-name (git-file-name name version))
331 "1ydnvq13ay8b8mfmmgwi5qsgyf220yi1d01acbnxqn775dghmwar"))))
332 (build-system gnu-build-system)
334 `(#:tests? #f ; cmus does not include tests
336 (modify-phases %standard-phases
338 (lambda* (#:key outputs #:allow-other-keys)
339 (let ((out (assoc-ref outputs "out")))
340 ;; It's an idiosyncratic configure script that doesn't
341 ;; understand --prefix=..; it wants prefix=.. instead.
342 (invoke "./configure"
343 (string-append "prefix=" out))
345 ;; TODO: cmus optionally supports the following formats, which haven't yet
346 ;; been added to Guix:
350 ;; - DISCID_LIBS, apparently different from cd-discid which is included in
351 ;; Guix. See <http://sourceforge.net/projects/discid/>
353 `(("pkg-config" ,pkg-config)))
355 `(("alsa-lib" ,alsa-lib)
362 ("libcdio-paranoia" ,libcdio-paranoia)
365 ("libmodplug" ,libmodplug)
366 ("libmpcdec" ,libmpcdec)
367 ("libsamplerate" ,libsamplerate)
368 ("libvorbis" ,libvorbis)
370 ("opusfile" ,opusfile)
371 ("pulseaudio" ,pulseaudio)
372 ("wavpack" ,wavpack)))
373 (home-page "https://cmus.github.io/")
374 (synopsis "Small console music player")
375 (description "Cmus is a small and fast console music player. It supports
376 many input formats and provides a customisable Vi-style user interface.")
377 (license license:gpl2+)))
379 (define-public denemo
385 (uri (string-append "mirror://gnu/denemo/denemo-"
389 "0hggf8c4xcrjcxd5m00r788r7jg7g8ff54w2idfaqpj5j2ix3299"))))
390 (build-system gnu-build-system)
393 (modify-phases %standard-phases
395 ;; Denemo's documentation says to use this command to run its
398 (invoke "make" "-C" "tests" "check")))
399 (add-before 'build 'set-lilypond
400 ;; This phase sets the default path for lilypond to its current
401 ;; location in the store.
402 (lambda* (#:key inputs #:allow-other-keys)
403 (let* ((lilypond (string-append (assoc-ref inputs "lilypond")
405 (substitute* "src/core/prefops.c"
406 (("g_string_new \\(\"lilypond\"\\);")
407 (string-append "g_string_new (\""
411 (add-after 'install 'correct-filename
412 ;; "graft-derivation/shallow" from the (guix grafts) module runs in
413 ;; the C locale, expecting file names to be ASCII encoded. This
414 ;; phase renames a filename with a Unicode character in it to meet
415 ;; the aforementioned condition.
416 (lambda* (#:key outputs #:allow-other-keys)
417 (let* ((out (assoc-ref outputs "out")))
418 (chdir (string-append
420 "/share/denemo/templates/instruments/woodwind"))
421 (rename-file "Clarinet in B♭.denemo"
422 "Clarinet in Bb.denemo"))
425 `(("glib:bin" ,glib "bin") ; for gtester
426 ("pkg-config" ,pkg-config)))
428 `(("alsa-lib" ,alsa-lib)
432 ("fluidsynth" ,fluidsynth)
436 ("gtksourceview" ,gtksourceview-3)
438 ("intltool" ,intltool)
440 ("libsndfile" ,libsndfile)
443 ("lilypond" ,lilypond)
444 ("portaudio" ,portaudio)
445 ("portmidi" ,portmidi)
446 ("rubberband" ,rubberband)))
447 (synopsis "Graphical music notation, front-end to GNU Lilypond")
449 "GNU Denemo is a music notation editor that provides a convenient
450 interface to the powerful music engraving program Lilypond. Music can be
451 typed in using the computer keyboard, played in using a MIDI keyboard, or
452 even input via a microphone connected to the sound card. The final product
453 is publication-quality music notation that is continuously generated in the
454 background while you work.")
455 (home-page "http://www.denemo.org")
456 (license license:gpl3+)))
466 (url "https://github.com/kode54/dumb.git")
469 (base32 "1cnq6rb14d4yllr0yi32p9jmcig8avs3f43bvdjrx4r1mpawspi6"))
470 (file-name (git-file-name name version))))
471 (build-system cmake-build-system)
473 '(#:tests? #f ; no check target
475 (list "-DBUILD_SHARED_LIBS=ON"
476 "-DBUILD_EXAMPLES=OFF")))
477 (home-page "https://github.com/kode54/dumb")
478 (synopsis "Module audio renderer library")
480 "DUMB is a tracker library with support for IT, XM, S3M and MOD files. It
481 targets maximum accuracy to the original formats, with low-pass resonant filters
482 for the IT files, accurate timing and pitching, and three resampling quality
483 settings (aliasing, linear interpolation and cubic interpolation).")
484 ;; The DUMB license is a bit peculiar.
485 ;; Clause 8 states that clauses 4, 5 and 6 are null and void, leaving only
486 ;; the first three clauses for genuine consideration.
487 ;; Clauses 1, 2 and 3 are analogous to clauses 1, 2 and 3 of the zlib
488 ;; license, a known free software license.
489 ;; Therefore, the DUMB license may be considered a free software license.
490 (license (license:fsf-free "file://LICENSE"))))
492 (define-public dumb-allegro4
495 (name "dumb-allegro4")
497 (substitute-keyword-arguments (package-arguments dumb)
498 ((#:configure-flags flags)
499 `(cons "-DBUILD_ALLEGRO4=ON" ,flags))))
501 `(("allegro" ,allegro-4)))))
503 (define-public hydrogen
506 (version "1.0.0-beta1")
510 (url "https://github.com/hydrogen-music/hydrogen.git")
512 (file-name (string-append name "-" version "-checkout"))
515 "0nv83l70j5bjz2wd6n3a8cq3bmgrvdvg6g2hjhc1g5h6xnbqsh9x"))))
516 (build-system cmake-build-system)
518 `(#:test-target "tests"
520 (modify-phases %standard-phases
521 (add-after 'unpack 'fix-data-directory
522 (lambda* (#:key outputs #:allow-other-keys)
523 (substitute* "CMakeLists.txt"
524 (("/usr/share/pixmaps")
525 (string-append (assoc-ref outputs "out")
529 `(("cppunit" ,cppunit)
530 ("pkg-config" ,pkg-config)))
532 `(("alsa-lib" ,alsa-lib)
534 ;; ("ladspa" ,ladspa) ; cannot find during configure
536 ("libarchive" ,libarchive)
537 ("libsndfile" ,libsndfile)
541 ("qtxmlpatterns" ,qtxmlpatterns)
543 (home-page "http://www.hydrogen-music.org")
544 (synopsis "Drum machine")
546 "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to
547 enable professional yet simple and intuitive pattern-based drum programming.")
548 (license license:gpl2+)))
550 (define-public easytag
556 (uri (string-append "mirror://gnome/sources/easytag/2.4/easytag-"
560 "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw"))))
561 (build-system glib-or-gtk-build-system)
563 `(("desktop-file-utils" ,desktop-file-utils)
565 ("intltool" ,intltool)
567 ("pkg-config" ,pkg-config)
568 ("xmllint" ,libxml2)))
573 ("libid3tag" ,libid3tag)
574 ("libvorbis" ,libvorbis)
575 ("opusfile" ,opusfile)
582 (modify-phases %standard-phases
583 (add-before 'configure 'configure-libid3tag
584 (lambda* (#:key inputs #:allow-other-keys)
585 ;; libid3tag does not provide a .pc file and EasyTAG's configure
586 ;; script healivy relies on pkg-config. Providing a temporary
587 ;; local .pc file is easier than patching the configure script.
588 (let* ((libid3tag (assoc-ref inputs "libid3tag")))
589 (mkdir-p "pkgconfig")
591 "pkgconfig/id3tag.pc"
595 libdir=${prefix}/lib~@
596 includedir=${prefix}/include~@
601 Libs: -L${libdir} -lid3tag -lz~@
602 Cflags: -I${includedir}~%"
604 (setenv "PKG_CONFIG_PATH"
605 (string-append (getenv "PKG_CONFIG_PATH")
606 ":" (getcwd) "/pkgconfig"))
608 (add-after 'unpack 'patch-makefile
610 (substitute* "Makefile.in"
611 ;; The Makefile generates a test-desktop-file-validate.sh
612 ;; script with /bin/sh hard-coded.
613 (("/bin/sh") (which "sh"))
614 ;; Don't create 'icon-theme.cache'.
615 (("gtk-update-icon-cache") "true"))
617 (home-page "https://wiki.gnome.org/Apps/EasyTAG")
618 (synopsis "Simple application for viewing and editing tags in audio files")
620 "EasyTAG is an application for viewing and editing tags in audio files.
621 It supports MP3, MP2, MP4/AAC, FLAC, Ogg Opus, Ogg Speex, Ogg Vorbis,
622 MusePack, Monkey's Audio, and WavPack files.")
623 (license license:gpl2+)))
625 (define-public extempore
632 (url "https://github.com/digego/extempore.git")
636 "12fsp7zkfxb9kykwq46l88kcbbici9arczrrsl4qn87m6vm5349l"))
637 (file-name (string-append name "-" version "-checkout"))))
638 (build-system cmake-build-system)
640 `(;; The default target also includes ahead-of-time compilation of the
641 ;; standard libraries. However, during the "install" phase this would
642 ;; happen *again* for unknown reasons. Hence we only build the
643 ;; extempore executable during the build phase.
644 #:make-flags '("extempore")
645 #:configure-flags '("-DJACK=ON"
646 ;; We want to distribute.
648 ;; Don't download any dependencies.
650 #:modules ((ice-9 match)
651 (guix build cmake-build-system)
654 (modify-phases %standard-phases
655 (add-after 'unpack 'patch-directories
656 (lambda* (#:key outputs #:allow-other-keys)
657 ;; Rewrite default path to runtime directory
658 (substitute* "src/Extempore.cpp"
659 (("runtimedir \\+= \"runtime\"")
660 (string-append "runtimedir = \""
661 (assoc-ref outputs "out")
662 "/lib/extempore/runtime\"")))
663 (substitute* "extras/extempore.el"
664 (("\\(runtime-directory \\(concat default-directory \"runtime\"\\)\\)")
665 (string-append "(runtime-directory \""
666 (assoc-ref outputs "out")
667 "/lib/extempore/runtime"
670 (add-after 'unpack 'link-with-additional-libs
672 ;; The executable must be linked with libffi and zlib.
673 (substitute* "CMakeLists.txt"
674 (("add_dependencies\\(aot_extended extended_deps\\)") "")
675 (("target_link_libraries\\(extempore PRIVATE dl" line)
676 (string-append line " ffi z")))
678 ;; FIXME: AOT compilation of the nanovg bindings fail with the error:
679 ;; "Compiler Error could not bind _nvgLinearGradient"
680 (add-after 'unpack 'disable-nanovg
682 (substitute* "CMakeLists.txt"
683 (("aotcompile_lib\\(libs/external/nanovg.xtm.*") ""))
685 ;; FIXME: All examples that are used as tests segfault for some
687 (add-after 'unpack 'disable-broken-tests
689 (substitute* "CMakeLists.txt"
690 (("extempore_add_example_as_test\\(.*") ""))
692 (add-after 'unpack 'hardcode-external-lib-paths
693 (lambda* (#:key inputs #:allow-other-keys)
694 (use-modules (ice-9 match))
697 ((file-name lib pkg-name)
698 (substitute* (string-append "libs/external/" file-name ".xtm")
699 ((lib) (string-append (assoc-ref inputs pkg-name)
701 '(("assimp" "libassimp.so" "assimp")
702 ("portmidi" "libportmidi.so" "portmidi")
703 ("sndfile" "libsndfile.so" "libsndfile")
704 ("fft" "libkiss_fft.so" "kiss-fft")
705 ("stb_image" "libstb_image.so" "stb-image")
706 ("nanovg" "libnanovg.so" "nanovg")
707 ("glext" "libGL.so" "mesa")
708 ("glfw3" "libglfw.so" "glfw")
709 ("gl/glcore-directbind" "libGL.so" "mesa")
710 ("gl/glcompat-directbind" "libGL.so" "mesa")))
712 (add-after 'unpack 'use-own-llvm
713 (lambda* (#:key inputs #:allow-other-keys)
714 (setenv "EXT_LLVM_DIR" (assoc-ref inputs "llvm"))
715 ;; Our LLVM builds shared libraries, so Extempore should use
717 (substitute* "CMakeLists.txt"
718 (("CMAKE_STATIC_LIBRARY") "CMAKE_SHARED_LIBRARY"))
720 (add-after 'unpack 'fix-aot-compilation
721 (lambda* (#:key outputs #:allow-other-keys)
722 (substitute* "CMakeLists.txt"
723 ;; EXT_SHARE_DIR does not exist before installation, so the
724 ;; working directory should be the source directory instead.
725 (("WORKING_DIRECTORY \\$\\{EXT_SHARE_DIR\\}")
726 "WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}")
727 ;; Extempore needs to be told where the runtime is to be found.
728 ;; While we're at it we disable automatic tuning for a specific
729 ;; CPU to make binary substitution possible.
730 (("COMMAND extempore" prefix)
731 (string-append prefix " --sharedir " (getcwd)
732 " --mcpu=generic --attr=none")))
735 `(("llvm" ,llvm-for-extempore)
738 ("libsndfile" ,libsndfile)
741 ("stb-image" ,stb-image-for-extempore)
742 ("kiss-fft" ,kiss-fft-for-extempore)
743 ("nanovg" ,nanovg-for-extempore)
744 ("portmidi" ,portmidi-for-extempore)
746 ("alsa-lib" ,alsa-lib)
747 ("portaudio" ,portaudio)
753 ("emacs" ,emacs-no-x)))
754 ;; Extempore refuses to build on architectures other than x86_64
755 (supported-systems '("x86_64-linux"))
756 (home-page "http://digego.github.io/extempore/")
757 (synopsis "Programming environment for live coding of multimedia")
759 "Extempore is a programming language and runtime environment designed
760 with live programming in mind. It supports interactive programming in a REPL
761 style, compiling and binding code just-in-time. Although Extempore has its
762 roots in 'live coding' of audiovisual media art, it is suitable for any task
763 domain where dynamic run-time modifiability and good numerical performance are
764 required. Extempore also has strong timing and concurrency semantics, which
765 are helpful when working in problem spaces where timing is important (such as
767 (license license:bsd-2)))
775 (uri (string-append "http://das.nasophon.de/download/klick-"
779 "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j"))))
780 (build-system scons-build-system)
782 `(#:scons-flags (list (string-append "PREFIX=" %output))
783 #:scons ,scons-python2
784 #:tests? #f ; no "check" target
786 (modify-phases %standard-phases
787 (add-after 'unpack 'be-permissive
789 (substitute* "SConstruct"
790 (("'-Wall'") "'-Wall', '-fpermissive'"))
792 (add-after 'unpack 'replace-removed-scons-syntax
794 (substitute* "SConstruct"
795 (("BoolOption") "BoolVariable")
796 (("PathOption") "PathVariable")
797 (("Options") "Variables"))
802 ("libsndfile" ,libsndfile)
803 ("libsamplerate" ,libsamplerate)
805 ("rubberband" ,rubberband)))
807 `(("pkg-config" ,pkg-config)))
808 (home-page "http://das.nasophon.de/klick/")
809 (synopsis "Metronome for JACK")
811 "klick is an advanced command-line based metronome for JACK. It allows
812 you to define complex tempo maps for entire songs or performances.")
813 (license license:gpl2+)))
815 (define-public gtklick
821 (uri (string-append "http://das.nasophon.de/download/gtklick-"
825 "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp"))))
826 (build-system python-build-system)
828 `(#:tests? #f ; no tests
831 (modify-phases %standard-phases
832 (add-before 'build 'add-sitedirs
833 ;; .pth files are not automatically interpreted unless the
834 ;; directories containing them are added as "sites". The directories
835 ;; are then added to those in the PYTHONPATH. This is required for
836 ;; the operation of pygtk.
838 (substitute* "gtklick/gtklick.py"
840 "import pygtk, site, sys
841 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))))
842 (add-after 'unpack 'inject-store-path-to-klick
843 (lambda* (#:key inputs #:allow-other-keys)
844 (substitute* "gtklick/klick_backend.py"
845 (("KLICK_PATH = 'klick'")
846 (string-append "KLICK_PATH = '"
847 (assoc-ref inputs "klick")
852 ("python2-pyliblo" ,python2-pyliblo)
853 ("python2-pygtk" ,python2-pygtk)))
855 `(("gettext" ,gettext-minimal)))
856 (home-page "http://das.nasophon.de/gtklick/")
857 (synopsis "Simple metronome with an easy-to-use graphical interface")
859 "Gtklick is a simple metronome with an easy-to-use graphical user
860 interface. It is implemented as a frontend to @code{klick}.")
861 (license license:gpl2+)))
863 (define-public libgme
869 (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/"
870 "downloads/game-music-emu-" version
874 "0hkkmxbaas2sirlb5i4r10mgbbiaapjx8pazifabwba23m3wnijh"))))
875 (build-system cmake-build-system)
877 '(#:tests? #f)) ; no check target
879 `(;; Use gcc-4.9 to work around an internal compiler error that happens
880 ;; when using gcc-5.5.0. FIXME: Try removing this when the default
881 ;; compiler is no longer gcc-5.5.0.
883 (home-page "https://bitbucket.org/mpyne/game-music-emu")
884 (synopsis "Video game music file playback library")
886 "Game-music-emu is a collection of video game music file emulators that
887 support the following formats and systems:
890 ZX Spectrum/Asmtrad CPC
894 Sega Genesis/Mega Drive
896 NEC TurboGrafx-16/PC Engine
898 MSX Home Computer/other Z80 systems (doesn't support FM sound)
900 Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
902 Atari systems using POKEY sound chip
904 Super Nintendo/Super Famicom
906 Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
908 (license (list license:lgpl2.1+
909 ;; demo and player directories are under the Expat license
912 (define-public lilypond
919 "http://download.linuxaudio.org/lilypond/sources/v"
920 (version-major+minor version) "/"
921 name "-" version ".tar.gz"))
924 "0lql4q946gna2pl1g409mmmsvn2qvnq2z5cihrkfhk7plcqdny9n"))))
925 (build-system gnu-build-system)
927 `(#:tests? #f ; out-test/collated-files.html fails
929 #:make-flags '("conf=www") ;to generate images for info manuals
931 (list "CONFIGURATION=www"
932 (string-append "--with-texgyre-dir="
933 (assoc-ref %build-inputs "font-tex-gyre")
934 "/share/fonts/opentype/"))
936 (modify-phases %standard-phases
937 (add-after 'unpack 'use-texlive-union
939 ;; FIXME: fonts are not found and have to be generated in HOME.
940 (setenv "HOME" "/tmp")
941 ;; The test for the "lh" package fails, even though it is among
943 (substitute* "configure"
944 (("TEX_FIKPARM=.*") "TEX_FIKPARM=found\n"))
946 (add-after 'unpack 'fix-path-references
948 (substitute* "scm/backend-library.scm"
949 (("\\(search-executable '\\(\"gs\"\\)\\)")
950 (string-append "\"" (which "gs") "\""))
952 (string-append "\"" (which "sh") "\"")))
954 (add-before 'configure 'prepare-configuration
956 (substitute* "configure"
957 (("SHELL=/bin/sh") "SHELL=sh")
958 ;; When checking the fontforge version do not consider the
959 ;; version string that's part of the directory.
960 (("head -n") "tail -n")
961 ;; Also allow for SOURCE_DATE_EPOCH = 0 in fontforge.
962 (("20110222") "19700101"))
964 (setenv "conf" "www")
966 (add-after 'install 'install-info
969 "-j" (number->string (parallel-job-count))
970 "conf=www" "install-info")
973 `(("guile" ,guile-1.8)
974 ("font-dejavu" ,font-dejavu)
975 ("font-tex-gyre" ,font-tex-gyre)
976 ("fontconfig" ,fontconfig)
977 ("freetype" ,freetype)
978 ("ghostscript" ,ghostscript)
980 ("python" ,python-2)))
985 ("fontforge" ,fontforge)
987 ("gettext" ,gettext-minimal)
988 ("imagemagick" ,imagemagick)
989 ("netpbm" ,netpbm) ;for pngtopnm
990 ("texlive" ,(texlive-union (list texlive-metapost
993 texlive-latex-cyrillic)))
995 ("texi2html" ,texi2html)
997 ("pkg-config" ,pkg-config)
999 (home-page "http://www.lilypond.org/")
1000 (synopsis "Music typesetting")
1002 "GNU LilyPond is a music typesetter, which produces high-quality sheet
1003 music. Music is input in a text file containing control sequences which are
1004 interpreted by LilyPond to produce the final document. It is extendable with
1006 (license license:gpl3+)
1008 ;; On armhf and mips64el, building the documentation sometimes leads to
1009 ;; more than an hour of silence, so double the max silent time.
1010 (properties `((max-silent-time . 7200)))))
1012 (define-public non-sequencer
1013 ;; The latest tagged release is three years old and uses a custom build
1014 ;; system, so we take the last commit.
1015 (let ((commit "5ae43bb27c42387052a73e5ffc5d33efb9d946a9")
1018 (name "non-sequencer")
1019 (version (string-append "1.9.5-" revision "." (string-take commit 7)))
1023 (url "git://git.tuxfamily.org/gitroot/non/non.git")
1027 "1cljkkyi9dxqpqhx8y6l2ja4zjmlya26m26kqxml8gx08vyvddhx"))
1028 (file-name (string-append name "-" version "-checkout"))))
1029 (build-system waf-build-system)
1031 `(#:tests? #f ;no "check" target
1033 (list "--project=sequencer"
1034 ;; Disable the use of SSE unless on x86_64.
1035 ,@(if (not (string-prefix? "x86_64" (or (%current-target-system)
1036 (%current-system))))
1039 #:python ,python-2))
1042 ("libsigc++" ,libsigc++)
1046 `(("pkg-config" ,pkg-config)))
1047 (home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer")
1048 (synopsis "Pattern-based MIDI sequencer")
1050 "The Non Sequencer is a powerful, lightweight, real-time,
1051 pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for
1052 MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non
1053 Sequencer happens on-line, in real-time. Music can be composed live, while the
1054 transport is rolling.")
1055 (license license:gpl2+))))
1057 (define-public non-session-manager
1058 (package (inherit non-sequencer)
1059 (name "non-session-manager")
1061 (substitute-keyword-arguments (package-arguments non-sequencer)
1062 ((#:configure-flags flags)
1063 `(cons "--project=session-manager"
1064 (delete "--project=sequencer" ,flags)))))
1070 `(("pkg-config" ,pkg-config)))
1071 (home-page "http://non.tuxfamily.org/nsm/")
1072 (synopsis "Audio session management")
1074 "The Non Session Manager is an API and an implementation for audio
1075 session management. NSM clients use a well-specified OSC protocol to
1076 communicate with the session management daemon.")
1077 (license license:gpl2+)))
1079 (define-public non-mixer
1080 (package (inherit non-sequencer)
1083 (substitute-keyword-arguments (package-arguments non-sequencer)
1084 ((#:configure-flags flags)
1085 `(cons "--project=mixer"
1086 (delete "--project=sequencer" ,flags)))))
1094 `(("pkg-config" ,pkg-config)))
1095 (home-page "http://non.tuxfamily.org/wiki/Non%20Mixer")
1096 (synopsis "Modular digital audio mixer")
1098 "The Non Mixer is a powerful, reliable and fast modular digital audio
1099 mixer. It utilizes JACK for inter-application audio I/O and the NTK GUI
1100 toolkit for a fast and lightweight user interface. Non Mixer can be used
1101 alone or in concert with Non Timeline and Non Sequencer to form a complete
1103 (license license:gpl2+)))
1105 (define-public non-timeline
1106 (package (inherit non-sequencer)
1107 (name "non-timeline")
1109 (substitute-keyword-arguments (package-arguments non-sequencer)
1110 ((#:configure-flags flags)
1111 `(cons "--project=timeline"
1112 (delete "--project=sequencer" ,flags)))))
1116 ("libsndfile" ,libsndfile)
1119 `(("pkg-config" ,pkg-config)))
1120 (home-page "http://non.tuxfamily.org/wiki/Non%20Timeline")
1121 (synopsis "Modular digital audio timeline arranger")
1123 "The Non Timeline is a powerful, reliable and fast modular digital audio
1124 timeline arranger. It utilizes JACK for inter-application audio I/O and the
1125 NTK GUI toolkit for a fast and lightweight user interface. Non Timeline can
1126 be used alone or in concert with Non Mixer and Non Sequencer to form a
1128 (license license:gpl2+)))
1130 (define-public solfege
1137 "mirror://gnu/solfege/solfege-"
1141 "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i"))))
1142 (build-system gnu-build-system)
1144 `(#:tests? #f ; xmllint attempts to download DTD
1145 #:test-target "test"
1147 (modify-phases %standard-phases
1148 (add-after 'unpack 'fix-configuration
1149 (lambda* (#:key inputs #:allow-other-keys)
1150 (substitute* "default.config"
1151 (("/usr/bin/aplay") "aplay")
1152 (("/usr/bin/timidity") "timidity")
1153 (("/usr/bin/mpg123") "mpg123")
1154 (("/usr/bin/ogg123") "ogg123"))
1156 (add-before 'build 'patch-python-shebangs
1158 ;; Two python scripts begin with a Unicode BOM, so patch-shebang
1160 (substitute* '("solfege/parsetree.py"
1161 "solfege/presetup.py")
1162 (("#!/usr/bin/python") (string-append "#!" (which "python"))))
1164 (add-before 'build 'add-sitedirs
1165 ;; .pth files are not automatically interpreted unless the
1166 ;; directories containing them are added as "sites". The directories
1167 ;; are then added to those in the PYTHONPATH. This is required for
1168 ;; the operation of pygtk and pygobject.
1170 (substitute* "run-solfege.py"
1173 for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))
1175 (add-before 'build 'adjust-config-file-prefix
1176 (lambda* (#:key outputs #:allow-other-keys)
1177 (substitute* "run-solfege.py"
1178 (("prefix = os.path.*$")
1179 (string-append "prefix = " (assoc-ref outputs "out"))))
1181 (add-after 'install 'wrap-program
1182 (lambda* (#:key inputs outputs #:allow-other-keys)
1183 ;; Make sure 'solfege' runs with the correct PYTHONPATH.
1184 (let* ((out (assoc-ref outputs "out"))
1185 (path (getenv "PYTHONPATH")))
1186 (wrap-program (string-append out "/bin/solfege")
1187 `("PYTHONPATH" ":" prefix (,path))))
1190 `(("python" ,python-2)
1191 ("pygtk" ,python2-pygtk)
1192 ("gettext" ,gettext-minimal)
1194 ("lilypond" ,lilypond)))
1196 `(("pkg-config" ,pkg-config)
1197 ("txt2man" ,txt2man)
1198 ("libxml2" ,libxml2) ; for tests
1199 ("ghostscript" ,ghostscript)
1200 ("texinfo" ,texinfo)))
1201 (home-page "https://www.gnu.org/software/solfege/")
1202 (synopsis "Ear training")
1204 "GNU Solfege is a program for practicing musical ear-training. With it,
1205 you can practice your recognition of various musical intervals and chords. It
1206 features a statistics overview so you can monitor your progress across several
1207 sessions. Solfege is also designed to be extensible so you can easily write
1209 (license license:gpl3+)))
1211 (define-public powertabeditor
1213 (name "powertabeditor")
1214 (version "2.0.0-alpha10")
1218 (url "https://github.com/powertab/powertabeditor.git")
1220 (file-name (git-file-name name version))
1223 "1z4fhdp71ck9synr12rg1p6365xnypd8ih40c5icj4si36khvksk"))
1224 (modules '((guix build utils)))
1227 ;; Remove bundled sources for external libraries
1228 (delete-file-recursively "external")
1229 ;; Use only system libraries
1230 (substitute* "CMakeLists.txt"
1231 (("include\\( PTE_ThirdParty \\)")
1233 include(third_party/Qt)
1234 include(third_party/boost)
1235 add_library( Catch INTERFACE IMPORTED )
1236 add_library( rapidjson INTERFACE IMPORTED )"))
1238 (build-system cmake-build-system)
1240 `(#:modules ((guix build cmake-build-system)
1244 ;; CMake appears to lose the RUNPATH for some reason, so it has to be
1245 ;; explicitly set with CMAKE_INSTALL_RPATH.
1246 (list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
1247 (string-append "-DCMAKE_INSTALL_RPATH="
1248 (string-join (map (match-lambda
1250 (string-append directory "/lib")))
1251 %build-inputs) ";"))
1252 "-DPTE_DATA_DIR=share/powertabeditor")
1254 (modify-phases %standard-phases
1257 (invoke "bin/pte_tests"
1258 ;; FIXME: these tests fail
1259 "exclude:Actions/EditStaff"
1260 "exclude:Formats/PowerTabOldImport/MergeMultiBarRests"
1261 "exclude:Score/ViewFilter/FilterRule"
1262 "exclude:Score/ViewFilter/ViewFilter"
1263 "exclude:Formats/PowerTabOldImport/Directions")
1265 ;; FIXME: This bug has been fixed upstream, but no release has been
1266 ;; made yet. See https://github.com/powertab/powertabeditor/issues/257
1267 (add-after 'unpack 'fix-boost-bug
1269 (substitute* "source/score/voiceutils.cpp"
1270 (("boost::rational<int> duration\\(4, pos.getDurationType\\(\\)\\);")
1271 "boost::rational<int> duration(4, static_cast<int>(pos.getDurationType()));"))
1273 ;; Fix build with Qt 5.11.
1274 (add-after 'unpack 'add-missing-headers
1276 (substitute* (find-files "source/dialogs/" "\\.h$")
1277 (("#include <QDialog>" m)
1278 (string-append m "\n#include <QButtonGroup>")))
1279 (substitute* "source/widgets/mixer/mixeritem.h"
1280 (("#include <QWidget>" m)
1281 (string-append m "\n#include <QStyle>")))
1282 (substitute* "source/widgets/playback/playbackwidget.h"
1283 (("#include <QWidget>" m)
1284 (string-append m "\n#include <QButtonGroup>\n#include <QAction>")))
1286 (add-before 'configure 'remove-third-party-libs
1287 (lambda* (#:key inputs #:allow-other-keys)
1288 ;; Link with required static libraries, because we're not
1289 ;; using the bundled version of withershins.
1290 ;; Also add pthread for fixing a linker error.
1291 (substitute* "source/build/CMakeLists.txt"
1292 (("withershins" line)
1293 (string-append line "\n"
1294 (assoc-ref inputs "binutils")
1296 (assoc-ref inputs "libiberty")
1297 "/lib/libiberty.a\n"
1304 ("alsa-lib" ,alsa-lib)
1306 ("withershins" ,withershins)
1307 ("libiberty" ,libiberty) ;for withershins
1308 ("binutils" ,binutils) ;for -lbfd and -liberty (for withershins)
1309 ("timidity" ,timidity++)
1310 ("pugixml" ,pugixml)
1312 ("rapidjson" ,rapidjson)
1315 `(("catch" ,catch-framework)
1316 ("pkg-config" ,pkg-config)))
1317 (home-page "http://powertabs.net")
1318 (synopsis "Guitar tablature editor")
1320 "Power Tab Editor 2.0 is the successor to the famous original Power Tab
1321 Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
1322 (license license:gpl3+)))
1324 (define-public jalv-select
1326 (name "jalv-select")
1331 (url "https://github.com/brummer10/jalv_select.git")
1332 (commit (string-append "v" version))))
1333 (file-name (git-file-name name version))
1336 "15yanq1wra0hyh6x72ji7pk562iddg476g3vksj495x91zhnl6vm"))))
1337 (build-system gnu-build-system)
1340 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1342 (modify-phases %standard-phases
1344 (add-after 'unpack 'ignore-PATH
1345 (lambda* (#:key inputs #:allow-other-keys)
1346 (substitute* "jalv.select.cpp"
1347 (("echo \\$PATH.*tr ':'.*xargs ls")
1348 (string-append "ls -1 " (assoc-ref inputs "jalv") "/bin")))
1350 (add-before 'reset-gzip-timestamps 'make-manpages-writable
1351 (lambda* (#:key outputs #:allow-other-keys)
1352 (for-each make-file-writable
1353 (find-files (string-append (assoc-ref outputs "out")
1361 ("gtkmm" ,gtkmm-2)))
1363 `(("pkg-config" ,pkg-config)))
1364 (home-page "https://github.com/brummer10/jalv_select")
1365 (synopsis "GUI to select LV2 plugins and run them with jalv")
1367 "The jalv.select package provides a graphical user interface allowing
1368 users to select LV2 plugins and run them with jalv.")
1369 (license license:public-domain)))
1371 (define-public synthv1
1378 (string-append "mirror://sourceforge/synthv1/synthv1/" version
1379 "/synthv1-" version ".tar.gz"))
1382 "15kabmxp38wqvavs5hr1dqasjjf1j977kzqggxfmzyi3y5fan3hj"))))
1383 (build-system gnu-build-system)
1385 `(#:tests? #f)) ; there are no tests
1389 ("alsa-lib" ,alsa-lib)
1390 ("non-session-manager" ,non-session-manager)
1393 ("qttools" ,qttools)))
1395 `(("pkg-config" ,pkg-config)))
1396 (home-page "https://synthv1.sourceforge.io")
1397 (synopsis "Polyphonic subtractive synthesizer")
1399 "Synthv1 is an old-school subtractive polyphonic synthesizer with four
1400 oscillators and stereo effects.")
1401 (license license:gpl2+)))
1403 (define-public drumkv1
1410 (string-append "mirror://sourceforge/drumkv1/drumkv1/" version
1411 "/drumkv1-" version ".tar.gz"))
1414 "010p8nwnmqgj5mw324psig3hxi1g2gylxrigd6sj6sgcpy3kdm23"))))
1415 (build-system gnu-build-system)
1417 `(#:tests? #f)) ; there are no tests
1421 ("libsndfile" ,libsndfile)
1422 ("alsa-lib" ,alsa-lib)
1423 ("non-session-manager" ,non-session-manager)
1425 ("qtbase" ,qtbase)))
1427 `(("pkg-config" ,pkg-config)
1428 ("qttools" ,qttools)))
1429 (home-page "https://drumkv1.sourceforge.io")
1430 (synopsis "Drum-kit sampler synthesizer with stereo effects")
1432 "Drumkv1 is an old-school drum-kit sampler synthesizer with stereo
1434 (license license:gpl2+)))
1436 (define-public samplv1
1443 (string-append "mirror://sourceforge/samplv1/samplv1/" version
1444 "/samplv1-" version ".tar.gz"))
1447 "138kd9szgn3b97s7crhsyj8pgwb0bn4l9knd4zliqjgj2f1bs9x0"))))
1448 (build-system gnu-build-system)
1450 `(#:tests? #f)) ; there are no tests
1454 ("libsndfile" ,libsndfile)
1455 ("alsa-lib" ,alsa-lib)
1456 ("non-session-manager" ,non-session-manager)
1458 ("qtbase" ,qtbase)))
1460 `(("pkg-config" ,pkg-config)
1461 ("qttools" ,qttools)))
1462 (home-page "https://samplv1.sourceforge.io")
1463 (synopsis "Polyphonic sampler synthesizer with stereo effects")
1465 "Samplv1 is an old-school polyphonic sampler synthesizer with stereo
1467 (license license:gpl2+)))
1469 (define-public padthv1
1476 (string-append "mirror://sourceforge/padthv1/padthv1/" version
1477 "/padthv1-" version ".tar.gz"))
1480 "1k4p2ir12qjcs62knvw2s6qyvb46203yx22fnwp341cjk171cxji"))))
1481 (build-system gnu-build-system)
1483 `(#:tests? #f)) ; there are no tests
1487 ("alsa-lib" ,alsa-lib)
1488 ("non-session-manager" ,non-session-manager)
1491 ("qtbase" ,qtbase)))
1493 `(("pkg-config" ,pkg-config)
1494 ("qttools" ,qttools)))
1495 (home-page "https://padthv1.sourceforge.io")
1496 (synopsis "Polyphonic additive synthesizer")
1498 "Padthv1 is an old-school polyphonic additive synthesizer with stereo
1499 effects. Padthv1 is based on the PADsynth algorithm by Paul Nasca, as a
1500 special variant of additive synthesis.")
1501 (license license:gpl2+)))
1503 (define-public amsynth
1510 (uri (string-append "https://github.com/amsynth/amsynth/releases/"
1511 "download/release-" version
1512 "/amsynth-" version ".tar.bz2"))
1515 "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
1516 (build-system gnu-build-system)
1519 (modify-phases %standard-phases
1520 (add-before 'configure 'set-flags
1522 ;; Compile with C++11, required by gtkmm.
1523 (setenv "CXXFLAGS" "-std=c++11")
1526 `(("alsa-lib" ,alsa-lib)
1530 ("libsndfile" ,libsndfile)
1532 ("gtkmm" ,gtkmm-2)))
1534 `(("pkg-config" ,pkg-config)
1535 ("intltool" ,intltool)))
1536 (home-page "http://amsynth.github.io")
1537 (synopsis "Analog modeling synthesizer")
1539 "amsynth is an easy-to-use software synthesizer with a classic
1540 subtractive synthesizer topology. Its features include: dual
1541 oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct
1542 resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato
1543 keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO
1544 which can modulate the oscillators, filter, and amplitude; distortion and
1546 (license license:gpl2+)))
1548 (define-public setbfree
1555 (url "https://github.com/pantherb/setBfree")
1556 (commit (string-append "v" version))))
1557 (file-name (git-file-name name version))
1560 "1lpsa64xvwa9xbbp8zcwxy5w0daffc7fziny2pizabqh7m9xqjl2"))))
1561 (build-system gnu-build-system)
1563 `(#:tests? #f ; no "check" target
1565 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1566 (string-append "FONTFILE="
1567 (assoc-ref %build-inputs "font-bitstream-vera")
1568 "/share/fonts/truetype/VeraBd.ttf")
1569 ;; Disable unsupported optimization flags on non-x86
1570 ,@(let ((system (or (%current-target-system)
1571 (%current-system))))
1572 (if (or (string-prefix? "x86_64" system)
1573 (string-prefix? "i686" system))
1575 '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
1577 (modify-phases %standard-phases
1578 (add-before 'build 'set-CC-variable
1579 (lambda _ (setenv "CC" "gcc") #t))
1580 (delete 'configure))))
1584 ("zita-convolver" ,zita-convolver)
1587 ("font-bitstream-vera" ,font-bitstream-vera)))
1589 `(("help2man" ,help2man)
1590 ("pkg-config" ,pkg-config)))
1591 (home-page "http://setbfree.org")
1592 (synopsis "Tonewheel organ")
1594 "setBfree is a MIDI-controlled, software synthesizer designed to imitate
1595 the sound and properties of the electromechanical organs and sound
1596 modification devices that brought world-wide fame to the names and products of
1597 Laurens Hammond and Don Leslie.")
1598 (license license:gpl2+)))
1600 (define-public beast
1606 (uri (string-append "https://testbit.eu/pub/dists/beast/beast-"
1610 "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn"))))
1611 (build-system gnu-build-system)
1613 '(#:parallel-build? #f)) ; Race conditions cause build failures
1615 `(("rapicorn" ,rapicorn)
1616 ("guile" ,guile-1.8)
1617 ("python" ,python-2)
1618 ("libgnomecanvas" ,libgnomecanvas)
1622 ("alsa-lib" ,alsa-lib)
1623 ("libvorbis" ,libvorbis)
1624 ("gettext" ,gettext-minimal)))
1626 `(("pkg-config" ,pkg-config)
1627 ("glib:bin" ,glib "bin")
1628 ("cython" ,python2-cython)
1630 ("perl-xml-parser" ,perl-xml-parser)))
1631 (home-page "https://testbit.eu/wiki/Beast_Home")
1632 (synopsis "Music composition and modular synthesis environment")
1634 "Beast is a music composition and modular synthesis application. It
1635 supports a wide range of standards in the field, such as MIDI, various audio
1636 file formats and LADSPA modules. It allows for multitrack editing, real-time
1637 synthesis, 32bit audio rendering, precise timing down to sample granularity,
1638 on-demand and partial loading of wave files, on the fly decoding, stereo
1639 mixing, FFT scopes, MIDI automation and full scriptability in Scheme.")
1640 (license license:gpl3+)))
1642 (define-public bristol
1648 (uri (string-append "mirror://sourceforge/bristol/bristol/"
1649 (version-major+minor version)
1650 "/bristol-" version ".tar.gz"))
1653 "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
1654 (build-system gnu-build-system)
1657 (modify-phases %standard-phases
1658 (add-after 'unpack 'remove-sse-flags
1659 (lambda* (#:key system #:allow-other-keys)
1660 (when (not (or (string-prefix? "x86_64" system)
1661 (string-prefix? "i686" system)))
1662 (substitute* "bristol/Makefile.in"
1663 (("-msse -mfpmath=sse") "")))
1665 ;; alsa-lib 1.1.x no longer provides iatomic.h. That's okay because
1666 ;; bristol actually doesn't use it.
1667 (add-after 'unpack 'do-not-use-alsa-iatomic
1669 (substitute* "libbristolaudio/audioEngineJack.c"
1670 (("#include <alsa/iatomic.h>") ""))
1672 ;; We know that Bristol has been linked with JACK and we don't have
1673 ;; ldd, so we can just skip this check.
1674 (add-after 'unpack 'do-not-grep-for-jack
1676 (substitute* "bin/startBristol.in"
1677 (("ldd `which bristol` | grep jack") "echo guix"))
1680 `(("alsa-lib" ,alsa-lib)
1683 ("libx11" ,libx11)))
1685 `(("pkg-config" ,pkg-config)))
1686 (home-page "http://bristol.sourceforge.net/")
1687 (synopsis "Synthesizer emulator")
1689 "Bristol is an emulation package for a number of different @code{classic}
1690 synthesizers including additive and subtractive and a few organs. The
1691 application consists of the engine, which is called bristol, and its own GUI
1692 library called brighton that represents all the emulations. There are
1693 currently more than twenty different emulations; each does sound different
1694 although the author maintains that the quality and accuracy of each emulation
1696 (license license:gpl3+)))
1698 (define-public tuxguitar
1705 "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-"
1706 version "/tuxguitar-" version "-src.tar.gz"))
1709 "10arfpgm2pw7mn922klklzn05lw5ifqx070shdrar81afmkfbbd9"))))
1710 (build-system ant-build-system)
1712 `(#:build-target "build"
1714 #:tests? #f ; no tests
1716 (modify-phases %standard-phases
1717 (add-after 'unpack 'enter-dir
1718 (lambda _ (chdir "TuxGuitar-lib") #t))
1719 (add-after 'build 'build-libraries
1720 (lambda* (#:key inputs outputs #:allow-other-keys)
1721 (let* ((initial-classpath (getenv "CLASSPATH"))
1722 (build-dir (lambda (dir)
1725 (string-join (cons initial-classpath
1726 (find-files (getcwd) "\\.jar$"))
1729 (if (file-exists? "build.xml")
1730 ((assoc-ref %standard-phases 'build)
1731 #:build-target "build")
1733 ;; Generate default build.xml.
1734 ((@@ (guix build ant-build-system) default-build.xml)
1735 (string-append (string-downcase dir) ".jar")
1736 (string-append (assoc-ref outputs "out")
1738 ((assoc-ref %standard-phases 'build)))))))
1739 (map build-dir '("TuxGuitar-editor-utils"
1740 "TuxGuitar-ui-toolkit"
1741 "TuxGuitar-ui-toolkit-swt"
1742 "TuxGuitar-awt-graphics")))))
1743 (add-after 'build-libraries 'build-application
1745 (chdir "../TuxGuitar")
1746 ((assoc-ref %standard-phases 'build)
1747 #:build-target "build")))
1749 (lambda* (#:key inputs outputs #:allow-other-keys)
1750 (let* ((out (assoc-ref outputs "out"))
1751 (bin (string-append out "/bin"))
1752 (share (string-append out "/share"))
1753 (lib (string-append share "/java"))
1754 (swt (assoc-ref inputs "java-swt")))
1756 ;; Install all jars.
1757 (for-each (lambda (file)
1758 (install-file file lib))
1759 (find-files ".." "\\.jar$"))
1761 ;; Install all resources.
1762 (copy-recursively "share" share)
1765 (call-with-output-file (string-append bin "/tuxguitar")
1767 (let ((classpath (string-join (append (find-files lib "\\.jar$")
1768 (find-files swt "\\.jar$"))
1772 (string-append "#!/bin/sh\n"
1775 " -Dtuxguitar.home.path=" out
1776 " -Dtuxguitar.share.path=" out "/share"
1777 " -Dswt.library.path=" swt "/lib"
1778 " org.herac.tuxguitar.app.TGMainSingleton"
1779 " \"$1\" \"$2\"")))))
1780 (chmod (string-append bin "/tuxguitar") #o555)
1783 `(("java-swt" ,java-swt)))
1784 (home-page "http://tuxguitar.com.ar/")
1785 (synopsis "Multitrack tablature editor and player")
1787 "TuxGuitar is a guitar tablature editor with player support through midi.
1788 It can display scores and multitrack tabs. TuxGuitar provides various
1789 additional features, including autoscrolling while playing, note duration
1790 management, bend/slide/vibrato/hammer-on/pull-off effects, support for
1791 tuplets, time signature management, tempo management, gp3/gp4/gp5 import and
1793 (license license:lgpl2.1+)))
1802 (string-append "http://msp.ucsd.edu/Software/pd-"
1803 version ".src.tar.gz"))
1806 "0hg4n5b55f650qsc0mjx559072dp7vfza7w0pvk6rk2l831cvsps"))))
1807 (build-system gnu-build-system)
1809 `(#:tests? #f ; no "check" target
1813 (string-append "--with-wish=" (string-append
1814 (assoc-ref %build-inputs "tk")
1817 (modify-phases %standard-phases
1818 (add-before 'configure 'fix-with-path
1820 (substitute* "tcl/pd-gui.tcl"
1821 (("exec wish ") (string-append "exec " (which "wish8.6") " ")))
1824 `(("autoconf" ,autoconf)
1825 ("automake" ,automake)
1826 ("libtool" ,libtool)
1827 ("gettext" ,gettext-minimal)
1828 ("pkg-config" ,pkg-config)))
1831 ("alsa-lib" ,alsa-lib)
1833 (home-page "http://puredata.info")
1834 (synopsis "Visual programming language for artistic performances")
1836 "Pure Data (aka Pd) is a visual programming language. Pd enables
1837 musicians, visual artists, performers, researchers, and developers to create
1838 software graphically, without writing lines of code. Pd is used to process
1839 and generate sound, video, 2D/3D graphics, and interface sensors, input
1840 devices, and MIDI. Pd can easily work over local and remote networks to
1841 integrate wearable technology, motor systems, lighting rigs, and other
1842 equipment. Pd is suitable for learning basic multimedia processing and visual
1843 programming methods as well as for realizing complex systems for large-scale
1845 (license license:bsd-3)))
1847 (define-public libpd
1854 (url "https://github.com/libpd/libpd.git")
1856 (recursive? #t))) ; for the 'pure-data' submodule
1857 (file-name (string-append name "-" version "-checkout"))
1860 "1bcg1d9iyf9n37hwwphmih0c8rd1xcqykil5z1cax6xfs76552nk"))))
1861 (build-system gnu-build-system)
1863 '(#:tests? #f ; no tests
1864 #:make-flags '("CC=gcc")
1866 (modify-phases %standard-phases
1867 (delete 'configure) ; no configure script
1869 (lambda* (#:key outputs #:allow-other-keys)
1870 (let ((out (assoc-ref outputs "out")))
1871 (invoke "make" "install"
1872 (string-append "prefix=" out)
1873 ;; XXX: Fix the last 2 lines of 'install' target.
1875 "LIBPD_DEF=NO")))))))
1876 (home-page "http://libpd.cc/")
1877 (synopsis "Pure Data as an embeddable audio synthesis library")
1879 "Libpd provides Pure Data as an embeddable audio synthesis library. Its
1880 main purpose is to liberate raw audio rendering from audio and MIDI drivers.")
1881 (license license:bsd-3)))
1883 (define-public portmidi
1889 (uri (string-append "mirror://sourceforge/portmedia/portmidi/"
1890 version "/portmidi-src-" version ".zip"))
1893 "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88"))
1894 (patches (list (search-patch "portmidi-modular-build.patch")))))
1895 (build-system cmake-build-system)
1897 `(#:tests? #f ; tests cannot be linked
1898 #:build-type "Release" ; needed to have PMALSA set
1900 (list "-DPORTMIDI_ENABLE_JAVA=Off"
1901 "-DPORTMIDI_ENABLE_TEST=Off") ; tests fail linking
1903 (modify-phases %standard-phases
1904 ;; Some packages, e.g., MuseScore, expect "libporttime.so" instead of
1905 ;; "libportmidi.so". Distributions get away with it by creating an
1906 ;; appropriate symlink.
1907 (add-after 'install 'add-porttime
1908 (lambda* (#:key outputs #:allow-other-keys)
1909 (let* ((out (assoc-ref outputs "out"))
1910 (lib (string-append out "/lib")))
1911 (with-directory-excursion lib
1912 (symlink "libportmidi.so" "libporttime.so")))
1915 `(("alsa-lib" ,alsa-lib)))
1917 `(("unzip" ,unzip)))
1918 (home-page "http://portmedia.sourceforge.net/portmidi/")
1919 (synopsis "Library for MIDI I/O")
1921 "PortMidi is a library supporting real-time input and output of MIDI data
1922 using a system-independent interface.")
1923 (license license:expat)))
1925 (define-public portmidi-for-extempore
1926 (package (inherit portmidi)
1927 (name "portmidi-for-extempore")
1932 (url "https://github.com/extemporelang/portmidi.git")
1934 (file-name (git-file-name name version))
1937 "1inriyrjf7xx2b7r54x0vmf9ngyqgr7g5060c22bwkbsgg53apzv"))))
1938 (build-system cmake-build-system)
1939 (arguments `(#:tests? #f)) ; no tests
1941 ;; Extempore refuses to build on architectures other than x86_64
1942 (supported-systems '("x86_64-linux"))
1943 (home-page "https://github.com/extemporelang/portmidi/")))
1945 (define-public python-pyportmidi
1947 (name "python-pyportmidi")
1948 (version (package-version portmidi))
1949 (source (package-source portmidi))
1950 (build-system python-build-system)
1952 `(#:tests? #f ; no tests included
1954 (modify-phases %standard-phases
1955 (add-after 'unpack 'enter-dir
1956 (lambda _ (chdir "pm_python") #t))
1957 (add-after 'enter-dir 'fix-setup.py
1959 (substitute* "setup.py"
1960 ;; Use Python 3 syntax
1961 (("print (\".*\")" _ text)
1962 (string-append "print(" text ")\n"))
1963 ;; TODO.txt and CHANGES.txt don't exist
1964 (("CHANGES =.*") "CHANGES = \"\"\n")
1965 (("TODO =.*") "TODO = \"\"\n"))
1968 `(("portmidi" ,portmidi)
1969 ("alsa-lib" ,alsa-lib)))
1971 `(("python-cython" ,python-cython)
1973 (home-page "http://portmedia.sourceforge.net/portmidi/")
1974 (synopsis "Python bindings to PortMidi")
1976 "This package provides Python bindings to the PortMidi library.")
1977 (license license:expat)))
1979 (define-public frescobaldi
1981 (name "frescobaldi")
1986 "https://github.com/wbsoft/frescobaldi/releases/download/v"
1987 version "/frescobaldi-" version ".tar.gz"))
1990 "15cqhbjbjikr7ljgiq56bz2gxrr38j8p0f78p2vhyzydaviy9a2z"))))
1991 (build-system python-build-system)
1992 (arguments `(#:tests? #f)) ; no tests included
1994 `(("lilypond" ,lilypond)
1995 ("portmidi" ,portmidi)
1996 ("python-pyqt" ,python-pyqt)
1997 ("python-ly" ,python-ly)
1998 ("python-pyportmidi" ,python-pyportmidi)
1999 ("poppler" ,poppler)
2000 ("python-poppler-qt5" ,python-poppler-qt5)
2001 ("python-sip" ,python-sip)))
2002 (home-page "http://www.frescobaldi.org/")
2003 (synopsis "LilyPond sheet music text editor")
2005 "Frescobaldi is a LilyPond sheet music text editor with syntax
2006 highlighting and automatic completion. Among other things, it can render
2007 scores next to the source, can capture input from MIDI or read MusicXML and
2008 ABC files, has a MIDI player for proof-listening, and includes a documentation
2010 (license license:gpl2+)))
2012 (define-public drumstick
2018 (uri (string-append "mirror://sourceforge/drumstick/"
2019 version "/drumstick-" version ".tar.bz2"))
2022 "1n9wvg79yvkygrkc8xd8pgrd3d7hqmr7gh24dccf0px23lla9b3m"))))
2023 (build-system cmake-build-system)
2025 `(#:tests? #f ; no test target
2026 #:configure-flags '("-DLIB_SUFFIX=")
2028 (modify-phases %standard-phases
2029 (add-before 'configure 'fix-docbook
2030 (lambda* (#:key inputs #:allow-other-keys)
2031 (substitute* "cmake_admin/CreateManpages.cmake"
2032 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
2033 (string-append (assoc-ref inputs "docbook-xsl")
2034 "/xml/xsl/docbook-xsl-"
2035 ,(package-version docbook-xsl)
2036 "/manpages/docbook.xsl")))
2039 `(("qtbase" ,qtbase)
2041 ("alsa-lib" ,alsa-lib)))
2043 `(("pkg-config" ,pkg-config)
2044 ("libxslt" ,libxslt) ; for xsltproc
2045 ("docbook-xsl" ,docbook-xsl)
2046 ("doxygen" ,doxygen)))
2047 (home-page "http://drumstick.sourceforge.net/")
2048 (synopsis "C++ MIDI library")
2050 "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It
2051 includes a C++ wrapper around the ALSA library sequencer interface. A
2052 complementary library provides classes for processing SMF (Standard MIDI
2053 files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A
2054 multiplatform realtime MIDI I/O library is also provided with various output
2055 backends, including ALSA, OSS, Network and FluidSynth.")
2056 (license license:gpl2+)))
2064 (uri (string-append "mirror://sourceforge/vmpk/vmpk/"
2065 version "/vmpk-" version ".tar.bz2"))
2068 "1i3hnvdgz46n4k5v0q4jhgh7nkh0s390ix4nqr69z0q3026yp0p6"))))
2069 (build-system cmake-build-system)
2071 `(#:tests? #f ; no test target
2073 (modify-phases %standard-phases
2074 (add-before 'configure 'fix-docbook
2075 (lambda* (#:key inputs #:allow-other-keys)
2076 (substitute* "cmake_admin/CreateManpages.cmake"
2077 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
2078 (string-append (assoc-ref inputs "docbook-xsl")
2079 "/xml/xsl/docbook-xsl-"
2080 ,(package-version docbook-xsl)
2081 "/manpages/docbook.xsl")))
2084 `(("drumstick" ,drumstick)
2087 ("qttools" ,qttools)
2088 ("qtx11extras" ,qtx11extras)))
2090 `(("libxslt" ,libxslt) ;for xsltproc
2091 ("docbook-xsl" ,docbook-xsl)
2092 ("pkg-config" ,pkg-config)))
2093 (home-page "http://vmpk.sourceforge.net")
2094 (synopsis "Virtual MIDI piano keyboard")
2096 "Virtual MIDI Piano Keyboard is a MIDI events generator and receiver. It
2097 doesn't produce any sound by itself, but can be used to drive a MIDI
2098 synthesizer (either hardware or software, internal or external). You can use
2099 the computer's keyboard to play MIDI notes, and also the mouse. You can use
2100 the Virtual MIDI Piano Keyboard to display the played MIDI notes from another
2101 instrument or MIDI file player.")
2102 (license license:gpl3+)))
2104 (define-public zynaddsubfx
2106 (name "zynaddsubfx")
2111 "mirror://sourceforge/zynaddsubfx/zynaddsubfx/"
2112 version "/zynaddsubfx-" version ".tar.bz2"))
2115 "0qwzg14h043rmyf9jqdylxhyfy4sl0vsr0gjql51wjhid0i34ivl"))))
2116 (build-system cmake-build-system)
2119 (modify-phases %standard-phases
2120 ;; Move SSE compiler optimization flags from generic target to
2121 ;; athlon64 and core2 targets, because otherwise the build would fail
2122 ;; on non-Intel machines.
2123 (add-after 'unpack 'remove-sse-flags-from-generic-target
2125 (substitute* "src/CMakeLists.txt"
2126 (("-msse -msse2 -mfpmath=sse") "")
2127 (("-march=(athlon64|core2)" flag)
2128 (string-append flag " -msse -msse2 -mfpmath=sse")))
2134 ("alsa-lib" ,alsa-lib)
2137 ("minixml" ,minixml)
2141 `(("pkg-config" ,pkg-config)))
2142 (home-page "http://zynaddsubfx.sf.net/")
2143 (synopsis "Software synthesizer")
2145 "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
2146 three synthesizer engines, multitimbral and polyphonic synths, microtonal
2147 capabilities, custom envelopes, effects, etc.")
2148 (license license:gpl2)))
2150 (define-public yoshimi
2156 (uri (string-append "mirror://sourceforge/yoshimi/"
2157 (version-major+minor version)
2158 "/yoshimi-" version ".tar.bz2"))
2161 "140f2k4akj39pny8c7i794q125415gyvmy4rday0il5ncp3glik4"))))
2162 (build-system cmake-build-system)
2164 `(#:tests? #f ; there are no tests
2166 (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR="
2167 (assoc-ref %outputs "out") "/share"))
2169 (modify-phases %standard-phases
2170 (add-before 'configure 'enter-dir
2171 (lambda _ (chdir "src") #t))
2172 ;; Move SSE compiler optimization flags from generic target to
2173 ;; athlon64 and core2 targets, because otherwise the build would fail
2174 ;; on non-Intel machines.
2175 (add-after 'unpack 'remove-sse-flags-from-generic-target
2177 (substitute* "src/CMakeLists.txt"
2178 (("-msse -msse2 -mfpmath=sse") "")
2179 (("-march=(athlon64|core2)" flag)
2180 (string-append flag " -msse -msse2 -mfpmath=sse")))
2185 ("alsa-lib" ,alsa-lib)
2187 ("fontconfig" ,fontconfig)
2188 ("minixml" ,minixml)
2192 ("readline" ,readline)
2193 ("ncurses" ,ncurses)
2197 `(("pkg-config" ,pkg-config)))
2198 (home-page "http://yoshimi.sourceforge.net/")
2199 (synopsis "Multi-paradigm software synthesizer")
2201 "Yoshimi is a fork of ZynAddSubFX, a feature-heavy real-time software
2202 synthesizer. It offers three synthesizer engines, multitimbral and polyphonic
2203 synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi
2204 improves on support for JACK features, such as JACK MIDI.")
2205 (license license:gpl2)))
2207 (define-public libgig
2213 (uri (string-append "http://download.linuxsampler.org/packages/"
2214 "libgig-" version ".tar.bz2"))
2217 "02xx6bqxzgkvrawwnzrnxx1ypk244q4kpwfd58266f9ji8kq18h6"))))
2218 (build-system gnu-build-system)
2220 `(("libuuid" ,util-linux)
2221 ("libsndfile" ,libsndfile)))
2223 `(("pkg-config" ,pkg-config)))
2224 (home-page "http://linuxsampler.org/libgig/")
2225 (synopsis "C++ library for working with Gigasampler (.gig) files")
2227 "Libgig is a C++ library for loading, modifying existing and creating new
2228 Gigasampler (.gig) files and DLS (Downloadable Sounds) Level 1/2 files, KORG
2229 sample based instruments (.KSF and .KMP files), SoundFont v2 (.sf2) files and
2230 AKAI sampler data. The package includes a couple of command line tools based
2232 ;; The library and tools are released under the GPL, except the AKAI
2233 ;; classes which are released under the LGPL.
2234 (license (list license:gpl2+ license:lgpl2.1+))))
2236 (define-public jack-keyboard
2238 (name "jack-keyboard")
2243 (uri (string-append "mirror://sourceforge/jack-keyboard/jack-keyboard/"
2244 version "/jack-keyboard-" version ".tar.gz"))
2247 "0mzmg8aavybcfdlq2yd9d0vscqd6is5p6jzrgfpfm5j3xdcvh2s3"))))
2248 (build-system gnu-build-system)
2254 `(("pkg-config" ,pkg-config)))
2255 (home-page "http://jack-keyboard.sourceforge.net/")
2256 (synopsis "Virtual MIDI keyboard")
2257 (description "Jack-keyboard is a virtual MIDI keyboard, a program that
2258 allows you to send JACK MIDI events (i.e. play) using your PC keyboard.")
2259 (license license:bsd-2)))
2261 (define-public jack-capture
2263 (name "jack-capture")
2268 (url "https://github.com/kmatheussen/jack_capture.git")
2270 (file-name (string-append name "-" version "-checkout"))
2273 "0jcqky96q8xgya6wqv1p8pj9fkf2wh7ynl67ah7x5bn3basgfclf"))))
2274 (build-system gnu-build-system)
2277 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2278 #:tests? #f ; there are none
2280 (modify-phases %standard-phases
2281 (delete 'configure))))
2283 `(("pkg-config" ,pkg-config)
2291 ("libsndfile" ,libsndfile)))
2292 (home-page "https://github.com/kmatheussen/jack_capture")
2293 (synopsis "Program for recording sound files with JACK")
2294 (description "This is a program for recording sound files with JACK. It
2295 can connect to any JACK port and record the output into a stereo WAV file.")
2296 (license license:gpl2+)))
2298 (define-public cursynth
2305 (uri (string-append "mirror://gnu/cursynth/cursynth-"
2308 (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v"))
2309 (patches (search-patches "cursynth-wave-rand.patch"))))
2310 (build-system gnu-build-system)
2311 (native-inputs `(("pkg-config" ,pkg-config)))
2312 ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently
2313 ;; prevents us from using pulseaudio
2314 (inputs `(("ncurses" ,ncurses)
2315 ("alsa" ,alsa-lib)))
2316 (home-page "https://www.gnu.org/software/cursynth/")
2317 (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses")
2318 (description "GNU cursynth is a polyphonic synthesizer that runs
2319 graphically in the terminal. It is built on a full-featured subtractive
2320 synthesis engine. Notes and parameter changes may be entered via MIDI or the
2321 computer's keyboard.")
2322 (license license:gpl3+)))
2324 (define-public aj-snapshot
2326 (name "aj-snapshot")
2330 (uri (string-append "mirror://sourceforge/aj-snapshot/"
2331 "aj-snapshot-" version ".tar.bz2"))
2334 "0z8wd5yvxdmw1h1rj6km9h01xd4xmp4d86gczlix7hsc7zrf0wil"))))
2335 (build-system gnu-build-system)
2337 `(("minixml" ,minixml)
2339 ("alsa-lib" ,alsa-lib)))
2341 `(("pkg-config" ,pkg-config)))
2342 (home-page "http://aj-snapshot.sourceforge.net/")
2343 (synopsis "Snapshot connections between ALSA and JACK clients")
2344 (description "Aj-snapshot is a small program that can be used to make
2345 snapshots of the connections made between JACK and/or ALSA clients. Because
2346 JACK can provide both audio and MIDI support to programs, aj-snapshot can
2347 store both types of connections for JACK. ALSA, on the other hand, only
2348 provides routing facilities for MIDI clients. Aj-snapshot is meant to be used
2349 from the command line.")
2350 (license license:gpl3+)))
2352 (define-public qtractor
2358 (uri (string-append "http://downloads.sourceforge.net/qtractor/"
2359 "qtractor-" version ".tar.gz"))
2362 "06sa4wl8zr0k8dnjiil0gjwnhrkq95h50xv56ih1y8jgyzxchaxp"))))
2363 (build-system gnu-build-system)
2365 `(#:tests? #f)) ; no "check" target
2368 ("qtx11extras" ,qtx11extras)
2369 ("alsa-lib" ,alsa-lib)
2371 ("libsndfile" ,libsndfile)
2376 ("libsamplerate" ,libsamplerate)
2377 ("libvorbis" ,libvorbis)
2379 ("rubberband" ,rubberband)
2383 `(("pkg-config" ,pkg-config)
2384 ("qttools" ,qttools)))
2385 (home-page "http://qtractor.org/")
2386 (synopsis "Audio/MIDI multi-track sequencer")
2388 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
2389 JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
2390 follows a traditional multi-track tape recorder control paradigm.")
2391 (license license:gpl2+)))
2393 (define-public ams-lv2
2394 ;; Version 1.2.1 built with Python 3.7 raises an error in the waf-script.
2395 ;; Therefore, we take two more commmits than 1.2.1 that introduce an updated
2396 ;; waf-script and fix one error.
2397 (let ((commit "377d166db54a787b48979171c5652d2eb4f1bbb5")
2401 (version (git-version "1.2.1" revision commit))
2406 (url "https://github.com/blablack/ams-lv2.git")
2408 (file-name (git-file-name name version))
2411 "1ndgxcxjxwidg7436k0nb5clxkyi878k1j999sbbd1gk2fm0kcqm"))))
2412 (build-system waf-build-system)
2415 (modify-phases %standard-phases
2416 (add-after 'unpack 'remove-sse-flags
2417 (lambda* (#:key system #:allow-other-keys)
2418 (unless (or (string-prefix? "x86_64" system)
2419 (string-prefix? "i686" system))
2420 (substitute* "wscript"
2421 (("'-msse', '-mfpmath=sse', ") "")))
2423 #:tests? #f)) ; no tests
2432 `(("pkg-config" ,pkg-config)))
2433 (home-page "https://objectivewave.wordpress.com/ams-lv2/")
2434 (synopsis "Port of Alsa Modular Synth internal modules into LV2")
2435 (description "This set of LV2 plugins is a port of the internal modules
2436 found in Alsa Modular Synth. These plugins are used to create modular
2437 synthesizers and contain: VCO, VCF, VCA, LFO, slew limiter, envelopes, sample
2439 (license license:gpl2))))
2441 (define-public gxtuner
2448 (url "https://github.com/brummer10/gxtuner.git")
2449 (commit (string-append "v" version))))
2450 (file-name (git-file-name name version))
2453 "1fxd2akan2njlr7fpkh84830783qhh1gg7yakswqk5dd466dcn96"))))
2454 (build-system gnu-build-system)
2457 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2458 (string-append "INCLUDE_L_DIR="
2459 (assoc-ref %build-inputs "zita-resampler")
2462 (modify-phases %standard-phases
2463 (delete 'configure))))
2469 ("zita-resampler" ,zita-resampler)))
2471 `(("pkg-config" ,pkg-config)))
2472 (home-page "https://github.com/brummer10/gxtuner")
2473 (synopsis "Guitar tuner")
2474 (description "GXtuner is a simple guitar tuner for JACK with an
2475 analogue-like user interface.")
2476 (license license:gpl2+)))
2478 (define-public mod-host
2479 ;; The last release was in 2014 but since then hundreds of commits have
2481 (let ((commit "1726ad06b11323da7e1aaed690ff8aef91f702b5")
2485 (version (string-append "0.10.6-" revision "." (string-take commit 9)))
2489 (url "https://github.com/moddevices/mod-host")
2493 "1nrd37c35w6z6ldczgrwmmd9hx1n3zyvcjcgb3mi4cygqdanvspv"))
2494 (file-name (string-append name "-" version "-checkout"))))
2495 (build-system gnu-build-system)
2497 `(#:tests? #f ; no tests included
2499 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2502 (modify-phases %standard-phases
2504 (add-after 'unpack 'fix-jack-installation-directory
2506 ;; Do not attempt to install files to output of "jack" package.
2507 (substitute* "Makefile"
2508 (("\\$\\(shell pkg-config --variable=libdir jack\\)")
2517 ("readline" ,readline)))
2519 `(("pkg-config" ,pkg-config)
2520 ("python" ,python-2)))
2521 (home-page "https://github.com/moddevices/mod-host")
2522 (synopsis "LV2 host for Jack controllable via socket or command line")
2523 (description "mod-host is an LV2 plugin host for JACK, controllable via
2524 socket or command line.")
2525 (license license:gpl3+))))
2527 (define-public curseradio
2528 (let ((commit "1bd4bd0faeec675e0647bac9a100b526cba19f8d")
2532 (version (git-version "0" revision commit))
2536 (url "https://github.com/chronitis/curseradio.git")
2538 (file-name (git-file-name name version))
2541 "11bf0jnj8h2fxhpdp498189r4s6b47vy4wripv0z4nx7lxajl88i"))))
2542 (build-system python-build-system)
2544 `(("python-lxml" ,python-lxml)
2545 ("python-requests" ,python-requests)
2546 ("python-pyxdg" ,python-pyxdg)
2548 (home-page "https://github.com/chronitis/curseradio")
2549 (synopsis "Command-line Internet radio player")
2550 (description "Curseradio is a Curses-based radio player that uses a
2551 tune-in sender list from @url{http://opml.radiotime.com}.")
2552 (license license:expat))))
2554 (define-public pianobar
2557 (version "2016.06.02")
2561 (url "https://github.com/PromyLOPh/pianobar.git")
2563 (file-name (git-file-name name version))
2566 "058fbdxp7n35hxwy3b8slfy4pb4n63cb173vfmywqa06wh1dv6f6"))))
2567 (build-system gnu-build-system)
2569 `(#:tests? #f ; no tests
2570 #:make-flags (list "CC=gcc" "CFLAGS=-std=c99"
2571 (string-append "PREFIX=" %output))
2572 #:phases (modify-phases %standard-phases
2573 (delete 'configure))))
2577 ("libgcrypt" ,libgcrypt)
2579 ("ffmpeg" ,ffmpeg-3.4)))
2581 `(("pkg-config" ,pkg-config)))
2582 (home-page "http://6xq.net/projects/pianobar/")
2583 (synopsis "Console-based pandora.com player")
2584 (description "pianobar is a console-based music player for the
2585 personalized online radio pandora.com. It has configurable keys for playing
2586 and managing stations, can be controlled remotely via fifo, and can run
2587 event-based scripts for scrobbling, notifications, etc.")
2588 (license license:expat)))
2590 (define-public picard
2597 "https://musicbrainz.osuosl.org/pub/musicbrainz/"
2598 "picard/picard-" version ".tar.gz"))
2601 "19w5k3bf4886gdycxjds9nkjvir0gwy2r5cqkz0lbls4ikk4y14f"))))
2602 (build-system python-build-system)
2604 '(#:use-setuptools? #f
2607 ;; Don't phone home or show ‘Check for Update…’ in the Help menu.
2608 "--disable-autoupdate")
2610 (modify-phases %standard-phases
2611 (add-after 'unpack 'patch-source
2612 (lambda* (#:key inputs #:allow-other-keys)
2613 (substitute* "picard/const/__init__.py"
2617 (assoc-ref inputs "chromaprint") "/bin/fpcalc")))
2620 `(("gettext" ,gettext-minimal)))
2622 `(("chromaprint" ,chromaprint)
2623 ("python-discid" ,python-discid)
2624 ("python-pyqt" ,python-pyqt)
2625 ("python-mutagen" ,python-mutagen)))
2626 (home-page "https://picard.musicbrainz.org/")
2627 (synopsis "Graphical music tagging application")
2629 "MusicBrainz Picard is a music tagging application, supporting multiple
2630 formats, looking up tracks through metadata and audio fingerprints.")
2631 (license license:gpl2+)))
2633 (define-public python-mutagen
2635 (name "python-mutagen")
2639 (uri (pypi-uri "mutagen" version))
2642 "0rl7sxn1rcjl48fwga3dqf9f6pzspsny4ngxyf6pp337mrq0z693"))))
2643 (build-system python-build-system)
2645 `(("python-pytest" ,python-pytest)))
2646 (home-page "https://bitbucket.org/lazka/mutagen")
2647 (synopsis "Read and write audio tags")
2648 (description "Mutagen is a Python module to handle audio metadata. It
2649 supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
2650 Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
2651 of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
2652 Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
2653 APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
2654 streams on an individual packet/page level.")
2655 (license license:gpl2))) ; "later version" never mentioned
2657 (define-public python2-mutagen
2658 (package-with-python2 python-mutagen))
2660 (define-public python-musicbrainzngs
2662 (name "python-musicbrainzngs")
2666 (uri (pypi-uri "musicbrainzngs" version))
2669 "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8"))))
2670 (build-system python-build-system)
2672 '(;; The tests fail suffer from race conditions:
2673 ;; https://github.com/alastair/python-musicbrainzngs/issues/211
2675 (home-page "https://python-musicbrainzngs.readthedocs.org/")
2676 (synopsis "Python bindings for MusicBrainz NGS webservice")
2677 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
2678 web service. This library can be used to retrieve music metadata from the
2679 MusicBrainz database.")
2680 ;; 'musicbrainzngs/compat.py' is ISC licensed.
2681 (license (list license:bsd-2 license:isc))))
2683 (define-public python2-musicbrainzngs
2684 (package-with-python2 python-musicbrainzngs))
2686 (define-public python-isrcsubmit
2688 (name "python-isrcsubmit")
2693 (uri (pypi-uri "isrcsubmit" version))
2696 "0jh4cni8qhri6dh83cmp0i0m0384vv0vznlygv49wj9xzh1d99qv"))))
2697 (build-system python-build-system)
2699 `(("python-discid" ,python-discid)
2700 ("python-musicbrainzngs" ,python-musicbrainzngs)))
2701 (home-page "https://github.com/JonnyJD/musicbrainz-isrcsubmit")
2702 (synopsis "Submit ISRCs from CDs to MusicBrainz")
2703 (description "@code{isrcsubmit} is a tool to extract @dfn{International
2704 Standard Recording Code} (ISRCs) from audio CDs and submit them to
2705 @url{https://musicbrainz.org/, MusicBrainz}.")
2706 (license license:gpl3+)))
2708 (define-public python2-pyechonest
2710 (name "python2-pyechonest")
2714 (uri (pypi-uri "pyechonest" version))
2717 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
2718 (build-system python-build-system)
2720 `(;; Python 3 is not supported:
2721 ;; https://github.com/echonest/pyechonest/issues/42
2722 #:python ,python-2))
2723 (home-page "https://github.com/echonest/pyechonest")
2724 (synopsis "Python interface to The Echo Nest APIs")
2725 (description "Pyechonest is a Python library for the Echo Nest API. With
2726 Pyechonest you have Python access to the entire set of API methods including:
2729 @item artist - search for artists by name, description, or attribute, and get
2730 back detailed information about any artist including audio, similar artists,
2731 blogs, familiarity, hotttnesss, news, reviews, urls and video.
2732 @item song - search songs by artist, title, description, or attribute (tempo,
2733 duration, etc) and get detailed information back about each song, such as
2734 hotttnesss, audio_summary, or tracks.
2735 @item track - upload a track to the Echo Nest and receive summary information
2736 about the track including key, duration, mode, tempo, time signature along with
2737 detailed track info including timbre, pitch, rhythm and loudness information.
2739 (license license:bsd-3)))
2741 (define-public python-pylast
2743 (name "python-pylast")
2747 (uri (pypi-uri "pylast" version))
2750 "0r9h7g8i8l2mgqjwkda3v6prfbkb2im5kap1az9ppmhjm9i4jkcf"))))
2751 (build-system python-build-system)
2752 ;; Tests require network access. See
2753 ;; https://github.com/pylast/pylast/issues/105
2754 (arguments '(#:tests? #f))
2756 `(("python-coverage" ,python-coverage)
2757 ("python-pycodestyle" ,python-pycodestyle)
2758 ("python-mock" ,python-mock)
2759 ("python-pep8" ,python-pep8)
2760 ("python-pytest" ,python-pytest)
2761 ("python-flaky" ,python-flaky)
2762 ("python-pyflakes" ,python-pyflakes)
2763 ("python-pyyaml" ,python-pyyaml)))
2765 `(("python-six" ,python-six)))
2766 (home-page "https://github.com/pylast/pylast")
2767 (synopsis "Python interface to Last.fm and Libre.fm")
2768 (description "A Python interface to Last.fm and other API-compatible
2769 websites such as Libre.fm.")
2770 (license license:asl2.0)))
2772 (define-public python2-pylast
2773 (package-with-python2 python-pylast))
2775 (define-public instantmusic
2776 (let ((commit "300891d09c703525215fa5a116b9294af1c923c8")
2779 (name "instantmusic")
2780 (version (git-version "1.0" revision commit))
2784 (url "https://github.com/yask123/Instant-Music-Downloader.git")
2786 (file-name (git-file-name name version))
2789 "0j7qivaa04bpdz3anmgci5833dgiyfqqwq9fdrpl9m68b34gl773"))))
2790 (build-system python-build-system)
2792 `(("python-requests" ,python-requests)
2794 ("python-beautifulsoup4" ,python-beautifulsoup4)
2795 ("youtube-dl" ,youtube-dl)))
2797 '(#:modules ((guix build python-build-system)
2800 #:phases (modify-phases %standard-phases
2801 (add-before 'build 'change-directory
2803 (chdir "instantmusic-0.1") #t))
2804 (add-before 'install 'fix-file-permissions
2806 ;; Fix some read-only files that would cause a build failure
2807 (for-each (cut chmod <> #o644)
2808 (find-files "instantmusic.egg-info"
2809 "PKG-INFO|.*\\.txt"))
2811 (home-page "http://iyask.me/Instant-Music-Downloader/")
2812 (synopsis "Command-line program to download a song from YouTube")
2813 (description "InstantMusic downloads a song from YouTube in MP3 format.
2814 Songs can be searched by artist, name or even by a part of the song text.")
2815 (license license:expat))))
2817 (define-public beets
2823 (uri (pypi-uri "beets" version))
2826 "0m40rjimvfgy1dv04p8f8d5dvi2855v4ix99a9xr900cmcn476yj"))))
2827 (build-system python-build-system)
2830 (modify-phases %standard-phases
2831 (add-after 'unpack 'set-HOME
2833 (setenv "HOME" (string-append (getcwd) "/tmp"))
2837 (invoke "nosetests" "-v"))))))
2839 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2840 ("python-flask" ,python-flask)
2841 ("python-mock" ,python-mock)
2842 ("python-mpd2" ,python-mpd2)
2843 ("python-nose" ,python-nose)
2844 ("python-pathlib" ,python-pathlib)
2845 ("python-pyxdg" ,python-pyxdg)
2846 ("python-pylast" ,python-pylast)
2847 ("python-rarfile" ,python-rarfile)
2848 ("python-responses" ,python-responses)))
2849 ;; TODO: Install optional plugins and dependencies.
2851 `(("python-discogs-client" ,python-discogs-client)
2852 ("python-jellyfish" ,python-jellyfish)
2853 ("python-munkres" ,python-munkres)
2854 ("python-musicbrainzngs" ,python-musicbrainzngs)
2855 ("python-mutagen" ,python-mutagen)
2856 ("python-pyyaml" ,python-pyyaml)
2857 ("python-unidecode" ,python-unidecode)))
2858 (home-page "https://beets.io")
2859 (synopsis "Music organizer")
2860 (description "The purpose of beets is to get your music collection right
2861 once and for all. It catalogs your collection, automatically improving its
2862 metadata as it goes using the MusicBrainz database. Then it provides a variety
2863 of tools for manipulating and accessing your music.")
2864 (license license:expat)))
2866 (define-public beets-bandcamp
2868 (name "beets-bandcamp")
2872 (uri (pypi-uri "beets-bandcamp" version))
2875 "04awg0zdhhg5h510fc1p3qkvr2l1qm6nf85hlr9z8im8a7xlka0i"))))
2876 (build-system python-build-system)
2877 (arguments '(#:tests? #f)) ; there are no tests
2880 ("python-isodate" ,python-isodate)))
2882 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2883 ("python-requests" ,python-requests)
2884 ("python-six" ,python-six)))
2885 (home-page "https://github.com/unrblt/beets-bandcamp")
2886 (synopsis "Bandcamp plugin for beets")
2888 "This plugin for beets automatically obtains tag data from @uref{Bandcamp,
2889 https://bandcamp.com/}. It's also capable of getting song lyrics and album art
2890 using the beets FetchArt plugin.")
2891 (license license:gpl2)))
2893 (define-public milkytracker
2895 (name "milkytracker")
2900 (url "https://github.com/milkytracker/MilkyTracker.git")
2901 (commit (string-append "v" version))))
2902 (file-name (git-file-name name version))
2905 "05a6d7l98k9i82dwrgi855dnccm3f2lkb144gi244vhk1156n0ca"))
2906 (modules '((guix build utils)))
2907 ;; Remove non-FSDG compliant sample songs.
2910 (delete-file-recursively "resources/music")
2911 (substitute* "CMakeLists.txt"
2912 (("add_subdirectory\\(resources/music\\)") ""))
2914 (build-system cmake-build-system)
2916 '(#:tests? #f ; no check target
2917 ;; This flag ensures that MilkyTracker links with the JACK library.
2918 #:configure-flags '("-DCMAKE_CXX_FLAGS=-ljack")))
2920 `(("alsa-lib" ,alsa-lib)
2926 ("zziplib" ,zziplib)))
2928 `(("pkg-config" ,pkg-config)))
2929 (synopsis "Music tracker for working with .MOD/.XM module files")
2930 (description "MilkyTracker is a music application for creating .MOD and .XM
2931 module files. It attempts to recreate the module replay and user experience of
2932 the popular DOS program Fasttracker II, with special playback modes available
2933 for improved Amiga ProTracker 2/3 compatibility.")
2934 (home-page "http://milkytracker.titandemo.org/")
2935 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2936 (license (list license:bsd-3 license:gpl3+))))
2938 (define-public schismtracker
2940 (name "schismtracker")
2941 (version "20190614")
2945 (url "https://github.com/schismtracker/schismtracker.git")
2947 (file-name (git-file-name name version))
2950 "0cg0q5bkn8a06v03vmj69xyhi4xxpl729k4008q4hiakh9gy2x49"))
2951 (modules '((guix build utils)))
2953 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2955 (substitute* "schism/version.c"
2956 (("Schism Tracker built %s %s.*$")
2957 (string-append "Schism Tracker version " ,version "\");")))
2959 (build-system gnu-build-system)
2962 (modify-phases %standard-phases
2963 (add-before 'configure 'link-libm
2964 (lambda _ (setenv "LIBS" "-lm") #t)))))
2966 `(("autoconf" ,autoconf)
2967 ("automake" ,automake)
2968 ("python" ,python)))
2970 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2972 ("libxext" ,libxext)
2974 (home-page "http://schismtracker.org")
2975 (synopsis "Oldschool sample-based music composition tool")
2977 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2978 create high quality music without the requirements of specialized, expensive
2979 equipment, and with a unique \"finger feel\" that is difficult to replicate in
2980 part. The player is based on a highly modified version of the ModPlug engine,
2981 with a number of bugfixes and changes to improve IT playback.")
2982 (license license:gpl2+)))
2984 (define-public sooperlooper
2986 (name "sooperlooper")
2990 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2994 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2995 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2996 (build-system gnu-build-system)
2999 (modify-phases %standard-phases
3000 (add-after 'unpack 'add-sigc++-includes
3001 (lambda* (#:key inputs #:allow-other-keys)
3002 (let ((sig (assoc-ref inputs "libsigc++"))
3003 (xml (assoc-ref inputs "libxml2"))
3006 (string-append sig "/include/sigc++-2.0:"
3007 sig "/lib/sigc++-2.0/include:"
3008 xml "/include/libxml2/:"
3011 (or (getenv "CPATH") ""))))
3012 (substitute* '("src/control_osc.hpp"
3013 "src/gui/app_frame.hpp"
3014 "src/gui/config_panel.hpp"
3015 "src/gui/keys_panel.hpp"
3016 "src/gui/latency_panel.hpp"
3017 "src/gui/main_panel.hpp"
3018 "src/gui/midi_bind_panel.hpp"
3019 "src/gui/prefs_dialog.hpp")
3020 (("sigc\\+\\+/object.h")
3022 (substitute* '("src/engine.cpp"
3023 "src/gui/latency_panel.cpp"
3024 "src/gui/looper_panel.cpp"
3025 "src/gui/main_panel.cpp")
3026 (("(\\(| )bind " _ pre)
3027 (string-append pre "sigc::bind ")))
3029 (add-after 'unpack 'fix-xpm-warnings
3031 (substitute* (find-files "." "\\.xpm$")
3032 (("static char") "static const char"))
3036 ("alsa-lib" ,alsa-lib)
3037 ("wxwidgets" ,wxwidgets-gtk2)
3038 ("libsndfile" ,libsndfile)
3039 ("libsamplerate" ,libsamplerate)
3041 ("rubberband" ,rubberband)
3042 ("libxml2" ,libxml2)
3043 ("libsigc++" ,libsigc++)
3044 ("ncurses" ,ncurses)))
3046 `(("pkg-config" ,pkg-config)))
3047 (home-page "http://essej.net/sooperlooper/")
3048 (synopsis "Live looping sampler")
3050 "SooperLooper is a live looping sampler capable of immediate loop
3051 recording, overdubbing, multiplying, reversing and more. It allows for
3052 multiple simultaneous multi-channel loops limited only by your computer's
3054 (license license:gpl2+)))
3062 (uri (string-append "http://ftp.daper.net/pub/soft/"
3064 name "-" version ".tar.bz2"))
3067 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))))
3068 (build-system gnu-build-system)
3070 `(("alsa-lib" ,alsa-lib)
3073 ("ffmpeg" ,ffmpeg-3.4)
3076 ("libid3tag" ,libid3tag)
3077 ("libltdl" ,libltdl)
3078 ("libmodplug" ,libmodplug)
3079 ("libmpcdec" ,libmpcdec)
3082 ("libvorbis" ,libvorbis)
3083 ("ncurses" ,ncurses)
3084 ("openssl" ,openssl)
3085 ("sasl" ,cyrus-sasl)
3088 ("wavpack" ,wavpack)
3091 `(("pkg-config" ,pkg-config)))
3092 (synopsis "Console audio player designed to be powerful and easy to use")
3094 "Music on Console is a console audio player that supports many file
3095 formats, including most audio formats recognized by FFMpeg.")
3096 (home-page "http://moc.daper.net")
3097 (license license:gpl2+)))
3099 (define-public midicsv
3105 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
3106 name "-" version ".tar.gz"))
3109 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
3110 (build-system gnu-build-system)
3112 `(#:phases (modify-phases %standard-phases (delete 'configure))
3113 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
3114 (synopsis "Convert MIDI files to and from CSV")
3116 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
3117 value file (CSV), which preserves all the information in the MIDI file. The
3118 ASCII CSV file may be loaded into a spreadsheet or database application, or
3119 processed by a program to transform the MIDI data (for example, to key
3120 transpose a composition or extract a track from a multi-track sequence). A
3121 CSV file in the format created by midicsv may be converted back into a
3122 standard MIDI file with the csvmidi program.")
3123 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
3124 (license license:public-domain)))
3126 (define-public gx-guvnor-lv2
3128 (name "gx-guvnor-lv2")
3133 (url "https://github.com/brummer10/GxGuvnor.lv2.git")
3134 (commit (string-append "v" version))))
3135 (file-name (string-append name "-" version "-checkout"))
3138 "1wa5070j40p7f0b3kr259pzm99xb6cf2badr2capayjvgayd6gnm"))))
3139 (build-system gnu-build-system)
3141 `(;; The check target is used only to output a warning.
3144 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
3146 (modify-phases %standard-phases
3149 (substitute* "Makefile"
3150 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
3151 (("install : all") "install :"))
3155 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
3156 (synopsis "Overdrive/distortion pedal simulation")
3157 (description "This package provides the LV2 plugin \"GxGuvnor\", a
3158 simulation of an overdrive or distortion pedal for guitars.")
3159 ;; The LICENSE file says GPLv3 but the license headers in the files say
3160 ;; GPLv2 or later. The whole project is released under GPLv3 or later
3161 ;; according to https://github.com/brummer10/GxGuvnor.lv2/issues/1
3162 (license license:gpl3+)))
3164 (define-public gx-vbass-preamp-lv2
3165 (let ((commit "eb999b0ca0ef4da40a59e458a9ab6e7042b96c99")
3167 (package (inherit gx-guvnor-lv2)
3168 (name "gx-vbass-preamp-lv2")
3169 (version (string-append "0-" revision "." (string-take commit 9)))
3173 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
3177 "0firap073ldw4nrykkd7jvyyj0jbl1nslxyzjj4kswazp99x7d9h"))
3178 (file-name (string-append name "-" version "-checkout"))))
3183 `(("pkg-config" ,pkg-config)))
3184 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
3185 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
3186 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
3187 pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
3190 (define-public gx-overdriver-lv2
3191 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
3193 (package (inherit gx-guvnor-lv2)
3194 (name "gx-overdriver-lv2")
3195 (version (string-append "0-" revision "." (string-take commit 9)))
3199 (url "https://github.com/brummer10/GxOverDriver.lv2")
3203 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
3204 (file-name (string-append name "-" version "-checkout"))))
3205 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
3206 (synopsis "Overdrive effect with level and tone control")
3207 (description "This package provides the LV2 plugin \"GxOverDriver\", an
3208 overdrive effect."))))
3210 (define-public gx-tone-mender-lv2
3211 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
3213 (package (inherit gx-guvnor-lv2)
3214 (name "gx-tone-mender-lv2")
3215 (version (string-append "0-" revision "." (string-take commit 9)))
3219 (url "https://github.com/brummer10/GxToneMender.lv2")
3223 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
3224 (file-name (string-append name "-" version "-checkout"))))
3225 (home-page "https://github.com/brummer10/GxToneMender.lv2")
3226 (synopsis "Clean boost with a 3-knob tonestack")
3227 (description "This package provides the LV2 plugin \"GxToneMender\", a
3228 clean boost effect with a 3-knob tonestack."))))
3230 (define-public gx-push-pull-lv2
3231 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
3233 (package (inherit gx-guvnor-lv2)
3234 (name "gx-push-pull-lv2")
3235 (version (string-append "0-" revision "." (string-take commit 9)))
3239 (url "https://github.com/brummer10/GxPushPull.lv2")
3243 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
3244 (file-name (string-append name "-" version "-checkout"))))
3245 (home-page "https://github.com/brummer10/GxPushPull.lv2")
3246 (synopsis "Octave up push pull transistor fuzz simulation")
3247 (description "This package provides the LV2 plugin \"GxPushPull\", a
3248 simulation of a push pull transistor fuzz effect with added high octave."))))
3250 (define-public gx-suppa-tone-bender-lv2
3251 (package (inherit gx-guvnor-lv2)
3252 (name "gx-suppa-tone-bender-lv2")
3257 (url "https://github.com/brummer10/GxSuppaToneBender.lv2.git")
3258 (commit (string-append "v" version))))
3259 (file-name (string-append name "-" version "-checkout"))
3262 "01x6bjmllkmvxfzc5xwdix7w021j26js71awv728cxsmkxgqw0zy"))))
3263 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
3264 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
3265 (description "This package provides the LV2 plugin
3266 \"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
3269 (define-public gx-saturator-lv2
3270 (let ((commit "605330f432c94b6eb3f8203cbe472befae959532")
3272 (package (inherit gx-vbass-preamp-lv2)
3273 (name "gx-saturator-lv2")
3274 (version (string-append "0-" revision "." (string-take commit 9)))
3278 (url "https://github.com/brummer10/GxSaturator.lv2")
3282 "1w4nvh0rmxrv3s3hmh4fs74f3hc0jn31v00j769j7v68mqr7kawy"))
3283 (file-name (string-append name "-" version "-checkout"))))
3284 (home-page "https://github.com/brummer10/GxSaturator.lv2")
3285 (synopsis "Saturation effect")
3286 (description "This package provides the LV2 plugin \"GxSaturator\", a
3287 saturation effect."))))
3289 (define-public gx-hyperion-lv2
3290 (package (inherit gx-guvnor-lv2)
3291 (name "gx-hyperion-lv2")
3296 (url "https://github.com/brummer10/GxHyperion.lv2.git")
3297 (commit (string-append "v" version))))
3298 (file-name (string-append name "-" version "-checkout"))
3301 "1vx79s6s9if117y2g0ppdja2sv2wcny6xcfl3j1z4cipahnildxf"))))
3302 (home-page "https://github.com/brummer10/GxHyperion.lv2")
3303 (synopsis "Simulation of the Hyperion Fuzz pedal")
3304 (description "This package provides the LV2 plugin \"GxHyperion\", a
3305 simulation of the Hyperion Fuzz pedal.")))
3307 (define-public gx-voodoo-fuzz-lv2
3308 (package (inherit gx-guvnor-lv2)
3309 (name "gx-voodoo-fuzz-lv2")
3314 (url "https://github.com/brummer10/GxVoodoFuzz.lv2.git")
3315 (commit (string-append "v" version))))
3316 (file-name (string-append name "-" version "-checkout"))
3319 "1v0scphivri1fk4hl20j13f92i48mnx1zsil4hgnadsmm4nsfw43"))))
3320 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
3321 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
3322 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
3323 simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
3324 Bosstone circuit, followed by the tone control of the FoxToneMachine in
3325 parallel with a DarkBooster, followed by a volume control.")))
3327 (define-public gx-super-fuzz-lv2
3328 (package (inherit gx-guvnor-lv2)
3329 (name "gx-super-fuzz-lv2")
3334 (url "https://github.com/brummer10/GxSuperFuzz.lv2.git")
3335 (commit (string-append "v" version))))
3336 (file-name (string-append name "-" version "-checkout"))
3339 "1jlljd9hlgfflbiizq47lv1xbbgjyx3v835mf24zmh1q5zsw4np4"))))
3340 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
3341 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
3342 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
3343 analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
3344 pot, which is usually in the housing, is exposed as a control parameter. It
3345 adjusts the amount of harmonics.")))
3347 (define-public gx-vintage-fuzz-master-lv2
3348 (package (inherit gx-guvnor-lv2)
3349 (name "gx-vintage-fuzz-master-lv2")
3354 (url "https://github.com/brummer10/GxVintageFuzzMaster.lv2.git")
3355 (commit (string-append "v" version))))
3356 (file-name (string-append name "-" version "-checkout"))
3359 "02jb211z8rw2qr5r1z5mdxlqgiw6cbc319xpqplvn6k21c59mskv"))))
3360 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
3361 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
3362 (description "This package provides the LV2 plugin
3363 \"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
3365 (define-public gx-slow-gear-lv2
3366 (let ((commit "5d37e775b0feef1d82feee94e2a7a2d7e57efe2d")
3368 (package (inherit gx-vbass-preamp-lv2)
3369 (name "gx-slow-gear-lv2")
3370 (version (string-append "0-" revision "." (string-take commit 9)))
3374 (url "https://github.com/brummer10/GxSlowGear.lv2")
3378 "141mz69zkhk3lm54bb6wgpnghb92zm1ig7fv07240cmhydqji1q1"))
3379 (file-name (string-append name "-" version "-checkout"))))
3380 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
3381 (synopsis "Slow gear audio effect")
3382 (description "This package provides the LV2 plugin \"GxSlowGear\", a
3383 slow gear audio effect to produce volume swells."))))
3385 (define-public gx-switchless-wah-lv2
3386 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
3388 (package (inherit gx-guvnor-lv2)
3389 (name "gx-switchless-wah-lv2")
3390 (version (string-append "0-" revision "." (string-take commit 9)))
3394 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
3398 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
3399 (file-name (string-append name "-" version "-checkout"))))
3400 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
3401 (synopsis "Wah emulation with switchless activation")
3402 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
3403 a simulation of an analog Wah pedal with switchless activation."))))
3405 (define-public rkrlv2
3406 ;; This commit corresponds to the beta_3 tag
3407 (let ((commit "7edcb4e29a358623bfd57fa2c27e5da60adfcec3")
3411 (version (git-version "0" revision commit))
3415 (url "https://github.com/ssj71/rkrlv2.git")
3419 "16i4ajrib7kb0abdcn4901g8a4lkwkp2fyqyms38dhqq84slyfjs"))
3420 (file-name (git-file-name name version))))
3421 (build-system cmake-build-system)
3422 (arguments '(#:tests? #f)) ; there are no tests
3425 ("libsamplerate" ,libsamplerate)
3428 `(("pkg-config" ,pkg-config)))
3429 (home-page "https://github.com/ssj71/rkrlv2")
3430 (synopsis "Rakarrack effects ported to LV2 plugins")
3431 (description "This package provides the Rakarrack effects as LV2
3432 plugins. The ports are done such that hopefully when Rakarrack gets an active
3433 maintainer these will get merged into the original project.")
3434 (license license:gpl2))))
3436 (define-public mod-utilities
3437 (let ((commit "80ea3ea9f52fab7f191671f4810bf90fc955a046")
3440 (name "mod-utilities")
3441 (version (string-append "0-" revision "." (string-take commit 9)))
3445 (url "https://github.com/moddevices/mod-utilities.git")
3447 (file-name (string-append name "-" version "-checkout"))
3450 "1v55zmzmlg0ka7341x5lsvb44amy17vk27s669ps1basd1bk5s5v"))))
3451 (build-system gnu-build-system)
3453 `(#:tests? #f ; there are no tests
3455 (list (string-append "INSTALL_PATH="
3456 (assoc-ref %outputs "out")
3458 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3461 (modify-phases %standard-phases
3462 (delete 'configure))))
3465 (home-page "https://github.com/moddevices/mod-utilities")
3466 (synopsis "LV2 utility plugins")
3467 (description "This package provides LV2 audio utility plugins, such as
3468 filters, crossovers, simple gain plugins without zipper noise, switch box
3469 plugins, a switch trigger, a toggle switch, and a peakmeter.")
3470 (license license:gpl2+))))
3472 (define-public ingen
3473 (let ((commit "cc4a4db33f4d126a07a4a498e053c5fb9a883be3")
3477 (version (string-append "0.0.0-" revision "."
3478 (string-take commit 9)))
3483 (url "https://git.drobilla.net/ingen.git")
3485 (file-name (string-append name "-" version "-checkout"))
3488 "1wg47vjw9djn99gbnsl2bcwj4xhdid61m4wrbn2nlp797flj91ic"))))
3489 (build-system waf-build-system)
3491 `(#:python ,python-2
3492 #:tests? #f ; no "check" target
3493 #:configure-flags (list "--no-webkit")
3495 (modify-phases %standard-phases
3496 (add-after 'unpack 'patch-wscript
3497 (lambda* (#:key outputs #:allow-other-keys)
3498 (let ((out (assoc-ref outputs "out")))
3499 (substitute* "wscript"
3500 ;; FIXME: Our version of lv2specgen.py does not behave as
3501 ;; expected. Maybe this requires a development version of
3503 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
3504 ;; Add libraries to RUNPATH.
3505 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
3506 (string-append prefix
3507 "linkflags=[\"-Wl,-rpath="
3508 out "/lib" "\"]," line)))
3509 (substitute* '("src/wscript"
3510 "src/server/wscript")
3511 ;; Add libraries to RUNPATH.
3512 (("bld.env.PTHREAD_LINKFLAGS" line)
3514 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
3515 (substitute* "src/client/wscript"
3516 ;; Add libraries to RUNPATH.
3517 (("^(.+)target.*= 'ingen_client'," line prefix)
3518 (string-append prefix
3519 "linkflags=[\"-Wl,-rpath="
3520 out "/lib" "\"]," line)))
3521 (substitute* "src/gui/wscript"
3522 ;; Add libraries to RUNPATH.
3523 (("^(.+)target.* = 'ingen_gui.*" line prefix)
3524 (string-append prefix
3525 "linkflags=[\"-Wl,-rpath="
3526 out "/lib" "\"]," line))))
3530 ("python-rdflib" ,python-rdflib)
3535 ("raul" ,raul-devel)
3536 ("ganv" ,ganv-devel)
3541 ("gtkmm" ,gtkmm-2)))
3543 `(("pkg-config" ,pkg-config)
3544 ("python-pygments" ,python-pygments)))
3545 (home-page "https://drobilla.net/software/ingen")
3546 (synopsis "Modular audio processing system")
3547 (description "Ingen is a modular audio processing system for JACK and
3548 LV2 based systems. Ingen is built around LV2 technology and a strict
3549 separation of engine from user interface. The engine is controlled
3550 exclusively through a protocol, and can execute as a headless process, with an
3551 in-process GUI, or as an LV2 plugin. The GUI can run as a program which
3552 communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
3553 communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
3554 plugin on any system where Ingen is installed. This allows users to visually
3555 develop custom plugins for use in other applications without programming.")
3556 (license license:agpl3+))))
3558 (define-public qmidiarp
3564 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
3565 version "/qmidiarp-" version ".tar.bz2"))
3568 "043yh1p0rrbj1v840y27529m9260g55gvh1km8az4jxy7mns58r2"))))
3569 (build-system gnu-build-system)
3572 (list "--enable-qt5"
3573 "CXXFLAGS=-std=gnu++11")))
3575 `(("qtbase" ,qtbase)
3576 ("alsa-lib" ,alsa-lib)
3581 `(("pkg-config" ,pkg-config)
3582 ("qttools" ,qttools)))
3583 (home-page "http://qmidiarp.sourceforge.net/")
3584 (synopsis "MIDI arpeggiator")
3585 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
3586 sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
3587 modules running in parallel.")
3588 (license license:gpl2+)))
3590 (define-public qmidiroute
3596 (uri (string-append "mirror://sourceforge/alsamodular/QMidiRoute/"
3597 version "/qmidiroute-" version ".tar.bz2"))
3600 "19v1ppbglgl3z9v7xdqc0k33w71cqq8a7d6ihvfs7iz77dygrih9"))))
3601 (build-system gnu-build-system)
3604 (list "--enable-qt5"
3605 "CXXFLAGS=-std=gnu++11")))
3607 `(("qtbase" ,qtbase)
3608 ("alsa-lib" ,alsa-lib)))
3610 `(("pkg-config" ,pkg-config)
3611 ("qttools" ,qttools)))
3612 (home-page "http://alsamodular.sourceforge.net/")
3613 (synopsis "MIDI event router and filter")
3614 (description "QMidiRoute is a MIDI event router and filter. MIDI note,
3615 control change, program change and pitch bend events are logged, and can be
3616 filtered, redirected and transformed into other events according to MIDI maps
3617 defined as tabs in the main control surface.")
3618 (license license:gpl2+)))
3620 (define-public seq24
3626 (uri (string-append "https://launchpad.net/seq24/trunk/"
3627 version "/+download/seq24-"
3628 version ".tar.bz2"))
3631 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
3632 (patches (search-patches "seq24-rename-mutex.patch"))))
3633 (build-system gnu-build-system)
3636 (list "CXXFLAGS=-std=gnu++11")))
3638 `(("gtkmm" ,gtkmm-2)
3639 ("alsa-lib" ,alsa-lib)
3643 `(("pkg-config" ,pkg-config)))
3644 (home-page "https://edge.launchpad.net/seq24/")
3645 (synopsis "Real-time MIDI sequencer")
3646 (description "Seq24 is a real-time MIDI sequencer. It was created to
3647 provide a very simple interface for editing and playing MIDI loops.")
3648 (license license:gpl2+)))
3650 (define-public python-discogs-client
3652 (name "python-discogs-client")
3656 (uri (pypi-uri "discogs-client" version))
3659 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
3660 (build-system python-build-system)
3662 `(("python-oauthlib" ,python-oauthlib)
3663 ("python-requests" ,python-requests)))
3665 `(("python-six" ,python-six)))
3666 (home-page "https://github.com/discogs/discogs_client")
3667 (synopsis "Official Python client for the Discogs API")
3668 (description "This is the official Discogs API client for Python. It enables
3669 you to query the Discogs database for information on artists, releases, labels,
3670 users, Marketplace listings, and more. It also supports OAuth 1.0a
3671 authorization, which allows you to change user data such as profile information,
3672 collections and wantlists, inventory, and orders.")
3673 (license license:bsd-2)))
3675 (define-public python2-discogs-client
3676 (package-with-python2 python-discogs-client))
3678 (define-public libsmf
3685 ;; SF download page says development moved, but the link it points to
3686 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
3687 ;; it but made no release so far (https://github.com/stump/libsmf).
3688 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
3689 version "/libsmf-" version ".tar.gz"))
3692 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
3693 (build-system gnu-build-system)
3695 "static")) ; 88KiB of .a files
3698 (modify-phases %standard-phases
3699 (add-after 'install 'move-static-libraries
3700 (lambda* (#:key outputs #:allow-other-keys)
3701 ;; Move static libraries to the "static" output.
3702 (let* ((out (assoc-ref outputs "out"))
3703 (lib (string-append out "/lib"))
3704 (static (assoc-ref outputs "static"))
3705 (slib (string-append static "/lib")))
3707 (for-each (lambda (file)
3708 (install-file file slib)
3710 (find-files lib "\\.a$"))
3713 `(("readline" ,readline)
3716 `(("doxygen" ,doxygen)
3717 ("pkg-config" ,pkg-config)))
3718 (home-page "http://libsmf.sourceforge.net/")
3719 (synopsis "Standard MIDI File format library")
3721 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3722 conversions between time and pulses, tempo map handling and more. The only dependencies
3723 are a C compiler and glib. Full API documentation and examples are included.")
3724 (license license:bsd-2)))
3734 (url "https://github.com/LMMS/lmms.git")
3735 (commit (string-append "v" version))))
3736 (file-name (git-file-name name version))
3739 "03hhymc6d73fa3wbcqb7rm1l03zkw605k5i9kvkvjmv488bqh3pd"))))
3740 (build-system cmake-build-system)
3742 `(#:tests? #f ; no tests
3744 (modify-phases %standard-phases
3745 (add-before 'configure 'set-ldflags
3746 (lambda* (#:key outputs #:allow-other-keys)
3750 (assoc-ref outputs "out") "/lib/lmms"
3752 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3755 (add-before 'configure 'remove-Werror
3757 (substitute* "CMakeLists.txt"
3758 (("SET\\(WERROR_FLAGS \"\\$\\{WERROR_FLAGS\\} -Werror")
3759 "SET(WERROR_FLAGS \"${WERROR_FLAGS}"))
3761 (add-before 'reset-gzip-timestamps 'make-manpages-writable
3762 (lambda* (#:key outputs #:allow-other-keys)
3764 (make-file-writable file))
3765 (find-files (string-append (assoc-ref outputs "out")
3770 `(("pkg-config" ,pkg-config)))
3776 ("libsamplerate" ,libsamplerate)
3777 ("fluidsynth" ,fluidsynth-1) ;XXX: try using 2.x when updating
3778 ("libvorbis" ,libvorbis)
3779 ("alsa-lib" ,alsa-lib)
3780 ("portaudio" ,portaudio)
3782 ("libsndfile1" ,libsndfile)
3784 ("freetype2" ,freetype)
3786 (home-page "https://lmms.io/")
3787 (synopsis "Music composition tool")
3788 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3789 melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3790 audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3791 (license license:gpl2+)))
3793 (define-public musescore
3800 (url "https://github.com/musescore/MuseScore.git")
3801 (commit (string-append "v" version))))
3802 (file-name (git-file-name name version))
3805 "17wx1wl8ns2k31qvrr888dxnrsa13vazg04zh2sn2q4vzd869a7v"))
3806 (modules '((guix build utils)))
3808 ;; Un-bundle OpenSSL and remove unused libraries.
3810 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3811 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3813 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3814 (("#include <openssl/.*") ""))
3815 (for-each delete-file-recursively
3816 '("thirdparty/freetype"
3817 "thirdparty/openssl"
3818 "thirdparty/portmidi"))
3820 (build-system cmake-build-system)
3823 `("-DBUILD_CRASH_REPORTER=OFF"
3824 "-DBUILD_WEBENGINE=OFF"
3825 "-DDOWNLOAD_SOUNDFONT=OFF"
3826 "-DUSE_SYSTEM_FREETYPE=ON")
3827 ;; There are tests, but no simple target to run. The command used to
3830 ;; make debug && sudo make installdebug && cd \
3831 ;; build.debug/mtest && make && ctest
3833 ;; Basically, it requires to start a whole new build process.
3834 ;; So we simply skip them.
3837 `(("alsa-lib" ,alsa-lib)
3838 ("freetype" ,freetype)
3839 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3843 ("libsndfile" ,libsndfile)
3844 ("libvorbis" ,libvorbis)
3845 ("portaudio" ,portaudio)
3846 ("portmidi" ,portmidi)
3847 ("pulseaudio" ,pulseaudio)
3849 ("qtdeclarative" ,qtdeclarative)
3850 ("qtscript" ,qtscript)
3852 ("qtxmlpatterns" ,qtxmlpatterns)))
3854 `(("pkg-config" ,pkg-config)
3855 ("qttools" ,qttools)))
3856 (synopsis "Music composition and notation software")
3857 (description "MuseScore is a music score typesetter. Its main purpose is
3858 the creation of high-quality engraved musical scores in a WYSIWYG environment.
3860 It supports unlimited staves, linked parts and part extraction, tablature,
3861 MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3862 lyrics (multiple verses), fretboard diagrams, and in general everything
3863 commonly used in sheet music. Style options and style sheets to change the
3864 appearance and layout are provided.
3866 MuseScore can also play back scores through the built-in sequencer and SoundFont
3868 (home-page "https://musescore.org")
3869 (license license:gpl2)))
3871 (define-public muse-sequencer
3873 (name "muse-sequencer")
3878 (url "https://github.com/muse-sequencer/muse.git")
3879 (commit (string-append "muse_"
3880 (string-map (lambda (c)
3882 #\_ c)) version)))))
3883 (file-name (string-append name "-" version "-checkout"))
3886 "1nninz8qyqlxxjdnrm79y3gr3056pga9l2fsqh674jd3cjvafya3"))))
3887 (build-system cmake-build-system)
3889 `(#:tests? #f ; there is no test target
3891 (list "-DENABLE_LV2_SUPPLIED=OFF"
3892 "-DENABLE_RTAUDIO=OFF" ; FIXME: not packaged
3893 "-DENABLE_INSTPATCH=OFF" ; FIXME: not packaged
3894 "-DENABLE_VST_NATIVE=OFF")
3896 (modify-phases %standard-phases
3897 (add-after 'unpack 'chdir
3898 (lambda _ (chdir "muse3"))))))
3900 `(("alsa-lib" ,alsa-lib)
3909 ("libsndfile" ,libsndfile)
3910 ("libsamplerate" ,libsamplerate)
3911 ("fluidsynth" ,fluidsynth)
3916 `(("pkg-config" ,pkg-config)
3917 ("qttools" ,qttools)))
3918 (home-page "http://muse-sequencer.org")
3919 (synopsis "MIDI/Audio sequencer")
3920 (description "MusE is a MIDI/Audio sequencer with recording and editing
3921 capabilities. Its audio sequencer supports the LADSPA, DSSI, and LV2 audio
3922 plugin formats; the MIDI sequencer provides a piano roll, a drum editor, a
3923 list view, and a score editor. MusE aims to be a complete multitrack virtual
3925 (license license:gpl2+)))
3934 "mirror://sourceforge/dssi/dssi/" version
3935 "/dssi-" version ".tar.gz"))
3938 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3939 (build-system gnu-build-system)
3941 `(("alsa-lib" ,alsa-lib)
3944 ("libsamplerate" ,libsamplerate)
3945 ("libsndfile" ,libsndfile)
3948 `(("pkg-config" ,pkg-config)))
3949 (synopsis "Audio plugin API for soft synths and effects")
3950 (description "DSSI is a plugin API for software instruments with user
3951 interfaces, permitting them to be hosted in-process by audio applications.
3952 It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3953 towards familiarity with MIDI. The DSSI distribution package contains
3954 a JACK/ALSA-sequencer reference host and some plugins as well as the
3955 specification and header.")
3956 (home-page "http://dssi.sourceforge.net/")
3957 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3958 ;; The vast majority of examples are in the public domain.
3959 (license (list license:lgpl2.1+ license:gpl2+))))
3961 (define-public rosegarden
3968 "mirror://sourceforge/rosegarden/rosegarden/"
3969 version "/rosegarden-" version ".tar.bz2"))
3972 "15i9fm0vkn3wsgahaxqi1j5zs0wc0j3wdwml0x49084gk2p328vb"))))
3973 (build-system cmake-build-system)
3975 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
3977 (modify-phases %standard-phases
3978 (add-after 'unpack 'patch-tests
3980 (substitute* "CMakeLists.txt"
3981 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
3983 ((" -fvisibility=hidden") ""))
3985 (add-after 'unpack 'fix-references
3986 (lambda* (#:key inputs #:allow-other-keys)
3987 (substitute* "src/gui/general/ProjectPackager.cpp"
3989 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
3991 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
3993 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
3995 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
3997 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
3998 (substitute* "src/gui/general/LilyPondProcessor.cpp"
3999 (("\"convert-ly\\>")
4000 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
4002 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
4004 (add-after 'unpack 'make-reproducible
4006 ;; Prevent Last-Modified from being written.
4007 ;; The "*.qm" files that are used in locale.qrc would have a new
4008 ;; mtime otherwise that is written into qrc_locale.cpp in the
4009 ;; end - except when we disable it.
4010 (substitute* "src/CMakeLists.txt"
4011 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
4012 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
4014 ;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
4015 ; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
4017 ;; Make hashtable traversal order predicable.
4018 (setenv "QT_RCC_TEST" "1") ; important
4020 (add-before 'check 'prepare-check
4022 (setenv "QT_QPA_PLATFORM" "offscreen")
4023 ;; Tests create files in $HOME/.local/share/rosegarden .
4024 (mkdir-p "/tmp/foo")
4025 (setenv "HOME" "/tmp/foo")
4026 (setenv "XDG_RUNTIME_DIR" "/tmp/foo")
4029 `(("alsa-lib" ,alsa-lib)
4037 ("libsamplerate" ,libsamplerate)
4038 ("lilypond" ,lilypond)
4043 ("wavpack" ,wavpack)
4046 `(("pkg-config" ,pkg-config)
4047 ("qtlinguist" ,qttools)))
4048 (synopsis "Music composition and editing environment based around a MIDI
4050 (description "Rosegarden is a music composition and editing environment
4051 based around a MIDI sequencer that features a rich understanding of music
4052 notation and includes basic support for digital audio.")
4053 (home-page "https://www.rosegardenmusic.com/")
4054 (license license:gpl2)))
4056 (define-public patchmatrix
4058 (name "patchmatrix")
4063 (url "https://github.com/OpenMusicKontrollers/patchmatrix.git")
4065 (file-name (git-file-name "patchmatrix" version))
4068 "020vp7zzxxzzjfic57vkpg68dm8hi98ilr1bj88xjsv6i47xmjbn"))))
4069 (build-system meson-build-system)
4070 (arguments '(#:tests? #f)) ; no test target
4076 `(("pkg-config" ,pkg-config)))
4077 (home-page "https://github.com/OpenMusicKontrollers/patchmatrix")
4078 (synopsis "Simple JACK patch bay")
4079 (description "PatchMatrix is a patch bay for the JACK audio connection
4080 kit. It provides a patch bay in flow matrix style for audio, MIDI, CV, and
4082 (license license:artistic2.0)))
4084 (define-public sorcer
4090 (uri (string-append "https://github.com/openAVproductions/"
4091 "openAV-Sorcer/archive/release-"
4093 (file-name (string-append name "-" version ".tar.gz"))
4096 "07iyqj28wm0xc4arrq893bm12xjpz65db7ynrlmf6w8krg8wjmd0"))))
4097 (build-system cmake-build-system)
4099 `(#:tests? #f ; no tests included
4101 (modify-phases %standard-phases
4102 (add-after 'unpack 'remove-architecture-specific-flags
4104 (substitute* "CMakeLists.txt"
4105 (("-msse2 -mfpmath=sse") ""))
4107 (add-after 'unpack 'build-faust-sources
4108 (lambda* (#:key inputs #:allow-other-keys)
4109 (with-directory-excursion "faust"
4110 (delete-file "main.cpp")
4111 (invoke "faust" "-i"
4113 "-o" "main.cpp" "main.dsp")))))))
4120 ("pkg-config" ,pkg-config)))
4121 (home-page "http://openavproductions.com/sorcer/")
4122 (synopsis "Wavetable LV2 plugin synth")
4123 (description "Sorcer is a wavetable LV2 plugin synthesizer, targeted at
4124 the electronic or dubstep genre.")
4125 (license license:gpl3+)))
4127 (define-public sonivox-eas
4129 (name "sonivox-eas")
4134 (url "https://github.com/pedrolcl/Linux-SonivoxEas.git")
4135 (commit (string-append "v" version))))
4136 (file-name (string-append name "-" version "-checkout"))
4139 "0l9gs00p5g4k4qy6i7nv1mfi2n2wnsycwjrgrh9hxzam4irf2mw2"))))
4140 (build-system cmake-build-system)
4141 (arguments '(#:tests? #f)) ; there are no tests
4143 `(("alsa-lib" ,alsa-lib)
4144 ("drumstick" ,drumstick)
4145 ("pulseaudio" ,pulseaudio)
4146 ("qtbase" ,qtbase)))
4148 `(("pkg-config" ,pkg-config)))
4149 (home-page "https://github.com/pedrolcl/Linux-SonivoxEas")
4150 (synopsis "MIDI synthesizer library")
4151 (description "This project is a real time General MIDI synthesizer based
4152 on the Sonivox EAS Synthesizer by Google. It does not need external
4153 soundfonts, using embedded samples instead.")
4154 ;; Sonivox is released under the ASL2.0; the rest of the code is under
4156 (license (list license:gpl2+ license:asl2.0))))
4158 (define-public whysynth
4161 (version "20170701")
4164 (uri (string-append "http://smbolton.com/whysynth/whysynth-"
4165 version ".tar.bz2"))
4168 "02qbn0hbvn1iym4zxv35b201blg31yjpgh71h8db0j5zls2xc0m6"))))
4169 (build-system gnu-build-system)
4176 ("alsa-lib" ,alsa-lib)))
4178 `(("pkg-config" ,pkg-config)))
4179 (home-page "http://smbolton.com/whysynth.html")
4180 (synopsis "DSSI software synthesizer")
4181 (description "WhySynth is a versatile softsynth which operates as a plugin
4182 for the DSSI Soft Synth Interface. A brief list of features:
4185 @item 4 oscillators, 2 filters, 3 LFOs, and 5 envelope generators per voice.
4186 @item 11 oscillator modes: minBLEP, wavecycle, chorused wavecycle,
4187 asynchronous granular, three FM modes, waveshaper, noise, PADsynth, and phase
4189 @item 10 filter modes.
4190 @item flexible modulation and mixdown options, plus effects.
4193 (license license:gpl2+)))
4195 (define-public libdiscid
4203 "http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/libdiscid-"
4207 "1f9irlj3dpb5gyfdnb1m4skbjvx4d4hwiz2152f83m0d9jn47r7r"))))
4208 (arguments `(#:test-target "check"))
4209 (build-system cmake-build-system)
4210 (home-page "https://musicbrainz.org/doc/libdiscid")
4211 (synopsis "Disc id reader library")
4212 (description "libdiscid is a C library for creating MusicBrainz and freedb
4213 disc IDs from audio CDs. It reads a CD's table of contents (TOC) and generates
4214 an identifier which can be used to lookup the CD at MusicBrainz. Additionally,
4215 it provides a submission URL for adding the disc ID to the database and gathers
4216 ISRCs and the MCN (=UPC/EAN) from disc.")
4217 (license license:lgpl2.1+)))
4219 (define-public python-discid
4221 (name "python-discid")
4226 (uri (pypi-uri "discid" version))
4229 "1fgp67nhqlbvhhwrcxq5avil7alpzw4s4579hlyvxzbphdnbz8vq"))))
4230 (build-system python-build-system)
4232 `(("libdiscid" ,libdiscid)))
4235 (modify-phases %standard-phases
4236 (add-before 'build 'set-libdiscid
4237 ;; Set path of libdiscid
4238 (lambda* (#:key inputs #:allow-other-keys)
4239 (let ((discid (assoc-ref inputs "libdiscid")))
4240 (substitute* "discid/libdiscid.py"
4241 (("lib_name = (.*)$" all name)
4242 (string-append "lib_name = \"" discid
4243 "/lib/libdiscid.so.0\"\n")))
4245 (home-page "https://python-discid.readthedocs.io/")
4246 (synopsis "Python bindings for Libdiscid")
4248 "This package provides Python bindings for the Libdiscid library. The
4249 main purpose is the calculation of @url{https://musicbrainz.org/doc/Disc%20ID,
4250 Disc IDs} for use with the MusicBrainz database. Additionally the disc
4251 @dfn{Media Catalog Number} (MCN) and track @dfn{International Standard
4252 Recording Code} (ISRC) can be extracted.}")
4253 (license license:lgpl3+)))
4255 (define-public libmusicbrainz
4257 (name "libmusicbrainz")
4263 "https://github.com/metabrainz/libmusicbrainz/releases/download/release-"
4264 version "/libmusicbrainz-" version ".tar.gz"))
4267 "0ikb9igyyk28jm34raxfzkw2qyn4nzzwsymdyprp7cmvi6g2ajb7"))))
4268 (build-system cmake-build-system)
4271 (modify-phases %standard-phases
4274 ;; requires network connections
4275 ;; (invoke "tests/mbtest")
4276 (invoke "tests/ctest")
4278 (inputs `(("neon" ,neon)
4279 ("libxml2" ,libxml2)))
4280 (native-inputs `(("pkg-config" ,pkg-config)))
4281 (home-page "https://musicbrainz.org/doc/libmusicbrainz")
4282 (synopsis "MusicBrainz client library")
4283 (description "The MusicBrainz Client Library (libmusicbrainz), also known as
4284 mb_client, is a development library geared towards developers who wish to add
4285 MusicBrainz lookup capabilities to their applications.")
4286 (license license:lgpl2.1+)))
4288 (define-public perl-musicbrainz-discid
4290 (name "perl-musicbrainz-discid")
4295 "mirror://cpan/authors/id/N/NJ/NJH/MusicBrainz-DiscID-"
4299 "1i4qk1qfcmxdibqkyfjrrjdq2zk42vjcz590qgiyc47fi9p6xx1j"))))
4300 (build-system perl-build-system)
4301 (native-inputs `(("pkg-config" ,pkg-config)
4303 (inputs `(("libdiscid" ,libdiscid)))
4304 (home-page "https://metacpan.org/release/MusicBrainz-DiscID")
4305 (synopsis "Perl interface to the MusicBrainz libdiscid library")
4307 "The @code{MusicBrainz::DiscID} module is a Perl interface to the
4308 MusicBrainz libdiscid library, allowing you to manipulate digital audio
4309 compact disc (CDDA) identifiers.")
4310 (license license:gpl2)))
4312 (define-public perl-webservice-musicbrainz
4314 (name "perl-webservice-musicbrainz")
4319 "mirror://cpan/authors/id/B/BF/BFAIST/WebService-MusicBrainz-"
4323 "16chs1l58cf000d5kalkyph3p31ci73p1rlyx98mfv10d2cq6fsj"))))
4324 (build-system perl-build-system)
4326 ;; Tests try to connect to http://musicbrainz.org.
4329 `(("perl-module-build" ,perl-module-build)))
4331 `(("perl-mojolicious" ,perl-mojolicious)))
4332 (home-page "https://metacpan.org/release/WebService-MusicBrainz")
4333 (synopsis "Web service API to the MusicBrainz database")
4335 "This module searches the MusicBrainz database through their web service
4336 at @code{musicbrainz.org}.")
4337 (license license:perl-license)))
4339 (define-public clyrics
4347 (url "https://github.com/trizen/clyrics.git")
4349 (file-name (git-file-name name version))
4352 "0vfjy555achgi5zwa34x4q7r692nc6bq4jx518a5w4m7k5fvm71j"))))
4353 (build-system trivial-build-system)
4355 `(("bash" ,bash) ; for the wrapped program
4357 ("perl-www-mechanize" ,perl-www-mechanize)
4358 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
4359 ;; Required or else LWP will fail with "GET https://www.google.com/ ==>
4360 ;; 500 Can't verify SSL peers without knowing which Certificate
4361 ;; Authorities to trust".
4362 ("perl-mozilla-ca" ,perl-mozilla-ca)))
4364 `(#:modules ((guix build utils))
4366 (use-modules (guix build utils)
4369 (let* ((source (assoc-ref %build-inputs "source"))
4370 (output (assoc-ref %outputs "out")))
4373 (assoc-ref %build-inputs "bash") "/bin" ":"
4374 (assoc-ref %build-inputs "perl") "/bin" ":"))
4375 (copy-recursively source (getcwd))
4376 (patch-shebang "clyrics")
4377 (substitute* "clyrics"
4378 (("/usr/share") output))
4379 (install-file "clyrics" (string-append output "/bin"))
4380 (wrap-program (string-append output "/bin/clyrics")
4385 (((? (cut string-prefix? "perl-" <>) name) . dir)
4386 (string-append dir "/lib/perl5/site_perl"))
4389 (copy-recursively "plugins" (string-append output "/clyrics"))
4391 (home-page "https://github.com/trizen/clyrics")
4392 (synopsis "Extensible lyrics fetcher")
4394 "Clyrics is an extensible command-line tool to fetch the lyrics of songs.
4395 It can be used in daemon mode along with the Music-on-Console (MOC) and cmus
4396 console music players.")
4397 (license license:gpl3+)))
4399 (define-public demlo
4400 (let ((commit "fe9ec4c8ac2fa995ec18e6ac86d50d46df06ec01")
4404 (version (git-version "3.8" revision commit))
4410 "https://gitlab.com/ambrevar/demlo")
4412 (file-name (git-file-name name version))
4415 "1afkbqhzn6da7zaf5ab7dvyqj1izqhzprwfb4hw448fllda9bdvk"))))
4416 (build-system go-build-system)
4419 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
4420 ("go-github-com-mattn-go-colorable" ,go-github-com-mattn-go-colorable)
4421 ("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)
4422 ("go-gitlab-com-ambrevar-damerau" ,go-gitlab-com-ambrevar-damerau)
4423 ("go-gitlab-com-ambrevar-golua-unicode" ,go-gitlab-com-ambrevar-golua-unicode)
4424 ("go-github-com-mgutz-ansi" ,go-github-com-mgutz-ansi)
4425 ("go-github-com-michiwend-gomusicbrainz" ,go-github-com-michiwend-gomusicbrainz)
4426 ("go-github-com-stevedonovan-luar" ,go-github-com-stevedonovan-luar)
4427 ("go-github-com-wtolson-go-taglib" ,go-github-com-wtolson-go-taglib)
4428 ("go-github-com-yookoala-realpath" ,go-github-com-yookoala-realpath)))
4430 `(("chromaprint" ,chromaprint)
4431 ("ffmpeg" ,ffmpeg)))
4433 `(#:import-path "gitlab.com/ambrevar/demlo"
4435 (modify-phases %standard-phases
4436 (add-after 'install 'wrap-program
4437 (lambda* (#:key inputs outputs #:allow-other-keys)
4438 (let ((out (assoc-ref outputs "out"))
4439 (ffmpeg (assoc-ref inputs "ffmpeg"))
4440 (chromaprint (assoc-ref inputs "chromaprint")))
4441 (wrap-program (string-append out "/bin/demlo")
4442 `("XDG_DATA_DIRS" ":" prefix (,out))
4445 (string-append dir "/bin:"
4447 (list ffmpeg chromaprint))))
4449 (add-after 'install 'install-scripts
4450 (lambda* (#:key outputs #:allow-other-keys)
4451 (let* ((out (assoc-ref outputs "out"))
4452 (root (string-append out "/src/gitlab.com/ambrevar/demlo"))
4453 (xdg-data-dirs (string-append out "/demlo")))
4454 (copy-recursively (string-append root "/actions")
4455 (string-append xdg-data-dirs "/actions"))
4456 (copy-recursively (string-append root "/scripts")
4457 (string-append xdg-data-dirs "/scripts"))
4458 (install-file (string-append root "/config.lua") xdg-data-dirs)
4459 ;; TODO: Test fish completion.
4460 (install-file (string-append root "/completion/demlo.fish")
4461 (string-append out "/share/fish/vendor_completions.d"))
4463 (home-page "https://gitlab.com/ambrevar/demlo")
4464 (synopsis "Dynamic and extensible music library organizer")
4465 (description "Demlo is a music library organizer. It can encode, fix
4466 case, change folder hierarchy according to tags or file properties, tag from
4467 an online database, copy covers while ignoring duplicates or those below a
4468 quality threshold, and much more. It makes it possible to manage your
4469 libraries uniformly and dynamically. You can write your own rules to fit your
4472 Demlo can address any of these recurring music library issues (and much more):
4475 @item Fix the lack of folder structure.
4476 @item Normalize tags, fix their case, chose which tags to keep and which to
4478 @item Handle lossy and lossless audio differently.
4479 @item Handle mp3 id3tags hell...
4480 @item Handle multiple covers, whether embedded and/or external, resize covers,
4481 discard bad quality ones.
4483 (license license:expat))))
4485 (define-public lpd8editor
4492 (url "https://github.com/charlesfleche/lpd8editor.git")
4493 (commit (string-append "v" version))))
4494 (file-name (git-file-name name version))
4497 "0lsz3v493ilq2zr016m7kvymrplxd0n3pqv1pjglpq1h7sjw9764"))))
4498 (build-system gnu-build-system)
4501 (modify-phases %standard-phases
4502 (add-after 'unpack 'setenv
4504 (setenv "INSTALL_PREFIX"
4505 (assoc-ref %outputs "out"))))
4506 (delete 'configure) ; no configure script
4507 (add-before 'build 'qmake
4508 (lambda _ (invoke "qmake"))))))
4510 `(("pkg-config" ,pkg-config)))
4512 `(("alsa" ,alsa-lib)
4515 (synopsis "Graphical editor for the Akai LPD8 MIDI controller")
4516 (description "lpd8editor is a graphical patch editor for the Akai LPD8 MIDI
4518 (home-page "https://github.com/charlesfleche/lpd8editor")
4519 (license license:expat)))
4528 (url "https://github.com/gillesdegottex/fmit/")
4529 (commit (string-append "v" version))))
4530 (file-name (git-file-name name version))
4533 "1qyskam053pvlap1av80rgp12pzhr92rs88vqs6s0ia3ypnixcc6"))))
4534 (build-system gnu-build-system)
4537 (modify-phases %standard-phases
4539 (add-before 'build 'qmake
4541 (let ((out (assoc-ref %outputs "out")))
4544 (string-append "PREFIX=" out)
4545 (string-append "PREFIXSHORTCUT=" out)
4546 "CONFIG+=acs_qt acs_alsa acs_jack acs_portaudio"))))
4547 (add-after 'install 'wrap-executable
4548 (lambda* (#:key inputs outputs #:allow-other-keys)
4549 (let ((out (assoc-ref outputs "out")))
4550 (wrap-program (string-append out "/bin/fmit")
4551 `("QT_PLUGIN_PATH" ":" prefix
4552 ,(map (lambda (label)
4553 (string-append (assoc-ref inputs label)
4554 "/lib/qt5/plugins"))
4555 '("qtbase" "qtmultimedia" "qtsvg")))
4556 `("QML2_IMPORT_PATH" ":" prefix
4557 ,(map (lambda (label)
4558 (string-append (assoc-ref inputs label)
4560 '("qtmultimedia"))))
4563 `(("alsa-lib" ,alsa-lib)
4566 ("portaudio" ,portaudio)
4568 ("qtmultimedia" ,qtmultimedia)
4571 `(("gettext" ,gnu-gettext)
4572 ("hicolor-icon-theme" ,hicolor-icon-theme)
4573 ("itstool" ,itstool)
4574 ("qttools" ,qttools)))
4575 (synopsis "Musical instrument tuner")
4576 (description "FMIT is a graphical utility for tuning musical instruments,
4577 with error and volume history, and advanced features.")
4578 (home-page "https://gillesdegottex.github.io/fmit/")
4579 ;; Most of the code is under GPL2+, but some abstract or helper classes
4580 ;; are under LGPL2.1.
4581 (license (list license:gpl2+ license:lgpl2.1))))
4583 (define-public mloop
4584 (let ((commit "adebff98b0b4dc5872a03acb82e89c77cb29c127")
4588 (version (git-version "0.0.1" revision commit))
4592 (url "http://git.fuzzle.org/mloop")
4594 (file-name (git-file-name name version))
4597 "175gxvg5slq0bllcx1c381rjlq3xpxww8c3kpiw5i2kfr4m52myz"))))
4598 (build-system waf-build-system)
4600 `(#:python ,python-2
4601 #:tests? #f)) ; no "check" target
4604 ("ncurses" ,ncurses)))
4606 `(("pkg-config" ,pkg-config)))
4607 (home-page "https://fuzzle.org/~petern/mloop.html")
4608 (synopsis "Live MIDI looper")
4609 (description "mloop is a live MIDI looping system, using jack-midi.
4610 Loops are recorded, optionally with beat quantization, and can then be played
4611 back, either once or looping. A 'note cache' system is implemented to
4612 remember which notes are pressed and their velocities. This allows for a loop
4613 to start off with the currently pressed notes, making seamless loops much
4614 easier to perform. Features include:
4617 @item Quantisation; end a loop on a beat exactly.
4618 @item Delayed recording; wait for a MIDI event before starting a loop record.
4619 @item Adjust tempo; Playback speed of loops can be adjusted on the fly.
4621 (license license:gpl2))))
4623 (define-public pragha
4629 (uri (string-append "https://github.com/pragha-music-player/pragha/"
4630 "releases/download/v" version "/pragha-" version
4634 "19kbhq99bkimx3aqrdzln0vlr4slkpx6kq66j731jvqyq76nlkp5"))))
4635 (build-system glib-or-gtk-build-system)
4637 `(("intltool" ,intltool)
4638 ("pkg-config" ,pkg-config)))
4642 ("gstreamer" ,gstreamer)
4643 ("gst-plugins-base" ,gst-plugins-base)
4644 ("gst-plugins-good" ,gst-plugins-good)
4646 ("libcddb" ,libcddb)
4647 ("libcdio" ,libcdio)
4648 ("libcdio-paranoia" ,libcdio-paranoia)
4649 ("libgudev" ,libgudev)
4650 ("libnotify" ,libnotify)
4651 ("libpeas" ,libpeas)
4652 ("libsoup" ,libsoup)
4654 ("taglib" ,taglib)))
4657 (modify-phases %standard-phases
4658 (add-after 'install 'wrap-program
4659 (lambda* (#:key inputs outputs #:allow-other-keys)
4660 (let ((out (assoc-ref outputs "out"))
4661 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
4662 (wrap-program (string-append out "/bin/pragha")
4663 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))
4665 (home-page "https://pragha-music-player.github.io")
4666 (synopsis "Music player")
4667 (description "Pragha is a lightweight music player based on Gtk and
4668 sqlite. It is constructed to be fast, light, and simultaneously tries to be
4669 complete without obstructing your daily work.")
4670 (license license:gpl3+)))
4672 (define-public playerctl
4679 (url "https://github.com/altdesktop/playerctl.git")
4680 (commit (string-append "v" version))))
4681 (file-name (git-file-name name version))
4684 "1f3njnpd52djx3dmhh9a8p5a67f0jmr1gbk98icflr2q91149gjz"))))
4685 (build-system meson-build-system)
4687 `(#:configure-flags '("-Dintrospection=false" "-Dgtk-doc=false")))
4688 (inputs `(("python-pygobject" ,python-pygobject)))
4690 `(("glib:bin" ,glib "bin")
4691 ("pkg-config" ,pkg-config)))
4692 (synopsis "Control MPRIS-supporting media player applications")
4694 "Playerctl is a command-line utility and library for controlling media
4695 players that implement the MPRIS D-Bus Interface Specification. Playerctl
4696 makes it easy to bind player actions, such as play and pause, to media keys.
4697 You can also get metadata about the playing track such as the artist and title
4698 for integration into status line generators or other command-line tools.")
4699 (home-page "https://github.com/altdesktop/playerctl")
4700 (license license:lgpl3+)))