gnu: clementine: Fix creating initial database.
[jackhill/guix/guix.git] / gnu / packages / music.scm
CommitLineData
1b6826d3 1;;; GNU Guix --- Functional package management for GNU
658212eb 2;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
e749ef2d 3;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
e8069d01 4;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
aa0edd3f 5;;; Copyright © 2016 Al McElrath <hello@yrns.org>
6ff5e9ba 6;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
3f7a182d 7;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
3c8ba11a 8;;; Copyright © 2016, 2017 Kei Kebreau <kkebreau@posteo.net>
6d3ef286 9;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
23319ed6 10;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
4a78fd46 11;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
a42619e5 12;;; Copyright © 2017 Rodger Fox <thylakoid@openmailbox.org>
95e545a4 13;;; Copyright © 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
d09e31bd 14;;; Copyright © 2017, 2018 Pierre Langlois <pierre.langlois@gmx.com>
bc27eb3b 15;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
edfa2eee 16;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
6b445c57 17;;; Copyright © 2018 nee <nee.git@hidamari.blue>
b0dea60c 18;;; Copyright © 2018 Stefan Reichör <stefan@xsteve.at>
87d1b7b0 19;;; Copyright © 2018 Pierre Neidhardt <ambrevar@gmail.com>
b0c2c5ab 20;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org>
1b6826d3
RW
21;;;
22;;; This file is part of GNU Guix.
23;;;
24;;; GNU Guix is free software; you can redistribute it and/or modify it
25;;; under the terms of the GNU General Public License as published by
26;;; the Free Software Foundation; either version 3 of the License, or (at
27;;; your option) any later version.
28;;;
29;;; GNU Guix is distributed in the hope that it will be useful, but
30;;; WITHOUT ANY WARRANTY; without even the implied warranty of
31;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32;;; GNU General Public License for more details.
33;;;
34;;; You should have received a copy of the GNU General Public License
35;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
36
37(define-module (gnu packages music)
38 #:use-module (guix utils)
39 #:use-module (guix packages)
40 #:use-module (guix download)
8e80244a 41 #:use-module (guix git-download)
1b6826d3
RW
42 #:use-module ((guix licenses) #:prefix license:)
43 #:use-module (guix build-system gnu)
f467c352 44 #:use-module (guix build-system ant)
8b9ec354 45 #:use-module (guix build-system cmake)
2394afa4 46 #:use-module (guix build-system meson)
b0c2c5ab 47 #:use-module (guix build-system perl)
821664f1 48 #:use-module (guix build-system python)
bc27eb3b 49 #:use-module (guix build-system scons)
58301682 50 #:use-module (guix build-system glib-or-gtk)
8e80244a 51 #:use-module (guix build-system waf)
87d1b7b0 52 #:use-module (guix build-system trivial)
5703380b 53 #:use-module (guix build-system go)
1b6826d3 54 #:use-module (gnu packages)
ddfddb0c 55 #:use-module (gnu packages algebra)
91595624 56 #:use-module (gnu packages apr)
c267cc15 57 #:use-module (gnu packages audio)
2d0fd07b 58 #:use-module (gnu packages autotools)
b7367762 59 #:use-module (gnu packages backup)
8b9ec354 60 #:use-module (gnu packages base) ;libbdf
7bac8196 61 #:use-module (gnu packages bash)
1b6826d3 62 #:use-module (gnu packages bison)
b7367762 63 #:use-module (gnu packages boost)
e8069d01 64 #:use-module (gnu packages cdrom)
8b9ec354
RW
65 #:use-module (gnu packages code)
66 #:use-module (gnu packages check)
a7a7186c 67 #:use-module (gnu packages cmake)
8b9ec354 68 #:use-module (gnu packages compression)
d20b7384 69 #:use-module (gnu packages crypto)
aa0edd3f 70 #:use-module (gnu packages curl)
13416a10 71 #:use-module (gnu packages cyrus-sasl)
d20b7384
PL
72 #:use-module (gnu packages databases)
73 #:use-module (gnu packages datastructures)
1b6826d3 74 #:use-module (gnu packages docbook)
99828fa7 75 #:use-module (gnu packages documentation)
91595624 76 #:use-module (gnu packages emacs)
13416a10 77 #:use-module (gnu packages file)
1b6826d3 78 #:use-module (gnu packages flex)
8e80244a 79 #:use-module (gnu packages fltk)
1b6826d3
RW
80 #:use-module (gnu packages fonts)
81 #:use-module (gnu packages fontutils)
3bf429af 82 #:use-module (gnu packages freedesktop)
6260d1a8 83 #:use-module (gnu packages gcc)
aa0edd3f 84 #:use-module (gnu packages gnupg)
1b6826d3
RW
85 #:use-module (gnu packages gettext)
86 #:use-module (gnu packages ghostscript)
ec8da0e2 87 #:use-module (gnu packages gl)
8e80244a 88 #:use-module (gnu packages glib)
c267cc15 89 #:use-module (gnu packages gnome)
770305f4 90 #:use-module (gnu packages graphics)
d20b7384 91 #:use-module (gnu packages gstreamer)
1b6826d3
RW
92 #:use-module (gnu packages gtk)
93 #:use-module (gnu packages guile)
c267cc15 94 #:use-module (gnu packages image)
1b6826d3 95 #:use-module (gnu packages imagemagick)
6260d1a8 96 #:use-module (gnu packages java)
91595624 97 #:use-module (gnu packages libffi)
d20b7384 98 #:use-module (gnu packages libusb)
7bac8196
LF
99 #:use-module (gnu packages linux) ; for alsa-utils
100 #:use-module (gnu packages lirc)
91595624 101 #:use-module (gnu packages llvm)
c267cc15
RW
102 #:use-module (gnu packages man)
103 #:use-module (gnu packages mp3)
3bf429af 104 #:use-module (gnu packages mpd)
e8069d01 105 #:use-module (gnu packages ncurses)
1b6826d3 106 #:use-module (gnu packages netpbm)
91595624 107 #:use-module (gnu packages pcre)
821664f1 108 #:use-module (gnu packages pdf)
1b6826d3 109 #:use-module (gnu packages perl)
b2961dda 110 #:use-module (gnu packages perl-web)
1b6826d3 111 #:use-module (gnu packages pkg-config)
d20b7384 112 #:use-module (gnu packages protobuf)
d231bb35 113 #:use-module (gnu packages pulseaudio) ;libsndfile
1b6826d3 114 #:use-module (gnu packages python)
1b2f753d 115 #:use-module (gnu packages python-web)
8b9ec354 116 #:use-module (gnu packages qt)
d231bb35 117 #:use-module (gnu packages rdf)
c493679f 118 #:use-module (gnu packages readline)
1b6826d3 119 #:use-module (gnu packages rsync)
21d18113 120 #:use-module (gnu packages sdl)
2d0fd07b 121 #:use-module (gnu packages tcl)
1b6826d3 122 #:use-module (gnu packages texinfo)
8f9ac901 123 #:use-module (gnu packages tex)
13416a10 124 #:use-module (gnu packages tls)
1ea29aa0 125 #:use-module (gnu packages version-control)
e8069d01 126 #:use-module (gnu packages video)
8b9ec354 127 #:use-module (gnu packages web)
c30a66de 128 #:use-module (gnu packages wxwidgets)
c267cc15 129 #:use-module (gnu packages xml)
ddfddb0c 130 #:use-module (gnu packages xorg)
c267cc15 131 #:use-module (gnu packages xiph)
5703380b
PN
132 #:use-module (gnu packages golang)
133 #:use-module (gnu packages lua)
2d0fd07b 134 #:use-module ((srfi srfi-1) #:select (last)))
1b6826d3 135
c30a66de
RW
136(define-public aria-maestosa
137 (package
138 (name "aria-maestosa")
0a151351 139 (version "1.4.13")
c30a66de
RW
140 (source (origin
141 (method url-fetch)
142 (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/"
143 version "/AriaSrc-" version ".tar.bz2"))
144 (sha256
145 (base32
0a151351 146 "1cs3z6frx2ch7rm5ammx9p0rxcjrbj1vq14hvcbimpaw39rdsn3d"))))
30812446 147 (build-system scons-build-system)
c30a66de
RW
148 (arguments
149 `(#:tests? #f ;no tests
20e42d1e
DM
150 #:scons-flags
151 (list (string-append "prefix=" (assoc-ref %outputs "out")))
30812446 152 #:scons ,scons-python2
c30a66de 153 #:phases
c30a66de
RW
154 (modify-phases %standard-phases
155 (delete 'configure)
156 (add-after 'unpack 'scons-propagate-environment
157 (lambda _
158 ;; By design, SCons does not, by default, propagate
159 ;; environment variables to subprocesses. See:
160 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
161 ;; Here, we modify the SConstruct file to arrange for
162 ;; environment variables to be propagated.
163 (substitute* "SConstruct"
164 (("env = Environment\\(\\)")
165 "env = Environment(ENV=os.environ)")
166 ;; Scons errors out when copying subdirectories from Resources,
167 ;; so we move them instead.
168 (("Copy") "Move")
169 ;; We move the "score" and "Documentation" directories at once,
170 ;; so we have to ignore files contained therein.
171 (("if \".svn\" in file" line)
172 (string-append line
173 " or \"score/\" in file"
174 " or \"Documentation/\" in file")))
175 #t))
30812446 176 (add-after 'install 'fix-directory-permissions
c30a66de
RW
177 (lambda* (#:key outputs #:allow-other-keys)
178 (let ((out (assoc-ref outputs "out")))
30812446
DM
179 (chmod (string-append out "/share/Aria/Documentation") #o555)
180 (chmod (string-append out "/share/Aria/score") #o555)
181 #t))))))
c30a66de
RW
182 (inputs
183 `(("wxwidgets" ,wxwidgets)
184 ("glib" ,glib)
185 ("alsa-lib" ,alsa-lib)))
186 (native-inputs
30812446 187 `(("pkg-config" ,pkg-config)))
c30a66de
RW
188 (home-page "http://ariamaestosa.sourceforge.net/")
189 (synopsis "MIDI sequencer and editor")
190 (description
191 "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit
192and play MIDI files with a few clicks in a user-friendly interface offering
193score, keyboard, guitar, drum and controller views.")
194 (license license:gpl3+)))
195
d20b7384
PL
196;; We don't use the latest release because it depends on Qt4. Instead we
197;; download the sources from the tip of the "qt5" branch.
198(define-public clementine
8a6d16b8
PL
199 (let ((commit "4619a4c1ab3b17b13d4b2327ad477912917eaf36")
200 (revision "2"))
d20b7384
PL
201 (package
202 (name "clementine")
8a6d16b8 203 (version (git-version "1.3.1" revision commit))
d20b7384
PL
204 (source (origin
205 (method git-fetch)
206 (uri (git-reference
207 (url "https://github.com/clementine-player/Clementine.git")
208 (commit commit)))
8a6d16b8 209 (file-name (git-file-name name version))
d20b7384
PL
210 (sha256
211 (base32
8a6d16b8 212 "1hximk3q0p8nw8is5w7215xgkb7k4flnfyr0pdz9svfwvcm05w1i"))
d20b7384
PL
213 (modules '((guix build utils)))
214 (snippet
6cbee49d
MW
215 '(begin
216 (for-each
d20b7384
PL
217 (lambda (dir)
218 (delete-file-recursively
6cbee49d 219 (string-append "3rdparty/" dir)))
d20b7384 220 (list
6cbee49d
MW
221 ;; TODO: The following dependencies are still bundled:
222 ;; - "qxt": Appears to be unmaintained upstream.
223 ;; - "qsqlite"
224 ;; - "qtsingleapplication"
225 ;; - "qocoa"
226 ;; - "qtiocompressor"
227 ;; - "gmock": The tests crash when using our googletest
228 ;; package instead of the bundled gmock.
229 "SPMediaKeyTap"
230 "fancytabwidget"
231 "google-breakpad"
232 "libmygpo-qt"
233 "libmygpo-qt5"
234 "libprojectm"
235 "qtwin"
236 "sha2" ;; Replaced by openssl.
237 "taglib"
238 "tinysvcmdns"))
239 #t))
af414f34 240 (patches (search-patches "clementine-use-openssl.patch"
7bcc3405
PL
241 "clementine-remove-crypto++-dependency.patch"
242 "clementine-fix-sqlite.patch"))))
d20b7384
PL
243 (build-system cmake-build-system)
244 (arguments
245 '(#:test-target "clementine_test"
246 #:configure-flags
af414f34
PL
247 (list ;; Requires unpackaged "projectm"
248 "-DENABLE_VISUALISATIONS=OFF"
249 ;; Otherwise it may try to download a non-free library at run-time.
250 ;; TODO In an origin snippet, remove the code that performs the
251 ;; download.
252 "-DHAVE_SPOTIFY_DOWNLOADER=FALSE"
253 "-DUSE_SYSTEM_SHA2=TRUE")
d20b7384
PL
254 #:phases
255 (modify-phases %standard-phases
256 (add-after 'install 'wrap-program
257 (lambda* (#:key inputs outputs #:allow-other-keys)
258 (let ((out (assoc-ref outputs "out"))
259 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
260 (wrap-program (string-append out "/bin/clementine")
261 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))
262 #t))))))
263 (native-inputs
264 `(("gettext" ,gettext-minimal)
265 ("pkg-config" ,pkg-config)
266 ("qtlinguist" ,qttools)))
267 (inputs
268 `(("boost" ,boost)
269 ("chromaprint" ,chromaprint)
d20b7384
PL
270 ("fftw" ,fftw)
271 ("glib" ,glib)
272 ("glu" ,glu)
273 ("gstreamer" ,gstreamer)
274 ("gst-plugins-base" ,gst-plugins-base)
275 ("libcdio" ,libcdio)
276 ("libmygpo-qt" ,libmygpo-qt)
d20b7384
PL
277 ;; TODO: Package libgpod.
278 ("libmtp" ,libmtp)
279 ("libxml2" ,libxml2)
280 ("openssl" ,openssl)
281 ("protobuf" ,protobuf)
282 ("pulseaudio" ,pulseaudio)
283 ("qtbase" ,qtbase)
284 ("qtx11extras" ,qtx11extras)
7bcc3405 285 ("sqlite" ,sqlite)
d20b7384
PL
286 ("sparsehash" ,sparsehash)
287 ("taglib" ,taglib)))
288 (home-page "http://clementine-player.org")
289 (synopsis "Music player and library organizer")
290 (description "Clementine is a multiplatform music player. It is inspired
291by Amarok 1.4, focusing on a fast and easy-to-use interface for searching and
292playing your music.")
293 (license (list
294 ;; clementine and qtiocompressor are under GPLv3.
295 license:gpl3+
296 ;; gmock is under BSD-3.
297 license:bsd-3
298 ;; qxt is under CPL1.0.
299 license:cpl1.0
300 ;; qsqlite and qtsingleapplication are under LGPL2.1+.
301 license:lgpl2.1+
302 ;; qocoa is under MIT and CC by-sa for the icons.
303 license:cc-by-sa3.0)))))
304
e8069d01
PW
305(define-public cmus
306 (package
307 (name "cmus")
308 (version "2.7.1")
309 (source (origin
310 (method url-fetch)
311 (uri (string-append
312 "https://github.com/" name "/" name "/archive/v"
313 version ".tar.gz"))
566fc7fa 314 (file-name (string-append name "-" version ".tar.gz"))
e8069d01
PW
315 (sha256
316 (base32
317 "0raixgjavkm7hxppzsc5zqbfbh2bhjcmbiplhnsxsmyj8flafyc1"))))
318 (build-system gnu-build-system)
319 (arguments
320 `(#:tests? #f ; cmus does not include tests
321 #:phases
322 (modify-phases %standard-phases
323 (replace
324 'configure
325 (lambda* (#:key outputs #:allow-other-keys)
326 (let ((out (assoc-ref outputs "out")))
327
328 ;; It's an idiosyncratic configure script that doesn't
329 ;; understand --prefix=..; it wants prefix=.. instead.
330 (zero?
331 (system* "./configure"
332 (string-append "prefix=" out)))))))))
333 ;; TODO: cmus optionally supports the following formats, which haven't yet
334 ;; been added to Guix:
335 ;;
336 ;; - Roar, libroar
337 ;;
338 ;; - DISCID_LIBS, apparently different from cd-discid which is included in
339 ;; Guix. See <http://sourceforge.net/projects/discid/>
340 (native-inputs
341 `(("pkg-config" ,pkg-config)))
342 (inputs
343 `(("alsa-lib" ,alsa-lib)
344 ("ao" ,ao)
345 ("ffmpeg" ,ffmpeg)
346 ("flac" ,flac)
347 ("jack" ,jack-1)
348 ("libcddb" ,libcddb)
349 ("libcdio-paranoia" ,libcdio-paranoia)
350 ("libcue" ,libcue)
351 ("libmad" ,libmad)
352 ("libmodplug" ,libmodplug)
353 ("libmpcdec" ,libmpcdec)
354 ("libsamplerate" ,libsamplerate)
355 ("libvorbis" ,libvorbis)
356 ("ncurses" ,ncurses)
357 ("opusfile" ,opusfile)
358 ("pulseaudio" ,pulseaudio)
359 ("wavpack" ,wavpack)))
360 (home-page "https://cmus.github.io/")
361 (synopsis "Small console music player")
362 (description "Cmus is a small and fast console music player. It supports
363many input formats and provides a customisable Vi-style user interface.")
364 (license license:gpl2+)))
365
edd1652e
KK
366(define-public denemo
367 (package
368 (name "denemo")
6ff5e9ba 369 (version "2.1")
edd1652e
KK
370 (source (origin
371 (method url-fetch)
372 (uri (string-append "mirror://gnu/denemo/denemo-"
373 version ".tar.gz"))
374 (sha256
375 (base32
6ff5e9ba 376 "0hggf8c4xcrjcxd5m00r788r7jg7g8ff54w2idfaqpj5j2ix3299"))))
edd1652e
KK
377 (build-system gnu-build-system)
378 (arguments
379 `(#:phases
380 (modify-phases %standard-phases
381 (replace 'check
382 ;; Denemo's documentation says to use this command to run its
383 ;; testsuite.
384 (lambda _
385 (zero? (system* "make" "-C" "tests" "check"))))
b43ec33b
KK
386 (add-before 'build 'set-lilypond
387 ;; This phase sets the default path for lilypond to its current
388 ;; location in the store.
389 (lambda* (#:key inputs #:allow-other-keys)
390 (let* ((lilypond (string-append (assoc-ref inputs "lilypond")
391 "/bin/lilypond")))
392 (substitute* "src/core/prefops.c"
393 (("g_string_new \\(\"lilypond\"\\);")
394 (string-append "g_string_new (\""
395 lilypond
396 "\");"))))
397 #t))
edd1652e
KK
398 (add-after 'install 'correct-filename
399 ;; "graft-derivation/shallow" from the (guix grafts) module runs in
400 ;; the C locale, expecting file names to be ASCII encoded. This
401 ;; phase renames a filename with a Unicode character in it to meet
402 ;; the aforementioned condition.
403 (lambda* (#:key outputs #:allow-other-keys)
404 (let* ((out (assoc-ref outputs "out")))
405 (chdir (string-append
406 out
407 "/share/denemo/templates/instruments/woodwind"))
408 (rename-file "Clarinet in B♭.denemo"
409 "Clarinet in Bb.denemo"))
410 #t)))))
411 (native-inputs
c695fb76 412 `(("glib:bin" ,glib "bin") ; for gtester
edd1652e
KK
413 ("pkg-config" ,pkg-config)))
414 (inputs
415 `(("alsa-lib" ,alsa-lib)
416 ("aubio" ,aubio)
417 ("evince" ,evince)
418 ("fftw" ,fftw)
419 ("fluidsynth" ,fluidsynth)
420 ("glib" ,glib)
421 ("gtk+" ,gtk+)
422 ("gtk-doc" ,gtk-doc)
423 ("gtksourceview" ,gtksourceview)
424 ("guile" ,guile-2.0)
425 ("intltool" ,intltool)
426 ("librsvg" ,librsvg)
427 ("libsndfile" ,libsndfile)
428 ("libtool" ,libtool)
429 ("libxml2" ,libxml2)
c695fb76 430 ("lilypond" ,lilypond)
edd1652e
KK
431 ("portaudio" ,portaudio)
432 ("portmidi" ,portmidi)
433 ("rubberband" ,rubberband)))
edd1652e
KK
434 (synopsis "Graphical music notation, front-end to GNU Lilypond")
435 (description
436 "GNU Denemo is a music notation editor that provides a convenient
437interface to the powerful music engraving program Lilypond. Music can be
438typed in using the computer keyboard, played in using a MIDI keyboard, or
439even input via a microphone connected to the sound card. The final product
440is publication-quality music notation that is continuously generated in the
441background while you work.")
442 (home-page "http://www.denemo.org")
443 (license license:gpl3+)))
444
d231bb35
RW
445(define-public hydrogen
446 (package
447 (name "hydrogen")
80808d67 448 (version "1.0.0-beta1")
d231bb35 449 (source (origin
80808d67
RW
450 (method git-fetch)
451 (uri (git-reference
452 (url "https://github.com/hydrogen-music/hydrogen.git")
453 (commit version)))
454 (file-name (string-append name "-" version "-checkout"))
d231bb35
RW
455 (sha256
456 (base32
80808d67 457 "0nv83l70j5bjz2wd6n3a8cq3bmgrvdvg6g2hjhc1g5h6xnbqsh9x"))))
b7367762 458 (build-system cmake-build-system)
d231bb35 459 (arguments
80808d67
RW
460 `(#:test-target "tests"
461 #:phases
462 (modify-phases %standard-phases
463 (add-after 'unpack 'fix-data-directory
464 (lambda* (#:key outputs #:allow-other-keys)
465 (substitute* "CMakeLists.txt"
466 (("/usr/share/pixmaps")
467 (string-append (assoc-ref outputs "out")
468 "/share/pixmaps")))
469 #t)))))
d231bb35 470 (native-inputs
b7367762 471 `(("cppunit" ,cppunit)
d231bb35
RW
472 ("pkg-config" ,pkg-config)))
473 (inputs
b7367762 474 `(("alsa-lib" ,alsa-lib)
d231bb35 475 ("jack" ,jack-1)
b7367762 476 ;; ("ladspa" ,ladspa) ; cannot find during configure
d231bb35 477 ("lash" ,lash)
b7367762
EF
478 ("libarchive" ,libarchive)
479 ("libsndfile" ,libsndfile)
480 ("libtar" ,libtar)
481 ("lrdf" ,lrdf)
80808d67
RW
482 ("qtbase" ,qtbase)
483 ("qtxmlpatterns" ,qtxmlpatterns)
b7367762 484 ("zlib" ,zlib)))
d231bb35
RW
485 (home-page "http://www.hydrogen-music.org")
486 (synopsis "Drum machine")
487 (description
488 "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to
489enable professional yet simple and intuitive pattern-based drum programming.")
490 (license license:gpl2+)))
491
58301682
PL
492(define-public easytag
493 (package
494 (name "easytag")
495 (version "2.4.3")
496 (source (origin
497 (method url-fetch)
498 (uri (string-append "mirror://gnome/sources/easytag/2.4/easytag-"
499 version ".tar.xz"))
500 (sha256
501 (base32
502 "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw"))))
503 (build-system glib-or-gtk-build-system)
504 (native-inputs
505 `(("desktop-file-utils" ,desktop-file-utils)
506 ("glib" ,glib "bin")
507 ("intltool" ,intltool)
508 ("itstool" ,itstool)
509 ("pkg-config" ,pkg-config)
510 ("xmllint" ,libxml2)))
511 (inputs
512 `(("flac" ,flac)
513 ("gtk+" ,gtk+)
514 ("id3lib" ,id3lib)
515 ("libid3tag" ,libid3tag)
516 ("libvorbis" ,libvorbis)
517 ("opusfile" ,opusfile)
518 ("speex" ,speex)
519 ("taglib" ,taglib)
520 ("wavpack" ,wavpack)
521 ("yelp" ,yelp)))
522 (arguments
523 '(#:phases
524 (modify-phases %standard-phases
525 (add-before 'configure 'configure-libid3tag
526 (lambda* (#:key inputs #:allow-other-keys)
527 ;; libid3tag does not provide a .pc file and EasyTAG's configure
528 ;; script healivy relies on pkg-config. Providing a temporary
529 ;; local .pc file is easier than patching the configure script.
530 (let* ((libid3tag (assoc-ref inputs "libid3tag")))
531 (mkdir-p "pkgconfig")
532 (with-output-to-file
533 "pkgconfig/id3tag.pc"
534 (lambda _
535 (format #t
536 "prefix=~@*~a~@
537 libdir=${prefix}/lib~@
538 includedir=${prefix}/include~@
539 Libs: -L${libdir} -lid3tag -lz~@
540 Cflags: -I${includedir}~%"
541 libid3tag)))
542 (setenv "PKG_CONFIG_PATH"
543 (string-append (getenv "PKG_CONFIG_PATH")
544 ":" (getcwd) "/pkgconfig")))))
545 (add-after 'unpack 'patch-makefile
546 (lambda _
547 (substitute* "Makefile.in"
548 ;; The Makefile generates a test-desktop-file-validate.sh
549 ;; script with /bin/sh hard-coded.
550 (("/bin/sh") (which "sh"))
551 ;; Don't create 'icon-theme.cache'.
552 (("gtk-update-icon-cache") "true")))))))
553 (home-page "https://wiki.gnome.org/Apps/EasyTAG")
554 (synopsis "Simple application for viewing and editing tags in audio files")
555 (description
556 "EasyTAG is an application for viewing and editing tags in audio files.
557It supports MP3, MP2, MP4/AAC, FLAC, Ogg Opus, Ogg Speex, Ogg Vorbis,
558MusePack, Monkey's Audio, and WavPack files.")
559 (license license:gpl2+)))
560
91595624
RW
561(define-public extempore
562 (package
563 (name "extempore")
564 (version "0.7.0")
565 (source (origin
8b0f6917
RW
566 (method git-fetch)
567 (uri (git-reference
568 (url "https://github.com/digego/extempore.git")
569 (commit version)))
91595624
RW
570 (sha256
571 (base32
8b0f6917
RW
572 "12fsp7zkfxb9kykwq46l88kcbbici9arczrrsl4qn87m6vm5349l"))
573 (file-name (string-append name "-" version "-checkout"))))
91595624
RW
574 (build-system cmake-build-system)
575 (arguments
576 `(;; The default target also includes ahead-of-time compilation of the
577 ;; standard libraries. However, during the "install" phase this would
578 ;; happen *again* for unknown reasons. Hence we only build the
579 ;; extempore executable during the build phase.
580 #:make-flags '("extempore")
581 #:configure-flags '("-DJACK=ON"
582 ;; We want to distribute.
583 "-DIN_TREE=OFF"
584 ;; Don't download any dependencies.
585 "-DBUILD_DEPS=OFF")
586 #:modules ((ice-9 match)
587 (guix build cmake-build-system)
588 (guix build utils))
589 #:phases
590 (modify-phases %standard-phases
591 (add-after 'unpack 'patch-directories
592 (lambda* (#:key outputs #:allow-other-keys)
593 ;; Rewrite default path to runtime directory
594 (substitute* "src/Extempore.cpp"
595 (("runtimedir \\+= \"runtime\"")
596 (string-append "runtimedir = \""
597 (assoc-ref outputs "out")
598 "/lib/extempore/runtime\"")))
599 (substitute* "extras/extempore.el"
600 (("\\(runtime-directory \\(concat default-directory \"runtime\"\\)\\)")
601 (string-append "(runtime-directory \""
602 (assoc-ref outputs "out")
603 "/lib/extempore/runtime"
604 "\")")))
605 #t))
606 (add-after 'unpack 'link-with-additional-libs
607 (lambda _
608 ;; The executable must be linked with libffi and zlib.
609 (substitute* "CMakeLists.txt"
610 (("add_dependencies\\(aot_extended extended_deps\\)") "")
611 (("target_link_libraries\\(extempore PRIVATE dl" line)
612 (string-append line " ffi z")))
613 #t))
614 ;; FIXME: AOT compilation of the nanovg bindings fail with the error:
615 ;; "Compiler Error could not bind _nvgLinearGradient"
616 (add-after 'unpack 'disable-nanovg
617 (lambda _
618 (substitute* "CMakeLists.txt"
619 (("aotcompile_lib\\(libs/external/nanovg.xtm.*") ""))
620 #t))
621 ;; FIXME: All examples that are used as tests segfault for some
622 ;; unknown reason.
623 (add-after 'unpack 'disable-broken-tests
624 (lambda _
625 (substitute* "CMakeLists.txt"
626 (("extempore_add_example_as_test\\(.*") ""))
627 #t))
628 (add-after 'unpack 'hardcode-external-lib-paths
629 (lambda* (#:key inputs #:allow-other-keys)
630 (use-modules (ice-9 match))
631 (for-each
632 (match-lambda
633 ((file-name lib pkg-name)
634 (substitute* (string-append "libs/external/" file-name ".xtm")
635 ((lib) (string-append (assoc-ref inputs pkg-name)
636 "/lib/" lib)))))
637 '(("assimp" "libassimp.so" "assimp")
638 ("portmidi" "libportmidi.so" "portmidi")
639 ("sndfile" "libsndfile.so" "libsndfile")
640 ("fft" "libkiss_fft.so" "kiss-fft")
641 ("stb_image" "libstb_image.so" "stb-image")
642 ("nanovg" "libnanovg.so" "nanovg")
643 ("glext" "libGL.so" "mesa")
644 ("glfw3" "libglfw.so" "glfw")
645 ("gl/glcore-directbind" "libGL.so" "mesa")
646 ("gl/glcompat-directbind" "libGL.so" "mesa")))
647 #t))
648 (add-after 'unpack 'use-own-llvm
649 (lambda* (#:key inputs #:allow-other-keys)
650 (setenv "EXT_LLVM_DIR" (assoc-ref inputs "llvm"))
651 ;; Our LLVM builds shared libraries, so Extempore should use
652 ;; those.
653 (substitute* "CMakeLists.txt"
654 (("CMAKE_STATIC_LIBRARY") "CMAKE_SHARED_LIBRARY"))
655 #t))
656 (add-after 'unpack 'fix-aot-compilation
657 (lambda* (#:key outputs #:allow-other-keys)
658 (substitute* "CMakeLists.txt"
659 ;; EXT_SHARE_DIR does not exist before installation, so the
660 ;; working directory should be the source directory instead.
661 (("WORKING_DIRECTORY \\$\\{EXT_SHARE_DIR\\}")
662 "WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}")
663 ;; Extempore needs to be told where the runtime is to be found.
664 ;; While we're at it we disable automatic tuning for a specific
665 ;; CPU to make binary substitution possible.
666 (("COMMAND extempore" prefix)
667 (string-append prefix " --sharedir " (getcwd)
668 " --mcpu=generic --attr=none")))
669 #t)))))
670 (inputs
671 `(("llvm" ,llvm-for-extempore)
672 ("libffi" ,libffi)
673 ("jack" ,jack-1)
674 ("libsndfile" ,libsndfile)
675 ("glfw" ,glfw)
676 ("apr" ,apr)
677 ("stb-image" ,stb-image-for-extempore)
678 ("kiss-fft" ,kiss-fft-for-extempore)
679 ("nanovg" ,nanovg-for-extempore)
680 ("portmidi" ,portmidi-for-extempore)
681 ("assimp" ,assimp)
682 ("alsa-lib" ,alsa-lib)
683 ("portaudio" ,portaudio)
684 ("mesa" ,mesa)
685 ("pcre" ,pcre)
686 ("zlib" ,zlib)))
687 (native-inputs
688 `(("perl" ,perl)
689 ("emacs" ,emacs-no-x)))
39162ee4
RW
690 ;; Extempore refuses to build on architectures other than x86_64
691 (supported-systems '("x86_64-linux"))
95708ed8 692 (home-page "http://digego.github.io/extempore/")
91595624
RW
693 (synopsis "Programming environment for live coding of multimedia")
694 (description
695 "Extempore is a programming language and runtime environment designed
696with live programming in mind. It supports interactive programming in a REPL
697style, compiling and binding code just-in-time. Although Extempore has its
698roots in 'live coding' of audiovisual media art, it is suitable for any task
699domain where dynamic run-time modifiability and good numerical performance are
700required. Extempore also has strong timing and concurrency semantics, which
701are helpful when working in problem spaces where timing is important (such as
702audio and video).")
703 (license license:bsd-2)))
704
8c454dcd
RW
705(define-public klick
706 (package
707 (name "klick")
708 (version "0.12.2")
709 (source (origin
710 (method url-fetch)
711 (uri (string-append "http://das.nasophon.de/download/klick-"
712 version ".tar.gz"))
713 (sha256
714 (base32
715 "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j"))))
bc27eb3b 716 (build-system scons-build-system)
8c454dcd 717 (arguments
bc27eb3b
AI
718 `(#:scons-flags (list (string-append "PREFIX=" %output))
719 #:tests? #f)) ;no "check" target
8c454dcd
RW
720 (inputs
721 `(("boost" ,boost)
722 ("jack" ,jack-1)
723 ("libsndfile" ,libsndfile)
724 ("libsamplerate" ,libsamplerate)
725 ("liblo" ,liblo)
726 ("rubberband" ,rubberband)))
727 (native-inputs
bc27eb3b 728 `(("pkg-config" ,pkg-config)))
8c454dcd
RW
729 (home-page "http://das.nasophon.de/klick/")
730 (synopsis "Metronome for JACK")
731 (description
732 "klick is an advanced command-line based metronome for JACK. It allows
733you to define complex tempo maps for entire songs or performances.")
734 (license license:gpl2+)))
735
048bfba1
RW
736(define-public gtklick
737 (package
738 (name "gtklick")
739 (version "0.6.4")
740 (source (origin
741 (method url-fetch)
742 (uri (string-append "http://das.nasophon.de/download/gtklick-"
743 version ".tar.gz"))
744 (sha256
745 (base32
746 "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp"))))
747 (build-system python-build-system)
748 (arguments
749 `(#:tests? #f ; no tests
750 #:python ,python-2
751 #:phases
752 (modify-phases %standard-phases
753 (add-before 'build 'add-sitedirs
754 ;; .pth files are not automatically interpreted unless the
755 ;; directories containing them are added as "sites". The directories
756 ;; are then added to those in the PYTHONPATH. This is required for
757 ;; the operation of pygtk.
758 (lambda _
759 (substitute* "gtklick/gtklick.py"
760 (("import pygtk")
761 "import pygtk, site, sys
762for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))))
763 (add-after 'unpack 'inject-store-path-to-klick
764 (lambda* (#:key inputs #:allow-other-keys)
765 (substitute* "gtklick/klick_backend.py"
766 (("KLICK_PATH = 'klick'")
767 (string-append "KLICK_PATH = '"
768 (assoc-ref inputs "klick")
769 "/bin/klick'")))
770 #t)))))
771 (inputs
772 `(("klick" ,klick)
773 ("python2-pyliblo" ,python2-pyliblo)
774 ("python2-pygtk" ,python2-pygtk)))
775 (native-inputs
b94a6ca0 776 `(("gettext" ,gettext-minimal)))
048bfba1
RW
777 (home-page "http://das.nasophon.de/gtklick/")
778 (synopsis "Simple metronome with an easy-to-use graphical interface")
779 (description
780 "Gtklick is a simple metronome with an easy-to-use graphical user
781interface. It is implemented as a frontend to @code{klick}.")
782 (license license:gpl2+)))
783
a3b10217
KK
784(define-public libgme
785 (package
786 (name "libgme")
787 (version "0.6.1")
788 (source (origin
789 (method url-fetch)
790 (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/"
791 "downloads/game-music-emu-" version
792 ".tar.bz2"))
793 (sha256
794 (base32
795 "08fk7zddpn7v93d0fa7fcypx7hvgwx9b5psj9l6m8b87k2hbw4fw"))))
796 (build-system cmake-build-system)
797 (arguments
798 '(#:tests? #f)) ; no check target
799 (home-page "https://bitbucket.org/mpyne/game-music-emu")
800 (synopsis "Video game music file playback library")
801 (description
802 "Game-music-emu is a collection of video game music file emulators that
803support the following formats and systems:
804@table @code
805@item AY
806ZX Spectrum/Asmtrad CPC
807@item GBS
808Nintendo Game Boy
809@item GYM
810Sega Genesis/Mega Drive
811@item HES
812NEC TurboGrafx-16/PC Engine
813@item KSS
814MSX Home Computer/other Z80 systems (doesn't support FM sound)
815@item NSF/NSFE
816Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
817@item SAP
818Atari systems using POKEY sound chip
819@item SPC
820Super Nintendo/Super Famicom
821@item VGM/VGZ
822Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
823@end table")
824 (license (list license:lgpl2.1+
825 ;; demo and player directories are under the Expat license
826 license:expat))))
827
1b6826d3
RW
828(define-public lilypond
829 (package
830 (name "lilypond")
85f075a0 831 (version "2.19.80")
1b6826d3
RW
832 (source (origin
833 (method url-fetch)
834 (uri (string-append
835 "http://download.linuxaudio.org/lilypond/sources/v"
836 (version-major+minor version) "/"
837 name "-" version ".tar.gz"))
838 (sha256
839 (base32
85f075a0 840 "0lql4q946gna2pl1g409mmmsvn2qvnq2z5cihrkfhk7plcqdny9n"))))
1b6826d3
RW
841 (build-system gnu-build-system)
842 (arguments
127b04d7 843 `(#:tests? #f ; out-test/collated-files.html fails
1b6826d3 844 #:out-of-source? #t
409be57b 845 #:make-flags '("conf=www") ;to generate images for info manuals
127b04d7 846 #:configure-flags
409be57b
RW
847 (list "CONFIGURATION=www"
848 (string-append "--with-texgyre-dir="
127b04d7
RW
849 (assoc-ref %build-inputs "font-tex-gyre")
850 "/share/fonts/opentype/"))
1b6826d3 851 #:phases
a8bc747a 852 (modify-phases %standard-phases
9cc823f5
RW
853 (add-after 'unpack 'use-texlive-union
854 (lambda _
855 ;; FIXME: fonts are not found and have to be generated in HOME.
856 (setenv "HOME" "/tmp")
857 ;; The test for the "lh" package fails, even though it is among
858 ;; the inputs.
859 (substitute* "configure"
860 (("TEX_FIKPARM=.*") "TEX_FIKPARM=found\n"))
861 #t))
409be57b
RW
862 (add-after 'unpack 'fix-path-references
863 (lambda _
a8bc747a
RW
864 (substitute* "scm/backend-library.scm"
865 (("\\(search-executable '\\(\"gs\"\\)\\)")
409be57b
RW
866 (string-append "\"" (which "gs") "\""))
867 (("\"/bin/sh\"")
868 (string-append "\"" (which "sh") "\"")))
a8bc747a
RW
869 #t))
870 (add-before 'configure 'prepare-configuration
871 (lambda _
872 (substitute* "configure"
7affb2c1
RW
873 (("SHELL=/bin/sh") "SHELL=sh")
874 ;; When checking the fontforge version do not consider the
875 ;; version string that's part of the directory.
31ec5228
EF
876 (("head -n") "tail -n")
877 ;; Also allow for SOURCE_DATE_EPOCH = 0 in fontforge.
878 (("20110222") "19700101"))
409be57b
RW
879 (setenv "out" "www")
880 (setenv "conf" "www")
881 #t))
882 (add-after 'install 'install-info
883 (lambda _
884 (zero? (system* "make"
885 "-j" (number->string (parallel-job-count))
886 "conf=www" "install-info")))))))
1b6826d3
RW
887 (inputs
888 `(("guile" ,guile-1.8)
889 ("font-dejavu" ,font-dejavu)
127b04d7 890 ("font-tex-gyre" ,font-tex-gyre)
1b6826d3
RW
891 ("fontconfig" ,fontconfig)
892 ("freetype" ,freetype)
fb0b9ff1 893 ("ghostscript" ,ghostscript)
1b6826d3
RW
894 ("pango" ,pango)
895 ("python" ,python-2)))
896 (native-inputs
897 `(("bison" ,bison)
898 ("perl" ,perl)
899 ("flex" ,flex)
900 ("fontforge" ,fontforge)
901 ("dblatex" ,dblatex)
b94a6ca0 902 ("gettext" ,gettext-minimal)
1b6826d3
RW
903 ("imagemagick" ,imagemagick)
904 ("netpbm" ,netpbm) ;for pngtopnm
9cc823f5
RW
905 ("texlive" ,(texlive-union (list texlive-metapost
906 texlive-generic-epsf
907 texlive-latex-lh
908 texlive-latex-cyrillic)))
1b6826d3
RW
909 ("texinfo" ,texinfo)
910 ("texi2html" ,texi2html)
911 ("rsync" ,rsync)
912 ("pkg-config" ,pkg-config)
913 ("zip" ,zip)))
914 (home-page "http://www.lilypond.org/")
915 (synopsis "Music typesetting")
916 (description
917 "GNU LilyPond is a music typesetter, which produces high-quality sheet
918music. Music is input in a text file containing control sequences which are
919interpreted by LilyPond to produce the final document. It is extendable with
920Guile.")
55ca5e80
LC
921 (license license:gpl3+)
922
923 ;; On armhf and mips64el, building the documentation sometimes leads to
924 ;; more than an hour of silence, so double the max silent time.
925 (properties `((max-silent-time . 7200)))))
c267cc15 926
8e80244a
RW
927(define-public non-sequencer
928 ;; The latest tagged release is three years old and uses a custom build
1bbe7959 929 ;; system, so we take the last commit.
a6b5e1fb
RW
930 (let ((commit "5ae43bb27c42387052a73e5ffc5d33efb9d946a9")
931 (revision "4"))
8e80244a
RW
932 (package
933 (name "non-sequencer")
1bbe7959 934 (version (string-append "1.9.5-" revision "." (string-take commit 7)))
8e80244a
RW
935 (source (origin
936 (method git-fetch)
937 (uri (git-reference
938 (url "git://git.tuxfamily.org/gitroot/non/non.git")
939 (commit commit)))
940 (sha256
941 (base32
a6b5e1fb 942 "1cljkkyi9dxqpqhx8y6l2ja4zjmlya26m26kqxml8gx08vyvddhx"))
8e80244a
RW
943 (file-name (string-append name "-" version "-checkout"))))
944 (build-system waf-build-system)
945 (arguments
946 `(#:tests? #f ;no "check" target
e591a4d6
RW
947 #:configure-flags
948 (list "--project=sequencer"
949 ;; Disable the use of SSE unless on x86_64.
950 ,@(if (not (string-prefix? "x86_64" (or (%current-target-system)
951 (%current-system))))
952 '("--disable-sse")
953 '()))
d8c317df
SB
954 #:phases
955 (modify-phases %standard-phases
956 (add-before
957 'configure 'set-flags
958 (lambda _
959 ;; Compile with C++11, required by libsigc++.
960 (setenv "CXXFLAGS" "-std=c++11")
961 #t)))
8e80244a
RW
962 #:python ,python-2))
963 (inputs
964 `(("jack" ,jack-1)
965 ("libsigc++" ,libsigc++)
966 ("liblo" ,liblo)
967 ("ntk" ,ntk)))
968 (native-inputs
969 `(("pkg-config" ,pkg-config)))
970 (home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer")
971 (synopsis "Pattern-based MIDI sequencer")
972 (description
973 "The Non Sequencer is a powerful, lightweight, real-time,
974pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for
975MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non
976Sequencer happens on-line, in real-time. Music can be composed live, while the
977transport is rolling.")
978 (license license:gpl2+))))
979
ded69d6f
RW
980(define-public non-session-manager
981 (package (inherit non-sequencer)
982 (name "non-session-manager")
983 (arguments
984 (substitute-keyword-arguments (package-arguments non-sequencer)
985 ((#:configure-flags flags)
986 `(cons "--project=session-manager"
987 (delete "--project=sequencer" ,flags)))))
988 (inputs
989 `(("jack" ,jack-1)
990 ("liblo" ,liblo)
991 ("ntk" ,ntk)))
992 (native-inputs
993 `(("pkg-config" ,pkg-config)))
994 (home-page "http://non.tuxfamily.org/nsm/")
995 (synopsis "Audio session management")
996 (description
997 "The Non Session Manager is an API and an implementation for audio
998session management. NSM clients use a well-specified OSC protocol to
999communicate with the session management daemon.")
1000 (license license:gpl2+)))
1001
46bb58b8
RW
1002(define-public non-mixer
1003 (package (inherit non-sequencer)
1004 (name "non-mixer")
1005 (arguments
1006 (substitute-keyword-arguments (package-arguments non-sequencer)
1007 ((#:configure-flags flags)
1008 `(cons "--project=mixer"
1009 (delete "--project=sequencer" ,flags)))))
1010 (inputs
1011 `(("jack" ,jack-1)
1012 ("liblo" ,liblo)
1013 ("ladspa" ,ladspa)
1014 ("lrdf" ,lrdf)
1015 ("ntk" ,ntk)))
1016 (native-inputs
1017 `(("pkg-config" ,pkg-config)))
1018 (home-page "http://non.tuxfamily.org/wiki/Non%20Mixer")
1019 (synopsis "Modular digital audio mixer")
1020 (description
1021 "The Non Mixer is a powerful, reliable and fast modular digital audio
1022mixer. It utilizes JACK for inter-application audio I/O and the NTK GUI
1023toolkit for a fast and lightweight user interface. Non Mixer can be used
1024alone or in concert with Non Timeline and Non Sequencer to form a complete
1025studio.")
1026 (license license:gpl2+)))
1027
4511e0db
RW
1028(define-public non-timeline
1029 (package (inherit non-sequencer)
1030 (name "non-timeline")
1031 (arguments
1032 (substitute-keyword-arguments (package-arguments non-sequencer)
1033 ((#:configure-flags flags)
1034 `(cons "--project=timeline"
1035 (delete "--project=sequencer" ,flags)))))
1036 (inputs
1037 `(("jack" ,jack-1)
1038 ("liblo" ,liblo)
1039 ("libsndfile" ,libsndfile)
1040 ("ntk" ,ntk)))
1041 (native-inputs
1042 `(("pkg-config" ,pkg-config)))
1043 (home-page "http://non.tuxfamily.org/wiki/Non%20Timeline")
1044 (synopsis "Modular digital audio timeline arranger")
1045 (description
1046 "The Non Timeline is a powerful, reliable and fast modular digital audio
1047timeline arranger. It utilizes JACK for inter-application audio I/O and the
1048NTK GUI toolkit for a fast and lightweight user interface. Non Timeline can
1049be used alone or in concert with Non Mixer and Non Sequencer to form a
1050complete studio.")
1051 (license license:gpl2+)))
1052
c267cc15
RW
1053(define-public solfege
1054 (package
1055 (name "solfege")
1056 (version "3.22.2")
1057 (source (origin
1058 (method url-fetch)
1059 (uri (string-append
1060 "mirror://gnu/solfege/solfege-"
1061 version ".tar.xz"))
1062 (sha256
1063 (base32
1064 "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i"))))
1065 (build-system gnu-build-system)
1066 (arguments
1067 `(#:tests? #f ; xmllint attempts to download DTD
1068 #:test-target "test"
1069 #:phases
dc1d3cde
KK
1070 (modify-phases %standard-phases
1071 (add-after 'unpack 'fix-configuration
1072 (lambda* (#:key inputs #:allow-other-keys)
1073 (substitute* "default.config"
20c65aa1 1074 (("/usr/bin/aplay") "aplay")
95e545a4
NG
1075 (("/usr/bin/timidity") "timidity")
1076 (("/usr/bin/mpg123") "mpg123")
1077 (("/usr/bin/ogg123") "ogg123"))
dc1d3cde
KK
1078 #t))
1079 (add-before 'build 'patch-python-shebangs
1080 (lambda _
1081 ;; Two python scripts begin with a Unicode BOM, so patch-shebang
1082 ;; has no effect.
1083 (substitute* '("solfege/parsetree.py"
1084 "solfege/presetup.py")
1085 (("#!/usr/bin/python") (string-append "#!" (which "python"))))
1086 #t))
1087 (add-before 'build 'add-sitedirs
1088 ;; .pth files are not automatically interpreted unless the
1089 ;; directories containing them are added as "sites". The directories
1090 ;; are then added to those in the PYTHONPATH. This is required for
1091 ;; the operation of pygtk and pygobject.
1092 (lambda _
1093 (substitute* "run-solfege.py"
1094 (("import os")
1095 "import os, site
1096for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))
1097 #t))
1098 (add-before 'build 'adjust-config-file-prefix
c267cc15
RW
1099 (lambda* (#:key outputs #:allow-other-keys)
1100 (substitute* "run-solfege.py"
1101 (("prefix = os.path.*$")
dc1d3cde
KK
1102 (string-append "prefix = " (assoc-ref outputs "out"))))
1103 #t))
1104 (add-after 'install 'wrap-program
1105 (lambda* (#:key inputs outputs #:allow-other-keys)
1106 ;; Make sure 'solfege' runs with the correct PYTHONPATH.
1107 (let* ((out (assoc-ref outputs "out"))
1108 (path (getenv "PYTHONPATH")))
1109 (wrap-program (string-append out "/bin/solfege")
1110 `("PYTHONPATH" ":" prefix (,path))))
1111 #t)))))
c267cc15
RW
1112 (inputs
1113 `(("python" ,python-2)
1114 ("pygtk" ,python2-pygtk)
b94a6ca0 1115 ("gettext" ,gettext-minimal)
c267cc15 1116 ("gtk" ,gtk+)
95e545a4 1117 ("lilypond" ,lilypond)))
c267cc15
RW
1118 (native-inputs
1119 `(("pkg-config" ,pkg-config)
1120 ("txt2man" ,txt2man)
1121 ("libxml2" ,libxml2) ; for tests
1122 ("ghostscript" ,ghostscript)
c267cc15
RW
1123 ("texinfo" ,texinfo)))
1124 (home-page "https://www.gnu.org/software/solfege/")
1125 (synopsis "Ear training")
1126 (description
1127 "GNU Solfege is a program for practicing musical ear-training. With it,
1128you can practice your recognition of various musical intervals and chords. It
1129features a statistics overview so you can monitor your progress across several
1130sessions. Solfege is also designed to be extensible so you can easily write
1131your own lessons.")
1132 (license license:gpl3+)))
6260d1a8 1133
8b9ec354
RW
1134(define-public powertabeditor
1135 (package
1136 (name "powertabeditor")
92a1cb92 1137 (version "2.0.0-alpha10")
8b9ec354
RW
1138 (source (origin
1139 (method url-fetch)
1140 (uri (string-append
1141 "https://github.com/powertab/powertabeditor/archive/"
1142 version ".tar.gz"))
1143 (file-name (string-append name "-" version ".tar.gz"))
1144 (sha256
1145 (base32
92a1cb92 1146 "1fr14ql0yhlqvh6y08yaanszm2nvca5i50rqym396kfvga3ky18x"))
8b9ec354
RW
1147 (modules '((guix build utils)))
1148 (snippet
1149 '(begin
1150 ;; Remove bundled sources for external libraries
1151 (delete-file-recursively "external")
40effef7 1152 ;; Use only system libraries
8b9ec354 1153 (substitute* "CMakeLists.txt"
40effef7
RW
1154 (("include\\( PTE_ThirdParty \\)")
1155 "\
1156include(third_party/Qt)
1157include(third_party/boost)
1158add_library( Catch INTERFACE IMPORTED )
1159add_library( rapidjson INTERFACE IMPORTED )"))
8b9ec354
RW
1160 #t))))
1161 (build-system cmake-build-system)
1162 (arguments
7e11d113 1163 `(#:modules ((guix build cmake-build-system)
8b9ec354
RW
1164 (guix build utils)
1165 (ice-9 match))
1166 #:configure-flags
1167 ;; CMake appears to lose the RUNPATH for some reason, so it has to be
1168 ;; explicitly set with CMAKE_INSTALL_RPATH.
7e11d113 1169 (list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
7e11d113 1170 (string-append "-DCMAKE_INSTALL_RPATH="
8b9ec354
RW
1171 (string-join (map (match-lambda
1172 ((name . directory)
1173 (string-append directory "/lib")))
40effef7
RW
1174 %build-inputs) ";"))
1175 "-DPTE_DATA_DIR=share/powertabeditor")
8b9ec354
RW
1176 #:phases
1177 (modify-phases %standard-phases
40effef7
RW
1178 (replace 'check
1179 (lambda _
1180 (zero? (system* "bin/pte_tests"
92a1cb92
RW
1181 ;; FIXME: these tests fail
1182 "exclude:Actions/EditStaff"
1183 "exclude:Formats/PowerTabOldImport/MergeMultiBarRests"
1184 "exclude:Score/ViewFilter/FilterRule"
1185 "exclude:Score/ViewFilter/ViewFilter"
1186 "exclude:Formats/PowerTabOldImport/Directions"
1187 ))))
04ba7a9d
RW
1188 ;; FIXME: This bug has been fixed upstream, but no release has been
1189 ;; made yet. See https://github.com/powertab/powertabeditor/issues/257
1190 (add-after 'unpack 'fix-boost-bug
1191 (lambda _
1192 (substitute* "source/score/voiceutils.cpp"
1193 (("boost::rational<int> duration\\(4, pos.getDurationType\\(\\)\\);")
1194 "boost::rational<int> duration(4, static_cast<int>(pos.getDurationType()));"))
1195 #t))
1e341fa5
RW
1196 ;; Fix build with Qt 5.11.
1197 (add-after 'unpack 'add-missing-headers
1198 (lambda _
1199 (substitute* (find-files "source/dialogs/" "\\.h$")
1200 (("#include <QDialog>" m)
1201 (string-append m "\n#include <QButtonGroup>")))
1202 (substitute* "source/widgets/mixer/mixeritem.h"
1203 (("#include <QWidget>" m)
1204 (string-append m "\n#include <QStyle>")))
1205 (substitute* "source/widgets/playback/playbackwidget.h"
1206 (("#include <QWidget>" m)
1207 (string-append m "\n#include <QButtonGroup>\n#include <QAction>")))
1208 #t))
40effef7
RW
1209 (add-before 'configure 'remove-third-party-libs
1210 (lambda* (#:key inputs #:allow-other-keys)
1211 ;; Link with required static libraries, because we're not
1212 ;; using the bundled version of withershins.
c3913fac 1213 ;; Also add pthread for fixing a linker error.
40effef7
RW
1214 (substitute* "source/build/CMakeLists.txt"
1215 (("withershins" line)
1216 (string-append line "\n"
1217 (assoc-ref inputs "binutils")
1218 "/lib/libbfd.a\n"
1219 (assoc-ref inputs "libiberty")
1220 "/lib/libiberty.a\n"
1221 "dl\n"
c3913fac 1222 "pthread\n"
40effef7
RW
1223 "z\n")))
1224 #t)))))
8b9ec354
RW
1225 (inputs
1226 `(("boost" ,boost)
1227 ("alsa-lib" ,alsa-lib)
0a0bfd68 1228 ("qtbase" ,qtbase)
8b9ec354 1229 ("withershins" ,withershins)
d6902798 1230 ("libiberty" ,libiberty) ;for withershins
8b9ec354
RW
1231 ("binutils" ,binutils) ;for -lbfd and -liberty (for withershins)
1232 ("timidity" ,timidity++)
1233 ("pugixml" ,pugixml)
1234 ("rtmidi" ,rtmidi)
1235 ("rapidjson" ,rapidjson)
1236 ("zlib" ,zlib)))
1237 (native-inputs
1238 `(("catch" ,catch-framework)
1239 ("pkg-config" ,pkg-config)))
1240 (home-page "http://powertabs.net")
1241 (synopsis "Guitar tablature editor")
1242 (description
1243 "Power Tab Editor 2.0 is the successor to the famous original Power Tab
1244Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
1245 (license license:gpl3+)))
1246
3d4b1bb9
RW
1247(define-public jalv-select
1248 (package
1249 (name "jalv-select")
eaace76c 1250 (version "0.8")
3d4b1bb9
RW
1251 (source (origin
1252 (method url-fetch)
1253 (uri (string-append "https://github.com/brummer10/jalv_select/"
1254 "archive/V" version ".tar.gz"))
1255 (sha256
1256 (base32
eaace76c 1257 "0zraagwr681b5s3qifxf399c7q93jz23c8sr42gmff9zqnvxc75q"))))
3d4b1bb9
RW
1258 (build-system gnu-build-system)
1259 (arguments
1260 `(#:make-flags
1261 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1262 #:phases
1263 (modify-phases %standard-phases
1264 (delete 'configure)
1265 (add-after 'unpack 'ignore-PATH
1266 (lambda* (#:key inputs #:allow-other-keys)
1267 (substitute* "jalv.select.cpp"
ad7f6e5f 1268 (("echo \\$PATH.*tr ':'.*xargs ls")
3d4b1bb9
RW
1269 (string-append "ls -1 " (assoc-ref inputs "jalv") "/bin")))
1270 (substitute* "jalv.select.h"
1271 (("gtkmm.h") "gtkmm-2.4/gtkmm.h"))
1272 #t)))))
1273 (inputs
1274 `(("lilv" ,lilv)
1275 ("lv2" ,lv2)
1276 ("jalv" ,jalv)
1277 ("gtkmm" ,gtkmm-2)))
1278 (native-inputs
1279 `(("pkg-config" ,pkg-config)))
1280 (home-page "https://github.com/brummer10/jalv_select")
1281 (synopsis "GUI to select LV2 plugins and run them with jalv")
1282 (description
1283 "The jalv.select package provides a graphical user interface allowing
1284users to select LV2 plugins and run them with jalv.")
1285 (license license:public-domain)))
1286
b095e762
RW
1287(define-public synthv1
1288 (package
1289 (name "synthv1")
7c60a23c 1290 (version "0.9.0")
b095e762
RW
1291 (source (origin
1292 (method url-fetch)
1293 (uri
de67e922
LF
1294 (string-append "mirror://sourceforge/synthv1/synthv1/" version
1295 "/synthv1-" version ".tar.gz"))
b095e762
RW
1296 (sha256
1297 (base32
7c60a23c 1298 "1skynjg6ip0qfbqqkybfjh6xcwxagq89ghl08f7sp7j0sz5qdcwp"))))
b095e762 1299 (build-system gnu-build-system)
69008d73
DC
1300 (arguments
1301 `(#:tests? #f ; There are no tests.
1302 #:configure-flags
1303 '("CXXFLAGS=-std=gnu++11")))
b095e762
RW
1304 (inputs
1305 `(("jack" ,jack-1)
1306 ("lv2" ,lv2)
1307 ("alsa-lib" ,alsa-lib)
b45aa39b 1308 ("non-session-manager" ,non-session-manager)
b095e762 1309 ("liblo" ,liblo)
e5f2afdb
EF
1310 ("qtbase" ,qtbase)
1311 ("qttools" ,qttools)))
b45aa39b
RW
1312 (native-inputs
1313 `(("pkg-config" ,pkg-config)))
b095e762
RW
1314 (home-page "http://synthv1.sourceforge.net")
1315 (synopsis "Polyphonic subtractive synthesizer")
1316 (description
1317 "Synthv1 is an old-school subtractive polyphonic synthesizer with four
1318oscillators and stereo effects.")
1319 (license license:gpl2+)))
2bb00612 1320
cf9af706
RW
1321(define-public drumkv1
1322 (package
1323 (name "drumkv1")
9602ac76 1324 (version "0.9.0")
cf9af706
RW
1325 (source (origin
1326 (method url-fetch)
1327 (uri
1328 (string-append "mirror://sourceforge/drumkv1/drumkv1/" version
1329 "/drumkv1-" version ".tar.gz"))
1330 (sha256
1331 (base32
9602ac76 1332 "1vm8lrk3lykdic6fyfpl12jx1xg6rcaid242s8sij30p1ix4zdab"))))
cf9af706
RW
1333 (build-system gnu-build-system)
1334 (arguments
1335 `(#:tests? #f ; There are no tests.
1336 #:configure-flags
1337 '("CXXFLAGS=-std=gnu++11")))
1338 (inputs
1339 `(("jack" ,jack-1)
1340 ("lv2" ,lv2)
1341 ("libsndfile" ,libsndfile)
1342 ("alsa-lib" ,alsa-lib)
41e2a731 1343 ("non-session-manager" ,non-session-manager)
cf9af706
RW
1344 ("liblo" ,liblo)
1345 ("qtbase" ,qtbase)))
1346 (native-inputs
1347 `(("pkg-config" ,pkg-config)
1348 ("qttools" ,qttools)))
1349 (home-page "http://drumkv1.sourceforge.net")
1350 (synopsis "Drum-kit sampler synthesizer with stereo effects")
1351 (description
1352 "Drumkv1 is an old-school drum-kit sampler synthesizer with stereo
1353effects.")
1354 (license license:gpl2+)))
1355
18675264
RW
1356(define-public samplv1
1357 (package
1358 (name "samplv1")
2a5d08da 1359 (version "0.9.0")
18675264
RW
1360 (source (origin
1361 (method url-fetch)
1362 (uri
1363 (string-append "mirror://sourceforge/samplv1/samplv1/" version
1364 "/samplv1-" version ".tar.gz"))
1365 (sha256
1366 (base32
2a5d08da 1367 "0g67vm9ilmq5nlvk0f3abia9pbinr4ck5v4mll6igni1rxz2n7wk"))))
18675264
RW
1368 (build-system gnu-build-system)
1369 (arguments
1370 `(#:tests? #f ; There are no tests.
1371 #:configure-flags
1372 '("CXXFLAGS=-std=gnu++11")))
1373 (inputs
1374 `(("jack" ,jack-1)
1375 ("lv2" ,lv2)
1376 ("libsndfile" ,libsndfile)
1377 ("alsa-lib" ,alsa-lib)
92b70c6f 1378 ("non-session-manager" ,non-session-manager)
18675264
RW
1379 ("liblo" ,liblo)
1380 ("qtbase" ,qtbase)))
1381 (native-inputs
1382 `(("pkg-config" ,pkg-config)
1383 ("qttools" ,qttools)))
1384 (home-page "http://samplv1.sourceforge.net")
1385 (synopsis "Polyphonic sampler synthesizer with stereo effects")
1386 (description
1387 "Samplv1 is an old-school polyphonic sampler synthesizer with stereo
1388effects.")
1389 (license license:gpl2+)))
1390
2702e12e
RW
1391(define-public padthv1
1392 (package
1393 (name "padthv1")
4503b187 1394 (version "0.9.0")
2702e12e
RW
1395 (source (origin
1396 (method url-fetch)
1397 (uri
1398 (string-append "mirror://sourceforge/padthv1/padthv1/" version
1399 "/padthv1-" version ".tar.gz"))
1400 (sha256
1401 (base32
4503b187 1402 "0c519qk2g0dk8gqf9ywqfp7dnr4b25lsnxxbf2l1spnnvf8nysvh"))))
2702e12e
RW
1403 (build-system gnu-build-system)
1404 (arguments
1405 `(#:tests? #f ; There are no tests.
1406 #:configure-flags
1407 '("CXXFLAGS=-std=gnu++11")))
1408 (inputs
1409 `(("jack" ,jack-1)
1410 ("lv2" ,lv2)
1411 ("alsa-lib" ,alsa-lib)
1412 ("non-session-manager" ,non-session-manager)
1413 ("liblo" ,liblo)
1414 ("fftw" ,fftw)
1415 ("qtbase" ,qtbase)))
1416 (native-inputs
1417 `(("pkg-config" ,pkg-config)
1418 ("qttools" ,qttools)))
1419 (home-page "http://padthv1.sourceforge.net")
1420 (synopsis "Polyphonic additive synthesizer")
1421 (description
1422 "Padthv1 is an old-school polyphonic additive synthesizer with stereo
1423effects. Padthv1 is based on the PADsynth algorithm by Paul Nasca, as a
1424special variant of additive synthesis.")
1425 (license license:gpl2+)))
1426
2bb00612
RW
1427(define-public amsynth
1428 (package
1429 (name "amsynth")
7e0befd4 1430 (version "1.7.1")
2bb00612
RW
1431 (source
1432 (origin
1433 (method url-fetch)
1434 (uri (string-append "https://github.com/amsynth/amsynth/releases/"
1435 "download/release-" version
1436 "/amsynth-" version ".tar.bz2"))
1437 (sha256
1438 (base32
7e0befd4 1439 "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
2bb00612
RW
1440 (build-system gnu-build-system)
1441 (arguments
1442 `(#:phases
1443 (modify-phases %standard-phases
1444 (add-before 'configure 'set-flags
1445 (lambda _
1446 ;; Compile with C++11, required by gtkmm.
1447 (setenv "CXXFLAGS" "-std=c++11")
1448 #t)))))
1449 (inputs
1450 `(("alsa-lib" ,alsa-lib)
1451 ("jack" ,jack-1)
1452 ("lv2" ,lv2)
7175f4c2 1453 ("lash" ,lash)
2bb00612
RW
1454 ("libsndfile" ,libsndfile)
1455 ("gtk+" ,gtk+-2)
1456 ("gtkmm" ,gtkmm-2)))
1457 (native-inputs
7e0befd4
RW
1458 `(("pkg-config" ,pkg-config)
1459 ("intltool" ,intltool)))
2bb00612
RW
1460 (home-page "http://amsynth.github.io")
1461 (synopsis "Analog modeling synthesizer")
1462 (description
1463 "amsynth is an easy-to-use software synthesizer with a classic
1464subtractive synthesizer topology. Its features include: dual
1465oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct
1466resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato
1467keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO
1468which can modulate the oscillators, filter, and amplitude; distortion and
1469reverb effects.")
1470 (license license:gpl2+)))
b095e762 1471
ec8da0e2
RW
1472(define-public setbfree
1473 (package
1474 (name "setbfree")
7cc72e38 1475 (version "0.8.7")
ec8da0e2 1476 (source (origin
e0674840
TGR
1477 (method git-fetch)
1478 (uri (git-reference
1479 (url "https://github.com/pantherb/setBfree")
1480 (commit (string-append "v" version))))
1481 (file-name (git-file-name name version))
ec8da0e2
RW
1482 (sha256
1483 (base32
7cc72e38 1484 "0r2i8cp0gfzqp6scrxwwf7pn7lk2j9kmf8cx7bqjvgfyn251dw3j"))))
ec8da0e2
RW
1485 (build-system gnu-build-system)
1486 (arguments
1487 `(#:tests? #f ; no "check" target
1488 #:make-flags
1489 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1490 (string-append "FONTFILE="
1491 (assoc-ref %build-inputs "font-bitstream-vera")
b42d4508
RW
1492 "/share/fonts/truetype/VeraBd.ttf")
1493 ;; Disable unsupported optimization flags on non-x86
1494 ,@(let ((system (or (%current-target-system)
1495 (%current-system))))
1496 (if (or (string-prefix? "x86_64" system)
1497 (string-prefix? "i686" system))
1498 '()
1499 '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
ec8da0e2
RW
1500 #:phases
1501 (modify-phases %standard-phases
1502 (add-before 'build 'set-CC-variable
1503 (lambda _ (setenv "CC" "gcc") #t))
1504 (delete 'configure))))
1505 (inputs
1506 `(("jack" ,jack-1)
1507 ("lv2" ,lv2)
1508 ("zita-convolver" ,zita-convolver)
1509 ("glu" ,glu)
1510 ("ftgl" ,ftgl)
1511 ("font-bitstream-vera" ,font-bitstream-vera)))
1512 (native-inputs
1513 `(("help2man" ,help2man)
1514 ("pkg-config" ,pkg-config)))
1515 (home-page "http://setbfree.org")
1516 (synopsis "Tonewheel organ")
1517 (description
1518 "setBfree is a MIDI-controlled, software synthesizer designed to imitate
1519the sound and properties of the electromechanical organs and sound
1520modification devices that brought world-wide fame to the names and products of
1521Laurens Hammond and Don Leslie.")
1522 (license license:gpl2+)))
1523
770305f4
RW
1524(define-public beast
1525 (package
1526 (name "beast")
1527 (version "0.10.0")
1528 (source (origin
1529 (method url-fetch)
1530 (uri (string-append "https://testbit.eu/pub/dists/beast/beast-"
1531 version ".tar.xz"))
1532 (sha256
1533 (base32
1534 "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn"))))
1535 (build-system gnu-build-system)
844f4f6e
EF
1536 (arguments
1537 '(#:parallel-build? #f)) ; Race conditions cause build failures
770305f4
RW
1538 (inputs
1539 `(("rapicorn" ,rapicorn)
1540 ("guile" ,guile-1.8)
1541 ("python" ,python-2)
770305f4
RW
1542 ("libgnomecanvas" ,libgnomecanvas)
1543 ("libogg" ,libogg)
1544 ("libmad" ,libmad)
1545 ("flac" ,flac)
1546 ("alsa-lib" ,alsa-lib)
1547 ("libvorbis" ,libvorbis)
b94a6ca0 1548 ("gettext" ,gettext-minimal)))
770305f4
RW
1549 (native-inputs
1550 `(("pkg-config" ,pkg-config)
1551 ("glib:bin" ,glib "bin")
f2516de2 1552 ("cython" ,python2-cython)
770305f4
RW
1553 ("perl" ,perl)
1554 ("perl-xml-parser" ,perl-xml-parser)))
1555 (home-page "https://testbit.eu/wiki/Beast_Home")
1556 (synopsis "Music composition and modular synthesis environment")
1557 (description
1558 "Beast is a music composition and modular synthesis application. It
1559supports a wide range of standards in the field, such as MIDI, various audio
1560file formats and LADSPA modules. It allows for multitrack editing, real-time
1561synthesis, 32bit audio rendering, precise timing down to sample granularity,
1562on-demand and partial loading of wave files, on the fly decoding, stereo
1563mixing, FFT scopes, MIDI automation and full scriptability in Scheme.")
1564 (license license:gpl3+)))
1565
96250294
RW
1566(define-public bristol
1567 (package
1568 (name "bristol")
1569 (version "0.60.11")
1570 (source (origin
1571 (method url-fetch)
1572 (uri (string-append "mirror://sourceforge/bristol/bristol/"
1573 (version-major+minor version)
1574 "/bristol-" version ".tar.gz"))
1575 (sha256
1576 (base32
1577 "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
1578 (build-system gnu-build-system)
18ef998b
RW
1579 (arguments
1580 `(#:phases
1581 (modify-phases %standard-phases
1582 (add-after 'unpack 'remove-sse-flags
1583 (lambda* (#:key system #:allow-other-keys)
1584 (when (not (or (string-prefix? "x86_64" system)
1585 (string-prefix? "i686" system)))
1586 (substitute* "bristol/Makefile.in"
1587 (("-msse -mfpmath=sse") "")))
73124d34 1588 #t))
bd0c6231
RW
1589 ;; alsa-lib 1.1.x no longer provides iatomic.h. That's okay because
1590 ;; bristol actually doesn't use it.
1591 (add-after 'unpack 'do-not-use-alsa-iatomic
1592 (lambda _
1593 (substitute* "libbristolaudio/audioEngineJack.c"
1594 (("#include <alsa/iatomic.h>") ""))
1595 #t))
73124d34
RW
1596 ;; We know that Bristol has been linked with JACK and we don't have
1597 ;; ldd, so we can just skip this check.
1598 (add-after 'unpack 'do-not-grep-for-jack
1599 (lambda _
1600 (substitute* "bin/startBristol.in"
1601 (("ldd `which bristol` | grep jack") "echo guix"))
18ef998b 1602 #t)))))
96250294
RW
1603 (inputs
1604 `(("alsa-lib" ,alsa-lib)
1605 ("jack" ,jack-1)
1606 ("liblo" ,liblo)
1607 ("libx11" ,libx11)))
1608 (native-inputs
1609 `(("pkg-config" ,pkg-config)))
1610 (home-page "http://bristol.sourceforge.net/")
1611 (synopsis "Synthesizer emulator")
1612 (description
1613 "Bristol is an emulation package for a number of different 'classic'
1614synthesizers including additive and subtractive and a few organs. The
1615application consists of the engine, which is called bristol, and its own GUI
1616library called brighton that represents all the emulations. There are
1617currently more than twenty different emulations; each does sound different
1618although the author maintains that the quality and accuracy of each emulation
1619is subjective.")
1620 (license license:gpl3+)))
1621
6260d1a8
RW
1622(define-public tuxguitar
1623 (package
1624 (name "tuxguitar")
53c475d1 1625 (version "1.5")
6260d1a8
RW
1626 (source (origin
1627 (method url-fetch)
1628 (uri (string-append
1629 "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-"
f467c352 1630 version "/tuxguitar-" version "-src.tar.gz"))
6260d1a8
RW
1631 (sha256
1632 (base32
53c475d1 1633 "1yd5wv17sh6i8pkndxayfd6r2k1ccgnc4w3nda3lpniv8cpjzz3k"))
f467c352
RW
1634 (modules '((guix build utils)))
1635 (snippet
750e54ec
RW
1636 '(begin
1637 ;; Delete pre-built classes
1638 (delete-file-recursively "TuxGuitar-android-gdrive/bin")
1639 (delete-file-recursively "TuxGuitar-android-gdrive-gdaa/bin")
1640 #t))))
f467c352 1641 (build-system ant-build-system)
6260d1a8 1642 (arguments
f467c352 1643 `(#:build-target "build"
40f372af 1644 #:jdk ,icedtea-8
f467c352 1645 #:tests? #f ; no tests
6260d1a8 1646 #:phases
5f1c9498 1647 (modify-phases %standard-phases
f467c352
RW
1648 (add-after 'unpack 'enter-dir
1649 (lambda _ (chdir "TuxGuitar-lib") #t))
750e54ec 1650 (add-after 'build 'build-libraries
f467c352 1651 (lambda* (#:key inputs outputs #:allow-other-keys)
750e54ec
RW
1652 (let* ((initial-classpath (getenv "CLASSPATH"))
1653 (build-dir (lambda (dir)
1654 (chdir "..")
1655 (setenv "CLASSPATH"
1656 (string-join (cons initial-classpath
1657 (find-files (getcwd) "\\.jar$"))
1658 ":"))
1659 (chdir dir)
1660 (if (file-exists? "build.xml")
1661 ((assoc-ref %standard-phases 'build)
1662 #:build-target "build")
1663 (begin
1664 ;; Generate default build.xml
1665 ((@@ (guix build ant-build-system) default-build.xml)
1666 (string-append (string-downcase dir) ".jar")
1667 (string-append (assoc-ref outputs "out")
1668 "/share/java"))
1669 ((assoc-ref %standard-phases 'build)))))))
1670 (map build-dir '("TuxGuitar-editor-utils"
1671 "TuxGuitar-ui-toolkit"
1672 "TuxGuitar-ui-toolkit-swt"
1673 "TuxGuitar-awt-graphics")))))
1674 (add-after 'build-libraries 'build-application
f467c352
RW
1675 (lambda _
1676 (chdir "../TuxGuitar")
1677 ((assoc-ref %standard-phases 'build)
1678 #:build-target "build")))
1679 (replace 'install
1680 (lambda* (#:key inputs outputs #:allow-other-keys)
1681 (let* ((out (assoc-ref outputs "out"))
1682 (bin (string-append out "/bin"))
1683 (share (string-append out "/share"))
1684 (lib (string-append share "/java"))
1685 (swt (assoc-ref inputs "java-swt")))
1686 (mkdir-p bin)
f467c352
RW
1687 ;; install all jars
1688 (for-each (lambda (file)
1689 (install-file file lib))
1690 (find-files ".." "\\.jar$"))
750e54ec 1691
f467c352 1692 ;; install all resources
750e54ec
RW
1693 (copy-recursively "share" share)
1694
f467c352
RW
1695 ;; create wrapper
1696 (call-with-output-file (string-append bin "/tuxguitar")
1697 (lambda (port)
1698 (let ((classpath (string-join (append (find-files lib "\\.jar$")
1699 (find-files swt "\\.jar$"))
1700 ":")))
1701 (format
1702 port
1703 (string-append "#!/bin/sh\n"
1704 (which "java")
1705 " -cp " classpath
1706 " -Dtuxguitar.home.path=" out
1707 " -Dtuxguitar.share.path=" out "/share"
1708 " -Dswt.library.path=" swt "/lib"
1709 " org.herac.tuxguitar.app.TGMainSingleton"
1710 " \"$1\" \"$2\"")))))
1711 (chmod (string-append bin "/tuxguitar") #o555)
1712 #t))))))
6260d1a8 1713 (inputs
1ad15c16 1714 `(("java-swt" ,java-swt)))
d4eae3f7 1715 (home-page "http://tuxguitar.com.ar/")
6260d1a8
RW
1716 (synopsis "Multitrack tablature editor and player")
1717 (description
1718 "TuxGuitar is a guitar tablature editor with player support through midi.
1719It can display scores and multitrack tabs. TuxGuitar provides various
1720additional features, including autoscrolling while playing, note duration
1721management, bend/slide/vibrato/hammer-on/pull-off effects, support for
1722tuplets, time signature management, tempo management, gp3/gp4/gp5 import and
1723export.")
1724 (license license:lgpl2.1+)))
2d0fd07b
RW
1725
1726(define-public pd
1727 (package
1728 (name "pd")
037bf4f4 1729 (version "0.47-1")
2d0fd07b
RW
1730 (source (origin
1731 (method url-fetch)
1732 (uri
037bf4f4
RW
1733 (string-append "http://msp.ucsd.edu/Software/pd-"
1734 version ".src.tar.gz"))
2d0fd07b
RW
1735 (sha256
1736 (base32
037bf4f4 1737 "0k5s949kqd7yw97h3m8z81bjz32bis9m4ih8df1z0ymipnafca67"))))
2d0fd07b
RW
1738 (build-system gnu-build-system)
1739 (arguments
1740 `(#:tests? #f ; no "check" target
1741 #:phases
1742 (modify-phases %standard-phases
4712cbb0
RW
1743 (add-before 'configure 'fix-wish-path
1744 (lambda _
1745 (substitute* "src/s_inter.c"
1746 ((" wish ") (string-append " " (which "wish8.6") " ")))
1747 (substitute* "tcl/pd-gui.tcl"
1748 (("exec wish ") (string-append "exec " (which "wish8.6") " ")))
1749 #t))
1750 (add-after 'unpack 'autoconf
8723fe23 1751 (lambda _ (zero? (system* "bash" "./autogen.sh")))))))
2d0fd07b
RW
1752 (native-inputs
1753 `(("autoconf" ,autoconf)
1754 ("automake" ,automake)
1755 ("libtool" ,libtool)
b94a6ca0 1756 ("gettext" ,gettext-minimal)
2d0fd07b
RW
1757 ("pkg-config" ,pkg-config)))
1758 (inputs
1759 `(("tk" ,tk)
1760 ("alsa-lib" ,alsa-lib)
1761 ("jack" ,jack-1)))
1762 (home-page "http://puredata.info")
1763 (synopsis "Visual programming language for artistic performances")
1764 (description
1765 "Pure Data (aka Pd) is a visual programming language. Pd enables
1766musicians, visual artists, performers, researchers, and developers to create
1767software graphically, without writing lines of code. Pd is used to process
1768and generate sound, video, 2D/3D graphics, and interface sensors, input
1769devices, and MIDI. Pd can easily work over local and remote networks to
1770integrate wearable technology, motor systems, lighting rigs, and other
1771equipment. Pd is suitable for learning basic multimedia processing and visual
1772programming methods as well as for realizing complex systems for large-scale
1773projects.")
1774 (license license:bsd-3)))
821664f1 1775
aacb52fb
RW
1776(define-public portmidi
1777 (package
1778 (name "portmidi")
1779 (version "217")
1780 (source (origin
1781 (method url-fetch)
1782 (uri (string-append "mirror://sourceforge/portmedia/portmidi/"
1783 version "/portmidi-src-" version ".zip"))
1784 (sha256
1785 (base32
1786 "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88"))
1787 (patches (list (search-patch "portmidi-modular-build.patch")))))
1788 (build-system cmake-build-system)
1789 (arguments
3def739d
TGR
1790 `(#:tests? #f ; tests cannot be linked
1791 #:build-type "Release" ; needed to have PMALSA set
aacb52fb
RW
1792 #:configure-flags
1793 (list "-DPORTMIDI_ENABLE_JAVA=Off"
a374d9c9
NG
1794 "-DPORTMIDI_ENABLE_TEST=Off") ; tests fail linking
1795 #:phases
1796 (modify-phases %standard-phases
1797 ;; Some packages, e.g., MuseScore, expect "libporttime.so" instead of
1798 ;; "libportmidi.so". Distributions get away with it by creating an
1799 ;; appropriate symlink.
1800 (add-after 'install 'add-porttime
1801 (lambda* (#:key outputs #:allow-other-keys)
1802 (let* ((out (assoc-ref outputs "out"))
1803 (lib (string-append out "/lib")))
1804 (with-directory-excursion lib
1805 (symlink "libportmidi.so" "libporttime.so")))
1806 #t)))))
aacb52fb
RW
1807 (inputs
1808 `(("alsa-lib" ,alsa-lib)))
1809 (native-inputs
1810 `(("unzip" ,unzip)))
1811 (home-page "http://portmedia.sourceforge.net/portmidi/")
1812 (synopsis "Library for MIDI I/O")
1813 (description
1814 "PortMidi is a library supporting real-time input and output of MIDI data
1815using a system-independent interface.")
1816 (license license:expat)))
f65d59fc 1817
38098bf7
RW
1818(define-public portmidi-for-extempore
1819 (package (inherit portmidi)
1820 (name "portmidi-for-extempore")
1821 (version "217")
1822 (source (origin
1823 (method url-fetch)
1824 (uri (string-append "https://github.com/extemporelang/portmidi/"
1825 "archive/" version ".tar.gz"))
1826 (file-name (string-append name "-" version ".tar.gz"))
1827 (sha256
1828 (base32
1829 "0gjikwciyr8kk4y3qiv1pcq58xpgw38ql1m2gs6g0qc1s8sx4235"))))
1830 (build-system cmake-build-system)
1831 (arguments `(#:tests? #f)) ; no tests
1832 (native-inputs '())
39162ee4
RW
1833 ;; Extempore refuses to build on architectures other than x86_64
1834 (supported-systems '("x86_64-linux"))
38098bf7
RW
1835 (home-page "https://github.com/extemporelang/portmidi/")))
1836
f65d59fc
RW
1837(define-public python-pyportmidi
1838 (package
1839 (name "python-pyportmidi")
1840 (version (package-version portmidi))
1841 (source (package-source portmidi))
1842 (build-system python-build-system)
1843 (arguments
1844 `(#:tests? #f ; no tests included
1845 #:phases
1846 (modify-phases %standard-phases
1847 (add-after 'unpack 'enter-dir
1848 (lambda _ (chdir "pm_python") #t))
1849 (add-after 'enter-dir 'fix-setup.py
1850 (lambda _
1851 (substitute* "setup.py"
1852 ;; Use Python 3 syntax
1853 (("print (\".*\")" _ text)
1854 (string-append "print(" text ")\n"))
1855 ;; TODO.txt and CHANGES.txt don't exist
1856 (("CHANGES =.*") "CHANGES = \"\"\n")
1857 (("TODO =.*") "TODO = \"\"\n"))
1858 #t)))))
1859 (inputs
1860 `(("portmidi" ,portmidi)
f2516de2 1861 ("alsa-lib" ,alsa-lib)))
f65d59fc 1862 (native-inputs
f2516de2
HG
1863 `(("python-cython" ,python-cython)
1864 ("unzip" ,unzip)))
f65d59fc
RW
1865 (home-page "http://portmedia.sourceforge.net/portmidi/")
1866 (synopsis "Python bindings to PortMidi")
1867 (description
1868 "This package provides Python bindings to the PortMidi library.")
1869 (license license:expat)))
aacb52fb 1870
821664f1
RW
1871(define-public frescobaldi
1872 (package
1873 (name "frescobaldi")
e40335b2 1874 (version "3.0.0")
821664f1
RW
1875 (source (origin
1876 (method url-fetch)
1877 (uri (string-append
1878 "https://github.com/wbsoft/frescobaldi/releases/download/v"
1879 version "/frescobaldi-" version ".tar.gz"))
1880 (sha256
1881 (base32
e40335b2 1882 "15cqhbjbjikr7ljgiq56bz2gxrr38j8p0f78p2vhyzydaviy9a2z"))))
821664f1 1883 (build-system python-build-system)
a19a6d3a 1884 (arguments `(#:tests? #f)) ; no tests included
821664f1
RW
1885 (inputs
1886 `(("lilypond" ,lilypond)
6855b347 1887 ("portmidi" ,portmidi)
e40335b2 1888 ("python-pyqt" ,python-pyqt)
821664f1 1889 ("python-ly" ,python-ly)
6855b347 1890 ("python-pyportmidi" ,python-pyportmidi)
821664f1 1891 ("poppler" ,poppler)
e40335b2 1892 ("python-poppler-qt5" ,python-poppler-qt5)
821664f1
RW
1893 ("python-sip" ,python-sip)))
1894 (home-page "http://www.frescobaldi.org/")
1895 (synopsis "LilyPond sheet music text editor")
1896 (description
1897 "Frescobaldi is a LilyPond sheet music text editor with syntax
1898highlighting and automatic completion. Among other things, it can render
1899scores next to the source, can capture input from MIDI or read MusicXML and
1900ABC files, has a MIDI player for proof-listening, and includes a documentation
1901browser.")
1902 (license license:gpl2+)))
ddfddb0c 1903
bf76d780
RW
1904(define-public drumstick
1905 (package
1906 (name "drumstick")
7adaf5b5 1907 (version "1.1.1")
bf76d780
RW
1908 (source (origin
1909 (method url-fetch)
1910 (uri (string-append "mirror://sourceforge/drumstick/"
1911 version "/drumstick-" version ".tar.bz2"))
1912 (sha256
1913 (base32
7adaf5b5 1914 "0avwxr6n9ra7narxc5lmkhdqi8ix10gmif8rpd06wp4g9iv46xrn"))))
bf76d780
RW
1915 (build-system cmake-build-system)
1916 (arguments
7adaf5b5 1917 `(#:tests? #f ; no test target
bf76d780
RW
1918 #:configure-flags '("-DLIB_SUFFIX=")
1919 #:phases
1920 (modify-phases %standard-phases
1921 (add-before 'configure 'fix-docbook
1922 (lambda* (#:key inputs #:allow-other-keys)
1923 (substitute* "cmake_admin/CreateManpages.cmake"
1924 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1925 (string-append (assoc-ref inputs "docbook-xsl")
1926 "/xml/xsl/docbook-xsl-"
1927 ,(package-version docbook-xsl)
1928 "/manpages/docbook.xsl")))
1929 #t)))))
1930 (inputs
ca1cab82
EF
1931 `(("qtbase" ,qtbase)
1932 ("qtsvg" ,qtsvg)
7adaf5b5 1933 ("alsa-lib" ,alsa-lib)))
bf76d780
RW
1934 (native-inputs
1935 `(("pkg-config" ,pkg-config)
7adaf5b5 1936 ("libxslt" ,libxslt) ; for xsltproc
bf76d780
RW
1937 ("docbook-xsl" ,docbook-xsl)
1938 ("doxygen" ,doxygen)))
1939 (home-page "http://drumstick.sourceforge.net/")
1940 (synopsis "C++ MIDI library")
1941 (description
1942 "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It
1943includes a C++ wrapper around the ALSA library sequencer interface. A
1944complementary library provides classes for processing SMF (Standard MIDI
1945files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A
1946multiplatform realtime MIDI I/O library is also provided with various output
1947backends, including ALSA, OSS, Network and FluidSynth.")
1948 (license license:gpl2+)))
1949
ddfddb0c
RW
1950(define-public zynaddsubfx
1951 (package
1952 (name "zynaddsubfx")
ceffa180 1953 (version "3.0.3")
ddfddb0c
RW
1954 (source (origin
1955 (method url-fetch)
1956 (uri (string-append
1957 "mirror://sourceforge/zynaddsubfx/zynaddsubfx/"
138e7697 1958 version "/zynaddsubfx-" version ".tar.bz2"))
ddfddb0c
RW
1959 (sha256
1960 (base32
ceffa180 1961 "1hfpiqdm337gl4ynkmmp2qss2m5z8mzqzjrbiyg6w1v4js7l9phi"))))
ddfddb0c 1962 (build-system cmake-build-system)
00dfc97c
RW
1963 (arguments
1964 `(#:phases
1965 (modify-phases %standard-phases
1966 ;; Move SSE compiler optimization flags from generic target to
1967 ;; athlon64 and core2 targets, because otherwise the build would fail
1968 ;; on non-Intel machines.
1969 (add-after 'unpack 'remove-sse-flags-from-generic-target
1970 (lambda _
1971 (substitute* "src/CMakeLists.txt"
1972 (("-msse -msse2 -mfpmath=sse") "")
1973 (("-march=(athlon64|core2)" flag)
1974 (string-append flag " -msse -msse2 -mfpmath=sse")))
1975 #t)))))
ddfddb0c
RW
1976 (inputs
1977 `(("liblo" ,liblo)
1978 ("ntk" ,ntk)
1ea7969f 1979 ("mesa" ,mesa)
ddfddb0c
RW
1980 ("alsa-lib" ,alsa-lib)
1981 ("jack" ,jack-1)
1982 ("fftw" ,fftw)
1983 ("minixml" ,minixml)
1984 ("libxpm" ,libxpm)
1985 ("zlib" ,zlib)))
1986 (native-inputs
1987 `(("pkg-config" ,pkg-config)))
1988 (home-page "http://zynaddsubfx.sf.net/")
1989 (synopsis "Software synthesizer")
1990 (description
1991 "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
1992three synthesizer engines, multitimbral and polyphonic synths, microtonal
1993capabilities, custom envelopes, effects, etc.")
1994 (license license:gpl2)))
c493679f
RW
1995
1996(define-public yoshimi
1997 (package
1998 (name "yoshimi")
2a64c54a 1999 (version "1.5.8.2")
c493679f
RW
2000 (source (origin
2001 (method url-fetch)
2002 (uri (string-append "mirror://sourceforge/yoshimi/"
2003 (version-major+minor version)
2004 "/yoshimi-" version ".tar.bz2"))
2005 (sha256
2006 (base32
2a64c54a 2007 "1kg7d6mnzdwzsqhrf7pmrf1hzgfpbpm5lv8xkaz32wiv391qrnxc"))))
c493679f
RW
2008 (build-system cmake-build-system)
2009 (arguments
2010 `(#:tests? #f ; there are no tests
2011 #:configure-flags
2012 (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR="
2013 (assoc-ref %outputs "out") "/share"))
2014 #:phases
2015 (modify-phases %standard-phases
2016 (add-before 'configure 'enter-dir
2017 (lambda _ (chdir "src") #t))
2018 ;; Move SSE compiler optimization flags from generic target to
2019 ;; athlon64 and core2 targets, because otherwise the build would fail
2020 ;; on non-Intel machines.
2021 (add-after 'unpack 'remove-sse-flags-from-generic-target
2022 (lambda _
2023 (substitute* "src/CMakeLists.txt"
2024 (("-msse -msse2 -mfpmath=sse") "")
2025 (("-march=(athlon64|core2)" flag)
2026 (string-append flag " -msse -msse2 -mfpmath=sse")))
5edc8682 2027 #t)))))
c493679f
RW
2028 (inputs
2029 `(("boost" ,boost)
2030 ("fftwf" ,fftwf)
2031 ("alsa-lib" ,alsa-lib)
2032 ("jack" ,jack-1)
2033 ("fontconfig" ,fontconfig)
2034 ("minixml" ,minixml)
2035 ("mesa" ,mesa)
2036 ("fltk" ,fltk)
2037 ("lv2" ,lv2)
2038 ("readline" ,readline)
2039 ("ncurses" ,ncurses)
2040 ("cairo" ,cairo)
2041 ("zlib" ,zlib)))
2042 (native-inputs
2043 `(("pkg-config" ,pkg-config)))
2044 (home-page "http://yoshimi.sourceforge.net/")
2045 (synopsis "Multi-paradigm software synthesizer")
2046 (description
edfa2eee 2047 "Yoshimi is a fork of ZynAddSubFX, a feature-heavy real-time software
c493679f
RW
2048synthesizer. It offers three synthesizer engines, multitimbral and polyphonic
2049synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi
2050improves on support for JACK features, such as JACK MIDI.")
2051 (license license:gpl2)))
658212eb 2052
e87cb754
RW
2053(define-public libgig
2054 (package
2055 (name "libgig")
2056 (version "4.0.0")
2057 (source (origin
2058 (method url-fetch)
2059 (uri (string-append "http://download.linuxsampler.org/packages/"
2060 "libgig-" version ".tar.bz2"))
2061 (sha256
2062 (base32
2063 "1wr8mwjmqpnyz6bx9757lspiii1zzn8zfbqsvn2ipzpgqkxv6kaz"))))
2064 (build-system gnu-build-system)
2065 (inputs
2066 `(("libuuid" ,util-linux)
2067 ("libsndfile" ,libsndfile)))
2068 (native-inputs
2069 `(("pkg-config" ,pkg-config)))
2070 (home-page "http://linuxsampler.org/libgig/")
2071 (synopsis "C++ library for working with Gigasampler (.gig) files")
2072 (description
2073 "Libgig is a C++ library for loading, modifying existing and creating new
2074Gigasampler (.gig) files and DLS (Downloadable Sounds) Level 1/2 files, KORG
2075sample based instruments (.KSF and .KMP files), SoundFont v2 (.sf2) files and
2076AKAI sampler data. The package includes a couple of command line tools based
2077on the library.")
2078 ;; The library and tools are released under the GPL, except the AKAI
2079 ;; classes which are released under the LGPL.
2080 (license (list license:gpl2+ license:lgpl2.1+))))
2081
a9f55bf2
RW
2082(define-public jack-keyboard
2083 (package
2084 (name "jack-keyboard")
2085 (version "2.5")
2086 (source
2087 (origin
2088 (method url-fetch)
2089 (uri (string-append "mirror://sourceforge/jack-keyboard/jack-keyboard/"
2090 version "/jack-keyboard-" version ".tar.gz"))
2091 (sha256
2092 (base32
2093 "0mzmg8aavybcfdlq2yd9d0vscqd6is5p6jzrgfpfm5j3xdcvh2s3"))))
2094 (build-system gnu-build-system)
2095 (inputs
2096 `(("jack" ,jack-1)
2097 ("lash" ,lash)
2098 ("gtk+" ,gtk+-2)))
2099 (native-inputs
2100 `(("pkg-config" ,pkg-config)))
2101 (home-page "http://jack-keyboard.sourceforge.net/")
2102 (synopsis "Virtual MIDI keyboard")
2103 (description "Jack-keyboard is a virtual MIDI keyboard, a program that
2104allows you to send JACK MIDI events (i.e. play) using your PC keyboard.")
2105 (license license:bsd-2)))
2106
39b33584
RW
2107(define-public jack-capture
2108 (package
2109 (name "jack-capture")
2110 (version "0.9.73")
2111 (source (origin
2112 (method git-fetch)
2113 (uri (git-reference
2114 (url "https://github.com/kmatheussen/jack_capture.git")
2115 (commit version)))
2116 (file-name (string-append name "-" version "-checkout"))
2117 (sha256
2118 (base32
2119 "0jcqky96q8xgya6wqv1p8pj9fkf2wh7ynl67ah7x5bn3basgfclf"))))
2120 (build-system gnu-build-system)
2121 (arguments
2122 `(#:make-flags
2123 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2124 #:tests? #f ; there are none
2125 #:phases
2126 (modify-phases %standard-phases
2127 (delete 'configure))))
2128 (native-inputs
2129 `(("pkg-config" ,pkg-config)
2130 ("which" ,which)))
2131 (inputs
2132 `(("gtk+" ,gtk+-2)
2133 ("jack" ,jack-1)
2134 ("libogg" ,libogg)
2135 ("liblo" ,liblo)
2136 ("lame" ,lame)
2137 ("libsndfile" ,libsndfile)))
2138 (home-page "https://github.com/kmatheussen/jack_capture")
2139 (synopsis "Program for recording sound files with JACK")
2140 (description "This is a program for recording sound files with JACK. It
2141can connect to any JACK port and record the output into a stereo WAV file.")
2142 (license license:gpl2+)))
2143
658212eb
LF
2144(define-public cursynth
2145 (package
2146 (name "cursynth")
2147 (version "1.5")
2148 (source
2149 (origin
2150 (method url-fetch)
2151 (uri (string-append "mirror://gnu/cursynth/cursynth-"
2152 version ".tar.gz"))
2153 (sha256
2154 (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v"))
fc1adab1 2155 (patches (search-patches "cursynth-wave-rand.patch"))))
658212eb
LF
2156 (build-system gnu-build-system)
2157 (native-inputs `(("pkg-config" ,pkg-config)))
2158 ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently
2159 ;; prevents us from using pulseaudio
2160 (inputs `(("ncurses" ,ncurses)
2161 ("alsa" ,alsa-lib)))
6fd52309 2162 (home-page "https://www.gnu.org/software/cursynth/")
658212eb
LF
2163 (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses")
2164 (description "GNU cursynth is a polyphonic synthesizer that runs
2165graphically in the terminal. It is built on a full-featured subtractive
2166synthesis engine. Notes and parameter changes may be entered via MIDI or the
2167computer's keyboard.")
2168 (license license:gpl3+)))
a763ce7d 2169
13edf1b9
RW
2170(define-public aj-snapshot
2171 (package
2172 (name "aj-snapshot")
2216b6f4 2173 (version "0.9.8")
13edf1b9
RW
2174 (source (origin
2175 (method url-fetch)
2176 (uri (string-append "mirror://sourceforge/aj-snapshot/"
2177 "aj-snapshot-" version ".tar.bz2"))
2178 (sha256
2179 (base32
2216b6f4 2180 "0wilky1g2mb88v2z0520s7sw1dsn10iwanc8id5p6z1xsnhg7b6p"))))
13edf1b9
RW
2181 (build-system gnu-build-system)
2182 (inputs
2183 `(("minixml" ,minixml)
2184 ("jack" ,jack-1)
2185 ("alsa-lib" ,alsa-lib)))
2186 (native-inputs
2187 `(("pkg-config" ,pkg-config)))
2188 (home-page "http://aj-snapshot.sourceforge.net/")
2189 (synopsis "Snapshot connections between ALSA and JACK clients")
2190 (description "Aj-snapshot is a small program that can be used to make
2191snapshots of the connections made between JACK and/or ALSA clients. Because
2192JACK can provide both audio and MIDI support to programs, aj-snapshot can
2193store both types of connections for JACK. ALSA, on the other hand, only
2194provides routing facilities for MIDI clients. Aj-snapshot is meant to be used
2195from the command line.")
2196 (license license:gpl3+)))
2197
a763ce7d
RW
2198(define-public qtractor
2199 (package
2200 (name "qtractor")
42639cc9 2201 (version "0.9.1")
a763ce7d
RW
2202 (source (origin
2203 (method url-fetch)
2204 (uri (string-append "http://downloads.sourceforge.net/qtractor/"
2205 "qtractor-" version ".tar.gz"))
2206 (sha256
2207 (base32
42639cc9 2208 "07csbqr7q4m1j0pqg89kn7jdw0snd5lwna5rha0986s4plq4z1qb"))))
a763ce7d 2209 (build-system gnu-build-system)
42639cc9
RW
2210 (arguments
2211 `(#:tests? #f ; no "check" target
2212 #:phases
2213 (modify-phases %standard-phases
2214 (add-after 'unpack 'fix-build-with-qt-5.11
2215 (lambda _
2216 (substitute* "src/qtractorMeter.h"
2217 (("#include <QFrame>" m)
2218 (string-append "#include <QAction>\n" m)))
2219 (substitute* "src/qtractorTrackButton.h"
2220 (("#include <QPushButton>" m)
2221 (string-append "#include <QAction>\n" m)))
2222 #t)))))
a763ce7d 2223 (inputs
523544d3
RW
2224 `(("qt" ,qtbase)
2225 ("qtx11extras" ,qtx11extras)
a763ce7d
RW
2226 ("alsa-lib" ,alsa-lib)
2227 ("jack" ,jack-1)
2228 ("libsndfile" ,libsndfile)
2229 ("ladspa" ,ladspa)
2230 ("lv2" ,lv2)
2231 ("lilv" ,lilv)
2232 ("suil" ,suil)
2233 ("libsamplerate" ,libsamplerate)
2234 ("libvorbis" ,libvorbis)
2235 ("libmad" ,libmad)
2236 ("rubberband" ,rubberband)
2237 ("liblo" ,liblo)
2238 ("zlib" ,zlib)))
2239 (native-inputs
523544d3
RW
2240 `(("pkg-config" ,pkg-config)
2241 ("qttools" ,qttools)))
8071bbbc 2242 (home-page "http://qtractor.org/")
a763ce7d
RW
2243 (synopsis "Audio/MIDI multi-track sequencer")
2244 (description
2245 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
2246JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
2247follows a traditional multi-track tape recorder control paradigm.")
2248 (license license:gpl2+)))
aa0edd3f 2249
849c3d03
RW
2250(define-public ams-lv2
2251 (package
2252 (name "ams-lv2")
f0c5856d 2253 (version "1.2.1")
849c3d03
RW
2254 (source
2255 (origin
2256 (method url-fetch)
2257 (uri (string-append "https://github.com/blablack/ams-lv2/"
2258 "archive/" version ".tar.gz"))
2259 (file-name (string-append name "-" version ".tar.gz"))
2260 (sha256
2261 (base32
f0c5856d 2262 "1xacxyzqcj83g9c1gwfn36gg1c6yi15v7km4vidfidrjzb4x27fq"))))
849c3d03 2263 (build-system waf-build-system)
8a3ce2c7
EF
2264 (arguments
2265 `(#:phases
2266 (modify-phases %standard-phases
2267 (add-after 'unpack 'remove-sse-flags
2268 (lambda* (#:key system #:allow-other-keys)
2269 (when (not (or (string-prefix? "x86_64" system)
2270 (string-prefix? "i686" system)))
2271 (substitute* "wscript"
2272 (("'-msse', '-mfpmath=sse', ") ""))
2273 #t))))
2274 #:tests? #f)) ; no tests
849c3d03
RW
2275 (inputs
2276 `(("lv2" ,lv2)
2277 ("lvtk" ,lvtk)
2278 ("gtkmm" ,gtkmm-2)
2279 ("gtk" ,gtk+-2)
2280 ("cairo" ,cairo)
2281 ("fftw" ,fftw)))
2282 (native-inputs
2283 `(("pkg-config" ,pkg-config)))
2284 (home-page "https://objectivewave.wordpress.com/ams-lv2/")
2285 (synopsis "Port of Alsa Modular Synth internal modules into LV2")
2286 (description "This set of LV2 plugins is a port of the internal modules
2287found in Alsa Modular Synth. These plugins are used to create modular
2288synthesizers and contain: VCO, VCF, VCA, LFO, slew limiter, envelopes, sample
2289and hold, etc.")
2290 (license license:gpl2)))
2291
aed023ff
RW
2292(define-public gxtuner
2293 (package
2294 (name "gxtuner")
f5e0ff0f 2295 (version "2.4")
aed023ff
RW
2296 (source (origin
2297 (method url-fetch)
2298 (uri (string-append "https://github.com/brummer10/gxtuner/"
2299 "archive/v" version ".tar.gz"))
2300 (file-name (string-append name "-" version ".tar.gz"))
2301 (sha256
2302 (base32
f5e0ff0f 2303 "1hn5qjac7qd00v0sp7ijhhc3sb26ks9bni06nngivva21h61xrjr"))))
aed023ff
RW
2304 (build-system gnu-build-system)
2305 (arguments
2306 `(#:make-flags
2307 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2308 (string-append "INCLUDE_L_DIR="
2309 (assoc-ref %build-inputs "zita-resampler")
2310 "/include/"))
2311 #:phases
2312 (modify-phases %standard-phases
2313 (delete 'configure))))
2314 (inputs
f5e0ff0f 2315 `(("gtk+" ,gtk+)
aed023ff
RW
2316 ("jack" ,jack-1)
2317 ("fftwf" ,fftwf)
2318 ("cairo" ,cairo)
2319 ("zita-resampler" ,zita-resampler)))
2320 (native-inputs
2321 `(("pkg-config" ,pkg-config)))
2322 (home-page "https://github.com/brummer10/gxtuner")
2323 (synopsis "Guitar tuner")
2324 (description "GXtuner is a simple guitar tuner for JACK with an
2325analogue-like user interface.")
2326 (license license:gpl2+)))
2327
c2c9e748 2328(define-public mod-host
9f1ac4fa 2329 ;; The last release was in 2014 but since then hundreds of commits have
c2c9e748 2330 ;; been made.
9f1ac4fa
RW
2331 (let ((commit "1726ad06b11323da7e1aaed690ff8aef91f702b5")
2332 (revision "3"))
c2c9e748
RW
2333 (package
2334 (name "mod-host")
2335 (version (string-append "0.10.6-" revision "." (string-take commit 9)))
2336 (source (origin
2337 (method git-fetch)
2338 (uri (git-reference
2339 (url "https://github.com/moddevices/mod-host")
2340 (commit commit)))
2341 (sha256
2342 (base32
9f1ac4fa 2343 "1nrd37c35w6z6ldczgrwmmd9hx1n3zyvcjcgb3mi4cygqdanvspv"))
c2c9e748
RW
2344 (file-name (string-append name "-" version "-checkout"))))
2345 (build-system gnu-build-system)
2346 (arguments
2347 `(#:tests? #f ; no tests included
2348 #:make-flags
2349 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2350 "CC=gcc")
2351 #:phases
2352 (modify-phases %standard-phases
2353 (delete 'configure)
2354 (add-after 'unpack 'fix-jack-installation-directory
2355 (lambda _
2356 ;; Do not attempt to install files to output of "jack" package.
2357 (substitute* "Makefile"
2358 (("\\$\\(shell pkg-config --variable=libdir jack\\)")
2359 "lib"))
2360 #t)))))
2361 (inputs
2362 `(("lilv" ,lilv)
c96cb01a
DC
2363 ("fftw" ,fftw)
2364 ("fftwf" ,fftwf)
c2c9e748
RW
2365 ("lv2" ,lv2)
2366 ("jack" ,jack-1)
2367 ("readline" ,readline)))
2368 (native-inputs
2369 `(("pkg-config" ,pkg-config)
2370 ("python" ,python-2)))
2371 (home-page "https://github.com/moddevices/mod-host")
2372 (synopsis "LV2 host for Jack controllable via socket or command line")
2373 (description "mod-host is an LV2 plugin host for JACK, controllable via
2374socket or command line.")
2375 (license license:gpl3+))))
2376
19d93ef5
SR
2377(define-public curseradio
2378 (let ((commit "1bd4bd0faeec675e0647bac9a100b526cba19f8d")
2379 (revision "1"))
2380 (package
2381 (name "curseradio")
2382 (version (git-version "0" revision commit))
2383 (source (origin
2384 (method git-fetch)
2385 (uri (git-reference
2386 (url "https://github.com/chronitis/curseradio.git")
2387 (commit commit)))
2388 (file-name (git-file-name name version))
2389 (sha256
2390 (base32
2391 "11bf0jnj8h2fxhpdp498189r4s6b47vy4wripv0z4nx7lxajl88i"))))
2392 (build-system python-build-system)
2393 (propagated-inputs
2394 `(("python-lxml" ,python-lxml)
2395 ("python-requests" ,python-requests)
2396 ("python-pyxdg" ,python-pyxdg)
2397 ("mpv" ,mpv)))
2398 (home-page "https://github.com/chronitis/curseradio")
2399 (synopsis "Command-line Internet radio player")
2400 (description "Curseradio is a Curses-based radio player that uses a
2401tune-in sender list from @url{http://opml.radiotime.com}.")
2402 (license license:expat))))
2403
aa0edd3f
AM
2404(define-public pianobar
2405 (package
2406 (name "pianobar")
3999b664 2407 (version "2016.06.02")
aa0edd3f
AM
2408 (source (origin
2409 (method url-fetch)
2410 (uri (string-append "https://github.com/PromyLOPh/"
2411 name "/archive/" version ".tar.gz"))
2412 (file-name (string-append name "-" version ".tar.gz"))
2413 (sha256
2414 (base32
3999b664 2415 "1hi5rr6jcr0kwf4xfz007ndwkjkp287lhwlsgfz6iryqa5n6jzcp"))))
aa0edd3f
AM
2416 (build-system gnu-build-system)
2417 (arguments
2418 `(#:tests? #f ; no tests
2419 #:make-flags (list "CC=gcc" "CFLAGS=-std=c99"
2420 (string-append "PREFIX=" %output))
2421 #:phases (modify-phases %standard-phases
2422 (delete 'configure))))
2423 (inputs
2424 `(("ao" ,ao)
2425 ("curl" ,curl)
2426 ("libgcrypt" ,libgcrypt)
2427 ("json-c" ,json-c)
bb5c508c 2428 ("ffmpeg" ,ffmpeg-3.4)))
aa0edd3f
AM
2429 (native-inputs
2430 `(("pkg-config" ,pkg-config)))
2431 (home-page "http://6xq.net/projects/pianobar/")
2432 (synopsis "Console-based pandora.com player")
2433 (description "pianobar is a console-based music player for the
2434personalized online radio pandora.com. It has configurable keys for playing
2435and managing stations, can be controlled remotely via fifo, and can run
2436event-based scripts for scrobbling, notifications, etc.")
2437 (license license:expat)))
3f7a182d
LF
2438
2439(define-public python-mutagen
2440 (package
2441 (name "python-mutagen")
e39aae4f 2442 (version "1.38")
3f7a182d
LF
2443 (source (origin
2444 (method url-fetch)
2445 (uri (pypi-uri "mutagen" version))
2446 (sha256
2447 (base32
e39aae4f 2448 "0rl7sxn1rcjl48fwga3dqf9f6pzspsny4ngxyf6pp337mrq0z693"))))
3f7a182d 2449 (build-system python-build-system)
4228a79e
LF
2450 (native-inputs
2451 `(("python-pytest" ,python-pytest)))
3f7a182d
LF
2452 (home-page "https://bitbucket.org/lazka/mutagen")
2453 (synopsis "Read and write audio tags")
2454 (description "Mutagen is a Python module to handle audio metadata. It
2455supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
2456Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
2457of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
2458Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
2459APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
2460streams on an individual packet/page level.")
2461 (license license:gpl2))) ; "later version" never mentioned
2462
2463(define-public python2-mutagen
2464 (package-with-python2 python-mutagen))
8975de88
LF
2465
2466(define-public python-musicbrainzngs
2467 (package
2468 (name "python-musicbrainzngs")
daedf34d 2469 (version "0.6")
8975de88
LF
2470 (source (origin
2471 (method url-fetch)
2472 (uri (pypi-uri "musicbrainzngs" version))
2473 (sha256
2474 (base32
daedf34d 2475 "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8"))))
8975de88 2476 (build-system python-build-system)
daedf34d
LF
2477 (arguments
2478 '(;; The tests fail suffer from race conditions:
2479 ;; https://github.com/alastair/python-musicbrainzngs/issues/211
2480 #:tests? #f))
8975de88
LF
2481 (home-page "https://python-musicbrainzngs.readthedocs.org/")
2482 (synopsis "Python bindings for MusicBrainz NGS webservice")
2483 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
2484web service. This library can be used to retrieve music metadata from the
2485MusicBrainz database.")
2486 ;; 'musicbrainzngs/compat.py' is ISC licensed.
2487 (license (list license:bsd-2 license:isc))))
2488
2489(define-public python2-musicbrainzngs
2490 (package-with-python2 python-musicbrainzngs))
e8fee648 2491
a2eab422 2492(define-public python2-pyechonest
e8fee648 2493 (package
a2eab422 2494 (name "python2-pyechonest")
e8fee648
LF
2495 (version "9.0.0")
2496 (source (origin
2497 (method url-fetch)
2498 (uri (pypi-uri "pyechonest" version))
2499 (sha256
2500 (base32
2501 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
2502 (build-system python-build-system)
a2eab422
LF
2503 (arguments
2504 `(;; Python 3 is not supported:
2505 ;; https://github.com/echonest/pyechonest/issues/42
2506 #:python ,python-2))
e8fee648
LF
2507 (home-page "https://github.com/echonest/pyechonest")
2508 (synopsis "Python interface to The Echo Nest APIs")
d3e3468f
LF
2509 (description "Pyechonest is a Python library for the Echo Nest API. With
2510Pyechonest you have Python access to the entire set of API methods including:
e8fee648
LF
2511
2512@enumerate
2513@item artist - search for artists by name, description, or attribute, and get
2514back detailed information about any artist including audio, similar artists,
2515blogs, familiarity, hotttnesss, news, reviews, urls and video.
2516@item song - search songs by artist, title, description, or attribute (tempo,
2517duration, etc) and get detailed information back about each song, such as
2518hotttnesss, audio_summary, or tracks.
2519@item track - upload a track to the Echo Nest and receive summary information
2520about the track including key, duration, mode, tempo, time signature along with
2521detailed track info including timbre, pitch, rhythm and loudness information.
2522@end enumerate\n")
a2eab422 2523 (license license:bsd-3)))
acd7351f
LF
2524
2525(define-public python-pylast
2526 (package
2527 (name "python-pylast")
653f2b92 2528 (version "2.0.0")
acd7351f
LF
2529 (source (origin
2530 (method url-fetch)
2531 (uri (pypi-uri "pylast" version))
2532 (sha256
2533 (base32
653f2b92 2534 "0r9h7g8i8l2mgqjwkda3v6prfbkb2im5kap1az9ppmhjm9i4jkcf"))))
acd7351f 2535 (build-system python-build-system)
653f2b92
RW
2536 ;; Tests require network access. See
2537 ;; https://github.com/pylast/pylast/issues/105
2538 (arguments '(#:tests? #f))
acd7351f
LF
2539 (native-inputs
2540 `(("python-coverage" ,python-coverage)
653f2b92 2541 ("python-pycodestyle" ,python-pycodestyle)
acd7351f
LF
2542 ("python-mock" ,python-mock)
2543 ("python-pep8" ,python-pep8)
2544 ("python-pytest" ,python-pytest)
653f2b92 2545 ("python-flaky" ,python-flaky)
acd7351f
LF
2546 ("python-pyflakes" ,python-pyflakes)
2547 ("python-pyyaml" ,python-pyyaml)))
2548 (propagated-inputs
2549 `(("python-six" ,python-six)))
2550 (home-page "https://github.com/pylast/pylast")
2551 (synopsis "Python interface to Last.fm and Libre.fm")
2552 (description "A Python interface to Last.fm and other API-compatible
2553websites such as Libre.fm.")
5c31f4aa 2554 (license license:asl2.0)))
acd7351f
LF
2555
2556(define-public python2-pylast
5c31f4aa 2557 (package-with-python2 python-pylast))
3bf429af 2558
b0dea60c
SR
2559(define-public instantmusic
2560 (let ((commit "300891d09c703525215fa5a116b9294af1c923c8")
2561 (revision "1"))
2562 (package
2563 (name "instantmusic")
2564 (version (git-version "1.0" revision commit))
2565 (source (origin
2566 (method git-fetch)
2567 (uri (git-reference
2568 (url "https://github.com/yask123/Instant-Music-Downloader.git")
2569 (commit commit)))
2570 (file-name (git-file-name name version))
2571 (sha256
2572 (base32
2573 "0j7qivaa04bpdz3anmgci5833dgiyfqqwq9fdrpl9m68b34gl773"))))
2574 (build-system python-build-system)
2575 (propagated-inputs
2576 `(("python-requests" ,python-requests)
c695fb76 2577 ("eyed3" ,eyed3)
b0dea60c
SR
2578 ("python-beautifulsoup4" ,python-beautifulsoup4)
2579 ("youtube-dl" ,youtube-dl)))
2580 (arguments
2581 '(#:modules ((guix build python-build-system)
2582 (guix build utils)
2583 (srfi srfi-26))
2584 #:phases (modify-phases %standard-phases
2585 (add-before 'build 'change-directory
2586 (lambda _
2587 (chdir "instantmusic-0.1") #t))
2588 (add-before 'check 'fix-file-permissions
2589 (lambda _
2590 ;; Fix some read-only files that would cause a build failure
2591 (for-each (cut chmod <> #o644)
2592 (find-files "instantmusic.egg-info"
2593 "PKG-INFO|.*\\.txt"))
2594 #t)))))
2595 (home-page "http://iyask.me/Instant-Music-Downloader/")
2596 (synopsis "Command-line program to download a song from YouTube")
2597 (description "InstantMusic downloads a song from YouTube in MP3 format.
2598Songs can be searched by artist, name or even by a part of the song text.")
2599 (license license:expat))))
2600
3bf429af
LF
2601(define-public beets
2602 (package
2603 (name "beets")
bbfd188f 2604 (version "1.4.6")
3bf429af
LF
2605 (source (origin
2606 (method url-fetch)
23319ed6 2607 (uri (pypi-uri "beets" version))
3bf429af
LF
2608 (sha256
2609 (base32
bbfd188f 2610 "0l2vfrknwcsm6bn83m7476qrz45qwgxcb5k0h7kn96kr70irn1v2"))))
3bf429af
LF
2611 (build-system python-build-system)
2612 (arguments
0d48ff81 2613 `(#:phases
3bf429af
LF
2614 (modify-phases %standard-phases
2615 (add-after 'unpack 'set-HOME
46fce968
TGR
2616 (lambda _
2617 (setenv "HOME" (string-append (getcwd) "/tmp"))
2618 #t))
36c2c8c8 2619 (replace 'check
46fce968
TGR
2620 (lambda _
2621 (invoke "nosetests" "-v"))))))
3bf429af 2622 (native-inputs
0d48ff81
LF
2623 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2624 ("python-flask" ,python-flask)
2625 ("python-mock" ,python-mock)
2626 ("python-mpd2" ,python-mpd2)
2627 ("python-nose" ,python-nose)
2628 ("python-pathlib" ,python-pathlib)
2629 ("python-pyxdg" ,python-pyxdg)
2630 ("python-pylast" ,python-pylast)
2631 ("python-rarfile" ,python-rarfile)
2632 ("python-responses" ,python-responses)))
3bf429af 2633 ;; TODO: Install optional plugins and dependencies.
b3470031 2634 (inputs
0d48ff81 2635 `(("python-discogs-client" ,python-discogs-client)
0d48ff81
LF
2636 ("python-jellyfish" ,python-jellyfish)
2637 ("python-munkres" ,python-munkres)
2638 ("python-musicbrainzngs" ,python-musicbrainzngs)
2639 ("python-mutagen" ,python-mutagen)
2640 ("python-pyyaml" ,python-pyyaml)
2641 ("python-unidecode" ,python-unidecode)))
3bf429af
LF
2642 (home-page "http://beets.io")
2643 (synopsis "Music organizer")
2644 (description "The purpose of beets is to get your music collection right
2645once and for all. It catalogs your collection, automatically improving its
2646metadata as it goes using the MusicBrainz database. Then it provides a variety
2647of tools for manipulating and accessing your music.")
2648 (license license:expat)))
21d18113
KY
2649
2650(define-public milkytracker
2651 (package
2652 (name "milkytracker")
b7e2fcf0 2653 (version "1.02.00")
21d18113
KY
2654 (source (origin
2655 (method url-fetch)
e3b2e943 2656 (uri (string-append "https://github.com/milkytracker/"
1faf081b
KK
2657 "MilkyTracker/archive/v"
2658 version ".tar.gz"))
e3b2e943 2659 (file-name (string-append name "-" version ".tar.gz"))
21d18113
KY
2660 (sha256
2661 (base32
b7e2fcf0 2662 "08v0l4ipvvwkwv4ywkc6c8a6xnpkyb02anj36w8q6gikxrs6xjvb"))
e3b2e943
KK
2663 (modules '((guix build utils)))
2664 ;; Remove non-FSDG compliant sample songs.
2665 (snippet
2666 '(begin
2667 (delete-file-recursively "resources/music")
2668 (substitute* "CMakeLists.txt"
6cbee49d
MW
2669 (("add_subdirectory\\(resources/music\\)") ""))
2670 #t))))
e3b2e943 2671 (build-system cmake-build-system)
21d18113 2672 (arguments
7f2f8345
KK
2673 '(#:tests? #f ; no check target
2674 ;; This flag ensures that MilkyTracker links with the JACK library.
2675 #:configure-flags '("-DCMAKE_CXX_FLAGS=-ljack")))
21d18113
KY
2676 (inputs
2677 `(("alsa-lib" ,alsa-lib)
2678 ("jack" ,jack-1)
e3b2e943 2679 ("sdl" ,sdl2)
21d18113
KY
2680 ("zlib" ,zlib)))
2681 (native-inputs
2682 `(("pkg-config" ,pkg-config)))
2683 (synopsis "Music tracker for working with .MOD/.XM module files")
2684 (description "MilkyTracker is a music application for creating .MOD and .XM
2685module files. It attempts to recreate the module replay and user experience of
2686the popular DOS program Fasttracker II, with special playback modes available
2687for improved Amiga ProTracker 2/3 compatibility.")
1b35fea1 2688 (home-page "http://milkytracker.titandemo.org/")
21d18113
KY
2689 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2690 (license (list license:bsd-3 license:gpl3+))))
13416a10 2691
89bcf3fc
KK
2692(define-public schismtracker
2693 (package
2694 (name "schismtracker")
3fe43df7 2695 (version "20180513")
89bcf3fc
KK
2696 (source (origin
2697 (method url-fetch)
2698 (uri (string-append
2699 "https://github.com/" name "/" name "/archive/"
2700 version ".tar.gz"))
2701 (file-name (string-append name "-" version ".tar.gz"))
2702 (sha256
2703 (base32
3fe43df7 2704 "1yjfd02arb51n0vyv11qgpn6imh7hcqnc3953cbvgwb4cnrswk9f"))
89bcf3fc
KK
2705 (modules '((guix build utils)))
2706 (snippet
2707 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
6cbee49d
MW
2708 `(begin
2709 (substitute* "schism/version.c"
2710 (("Schism Tracker built %s %s.*$")
2711 (string-append "Schism Tracker version " ,version "\");")))
2712 #t))))
89bcf3fc
KK
2713 (build-system gnu-build-system)
2714 (arguments
2715 `(#:phases
2716 (modify-phases %standard-phases
2717 (add-after 'unpack 'autoconf
3fe43df7 2718 (lambda _ (invoke "autoreconf" "-vfi")))
89bcf3fc
KK
2719 (add-before 'configure 'link-libm
2720 (lambda _ (setenv "LIBS" "-lm") #t)))))
2721 (native-inputs
2722 `(("autoconf" ,autoconf)
2723 ("automake" ,automake)
2724 ("python" ,python)))
2725 (inputs
2726 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2727 ("libx11" ,libx11)
2728 ("libxext" ,libxext)
2729 ("sdl" ,sdl)))
2730 (home-page "http://schismtracker.org")
2731 (synopsis "Oldschool sample-based music composition tool")
2732 (description
2733 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2734create high quality music without the requirements of specialized, expensive
2735equipment, and with a unique \"finger feel\" that is difficult to replicate in
2736part. The player is based on a highly modified version of the ModPlug engine,
2737with a number of bugfixes and changes to improve IT playback.")
2738 (license license:gpl2+)))
2739
5beecc32
RW
2740(define-public sooperlooper
2741 (package
2742 (name "sooperlooper")
2743 (version "1.7.3")
2744 (source (origin
2745 (method url-fetch)
2746 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2747 version ".tar.gz"))
2748 (sha256
2749 (base32
2750 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2751 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2752 (build-system gnu-build-system)
2753 (arguments
2754 `(#:make-flags (list "CXXFLAGS=-std=gnu++11")
2755 #:phases
2756 (modify-phases %standard-phases
2757 (add-after 'unpack 'add-sigc++-includes
2758 (lambda* (#:key inputs #:allow-other-keys)
2759 (let ((sig (assoc-ref inputs "libsigc++"))
2760 (xml (assoc-ref inputs "libxml2"))
2761 (cwd (getcwd)))
2762 (setenv "CPATH"
2763 (string-append sig "/include/sigc++-2.0:"
2764 sig "/lib/sigc++-2.0/include:"
2765 xml "/include/libxml2/:"
2766 cwd "/libs/pbd:"
2767 cwd "/libs/midi++")))
2768 (substitute* '("src/control_osc.hpp"
2769 "src/gui/app_frame.hpp"
2770 "src/gui/config_panel.hpp"
2771 "src/gui/keys_panel.hpp"
2772 "src/gui/latency_panel.hpp"
2773 "src/gui/main_panel.hpp"
2774 "src/gui/midi_bind_panel.hpp"
2775 "src/gui/prefs_dialog.hpp")
2776 (("sigc\\+\\+/object.h")
2777 "sigc++/sigc++.h"))
2778 (substitute* '("src/engine.cpp"
2779 "src/gui/latency_panel.cpp"
2780 "src/gui/looper_panel.cpp"
2781 "src/gui/main_panel.cpp")
2782 (("(\\(| )bind " _ pre)
2783 (string-append pre "sigc::bind ")))
2784 #t))
2785 (add-after 'unpack 'fix-xpm-warnings
2786 (lambda _
2787 (substitute* (find-files "." "\\.xpm$")
2788 (("static char") "static const char"))
2789 #t)))))
2790 (inputs
2791 `(("jack" ,jack-1)
2792 ("alsa-lib" ,alsa-lib)
2793 ("wxwidgets" ,wxwidgets-gtk2)
2794 ("libsndfile" ,libsndfile)
2795 ("libsamplerate" ,libsamplerate)
2796 ("liblo" ,liblo)
2797 ("rubberband" ,rubberband)
2798 ("libxml2" ,libxml2)
2799 ("libsigc++" ,libsigc++)
2800 ("ncurses" ,ncurses)))
2801 (native-inputs
2802 `(("pkg-config" ,pkg-config)))
2803 (home-page "http://essej.net/sooperlooper/")
2804 (synopsis "Live looping sampler")
2805 (description
2806 "SooperLooper is a live looping sampler capable of immediate loop
2807recording, overdubbing, multiplying, reversing and more. It allows for
2808multiple simultaneous multi-channel loops limited only by your computer's
2809available memory.")
2810 (license license:gpl2+)))
2811
13416a10
KY
2812(define-public moc
2813 (package
2814 (name "moc")
2fbc004f 2815 (version "2.5.2")
13416a10
KY
2816 (source (origin
2817 (method url-fetch)
2818 (uri (string-append "http://ftp.daper.net/pub/soft/"
2819 name "/stable/"
2820 name "-" version ".tar.bz2"))
2821 (sha256
2822 (base32
2784b35f 2823 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))))
13416a10
KY
2824 (build-system gnu-build-system)
2825 (inputs
2826 `(("alsa-lib" ,alsa-lib)
2827 ("curl" ,curl)
2828 ("faad2" ,faad2)
bb5c508c 2829 ("ffmpeg" ,ffmpeg-3.4)
13416a10
KY
2830 ("file" ,file)
2831 ("jack" ,jack-1)
2832 ("libid3tag" ,libid3tag)
2833 ("libltdl" ,libltdl)
2834 ("libmodplug" ,libmodplug)
2835 ("libmpcdec" ,libmpcdec)
2836 ("libmad" ,libmad)
6beaa5a0
MM
2837 ("libogg" ,libogg)
2838 ("libvorbis" ,libvorbis)
13416a10
KY
2839 ("ncurses" ,ncurses)
2840 ("openssl" ,openssl)
2841 ("sasl" ,cyrus-sasl)
2842 ("speex" ,speex)
2843 ("taglib" ,taglib)
2844 ("wavpack" ,wavpack)
2845 ("zlib" ,zlib)))
2846 (native-inputs
2847 `(("pkg-config" ,pkg-config)))
2848 (synopsis "Console audio player designed to be powerful and easy to use")
2849 (description
2850 "Music on Console is a console audio player that supports many file
2851formats, including most audio formats recognized by FFMpeg.")
2852 (home-page "http://moc.daper.net")
2853 (license license:gpl2+)))
6d3ef286
JF
2854
2855(define-public midicsv
2856 (package
2857 (name "midicsv")
2858 (version "1.1")
2859 (source (origin
2860 (method url-fetch)
2861 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
2862 name "-" version ".tar.gz"))
2863 (sha256
2864 (base32
2865 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
2866 (build-system gnu-build-system)
2867 (arguments
2868 `(#:phases (modify-phases %standard-phases (delete 'configure))
2869 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
2870 (synopsis "Convert MIDI files to and from CSV")
2871 (description
2872 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
2873value file (CSV), which preserves all the information in the MIDI file. The
2874ASCII CSV file may be loaded into a spreadsheet or database application, or
2875processed by a program to transform the MIDI data (for example, to key
2876transpose a composition or extract a track from a multi-track sequence). A
2877CSV file in the format created by midicsv may be converted back into a
2878standard MIDI file with the csvmidi program.")
2879 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
2880 (license license:public-domain)))
49604680
RW
2881
2882(define-public gx-guvnor-lv2
35f909d4
RW
2883 (package
2884 (name "gx-guvnor-lv2")
2885 (version "0.1")
2886 (source (origin
6ac8c78c
RW
2887 (method git-fetch)
2888 (uri (git-reference
2889 (url "https://github.com/brummer10/GxGuvnor.lv2.git")
2890 (commit (string-append "v" version))))
2891 (file-name (string-append name "-" version "-checkout"))
35f909d4
RW
2892 (sha256
2893 (base32
6ac8c78c 2894 "1wa5070j40p7f0b3kr259pzm99xb6cf2badr2capayjvgayd6gnm"))))
35f909d4
RW
2895 (build-system gnu-build-system)
2896 (arguments
2897 `(;; The check target is used only to output a warning.
2898 #:tests? #f
2899 #:make-flags
2900 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
2901 #:phases
2902 (modify-phases %standard-phases
2903 (replace 'configure
2904 (lambda _
2905 (substitute* "Makefile"
6ac8c78c
RW
2906 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
2907 (("install : all") "install :"))
35f909d4
RW
2908 #t)))))
2909 (inputs
2910 `(("lv2" ,lv2)))
2911 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
2912 (synopsis "Overdrive/distortion pedal simulation")
2913 (description "This package provides the LV2 plugin \"GxGuvnor\", a
49604680 2914simulation of an overdrive or distortion pedal for guitars.")
35f909d4 2915 ;; The LICENSE file says GPLv3 but the license headers in the files say
4b359532
RW
2916 ;; GPLv2 or later. The whole project is released under GPLv3 or later
2917 ;; according to https://github.com/brummer10/GxGuvnor.lv2/issues/1
2918 (license license:gpl3+)))
85ae347e
RW
2919
2920(define-public gx-vbass-preamp-lv2
1b74b126
RW
2921 (let ((commit "eb999b0ca0ef4da40a59e458a9ab6e7042b96c99")
2922 (revision "2"))
85ae347e
RW
2923 (package (inherit gx-guvnor-lv2)
2924 (name "gx-vbass-preamp-lv2")
2925 (version (string-append "0-" revision "." (string-take commit 9)))
2926 (source (origin
2927 (method git-fetch)
2928 (uri (git-reference
2929 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
2930 (commit commit)))
2931 (sha256
2932 (base32
1b74b126 2933 "0firap073ldw4nrykkd7jvyyj0jbl1nslxyzjj4kswazp99x7d9h"))
85ae347e 2934 (file-name (string-append name "-" version "-checkout"))))
1b74b126
RW
2935 (inputs
2936 `(("lv2" ,lv2)
2937 ("gtk+" ,gtk+-2)))
2938 (native-inputs
2939 `(("pkg-config" ,pkg-config)))
85ae347e
RW
2940 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
2941 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
2942 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
2943pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
2944Section."))))
cdc7a021
RW
2945
2946(define-public gx-overdriver-lv2
2947 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
2948 (revision "1"))
1b74b126 2949 (package (inherit gx-guvnor-lv2)
cdc7a021
RW
2950 (name "gx-overdriver-lv2")
2951 (version (string-append "0-" revision "." (string-take commit 9)))
2952 (source (origin
2953 (method git-fetch)
2954 (uri (git-reference
2955 (url "https://github.com/brummer10/GxOverDriver.lv2")
2956 (commit commit)))
2957 (sha256
2958 (base32
2959 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
2960 (file-name (string-append name "-" version "-checkout"))))
2961 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
2962 (synopsis "Overdrive effect with level and tone control")
2963 (description "This package provides the LV2 plugin \"GxOverDriver\", an
2964overdrive effect."))))
4d95cd30
RW
2965
2966(define-public gx-tone-mender-lv2
2967 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
2968 (revision "1"))
1b74b126 2969 (package (inherit gx-guvnor-lv2)
4d95cd30
RW
2970 (name "gx-tone-mender-lv2")
2971 (version (string-append "0-" revision "." (string-take commit 9)))
2972 (source (origin
2973 (method git-fetch)
2974 (uri (git-reference
2975 (url "https://github.com/brummer10/GxToneMender.lv2")
2976 (commit commit)))
2977 (sha256
2978 (base32
2979 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
2980 (file-name (string-append name "-" version "-checkout"))))
2981 (home-page "https://github.com/brummer10/GxToneMender.lv2")
2982 (synopsis "Clean boost with a 3-knob tonestack")
2983 (description "This package provides the LV2 plugin \"GxToneMender\", a
2984clean boost effect with a 3-knob tonestack."))))
4d4bfdc2
RW
2985
2986(define-public gx-push-pull-lv2
2987 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
2988 (revision "1"))
1b74b126 2989 (package (inherit gx-guvnor-lv2)
4d4bfdc2
RW
2990 (name "gx-push-pull-lv2")
2991 (version (string-append "0-" revision "." (string-take commit 9)))
2992 (source (origin
2993 (method git-fetch)
2994 (uri (git-reference
2995 (url "https://github.com/brummer10/GxPushPull.lv2")
2996 (commit commit)))
2997 (sha256
2998 (base32
2999 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
3000 (file-name (string-append name "-" version "-checkout"))))
3001 (home-page "https://github.com/brummer10/GxPushPull.lv2")
3002 (synopsis "Octave up push pull transistor fuzz simulation")
3003 (description "This package provides the LV2 plugin \"GxPushPull\", a
3004simulation of a push pull transistor fuzz effect with added high octave."))))
3eb1a964
RW
3005
3006(define-public gx-suppa-tone-bender-lv2
f959991d
RW
3007 (package (inherit gx-guvnor-lv2)
3008 (name "gx-suppa-tone-bender-lv2")
3009 (version "0.1")
3010 (source (origin
48b95a19
RW
3011 (method git-fetch)
3012 (uri (git-reference
3013 (url "https://github.com/brummer10/GxSuppaToneBender.lv2.git")
3014 (commit (string-append "v" version))))
3015 (file-name (string-append name "-" version "-checkout"))
f959991d
RW
3016 (sha256
3017 (base32
48b95a19 3018 "01x6bjmllkmvxfzc5xwdix7w021j26js71awv728cxsmkxgqw0zy"))))
f959991d
RW
3019 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
3020 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
3021 (description "This package provides the LV2 plugin
3eb1a964 3022\"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
f959991d 3023pedal.")))
664f677f
RW
3024
3025(define-public gx-saturator-lv2
d9f65bd3
RW
3026 (let ((commit "605330f432c94b6eb3f8203cbe472befae959532")
3027 (revision "3"))
ad67ca3d 3028 (package (inherit gx-vbass-preamp-lv2)
664f677f
RW
3029 (name "gx-saturator-lv2")
3030 (version (string-append "0-" revision "." (string-take commit 9)))
3031 (source (origin
3032 (method git-fetch)
3033 (uri (git-reference
3034 (url "https://github.com/brummer10/GxSaturator.lv2")
3035 (commit commit)))
3036 (sha256
3037 (base32
d9f65bd3 3038 "1w4nvh0rmxrv3s3hmh4fs74f3hc0jn31v00j769j7v68mqr7kawy"))
664f677f
RW
3039 (file-name (string-append name "-" version "-checkout"))))
3040 (home-page "https://github.com/brummer10/GxSaturator.lv2")
3041 (synopsis "Saturation effect")
3042 (description "This package provides the LV2 plugin \"GxSaturator\", a
3043saturation effect."))))
89412238
RW
3044
3045(define-public gx-hyperion-lv2
4396e9b5
RW
3046 (package (inherit gx-guvnor-lv2)
3047 (name "gx-hyperion-lv2")
3048 (version "0.1")
3049 (source (origin
37519239
RW
3050 (method git-fetch)
3051 (uri (git-reference
3052 (url "https://github.com/brummer10/GxHyperion.lv2.git")
3053 (commit (string-append "v" version))))
3054 (file-name (string-append name "-" version "-checkout"))
4396e9b5
RW
3055 (sha256
3056 (base32
37519239 3057 "1vx79s6s9if117y2g0ppdja2sv2wcny6xcfl3j1z4cipahnildxf"))))
4396e9b5
RW
3058 (home-page "https://github.com/brummer10/GxHyperion.lv2")
3059 (synopsis "Simulation of the Hyperion Fuzz pedal")
3060 (description "This package provides the LV2 plugin \"GxHyperion\", a
3061simulation of the Hyperion Fuzz pedal.")))
32536f00
RW
3062
3063(define-public gx-voodoo-fuzz-lv2
cf44ebeb
RW
3064 (package (inherit gx-guvnor-lv2)
3065 (name "gx-voodoo-fuzz-lv2")
3066 (version "0.1")
3067 (source (origin
d42c6613
RW
3068 (method git-fetch)
3069 (uri (git-reference
3070 (url "https://github.com/brummer10/GxVoodoFuzz.lv2.git")
3071 (commit (string-append "v" version))))
3072 (file-name (string-append name "-" version "-checkout"))
cf44ebeb
RW
3073 (sha256
3074 (base32
d42c6613 3075 "1v0scphivri1fk4hl20j13f92i48mnx1zsil4hgnadsmm4nsfw43"))))
cf44ebeb
RW
3076 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
3077 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
3078 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
32536f00
RW
3079simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
3080Bosstone circuit, followed by the tone control of the FoxToneMachine in
cf44ebeb 3081parallel with a DarkBooster, followed by a volume control.")))
29f63222
RW
3082
3083(define-public gx-super-fuzz-lv2
34a3ecfe
RW
3084 (package (inherit gx-guvnor-lv2)
3085 (name "gx-super-fuzz-lv2")
3086 (version "0.1")
3087 (source (origin
5057535f
RW
3088 (method git-fetch)
3089 (uri (git-reference
3090 (url "https://github.com/brummer10/GxSuperFuzz.lv2.git")
3091 (commit (string-append "v" version))))
3092 (file-name (string-append name "-" version "-checkout"))
34a3ecfe
RW
3093 (sha256
3094 (base32
5057535f 3095 "1jlljd9hlgfflbiizq47lv1xbbgjyx3v835mf24zmh1q5zsw4np4"))))
34a3ecfe
RW
3096 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
3097 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
a6f39d7c 3098 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
29f63222 3099analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
d1e4ad1b 3100pot, which is usually in the housing, is exposed as a control parameter. It
34a3ecfe 3101adjusts the amount of harmonics.")))
40bffdfa
RW
3102
3103(define-public gx-vintage-fuzz-master-lv2
38050923
RW
3104 (package (inherit gx-guvnor-lv2)
3105 (name "gx-vintage-fuzz-master-lv2")
3106 (version "0.1")
3107 (source (origin
0febd673
RW
3108 (method git-fetch)
3109 (uri (git-reference
3110 (url "https://github.com/brummer10/GxVintageFuzzMaster.lv2.git")
3111 (commit (string-append "v" version))))
3112 (file-name (string-append name "-" version "-checkout"))
38050923
RW
3113 (sha256
3114 (base32
0febd673 3115 "02jb211z8rw2qr5r1z5mdxlqgiw6cbc319xpqplvn6k21c59mskv"))))
38050923
RW
3116 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
3117 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
3118 (description "This package provides the LV2 plugin
3119\"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
631f8175
RW
3120
3121(define-public gx-slow-gear-lv2
d921a1f4
RW
3122 (let ((commit "5d37e775b0feef1d82feee94e2a7a2d7e57efe2d")
3123 (revision "3"))
ad67ca3d 3124 (package (inherit gx-vbass-preamp-lv2)
631f8175
RW
3125 (name "gx-slow-gear-lv2")
3126 (version (string-append "0-" revision "." (string-take commit 9)))
3127 (source (origin
3128 (method git-fetch)
3129 (uri (git-reference
3130 (url "https://github.com/brummer10/GxSlowGear.lv2")
3131 (commit commit)))
3132 (sha256
3133 (base32
d921a1f4 3134 "141mz69zkhk3lm54bb6wgpnghb92zm1ig7fv07240cmhydqji1q1"))
631f8175
RW
3135 (file-name (string-append name "-" version "-checkout"))))
3136 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
3137 (synopsis "Slow gear audio effect")
3138 (description "This package provides the LV2 plugin \"GxSlowGear\", a
3139slow gear audio effect to produce volume swells."))))
d75e8f5a
RW
3140
3141(define-public gx-switchless-wah-lv2
cfcef2c2
RW
3142 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
3143 (revision "2"))
1b74b126 3144 (package (inherit gx-guvnor-lv2)
d75e8f5a
RW
3145 (name "gx-switchless-wah-lv2")
3146 (version (string-append "0-" revision "." (string-take commit 9)))
3147 (source (origin
3148 (method git-fetch)
3149 (uri (git-reference
3150 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
3151 (commit commit)))
3152 (sha256
3153 (base32
cfcef2c2 3154 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
d75e8f5a
RW
3155 (file-name (string-append name "-" version "-checkout"))))
3156 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
3157 (synopsis "Wah emulation with switchless activation")
3158 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
3159a simulation of an analog Wah pedal with switchless activation."))))
84d53724
RW
3160
3161(define-public mod-utilities
fe049d21
RW
3162 (let ((commit "80ea3ea9f52fab7f191671f4810bf90fc955a046")
3163 (revision "2"))
84d53724
RW
3164 (package
3165 (name "mod-utilities")
3166 (version (string-append "0-" revision "." (string-take commit 9)))
3167 (source (origin
3168 (method git-fetch)
3169 (uri (git-reference
3170 (url "https://github.com/moddevices/mod-utilities.git")
3171 (commit commit)))
fe049d21 3172 (file-name (string-append name "-" version "-checkout"))
84d53724
RW
3173 (sha256
3174 (base32
fe049d21 3175 "1v55zmzmlg0ka7341x5lsvb44amy17vk27s669ps1basd1bk5s5v"))))
84d53724
RW
3176 (build-system gnu-build-system)
3177 (arguments
3178 `(#:tests? #f ; there are no tests
3179 #:make-flags
3180 (list (string-append "INSTALL_PATH="
3181 (assoc-ref %outputs "out")
fe049d21
RW
3182 "/lib/lv2")
3183 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3184 "CC=gcc")
84d53724
RW
3185 #:phases
3186 (modify-phases %standard-phases
3187 (delete 'configure))))
3188 (inputs
3189 `(("lv2" ,lv2)))
3190 (home-page "https://github.com/moddevices/mod-utilities")
3191 (synopsis "LV2 utility plugins")
3192 (description "This package provides LV2 audio utility plugins, such as
3193filters, crossovers, simple gain plugins without zipper noise, switch box
3194plugins, a switch trigger, a toggle switch, and a peakmeter.")
3195 (license license:gpl2+))))
d3db5efb 3196
951581a2 3197(define-public ingen
19748414
RW
3198 (let ((commit "cc4a4db33f4d126a07a4a498e053c5fb9a883be3")
3199 (revision "2"))
951581a2
RW
3200 (package
3201 (name "ingen")
3202 (version (string-append "0.0.0-" revision "."
3203 (string-take commit 9)))
3204 (source
3205 (origin
3206 (method git-fetch)
3207 (uri (git-reference
0d0252e4 3208 (url "https://git.drobilla.net/ingen.git")
951581a2
RW
3209 (commit commit)))
3210 (file-name (string-append name "-" version "-checkout"))
3211 (sha256
3212 (base32
19748414 3213 "1wg47vjw9djn99gbnsl2bcwj4xhdid61m4wrbn2nlp797flj91ic"))))
951581a2
RW
3214 (build-system waf-build-system)
3215 (arguments
3216 `(#:tests? #f ; no "check" target
3217 #:configure-flags (list "--no-webkit")
3218 #:phases
3219 (modify-phases %standard-phases
3220 (add-after 'unpack 'patch-wscript
3221 (lambda* (#:key outputs #:allow-other-keys)
3222 (let ((out (assoc-ref outputs "out")))
3223 (substitute* "wscript"
3224 ;; FIXME: Our version of lv2specgen.py does not behave as
3225 ;; expected. Maybe this requires a development version of
3226 ;; LV2.
3227 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
3228 ;; Add libraries to RUNPATH.
3229 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
3230 (string-append prefix
3231 "linkflags=[\"-Wl,-rpath="
3232 out "/lib" "\"]," line)))
3233 (substitute* '("src/wscript"
3234 "src/server/wscript")
3235 ;; Add libraries to RUNPATH.
3236 (("bld.env.PTHREAD_LINKFLAGS" line)
3237 (string-append line
3238 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
3239 (substitute* "src/client/wscript"
3240 ;; Add libraries to RUNPATH.
3241 (("^(.+)target.*= 'ingen_client'," line prefix)
3242 (string-append prefix
3243 "linkflags=[\"-Wl,-rpath="
3244 out "/lib" "\"]," line)))
3245 (substitute* "src/gui/wscript"
3246 ;; Add libraries to RUNPATH.
3247 (("^(.+)target.* = 'ingen_gui.*" line prefix)
3248 (string-append prefix
3249 "linkflags=[\"-Wl,-rpath="
3250 out "/lib" "\"]," line))))
3251 #t)))))
3252 (inputs
3253 `(("boost" ,boost)
3254 ("python-rdflib" ,python-rdflib)
3255 ("python" ,python)
3256 ("jack" ,jack-1)
19748414 3257 ("lv2" ,lv2-devel)
951581a2
RW
3258 ("lilv" ,lilv)
3259 ("raul" ,raul-devel)
3260 ("ganv" ,ganv-devel)
3261 ("suil" ,suil)
3262 ("serd" ,serd)
3263 ("sord" ,sord)
3264 ("sratom" ,sratom)
3265 ("gtkmm" ,gtkmm-2)))
3266 (native-inputs
3267 `(("pkg-config" ,pkg-config)
3268 ("python-pygments" ,python-pygments)))
0d0252e4 3269 (home-page "https://drobilla.net/software/ingen")
951581a2
RW
3270 (synopsis "Modular audio processing system")
3271 (description "Ingen is a modular audio processing system for JACK and
3272LV2 based systems. Ingen is built around LV2 technology and a strict
3273separation of engine from user interface. The engine is controlled
3274exclusively through a protocol, and can execute as a headless process, with an
3275in-process GUI, or as an LV2 plugin. The GUI can run as a program which
3276communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
3277communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
3278plugin on any system where Ingen is installed. This allows users to visually
3279develop custom plugins for use in other applications without programming.")
3280 (license license:agpl3+))))
3281
b3410b44
RW
3282(define-public qmidiarp
3283 (package
3284 (name "qmidiarp")
b6313997 3285 (version "0.6.5")
b3410b44
RW
3286 (source (origin
3287 (method url-fetch)
3288 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
3289 version "/qmidiarp-" version ".tar.bz2"))
3290 (sha256
3291 (base32
b6313997 3292 "043yh1p0rrbj1v840y27529m9260g55gvh1km8az4jxy7mns58r2"))))
b3410b44
RW
3293 (build-system gnu-build-system)
3294 (arguments
3295 `(#:configure-flags
3296 (list "--enable-qt5"
3297 "CXXFLAGS=-std=gnu++11")))
3298 (inputs
3299 `(("qtbase" ,qtbase)
3300 ("alsa-lib" ,alsa-lib)
3301 ("jack" ,jack-1)
3302 ("liblo" ,liblo)
3303 ("lv2" ,lv2)))
3304 (native-inputs
3305 `(("pkg-config" ,pkg-config)
3306 ("qttools" ,qttools)))
3307 (home-page "http://qmidiarp.sourceforge.net/")
3308 (synopsis "MIDI arpeggiator")
3309 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
3310sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
3311modules running in parallel.")
3312 (license license:gpl2+)))
3313
ff49437d
RW
3314(define-public qmidiroute
3315 (package
3316 (name "qmidiroute")
3317 (version "0.4.0")
3318 (source (origin
3319 (method url-fetch)
3320 (uri (string-append "mirror://sourceforge/alsamodular/QMidiRoute/"
3321 version "/qmidiroute-" version ".tar.bz2"))
3322 (sha256
3323 (base32
3324 "19v1ppbglgl3z9v7xdqc0k33w71cqq8a7d6ihvfs7iz77dygrih9"))))
3325 (build-system gnu-build-system)
3326 (arguments
3327 `(#:configure-flags
3328 (list "--enable-qt5"
3329 "CXXFLAGS=-std=gnu++11")))
3330 (inputs
3331 `(("qtbase" ,qtbase)
3332 ("alsa-lib" ,alsa-lib)))
3333 (native-inputs
3334 `(("pkg-config" ,pkg-config)
3335 ("qttools" ,qttools)))
3336 (home-page "http://alsamodular.sourceforge.net/")
3337 (synopsis "MIDI event router and filter")
3338 (description "QMidiRoute is a MIDI event router and filter. MIDI note,
3339control change, program change and pitch bend events are logged, and can be
3340filtered, redirected and transformed into other events according to MIDI maps
3341defined as tabs in the main control surface.")
3342 (license license:gpl2+)))
3343
5a66e25c
RW
3344(define-public seq24
3345 (package
3346 (name "seq24")
3347 (version "0.9.3")
3348 (source (origin
3349 (method url-fetch)
3350 (uri (string-append "https://launchpad.net/seq24/trunk/"
3351 version "/+download/seq24-"
3352 version ".tar.bz2"))
3353 (sha256
3354 (base32
3355 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
3356 (patches (search-patches "seq24-rename-mutex.patch"))))
3357 (build-system gnu-build-system)
3358 (arguments
3359 `(#:configure-flags
3360 (list "CXXFLAGS=-std=gnu++11")))
3361 (inputs
3362 `(("gtkmm" ,gtkmm-2)
3363 ("alsa-lib" ,alsa-lib)
3364 ("jack" ,jack-1)
3365 ("lash" ,lash)))
3366 (native-inputs
3367 `(("pkg-config" ,pkg-config)))
3368 (home-page "https://edge.launchpad.net/seq24/")
3369 (synopsis "Real-time MIDI sequencer")
3370 (description "Seq24 is a real-time MIDI sequencer. It was created to
3371provide a very simple interface for editing and playing MIDI loops.")
3372 (license license:gpl2+)))
3373
d3db5efb
LF
3374(define-public python-discogs-client
3375 (package
3376 (name "python-discogs-client")
3377 (version "2.2.1")
3378 (source (origin
3379 (method url-fetch)
3380 (uri (pypi-uri "discogs-client" version))
3381 (sha256
3382 (base32
3383 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
3384 (build-system python-build-system)
3385 (propagated-inputs
3386 `(("python-oauthlib" ,python-oauthlib)
3387 ("python-requests" ,python-requests)))
3388 (native-inputs
3389 `(("python-six" ,python-six)))
3390 (home-page "https://github.com/discogs/discogs_client")
3391 (synopsis "Official Python client for the Discogs API")
3392 (description "This is the official Discogs API client for Python. It enables
3393you to query the Discogs database for information on artists, releases, labels,
3394users, Marketplace listings, and more. It also supports OAuth 1.0a
3395authorization, which allows you to change user data such as profile information,
3396collections and wantlists, inventory, and orders.")
80983df3 3397 (license license:bsd-2)))
d3db5efb
LF
3398
3399(define-public python2-discogs-client
80983df3 3400 (package-with-python2 python-discogs-client))
a4f05b46 3401
3402(define-public libsmf
3403 (package
3404 (name "libsmf")
3405 (version "1.3")
3406 (source
3407 (origin
3408 (method url-fetch)
3409 ;; SF download page says development moved, but the link it points to
3410 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
3411 ;; it but made no release so far (https://github.com/stump/libsmf).
3412 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
3413 version "/libsmf-" version ".tar.gz"))
3414 (sha256
3415 (base32
3416 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
3417 (build-system gnu-build-system)
3418 (outputs '("out"
3419 "static")) ; 88KiB of .a files
3420 (arguments
3421 `(#:phases
3422 (modify-phases %standard-phases
3423 (add-after 'install 'move-static-libraries
3424 (lambda* (#:key outputs #:allow-other-keys)
3425 ;; Move static libraries to the "static" output.
3426 (let* ((out (assoc-ref outputs "out"))
3427 (lib (string-append out "/lib"))
3428 (static (assoc-ref outputs "static"))
3429 (slib (string-append static "/lib")))
3430 (mkdir-p slib)
3431 (for-each (lambda (file)
3432 (install-file file slib)
3433 (delete-file file))
3434 (find-files lib "\\.a$"))
3435 #t))))))
3436 (inputs
3437 `(("readline" ,readline)
3438 ("glib" ,glib)))
3439 (native-inputs
3440 `(("doxygen" ,doxygen)
3441 ("pkg-config" ,pkg-config)))
3442 (home-page "http://libsmf.sourceforge.net/")
3443 (synopsis "Standard MIDI File format library")
3444 (description
3445 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3446conversions between time and pulses, tempo map handling and more. The only dependencies
3447are a C compiler and glib. Full API documentation and examples are included.")
3448 (license license:bsd-2)))
a42619e5
RF
3449
3450(define-public lmms
3451 (package
3452 (name "lmms")
3453 (version "1.1.3")
3454 (source
3455 (origin
3456 (method url-fetch)
3457 (uri (string-append "https://github.com/LMMS/lmms/archive/v"
3458 version ".tar.gz"))
3459 (file-name (string-append name "-" version ".tar.gz"))
3460 (sha256
3461 (base32
3462 "1g76z7ha3hd53vbqaq9n1qg6s3lw8zzaw51iny6y2bz0j1xqwcsr"))))
3463 (build-system cmake-build-system)
3464 (arguments
3465 `(#:tests? #f ; no tests
3466 #:phases
3467 (modify-phases %standard-phases
ab2ccf4c
KK
3468 (add-before 'configure 'set-ldflags
3469 (lambda* (#:key outputs #:allow-other-keys)
3470 (setenv "LDFLAGS"
3471 (string-append
3472 "-Wl,-rpath=\""
3473 (assoc-ref outputs "out") "/lib/lmms"
3474 ":"
3475 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3476 "\""))
3477 #t))
3478 (add-before 'configure 'remove-Werror
3479 (lambda _
3480 (substitute* "CMakeLists.txt"
3481 (("SET\\(WERROR_FLAGS \"\\$\\{WERROR_FLAGS\\} -Werror")
3482 "SET(WERROR_FLAGS \"${WERROR_FLAGS}"))
3483 #t))
3484 (add-before 'reset-gzip-timestamps 'make-manpages-writable
3485 (lambda* (#:key outputs #:allow-other-keys)
3486 (map (lambda (file)
3487 (make-file-writable file))
3488 (find-files (string-append (assoc-ref outputs "out")
3489 "/share/man")
3490 ".*\\.gz$"))
3491 #t)))))
a42619e5
RF
3492 (native-inputs
3493 `(("pkg-config" ,pkg-config)))
3494 (inputs
3495 `(("sdl" ,sdl)
3496 ("qt" ,qt-4)
3497 ("fltk" ,fltk)
3498 ("libogg" ,libogg)
3499 ("libsamplerate" ,libsamplerate)
3500 ("fluidsynth" ,fluidsynth)
3501 ("libvorbis" ,libvorbis)
3502 ("alsa-lib" ,alsa-lib)
3503 ("portaudio" ,portaudio)
3504 ("ladspa" ,ladspa)
3505 ("libsndfile1" ,libsndfile)
3506 ("libxft" ,libxft)
3507 ("freetype2" ,freetype)
3508 ("fftw3f" ,fftwf)))
3509 (home-page "https://lmms.io/")
3510 (synopsis "Music composition tool")
3511 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3512melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3513audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3514 (license license:gpl2+)))
a7a7186c
NG
3515
3516(define-public musescore
3517 (package
3518 (name "musescore")
8418006d 3519 (version "2.3.2")
a7a7186c 3520 (source (origin
545ceac8
NG
3521 (method git-fetch)
3522 (uri (git-reference
3523 (url "https://github.com/musescore/MuseScore.git")
3524 (commit (string-append "v" version))))
3525 (file-name (git-file-name name version))
a7a7186c
NG
3526 (sha256
3527 (base32
8418006d 3528 "0ncv0xfmq87plqa43cm0fpidlwzz1nq5s7h7139llrbc36yp3pr1"))
a7a7186c
NG
3529 (modules '((guix build utils)))
3530 (snippet
3531 ;; Un-bundle OpenSSL and remove unused libraries.
3532 '(begin
3533 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3534 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3535 ""))
3536 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3537 (("#include <openssl/.*") ""))
3538 (for-each delete-file-recursively
3539 '("thirdparty/freetype"
3540 "thirdparty/openssl"
3541 "thirdparty/portmidi"))
3542 #t))))
3543 (build-system gnu-build-system)
3544 (arguments
3545 `(#:make-flags
b3891a25
NG
3546 `(,(string-append "PREFIX=" (assoc-ref %outputs "out"))
3547 "USE_SYSTEM_FREETYPE=ON"
1bfde769 3548 "DOWNLOAD_SOUNDFONT=OFF"
545ceac8
NG
3549 ;; The following is not supported since Qt 5.11. May be removed in
3550 ;; a future release.
1bfde769 3551 "BUILD_WEBKIT=OFF")
a7a7186c
NG
3552 ;; There are tests, but no simple target to run. The command
3553 ;; used to run them is:
3554 ;;
3555 ;; make debug && sudo make installdebug && cd \
3556 ;; build.debug/mtest && make && ctest
3557 ;;
3558 ;; Basically, it requires to start a whole new build process.
3559 ;; So we simply skip them.
3560 #:tests? #f
3561 #:phases
3562 (modify-phases %standard-phases
b3891a25 3563 (delete 'configure))))
a7a7186c
NG
3564 (inputs
3565 `(("alsa-lib" ,alsa-lib)
3566 ("freetype" ,freetype)
3567 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3568 ("jack" ,jack-1)
3569 ("lame" ,lame)
3570 ("libogg" ,libogg)
3571 ("libsndfile" ,libsndfile)
3572 ("libvorbis" ,libvorbis)
3573 ("portaudio" ,portaudio)
b3891a25 3574 ("portmidi" ,portmidi)
a7a7186c
NG
3575 ("pulseaudio" ,pulseaudio)
3576 ("qtbase" ,qtbase)
3577 ("qtdeclarative" ,qtdeclarative)
3578 ("qtscript" ,qtscript)
3579 ("qtsvg" ,qtsvg)
a7a7186c
NG
3580 ("qtxmlpatterns" ,qtxmlpatterns)))
3581 (native-inputs
3582 `(("cmake" ,cmake)
3583 ("pkg-config" ,pkg-config)
3584 ("qttools" ,qttools)))
3585 (synopsis "Music composition and notation software")
3586 (description "MuseScore is a music score typesetter. Its main purpose is
3587the creation of high-quality engraved musical scores in a WYSIWYG environment.
3588
3589It supports unlimited staves, linked parts and part extraction, tablature,
3590MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3591lyrics (multiple verses), fretboard diagrams, and in general everything
3592commonly used in sheet music. Style options and style sheets to change the
3593appearance and layout are provided.
3594
3595MuseScore can also play back scores through the built-in sequencer and SoundFont
3596sample library.")
3597 (home-page "https://musescore.org")
3598 (license license:gpl2)))
2434f5ce 3599
43188faf
RW
3600(define-public muse-sequencer
3601 (package
3602 (name "muse-sequencer")
3603 (version "3.0.0")
3604 (source (origin
3605 (method git-fetch)
3606 (uri (git-reference
3607 (url "https://github.com/muse-sequencer/muse.git")
3608 (commit (string-append "muse_"
3609 (string-map (lambda (c)
3610 (if (char=? c #\.)
3611 #\_ c)) version)))))
3612 (file-name (string-append name "-" version "-checkout"))
3613 (sha256
3614 (base32
3615 "1nninz8qyqlxxjdnrm79y3gr3056pga9l2fsqh674jd3cjvafya3"))))
3616 (build-system cmake-build-system)
3617 (arguments
3618 `(#:tests? #f ; there is no test target
3619 #:configure-flags
3620 (list "-DENABLE_LV2_SUPPLIED=OFF"
3621 "-DENABLE_RTAUDIO=OFF" ; FIXME: not packaged
3622 "-DENABLE_INSTPATCH=OFF" ; FIXME: not packaged
3623 "-DENABLE_VST_NATIVE=OFF")
3624 #:phases
3625 (modify-phases %standard-phases
3626 (add-after 'unpack 'chdir
3627 (lambda _ (chdir "muse3"))))))
3628 (inputs
3629 `(("alsa-lib" ,alsa-lib)
3630 ("lash" ,lash)
3631 ("jack" ,jack-1)
3632 ("liblo" ,liblo)
3633 ("dssi" ,dssi)
3634 ("ladspa" ,ladspa)
3635 ("lv2" ,lv2)
3636 ("lilv" ,lilv)
3637 ("sord" ,sord)
3638 ("libsndfile" ,libsndfile)
3639 ("libsamplerate" ,libsamplerate)
3640 ("fluidsynth" ,fluidsynth)
3641 ("pcre" ,pcre)
3642 ("qtbase" ,qtbase)
3643 ("qtsvg" ,qtsvg)))
3644 (native-inputs
3645 `(("pkg-config" ,pkg-config)
3646 ("qttools" ,qttools)))
3647 (home-page "http://muse-sequencer.org")
3648 (synopsis "MIDI/Audio sequencer")
3649 (description "MusE is a MIDI/Audio sequencer with recording and editing
3650capabilities. Its audio sequencer supports the LADSPA, DSSI, and LV2 audio
3651plugin formats; the MIDI sequencer provides a piano roll, a drum editor, a
3652list view, and a score editor. MusE aims to be a complete multitrack virtual
3653studio.")
3654 (license license:gpl2+)))
3655
2434f5ce
DM
3656(define-public dssi
3657 (package
3658 (name "dssi")
3659 (version "1.1.1")
3660 (source (origin
3661 (method url-fetch)
3662 (uri (string-append
3663 "mirror://sourceforge/dssi/dssi/" version
3664 "/dssi-" version ".tar.gz"))
3665 (sha256
3666 (base32
3667 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3668 (build-system gnu-build-system)
3669 (inputs
3670 `(("alsa-lib" ,alsa-lib)
0e78801a 3671 ("jack" ,jack-1)
2434f5ce
DM
3672 ("ladspa" ,ladspa)
3673 ("libsamplerate" ,libsamplerate)
3674 ("libsndfile" ,libsndfile)
3675 ("liblo" ,liblo)))
3676 (native-inputs
3677 `(("pkg-config" ,pkg-config)))
3678 (synopsis "Audio plugin API for soft synths and effects")
3679 (description "DSSI is a plugin API for software instruments with user
3680interfaces, permitting them to be hosted in-process by audio applications.
3681It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3682towards familiarity with MIDI. The DSSI distribution package contains
3683a JACK/ALSA-sequencer reference host and some plugins as well as the
3684specification and header.")
3685 (home-page "http://dssi.sourceforge.net/")
3686 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3687 ;; The vast majority of examples are in the public domain.
3688 (license (list license:lgpl2.1+ license:gpl2+))))
9bc38f28
DM
3689
3690(define-public rosegarden
3691 (package
3692 (name "rosegarden")
3693 (version "17.04")
3694 (source (origin
3695 (method url-fetch)
3696 (uri (string-append
3697 "mirror://sourceforge/rosegarden/rosegarden/"
3698 version "/rosegarden-" version ".tar.bz2"))
3699 (sha256
3700 (base32
3701 "1khfcj22asdhjh0jvhkqsz200wgmigkhsrcz09ffia5hqm0n32lq"))))
3702 (build-system cmake-build-system)
3703 (arguments
3704 `(#:configure-flags '("-DUSE_QT5=1") ; "-DCMAKE_BUILD_TYPE=Release"
3705 #:phases
3706 (modify-phases %standard-phases
3707 (add-after 'unpack 'patch-tests
3708 (lambda _
3709 (substitute* "CMakeLists.txt"
3710 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
3711 ;; Make tests work.
3712 ((" -fvisibility=hidden") ""))
3713 #t))
3714 (add-after 'unpack 'fix-references
3715 (lambda* (#:key inputs #:allow-other-keys)
3716 (substitute* "src/gui/general/ProjectPackager.cpp"
3717 (("\"flac\\>")
3718 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
3719 (("\"wavpack\\>")
3720 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
3721 (("\"wvunpack\\>")
3722 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
3723 (("\"bash\\>")
3724 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
3725 (("\"tar\\>")
3726 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
3727 (substitute* "src/gui/general/LilyPondProcessor.cpp"
3728 (("\"convert-ly\\>")
3729 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
3730 (("\"lilypond\\>")
3731 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
3732 #t))
3733 (add-after 'unpack 'make-reproducible
3734 (lambda _
3735 ;; Prevent Last-Modified from being written.
3736 ;; The "*.qm" files that are used in locale.qrc would have a new
3737 ;; mtime otherwise that is written into qrc_locale.cpp in the
3738 ;; end - except when we disable it.
3739 (substitute* "src/CMakeLists.txt"
3740 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
3741 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
3742 ;; Extraneous.
3743 ;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
3744 ; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
3745 )
3746 ;; Make hashtable traversal order predicable.
3747 (setenv "QT_RCC_TEST" "1") ; important
3748 #t))
3749 (add-before 'check 'prepare-check
3750 (lambda _
3751 (setenv "QT_QPA_PLATFORM" "offscreen")
3752 ;; Tests create files in $HOME/.local/share/rosegarden .
3753 (mkdir-p "/tmp/foo")
3754 (setenv "HOME" "/tmp/foo")
3755 #t)))))
3756 (inputs
3757 `(("alsa-lib" ,alsa-lib)
3758 ("bash" ,bash)
3759 ("dssi" ,dssi)
3760 ("flac" ,flac)
3761 ("fftwf" ,fftwf)
b94f250e 3762 ("jack" ,jack-1)
9bc38f28
DM
3763 ("ladspa" ,ladspa)
3764 ("liblo" ,liblo)
3765 ("libsamplerate" ,libsamplerate)
3766 ("lilypond" ,lilypond)
3767 ("lrdf" ,lrdf)
3768 ("qtbase" ,qtbase)
3769 ("tar" ,tar)
3770 ("lirc" ,lirc)
3771 ("wavpack" ,wavpack)
3772 ("zlib" ,zlib)))
3773 (native-inputs
3774 `(("pkg-config" ,pkg-config)
3775 ("qtlinguist" ,qttools)))
3776 (synopsis "Music composition and editing environment based around a MIDI
3777sequencer")
3778 (description "Rosegarden is a music composition and editing environment
3779based around a MIDI sequencer that features a rich understanding of music
3780notation and includes basic support for digital audio.")
3781 (home-page "http://www.rosegardenmusic.com/")
3782 (license license:gpl2)))
30655652 3783
643817e4 3784(define-public patchmatrix
2394afa4
RW
3785 ;; There have been no releases for more than a year.
3786 (let ((commit "a0b0b1e791f4574d5abd059cfe1819c71e8b18d5")
3787 (revision "1"))
3788 (package
3789 (name "patchmatrix")
3790 (version (git-version "0.12.0" revision commit))
3791 (source (origin
3792 (method git-fetch)
3793 (uri (git-reference
3794 (url "https://github.com/OpenMusicKontrollers/patchmatrix.git")
3795 (commit commit)))
3796 (file-name (string-append "patchmatrix-" version "-checkout"))
3797 (sha256
3798 (base32
3799 "0pph4ra7aci3rbpqvvr564pi16vxrk448bmvp8985cd9lbjlrp3m"))))
3800 (build-system meson-build-system)
3801 (arguments
3802 '(#:tests? #f ; no test target
3803 #:phases
3804 (modify-phases %standard-phases
3805 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
3806 (lambda* (#:key outputs #:allow-other-keys)
3807 (map make-file-writable
3808 (find-files (assoc-ref outputs "out") ".*\\.gz$"))
3809 #t)))))
3810 (inputs
3811 `(("jack" ,jack-1)
3812 ("lv2" ,lv2)
3813 ("mesa" ,mesa)))
3814 (native-inputs
3815 `(("pkg-config" ,pkg-config)))
3816 (home-page "https://github.com/OpenMusicKontrollers/patchmatrix")
3817 (synopsis "Simple JACK patch bay")
3818 (description "PatchMatrix is a patch bay for the JACK audio connection
643817e4
RW
3819kit. It provides a patch bay in flow matrix style for audio, MIDI, CV, and
3820OSC connections.")
2394afa4 3821 (license license:artistic2.0))))
643817e4 3822
30655652
RW
3823(define-public sorcer
3824 (package
3825 (name "sorcer")
3826 (version "1.1.3")
3827 (source (origin
3828 (method url-fetch)
3829 (uri (string-append "https://github.com/openAVproductions/"
3830 "openAV-Sorcer/archive/release-"
3831 version ".tar.gz"))
3832 (file-name (string-append name "-" version ".tar.gz"))
3833 (sha256
3834 (base32
3835 "07iyqj28wm0xc4arrq893bm12xjpz65db7ynrlmf6w8krg8wjmd0"))))
3836 (build-system cmake-build-system)
3837 (arguments
3838 `(#:tests? #f ; no tests included
3839 #:phases
3840 (modify-phases %standard-phases
e5af1f4a
EF
3841 (add-after 'unpack 'remove-architecture-specific-flags
3842 (lambda _
3843 (substitute* "CMakeLists.txt"
3844 (("-msse2 -mfpmath=sse") ""))
3845 #t))
30655652
RW
3846 (add-after 'unpack 'build-faust-sources
3847 (lambda* (#:key inputs #:allow-other-keys)
3848 (with-directory-excursion "faust"
3849 (delete-file "main.cpp")
3850 (zero? (system* "faust" "-i"
3851 "-a" "lv2synth.cpp"
3852 "-o" "main.cpp" "main.dsp"))))))))
3853 (inputs
3854 `(("boost" ,boost)
3855 ("lv2" ,lv2)
3856 ("ntk" ,ntk)))
3857 (native-inputs
3858 `(("faust" ,faust)
3859 ("pkg-config" ,pkg-config)))
3860 (home-page "http://openavproductions.com/sorcer/")
3861 (synopsis "Wavetable LV2 plugin synth")
3862 (description "Sorcer is a wavetable LV2 plugin synthesizer, targeted at
3863the electronic or dubstep genre.")
3864 (license license:gpl3+)))
60b7ed9c 3865
43925703
PL
3866(define-public libmygpo-qt
3867 (package
3868 (name "libmygpo-qt")
d09e31bd 3869 (version "1.1.0")
43925703
PL
3870 (source (origin
3871 (method url-fetch)
3872 (uri (string-append "http://stefan.derkits.at/files/"
3873 "libmygpo-qt/libmygpo-qt." version ".tar.gz"))
3874 (sha256
3875 (base32
01c48690
PL
3876 "1kg18qrq2rsswgzhl65r3mlyx7kpqg4wwnbp4yiv6svvmadmlxl2"))
3877 (patches (search-patches "libmygpo-qt-fix-qt-5.11.patch"
3878 "libmygpo-qt-missing-qt5-modules.patch"))))
43925703 3879 (build-system cmake-build-system)
43925703
PL
3880 (native-inputs
3881 `(("pkg-config" ,pkg-config)))
3882 (inputs
3883 `(("qt" ,qtbase)))
01c48690
PL
3884 (arguments
3885 `(#:configure-flags '("-DMYGPO_BUILD_TESTS=ON")
3886 ;; TODO: Enable tests when https://github.com/gpodder/gpodder/issues/446
3887 ;; is fixed.
3888 #:tests? #f))
43925703
PL
3889 (home-page "http://wiki.gpodder.org/wiki/Libmygpo-qt")
3890 (synopsis "Qt/C++ library wrapping the gpodder web service")
3891 (description "@code{libmygpo-qt} is a Qt/C++ library wrapping the
3892@url{https://gpodder.net} APIs. It allows applications to discover, manage
3893and track podcasts.")
3894 (license license:lgpl2.1+)))
f7ce2134
RW
3895
3896(define-public sonivox-eas
3897 (package
3898 (name "sonivox-eas")
3899 (version "1.1.0")
3900 (source (origin
3901 (method git-fetch)
3902 (uri (git-reference
3903 (url "https://github.com/pedrolcl/Linux-SonivoxEas.git")
3904 (commit (string-append "v" version))))
3905 (file-name (string-append name "-" version "-checkout"))
3906 (sha256
3907 (base32
3908 "0l9gs00p5g4k4qy6i7nv1mfi2n2wnsycwjrgrh9hxzam4irf2mw2"))))
3909 (build-system cmake-build-system)
3910 (arguments '(#:tests? #f)) ; there are no tests
3911 (inputs
3912 `(("alsa-lib" ,alsa-lib)
3913 ("drumstick" ,drumstick)
3914 ("pulseaudio" ,pulseaudio)
3915 ("qtbase" ,qtbase)))
3916 (native-inputs
3917 `(("pkg-config" ,pkg-config)))
3918 (home-page "https://github.com/pedrolcl/Linux-SonivoxEas")
3919 (synopsis "MIDI synthesizer library")
3920 (description "This project is a real time General MIDI synthesizer based
3921on the Sonivox EAS Synthesizer by Google. It does not need external
3922soundfonts, using embedded samples instead.")
3923 ;; Sonivox is released under the ASL2.0; the rest of the code is under
3924 ;; GPLv2+.
3925 (license (list license:gpl2+ license:asl2.0))))
92b36e3a
RW
3926
3927(define-public whysynth
3928 (package
3929 (name "whysynth")
3930 (version "20170701")
3931 (source (origin
3932 (method url-fetch)
3933 (uri (string-append "http://smbolton.com/whysynth/whysynth-"
3934 version ".tar.bz2"))
3935 (sha256
3936 (base32
3937 "02qbn0hbvn1iym4zxv35b201blg31yjpgh71h8db0j5zls2xc0m6"))))
3938 (build-system gnu-build-system)
3939 (inputs
3940 `(("dssi" ,dssi)
3941 ("liblo" ,liblo)
3942 ("fftwf" ,fftwf)
3943 ("gtk+" ,gtk+-2)
3944 ("ladspa" ,ladspa)
3945 ("alsa-lib" ,alsa-lib)))
3946 (native-inputs
3947 `(("pkg-config" ,pkg-config)))
3948 (home-page "http://smbolton.com/whysynth.html")
3949 (synopsis "DSSI software synthesizer")
3950 (description "WhySynth is a versatile softsynth which operates as a plugin
3951for the DSSI Soft Synth Interface. A brief list of features:
3952
3953@enumerate
3954@item 4 oscillators, 2 filters, 3 LFOs, and 5 envelope generators per voice.
3955@item 11 oscillator modes: minBLEP, wavecycle, chorused wavecycle,
3956 asynchronous granular, three FM modes, waveshaper, noise, PADsynth, and phase
3957 distortion.
3958@item 10 filter modes.
3959@item flexible modulation and mixdown options, plus effects.
3960@end enumerate
3961")
3962 (license license:gpl2+)))
6b445c57 3963
3964(define-public libdiscid
3965 (package
3966 (name "libdiscid")
3967 (version "0.6.2")
3968 (source
3969 (origin
3970 (method url-fetch)
3971 (uri (string-append
3972 "http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/libdiscid-"
3973 version ".tar.gz"))
3974 (sha256
3975 (base32
3976 "1f9irlj3dpb5gyfdnb1m4skbjvx4d4hwiz2152f83m0d9jn47r7r"))))
3977 (arguments `(#:test-target "check"))
3978 (build-system cmake-build-system)
3979 (home-page "https://musicbrainz.org/doc/libdiscid")
3980 (synopsis "Disc id reader library")
3981 (description "libdiscid is a C library for creating MusicBrainz and freedb
3982disc IDs from audio CDs. It reads a CD's table of contents (TOC) and generates
3983an identifier which can be used to lookup the CD at MusicBrainz. Additionally,
3984it provides a submission URL for adding the disc ID to the database and gathers
3985ISRCs and the MCN (=UPC/EAN) from disc.")
3986 (license license:lgpl2.1+)))
1ea29aa0 3987
3988(define-public libmusicbrainz
3989 (package
3990 (name "libmusicbrainz")
3991 (version "5.1.0")
3992 (source
3993 (origin
3994 (method url-fetch)
3995 (uri (string-append
3996 "https://github.com/metabrainz/libmusicbrainz/releases/download/release-"
3997 version "/libmusicbrainz-" version ".tar.gz"))
3998 (sha256
3999 (base32
8c71a52c 4000 "0ikb9igyyk28jm34raxfzkw2qyn4nzzwsymdyprp7cmvi6g2ajb7"))))
1ea29aa0 4001 (build-system cmake-build-system)
4002 (arguments `(#:phases
4003 (modify-phases %standard-phases
4004 (replace 'check
4005 (lambda _
4006 (and
4007 ;; requires network connections
4008 ;; (zero? (system* "tests/mbtest"))
4009 (zero? (system* "tests/ctest"))))))))
4010 (inputs `(("neon" ,neon)
4011 ("libxml2" ,libxml2)))
4012 (native-inputs `(("pkg-config" ,pkg-config)))
4013 (home-page "https://musicbrainz.org/doc/libmusicbrainz")
4014 (synopsis "MusicBrainz client library")
4015 (description "The MusicBrainz Client Library (libmusicbrainz), also known as
4016mb_client, is a development library geared towards developers who wish to add
4017MusicBrainz lookup capabilities to their applications.")
4018 (license license:lgpl2.1+)))
87d1b7b0 4019
b0c2c5ab
LC
4020(define-public perl-musicbrainz-discid
4021 (package
4022 (name "perl-musicbrainz-discid")
4023 (version "0.04")
4024 (source (origin
4025 (method url-fetch)
4026 (uri (string-append
4027 "mirror://cpan/authors/id/N/NJ/NJH/MusicBrainz-DiscID-"
4028 version ".tar.gz"))
4029 (sha256
4030 (base32
4031 "1i4qk1qfcmxdibqkyfjrrjdq2zk42vjcz590qgiyc47fi9p6xx1j"))))
4032 (build-system perl-build-system)
4033 (native-inputs `(("pkg-config" ,pkg-config)
4034 ("which" ,which)))
4035 (inputs `(("libdiscid" ,libdiscid)))
4036 (home-page "https://metacpan.org/release/MusicBrainz-DiscID")
4037 (synopsis "Perl interface to the MusicBrainz libdiscid library")
4038 (description
4039 "The @code{MusicBrainz::DiscID} module is a Perl interface to the
4040MusicBrainz libdiscid library, allowing you to manipulate digital audio
4041compact disc (CDDA) identifiers.")
4042 (license license:gpl2)))
4043
b2961dda
LC
4044(define-public perl-webservice-musicbrainz
4045 (package
4046 (name "perl-webservice-musicbrainz")
4047 (version "1.0.4")
4048 (source (origin
4049 (method url-fetch)
4050 (uri (string-append
4051 "mirror://cpan/authors/id/B/BF/BFAIST/WebService-MusicBrainz-"
4052 version ".tar.gz"))
4053 (sha256
4054 (base32
4055 "182z3xjajk6s7k5xm3kssjy3hqx2qbnq4f8864hma098ryy2ph3a"))))
4056 (build-system perl-build-system)
4057 (arguments
4058 ;; Tests try to connect to http://musicbrainz.org.
4059 '(#:tests? #f))
4060 (native-inputs
4061 `(("perl-module-build" ,perl-module-build)))
4062 (propagated-inputs
4063 `(("perl-mojolicious" ,perl-mojolicious)))
4064 (home-page "https://metacpan.org/release/WebService-MusicBrainz")
4065 (synopsis "Web service API to the MusicBrainz database")
4066 (description
4067 "This module searches the MusicBrainz database through their web service
4068at @code{musicbrainz.org}.")
4069 (license license:perl-license)))
4070
87d1b7b0
PN
4071(define-public clyrics
4072 (package
4073 (name "clyrics")
4074 (version "0.10")
4075 (source
4076 (origin
4077 (method url-fetch)
4078 (uri (string-append
4079 "https://github.com/trizen/clyrics/archive/"
4080 version ".tar.gz"))
4081 (sha256
4082 (base32
4083 "1l0cg26afnjv8cgk0jbiavbyvq55q1djyigzmi526rpcjjwq9jwn"))
4084 (file-name (string-append name "-" version ".tar.gz"))))
4085 (build-system trivial-build-system)
4086 (native-inputs `(("tar" ,tar)
4087 ("gzip" ,gzip)))
4088 (inputs
4089 `(("bash" ,bash) ;for the wrapped program
4090 ("perl" ,perl)
4091 ("perl-www-mechanize" ,perl-www-mechanize)
4092 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
4093 ;; Required or else LWP will fail with "GET https://www.google.com/ ==>
4094 ;; 500 Can't verify SSL peers without knowing which Certificate
4095 ;; Authorities to trust".
4096 ("perl-mozilla-ca" ,perl-mozilla-ca)))
4097 (arguments
4098 `(#:modules ((guix build utils))
4099 #:builder (begin
4100 (use-modules (guix build utils)
4101 (ice-9 match)
4102 (srfi srfi-26))
4103 (let* ((source (assoc-ref %build-inputs "source"))
4104 (tar (assoc-ref %build-inputs "tar"))
4105 (gzip (assoc-ref %build-inputs "gzip"))
4106 (output (assoc-ref %outputs "out")))
4107 (setenv "PATH"
4108 (string-append
4109 (assoc-ref %build-inputs "gzip") "/bin" ":"
4110 (assoc-ref %build-inputs "bash") "/bin" ":"
4111 (assoc-ref %build-inputs "perl") "/bin" ":"))
4112 (invoke (string-append tar "/bin/tar") "xvf"
4113 source)
4114 (chdir ,(string-append "clyrics-" version))
4115 (patch-shebang "clyrics")
4116 (substitute* "clyrics"
4117 (("/usr/share") output))
4118 (install-file "clyrics" (string-append output "/bin"))
4119 (wrap-program (string-append output "/bin/clyrics")
4120 `("PERL5LIB" ":" =
4121 ,(delete
4122 ""
4123 (map (match-lambda
4124 (((? (cut string-prefix? "perl-" <>) name) . dir)
4125 (string-append dir "/lib/perl5/site_perl"))
4126 (_ ""))
4127 %build-inputs))))
4128 (copy-recursively "plugins" (string-append output "/clyrics"))
4129 #t))))
4130 (home-page "https://github.com/trizen/clyrics")
4131 (synopsis "Extensible lyrics fetcher")
4132 (description
4133 "Clyrics is an extensible command-line tool to fetch the lyrics of songs.
4134It can be used in daemon mode along with the Music-on-Console (MOC) and cmus
4135console music players.")
4136 (license license:gpl3+)))
5703380b
PN
4137
4138(define-public demlo
4139 (let ((commit "fe9ec4c8ac2fa995ec18e6ac86d50d46df06ec01")
4140 (revision "0"))
4141 (package
4142 (name "demlo")
4143 (version (git-version "3.8" revision commit))
4144 (source
4145 (origin
4146 (method git-fetch)
4147 (uri (git-reference
4148 (url
4149 "https://gitlab.com/ambrevar/demlo")
4150 (commit commit)))
4151 (file-name (git-file-name name version))
4152 (sha256
4153 (base32
4154 "1afkbqhzn6da7zaf5ab7dvyqj1izqhzprwfb4hw448fllda9bdvk"))))
4155 (build-system go-build-system)
4156 (native-inputs
4157 `(("lua" ,lua)
4158 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
4159 ("go-github-com-mattn-go-colorable" ,go-github-com-mattn-go-colorable)
4160 ("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)
4161 ("go-gitlab-com-ambrevar-damerau" ,go-gitlab-com-ambrevar-damerau)
4162 ("go-gitlab-com-ambrevar-golua-unicode" ,go-gitlab-com-ambrevar-golua-unicode)
4163 ("go-github-com-mgutz-ansi" ,go-github-com-mgutz-ansi)
4164 ("go-github-com-michiwend-gomusicbrainz" ,go-github-com-michiwend-gomusicbrainz)
4165 ("go-github-com-stevedonovan-luar" ,go-github-com-stevedonovan-luar)
4166 ("go-github-com-wtolson-go-taglib" ,go-github-com-wtolson-go-taglib)
4167 ("go-github-com-yookoala-realpath" ,go-github-com-yookoala-realpath)))
4168 (inputs
4169 `(("chromaprint" ,chromaprint)
4170 ("ffmpeg" ,ffmpeg)))
4171 (arguments
4172 `(#:import-path "gitlab.com/ambrevar/demlo"
4173 #:phases
4174 (modify-phases %standard-phases
4175 (add-after 'install 'wrap-program
4176 (lambda* (#:key inputs outputs #:allow-other-keys)
4177 (let ((out (assoc-ref outputs "out"))
4178 (ffmpeg (assoc-ref inputs "ffmpeg"))
4179 (chromaprint (assoc-ref inputs "chromaprint")))
4180 (wrap-program (string-append out "/bin/demlo")
4181 `("XDG_DATA_DIRS" ":" prefix (,out))
4182 `("PATH" ":" prefix
4183 ,(map (lambda (dir)
4184 (string-append dir "/bin:"
4185 dir "/sbin"))
4186 (list ffmpeg chromaprint))))
4187 #t)))
4188 (add-after 'install-source 'install-scripts
4189 (lambda* (#:key outputs #:allow-other-keys)
4190 (let* ((out (assoc-ref outputs "out"))
4191 (root (string-append out "/src/gitlab.com/ambrevar/demlo"))
4192 (xdg-data-dirs (string-append out "/demlo")))
4193 (copy-recursively (string-append root "/actions")
4194 (string-append xdg-data-dirs "/actions"))
4195 (copy-recursively (string-append root "/scripts")
4196 (string-append xdg-data-dirs "/scripts"))
4197 (install-file (string-append root "/config.lua") xdg-data-dirs)
4198 ;; TODO: Test fish completion.
4199 (install-file (string-append root "/completion/demlo.fish")
4200 (string-append out "/share/fish/vendor_completions.d"))
4201 #t))))))
4202 (home-page "https://gitlab.com/ambrevar/demlo")
4203 (synopsis "Dynamic and extensible music library organizer")
4204 (description "Demlo is a music library organizer. It can encode, fix
4205case, change folder hierarchy according to tags or file properties, tag from
4206an online database, copy covers while ignoring duplicates or those below a
4207quality threshold, and much more. It makes it possible to manage your
4208libraries uniformly and dynamically. You can write your own rules to fit your
4209needs best.
4210
4211Demlo can address any of these recurring music library issues (and much more):
4212
4213@itemize
4214@item Fix the lack of folder structure.
4215@item Normalize tags, fix their case, chose which tags to keep and which to
4216discard.
4217@item Handle lossy and lossless audio differently.
4218@item Handle mp3 id3tags hell...
4219@item Handle multiple covers, whether embedded and/or external, resize covers,
4220discard bad quality ones.
4221@end itemize\n")
4222 (license license:expat))))