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