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