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