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