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