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