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