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