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