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