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