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