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