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