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