Update some copyright headers
[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>
4a78fd46 11;;; Copyright © 2017 Nils Gillmann <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>
edfa2eee 16;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
6b445c57 17;;; Copyright © 2018 nee <nee.git@hidamari.blue>
b0dea60c 18;;; Copyright © 2018 Stefan Reichör <stefan@xsteve.at>
4715f92e 19;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
b0c2c5ab 20;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org>
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)))
293 (home-page "http://clementine-player.org")
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")
69b4d248 1309 (version "0.9.2")
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
69b4d248 1317 "1r60l286n8y4a4rrlnbc3h7xk4s2pvqykvskls89prxg0lkpz7kl"))))
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")
c95f9f09 1343 (version "0.9.2")
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
c95f9f09 1351 "1z9l43z91d01b9rzam2cj9qmmg6s5y65fjvb83ms4iaa1p0mnwrn"))))
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")
29618d67 1378 (version "0.9.2")
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
29618d67 1386 "0rfcp4v971qfhw1hb43hw12wlxmg2q13l0m1h93pyfi5l4mfjkds"))))
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")
2c59066f 1413 (version "0.9.2")
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
2c59066f 1421 "1alfl0l5qdll0w5lwhrwzj5dina1big1zmjg5imi9h06dzhz51xl"))))
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")
7cc72e38 1494 (version "0.8.7")
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
7cc72e38 1503 "0r2i8cp0gfzqp6scrxwwf7pn7lk2j9kmf8cx7bqjvgfyn251dw3j"))))
ec8da0e2
RW
1504 (build-system gnu-build-system)
1505 (arguments
1506 `(#:tests? #f ; no "check" target
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
1522 (lambda _ (setenv "CC" "gcc") #t))
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")
7adaf5b5 1958 (version "1.1.1")
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
7adaf5b5 1965 "0avwxr6n9ra7narxc5lmkhdqi8ix10gmif8rpd06wp4g9iv46xrn"))))
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")
6ec95a00 2050 (version "1.5.10")
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
6ec95a00 2058 "0mazzn5pc4xnjci3yy1yfsx9l05gkxqzkmscaq1h75jpa7qfsial"))))
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")
cbe23db2 2252 (version "0.9.3")
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
cbe23db2 2259 "1010gvkzdzdk39g1g6wx2j19ls0kdl6l9q51xzk2qik7h2fwxl71"))))
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)
2796 ("jack" ,jack-1)
f1618a0f 2797 ("rtmidi" ,rtmidi)
e3b2e943 2798 ("sdl" ,sdl2)
f1618a0f
KK
2799 ("zlib" ,zlib)
2800 ("zziplib" ,zziplib)))
21d18113
KY
2801 (native-inputs
2802 `(("pkg-config" ,pkg-config)))
2803 (synopsis "Music tracker for working with .MOD/.XM module files")
2804 (description "MilkyTracker is a music application for creating .MOD and .XM
2805module files. It attempts to recreate the module replay and user experience of
2806the popular DOS program Fasttracker II, with special playback modes available
2807for improved Amiga ProTracker 2/3 compatibility.")
1b35fea1 2808 (home-page "http://milkytracker.titandemo.org/")
21d18113
KY
2809 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2810 (license (list license:bsd-3 license:gpl3+))))
13416a10 2811
89bcf3fc
KK
2812(define-public schismtracker
2813 (package
2814 (name "schismtracker")
a8b567f9 2815 (version "20181223")
89bcf3fc 2816 (source (origin
3b9e9415
RW
2817 (method git-fetch)
2818 (uri (git-reference
2819 (url "https://github.com/schismtracker/schismtracker.git")
2820 (commit version)))
2821 (file-name (git-file-name name version))
89bcf3fc
KK
2822 (sha256
2823 (base32
a8b567f9 2824 "18k5j10zq39y2q294avdmar87x93k57wqmq8bpz562hdqki2mz1l"))
89bcf3fc
KK
2825 (modules '((guix build utils)))
2826 (snippet
2827 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
6cbee49d
MW
2828 `(begin
2829 (substitute* "schism/version.c"
2830 (("Schism Tracker built %s %s.*$")
2831 (string-append "Schism Tracker version " ,version "\");")))
2832 #t))))
89bcf3fc
KK
2833 (build-system gnu-build-system)
2834 (arguments
2835 `(#:phases
2836 (modify-phases %standard-phases
89bcf3fc
KK
2837 (add-before 'configure 'link-libm
2838 (lambda _ (setenv "LIBS" "-lm") #t)))))
2839 (native-inputs
2840 `(("autoconf" ,autoconf)
2841 ("automake" ,automake)
2842 ("python" ,python)))
2843 (inputs
2844 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2845 ("libx11" ,libx11)
2846 ("libxext" ,libxext)
2847 ("sdl" ,sdl)))
2848 (home-page "http://schismtracker.org")
2849 (synopsis "Oldschool sample-based music composition tool")
2850 (description
2851 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2852create high quality music without the requirements of specialized, expensive
2853equipment, and with a unique \"finger feel\" that is difficult to replicate in
2854part. The player is based on a highly modified version of the ModPlug engine,
2855with a number of bugfixes and changes to improve IT playback.")
2856 (license license:gpl2+)))
2857
5beecc32
RW
2858(define-public sooperlooper
2859 (package
2860 (name "sooperlooper")
2861 (version "1.7.3")
2862 (source (origin
2863 (method url-fetch)
2864 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2865 version ".tar.gz"))
2866 (sha256
2867 (base32
2868 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2869 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2870 (build-system gnu-build-system)
2871 (arguments
2872 `(#:make-flags (list "CXXFLAGS=-std=gnu++11")
2873 #:phases
2874 (modify-phases %standard-phases
2875 (add-after 'unpack 'add-sigc++-includes
2876 (lambda* (#:key inputs #:allow-other-keys)
2877 (let ((sig (assoc-ref inputs "libsigc++"))
2878 (xml (assoc-ref inputs "libxml2"))
2879 (cwd (getcwd)))
2880 (setenv "CPATH"
2881 (string-append sig "/include/sigc++-2.0:"
2882 sig "/lib/sigc++-2.0/include:"
2883 xml "/include/libxml2/:"
2884 cwd "/libs/pbd:"
2885 cwd "/libs/midi++")))
2886 (substitute* '("src/control_osc.hpp"
2887 "src/gui/app_frame.hpp"
2888 "src/gui/config_panel.hpp"
2889 "src/gui/keys_panel.hpp"
2890 "src/gui/latency_panel.hpp"
2891 "src/gui/main_panel.hpp"
2892 "src/gui/midi_bind_panel.hpp"
2893 "src/gui/prefs_dialog.hpp")
2894 (("sigc\\+\\+/object.h")
2895 "sigc++/sigc++.h"))
2896 (substitute* '("src/engine.cpp"
2897 "src/gui/latency_panel.cpp"
2898 "src/gui/looper_panel.cpp"
2899 "src/gui/main_panel.cpp")
2900 (("(\\(| )bind " _ pre)
2901 (string-append pre "sigc::bind ")))
2902 #t))
2903 (add-after 'unpack 'fix-xpm-warnings
2904 (lambda _
2905 (substitute* (find-files "." "\\.xpm$")
2906 (("static char") "static const char"))
2907 #t)))))
2908 (inputs
2909 `(("jack" ,jack-1)
2910 ("alsa-lib" ,alsa-lib)
2911 ("wxwidgets" ,wxwidgets-gtk2)
2912 ("libsndfile" ,libsndfile)
2913 ("libsamplerate" ,libsamplerate)
2914 ("liblo" ,liblo)
2915 ("rubberband" ,rubberband)
2916 ("libxml2" ,libxml2)
2917 ("libsigc++" ,libsigc++)
2918 ("ncurses" ,ncurses)))
2919 (native-inputs
2920 `(("pkg-config" ,pkg-config)))
2921 (home-page "http://essej.net/sooperlooper/")
2922 (synopsis "Live looping sampler")
2923 (description
2924 "SooperLooper is a live looping sampler capable of immediate loop
2925recording, overdubbing, multiplying, reversing and more. It allows for
2926multiple simultaneous multi-channel loops limited only by your computer's
2927available memory.")
2928 (license license:gpl2+)))
2929
13416a10
KY
2930(define-public moc
2931 (package
2932 (name "moc")
2fbc004f 2933 (version "2.5.2")
13416a10
KY
2934 (source (origin
2935 (method url-fetch)
2936 (uri (string-append "http://ftp.daper.net/pub/soft/"
2937 name "/stable/"
2938 name "-" version ".tar.bz2"))
2939 (sha256
2940 (base32
2784b35f 2941 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))))
13416a10
KY
2942 (build-system gnu-build-system)
2943 (inputs
2944 `(("alsa-lib" ,alsa-lib)
2945 ("curl" ,curl)
2946 ("faad2" ,faad2)
bb5c508c 2947 ("ffmpeg" ,ffmpeg-3.4)
13416a10
KY
2948 ("file" ,file)
2949 ("jack" ,jack-1)
2950 ("libid3tag" ,libid3tag)
2951 ("libltdl" ,libltdl)
2952 ("libmodplug" ,libmodplug)
2953 ("libmpcdec" ,libmpcdec)
2954 ("libmad" ,libmad)
6beaa5a0
MM
2955 ("libogg" ,libogg)
2956 ("libvorbis" ,libvorbis)
13416a10
KY
2957 ("ncurses" ,ncurses)
2958 ("openssl" ,openssl)
2959 ("sasl" ,cyrus-sasl)
2960 ("speex" ,speex)
2961 ("taglib" ,taglib)
2962 ("wavpack" ,wavpack)
2963 ("zlib" ,zlib)))
2964 (native-inputs
2965 `(("pkg-config" ,pkg-config)))
2966 (synopsis "Console audio player designed to be powerful and easy to use")
2967 (description
2968 "Music on Console is a console audio player that supports many file
2969formats, including most audio formats recognized by FFMpeg.")
2970 (home-page "http://moc.daper.net")
2971 (license license:gpl2+)))
6d3ef286
JF
2972
2973(define-public midicsv
2974 (package
2975 (name "midicsv")
2976 (version "1.1")
2977 (source (origin
2978 (method url-fetch)
2979 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
2980 name "-" version ".tar.gz"))
2981 (sha256
2982 (base32
2983 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
2984 (build-system gnu-build-system)
2985 (arguments
2986 `(#:phases (modify-phases %standard-phases (delete 'configure))
2987 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
2988 (synopsis "Convert MIDI files to and from CSV")
2989 (description
2990 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
2991value file (CSV), which preserves all the information in the MIDI file. The
2992ASCII CSV file may be loaded into a spreadsheet or database application, or
2993processed by a program to transform the MIDI data (for example, to key
2994transpose a composition or extract a track from a multi-track sequence). A
2995CSV file in the format created by midicsv may be converted back into a
2996standard MIDI file with the csvmidi program.")
2997 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
2998 (license license:public-domain)))
49604680
RW
2999
3000(define-public gx-guvnor-lv2
35f909d4
RW
3001 (package
3002 (name "gx-guvnor-lv2")
3003 (version "0.1")
3004 (source (origin
6ac8c78c
RW
3005 (method git-fetch)
3006 (uri (git-reference
3007 (url "https://github.com/brummer10/GxGuvnor.lv2.git")
3008 (commit (string-append "v" version))))
3009 (file-name (string-append name "-" version "-checkout"))
35f909d4
RW
3010 (sha256
3011 (base32
6ac8c78c 3012 "1wa5070j40p7f0b3kr259pzm99xb6cf2badr2capayjvgayd6gnm"))))
35f909d4
RW
3013 (build-system gnu-build-system)
3014 (arguments
3015 `(;; The check target is used only to output a warning.
3016 #:tests? #f
3017 #:make-flags
3018 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
3019 #:phases
3020 (modify-phases %standard-phases
3021 (replace 'configure
3022 (lambda _
3023 (substitute* "Makefile"
6ac8c78c
RW
3024 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
3025 (("install : all") "install :"))
35f909d4
RW
3026 #t)))))
3027 (inputs
3028 `(("lv2" ,lv2)))
3029 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
3030 (synopsis "Overdrive/distortion pedal simulation")
3031 (description "This package provides the LV2 plugin \"GxGuvnor\", a
49604680 3032simulation of an overdrive or distortion pedal for guitars.")
35f909d4 3033 ;; The LICENSE file says GPLv3 but the license headers in the files say
4b359532
RW
3034 ;; GPLv2 or later. The whole project is released under GPLv3 or later
3035 ;; according to https://github.com/brummer10/GxGuvnor.lv2/issues/1
3036 (license license:gpl3+)))
85ae347e
RW
3037
3038(define-public gx-vbass-preamp-lv2
1b74b126
RW
3039 (let ((commit "eb999b0ca0ef4da40a59e458a9ab6e7042b96c99")
3040 (revision "2"))
85ae347e
RW
3041 (package (inherit gx-guvnor-lv2)
3042 (name "gx-vbass-preamp-lv2")
3043 (version (string-append "0-" revision "." (string-take commit 9)))
3044 (source (origin
3045 (method git-fetch)
3046 (uri (git-reference
3047 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
3048 (commit commit)))
3049 (sha256
3050 (base32
1b74b126 3051 "0firap073ldw4nrykkd7jvyyj0jbl1nslxyzjj4kswazp99x7d9h"))
85ae347e 3052 (file-name (string-append name "-" version "-checkout"))))
1b74b126
RW
3053 (inputs
3054 `(("lv2" ,lv2)
3055 ("gtk+" ,gtk+-2)))
3056 (native-inputs
3057 `(("pkg-config" ,pkg-config)))
85ae347e
RW
3058 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
3059 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
3060 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
3061pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
3062Section."))))
cdc7a021
RW
3063
3064(define-public gx-overdriver-lv2
3065 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
3066 (revision "1"))
1b74b126 3067 (package (inherit gx-guvnor-lv2)
cdc7a021
RW
3068 (name "gx-overdriver-lv2")
3069 (version (string-append "0-" revision "." (string-take commit 9)))
3070 (source (origin
3071 (method git-fetch)
3072 (uri (git-reference
3073 (url "https://github.com/brummer10/GxOverDriver.lv2")
3074 (commit commit)))
3075 (sha256
3076 (base32
3077 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
3078 (file-name (string-append name "-" version "-checkout"))))
3079 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
3080 (synopsis "Overdrive effect with level and tone control")
3081 (description "This package provides the LV2 plugin \"GxOverDriver\", an
3082overdrive effect."))))
4d95cd30
RW
3083
3084(define-public gx-tone-mender-lv2
3085 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
3086 (revision "1"))
1b74b126 3087 (package (inherit gx-guvnor-lv2)
4d95cd30
RW
3088 (name "gx-tone-mender-lv2")
3089 (version (string-append "0-" revision "." (string-take commit 9)))
3090 (source (origin
3091 (method git-fetch)
3092 (uri (git-reference
3093 (url "https://github.com/brummer10/GxToneMender.lv2")
3094 (commit commit)))
3095 (sha256
3096 (base32
3097 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
3098 (file-name (string-append name "-" version "-checkout"))))
3099 (home-page "https://github.com/brummer10/GxToneMender.lv2")
3100 (synopsis "Clean boost with a 3-knob tonestack")
3101 (description "This package provides the LV2 plugin \"GxToneMender\", a
3102clean boost effect with a 3-knob tonestack."))))
4d4bfdc2
RW
3103
3104(define-public gx-push-pull-lv2
3105 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
3106 (revision "1"))
1b74b126 3107 (package (inherit gx-guvnor-lv2)
4d4bfdc2
RW
3108 (name "gx-push-pull-lv2")
3109 (version (string-append "0-" revision "." (string-take commit 9)))
3110 (source (origin
3111 (method git-fetch)
3112 (uri (git-reference
3113 (url "https://github.com/brummer10/GxPushPull.lv2")
3114 (commit commit)))
3115 (sha256
3116 (base32
3117 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
3118 (file-name (string-append name "-" version "-checkout"))))
3119 (home-page "https://github.com/brummer10/GxPushPull.lv2")
3120 (synopsis "Octave up push pull transistor fuzz simulation")
3121 (description "This package provides the LV2 plugin \"GxPushPull\", a
3122simulation of a push pull transistor fuzz effect with added high octave."))))
3eb1a964
RW
3123
3124(define-public gx-suppa-tone-bender-lv2
f959991d
RW
3125 (package (inherit gx-guvnor-lv2)
3126 (name "gx-suppa-tone-bender-lv2")
3127 (version "0.1")
3128 (source (origin
48b95a19
RW
3129 (method git-fetch)
3130 (uri (git-reference
3131 (url "https://github.com/brummer10/GxSuppaToneBender.lv2.git")
3132 (commit (string-append "v" version))))
3133 (file-name (string-append name "-" version "-checkout"))
f959991d
RW
3134 (sha256
3135 (base32
48b95a19 3136 "01x6bjmllkmvxfzc5xwdix7w021j26js71awv728cxsmkxgqw0zy"))))
f959991d
RW
3137 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
3138 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
3139 (description "This package provides the LV2 plugin
3eb1a964 3140\"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
f959991d 3141pedal.")))
664f677f
RW
3142
3143(define-public gx-saturator-lv2
d9f65bd3
RW
3144 (let ((commit "605330f432c94b6eb3f8203cbe472befae959532")
3145 (revision "3"))
ad67ca3d 3146 (package (inherit gx-vbass-preamp-lv2)
664f677f
RW
3147 (name "gx-saturator-lv2")
3148 (version (string-append "0-" revision "." (string-take commit 9)))
3149 (source (origin
3150 (method git-fetch)
3151 (uri (git-reference
3152 (url "https://github.com/brummer10/GxSaturator.lv2")
3153 (commit commit)))
3154 (sha256
3155 (base32
d9f65bd3 3156 "1w4nvh0rmxrv3s3hmh4fs74f3hc0jn31v00j769j7v68mqr7kawy"))
664f677f
RW
3157 (file-name (string-append name "-" version "-checkout"))))
3158 (home-page "https://github.com/brummer10/GxSaturator.lv2")
3159 (synopsis "Saturation effect")
3160 (description "This package provides the LV2 plugin \"GxSaturator\", a
3161saturation effect."))))
89412238
RW
3162
3163(define-public gx-hyperion-lv2
4396e9b5
RW
3164 (package (inherit gx-guvnor-lv2)
3165 (name "gx-hyperion-lv2")
3166 (version "0.1")
3167 (source (origin
37519239
RW
3168 (method git-fetch)
3169 (uri (git-reference
3170 (url "https://github.com/brummer10/GxHyperion.lv2.git")
3171 (commit (string-append "v" version))))
3172 (file-name (string-append name "-" version "-checkout"))
4396e9b5
RW
3173 (sha256
3174 (base32
37519239 3175 "1vx79s6s9if117y2g0ppdja2sv2wcny6xcfl3j1z4cipahnildxf"))))
4396e9b5
RW
3176 (home-page "https://github.com/brummer10/GxHyperion.lv2")
3177 (synopsis "Simulation of the Hyperion Fuzz pedal")
3178 (description "This package provides the LV2 plugin \"GxHyperion\", a
3179simulation of the Hyperion Fuzz pedal.")))
32536f00
RW
3180
3181(define-public gx-voodoo-fuzz-lv2
cf44ebeb
RW
3182 (package (inherit gx-guvnor-lv2)
3183 (name "gx-voodoo-fuzz-lv2")
3184 (version "0.1")
3185 (source (origin
d42c6613
RW
3186 (method git-fetch)
3187 (uri (git-reference
3188 (url "https://github.com/brummer10/GxVoodoFuzz.lv2.git")
3189 (commit (string-append "v" version))))
3190 (file-name (string-append name "-" version "-checkout"))
cf44ebeb
RW
3191 (sha256
3192 (base32
d42c6613 3193 "1v0scphivri1fk4hl20j13f92i48mnx1zsil4hgnadsmm4nsfw43"))))
cf44ebeb
RW
3194 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
3195 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
3196 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
32536f00
RW
3197simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
3198Bosstone circuit, followed by the tone control of the FoxToneMachine in
cf44ebeb 3199parallel with a DarkBooster, followed by a volume control.")))
29f63222
RW
3200
3201(define-public gx-super-fuzz-lv2
34a3ecfe
RW
3202 (package (inherit gx-guvnor-lv2)
3203 (name "gx-super-fuzz-lv2")
3204 (version "0.1")
3205 (source (origin
5057535f
RW
3206 (method git-fetch)
3207 (uri (git-reference
3208 (url "https://github.com/brummer10/GxSuperFuzz.lv2.git")
3209 (commit (string-append "v" version))))
3210 (file-name (string-append name "-" version "-checkout"))
34a3ecfe
RW
3211 (sha256
3212 (base32
5057535f 3213 "1jlljd9hlgfflbiizq47lv1xbbgjyx3v835mf24zmh1q5zsw4np4"))))
34a3ecfe
RW
3214 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
3215 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
a6f39d7c 3216 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
29f63222 3217analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
d1e4ad1b 3218pot, which is usually in the housing, is exposed as a control parameter. It
34a3ecfe 3219adjusts the amount of harmonics.")))
40bffdfa
RW
3220
3221(define-public gx-vintage-fuzz-master-lv2
38050923
RW
3222 (package (inherit gx-guvnor-lv2)
3223 (name "gx-vintage-fuzz-master-lv2")
3224 (version "0.1")
3225 (source (origin
0febd673
RW
3226 (method git-fetch)
3227 (uri (git-reference
3228 (url "https://github.com/brummer10/GxVintageFuzzMaster.lv2.git")
3229 (commit (string-append "v" version))))
3230 (file-name (string-append name "-" version "-checkout"))
38050923
RW
3231 (sha256
3232 (base32
0febd673 3233 "02jb211z8rw2qr5r1z5mdxlqgiw6cbc319xpqplvn6k21c59mskv"))))
38050923
RW
3234 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
3235 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
3236 (description "This package provides the LV2 plugin
3237\"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
631f8175
RW
3238
3239(define-public gx-slow-gear-lv2
d921a1f4
RW
3240 (let ((commit "5d37e775b0feef1d82feee94e2a7a2d7e57efe2d")
3241 (revision "3"))
ad67ca3d 3242 (package (inherit gx-vbass-preamp-lv2)
631f8175
RW
3243 (name "gx-slow-gear-lv2")
3244 (version (string-append "0-" revision "." (string-take commit 9)))
3245 (source (origin
3246 (method git-fetch)
3247 (uri (git-reference
3248 (url "https://github.com/brummer10/GxSlowGear.lv2")
3249 (commit commit)))
3250 (sha256
3251 (base32
d921a1f4 3252 "141mz69zkhk3lm54bb6wgpnghb92zm1ig7fv07240cmhydqji1q1"))
631f8175
RW
3253 (file-name (string-append name "-" version "-checkout"))))
3254 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
3255 (synopsis "Slow gear audio effect")
3256 (description "This package provides the LV2 plugin \"GxSlowGear\", a
3257slow gear audio effect to produce volume swells."))))
d75e8f5a
RW
3258
3259(define-public gx-switchless-wah-lv2
cfcef2c2
RW
3260 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
3261 (revision "2"))
1b74b126 3262 (package (inherit gx-guvnor-lv2)
d75e8f5a
RW
3263 (name "gx-switchless-wah-lv2")
3264 (version (string-append "0-" revision "." (string-take commit 9)))
3265 (source (origin
3266 (method git-fetch)
3267 (uri (git-reference
3268 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
3269 (commit commit)))
3270 (sha256
3271 (base32
cfcef2c2 3272 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
d75e8f5a
RW
3273 (file-name (string-append name "-" version "-checkout"))))
3274 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
3275 (synopsis "Wah emulation with switchless activation")
3276 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
3277a simulation of an analog Wah pedal with switchless activation."))))
84d53724
RW
3278
3279(define-public mod-utilities
fe049d21
RW
3280 (let ((commit "80ea3ea9f52fab7f191671f4810bf90fc955a046")
3281 (revision "2"))
84d53724
RW
3282 (package
3283 (name "mod-utilities")
3284 (version (string-append "0-" revision "." (string-take commit 9)))
3285 (source (origin
3286 (method git-fetch)
3287 (uri (git-reference
3288 (url "https://github.com/moddevices/mod-utilities.git")
3289 (commit commit)))
fe049d21 3290 (file-name (string-append name "-" version "-checkout"))
84d53724
RW
3291 (sha256
3292 (base32
fe049d21 3293 "1v55zmzmlg0ka7341x5lsvb44amy17vk27s669ps1basd1bk5s5v"))))
84d53724
RW
3294 (build-system gnu-build-system)
3295 (arguments
3296 `(#:tests? #f ; there are no tests
3297 #:make-flags
3298 (list (string-append "INSTALL_PATH="
3299 (assoc-ref %outputs "out")
fe049d21
RW
3300 "/lib/lv2")
3301 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3302 "CC=gcc")
84d53724
RW
3303 #:phases
3304 (modify-phases %standard-phases
3305 (delete 'configure))))
3306 (inputs
3307 `(("lv2" ,lv2)))
3308 (home-page "https://github.com/moddevices/mod-utilities")
3309 (synopsis "LV2 utility plugins")
3310 (description "This package provides LV2 audio utility plugins, such as
3311filters, crossovers, simple gain plugins without zipper noise, switch box
3312plugins, a switch trigger, a toggle switch, and a peakmeter.")
3313 (license license:gpl2+))))
d3db5efb 3314
951581a2 3315(define-public ingen
19748414
RW
3316 (let ((commit "cc4a4db33f4d126a07a4a498e053c5fb9a883be3")
3317 (revision "2"))
951581a2
RW
3318 (package
3319 (name "ingen")
3320 (version (string-append "0.0.0-" revision "."
3321 (string-take commit 9)))
3322 (source
3323 (origin
3324 (method git-fetch)
3325 (uri (git-reference
0d0252e4 3326 (url "https://git.drobilla.net/ingen.git")
951581a2
RW
3327 (commit commit)))
3328 (file-name (string-append name "-" version "-checkout"))
3329 (sha256
3330 (base32
19748414 3331 "1wg47vjw9djn99gbnsl2bcwj4xhdid61m4wrbn2nlp797flj91ic"))))
951581a2
RW
3332 (build-system waf-build-system)
3333 (arguments
f9dcf79f
RW
3334 `(#:python ,python-2
3335 #:tests? #f ; no "check" target
951581a2
RW
3336 #:configure-flags (list "--no-webkit")
3337 #:phases
3338 (modify-phases %standard-phases
3339 (add-after 'unpack 'patch-wscript
3340 (lambda* (#:key outputs #:allow-other-keys)
3341 (let ((out (assoc-ref outputs "out")))
3342 (substitute* "wscript"
3343 ;; FIXME: Our version of lv2specgen.py does not behave as
3344 ;; expected. Maybe this requires a development version of
3345 ;; LV2.
3346 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
3347 ;; Add libraries to RUNPATH.
3348 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
3349 (string-append prefix
3350 "linkflags=[\"-Wl,-rpath="
3351 out "/lib" "\"]," line)))
3352 (substitute* '("src/wscript"
3353 "src/server/wscript")
3354 ;; Add libraries to RUNPATH.
3355 (("bld.env.PTHREAD_LINKFLAGS" line)
3356 (string-append line
3357 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
3358 (substitute* "src/client/wscript"
3359 ;; Add libraries to RUNPATH.
3360 (("^(.+)target.*= 'ingen_client'," line prefix)
3361 (string-append prefix
3362 "linkflags=[\"-Wl,-rpath="
3363 out "/lib" "\"]," line)))
3364 (substitute* "src/gui/wscript"
3365 ;; Add libraries to RUNPATH.
3366 (("^(.+)target.* = 'ingen_gui.*" line prefix)
3367 (string-append prefix
3368 "linkflags=[\"-Wl,-rpath="
3369 out "/lib" "\"]," line))))
3370 #t)))))
3371 (inputs
3372 `(("boost" ,boost)
3373 ("python-rdflib" ,python-rdflib)
3374 ("python" ,python)
3375 ("jack" ,jack-1)
19748414 3376 ("lv2" ,lv2-devel)
951581a2
RW
3377 ("lilv" ,lilv)
3378 ("raul" ,raul-devel)
3379 ("ganv" ,ganv-devel)
3380 ("suil" ,suil)
3381 ("serd" ,serd)
3382 ("sord" ,sord)
3383 ("sratom" ,sratom)
3384 ("gtkmm" ,gtkmm-2)))
3385 (native-inputs
3386 `(("pkg-config" ,pkg-config)
3387 ("python-pygments" ,python-pygments)))
0d0252e4 3388 (home-page "https://drobilla.net/software/ingen")
951581a2
RW
3389 (synopsis "Modular audio processing system")
3390 (description "Ingen is a modular audio processing system for JACK and
3391LV2 based systems. Ingen is built around LV2 technology and a strict
3392separation of engine from user interface. The engine is controlled
3393exclusively through a protocol, and can execute as a headless process, with an
3394in-process GUI, or as an LV2 plugin. The GUI can run as a program which
3395communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
3396communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
3397plugin on any system where Ingen is installed. This allows users to visually
3398develop custom plugins for use in other applications without programming.")
3399 (license license:agpl3+))))
3400
b3410b44
RW
3401(define-public qmidiarp
3402 (package
3403 (name "qmidiarp")
b6313997 3404 (version "0.6.5")
b3410b44
RW
3405 (source (origin
3406 (method url-fetch)
3407 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
3408 version "/qmidiarp-" version ".tar.bz2"))
3409 (sha256
3410 (base32
b6313997 3411 "043yh1p0rrbj1v840y27529m9260g55gvh1km8az4jxy7mns58r2"))))
b3410b44
RW
3412 (build-system gnu-build-system)
3413 (arguments
3414 `(#:configure-flags
3415 (list "--enable-qt5"
3416 "CXXFLAGS=-std=gnu++11")))
3417 (inputs
3418 `(("qtbase" ,qtbase)
3419 ("alsa-lib" ,alsa-lib)
3420 ("jack" ,jack-1)
3421 ("liblo" ,liblo)
3422 ("lv2" ,lv2)))
3423 (native-inputs
3424 `(("pkg-config" ,pkg-config)
3425 ("qttools" ,qttools)))
3426 (home-page "http://qmidiarp.sourceforge.net/")
3427 (synopsis "MIDI arpeggiator")
3428 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
3429sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
3430modules running in parallel.")
3431 (license license:gpl2+)))
3432
ff49437d
RW
3433(define-public qmidiroute
3434 (package
3435 (name "qmidiroute")
3436 (version "0.4.0")
3437 (source (origin
3438 (method url-fetch)
3439 (uri (string-append "mirror://sourceforge/alsamodular/QMidiRoute/"
3440 version "/qmidiroute-" version ".tar.bz2"))
3441 (sha256
3442 (base32
3443 "19v1ppbglgl3z9v7xdqc0k33w71cqq8a7d6ihvfs7iz77dygrih9"))))
3444 (build-system gnu-build-system)
3445 (arguments
3446 `(#:configure-flags
3447 (list "--enable-qt5"
3448 "CXXFLAGS=-std=gnu++11")))
3449 (inputs
3450 `(("qtbase" ,qtbase)
3451 ("alsa-lib" ,alsa-lib)))
3452 (native-inputs
3453 `(("pkg-config" ,pkg-config)
3454 ("qttools" ,qttools)))
3455 (home-page "http://alsamodular.sourceforge.net/")
3456 (synopsis "MIDI event router and filter")
3457 (description "QMidiRoute is a MIDI event router and filter. MIDI note,
3458control change, program change and pitch bend events are logged, and can be
3459filtered, redirected and transformed into other events according to MIDI maps
3460defined as tabs in the main control surface.")
3461 (license license:gpl2+)))
3462
5a66e25c
RW
3463(define-public seq24
3464 (package
3465 (name "seq24")
3466 (version "0.9.3")
3467 (source (origin
3468 (method url-fetch)
3469 (uri (string-append "https://launchpad.net/seq24/trunk/"
3470 version "/+download/seq24-"
3471 version ".tar.bz2"))
3472 (sha256
3473 (base32
3474 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
3475 (patches (search-patches "seq24-rename-mutex.patch"))))
3476 (build-system gnu-build-system)
3477 (arguments
3478 `(#:configure-flags
3479 (list "CXXFLAGS=-std=gnu++11")))
3480 (inputs
3481 `(("gtkmm" ,gtkmm-2)
3482 ("alsa-lib" ,alsa-lib)
3483 ("jack" ,jack-1)
3484 ("lash" ,lash)))
3485 (native-inputs
3486 `(("pkg-config" ,pkg-config)))
3487 (home-page "https://edge.launchpad.net/seq24/")
3488 (synopsis "Real-time MIDI sequencer")
3489 (description "Seq24 is a real-time MIDI sequencer. It was created to
3490provide a very simple interface for editing and playing MIDI loops.")
3491 (license license:gpl2+)))
3492
d3db5efb
LF
3493(define-public python-discogs-client
3494 (package
3495 (name "python-discogs-client")
3496 (version "2.2.1")
3497 (source (origin
3498 (method url-fetch)
3499 (uri (pypi-uri "discogs-client" version))
3500 (sha256
3501 (base32
3502 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
3503 (build-system python-build-system)
3504 (propagated-inputs
3505 `(("python-oauthlib" ,python-oauthlib)
3506 ("python-requests" ,python-requests)))
3507 (native-inputs
3508 `(("python-six" ,python-six)))
3509 (home-page "https://github.com/discogs/discogs_client")
3510 (synopsis "Official Python client for the Discogs API")
3511 (description "This is the official Discogs API client for Python. It enables
3512you to query the Discogs database for information on artists, releases, labels,
3513users, Marketplace listings, and more. It also supports OAuth 1.0a
3514authorization, which allows you to change user data such as profile information,
3515collections and wantlists, inventory, and orders.")
80983df3 3516 (license license:bsd-2)))
d3db5efb
LF
3517
3518(define-public python2-discogs-client
80983df3 3519 (package-with-python2 python-discogs-client))
a4f05b46 3520
3521(define-public libsmf
3522 (package
3523 (name "libsmf")
3524 (version "1.3")
3525 (source
3526 (origin
3527 (method url-fetch)
3528 ;; SF download page says development moved, but the link it points to
3529 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
3530 ;; it but made no release so far (https://github.com/stump/libsmf).
3531 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
3532 version "/libsmf-" version ".tar.gz"))
3533 (sha256
3534 (base32
3535 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
3536 (build-system gnu-build-system)
3537 (outputs '("out"
3538 "static")) ; 88KiB of .a files
3539 (arguments
3540 `(#:phases
3541 (modify-phases %standard-phases
3542 (add-after 'install 'move-static-libraries
3543 (lambda* (#:key outputs #:allow-other-keys)
3544 ;; Move static libraries to the "static" output.
3545 (let* ((out (assoc-ref outputs "out"))
3546 (lib (string-append out "/lib"))
3547 (static (assoc-ref outputs "static"))
3548 (slib (string-append static "/lib")))
3549 (mkdir-p slib)
3550 (for-each (lambda (file)
3551 (install-file file slib)
3552 (delete-file file))
3553 (find-files lib "\\.a$"))
3554 #t))))))
3555 (inputs
3556 `(("readline" ,readline)
3557 ("glib" ,glib)))
3558 (native-inputs
3559 `(("doxygen" ,doxygen)
3560 ("pkg-config" ,pkg-config)))
3561 (home-page "http://libsmf.sourceforge.net/")
3562 (synopsis "Standard MIDI File format library")
3563 (description
3564 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3565conversions between time and pulses, tempo map handling and more. The only dependencies
3566are a C compiler and glib. Full API documentation and examples are included.")
3567 (license license:bsd-2)))
a42619e5
RF
3568
3569(define-public lmms
3570 (package
3571 (name "lmms")
3572 (version "1.1.3")
3573 (source
3574 (origin
3a0592ae
RW
3575 (method git-fetch)
3576 (uri (git-reference
3577 (url "https://github.com/LMMS/lmms.git")
3578 (commit (string-append "v" version))))
3579 (file-name (git-file-name name version))
a42619e5
RF
3580 (sha256
3581 (base32
3a0592ae 3582 "03hhymc6d73fa3wbcqb7rm1l03zkw605k5i9kvkvjmv488bqh3pd"))))
a42619e5
RF
3583 (build-system cmake-build-system)
3584 (arguments
3585 `(#:tests? #f ; no tests
3586 #:phases
3587 (modify-phases %standard-phases
ab2ccf4c
KK
3588 (add-before 'configure 'set-ldflags
3589 (lambda* (#:key outputs #:allow-other-keys)
3590 (setenv "LDFLAGS"
3591 (string-append
3592 "-Wl,-rpath=\""
3593 (assoc-ref outputs "out") "/lib/lmms"
3594 ":"
3595 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3596 "\""))
3597 #t))
3598 (add-before 'configure 'remove-Werror
3599 (lambda _
3600 (substitute* "CMakeLists.txt"
3601 (("SET\\(WERROR_FLAGS \"\\$\\{WERROR_FLAGS\\} -Werror")
3602 "SET(WERROR_FLAGS \"${WERROR_FLAGS}"))
3603 #t))
3604 (add-before 'reset-gzip-timestamps 'make-manpages-writable
3605 (lambda* (#:key outputs #:allow-other-keys)
3606 (map (lambda (file)
3607 (make-file-writable file))
3608 (find-files (string-append (assoc-ref outputs "out")
3609 "/share/man")
3610 ".*\\.gz$"))
3611 #t)))))
a42619e5
RF
3612 (native-inputs
3613 `(("pkg-config" ,pkg-config)))
3614 (inputs
3615 `(("sdl" ,sdl)
3616 ("qt" ,qt-4)
3617 ("fltk" ,fltk)
3618 ("libogg" ,libogg)
3619 ("libsamplerate" ,libsamplerate)
9b6dc31b 3620 ("fluidsynth" ,fluidsynth-1) ;XXX: try using 2.x when updating
a42619e5
RF
3621 ("libvorbis" ,libvorbis)
3622 ("alsa-lib" ,alsa-lib)
3623 ("portaudio" ,portaudio)
3624 ("ladspa" ,ladspa)
3625 ("libsndfile1" ,libsndfile)
3626 ("libxft" ,libxft)
3627 ("freetype2" ,freetype)
3628 ("fftw3f" ,fftwf)))
3629 (home-page "https://lmms.io/")
3630 (synopsis "Music composition tool")
3631 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3632melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3633audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3634 (license license:gpl2+)))
a7a7186c
NG
3635
3636(define-public musescore
3637 (package
3638 (name "musescore")
8204ec8d 3639 (version "3.0.1")
a7a7186c 3640 (source (origin
545ceac8
NG
3641 (method git-fetch)
3642 (uri (git-reference
3643 (url "https://github.com/musescore/MuseScore.git")
3644 (commit (string-append "v" version))))
3645 (file-name (git-file-name name version))
a7a7186c
NG
3646 (sha256
3647 (base32
8204ec8d 3648 "085qwfv3fsgry1pnx531w83lnyvf7kbaklipdf8zqa9shi6d3x9i"))
a7a7186c
NG
3649 (modules '((guix build utils)))
3650 (snippet
3651 ;; Un-bundle OpenSSL and remove unused libraries.
3652 '(begin
3653 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3654 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3655 ""))
3656 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3657 (("#include <openssl/.*") ""))
3658 (for-each delete-file-recursively
3659 '("thirdparty/freetype"
3660 "thirdparty/openssl"
3661 "thirdparty/portmidi"))
3662 #t))))
11d44d0b 3663 (build-system cmake-build-system)
a7a7186c 3664 (arguments
11d44d0b
NG
3665 `(#:configure-flags
3666 `("-DUSE_SYSTEM_FREETYPE=ON"
3667 "-DBUILD_WEBENGINE=OFF"
3668 "-DDOWNLOAD_SOUNDFONT=OFF")
3669 ;; There are tests, but no simple target to run. The command used to
3670 ;; run them is:
a7a7186c
NG
3671 ;;
3672 ;; make debug && sudo make installdebug && cd \
3673 ;; build.debug/mtest && make && ctest
3674 ;;
3675 ;; Basically, it requires to start a whole new build process.
3676 ;; So we simply skip them.
11d44d0b 3677 #:tests? #f))
a7a7186c
NG
3678 (inputs
3679 `(("alsa-lib" ,alsa-lib)
3680 ("freetype" ,freetype)
3681 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3682 ("jack" ,jack-1)
3683 ("lame" ,lame)
3684 ("libogg" ,libogg)
3685 ("libsndfile" ,libsndfile)
3686 ("libvorbis" ,libvorbis)
3687 ("portaudio" ,portaudio)
b3891a25 3688 ("portmidi" ,portmidi)
a7a7186c
NG
3689 ("pulseaudio" ,pulseaudio)
3690 ("qtbase" ,qtbase)
3691 ("qtdeclarative" ,qtdeclarative)
3692 ("qtscript" ,qtscript)
3693 ("qtsvg" ,qtsvg)
a7a7186c
NG
3694 ("qtxmlpatterns" ,qtxmlpatterns)))
3695 (native-inputs
11d44d0b 3696 `(("pkg-config" ,pkg-config)
a7a7186c
NG
3697 ("qttools" ,qttools)))
3698 (synopsis "Music composition and notation software")
3699 (description "MuseScore is a music score typesetter. Its main purpose is
3700the creation of high-quality engraved musical scores in a WYSIWYG environment.
3701
3702It supports unlimited staves, linked parts and part extraction, tablature,
3703MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3704lyrics (multiple verses), fretboard diagrams, and in general everything
3705commonly used in sheet music. Style options and style sheets to change the
3706appearance and layout are provided.
3707
3708MuseScore can also play back scores through the built-in sequencer and SoundFont
3709sample library.")
3710 (home-page "https://musescore.org")
3711 (license license:gpl2)))
2434f5ce 3712
43188faf
RW
3713(define-public muse-sequencer
3714 (package
3715 (name "muse-sequencer")
3716 (version "3.0.0")
3717 (source (origin
3718 (method git-fetch)
3719 (uri (git-reference
3720 (url "https://github.com/muse-sequencer/muse.git")
3721 (commit (string-append "muse_"
3722 (string-map (lambda (c)
3723 (if (char=? c #\.)
3724 #\_ c)) version)))))
3725 (file-name (string-append name "-" version "-checkout"))
3726 (sha256
3727 (base32
3728 "1nninz8qyqlxxjdnrm79y3gr3056pga9l2fsqh674jd3cjvafya3"))))
3729 (build-system cmake-build-system)
3730 (arguments
3731 `(#:tests? #f ; there is no test target
3732 #:configure-flags
3733 (list "-DENABLE_LV2_SUPPLIED=OFF"
3734 "-DENABLE_RTAUDIO=OFF" ; FIXME: not packaged
3735 "-DENABLE_INSTPATCH=OFF" ; FIXME: not packaged
3736 "-DENABLE_VST_NATIVE=OFF")
3737 #:phases
3738 (modify-phases %standard-phases
3739 (add-after 'unpack 'chdir
3740 (lambda _ (chdir "muse3"))))))
3741 (inputs
3742 `(("alsa-lib" ,alsa-lib)
3743 ("lash" ,lash)
3744 ("jack" ,jack-1)
3745 ("liblo" ,liblo)
3746 ("dssi" ,dssi)
3747 ("ladspa" ,ladspa)
3748 ("lv2" ,lv2)
3749 ("lilv" ,lilv)
3750 ("sord" ,sord)
3751 ("libsndfile" ,libsndfile)
3752 ("libsamplerate" ,libsamplerate)
3753 ("fluidsynth" ,fluidsynth)
3754 ("pcre" ,pcre)
3755 ("qtbase" ,qtbase)
3756 ("qtsvg" ,qtsvg)))
3757 (native-inputs
3758 `(("pkg-config" ,pkg-config)
3759 ("qttools" ,qttools)))
3760 (home-page "http://muse-sequencer.org")
3761 (synopsis "MIDI/Audio sequencer")
3762 (description "MusE is a MIDI/Audio sequencer with recording and editing
3763capabilities. Its audio sequencer supports the LADSPA, DSSI, and LV2 audio
3764plugin formats; the MIDI sequencer provides a piano roll, a drum editor, a
3765list view, and a score editor. MusE aims to be a complete multitrack virtual
3766studio.")
3767 (license license:gpl2+)))
3768
2434f5ce
DM
3769(define-public dssi
3770 (package
3771 (name "dssi")
3772 (version "1.1.1")
3773 (source (origin
3774 (method url-fetch)
3775 (uri (string-append
3776 "mirror://sourceforge/dssi/dssi/" version
3777 "/dssi-" version ".tar.gz"))
3778 (sha256
3779 (base32
3780 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3781 (build-system gnu-build-system)
3782 (inputs
3783 `(("alsa-lib" ,alsa-lib)
0e78801a 3784 ("jack" ,jack-1)
2434f5ce
DM
3785 ("ladspa" ,ladspa)
3786 ("libsamplerate" ,libsamplerate)
3787 ("libsndfile" ,libsndfile)
3788 ("liblo" ,liblo)))
3789 (native-inputs
3790 `(("pkg-config" ,pkg-config)))
3791 (synopsis "Audio plugin API for soft synths and effects")
3792 (description "DSSI is a plugin API for software instruments with user
3793interfaces, permitting them to be hosted in-process by audio applications.
3794It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3795towards familiarity with MIDI. The DSSI distribution package contains
3796a JACK/ALSA-sequencer reference host and some plugins as well as the
3797specification and header.")
3798 (home-page "http://dssi.sourceforge.net/")
3799 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3800 ;; The vast majority of examples are in the public domain.
3801 (license (list license:lgpl2.1+ license:gpl2+))))
9bc38f28
DM
3802
3803(define-public rosegarden
3804 (package
3805 (name "rosegarden")
9bf98520 3806 (version "18.06")
9bc38f28
DM
3807 (source (origin
3808 (method url-fetch)
3809 (uri (string-append
3810 "mirror://sourceforge/rosegarden/rosegarden/"
3811 version "/rosegarden-" version ".tar.bz2"))
3812 (sha256
3813 (base32
9bf98520 3814 "04qc80sqb2ji42pq3mayhvqqn39hlxzymsywpbpzfpchr19chxx7"))))
9bc38f28
DM
3815 (build-system cmake-build-system)
3816 (arguments
3817 `(#:configure-flags '("-DUSE_QT5=1") ; "-DCMAKE_BUILD_TYPE=Release"
3818 #:phases
3819 (modify-phases %standard-phases
3820 (add-after 'unpack 'patch-tests
3821 (lambda _
3822 (substitute* "CMakeLists.txt"
3823 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
3824 ;; Make tests work.
3825 ((" -fvisibility=hidden") ""))
3826 #t))
3827 (add-after 'unpack 'fix-references
3828 (lambda* (#:key inputs #:allow-other-keys)
3829 (substitute* "src/gui/general/ProjectPackager.cpp"
3830 (("\"flac\\>")
3831 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
3832 (("\"wavpack\\>")
3833 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
3834 (("\"wvunpack\\>")
3835 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
3836 (("\"bash\\>")
3837 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
3838 (("\"tar\\>")
3839 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
3840 (substitute* "src/gui/general/LilyPondProcessor.cpp"
3841 (("\"convert-ly\\>")
3842 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
3843 (("\"lilypond\\>")
3844 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
3845 #t))
3846 (add-after 'unpack 'make-reproducible
3847 (lambda _
3848 ;; Prevent Last-Modified from being written.
3849 ;; The "*.qm" files that are used in locale.qrc would have a new
3850 ;; mtime otherwise that is written into qrc_locale.cpp in the
3851 ;; end - except when we disable it.
3852 (substitute* "src/CMakeLists.txt"
3853 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
3854 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
3855 ;; Extraneous.
3856 ;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
3857 ; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
3858 )
3859 ;; Make hashtable traversal order predicable.
3860 (setenv "QT_RCC_TEST" "1") ; important
3861 #t))
3862 (add-before 'check 'prepare-check
3863 (lambda _
3864 (setenv "QT_QPA_PLATFORM" "offscreen")
3865 ;; Tests create files in $HOME/.local/share/rosegarden .
3866 (mkdir-p "/tmp/foo")
3867 (setenv "HOME" "/tmp/foo")
9bf98520 3868 (setenv "XDG_RUNTIME_DIR" "/tmp/foo")
9bc38f28
DM
3869 #t)))))
3870 (inputs
3871 `(("alsa-lib" ,alsa-lib)
3872 ("bash" ,bash)
3873 ("dssi" ,dssi)
3874 ("flac" ,flac)
3875 ("fftwf" ,fftwf)
b94f250e 3876 ("jack" ,jack-1)
9bc38f28
DM
3877 ("ladspa" ,ladspa)
3878 ("liblo" ,liblo)
3879 ("libsamplerate" ,libsamplerate)
3880 ("lilypond" ,lilypond)
3881 ("lrdf" ,lrdf)
3882 ("qtbase" ,qtbase)
3883 ("tar" ,tar)
3884 ("lirc" ,lirc)
3885 ("wavpack" ,wavpack)
3886 ("zlib" ,zlib)))
3887 (native-inputs
3888 `(("pkg-config" ,pkg-config)
3889 ("qtlinguist" ,qttools)))
3890 (synopsis "Music composition and editing environment based around a MIDI
3891sequencer")
3892 (description "Rosegarden is a music composition and editing environment
3893based around a MIDI sequencer that features a rich understanding of music
3894notation and includes basic support for digital audio.")
9bf98520 3895 (home-page "https://www.rosegardenmusic.com/")
9bc38f28 3896 (license license:gpl2)))
30655652 3897
643817e4 3898(define-public patchmatrix
2394afa4
RW
3899 ;; There have been no releases for more than a year.
3900 (let ((commit "a0b0b1e791f4574d5abd059cfe1819c71e8b18d5")
3901 (revision "1"))
3902 (package
3903 (name "patchmatrix")
3904 (version (git-version "0.12.0" revision commit))
3905 (source (origin
3906 (method git-fetch)
3907 (uri (git-reference
3908 (url "https://github.com/OpenMusicKontrollers/patchmatrix.git")
3909 (commit commit)))
3910 (file-name (string-append "patchmatrix-" version "-checkout"))
3911 (sha256
3912 (base32
3913 "0pph4ra7aci3rbpqvvr564pi16vxrk448bmvp8985cd9lbjlrp3m"))))
3914 (build-system meson-build-system)
3915 (arguments
3916 '(#:tests? #f ; no test target
3917 #:phases
3918 (modify-phases %standard-phases
3919 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
3920 (lambda* (#:key outputs #:allow-other-keys)
3921 (map make-file-writable
3922 (find-files (assoc-ref outputs "out") ".*\\.gz$"))
3923 #t)))))
3924 (inputs
3925 `(("jack" ,jack-1)
3926 ("lv2" ,lv2)
3927 ("mesa" ,mesa)))
3928 (native-inputs
3929 `(("pkg-config" ,pkg-config)))
3930 (home-page "https://github.com/OpenMusicKontrollers/patchmatrix")
3931 (synopsis "Simple JACK patch bay")
3932 (description "PatchMatrix is a patch bay for the JACK audio connection
643817e4
RW
3933kit. It provides a patch bay in flow matrix style for audio, MIDI, CV, and
3934OSC connections.")
2394afa4 3935 (license license:artistic2.0))))
643817e4 3936
30655652
RW
3937(define-public sorcer
3938 (package
3939 (name "sorcer")
3940 (version "1.1.3")
3941 (source (origin
3942 (method url-fetch)
3943 (uri (string-append "https://github.com/openAVproductions/"
3944 "openAV-Sorcer/archive/release-"
3945 version ".tar.gz"))
3946 (file-name (string-append name "-" version ".tar.gz"))
3947 (sha256
3948 (base32
3949 "07iyqj28wm0xc4arrq893bm12xjpz65db7ynrlmf6w8krg8wjmd0"))))
3950 (build-system cmake-build-system)
3951 (arguments
3952 `(#:tests? #f ; no tests included
3953 #:phases
3954 (modify-phases %standard-phases
e5af1f4a
EF
3955 (add-after 'unpack 'remove-architecture-specific-flags
3956 (lambda _
3957 (substitute* "CMakeLists.txt"
3958 (("-msse2 -mfpmath=sse") ""))
3959 #t))
30655652
RW
3960 (add-after 'unpack 'build-faust-sources
3961 (lambda* (#:key inputs #:allow-other-keys)
3962 (with-directory-excursion "faust"
3963 (delete-file "main.cpp")
d7e24652
RW
3964 (invoke "faust" "-i"
3965 "-a" "lv2synth.cpp"
3966 "-o" "main.cpp" "main.dsp")))))))
30655652
RW
3967 (inputs
3968 `(("boost" ,boost)
3969 ("lv2" ,lv2)
3970 ("ntk" ,ntk)))
3971 (native-inputs
3972 `(("faust" ,faust)
3973 ("pkg-config" ,pkg-config)))
3974 (home-page "http://openavproductions.com/sorcer/")
3975 (synopsis "Wavetable LV2 plugin synth")
3976 (description "Sorcer is a wavetable LV2 plugin synthesizer, targeted at
3977the electronic or dubstep genre.")
3978 (license license:gpl3+)))
60b7ed9c 3979
43925703
PL
3980(define-public libmygpo-qt
3981 (package
3982 (name "libmygpo-qt")
d09e31bd 3983 (version "1.1.0")
43925703
PL
3984 (source (origin
3985 (method url-fetch)
3986 (uri (string-append "http://stefan.derkits.at/files/"
3987 "libmygpo-qt/libmygpo-qt." version ".tar.gz"))
3988 (sha256
3989 (base32
01c48690
PL
3990 "1kg18qrq2rsswgzhl65r3mlyx7kpqg4wwnbp4yiv6svvmadmlxl2"))
3991 (patches (search-patches "libmygpo-qt-fix-qt-5.11.patch"
3992 "libmygpo-qt-missing-qt5-modules.patch"))))
43925703 3993 (build-system cmake-build-system)
43925703
PL
3994 (native-inputs
3995 `(("pkg-config" ,pkg-config)))
3996 (inputs
3997 `(("qt" ,qtbase)))
01c48690
PL
3998 (arguments
3999 `(#:configure-flags '("-DMYGPO_BUILD_TESTS=ON")
4000 ;; TODO: Enable tests when https://github.com/gpodder/gpodder/issues/446
4001 ;; is fixed.
4002 #:tests? #f))
43925703
PL
4003 (home-page "http://wiki.gpodder.org/wiki/Libmygpo-qt")
4004 (synopsis "Qt/C++ library wrapping the gpodder web service")
4005 (description "@code{libmygpo-qt} is a Qt/C++ library wrapping the
4006@url{https://gpodder.net} APIs. It allows applications to discover, manage
4007and track podcasts.")
4008 (license license:lgpl2.1+)))
f7ce2134
RW
4009
4010(define-public sonivox-eas
4011 (package
4012 (name "sonivox-eas")
4013 (version "1.1.0")
4014 (source (origin
4015 (method git-fetch)
4016 (uri (git-reference
4017 (url "https://github.com/pedrolcl/Linux-SonivoxEas.git")
4018 (commit (string-append "v" version))))
4019 (file-name (string-append name "-" version "-checkout"))
4020 (sha256
4021 (base32
4022 "0l9gs00p5g4k4qy6i7nv1mfi2n2wnsycwjrgrh9hxzam4irf2mw2"))))
4023 (build-system cmake-build-system)
4024 (arguments '(#:tests? #f)) ; there are no tests
4025 (inputs
4026 `(("alsa-lib" ,alsa-lib)
4027 ("drumstick" ,drumstick)
4028 ("pulseaudio" ,pulseaudio)
4029 ("qtbase" ,qtbase)))
4030 (native-inputs
4031 `(("pkg-config" ,pkg-config)))
4032 (home-page "https://github.com/pedrolcl/Linux-SonivoxEas")
4033 (synopsis "MIDI synthesizer library")
4034 (description "This project is a real time General MIDI synthesizer based
4035on the Sonivox EAS Synthesizer by Google. It does not need external
4036soundfonts, using embedded samples instead.")
4037 ;; Sonivox is released under the ASL2.0; the rest of the code is under
4038 ;; GPLv2+.
4039 (license (list license:gpl2+ license:asl2.0))))
92b36e3a
RW
4040
4041(define-public whysynth
4042 (package
4043 (name "whysynth")
4044 (version "20170701")
4045 (source (origin
4046 (method url-fetch)
4047 (uri (string-append "http://smbolton.com/whysynth/whysynth-"
4048 version ".tar.bz2"))
4049 (sha256
4050 (base32
4051 "02qbn0hbvn1iym4zxv35b201blg31yjpgh71h8db0j5zls2xc0m6"))))
4052 (build-system gnu-build-system)
4053 (inputs
4054 `(("dssi" ,dssi)
4055 ("liblo" ,liblo)
4056 ("fftwf" ,fftwf)
4057 ("gtk+" ,gtk+-2)
4058 ("ladspa" ,ladspa)
4059 ("alsa-lib" ,alsa-lib)))
4060 (native-inputs
4061 `(("pkg-config" ,pkg-config)))
4062 (home-page "http://smbolton.com/whysynth.html")
4063 (synopsis "DSSI software synthesizer")
4064 (description "WhySynth is a versatile softsynth which operates as a plugin
4065for the DSSI Soft Synth Interface. A brief list of features:
4066
4067@enumerate
4068@item 4 oscillators, 2 filters, 3 LFOs, and 5 envelope generators per voice.
4069@item 11 oscillator modes: minBLEP, wavecycle, chorused wavecycle,
4070 asynchronous granular, three FM modes, waveshaper, noise, PADsynth, and phase
4071 distortion.
4072@item 10 filter modes.
4073@item flexible modulation and mixdown options, plus effects.
4074@end enumerate
4075")
4076 (license license:gpl2+)))
6b445c57 4077
4078(define-public libdiscid
4079 (package
4080 (name "libdiscid")
4081 (version "0.6.2")
4082 (source
4083 (origin
4084 (method url-fetch)
4085 (uri (string-append
4086 "http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/libdiscid-"
4087 version ".tar.gz"))
4088 (sha256
4089 (base32
4090 "1f9irlj3dpb5gyfdnb1m4skbjvx4d4hwiz2152f83m0d9jn47r7r"))))
4091 (arguments `(#:test-target "check"))
4092 (build-system cmake-build-system)
4093 (home-page "https://musicbrainz.org/doc/libdiscid")
4094 (synopsis "Disc id reader library")
4095 (description "libdiscid is a C library for creating MusicBrainz and freedb
4096disc IDs from audio CDs. It reads a CD's table of contents (TOC) and generates
4097an identifier which can be used to lookup the CD at MusicBrainz. Additionally,
4098it provides a submission URL for adding the disc ID to the database and gathers
4099ISRCs and the MCN (=UPC/EAN) from disc.")
4100 (license license:lgpl2.1+)))
1ea29aa0 4101
1331a6c0
GH
4102(define-public python-discid
4103 (package
4104 (name "python-discid")
4105 (version "1.1.1")
4106 (source
4107 (origin
4108 (method url-fetch)
4109 (uri (pypi-uri "discid" version))
4110 (sha256
4111 (base32
4112 "1fgp67nhqlbvhhwrcxq5avil7alpzw4s4579hlyvxzbphdnbz8vq"))))
4113 (build-system python-build-system)
4114 (inputs
4115 `(("libdiscid" ,libdiscid)))
4116 (arguments
4117 `(#:phases
4118 (modify-phases %standard-phases
4119 (add-before 'build 'set-libdiscid
4120 ;; Set path of libdiscid
4121 (lambda* (#:key inputs #:allow-other-keys)
4122 (let ((discid (assoc-ref inputs "libdiscid")))
4123 (substitute* "discid/libdiscid.py"
4124 (("lib_name = (.*)$" all name)
4125 (string-append "lib_name = \"" discid
4126 "/lib/libdiscid.so.0\"\n")))
4127 #t))))))
4128 (home-page "https://python-discid.readthedocs.io/")
4129 (synopsis "Python bindings for Libdiscid")
4130 (description
4131 "This package provides Python bindings for the Libdiscid library. The
4132main purpose is the calculation of @url{https://musicbrainz.org/doc/Disc%20ID,
4133Disc IDs} for use with the MusicBrainz database. Additionally the disc
4134@dfn{Media Catalog Number} (MCN) and track @dfn{International Standard
4135Recording Code} (ISRC) can be extracted.}")
4136 (license license:lgpl3+)))
4137
1ea29aa0 4138(define-public libmusicbrainz
4139 (package
4140 (name "libmusicbrainz")
4141 (version "5.1.0")
4142 (source
4143 (origin
4144 (method url-fetch)
4145 (uri (string-append
4146 "https://github.com/metabrainz/libmusicbrainz/releases/download/release-"
4147 version "/libmusicbrainz-" version ".tar.gz"))
4148 (sha256
4149 (base32
8c71a52c 4150 "0ikb9igyyk28jm34raxfzkw2qyn4nzzwsymdyprp7cmvi6g2ajb7"))))
1ea29aa0 4151 (build-system cmake-build-system)
69cb939e
RW
4152 (arguments
4153 `(#:phases
4154 (modify-phases %standard-phases
4155 (replace 'check
4156 (lambda _
4157 ;; requires network connections
4158 ;; (invoke "tests/mbtest")
4159 (invoke "tests/ctest")
4160 #t)))))
1ea29aa0 4161 (inputs `(("neon" ,neon)
4162 ("libxml2" ,libxml2)))
4163 (native-inputs `(("pkg-config" ,pkg-config)))
4164 (home-page "https://musicbrainz.org/doc/libmusicbrainz")
4165 (synopsis "MusicBrainz client library")
4166 (description "The MusicBrainz Client Library (libmusicbrainz), also known as
4167mb_client, is a development library geared towards developers who wish to add
4168MusicBrainz lookup capabilities to their applications.")
4169 (license license:lgpl2.1+)))
87d1b7b0 4170
b0c2c5ab
LC
4171(define-public perl-musicbrainz-discid
4172 (package
4173 (name "perl-musicbrainz-discid")
4174 (version "0.04")
4175 (source (origin
4176 (method url-fetch)
4177 (uri (string-append
4178 "mirror://cpan/authors/id/N/NJ/NJH/MusicBrainz-DiscID-"
4179 version ".tar.gz"))
4180 (sha256
4181 (base32
4182 "1i4qk1qfcmxdibqkyfjrrjdq2zk42vjcz590qgiyc47fi9p6xx1j"))))
4183 (build-system perl-build-system)
4184 (native-inputs `(("pkg-config" ,pkg-config)
4185 ("which" ,which)))
4186 (inputs `(("libdiscid" ,libdiscid)))
4187 (home-page "https://metacpan.org/release/MusicBrainz-DiscID")
4188 (synopsis "Perl interface to the MusicBrainz libdiscid library")
4189 (description
4190 "The @code{MusicBrainz::DiscID} module is a Perl interface to the
4191MusicBrainz libdiscid library, allowing you to manipulate digital audio
4192compact disc (CDDA) identifiers.")
4193 (license license:gpl2)))
4194
b2961dda
LC
4195(define-public perl-webservice-musicbrainz
4196 (package
4197 (name "perl-webservice-musicbrainz")
4198 (version "1.0.4")
4199 (source (origin
4200 (method url-fetch)
4201 (uri (string-append
4202 "mirror://cpan/authors/id/B/BF/BFAIST/WebService-MusicBrainz-"
4203 version ".tar.gz"))
4204 (sha256
4205 (base32
4206 "182z3xjajk6s7k5xm3kssjy3hqx2qbnq4f8864hma098ryy2ph3a"))))
4207 (build-system perl-build-system)
4208 (arguments
4209 ;; Tests try to connect to http://musicbrainz.org.
4210 '(#:tests? #f))
4211 (native-inputs
4212 `(("perl-module-build" ,perl-module-build)))
4213 (propagated-inputs
4214 `(("perl-mojolicious" ,perl-mojolicious)))
4215 (home-page "https://metacpan.org/release/WebService-MusicBrainz")
4216 (synopsis "Web service API to the MusicBrainz database")
4217 (description
4218 "This module searches the MusicBrainz database through their web service
4219at @code{musicbrainz.org}.")
4220 (license license:perl-license)))
4221
87d1b7b0
PN
4222(define-public clyrics
4223 (package
4224 (name "clyrics")
4225 (version "0.10")
4226 (source
4227 (origin
234a1825
RW
4228 (method git-fetch)
4229 (uri (git-reference
4230 (url "https://github.com/trizen/clyrics.git")
4231 (commit version)))
4232 (file-name (git-file-name name version))
87d1b7b0
PN
4233 (sha256
4234 (base32
234a1825 4235 "1qvj4dyipkkdccx5hci4z0q23i54ldk6hh7x5m35a7f70rrj6fbk"))))
87d1b7b0 4236 (build-system trivial-build-system)
87d1b7b0
PN
4237 (inputs
4238 `(("bash" ,bash) ;for the wrapped program
4239 ("perl" ,perl)
4240 ("perl-www-mechanize" ,perl-www-mechanize)
4241 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
4242 ;; Required or else LWP will fail with "GET https://www.google.com/ ==>
4243 ;; 500 Can't verify SSL peers without knowing which Certificate
4244 ;; Authorities to trust".
4245 ("perl-mozilla-ca" ,perl-mozilla-ca)))
4246 (arguments
4247 `(#:modules ((guix build utils))
4248 #:builder (begin
4249 (use-modules (guix build utils)
4250 (ice-9 match)
4251 (srfi srfi-26))
4252 (let* ((source (assoc-ref %build-inputs "source"))
87d1b7b0
PN
4253 (output (assoc-ref %outputs "out")))
4254 (setenv "PATH"
4255 (string-append
87d1b7b0
PN
4256 (assoc-ref %build-inputs "bash") "/bin" ":"
4257 (assoc-ref %build-inputs "perl") "/bin" ":"))
234a1825 4258 (copy-recursively source (getcwd))
87d1b7b0
PN
4259 (patch-shebang "clyrics")
4260 (substitute* "clyrics"
4261 (("/usr/share") output))
4262 (install-file "clyrics" (string-append output "/bin"))
4263 (wrap-program (string-append output "/bin/clyrics")
4264 `("PERL5LIB" ":" =
4265 ,(delete
4266 ""
4267 (map (match-lambda
4268 (((? (cut string-prefix? "perl-" <>) name) . dir)
4269 (string-append dir "/lib/perl5/site_perl"))
4270 (_ ""))
4271 %build-inputs))))
4272 (copy-recursively "plugins" (string-append output "/clyrics"))
4273 #t))))
4274 (home-page "https://github.com/trizen/clyrics")
4275 (synopsis "Extensible lyrics fetcher")
4276 (description
4277 "Clyrics is an extensible command-line tool to fetch the lyrics of songs.
4278It can be used in daemon mode along with the Music-on-Console (MOC) and cmus
4279console music players.")
4280 (license license:gpl3+)))
5703380b
PN
4281
4282(define-public demlo
4283 (let ((commit "fe9ec4c8ac2fa995ec18e6ac86d50d46df06ec01")
4284 (revision "0"))
4285 (package
4286 (name "demlo")
4287 (version (git-version "3.8" revision commit))
4288 (source
4289 (origin
4290 (method git-fetch)
4291 (uri (git-reference
4292 (url
4293 "https://gitlab.com/ambrevar/demlo")
4294 (commit commit)))
4295 (file-name (git-file-name name version))
4296 (sha256
4297 (base32
4298 "1afkbqhzn6da7zaf5ab7dvyqj1izqhzprwfb4hw448fllda9bdvk"))))
4299 (build-system go-build-system)
4300 (native-inputs
4301 `(("lua" ,lua)
4302 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
4303 ("go-github-com-mattn-go-colorable" ,go-github-com-mattn-go-colorable)
4304 ("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)
4305 ("go-gitlab-com-ambrevar-damerau" ,go-gitlab-com-ambrevar-damerau)
4306 ("go-gitlab-com-ambrevar-golua-unicode" ,go-gitlab-com-ambrevar-golua-unicode)
4307 ("go-github-com-mgutz-ansi" ,go-github-com-mgutz-ansi)
4308 ("go-github-com-michiwend-gomusicbrainz" ,go-github-com-michiwend-gomusicbrainz)
4309 ("go-github-com-stevedonovan-luar" ,go-github-com-stevedonovan-luar)
4310 ("go-github-com-wtolson-go-taglib" ,go-github-com-wtolson-go-taglib)
4311 ("go-github-com-yookoala-realpath" ,go-github-com-yookoala-realpath)))
4312 (inputs
4313 `(("chromaprint" ,chromaprint)
4314 ("ffmpeg" ,ffmpeg)))
4315 (arguments
4316 `(#:import-path "gitlab.com/ambrevar/demlo"
4317 #:phases
4318 (modify-phases %standard-phases
4319 (add-after 'install 'wrap-program
4320 (lambda* (#:key inputs outputs #:allow-other-keys)
4321 (let ((out (assoc-ref outputs "out"))
4322 (ffmpeg (assoc-ref inputs "ffmpeg"))
4323 (chromaprint (assoc-ref inputs "chromaprint")))
4324 (wrap-program (string-append out "/bin/demlo")
4325 `("XDG_DATA_DIRS" ":" prefix (,out))
4326 `("PATH" ":" prefix
4327 ,(map (lambda (dir)
4328 (string-append dir "/bin:"
4329 dir "/sbin"))
4330 (list ffmpeg chromaprint))))
4331 #t)))
4332 (add-after 'install-source 'install-scripts
4333 (lambda* (#:key outputs #:allow-other-keys)
4334 (let* ((out (assoc-ref outputs "out"))
4335 (root (string-append out "/src/gitlab.com/ambrevar/demlo"))
4336 (xdg-data-dirs (string-append out "/demlo")))
4337 (copy-recursively (string-append root "/actions")
4338 (string-append xdg-data-dirs "/actions"))
4339 (copy-recursively (string-append root "/scripts")
4340 (string-append xdg-data-dirs "/scripts"))
4341 (install-file (string-append root "/config.lua") xdg-data-dirs)
4342 ;; TODO: Test fish completion.
4343 (install-file (string-append root "/completion/demlo.fish")
4344 (string-append out "/share/fish/vendor_completions.d"))
4345 #t))))))
4346 (home-page "https://gitlab.com/ambrevar/demlo")
4347 (synopsis "Dynamic and extensible music library organizer")
4348 (description "Demlo is a music library organizer. It can encode, fix
4349case, change folder hierarchy according to tags or file properties, tag from
4350an online database, copy covers while ignoring duplicates or those below a
4351quality threshold, and much more. It makes it possible to manage your
4352libraries uniformly and dynamically. You can write your own rules to fit your
4353needs best.
4354
4355Demlo can address any of these recurring music library issues (and much more):
4356
4357@itemize
4358@item Fix the lack of folder structure.
4359@item Normalize tags, fix their case, chose which tags to keep and which to
4360discard.
4361@item Handle lossy and lossless audio differently.
4362@item Handle mp3 id3tags hell...
4363@item Handle multiple covers, whether embedded and/or external, resize covers,
4364discard bad quality ones.
4365@end itemize\n")
4366 (license license:expat))))
e42ba3da
LF
4367
4368(define-public lpd8editor
4369 (package
4370 (name "lpd8editor")
4371 (version "0.0.12")
4372 (source (origin
4373 (method git-fetch)
4374 (uri (git-reference
4375 (url "https://github.com/charlesfleche/lpd8editor.git")
4376 (commit (string-append "v" version))))
4377 (file-name (git-file-name name version))
4378 (sha256
4379 (base32
4380 "1v3fz8h1zs7kkl80faah79pp6yqwz0j7bkv3dbmh2hp42zbfiz1q"))))
4381 (build-system gnu-build-system)
4382 (arguments
4383 '(#:phases
4384 (modify-phases %standard-phases
4385 (add-after 'unpack 'setenv
4386 (lambda _
4387 (setenv "INSTALL_PREFIX"
4388 (assoc-ref %outputs "out"))))
4389 (delete 'configure) ; no configure script
4390 (add-before 'build 'qmake
4391 (lambda _ (invoke "qmake"))))))
4392 (native-inputs
4393 `(("pkg-config" ,pkg-config)))
4394 (inputs
4395 `(("alsa" ,alsa-lib)
4396 ("qtbase" ,qtbase)
4397 ("qtsvg" ,qtsvg)))
4398 (synopsis "Graphical editor for the Akai LPD8 MIDI controller")
4399 (description "lpd8editor is a graphical patch editor for the Akai LPD8 MIDI
4400controller.")
4401 (home-page "https://github.com/charlesfleche/lpd8editor")
4402 (license license:expat)))