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