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