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