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