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