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