gnu: dialog: Download sources over HTTPS.
[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>
4fa37ce2 16;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
6b445c57 17;;; Copyright © 2018 nee <nee.git@hidamari.blue>
b0dea60c 18;;; Copyright © 2018 Stefan Reichör <stefan@xsteve.at>
4715f92e 19;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
b0c2c5ab 20;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org>
e029d90f 21;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
1331a6c0 22;;; Copyright © 2019 Gabriel Hondet <gabrielhondet@gmail.com>
1b6826d3
RW
23;;;
24;;; This file is part of GNU Guix.
25;;;
26;;; GNU Guix is free software; you can redistribute it and/or modify it
27;;; under the terms of the GNU General Public License as published by
28;;; the Free Software Foundation; either version 3 of the License, or (at
29;;; your option) any later version.
30;;;
31;;; GNU Guix is distributed in the hope that it will be useful, but
32;;; WITHOUT ANY WARRANTY; without even the implied warranty of
33;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34;;; GNU General Public License for more details.
35;;;
36;;; You should have received a copy of the GNU General Public License
37;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
38
39(define-module (gnu packages music)
40 #:use-module (guix utils)
41 #:use-module (guix packages)
42 #:use-module (guix download)
8e80244a 43 #:use-module (guix git-download)
1b6826d3
RW
44 #:use-module ((guix licenses) #:prefix license:)
45 #:use-module (guix build-system gnu)
f467c352 46 #:use-module (guix build-system ant)
8b9ec354 47 #:use-module (guix build-system cmake)
2394afa4 48 #:use-module (guix build-system meson)
b0c2c5ab 49 #:use-module (guix build-system perl)
821664f1 50 #:use-module (guix build-system python)
bc27eb3b 51 #:use-module (guix build-system scons)
58301682 52 #:use-module (guix build-system glib-or-gtk)
8e80244a 53 #:use-module (guix build-system waf)
87d1b7b0 54 #:use-module (guix build-system trivial)
5703380b 55 #:use-module (guix build-system go)
1b6826d3 56 #:use-module (gnu packages)
ddfddb0c 57 #:use-module (gnu packages algebra)
91595624 58 #:use-module (gnu packages apr)
c267cc15 59 #:use-module (gnu packages audio)
2d0fd07b 60 #:use-module (gnu packages autotools)
b7367762 61 #:use-module (gnu packages backup)
8b9ec354 62 #:use-module (gnu packages base) ;libbdf
7bac8196 63 #:use-module (gnu packages bash)
1b6826d3 64 #:use-module (gnu packages bison)
b7367762 65 #:use-module (gnu packages boost)
e8069d01 66 #:use-module (gnu packages cdrom)
8b9ec354
RW
67 #:use-module (gnu packages code)
68 #:use-module (gnu packages check)
a7a7186c 69 #:use-module (gnu packages cmake)
8b9ec354 70 #:use-module (gnu packages compression)
d20b7384 71 #:use-module (gnu packages crypto)
aa0edd3f 72 #:use-module (gnu packages curl)
13416a10 73 #:use-module (gnu packages cyrus-sasl)
d20b7384 74 #:use-module (gnu packages datastructures)
1b6826d3 75 #:use-module (gnu packages docbook)
99828fa7 76 #:use-module (gnu packages documentation)
91595624 77 #:use-module (gnu packages emacs)
13416a10 78 #:use-module (gnu packages file)
1b6826d3 79 #:use-module (gnu packages flex)
8e80244a 80 #:use-module (gnu packages fltk)
1b6826d3
RW
81 #:use-module (gnu packages fonts)
82 #:use-module (gnu packages fontutils)
3bf429af 83 #:use-module (gnu packages freedesktop)
6260d1a8 84 #:use-module (gnu packages gcc)
aa0edd3f 85 #:use-module (gnu packages gnupg)
1b6826d3
RW
86 #:use-module (gnu packages gettext)
87 #:use-module (gnu packages ghostscript)
ec8da0e2 88 #:use-module (gnu packages gl)
8e80244a 89 #:use-module (gnu packages glib)
c267cc15 90 #:use-module (gnu packages gnome)
770305f4 91 #:use-module (gnu packages graphics)
d20b7384 92 #:use-module (gnu packages gstreamer)
1b6826d3
RW
93 #:use-module (gnu packages gtk)
94 #:use-module (gnu packages guile)
c267cc15 95 #:use-module (gnu packages image)
1b6826d3 96 #:use-module (gnu packages imagemagick)
6260d1a8 97 #:use-module (gnu packages java)
91595624 98 #:use-module (gnu packages libffi)
d20b7384 99 #:use-module (gnu packages libusb)
7bac8196
LF
100 #:use-module (gnu packages linux) ; for alsa-utils
101 #:use-module (gnu packages lirc)
91595624 102 #:use-module (gnu packages llvm)
c267cc15
RW
103 #:use-module (gnu packages man)
104 #:use-module (gnu packages mp3)
3bf429af 105 #:use-module (gnu packages mpd)
e8069d01 106 #:use-module (gnu packages ncurses)
1b6826d3 107 #:use-module (gnu packages netpbm)
91595624 108 #:use-module (gnu packages pcre)
821664f1 109 #:use-module (gnu packages pdf)
1b6826d3 110 #:use-module (gnu packages perl)
b2961dda 111 #:use-module (gnu packages perl-web)
1b6826d3 112 #:use-module (gnu packages pkg-config)
d20b7384 113 #:use-module (gnu packages protobuf)
d231bb35 114 #:use-module (gnu packages pulseaudio) ;libsndfile
1b6826d3 115 #:use-module (gnu packages python)
1b2f753d 116 #:use-module (gnu packages python-web)
44d10b1f 117 #:use-module (gnu packages python-xyz)
8b9ec354 118 #:use-module (gnu packages qt)
d231bb35 119 #:use-module (gnu packages rdf)
c493679f 120 #:use-module (gnu packages readline)
1b6826d3 121 #:use-module (gnu packages rsync)
21d18113 122 #:use-module (gnu packages sdl)
cd0322a3 123 #:use-module (gnu packages sqlite)
2d0fd07b 124 #:use-module (gnu packages tcl)
1b6826d3 125 #:use-module (gnu packages texinfo)
8f9ac901 126 #:use-module (gnu packages tex)
13416a10 127 #:use-module (gnu packages tls)
1ea29aa0 128 #:use-module (gnu packages version-control)
e8069d01 129 #:use-module (gnu packages video)
8b9ec354 130 #:use-module (gnu packages web)
c30a66de 131 #:use-module (gnu packages wxwidgets)
c267cc15 132 #:use-module (gnu packages xml)
ddfddb0c 133 #:use-module (gnu packages xorg)
c267cc15 134 #:use-module (gnu packages xiph)
5703380b
PN
135 #:use-module (gnu packages golang)
136 #:use-module (gnu packages lua)
2d0fd07b 137 #:use-module ((srfi srfi-1) #:select (last)))
1b6826d3 138
c30a66de
RW
139(define-public aria-maestosa
140 (package
141 (name "aria-maestosa")
0a151351 142 (version "1.4.13")
c30a66de
RW
143 (source (origin
144 (method url-fetch)
145 (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/"
146 version "/AriaSrc-" version ".tar.bz2"))
147 (sha256
148 (base32
0a151351 149 "1cs3z6frx2ch7rm5ammx9p0rxcjrbj1vq14hvcbimpaw39rdsn3d"))))
30812446 150 (build-system scons-build-system)
c30a66de
RW
151 (arguments
152 `(#:tests? #f ;no tests
20e42d1e
DM
153 #:scons-flags
154 (list (string-append "prefix=" (assoc-ref %outputs "out")))
30812446 155 #:scons ,scons-python2
c30a66de 156 #:phases
c30a66de
RW
157 (modify-phases %standard-phases
158 (delete 'configure)
159 (add-after 'unpack 'scons-propagate-environment
160 (lambda _
161 ;; By design, SCons does not, by default, propagate
162 ;; environment variables to subprocesses. See:
163 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
164 ;; Here, we modify the SConstruct file to arrange for
165 ;; environment variables to be propagated.
166 (substitute* "SConstruct"
167 (("env = Environment\\(\\)")
168 "env = Environment(ENV=os.environ)")
169 ;; Scons errors out when copying subdirectories from Resources,
170 ;; so we move them instead.
171 (("Copy") "Move")
172 ;; We move the "score" and "Documentation" directories at once,
173 ;; so we have to ignore files contained therein.
174 (("if \".svn\" in file" line)
175 (string-append line
176 " or \"score/\" in file"
177 " or \"Documentation/\" in file")))
178 #t))
30812446 179 (add-after 'install 'fix-directory-permissions
c30a66de
RW
180 (lambda* (#:key outputs #:allow-other-keys)
181 (let ((out (assoc-ref outputs "out")))
30812446
DM
182 (chmod (string-append out "/share/Aria/Documentation") #o555)
183 (chmod (string-append out "/share/Aria/score") #o555)
184 #t))))))
c30a66de
RW
185 (inputs
186 `(("wxwidgets" ,wxwidgets)
187 ("glib" ,glib)
188 ("alsa-lib" ,alsa-lib)))
189 (native-inputs
30812446 190 `(("pkg-config" ,pkg-config)))
c30a66de
RW
191 (home-page "http://ariamaestosa.sourceforge.net/")
192 (synopsis "MIDI sequencer and editor")
193 (description
194 "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit
195and play MIDI files with a few clicks in a user-friendly interface offering
196score, keyboard, guitar, drum and controller views.")
197 (license license:gpl3+)))
198
d20b7384
PL
199;; We don't use the latest release because it depends on Qt4. Instead we
200;; download the sources from the tip of the "qt5" branch.
201(define-public clementine
8a6d16b8
PL
202 (let ((commit "4619a4c1ab3b17b13d4b2327ad477912917eaf36")
203 (revision "2"))
d20b7384
PL
204 (package
205 (name "clementine")
8a6d16b8 206 (version (git-version "1.3.1" revision commit))
d20b7384
PL
207 (source (origin
208 (method git-fetch)
209 (uri (git-reference
210 (url "https://github.com/clementine-player/Clementine.git")
211 (commit commit)))
8a6d16b8 212 (file-name (git-file-name name version))
d20b7384
PL
213 (sha256
214 (base32
8a6d16b8 215 "1hximk3q0p8nw8is5w7215xgkb7k4flnfyr0pdz9svfwvcm05w1i"))
d20b7384
PL
216 (modules '((guix build utils)))
217 (snippet
6cbee49d
MW
218 '(begin
219 (for-each
d20b7384
PL
220 (lambda (dir)
221 (delete-file-recursively
6cbee49d 222 (string-append "3rdparty/" dir)))
d20b7384 223 (list
6cbee49d
MW
224 ;; TODO: The following dependencies are still bundled:
225 ;; - "qxt": Appears to be unmaintained upstream.
226 ;; - "qsqlite"
227 ;; - "qtsingleapplication"
228 ;; - "qocoa"
229 ;; - "qtiocompressor"
230 ;; - "gmock": The tests crash when using our googletest
231 ;; package instead of the bundled gmock.
232 "SPMediaKeyTap"
233 "fancytabwidget"
234 "google-breakpad"
235 "libmygpo-qt"
236 "libmygpo-qt5"
237 "libprojectm"
238 "qtwin"
239 "sha2" ;; Replaced by openssl.
240 "taglib"
241 "tinysvcmdns"))
242 #t))
af414f34 243 (patches (search-patches "clementine-use-openssl.patch"
7bcc3405
PL
244 "clementine-remove-crypto++-dependency.patch"
245 "clementine-fix-sqlite.patch"))))
d20b7384
PL
246 (build-system cmake-build-system)
247 (arguments
248 '(#:test-target "clementine_test"
249 #:configure-flags
af414f34
PL
250 (list ;; Requires unpackaged "projectm"
251 "-DENABLE_VISUALISATIONS=OFF"
252 ;; Otherwise it may try to download a non-free library at run-time.
253 ;; TODO In an origin snippet, remove the code that performs the
254 ;; download.
255 "-DHAVE_SPOTIFY_DOWNLOADER=FALSE"
256 "-DUSE_SYSTEM_SHA2=TRUE")
d20b7384
PL
257 #:phases
258 (modify-phases %standard-phases
259 (add-after 'install 'wrap-program
260 (lambda* (#:key inputs outputs #:allow-other-keys)
261 (let ((out (assoc-ref outputs "out"))
262 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
263 (wrap-program (string-append out "/bin/clementine")
264 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))
265 #t))))))
266 (native-inputs
267 `(("gettext" ,gettext-minimal)
268 ("pkg-config" ,pkg-config)
269 ("qtlinguist" ,qttools)))
270 (inputs
271 `(("boost" ,boost)
272 ("chromaprint" ,chromaprint)
d20b7384
PL
273 ("fftw" ,fftw)
274 ("glib" ,glib)
275 ("glu" ,glu)
276 ("gstreamer" ,gstreamer)
277 ("gst-plugins-base" ,gst-plugins-base)
8473f802
LF
278 ("gst-plugins-good" ,gst-plugins-good)
279 ("gst-libav" ,gst-libav)
d20b7384
PL
280 ("libcdio" ,libcdio)
281 ("libmygpo-qt" ,libmygpo-qt)
d20b7384
PL
282 ;; TODO: Package libgpod.
283 ("libmtp" ,libmtp)
284 ("libxml2" ,libxml2)
285 ("openssl" ,openssl)
286 ("protobuf" ,protobuf)
287 ("pulseaudio" ,pulseaudio)
288 ("qtbase" ,qtbase)
289 ("qtx11extras" ,qtx11extras)
f09e8abc 290 ("sqlite" ,sqlite-with-column-metadata)
d20b7384
PL
291 ("sparsehash" ,sparsehash)
292 ("taglib" ,taglib)))
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")
4fa37ce2 2252 (version "0.9.5")
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
4fa37ce2 2259 "1zsikhqj5xzhw2x3b6pqlmcwz3hxx07lbbif8v3m3j41snzjic22"))))
a763ce7d 2260 (build-system gnu-build-system)
42639cc9 2261 (arguments
d56eee86 2262 `(#:tests? #f)) ; no "check" target
a763ce7d 2263 (inputs
523544d3
RW
2264 `(("qt" ,qtbase)
2265 ("qtx11extras" ,qtx11extras)
a763ce7d
RW
2266 ("alsa-lib" ,alsa-lib)
2267 ("jack" ,jack-1)
2268 ("libsndfile" ,libsndfile)
2269 ("ladspa" ,ladspa)
2270 ("lv2" ,lv2)
2271 ("lilv" ,lilv)
2272 ("suil" ,suil)
2273 ("libsamplerate" ,libsamplerate)
2274 ("libvorbis" ,libvorbis)
2275 ("libmad" ,libmad)
2276 ("rubberband" ,rubberband)
2277 ("liblo" ,liblo)
2278 ("zlib" ,zlib)))
2279 (native-inputs
523544d3
RW
2280 `(("pkg-config" ,pkg-config)
2281 ("qttools" ,qttools)))
8071bbbc 2282 (home-page "http://qtractor.org/")
a763ce7d
RW
2283 (synopsis "Audio/MIDI multi-track sequencer")
2284 (description
2285 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
2286JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
2287follows a traditional multi-track tape recorder control paradigm.")
2288 (license license:gpl2+)))
aa0edd3f 2289
849c3d03 2290(define-public ams-lv2
e029d90f
BH
2291 ;; Version 1.2.1 built with Python 3.7 raises an error in the waf-script.
2292 ;; Therefore, we take two more commmits than 1.2.1 that introduce an updated
2293 ;; waf-script and fix one error.
2294 (let ((commit "377d166db54a787b48979171c5652d2eb4f1bbb5")
2295 (revision "1"))
2296 (package
2297 (name "ams-lv2")
2298 (version (git-version "1.2.1" revision commit))
2299 (source
2300 (origin
2301 (method git-fetch)
2302 (uri (git-reference
2303 (url "https://github.com/blablack/ams-lv2.git")
2304 (commit commit)))
2305 (file-name (git-file-name name version))
2306 (sha256
2307 (base32
2308 "1ndgxcxjxwidg7436k0nb5clxkyi878k1j999sbbd1gk2fm0kcqm"))))
2309 (build-system waf-build-system)
2310 (arguments
2311 `(#:phases
2312 (modify-phases %standard-phases
2313 (add-after 'unpack 'remove-sse-flags
2314 (lambda* (#:key system #:allow-other-keys)
6cbb2c87
BH
2315 (unless (or (string-prefix? "x86_64" system)
2316 (string-prefix? "i686" system))
e029d90f 2317 (substitute* "wscript"
6cbb2c87
BH
2318 (("'-msse', '-mfpmath=sse', ") "")))
2319 #t)))
e029d90f
BH
2320 #:tests? #f)) ; no tests
2321 (inputs
2322 `(("lv2" ,lv2)
2323 ("lvtk" ,lvtk)
2324 ("gtkmm" ,gtkmm-2)
2325 ("gtk" ,gtk+-2)
2326 ("cairo" ,cairo)
2327 ("fftw" ,fftw)))
2328 (native-inputs
2329 `(("pkg-config" ,pkg-config)))
2330 (home-page "https://objectivewave.wordpress.com/ams-lv2/")
2331 (synopsis "Port of Alsa Modular Synth internal modules into LV2")
2332 (description "This set of LV2 plugins is a port of the internal modules
849c3d03
RW
2333found in Alsa Modular Synth. These plugins are used to create modular
2334synthesizers and contain: VCO, VCF, VCA, LFO, slew limiter, envelopes, sample
2335and hold, etc.")
e029d90f 2336 (license license:gpl2))))
849c3d03 2337
aed023ff
RW
2338(define-public gxtuner
2339 (package
2340 (name "gxtuner")
f5e0ff0f 2341 (version "2.4")
aed023ff 2342 (source (origin
bed4eb37
RW
2343 (method git-fetch)
2344 (uri (git-reference
2345 (url "https://github.com/brummer10/gxtuner.git")
2346 (commit (string-append "v" version))))
2347 (file-name (git-file-name name version))
aed023ff
RW
2348 (sha256
2349 (base32
bed4eb37 2350 "1fxd2akan2njlr7fpkh84830783qhh1gg7yakswqk5dd466dcn96"))))
aed023ff
RW
2351 (build-system gnu-build-system)
2352 (arguments
2353 `(#:make-flags
2354 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2355 (string-append "INCLUDE_L_DIR="
2356 (assoc-ref %build-inputs "zita-resampler")
2357 "/include/"))
2358 #:phases
2359 (modify-phases %standard-phases
2360 (delete 'configure))))
2361 (inputs
f5e0ff0f 2362 `(("gtk+" ,gtk+)
aed023ff
RW
2363 ("jack" ,jack-1)
2364 ("fftwf" ,fftwf)
2365 ("cairo" ,cairo)
2366 ("zita-resampler" ,zita-resampler)))
2367 (native-inputs
2368 `(("pkg-config" ,pkg-config)))
2369 (home-page "https://github.com/brummer10/gxtuner")
2370 (synopsis "Guitar tuner")
2371 (description "GXtuner is a simple guitar tuner for JACK with an
2372analogue-like user interface.")
2373 (license license:gpl2+)))
2374
c2c9e748 2375(define-public mod-host
9f1ac4fa 2376 ;; The last release was in 2014 but since then hundreds of commits have
c2c9e748 2377 ;; been made.
9f1ac4fa
RW
2378 (let ((commit "1726ad06b11323da7e1aaed690ff8aef91f702b5")
2379 (revision "3"))
c2c9e748
RW
2380 (package
2381 (name "mod-host")
2382 (version (string-append "0.10.6-" revision "." (string-take commit 9)))
2383 (source (origin
2384 (method git-fetch)
2385 (uri (git-reference
2386 (url "https://github.com/moddevices/mod-host")
2387 (commit commit)))
2388 (sha256
2389 (base32
9f1ac4fa 2390 "1nrd37c35w6z6ldczgrwmmd9hx1n3zyvcjcgb3mi4cygqdanvspv"))
c2c9e748
RW
2391 (file-name (string-append name "-" version "-checkout"))))
2392 (build-system gnu-build-system)
2393 (arguments
2394 `(#:tests? #f ; no tests included
2395 #:make-flags
2396 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2397 "CC=gcc")
2398 #:phases
2399 (modify-phases %standard-phases
2400 (delete 'configure)
2401 (add-after 'unpack 'fix-jack-installation-directory
2402 (lambda _
2403 ;; Do not attempt to install files to output of "jack" package.
2404 (substitute* "Makefile"
2405 (("\\$\\(shell pkg-config --variable=libdir jack\\)")
2406 "lib"))
2407 #t)))))
2408 (inputs
2409 `(("lilv" ,lilv)
c96cb01a
DC
2410 ("fftw" ,fftw)
2411 ("fftwf" ,fftwf)
c2c9e748
RW
2412 ("lv2" ,lv2)
2413 ("jack" ,jack-1)
2414 ("readline" ,readline)))
2415 (native-inputs
2416 `(("pkg-config" ,pkg-config)
2417 ("python" ,python-2)))
2418 (home-page "https://github.com/moddevices/mod-host")
2419 (synopsis "LV2 host for Jack controllable via socket or command line")
2420 (description "mod-host is an LV2 plugin host for JACK, controllable via
2421socket or command line.")
2422 (license license:gpl3+))))
2423
19d93ef5
SR
2424(define-public curseradio
2425 (let ((commit "1bd4bd0faeec675e0647bac9a100b526cba19f8d")
2426 (revision "1"))
2427 (package
2428 (name "curseradio")
2429 (version (git-version "0" revision commit))
2430 (source (origin
2431 (method git-fetch)
2432 (uri (git-reference
2433 (url "https://github.com/chronitis/curseradio.git")
2434 (commit commit)))
2435 (file-name (git-file-name name version))
2436 (sha256
2437 (base32
2438 "11bf0jnj8h2fxhpdp498189r4s6b47vy4wripv0z4nx7lxajl88i"))))
2439 (build-system python-build-system)
2440 (propagated-inputs
2441 `(("python-lxml" ,python-lxml)
2442 ("python-requests" ,python-requests)
2443 ("python-pyxdg" ,python-pyxdg)
2444 ("mpv" ,mpv)))
2445 (home-page "https://github.com/chronitis/curseradio")
2446 (synopsis "Command-line Internet radio player")
2447 (description "Curseradio is a Curses-based radio player that uses a
2448tune-in sender list from @url{http://opml.radiotime.com}.")
2449 (license license:expat))))
2450
aa0edd3f
AM
2451(define-public pianobar
2452 (package
2453 (name "pianobar")
3999b664 2454 (version "2016.06.02")
aa0edd3f 2455 (source (origin
1410e178
RW
2456 (method git-fetch)
2457 (uri (git-reference
2458 (url "https://github.com/PromyLOPh/pianobar.git")
2459 (commit version)))
2460 (file-name (git-file-name name version))
aa0edd3f
AM
2461 (sha256
2462 (base32
1410e178 2463 "058fbdxp7n35hxwy3b8slfy4pb4n63cb173vfmywqa06wh1dv6f6"))))
aa0edd3f
AM
2464 (build-system gnu-build-system)
2465 (arguments
2466 `(#:tests? #f ; no tests
2467 #:make-flags (list "CC=gcc" "CFLAGS=-std=c99"
2468 (string-append "PREFIX=" %output))
2469 #:phases (modify-phases %standard-phases
2470 (delete 'configure))))
2471 (inputs
2472 `(("ao" ,ao)
2473 ("curl" ,curl)
2474 ("libgcrypt" ,libgcrypt)
2475 ("json-c" ,json-c)
bb5c508c 2476 ("ffmpeg" ,ffmpeg-3.4)))
aa0edd3f
AM
2477 (native-inputs
2478 `(("pkg-config" ,pkg-config)))
2479 (home-page "http://6xq.net/projects/pianobar/")
2480 (synopsis "Console-based pandora.com player")
2481 (description "pianobar is a console-based music player for the
2482personalized online radio pandora.com. It has configurable keys for playing
2483and managing stations, can be controlled remotely via fifo, and can run
2484event-based scripts for scrobbling, notifications, etc.")
2485 (license license:expat)))
3f7a182d 2486
1deab8cb
CB
2487(define-public picard
2488 (package
2489 (name "picard")
2490 (version "2.0.4")
2491 (source (origin
2492 (method url-fetch)
2493 (uri (string-append
2494 "https://musicbrainz.osuosl.org/pub/musicbrainz/"
2495 "picard/picard-" version ".tar.gz"))
2496 (sha256
2497 (base32
2498 "0ds3ylpqn717fnzcjrfn05v5xram01bj6n3hwn9igmkd1jgf8vhc"))))
2499 (build-system python-build-system)
2500 (arguments
2501 '(#:phases
2502 (modify-phases %standard-phases
2503 (add-after 'unpack 'patch-source
2504 (lambda* (#:key inputs #:allow-other-keys)
2505 (substitute* "picard/const/__init__.py"
2506 (("pyfpcalc")
2507 (string-append
2508 "pyfpcalc', '"
2509 (assoc-ref inputs "chromaprint") "/bin/fpcalc")))))
2510 (replace 'install
2511 (lambda* (#:key outputs #:allow-other-keys)
2512 (invoke "python" "setup.py" "install"
2513 (string-append "--prefix=" (assoc-ref outputs "out"))
2514 "--root=/"))))))
2515 (native-inputs
2516 `(("gettext" ,gettext-minimal)))
2517 (inputs
2518 `(("chromaprint" ,chromaprint)
2519 ("python-pyqt" ,python-pyqt)
2520 ("python-mutagen" ,python-mutagen)))
2521 (home-page "https://picard.musicbrainz.org/")
2522 (synopsis "Graphical music tagging application")
2523 (description
2524 "MusicBrainz Picard is a music tagging application, supporting multiple
2525formats, looking up tracks through metadata and audio fingerprints.")
2526 (license license:gpl2+)))
2527
3f7a182d
LF
2528(define-public python-mutagen
2529 (package
2530 (name "python-mutagen")
e39aae4f 2531 (version "1.38")
3f7a182d
LF
2532 (source (origin
2533 (method url-fetch)
2534 (uri (pypi-uri "mutagen" version))
2535 (sha256
2536 (base32
e39aae4f 2537 "0rl7sxn1rcjl48fwga3dqf9f6pzspsny4ngxyf6pp337mrq0z693"))))
3f7a182d 2538 (build-system python-build-system)
4228a79e
LF
2539 (native-inputs
2540 `(("python-pytest" ,python-pytest)))
3f7a182d
LF
2541 (home-page "https://bitbucket.org/lazka/mutagen")
2542 (synopsis "Read and write audio tags")
2543 (description "Mutagen is a Python module to handle audio metadata. It
2544supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
2545Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
2546of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
2547Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
2548APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
2549streams on an individual packet/page level.")
2550 (license license:gpl2))) ; "later version" never mentioned
2551
2552(define-public python2-mutagen
2553 (package-with-python2 python-mutagen))
8975de88
LF
2554
2555(define-public python-musicbrainzngs
2556 (package
2557 (name "python-musicbrainzngs")
daedf34d 2558 (version "0.6")
8975de88
LF
2559 (source (origin
2560 (method url-fetch)
2561 (uri (pypi-uri "musicbrainzngs" version))
2562 (sha256
2563 (base32
daedf34d 2564 "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8"))))
8975de88 2565 (build-system python-build-system)
daedf34d
LF
2566 (arguments
2567 '(;; The tests fail suffer from race conditions:
2568 ;; https://github.com/alastair/python-musicbrainzngs/issues/211
2569 #:tests? #f))
8975de88
LF
2570 (home-page "https://python-musicbrainzngs.readthedocs.org/")
2571 (synopsis "Python bindings for MusicBrainz NGS webservice")
2572 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
2573web service. This library can be used to retrieve music metadata from the
2574MusicBrainz database.")
2575 ;; 'musicbrainzngs/compat.py' is ISC licensed.
2576 (license (list license:bsd-2 license:isc))))
2577
2578(define-public python2-musicbrainzngs
2579 (package-with-python2 python-musicbrainzngs))
e8fee648 2580
07c82daa
GH
2581(define-public python-isrcsubmit
2582 (package
2583 (name "python-isrcsubmit")
2584 (version "2.0.1")
2585 (source
2586 (origin
2587 (method url-fetch)
2588 (uri (pypi-uri "isrcsubmit" version))
2589 (sha256
2590 (base32
2591 "0jh4cni8qhri6dh83cmp0i0m0384vv0vznlygv49wj9xzh1d99qv"))))
2592 (build-system python-build-system)
2593 (propagated-inputs
2594 `(("python-discid" ,python-discid)
2595 ("python-musicbrainzngs" ,python-musicbrainzngs)))
2596 (home-page "https://github.com/JonnyJD/musicbrainz-isrcsubmit")
2597 (synopsis "Submit ISRCs from CDs to MusicBrainz")
2598 (description "@code{isrcsubmit} is a tool to extract @dfn{International
2599Standard Recording Code} (ISRCs) from audio CDs and submit them to
2600@url{https://musicbrainz.org/, MusicBrainz}.")
2601 (license license:gpl3+)))
2602
a2eab422 2603(define-public python2-pyechonest
e8fee648 2604 (package
a2eab422 2605 (name "python2-pyechonest")
e8fee648
LF
2606 (version "9.0.0")
2607 (source (origin
2608 (method url-fetch)
2609 (uri (pypi-uri "pyechonest" version))
2610 (sha256
2611 (base32
2612 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
2613 (build-system python-build-system)
a2eab422
LF
2614 (arguments
2615 `(;; Python 3 is not supported:
2616 ;; https://github.com/echonest/pyechonest/issues/42
2617 #:python ,python-2))
e8fee648
LF
2618 (home-page "https://github.com/echonest/pyechonest")
2619 (synopsis "Python interface to The Echo Nest APIs")
d3e3468f
LF
2620 (description "Pyechonest is a Python library for the Echo Nest API. With
2621Pyechonest you have Python access to the entire set of API methods including:
e8fee648
LF
2622
2623@enumerate
2624@item artist - search for artists by name, description, or attribute, and get
2625back detailed information about any artist including audio, similar artists,
2626blogs, familiarity, hotttnesss, news, reviews, urls and video.
2627@item song - search songs by artist, title, description, or attribute (tempo,
2628duration, etc) and get detailed information back about each song, such as
2629hotttnesss, audio_summary, or tracks.
2630@item track - upload a track to the Echo Nest and receive summary information
2631about the track including key, duration, mode, tempo, time signature along with
2632detailed track info including timbre, pitch, rhythm and loudness information.
2633@end enumerate\n")
a2eab422 2634 (license license:bsd-3)))
acd7351f
LF
2635
2636(define-public python-pylast
2637 (package
2638 (name "python-pylast")
653f2b92 2639 (version "2.0.0")
acd7351f
LF
2640 (source (origin
2641 (method url-fetch)
2642 (uri (pypi-uri "pylast" version))
2643 (sha256
2644 (base32
653f2b92 2645 "0r9h7g8i8l2mgqjwkda3v6prfbkb2im5kap1az9ppmhjm9i4jkcf"))))
acd7351f 2646 (build-system python-build-system)
653f2b92
RW
2647 ;; Tests require network access. See
2648 ;; https://github.com/pylast/pylast/issues/105
2649 (arguments '(#:tests? #f))
acd7351f
LF
2650 (native-inputs
2651 `(("python-coverage" ,python-coverage)
653f2b92 2652 ("python-pycodestyle" ,python-pycodestyle)
acd7351f
LF
2653 ("python-mock" ,python-mock)
2654 ("python-pep8" ,python-pep8)
2655 ("python-pytest" ,python-pytest)
653f2b92 2656 ("python-flaky" ,python-flaky)
acd7351f
LF
2657 ("python-pyflakes" ,python-pyflakes)
2658 ("python-pyyaml" ,python-pyyaml)))
2659 (propagated-inputs
2660 `(("python-six" ,python-six)))
2661 (home-page "https://github.com/pylast/pylast")
2662 (synopsis "Python interface to Last.fm and Libre.fm")
2663 (description "A Python interface to Last.fm and other API-compatible
2664websites such as Libre.fm.")
5c31f4aa 2665 (license license:asl2.0)))
acd7351f
LF
2666
2667(define-public python2-pylast
5c31f4aa 2668 (package-with-python2 python-pylast))
3bf429af 2669
b0dea60c
SR
2670(define-public instantmusic
2671 (let ((commit "300891d09c703525215fa5a116b9294af1c923c8")
2672 (revision "1"))
2673 (package
2674 (name "instantmusic")
2675 (version (git-version "1.0" revision commit))
2676 (source (origin
2677 (method git-fetch)
2678 (uri (git-reference
2679 (url "https://github.com/yask123/Instant-Music-Downloader.git")
2680 (commit commit)))
2681 (file-name (git-file-name name version))
2682 (sha256
2683 (base32
2684 "0j7qivaa04bpdz3anmgci5833dgiyfqqwq9fdrpl9m68b34gl773"))))
2685 (build-system python-build-system)
2686 (propagated-inputs
2687 `(("python-requests" ,python-requests)
c695fb76 2688 ("eyed3" ,eyed3)
b0dea60c
SR
2689 ("python-beautifulsoup4" ,python-beautifulsoup4)
2690 ("youtube-dl" ,youtube-dl)))
2691 (arguments
2692 '(#:modules ((guix build python-build-system)
2693 (guix build utils)
2694 (srfi srfi-26))
2695 #:phases (modify-phases %standard-phases
2696 (add-before 'build 'change-directory
2697 (lambda _
2698 (chdir "instantmusic-0.1") #t))
2699 (add-before 'check 'fix-file-permissions
2700 (lambda _
2701 ;; Fix some read-only files that would cause a build failure
2702 (for-each (cut chmod <> #o644)
2703 (find-files "instantmusic.egg-info"
2704 "PKG-INFO|.*\\.txt"))
2705 #t)))))
2706 (home-page "http://iyask.me/Instant-Music-Downloader/")
2707 (synopsis "Command-line program to download a song from YouTube")
2708 (description "InstantMusic downloads a song from YouTube in MP3 format.
2709Songs can be searched by artist, name or even by a part of the song text.")
2710 (license license:expat))))
2711
3bf429af
LF
2712(define-public beets
2713 (package
2714 (name "beets")
191c439e 2715 (version "1.4.7")
3bf429af
LF
2716 (source (origin
2717 (method url-fetch)
23319ed6 2718 (uri (pypi-uri "beets" version))
c05c1910 2719 (patches (search-patches "beets-python-3.7-fix.patch"))
3bf429af
LF
2720 (sha256
2721 (base32
191c439e 2722 "0w3gz69s9gf5ih69d4sddgh7ndj7658m621bp742zldvjakdncrs"))))
3bf429af
LF
2723 (build-system python-build-system)
2724 (arguments
0d48ff81 2725 `(#:phases
3bf429af
LF
2726 (modify-phases %standard-phases
2727 (add-after 'unpack 'set-HOME
46fce968
TGR
2728 (lambda _
2729 (setenv "HOME" (string-append (getcwd) "/tmp"))
2730 #t))
aa007978
DM
2731 (add-after 'unpack 'make-python3.7-compatible
2732 (lambda _
2733 ;; See <https://github.com/beetbox/beets/issues/2978>.
2734 (substitute* "beets/autotag/hooks.py"
2735 (("re\\._pattern_type") "re.Pattern"))
2736 #t))
36c2c8c8 2737 (replace 'check
46fce968
TGR
2738 (lambda _
2739 (invoke "nosetests" "-v"))))))
3bf429af 2740 (native-inputs
0d48ff81
LF
2741 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2742 ("python-flask" ,python-flask)
2743 ("python-mock" ,python-mock)
2744 ("python-mpd2" ,python-mpd2)
2745 ("python-nose" ,python-nose)
2746 ("python-pathlib" ,python-pathlib)
2747 ("python-pyxdg" ,python-pyxdg)
2748 ("python-pylast" ,python-pylast)
2749 ("python-rarfile" ,python-rarfile)
2750 ("python-responses" ,python-responses)))
3bf429af 2751 ;; TODO: Install optional plugins and dependencies.
b3470031 2752 (inputs
0d48ff81 2753 `(("python-discogs-client" ,python-discogs-client)
0d48ff81
LF
2754 ("python-jellyfish" ,python-jellyfish)
2755 ("python-munkres" ,python-munkres)
2756 ("python-musicbrainzngs" ,python-musicbrainzngs)
2757 ("python-mutagen" ,python-mutagen)
2758 ("python-pyyaml" ,python-pyyaml)
2759 ("python-unidecode" ,python-unidecode)))
3bf429af
LF
2760 (home-page "http://beets.io")
2761 (synopsis "Music organizer")
2762 (description "The purpose of beets is to get your music collection right
2763once and for all. It catalogs your collection, automatically improving its
2764metadata as it goes using the MusicBrainz database. Then it provides a variety
2765of tools for manipulating and accessing your music.")
2766 (license license:expat)))
21d18113
KY
2767
2768(define-public milkytracker
2769 (package
2770 (name "milkytracker")
b7e2fcf0 2771 (version "1.02.00")
21d18113 2772 (source (origin
caa39e56
RW
2773 (method git-fetch)
2774 (uri (git-reference
2775 (url "https://github.com/milkytracker/MilkyTracker.git")
2776 (commit (string-append "v" version))))
2777 (file-name (git-file-name name version))
21d18113
KY
2778 (sha256
2779 (base32
caa39e56 2780 "05a6d7l98k9i82dwrgi855dnccm3f2lkb144gi244vhk1156n0ca"))
e3b2e943
KK
2781 (modules '((guix build utils)))
2782 ;; Remove non-FSDG compliant sample songs.
2783 (snippet
2784 '(begin
2785 (delete-file-recursively "resources/music")
2786 (substitute* "CMakeLists.txt"
6cbee49d
MW
2787 (("add_subdirectory\\(resources/music\\)") ""))
2788 #t))))
e3b2e943 2789 (build-system cmake-build-system)
21d18113 2790 (arguments
7f2f8345
KK
2791 '(#:tests? #f ; no check target
2792 ;; This flag ensures that MilkyTracker links with the JACK library.
2793 #:configure-flags '("-DCMAKE_CXX_FLAGS=-ljack")))
21d18113
KY
2794 (inputs
2795 `(("alsa-lib" ,alsa-lib)
ba259bad 2796 ("lhasa" ,lhasa)
21d18113 2797 ("jack" ,jack-1)
f1618a0f 2798 ("rtmidi" ,rtmidi)
e3b2e943 2799 ("sdl" ,sdl2)
f1618a0f
KK
2800 ("zlib" ,zlib)
2801 ("zziplib" ,zziplib)))
21d18113
KY
2802 (native-inputs
2803 `(("pkg-config" ,pkg-config)))
2804 (synopsis "Music tracker for working with .MOD/.XM module files")
2805 (description "MilkyTracker is a music application for creating .MOD and .XM
2806module files. It attempts to recreate the module replay and user experience of
2807the popular DOS program Fasttracker II, with special playback modes available
2808for improved Amiga ProTracker 2/3 compatibility.")
1b35fea1 2809 (home-page "http://milkytracker.titandemo.org/")
21d18113
KY
2810 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2811 (license (list license:bsd-3 license:gpl3+))))
13416a10 2812
89bcf3fc
KK
2813(define-public schismtracker
2814 (package
2815 (name "schismtracker")
a8b567f9 2816 (version "20181223")
89bcf3fc 2817 (source (origin
3b9e9415
RW
2818 (method git-fetch)
2819 (uri (git-reference
2820 (url "https://github.com/schismtracker/schismtracker.git")
2821 (commit version)))
2822 (file-name (git-file-name name version))
89bcf3fc
KK
2823 (sha256
2824 (base32
a8b567f9 2825 "18k5j10zq39y2q294avdmar87x93k57wqmq8bpz562hdqki2mz1l"))
89bcf3fc
KK
2826 (modules '((guix build utils)))
2827 (snippet
2828 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
6cbee49d
MW
2829 `(begin
2830 (substitute* "schism/version.c"
2831 (("Schism Tracker built %s %s.*$")
2832 (string-append "Schism Tracker version " ,version "\");")))
2833 #t))))
89bcf3fc
KK
2834 (build-system gnu-build-system)
2835 (arguments
2836 `(#:phases
2837 (modify-phases %standard-phases
89bcf3fc
KK
2838 (add-before 'configure 'link-libm
2839 (lambda _ (setenv "LIBS" "-lm") #t)))))
2840 (native-inputs
2841 `(("autoconf" ,autoconf)
2842 ("automake" ,automake)
2843 ("python" ,python)))
2844 (inputs
2845 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2846 ("libx11" ,libx11)
2847 ("libxext" ,libxext)
2848 ("sdl" ,sdl)))
2849 (home-page "http://schismtracker.org")
2850 (synopsis "Oldschool sample-based music composition tool")
2851 (description
2852 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2853create high quality music without the requirements of specialized, expensive
2854equipment, and with a unique \"finger feel\" that is difficult to replicate in
2855part. The player is based on a highly modified version of the ModPlug engine,
2856with a number of bugfixes and changes to improve IT playback.")
2857 (license license:gpl2+)))
2858
5beecc32
RW
2859(define-public sooperlooper
2860 (package
2861 (name "sooperlooper")
2862 (version "1.7.3")
2863 (source (origin
2864 (method url-fetch)
2865 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2866 version ".tar.gz"))
2867 (sha256
2868 (base32
2869 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2870 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2871 (build-system gnu-build-system)
2872 (arguments
2873 `(#:make-flags (list "CXXFLAGS=-std=gnu++11")
2874 #:phases
2875 (modify-phases %standard-phases
2876 (add-after 'unpack 'add-sigc++-includes
2877 (lambda* (#:key inputs #:allow-other-keys)
2878 (let ((sig (assoc-ref inputs "libsigc++"))
2879 (xml (assoc-ref inputs "libxml2"))
2880 (cwd (getcwd)))
2881 (setenv "CPATH"
2882 (string-append sig "/include/sigc++-2.0:"
2883 sig "/lib/sigc++-2.0/include:"
2884 xml "/include/libxml2/:"
2885 cwd "/libs/pbd:"
2886 cwd "/libs/midi++")))
2887 (substitute* '("src/control_osc.hpp"
2888 "src/gui/app_frame.hpp"
2889 "src/gui/config_panel.hpp"
2890 "src/gui/keys_panel.hpp"
2891 "src/gui/latency_panel.hpp"
2892 "src/gui/main_panel.hpp"
2893 "src/gui/midi_bind_panel.hpp"
2894 "src/gui/prefs_dialog.hpp")
2895 (("sigc\\+\\+/object.h")
2896 "sigc++/sigc++.h"))
2897 (substitute* '("src/engine.cpp"
2898 "src/gui/latency_panel.cpp"
2899 "src/gui/looper_panel.cpp"
2900 "src/gui/main_panel.cpp")
2901 (("(\\(| )bind " _ pre)
2902 (string-append pre "sigc::bind ")))
2903 #t))
2904 (add-after 'unpack 'fix-xpm-warnings
2905 (lambda _
2906 (substitute* (find-files "." "\\.xpm$")
2907 (("static char") "static const char"))
2908 #t)))))
2909 (inputs
2910 `(("jack" ,jack-1)
2911 ("alsa-lib" ,alsa-lib)
2912 ("wxwidgets" ,wxwidgets-gtk2)
2913 ("libsndfile" ,libsndfile)
2914 ("libsamplerate" ,libsamplerate)
2915 ("liblo" ,liblo)
2916 ("rubberband" ,rubberband)
2917 ("libxml2" ,libxml2)
2918 ("libsigc++" ,libsigc++)
2919 ("ncurses" ,ncurses)))
2920 (native-inputs
2921 `(("pkg-config" ,pkg-config)))
2922 (home-page "http://essej.net/sooperlooper/")
2923 (synopsis "Live looping sampler")
2924 (description
2925 "SooperLooper is a live looping sampler capable of immediate loop
2926recording, overdubbing, multiplying, reversing and more. It allows for
2927multiple simultaneous multi-channel loops limited only by your computer's
2928available memory.")
2929 (license license:gpl2+)))
2930
13416a10
KY
2931(define-public moc
2932 (package
2933 (name "moc")
2fbc004f 2934 (version "2.5.2")
13416a10
KY
2935 (source (origin
2936 (method url-fetch)
2937 (uri (string-append "http://ftp.daper.net/pub/soft/"
2938 name "/stable/"
2939 name "-" version ".tar.bz2"))
2940 (sha256
2941 (base32
2784b35f 2942 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))))
13416a10
KY
2943 (build-system gnu-build-system)
2944 (inputs
2945 `(("alsa-lib" ,alsa-lib)
2946 ("curl" ,curl)
2947 ("faad2" ,faad2)
bb5c508c 2948 ("ffmpeg" ,ffmpeg-3.4)
13416a10
KY
2949 ("file" ,file)
2950 ("jack" ,jack-1)
2951 ("libid3tag" ,libid3tag)
2952 ("libltdl" ,libltdl)
2953 ("libmodplug" ,libmodplug)
2954 ("libmpcdec" ,libmpcdec)
2955 ("libmad" ,libmad)
6beaa5a0
MM
2956 ("libogg" ,libogg)
2957 ("libvorbis" ,libvorbis)
13416a10
KY
2958 ("ncurses" ,ncurses)
2959 ("openssl" ,openssl)
2960 ("sasl" ,cyrus-sasl)
2961 ("speex" ,speex)
2962 ("taglib" ,taglib)
2963 ("wavpack" ,wavpack)
2964 ("zlib" ,zlib)))
2965 (native-inputs
2966 `(("pkg-config" ,pkg-config)))
2967 (synopsis "Console audio player designed to be powerful and easy to use")
2968 (description
2969 "Music on Console is a console audio player that supports many file
2970formats, including most audio formats recognized by FFMpeg.")
2971 (home-page "http://moc.daper.net")
2972 (license license:gpl2+)))
6d3ef286
JF
2973
2974(define-public midicsv
2975 (package
2976 (name "midicsv")
2977 (version "1.1")
2978 (source (origin
2979 (method url-fetch)
2980 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
2981 name "-" version ".tar.gz"))
2982 (sha256
2983 (base32
2984 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
2985 (build-system gnu-build-system)
2986 (arguments
2987 `(#:phases (modify-phases %standard-phases (delete 'configure))
2988 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
2989 (synopsis "Convert MIDI files to and from CSV")
2990 (description
2991 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
2992value file (CSV), which preserves all the information in the MIDI file. The
2993ASCII CSV file may be loaded into a spreadsheet or database application, or
2994processed by a program to transform the MIDI data (for example, to key
2995transpose a composition or extract a track from a multi-track sequence). A
2996CSV file in the format created by midicsv may be converted back into a
2997standard MIDI file with the csvmidi program.")
2998 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
2999 (license license:public-domain)))
49604680
RW
3000
3001(define-public gx-guvnor-lv2
35f909d4
RW
3002 (package
3003 (name "gx-guvnor-lv2")
3004 (version "0.1")
3005 (source (origin
6ac8c78c
RW
3006 (method git-fetch)
3007 (uri (git-reference
3008 (url "https://github.com/brummer10/GxGuvnor.lv2.git")
3009 (commit (string-append "v" version))))
3010 (file-name (string-append name "-" version "-checkout"))
35f909d4
RW
3011 (sha256
3012 (base32
6ac8c78c 3013 "1wa5070j40p7f0b3kr259pzm99xb6cf2badr2capayjvgayd6gnm"))))
35f909d4
RW
3014 (build-system gnu-build-system)
3015 (arguments
3016 `(;; The check target is used only to output a warning.
3017 #:tests? #f
3018 #:make-flags
3019 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
3020 #:phases
3021 (modify-phases %standard-phases
3022 (replace 'configure
3023 (lambda _
3024 (substitute* "Makefile"
6ac8c78c
RW
3025 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
3026 (("install : all") "install :"))
35f909d4
RW
3027 #t)))))
3028 (inputs
3029 `(("lv2" ,lv2)))
3030 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
3031 (synopsis "Overdrive/distortion pedal simulation")
3032 (description "This package provides the LV2 plugin \"GxGuvnor\", a
49604680 3033simulation of an overdrive or distortion pedal for guitars.")
35f909d4 3034 ;; The LICENSE file says GPLv3 but the license headers in the files say
4b359532
RW
3035 ;; GPLv2 or later. The whole project is released under GPLv3 or later
3036 ;; according to https://github.com/brummer10/GxGuvnor.lv2/issues/1
3037 (license license:gpl3+)))
85ae347e
RW
3038
3039(define-public gx-vbass-preamp-lv2
1b74b126
RW
3040 (let ((commit "eb999b0ca0ef4da40a59e458a9ab6e7042b96c99")
3041 (revision "2"))
85ae347e
RW
3042 (package (inherit gx-guvnor-lv2)
3043 (name "gx-vbass-preamp-lv2")
3044 (version (string-append "0-" revision "." (string-take commit 9)))
3045 (source (origin
3046 (method git-fetch)
3047 (uri (git-reference
3048 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
3049 (commit commit)))
3050 (sha256
3051 (base32
1b74b126 3052 "0firap073ldw4nrykkd7jvyyj0jbl1nslxyzjj4kswazp99x7d9h"))
85ae347e 3053 (file-name (string-append name "-" version "-checkout"))))
1b74b126
RW
3054 (inputs
3055 `(("lv2" ,lv2)
3056 ("gtk+" ,gtk+-2)))
3057 (native-inputs
3058 `(("pkg-config" ,pkg-config)))
85ae347e
RW
3059 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
3060 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
3061 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
3062pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
3063Section."))))
cdc7a021
RW
3064
3065(define-public gx-overdriver-lv2
3066 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
3067 (revision "1"))
1b74b126 3068 (package (inherit gx-guvnor-lv2)
cdc7a021
RW
3069 (name "gx-overdriver-lv2")
3070 (version (string-append "0-" revision "." (string-take commit 9)))
3071 (source (origin
3072 (method git-fetch)
3073 (uri (git-reference
3074 (url "https://github.com/brummer10/GxOverDriver.lv2")
3075 (commit commit)))
3076 (sha256
3077 (base32
3078 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
3079 (file-name (string-append name "-" version "-checkout"))))
3080 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
3081 (synopsis "Overdrive effect with level and tone control")
3082 (description "This package provides the LV2 plugin \"GxOverDriver\", an
3083overdrive effect."))))
4d95cd30
RW
3084
3085(define-public gx-tone-mender-lv2
3086 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
3087 (revision "1"))
1b74b126 3088 (package (inherit gx-guvnor-lv2)
4d95cd30
RW
3089 (name "gx-tone-mender-lv2")
3090 (version (string-append "0-" revision "." (string-take commit 9)))
3091 (source (origin
3092 (method git-fetch)
3093 (uri (git-reference
3094 (url "https://github.com/brummer10/GxToneMender.lv2")
3095 (commit commit)))
3096 (sha256
3097 (base32
3098 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
3099 (file-name (string-append name "-" version "-checkout"))))
3100 (home-page "https://github.com/brummer10/GxToneMender.lv2")
3101 (synopsis "Clean boost with a 3-knob tonestack")
3102 (description "This package provides the LV2 plugin \"GxToneMender\", a
3103clean boost effect with a 3-knob tonestack."))))
4d4bfdc2
RW
3104
3105(define-public gx-push-pull-lv2
3106 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
3107 (revision "1"))
1b74b126 3108 (package (inherit gx-guvnor-lv2)
4d4bfdc2
RW
3109 (name "gx-push-pull-lv2")
3110 (version (string-append "0-" revision "." (string-take commit 9)))
3111 (source (origin
3112 (method git-fetch)
3113 (uri (git-reference
3114 (url "https://github.com/brummer10/GxPushPull.lv2")
3115 (commit commit)))
3116 (sha256
3117 (base32
3118 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
3119 (file-name (string-append name "-" version "-checkout"))))
3120 (home-page "https://github.com/brummer10/GxPushPull.lv2")
3121 (synopsis "Octave up push pull transistor fuzz simulation")
3122 (description "This package provides the LV2 plugin \"GxPushPull\", a
3123simulation of a push pull transistor fuzz effect with added high octave."))))
3eb1a964
RW
3124
3125(define-public gx-suppa-tone-bender-lv2
f959991d
RW
3126 (package (inherit gx-guvnor-lv2)
3127 (name "gx-suppa-tone-bender-lv2")
3128 (version "0.1")
3129 (source (origin
48b95a19
RW
3130 (method git-fetch)
3131 (uri (git-reference
3132 (url "https://github.com/brummer10/GxSuppaToneBender.lv2.git")
3133 (commit (string-append "v" version))))
3134 (file-name (string-append name "-" version "-checkout"))
f959991d
RW
3135 (sha256
3136 (base32
48b95a19 3137 "01x6bjmllkmvxfzc5xwdix7w021j26js71awv728cxsmkxgqw0zy"))))
f959991d
RW
3138 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
3139 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
3140 (description "This package provides the LV2 plugin
3eb1a964 3141\"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
f959991d 3142pedal.")))
664f677f
RW
3143
3144(define-public gx-saturator-lv2
d9f65bd3
RW
3145 (let ((commit "605330f432c94b6eb3f8203cbe472befae959532")
3146 (revision "3"))
ad67ca3d 3147 (package (inherit gx-vbass-preamp-lv2)
664f677f
RW
3148 (name "gx-saturator-lv2")
3149 (version (string-append "0-" revision "." (string-take commit 9)))
3150 (source (origin
3151 (method git-fetch)
3152 (uri (git-reference
3153 (url "https://github.com/brummer10/GxSaturator.lv2")
3154 (commit commit)))
3155 (sha256
3156 (base32
d9f65bd3 3157 "1w4nvh0rmxrv3s3hmh4fs74f3hc0jn31v00j769j7v68mqr7kawy"))
664f677f
RW
3158 (file-name (string-append name "-" version "-checkout"))))
3159 (home-page "https://github.com/brummer10/GxSaturator.lv2")
3160 (synopsis "Saturation effect")
3161 (description "This package provides the LV2 plugin \"GxSaturator\", a
3162saturation effect."))))
89412238
RW
3163
3164(define-public gx-hyperion-lv2
4396e9b5
RW
3165 (package (inherit gx-guvnor-lv2)
3166 (name "gx-hyperion-lv2")
3167 (version "0.1")
3168 (source (origin
37519239
RW
3169 (method git-fetch)
3170 (uri (git-reference
3171 (url "https://github.com/brummer10/GxHyperion.lv2.git")
3172 (commit (string-append "v" version))))
3173 (file-name (string-append name "-" version "-checkout"))
4396e9b5
RW
3174 (sha256
3175 (base32
37519239 3176 "1vx79s6s9if117y2g0ppdja2sv2wcny6xcfl3j1z4cipahnildxf"))))
4396e9b5
RW
3177 (home-page "https://github.com/brummer10/GxHyperion.lv2")
3178 (synopsis "Simulation of the Hyperion Fuzz pedal")
3179 (description "This package provides the LV2 plugin \"GxHyperion\", a
3180simulation of the Hyperion Fuzz pedal.")))
32536f00
RW
3181
3182(define-public gx-voodoo-fuzz-lv2
cf44ebeb
RW
3183 (package (inherit gx-guvnor-lv2)
3184 (name "gx-voodoo-fuzz-lv2")
3185 (version "0.1")
3186 (source (origin
d42c6613
RW
3187 (method git-fetch)
3188 (uri (git-reference
3189 (url "https://github.com/brummer10/GxVoodoFuzz.lv2.git")
3190 (commit (string-append "v" version))))
3191 (file-name (string-append name "-" version "-checkout"))
cf44ebeb
RW
3192 (sha256
3193 (base32
d42c6613 3194 "1v0scphivri1fk4hl20j13f92i48mnx1zsil4hgnadsmm4nsfw43"))))
cf44ebeb
RW
3195 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
3196 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
3197 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
32536f00
RW
3198simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
3199Bosstone circuit, followed by the tone control of the FoxToneMachine in
cf44ebeb 3200parallel with a DarkBooster, followed by a volume control.")))
29f63222
RW
3201
3202(define-public gx-super-fuzz-lv2
34a3ecfe
RW
3203 (package (inherit gx-guvnor-lv2)
3204 (name "gx-super-fuzz-lv2")
3205 (version "0.1")
3206 (source (origin
5057535f
RW
3207 (method git-fetch)
3208 (uri (git-reference
3209 (url "https://github.com/brummer10/GxSuperFuzz.lv2.git")
3210 (commit (string-append "v" version))))
3211 (file-name (string-append name "-" version "-checkout"))
34a3ecfe
RW
3212 (sha256
3213 (base32
5057535f 3214 "1jlljd9hlgfflbiizq47lv1xbbgjyx3v835mf24zmh1q5zsw4np4"))))
34a3ecfe
RW
3215 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
3216 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
a6f39d7c 3217 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
29f63222 3218analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
d1e4ad1b 3219pot, which is usually in the housing, is exposed as a control parameter. It
34a3ecfe 3220adjusts the amount of harmonics.")))
40bffdfa
RW
3221
3222(define-public gx-vintage-fuzz-master-lv2
38050923
RW
3223 (package (inherit gx-guvnor-lv2)
3224 (name "gx-vintage-fuzz-master-lv2")
3225 (version "0.1")
3226 (source (origin
0febd673
RW
3227 (method git-fetch)
3228 (uri (git-reference
3229 (url "https://github.com/brummer10/GxVintageFuzzMaster.lv2.git")
3230 (commit (string-append "v" version))))
3231 (file-name (string-append name "-" version "-checkout"))
38050923
RW
3232 (sha256
3233 (base32
0febd673 3234 "02jb211z8rw2qr5r1z5mdxlqgiw6cbc319xpqplvn6k21c59mskv"))))
38050923
RW
3235 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
3236 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
3237 (description "This package provides the LV2 plugin
3238\"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
631f8175
RW
3239
3240(define-public gx-slow-gear-lv2
d921a1f4
RW
3241 (let ((commit "5d37e775b0feef1d82feee94e2a7a2d7e57efe2d")
3242 (revision "3"))
ad67ca3d 3243 (package (inherit gx-vbass-preamp-lv2)
631f8175
RW
3244 (name "gx-slow-gear-lv2")
3245 (version (string-append "0-" revision "." (string-take commit 9)))
3246 (source (origin
3247 (method git-fetch)
3248 (uri (git-reference
3249 (url "https://github.com/brummer10/GxSlowGear.lv2")
3250 (commit commit)))
3251 (sha256
3252 (base32
d921a1f4 3253 "141mz69zkhk3lm54bb6wgpnghb92zm1ig7fv07240cmhydqji1q1"))
631f8175
RW
3254 (file-name (string-append name "-" version "-checkout"))))
3255 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
3256 (synopsis "Slow gear audio effect")
3257 (description "This package provides the LV2 plugin \"GxSlowGear\", a
3258slow gear audio effect to produce volume swells."))))
d75e8f5a
RW
3259
3260(define-public gx-switchless-wah-lv2
cfcef2c2
RW
3261 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
3262 (revision "2"))
1b74b126 3263 (package (inherit gx-guvnor-lv2)
d75e8f5a
RW
3264 (name "gx-switchless-wah-lv2")
3265 (version (string-append "0-" revision "." (string-take commit 9)))
3266 (source (origin
3267 (method git-fetch)
3268 (uri (git-reference
3269 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
3270 (commit commit)))
3271 (sha256
3272 (base32
cfcef2c2 3273 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
d75e8f5a
RW
3274 (file-name (string-append name "-" version "-checkout"))))
3275 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
3276 (synopsis "Wah emulation with switchless activation")
3277 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
3278a simulation of an analog Wah pedal with switchless activation."))))
84d53724
RW
3279
3280(define-public mod-utilities
fe049d21
RW
3281 (let ((commit "80ea3ea9f52fab7f191671f4810bf90fc955a046")
3282 (revision "2"))
84d53724
RW
3283 (package
3284 (name "mod-utilities")
3285 (version (string-append "0-" revision "." (string-take commit 9)))
3286 (source (origin
3287 (method git-fetch)
3288 (uri (git-reference
3289 (url "https://github.com/moddevices/mod-utilities.git")
3290 (commit commit)))
fe049d21 3291 (file-name (string-append name "-" version "-checkout"))
84d53724
RW
3292 (sha256
3293 (base32
fe049d21 3294 "1v55zmzmlg0ka7341x5lsvb44amy17vk27s669ps1basd1bk5s5v"))))
84d53724
RW
3295 (build-system gnu-build-system)
3296 (arguments
3297 `(#:tests? #f ; there are no tests
3298 #:make-flags
3299 (list (string-append "INSTALL_PATH="
3300 (assoc-ref %outputs "out")
fe049d21
RW
3301 "/lib/lv2")
3302 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3303 "CC=gcc")
84d53724
RW
3304 #:phases
3305 (modify-phases %standard-phases
3306 (delete 'configure))))
3307 (inputs
3308 `(("lv2" ,lv2)))
3309 (home-page "https://github.com/moddevices/mod-utilities")
3310 (synopsis "LV2 utility plugins")
3311 (description "This package provides LV2 audio utility plugins, such as
3312filters, crossovers, simple gain plugins without zipper noise, switch box
3313plugins, a switch trigger, a toggle switch, and a peakmeter.")
3314 (license license:gpl2+))))
d3db5efb 3315
951581a2 3316(define-public ingen
19748414
RW
3317 (let ((commit "cc4a4db33f4d126a07a4a498e053c5fb9a883be3")
3318 (revision "2"))
951581a2
RW
3319 (package
3320 (name "ingen")
3321 (version (string-append "0.0.0-" revision "."
3322 (string-take commit 9)))
3323 (source
3324 (origin
3325 (method git-fetch)
3326 (uri (git-reference
0d0252e4 3327 (url "https://git.drobilla.net/ingen.git")
951581a2
RW
3328 (commit commit)))
3329 (file-name (string-append name "-" version "-checkout"))
3330 (sha256
3331 (base32
19748414 3332 "1wg47vjw9djn99gbnsl2bcwj4xhdid61m4wrbn2nlp797flj91ic"))))
951581a2
RW
3333 (build-system waf-build-system)
3334 (arguments
f9dcf79f
RW
3335 `(#:python ,python-2
3336 #:tests? #f ; no "check" target
951581a2
RW
3337 #:configure-flags (list "--no-webkit")
3338 #:phases
3339 (modify-phases %standard-phases
3340 (add-after 'unpack 'patch-wscript
3341 (lambda* (#:key outputs #:allow-other-keys)
3342 (let ((out (assoc-ref outputs "out")))
3343 (substitute* "wscript"
3344 ;; FIXME: Our version of lv2specgen.py does not behave as
3345 ;; expected. Maybe this requires a development version of
3346 ;; LV2.
3347 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
3348 ;; Add libraries to RUNPATH.
3349 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
3350 (string-append prefix
3351 "linkflags=[\"-Wl,-rpath="
3352 out "/lib" "\"]," line)))
3353 (substitute* '("src/wscript"
3354 "src/server/wscript")
3355 ;; Add libraries to RUNPATH.
3356 (("bld.env.PTHREAD_LINKFLAGS" line)
3357 (string-append line
3358 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
3359 (substitute* "src/client/wscript"
3360 ;; Add libraries to RUNPATH.
3361 (("^(.+)target.*= 'ingen_client'," line prefix)
3362 (string-append prefix
3363 "linkflags=[\"-Wl,-rpath="
3364 out "/lib" "\"]," line)))
3365 (substitute* "src/gui/wscript"
3366 ;; Add libraries to RUNPATH.
3367 (("^(.+)target.* = 'ingen_gui.*" line prefix)
3368 (string-append prefix
3369 "linkflags=[\"-Wl,-rpath="
3370 out "/lib" "\"]," line))))
3371 #t)))))
3372 (inputs
3373 `(("boost" ,boost)
3374 ("python-rdflib" ,python-rdflib)
3375 ("python" ,python)
3376 ("jack" ,jack-1)
a2467954 3377 ("lv2" ,lv2)
951581a2
RW
3378 ("lilv" ,lilv)
3379 ("raul" ,raul-devel)
3380 ("ganv" ,ganv-devel)
3381 ("suil" ,suil)
3382 ("serd" ,serd)
3383 ("sord" ,sord)
3384 ("sratom" ,sratom)
3385 ("gtkmm" ,gtkmm-2)))
3386 (native-inputs
3387 `(("pkg-config" ,pkg-config)
3388 ("python-pygments" ,python-pygments)))
0d0252e4 3389 (home-page "https://drobilla.net/software/ingen")
951581a2
RW
3390 (synopsis "Modular audio processing system")
3391 (description "Ingen is a modular audio processing system for JACK and
3392LV2 based systems. Ingen is built around LV2 technology and a strict
3393separation of engine from user interface. The engine is controlled
3394exclusively through a protocol, and can execute as a headless process, with an
3395in-process GUI, or as an LV2 plugin. The GUI can run as a program which
3396communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
3397communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
3398plugin on any system where Ingen is installed. This allows users to visually
3399develop custom plugins for use in other applications without programming.")
3400 (license license:agpl3+))))
3401
b3410b44
RW
3402(define-public qmidiarp
3403 (package
3404 (name "qmidiarp")
b6313997 3405 (version "0.6.5")
b3410b44
RW
3406 (source (origin
3407 (method url-fetch)
3408 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
3409 version "/qmidiarp-" version ".tar.bz2"))
3410 (sha256
3411 (base32
b6313997 3412 "043yh1p0rrbj1v840y27529m9260g55gvh1km8az4jxy7mns58r2"))))
b3410b44
RW
3413 (build-system gnu-build-system)
3414 (arguments
3415 `(#:configure-flags
3416 (list "--enable-qt5"
3417 "CXXFLAGS=-std=gnu++11")))
3418 (inputs
3419 `(("qtbase" ,qtbase)
3420 ("alsa-lib" ,alsa-lib)
3421 ("jack" ,jack-1)
3422 ("liblo" ,liblo)
3423 ("lv2" ,lv2)))
3424 (native-inputs
3425 `(("pkg-config" ,pkg-config)
3426 ("qttools" ,qttools)))
3427 (home-page "http://qmidiarp.sourceforge.net/")
3428 (synopsis "MIDI arpeggiator")
3429 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
3430sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
3431modules running in parallel.")
3432 (license license:gpl2+)))
3433
ff49437d
RW
3434(define-public qmidiroute
3435 (package
3436 (name "qmidiroute")
3437 (version "0.4.0")
3438 (source (origin
3439 (method url-fetch)
3440 (uri (string-append "mirror://sourceforge/alsamodular/QMidiRoute/"
3441 version "/qmidiroute-" version ".tar.bz2"))
3442 (sha256
3443 (base32
3444 "19v1ppbglgl3z9v7xdqc0k33w71cqq8a7d6ihvfs7iz77dygrih9"))))
3445 (build-system gnu-build-system)
3446 (arguments
3447 `(#:configure-flags
3448 (list "--enable-qt5"
3449 "CXXFLAGS=-std=gnu++11")))
3450 (inputs
3451 `(("qtbase" ,qtbase)
3452 ("alsa-lib" ,alsa-lib)))
3453 (native-inputs
3454 `(("pkg-config" ,pkg-config)
3455 ("qttools" ,qttools)))
3456 (home-page "http://alsamodular.sourceforge.net/")
3457 (synopsis "MIDI event router and filter")
3458 (description "QMidiRoute is a MIDI event router and filter. MIDI note,
3459control change, program change and pitch bend events are logged, and can be
3460filtered, redirected and transformed into other events according to MIDI maps
3461defined as tabs in the main control surface.")
3462 (license license:gpl2+)))
3463
5a66e25c
RW
3464(define-public seq24
3465 (package
3466 (name "seq24")
3467 (version "0.9.3")
3468 (source (origin
3469 (method url-fetch)
3470 (uri (string-append "https://launchpad.net/seq24/trunk/"
3471 version "/+download/seq24-"
3472 version ".tar.bz2"))
3473 (sha256
3474 (base32
3475 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
3476 (patches (search-patches "seq24-rename-mutex.patch"))))
3477 (build-system gnu-build-system)
3478 (arguments
3479 `(#:configure-flags
3480 (list "CXXFLAGS=-std=gnu++11")))
3481 (inputs
3482 `(("gtkmm" ,gtkmm-2)
3483 ("alsa-lib" ,alsa-lib)
3484 ("jack" ,jack-1)
3485 ("lash" ,lash)))
3486 (native-inputs
3487 `(("pkg-config" ,pkg-config)))
3488 (home-page "https://edge.launchpad.net/seq24/")
3489 (synopsis "Real-time MIDI sequencer")
3490 (description "Seq24 is a real-time MIDI sequencer. It was created to
3491provide a very simple interface for editing and playing MIDI loops.")
3492 (license license:gpl2+)))
3493
d3db5efb
LF
3494(define-public python-discogs-client
3495 (package
3496 (name "python-discogs-client")
3497 (version "2.2.1")
3498 (source (origin
3499 (method url-fetch)
3500 (uri (pypi-uri "discogs-client" version))
3501 (sha256
3502 (base32
3503 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
3504 (build-system python-build-system)
3505 (propagated-inputs
3506 `(("python-oauthlib" ,python-oauthlib)
3507 ("python-requests" ,python-requests)))
3508 (native-inputs
3509 `(("python-six" ,python-six)))
3510 (home-page "https://github.com/discogs/discogs_client")
3511 (synopsis "Official Python client for the Discogs API")
3512 (description "This is the official Discogs API client for Python. It enables
3513you to query the Discogs database for information on artists, releases, labels,
3514users, Marketplace listings, and more. It also supports OAuth 1.0a
3515authorization, which allows you to change user data such as profile information,
3516collections and wantlists, inventory, and orders.")
80983df3 3517 (license license:bsd-2)))
d3db5efb
LF
3518
3519(define-public python2-discogs-client
80983df3 3520 (package-with-python2 python-discogs-client))
a4f05b46 3521
3522(define-public libsmf
3523 (package
3524 (name "libsmf")
3525 (version "1.3")
3526 (source
3527 (origin
3528 (method url-fetch)
3529 ;; SF download page says development moved, but the link it points to
3530 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
3531 ;; it but made no release so far (https://github.com/stump/libsmf).
3532 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
3533 version "/libsmf-" version ".tar.gz"))
3534 (sha256
3535 (base32
3536 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
3537 (build-system gnu-build-system)
3538 (outputs '("out"
3539 "static")) ; 88KiB of .a files
3540 (arguments
3541 `(#:phases
3542 (modify-phases %standard-phases
3543 (add-after 'install 'move-static-libraries
3544 (lambda* (#:key outputs #:allow-other-keys)
3545 ;; Move static libraries to the "static" output.
3546 (let* ((out (assoc-ref outputs "out"))
3547 (lib (string-append out "/lib"))
3548 (static (assoc-ref outputs "static"))
3549 (slib (string-append static "/lib")))
3550 (mkdir-p slib)
3551 (for-each (lambda (file)
3552 (install-file file slib)
3553 (delete-file file))
3554 (find-files lib "\\.a$"))
3555 #t))))))
3556 (inputs
3557 `(("readline" ,readline)
3558 ("glib" ,glib)))
3559 (native-inputs
3560 `(("doxygen" ,doxygen)
3561 ("pkg-config" ,pkg-config)))
3562 (home-page "http://libsmf.sourceforge.net/")
3563 (synopsis "Standard MIDI File format library")
3564 (description
3565 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3566conversions between time and pulses, tempo map handling and more. The only dependencies
3567are a C compiler and glib. Full API documentation and examples are included.")
3568 (license license:bsd-2)))
a42619e5
RF
3569
3570(define-public lmms
3571 (package
3572 (name "lmms")
3573 (version "1.1.3")
3574 (source
3575 (origin
3a0592ae
RW
3576 (method git-fetch)
3577 (uri (git-reference
3578 (url "https://github.com/LMMS/lmms.git")
3579 (commit (string-append "v" version))))
3580 (file-name (git-file-name name version))
a42619e5
RF
3581 (sha256
3582 (base32
3a0592ae 3583 "03hhymc6d73fa3wbcqb7rm1l03zkw605k5i9kvkvjmv488bqh3pd"))))
a42619e5
RF
3584 (build-system cmake-build-system)
3585 (arguments
3586 `(#:tests? #f ; no tests
3587 #:phases
3588 (modify-phases %standard-phases
ab2ccf4c
KK
3589 (add-before 'configure 'set-ldflags
3590 (lambda* (#:key outputs #:allow-other-keys)
3591 (setenv "LDFLAGS"
3592 (string-append
3593 "-Wl,-rpath=\""
3594 (assoc-ref outputs "out") "/lib/lmms"
3595 ":"
3596 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3597 "\""))
3598 #t))
3599 (add-before 'configure 'remove-Werror
3600 (lambda _
3601 (substitute* "CMakeLists.txt"
3602 (("SET\\(WERROR_FLAGS \"\\$\\{WERROR_FLAGS\\} -Werror")
3603 "SET(WERROR_FLAGS \"${WERROR_FLAGS}"))
3604 #t))
3605 (add-before 'reset-gzip-timestamps 'make-manpages-writable
3606 (lambda* (#:key outputs #:allow-other-keys)
3607 (map (lambda (file)
3608 (make-file-writable file))
3609 (find-files (string-append (assoc-ref outputs "out")
3610 "/share/man")
3611 ".*\\.gz$"))
3612 #t)))))
a42619e5
RF
3613 (native-inputs
3614 `(("pkg-config" ,pkg-config)))
3615 (inputs
3616 `(("sdl" ,sdl)
3617 ("qt" ,qt-4)
3618 ("fltk" ,fltk)
3619 ("libogg" ,libogg)
3620 ("libsamplerate" ,libsamplerate)
9b6dc31b 3621 ("fluidsynth" ,fluidsynth-1) ;XXX: try using 2.x when updating
a42619e5
RF
3622 ("libvorbis" ,libvorbis)
3623 ("alsa-lib" ,alsa-lib)
3624 ("portaudio" ,portaudio)
3625 ("ladspa" ,ladspa)
3626 ("libsndfile1" ,libsndfile)
3627 ("libxft" ,libxft)
3628 ("freetype2" ,freetype)
3629 ("fftw3f" ,fftwf)))
3630 (home-page "https://lmms.io/")
3631 (synopsis "Music composition tool")
3632 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3633melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3634audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3635 (license license:gpl2+)))
a7a7186c
NG
3636
3637(define-public musescore
3638 (package
3639 (name "musescore")
00e18f9f 3640 (version "3.0.2")
a7a7186c 3641 (source (origin
545ceac8
NG
3642 (method git-fetch)
3643 (uri (git-reference
3644 (url "https://github.com/musescore/MuseScore.git")
3645 (commit (string-append "v" version))))
3646 (file-name (git-file-name name version))
a7a7186c
NG
3647 (sha256
3648 (base32
00e18f9f 3649 "1w9il6gg0dh4yi20nbdcibx5z5z4bvzppq8wsqf1l916hnczsj3s"))
a7a7186c
NG
3650 (modules '((guix build utils)))
3651 (snippet
3652 ;; Un-bundle OpenSSL and remove unused libraries.
3653 '(begin
3654 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3655 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3656 ""))
3657 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3658 (("#include <openssl/.*") ""))
3659 (for-each delete-file-recursively
3660 '("thirdparty/freetype"
3661 "thirdparty/openssl"
3662 "thirdparty/portmidi"))
00e18f9f
NG
3663 #t))
3664 ;; Fix compilation error due to BUILD_WEBENGINE CMake option not
3665 ;; properly handled. Applied upstream already:
3666 ;; <https://github.com/musescore/MuseScore/commit/bb0c1a9b4940f3f6b52c0df535289ec8a3bc9e03>
3667 (patches (search-patches "musescore-fix-use_webengine.patch"))))
11d44d0b 3668 (build-system cmake-build-system)
a7a7186c 3669 (arguments
11d44d0b
NG
3670 `(#:configure-flags
3671 `("-DUSE_SYSTEM_FREETYPE=ON"
3672 "-DBUILD_WEBENGINE=OFF"
3673 "-DDOWNLOAD_SOUNDFONT=OFF")
3674 ;; There are tests, but no simple target to run. The command used to
3675 ;; run them is:
a7a7186c
NG
3676 ;;
3677 ;; make debug && sudo make installdebug && cd \
3678 ;; build.debug/mtest && make && ctest
3679 ;;
3680 ;; Basically, it requires to start a whole new build process.
3681 ;; So we simply skip them.
11d44d0b 3682 #:tests? #f))
a7a7186c
NG
3683 (inputs
3684 `(("alsa-lib" ,alsa-lib)
3685 ("freetype" ,freetype)
3686 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3687 ("jack" ,jack-1)
3688 ("lame" ,lame)
3689 ("libogg" ,libogg)
3690 ("libsndfile" ,libsndfile)
3691 ("libvorbis" ,libvorbis)
3692 ("portaudio" ,portaudio)
b3891a25 3693 ("portmidi" ,portmidi)
a7a7186c
NG
3694 ("pulseaudio" ,pulseaudio)
3695 ("qtbase" ,qtbase)
3696 ("qtdeclarative" ,qtdeclarative)
3697 ("qtscript" ,qtscript)
3698 ("qtsvg" ,qtsvg)
a7a7186c
NG
3699 ("qtxmlpatterns" ,qtxmlpatterns)))
3700 (native-inputs
11d44d0b 3701 `(("pkg-config" ,pkg-config)
a7a7186c
NG
3702 ("qttools" ,qttools)))
3703 (synopsis "Music composition and notation software")
3704 (description "MuseScore is a music score typesetter. Its main purpose is
3705the creation of high-quality engraved musical scores in a WYSIWYG environment.
3706
3707It supports unlimited staves, linked parts and part extraction, tablature,
3708MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3709lyrics (multiple verses), fretboard diagrams, and in general everything
3710commonly used in sheet music. Style options and style sheets to change the
3711appearance and layout are provided.
3712
3713MuseScore can also play back scores through the built-in sequencer and SoundFont
3714sample library.")
3715 (home-page "https://musescore.org")
3716 (license license:gpl2)))
2434f5ce 3717
43188faf
RW
3718(define-public muse-sequencer
3719 (package
3720 (name "muse-sequencer")
3721 (version "3.0.0")
3722 (source (origin
3723 (method git-fetch)
3724 (uri (git-reference
3725 (url "https://github.com/muse-sequencer/muse.git")
3726 (commit (string-append "muse_"
3727 (string-map (lambda (c)
3728 (if (char=? c #\.)
3729 #\_ c)) version)))))
3730 (file-name (string-append name "-" version "-checkout"))
3731 (sha256
3732 (base32
3733 "1nninz8qyqlxxjdnrm79y3gr3056pga9l2fsqh674jd3cjvafya3"))))
3734 (build-system cmake-build-system)
3735 (arguments
3736 `(#:tests? #f ; there is no test target
3737 #:configure-flags
3738 (list "-DENABLE_LV2_SUPPLIED=OFF"
3739 "-DENABLE_RTAUDIO=OFF" ; FIXME: not packaged
3740 "-DENABLE_INSTPATCH=OFF" ; FIXME: not packaged
3741 "-DENABLE_VST_NATIVE=OFF")
3742 #:phases
3743 (modify-phases %standard-phases
3744 (add-after 'unpack 'chdir
3745 (lambda _ (chdir "muse3"))))))
3746 (inputs
3747 `(("alsa-lib" ,alsa-lib)
3748 ("lash" ,lash)
3749 ("jack" ,jack-1)
3750 ("liblo" ,liblo)
3751 ("dssi" ,dssi)
3752 ("ladspa" ,ladspa)
3753 ("lv2" ,lv2)
3754 ("lilv" ,lilv)
3755 ("sord" ,sord)
3756 ("libsndfile" ,libsndfile)
3757 ("libsamplerate" ,libsamplerate)
3758 ("fluidsynth" ,fluidsynth)
3759 ("pcre" ,pcre)
3760 ("qtbase" ,qtbase)
3761 ("qtsvg" ,qtsvg)))
3762 (native-inputs
3763 `(("pkg-config" ,pkg-config)
3764 ("qttools" ,qttools)))
3765 (home-page "http://muse-sequencer.org")
3766 (synopsis "MIDI/Audio sequencer")
3767 (description "MusE is a MIDI/Audio sequencer with recording and editing
3768capabilities. Its audio sequencer supports the LADSPA, DSSI, and LV2 audio
3769plugin formats; the MIDI sequencer provides a piano roll, a drum editor, a
3770list view, and a score editor. MusE aims to be a complete multitrack virtual
3771studio.")
3772 (license license:gpl2+)))
3773
2434f5ce
DM
3774(define-public dssi
3775 (package
3776 (name "dssi")
3777 (version "1.1.1")
3778 (source (origin
3779 (method url-fetch)
3780 (uri (string-append
3781 "mirror://sourceforge/dssi/dssi/" version
3782 "/dssi-" version ".tar.gz"))
3783 (sha256
3784 (base32
3785 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3786 (build-system gnu-build-system)
3787 (inputs
3788 `(("alsa-lib" ,alsa-lib)
0e78801a 3789 ("jack" ,jack-1)
2434f5ce
DM
3790 ("ladspa" ,ladspa)
3791 ("libsamplerate" ,libsamplerate)
3792 ("libsndfile" ,libsndfile)
3793 ("liblo" ,liblo)))
3794 (native-inputs
3795 `(("pkg-config" ,pkg-config)))
3796 (synopsis "Audio plugin API for soft synths and effects")
3797 (description "DSSI is a plugin API for software instruments with user
3798interfaces, permitting them to be hosted in-process by audio applications.
3799It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3800towards familiarity with MIDI. The DSSI distribution package contains
3801a JACK/ALSA-sequencer reference host and some plugins as well as the
3802specification and header.")
3803 (home-page "http://dssi.sourceforge.net/")
3804 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3805 ;; The vast majority of examples are in the public domain.
3806 (license (list license:lgpl2.1+ license:gpl2+))))
9bc38f28
DM
3807
3808(define-public rosegarden
3809 (package
3810 (name "rosegarden")
9bf98520 3811 (version "18.06")
9bc38f28
DM
3812 (source (origin
3813 (method url-fetch)
3814 (uri (string-append
3815 "mirror://sourceforge/rosegarden/rosegarden/"
3816 version "/rosegarden-" version ".tar.bz2"))
3817 (sha256
3818 (base32
9bf98520 3819 "04qc80sqb2ji42pq3mayhvqqn39hlxzymsywpbpzfpchr19chxx7"))))
9bc38f28
DM
3820 (build-system cmake-build-system)
3821 (arguments
3822 `(#:configure-flags '("-DUSE_QT5=1") ; "-DCMAKE_BUILD_TYPE=Release"
3823 #:phases
3824 (modify-phases %standard-phases
3825 (add-after 'unpack 'patch-tests
3826 (lambda _
3827 (substitute* "CMakeLists.txt"
3828 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
3829 ;; Make tests work.
3830 ((" -fvisibility=hidden") ""))
3831 #t))
3832 (add-after 'unpack 'fix-references
3833 (lambda* (#:key inputs #:allow-other-keys)
3834 (substitute* "src/gui/general/ProjectPackager.cpp"
3835 (("\"flac\\>")
3836 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
3837 (("\"wavpack\\>")
3838 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
3839 (("\"wvunpack\\>")
3840 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
3841 (("\"bash\\>")
3842 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
3843 (("\"tar\\>")
3844 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
3845 (substitute* "src/gui/general/LilyPondProcessor.cpp"
3846 (("\"convert-ly\\>")
3847 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
3848 (("\"lilypond\\>")
3849 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
3850 #t))
3851 (add-after 'unpack 'make-reproducible
3852 (lambda _
3853 ;; Prevent Last-Modified from being written.
3854 ;; The "*.qm" files that are used in locale.qrc would have a new
3855 ;; mtime otherwise that is written into qrc_locale.cpp in the
3856 ;; end - except when we disable it.
3857 (substitute* "src/CMakeLists.txt"
3858 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
3859 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
3860 ;; Extraneous.
3861 ;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
3862 ; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
3863 )
3864 ;; Make hashtable traversal order predicable.
3865 (setenv "QT_RCC_TEST" "1") ; important
3866 #t))
3867 (add-before 'check 'prepare-check
3868 (lambda _
3869 (setenv "QT_QPA_PLATFORM" "offscreen")
3870 ;; Tests create files in $HOME/.local/share/rosegarden .
3871 (mkdir-p "/tmp/foo")
3872 (setenv "HOME" "/tmp/foo")
9bf98520 3873 (setenv "XDG_RUNTIME_DIR" "/tmp/foo")
9bc38f28
DM
3874 #t)))))
3875 (inputs
3876 `(("alsa-lib" ,alsa-lib)
3877 ("bash" ,bash)
3878 ("dssi" ,dssi)
3879 ("flac" ,flac)
3880 ("fftwf" ,fftwf)
b94f250e 3881 ("jack" ,jack-1)
9bc38f28
DM
3882 ("ladspa" ,ladspa)
3883 ("liblo" ,liblo)
3884 ("libsamplerate" ,libsamplerate)
3885 ("lilypond" ,lilypond)
3886 ("lrdf" ,lrdf)
3887 ("qtbase" ,qtbase)
3888 ("tar" ,tar)
3889 ("lirc" ,lirc)
3890 ("wavpack" ,wavpack)
3891 ("zlib" ,zlib)))
3892 (native-inputs
3893 `(("pkg-config" ,pkg-config)
3894 ("qtlinguist" ,qttools)))
3895 (synopsis "Music composition and editing environment based around a MIDI
3896sequencer")
3897 (description "Rosegarden is a music composition and editing environment
3898based around a MIDI sequencer that features a rich understanding of music
3899notation and includes basic support for digital audio.")
9bf98520 3900 (home-page "https://www.rosegardenmusic.com/")
9bc38f28 3901 (license license:gpl2)))
30655652 3902
643817e4 3903(define-public patchmatrix
2394afa4
RW
3904 ;; There have been no releases for more than a year.
3905 (let ((commit "a0b0b1e791f4574d5abd059cfe1819c71e8b18d5")
3906 (revision "1"))
3907 (package
3908 (name "patchmatrix")
3909 (version (git-version "0.12.0" revision commit))
3910 (source (origin
3911 (method git-fetch)
3912 (uri (git-reference
3913 (url "https://github.com/OpenMusicKontrollers/patchmatrix.git")
3914 (commit commit)))
3915 (file-name (string-append "patchmatrix-" version "-checkout"))
3916 (sha256
3917 (base32
3918 "0pph4ra7aci3rbpqvvr564pi16vxrk448bmvp8985cd9lbjlrp3m"))))
3919 (build-system meson-build-system)
3920 (arguments
3921 '(#:tests? #f ; no test target
3922 #:phases
3923 (modify-phases %standard-phases
3924 (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
3925 (lambda* (#:key outputs #:allow-other-keys)
3926 (map make-file-writable
3927 (find-files (assoc-ref outputs "out") ".*\\.gz$"))
3928 #t)))))
3929 (inputs
3930 `(("jack" ,jack-1)
3931 ("lv2" ,lv2)
3932 ("mesa" ,mesa)))
3933 (native-inputs
3934 `(("pkg-config" ,pkg-config)))
3935 (home-page "https://github.com/OpenMusicKontrollers/patchmatrix")
3936 (synopsis "Simple JACK patch bay")
3937 (description "PatchMatrix is a patch bay for the JACK audio connection
643817e4
RW
3938kit. It provides a patch bay in flow matrix style for audio, MIDI, CV, and
3939OSC connections.")
2394afa4 3940 (license license:artistic2.0))))
643817e4 3941
30655652
RW
3942(define-public sorcer
3943 (package
3944 (name "sorcer")
3945 (version "1.1.3")
3946 (source (origin
3947 (method url-fetch)
3948 (uri (string-append "https://github.com/openAVproductions/"
3949 "openAV-Sorcer/archive/release-"
3950 version ".tar.gz"))
3951 (file-name (string-append name "-" version ".tar.gz"))
3952 (sha256
3953 (base32
3954 "07iyqj28wm0xc4arrq893bm12xjpz65db7ynrlmf6w8krg8wjmd0"))))
3955 (build-system cmake-build-system)
3956 (arguments
3957 `(#:tests? #f ; no tests included
3958 #:phases
3959 (modify-phases %standard-phases
e5af1f4a
EF
3960 (add-after 'unpack 'remove-architecture-specific-flags
3961 (lambda _
3962 (substitute* "CMakeLists.txt"
3963 (("-msse2 -mfpmath=sse") ""))
3964 #t))
30655652
RW
3965 (add-after 'unpack 'build-faust-sources
3966 (lambda* (#:key inputs #:allow-other-keys)
3967 (with-directory-excursion "faust"
3968 (delete-file "main.cpp")
d7e24652
RW
3969 (invoke "faust" "-i"
3970 "-a" "lv2synth.cpp"
3971 "-o" "main.cpp" "main.dsp")))))))
30655652
RW
3972 (inputs
3973 `(("boost" ,boost)
3974 ("lv2" ,lv2)
3975 ("ntk" ,ntk)))
3976 (native-inputs
3977 `(("faust" ,faust)
3978 ("pkg-config" ,pkg-config)))
3979 (home-page "http://openavproductions.com/sorcer/")
3980 (synopsis "Wavetable LV2 plugin synth")
3981 (description "Sorcer is a wavetable LV2 plugin synthesizer, targeted at
3982the electronic or dubstep genre.")
3983 (license license:gpl3+)))
60b7ed9c 3984
43925703
PL
3985(define-public libmygpo-qt
3986 (package
3987 (name "libmygpo-qt")
d09e31bd 3988 (version "1.1.0")
43925703
PL
3989 (source (origin
3990 (method url-fetch)
3991 (uri (string-append "http://stefan.derkits.at/files/"
3992 "libmygpo-qt/libmygpo-qt." version ".tar.gz"))
3993 (sha256
3994 (base32
01c48690
PL
3995 "1kg18qrq2rsswgzhl65r3mlyx7kpqg4wwnbp4yiv6svvmadmlxl2"))
3996 (patches (search-patches "libmygpo-qt-fix-qt-5.11.patch"
3997 "libmygpo-qt-missing-qt5-modules.patch"))))
43925703 3998 (build-system cmake-build-system)
43925703
PL
3999 (native-inputs
4000 `(("pkg-config" ,pkg-config)))
4001 (inputs
4002 `(("qt" ,qtbase)))
01c48690
PL
4003 (arguments
4004 `(#:configure-flags '("-DMYGPO_BUILD_TESTS=ON")
4005 ;; TODO: Enable tests when https://github.com/gpodder/gpodder/issues/446
4006 ;; is fixed.
4007 #:tests? #f))
43925703
PL
4008 (home-page "http://wiki.gpodder.org/wiki/Libmygpo-qt")
4009 (synopsis "Qt/C++ library wrapping the gpodder web service")
4010 (description "@code{libmygpo-qt} is a Qt/C++ library wrapping the
4011@url{https://gpodder.net} APIs. It allows applications to discover, manage
4012and track podcasts.")
4013 (license license:lgpl2.1+)))
f7ce2134
RW
4014
4015(define-public sonivox-eas
4016 (package
4017 (name "sonivox-eas")
4018 (version "1.1.0")
4019 (source (origin
4020 (method git-fetch)
4021 (uri (git-reference
4022 (url "https://github.com/pedrolcl/Linux-SonivoxEas.git")
4023 (commit (string-append "v" version))))
4024 (file-name (string-append name "-" version "-checkout"))
4025 (sha256
4026 (base32
4027 "0l9gs00p5g4k4qy6i7nv1mfi2n2wnsycwjrgrh9hxzam4irf2mw2"))))
4028 (build-system cmake-build-system)
4029 (arguments '(#:tests? #f)) ; there are no tests
4030 (inputs
4031 `(("alsa-lib" ,alsa-lib)
4032 ("drumstick" ,drumstick)
4033 ("pulseaudio" ,pulseaudio)
4034 ("qtbase" ,qtbase)))
4035 (native-inputs
4036 `(("pkg-config" ,pkg-config)))
4037 (home-page "https://github.com/pedrolcl/Linux-SonivoxEas")
4038 (synopsis "MIDI synthesizer library")
4039 (description "This project is a real time General MIDI synthesizer based
4040on the Sonivox EAS Synthesizer by Google. It does not need external
4041soundfonts, using embedded samples instead.")
4042 ;; Sonivox is released under the ASL2.0; the rest of the code is under
4043 ;; GPLv2+.
4044 (license (list license:gpl2+ license:asl2.0))))
92b36e3a
RW
4045
4046(define-public whysynth
4047 (package
4048 (name "whysynth")
4049 (version "20170701")
4050 (source (origin
4051 (method url-fetch)
4052 (uri (string-append "http://smbolton.com/whysynth/whysynth-"
4053 version ".tar.bz2"))
4054 (sha256
4055 (base32
4056 "02qbn0hbvn1iym4zxv35b201blg31yjpgh71h8db0j5zls2xc0m6"))))
4057 (build-system gnu-build-system)
4058 (inputs
4059 `(("dssi" ,dssi)
4060 ("liblo" ,liblo)
4061 ("fftwf" ,fftwf)
4062 ("gtk+" ,gtk+-2)
4063 ("ladspa" ,ladspa)
4064 ("alsa-lib" ,alsa-lib)))
4065 (native-inputs
4066 `(("pkg-config" ,pkg-config)))
4067 (home-page "http://smbolton.com/whysynth.html")
4068 (synopsis "DSSI software synthesizer")
4069 (description "WhySynth is a versatile softsynth which operates as a plugin
4070for the DSSI Soft Synth Interface. A brief list of features:
4071
4072@enumerate
4073@item 4 oscillators, 2 filters, 3 LFOs, and 5 envelope generators per voice.
4074@item 11 oscillator modes: minBLEP, wavecycle, chorused wavecycle,
4075 asynchronous granular, three FM modes, waveshaper, noise, PADsynth, and phase
4076 distortion.
4077@item 10 filter modes.
4078@item flexible modulation and mixdown options, plus effects.
4079@end enumerate
4080")
4081 (license license:gpl2+)))
6b445c57 4082
4083(define-public libdiscid
4084 (package
4085 (name "libdiscid")
4086 (version "0.6.2")
4087 (source
4088 (origin
4089 (method url-fetch)
4090 (uri (string-append
4091 "http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/libdiscid-"
4092 version ".tar.gz"))
4093 (sha256
4094 (base32
4095 "1f9irlj3dpb5gyfdnb1m4skbjvx4d4hwiz2152f83m0d9jn47r7r"))))
4096 (arguments `(#:test-target "check"))
4097 (build-system cmake-build-system)
4098 (home-page "https://musicbrainz.org/doc/libdiscid")
4099 (synopsis "Disc id reader library")
4100 (description "libdiscid is a C library for creating MusicBrainz and freedb
4101disc IDs from audio CDs. It reads a CD's table of contents (TOC) and generates
4102an identifier which can be used to lookup the CD at MusicBrainz. Additionally,
4103it provides a submission URL for adding the disc ID to the database and gathers
4104ISRCs and the MCN (=UPC/EAN) from disc.")
4105 (license license:lgpl2.1+)))
1ea29aa0 4106
1331a6c0
GH
4107(define-public python-discid
4108 (package
4109 (name "python-discid")
4110 (version "1.1.1")
4111 (source
4112 (origin
4113 (method url-fetch)
4114 (uri (pypi-uri "discid" version))
4115 (sha256
4116 (base32
4117 "1fgp67nhqlbvhhwrcxq5avil7alpzw4s4579hlyvxzbphdnbz8vq"))))
4118 (build-system python-build-system)
4119 (inputs
4120 `(("libdiscid" ,libdiscid)))
4121 (arguments
4122 `(#:phases
4123 (modify-phases %standard-phases
4124 (add-before 'build 'set-libdiscid
4125 ;; Set path of libdiscid
4126 (lambda* (#:key inputs #:allow-other-keys)
4127 (let ((discid (assoc-ref inputs "libdiscid")))
4128 (substitute* "discid/libdiscid.py"
4129 (("lib_name = (.*)$" all name)
4130 (string-append "lib_name = \"" discid
4131 "/lib/libdiscid.so.0\"\n")))
4132 #t))))))
4133 (home-page "https://python-discid.readthedocs.io/")
4134 (synopsis "Python bindings for Libdiscid")
4135 (description
4136 "This package provides Python bindings for the Libdiscid library. The
4137main purpose is the calculation of @url{https://musicbrainz.org/doc/Disc%20ID,
4138Disc IDs} for use with the MusicBrainz database. Additionally the disc
4139@dfn{Media Catalog Number} (MCN) and track @dfn{International Standard
4140Recording Code} (ISRC) can be extracted.}")
4141 (license license:lgpl3+)))
4142
1ea29aa0 4143(define-public libmusicbrainz
4144 (package
4145 (name "libmusicbrainz")
4146 (version "5.1.0")
4147 (source
4148 (origin
4149 (method url-fetch)
4150 (uri (string-append
4151 "https://github.com/metabrainz/libmusicbrainz/releases/download/release-"
4152 version "/libmusicbrainz-" version ".tar.gz"))
4153 (sha256
4154 (base32
8c71a52c 4155 "0ikb9igyyk28jm34raxfzkw2qyn4nzzwsymdyprp7cmvi6g2ajb7"))))
1ea29aa0 4156 (build-system cmake-build-system)
69cb939e
RW
4157 (arguments
4158 `(#:phases
4159 (modify-phases %standard-phases
4160 (replace 'check
4161 (lambda _
4162 ;; requires network connections
4163 ;; (invoke "tests/mbtest")
4164 (invoke "tests/ctest")
4165 #t)))))
1ea29aa0 4166 (inputs `(("neon" ,neon)
4167 ("libxml2" ,libxml2)))
4168 (native-inputs `(("pkg-config" ,pkg-config)))
4169 (home-page "https://musicbrainz.org/doc/libmusicbrainz")
4170 (synopsis "MusicBrainz client library")
4171 (description "The MusicBrainz Client Library (libmusicbrainz), also known as
4172mb_client, is a development library geared towards developers who wish to add
4173MusicBrainz lookup capabilities to their applications.")
4174 (license license:lgpl2.1+)))
87d1b7b0 4175
b0c2c5ab
LC
4176(define-public perl-musicbrainz-discid
4177 (package
4178 (name "perl-musicbrainz-discid")
4179 (version "0.04")
4180 (source (origin
4181 (method url-fetch)
4182 (uri (string-append
4183 "mirror://cpan/authors/id/N/NJ/NJH/MusicBrainz-DiscID-"
4184 version ".tar.gz"))
4185 (sha256
4186 (base32
4187 "1i4qk1qfcmxdibqkyfjrrjdq2zk42vjcz590qgiyc47fi9p6xx1j"))))
4188 (build-system perl-build-system)
4189 (native-inputs `(("pkg-config" ,pkg-config)
4190 ("which" ,which)))
4191 (inputs `(("libdiscid" ,libdiscid)))
4192 (home-page "https://metacpan.org/release/MusicBrainz-DiscID")
4193 (synopsis "Perl interface to the MusicBrainz libdiscid library")
4194 (description
4195 "The @code{MusicBrainz::DiscID} module is a Perl interface to the
4196MusicBrainz libdiscid library, allowing you to manipulate digital audio
4197compact disc (CDDA) identifiers.")
4198 (license license:gpl2)))
4199
b2961dda
LC
4200(define-public perl-webservice-musicbrainz
4201 (package
4202 (name "perl-webservice-musicbrainz")
4203 (version "1.0.4")
4204 (source (origin
4205 (method url-fetch)
4206 (uri (string-append
4207 "mirror://cpan/authors/id/B/BF/BFAIST/WebService-MusicBrainz-"
4208 version ".tar.gz"))
4209 (sha256
4210 (base32
4211 "182z3xjajk6s7k5xm3kssjy3hqx2qbnq4f8864hma098ryy2ph3a"))))
4212 (build-system perl-build-system)
4213 (arguments
4214 ;; Tests try to connect to http://musicbrainz.org.
4215 '(#:tests? #f))
4216 (native-inputs
4217 `(("perl-module-build" ,perl-module-build)))
4218 (propagated-inputs
4219 `(("perl-mojolicious" ,perl-mojolicious)))
4220 (home-page "https://metacpan.org/release/WebService-MusicBrainz")
4221 (synopsis "Web service API to the MusicBrainz database")
4222 (description
4223 "This module searches the MusicBrainz database through their web service
4224at @code{musicbrainz.org}.")
4225 (license license:perl-license)))
4226
87d1b7b0
PN
4227(define-public clyrics
4228 (package
4229 (name "clyrics")
4230 (version "0.10")
4231 (source
4232 (origin
234a1825
RW
4233 (method git-fetch)
4234 (uri (git-reference
4235 (url "https://github.com/trizen/clyrics.git")
4236 (commit version)))
4237 (file-name (git-file-name name version))
87d1b7b0
PN
4238 (sha256
4239 (base32
234a1825 4240 "1qvj4dyipkkdccx5hci4z0q23i54ldk6hh7x5m35a7f70rrj6fbk"))))
87d1b7b0 4241 (build-system trivial-build-system)
87d1b7b0
PN
4242 (inputs
4243 `(("bash" ,bash) ;for the wrapped program
4244 ("perl" ,perl)
4245 ("perl-www-mechanize" ,perl-www-mechanize)
4246 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
4247 ;; Required or else LWP will fail with "GET https://www.google.com/ ==>
4248 ;; 500 Can't verify SSL peers without knowing which Certificate
4249 ;; Authorities to trust".
4250 ("perl-mozilla-ca" ,perl-mozilla-ca)))
4251 (arguments
4252 `(#:modules ((guix build utils))
4253 #:builder (begin
4254 (use-modules (guix build utils)
4255 (ice-9 match)
4256 (srfi srfi-26))
4257 (let* ((source (assoc-ref %build-inputs "source"))
87d1b7b0
PN
4258 (output (assoc-ref %outputs "out")))
4259 (setenv "PATH"
4260 (string-append
87d1b7b0
PN
4261 (assoc-ref %build-inputs "bash") "/bin" ":"
4262 (assoc-ref %build-inputs "perl") "/bin" ":"))
234a1825 4263 (copy-recursively source (getcwd))
87d1b7b0
PN
4264 (patch-shebang "clyrics")
4265 (substitute* "clyrics"
4266 (("/usr/share") output))
4267 (install-file "clyrics" (string-append output "/bin"))
4268 (wrap-program (string-append output "/bin/clyrics")
4269 `("PERL5LIB" ":" =
4270 ,(delete
4271 ""
4272 (map (match-lambda
4273 (((? (cut string-prefix? "perl-" <>) name) . dir)
4274 (string-append dir "/lib/perl5/site_perl"))
4275 (_ ""))
4276 %build-inputs))))
4277 (copy-recursively "plugins" (string-append output "/clyrics"))
4278 #t))))
4279 (home-page "https://github.com/trizen/clyrics")
4280 (synopsis "Extensible lyrics fetcher")
4281 (description
4282 "Clyrics is an extensible command-line tool to fetch the lyrics of songs.
4283It can be used in daemon mode along with the Music-on-Console (MOC) and cmus
4284console music players.")
4285 (license license:gpl3+)))
5703380b
PN
4286
4287(define-public demlo
4288 (let ((commit "fe9ec4c8ac2fa995ec18e6ac86d50d46df06ec01")
4289 (revision "0"))
4290 (package
4291 (name "demlo")
4292 (version (git-version "3.8" revision commit))
4293 (source
4294 (origin
4295 (method git-fetch)
4296 (uri (git-reference
4297 (url
4298 "https://gitlab.com/ambrevar/demlo")
4299 (commit commit)))
4300 (file-name (git-file-name name version))
4301 (sha256
4302 (base32
4303 "1afkbqhzn6da7zaf5ab7dvyqj1izqhzprwfb4hw448fllda9bdvk"))))
4304 (build-system go-build-system)
4305 (native-inputs
4306 `(("lua" ,lua)
4307 ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
4308 ("go-github-com-mattn-go-colorable" ,go-github-com-mattn-go-colorable)
4309 ("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua)
4310 ("go-gitlab-com-ambrevar-damerau" ,go-gitlab-com-ambrevar-damerau)
4311 ("go-gitlab-com-ambrevar-golua-unicode" ,go-gitlab-com-ambrevar-golua-unicode)
4312 ("go-github-com-mgutz-ansi" ,go-github-com-mgutz-ansi)
4313 ("go-github-com-michiwend-gomusicbrainz" ,go-github-com-michiwend-gomusicbrainz)
4314 ("go-github-com-stevedonovan-luar" ,go-github-com-stevedonovan-luar)
4315 ("go-github-com-wtolson-go-taglib" ,go-github-com-wtolson-go-taglib)
4316 ("go-github-com-yookoala-realpath" ,go-github-com-yookoala-realpath)))
4317 (inputs
4318 `(("chromaprint" ,chromaprint)
4319 ("ffmpeg" ,ffmpeg)))
4320 (arguments
4321 `(#:import-path "gitlab.com/ambrevar/demlo"
4322 #:phases
4323 (modify-phases %standard-phases
4324 (add-after 'install 'wrap-program
4325 (lambda* (#:key inputs outputs #:allow-other-keys)
4326 (let ((out (assoc-ref outputs "out"))
4327 (ffmpeg (assoc-ref inputs "ffmpeg"))
4328 (chromaprint (assoc-ref inputs "chromaprint")))
4329 (wrap-program (string-append out "/bin/demlo")
4330 `("XDG_DATA_DIRS" ":" prefix (,out))
4331 `("PATH" ":" prefix
4332 ,(map (lambda (dir)
4333 (string-append dir "/bin:"
4334 dir "/sbin"))
4335 (list ffmpeg chromaprint))))
4336 #t)))
4337 (add-after 'install-source 'install-scripts
4338 (lambda* (#:key outputs #:allow-other-keys)
4339 (let* ((out (assoc-ref outputs "out"))
4340 (root (string-append out "/src/gitlab.com/ambrevar/demlo"))
4341 (xdg-data-dirs (string-append out "/demlo")))
4342 (copy-recursively (string-append root "/actions")
4343 (string-append xdg-data-dirs "/actions"))
4344 (copy-recursively (string-append root "/scripts")
4345 (string-append xdg-data-dirs "/scripts"))
4346 (install-file (string-append root "/config.lua") xdg-data-dirs)
4347 ;; TODO: Test fish completion.
4348 (install-file (string-append root "/completion/demlo.fish")
4349 (string-append out "/share/fish/vendor_completions.d"))
4350 #t))))))
4351 (home-page "https://gitlab.com/ambrevar/demlo")
4352 (synopsis "Dynamic and extensible music library organizer")
4353 (description "Demlo is a music library organizer. It can encode, fix
4354case, change folder hierarchy according to tags or file properties, tag from
4355an online database, copy covers while ignoring duplicates or those below a
4356quality threshold, and much more. It makes it possible to manage your
4357libraries uniformly and dynamically. You can write your own rules to fit your
4358needs best.
4359
4360Demlo can address any of these recurring music library issues (and much more):
4361
4362@itemize
4363@item Fix the lack of folder structure.
4364@item Normalize tags, fix their case, chose which tags to keep and which to
4365discard.
4366@item Handle lossy and lossless audio differently.
4367@item Handle mp3 id3tags hell...
4368@item Handle multiple covers, whether embedded and/or external, resize covers,
4369discard bad quality ones.
4370@end itemize\n")
4371 (license license:expat))))
e42ba3da
LF
4372
4373(define-public lpd8editor
4374 (package
4375 (name "lpd8editor")
4376 (version "0.0.12")
4377 (source (origin
4378 (method git-fetch)
4379 (uri (git-reference
4380 (url "https://github.com/charlesfleche/lpd8editor.git")
4381 (commit (string-append "v" version))))
4382 (file-name (git-file-name name version))
4383 (sha256
4384 (base32
4385 "1v3fz8h1zs7kkl80faah79pp6yqwz0j7bkv3dbmh2hp42zbfiz1q"))))
4386 (build-system gnu-build-system)
4387 (arguments
4388 '(#:phases
4389 (modify-phases %standard-phases
4390 (add-after 'unpack 'setenv
4391 (lambda _
4392 (setenv "INSTALL_PREFIX"
4393 (assoc-ref %outputs "out"))))
4394 (delete 'configure) ; no configure script
4395 (add-before 'build 'qmake
4396 (lambda _ (invoke "qmake"))))))
4397 (native-inputs
4398 `(("pkg-config" ,pkg-config)))
4399 (inputs
4400 `(("alsa" ,alsa-lib)
4401 ("qtbase" ,qtbase)
4402 ("qtsvg" ,qtsvg)))
4403 (synopsis "Graphical editor for the Akai LPD8 MIDI controller")
4404 (description "lpd8editor is a graphical patch editor for the Akai LPD8 MIDI
4405controller.")
4406 (home-page "https://github.com/charlesfleche/lpd8editor")
4407 (license license:expat)))