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