gnu: Add hexedit.
[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>
a763ce7d 3;;; Copyright © 2015, 2016 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>
b7367762 6;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
3f7a182d 7;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
21f05134 8;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
6d3ef286 9;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
1b6826d3
RW
10;;;
11;;; This file is part of GNU Guix.
12;;;
13;;; GNU Guix is free software; you can redistribute it and/or modify it
14;;; under the terms of the GNU General Public License as published by
15;;; the Free Software Foundation; either version 3 of the License, or (at
16;;; your option) any later version.
17;;;
18;;; GNU Guix is distributed in the hope that it will be useful, but
19;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21;;; GNU General Public License for more details.
22;;;
23;;; You should have received a copy of the GNU General Public License
24;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25
26(define-module (gnu packages music)
27 #:use-module (guix utils)
28 #:use-module (guix packages)
29 #:use-module (guix download)
8e80244a 30 #:use-module (guix git-download)
1b6826d3
RW
31 #:use-module ((guix licenses) #:prefix license:)
32 #:use-module (guix build-system gnu)
8b9ec354 33 #:use-module (guix build-system cmake)
821664f1 34 #:use-module (guix build-system python)
8e80244a 35 #:use-module (guix build-system waf)
1b6826d3 36 #:use-module (gnu packages)
ddfddb0c 37 #:use-module (gnu packages algebra)
c267cc15 38 #:use-module (gnu packages audio)
2d0fd07b 39 #:use-module (gnu packages autotools)
b7367762 40 #:use-module (gnu packages backup)
8b9ec354 41 #:use-module (gnu packages base) ;libbdf
1b6826d3 42 #:use-module (gnu packages bison)
b7367762 43 #:use-module (gnu packages boost)
e8069d01 44 #:use-module (gnu packages cdrom)
8b9ec354
RW
45 #:use-module (gnu packages code)
46 #:use-module (gnu packages check)
47 #:use-module (gnu packages compression)
aa0edd3f 48 #:use-module (gnu packages curl)
13416a10 49 #:use-module (gnu packages cyrus-sasl)
1b6826d3 50 #:use-module (gnu packages docbook)
99828fa7 51 #:use-module (gnu packages documentation)
13416a10 52 #:use-module (gnu packages file)
1b6826d3 53 #:use-module (gnu packages flex)
8e80244a 54 #:use-module (gnu packages fltk)
1b6826d3
RW
55 #:use-module (gnu packages fonts)
56 #:use-module (gnu packages fontutils)
3bf429af 57 #:use-module (gnu packages freedesktop)
6260d1a8 58 #:use-module (gnu packages gcc)
aa0edd3f 59 #:use-module (gnu packages gnupg)
1b6826d3
RW
60 #:use-module (gnu packages gettext)
61 #:use-module (gnu packages ghostscript)
ec8da0e2 62 #:use-module (gnu packages gl)
8e80244a 63 #:use-module (gnu packages glib)
c267cc15 64 #:use-module (gnu packages gnome)
770305f4 65 #:use-module (gnu packages graphics)
1b6826d3
RW
66 #:use-module (gnu packages gtk)
67 #:use-module (gnu packages guile)
c267cc15 68 #:use-module (gnu packages image)
1b6826d3 69 #:use-module (gnu packages imagemagick)
6260d1a8 70 #:use-module (gnu packages java)
c267cc15
RW
71 #:use-module (gnu packages linux) ; for alsa-utils
72 #:use-module (gnu packages man)
73 #:use-module (gnu packages mp3)
3bf429af 74 #:use-module (gnu packages mpd)
e8069d01 75 #:use-module (gnu packages ncurses)
1b6826d3 76 #:use-module (gnu packages netpbm)
821664f1 77 #:use-module (gnu packages pdf)
1b6826d3
RW
78 #:use-module (gnu packages perl)
79 #:use-module (gnu packages pkg-config)
d231bb35 80 #:use-module (gnu packages pulseaudio) ;libsndfile
1b6826d3 81 #:use-module (gnu packages python)
8b9ec354 82 #:use-module (gnu packages qt)
d231bb35 83 #:use-module (gnu packages rdf)
c493679f 84 #:use-module (gnu packages readline)
1b6826d3 85 #:use-module (gnu packages rsync)
21d18113 86 #:use-module (gnu packages sdl)
2d0fd07b 87 #:use-module (gnu packages tcl)
1b6826d3 88 #:use-module (gnu packages texinfo)
8f9ac901 89 #:use-module (gnu packages tex)
13416a10 90 #:use-module (gnu packages tls)
e8069d01 91 #:use-module (gnu packages video)
8b9ec354 92 #:use-module (gnu packages web)
c30a66de 93 #:use-module (gnu packages wxwidgets)
c267cc15 94 #:use-module (gnu packages xml)
ddfddb0c 95 #:use-module (gnu packages xorg)
c267cc15 96 #:use-module (gnu packages xiph)
2d0fd07b
RW
97 #:use-module (gnu packages zip)
98 #:use-module ((srfi srfi-1) #:select (last)))
1b6826d3 99
c30a66de
RW
100(define-public aria-maestosa
101 (package
102 (name "aria-maestosa")
103 (version "1.4.11")
104 (source (origin
105 (method url-fetch)
106 (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/"
107 version "/AriaSrc-" version ".tar.bz2"))
108 (sha256
109 (base32
110 "0gf9z96z83jiabxhpl856j15vl9flfgs6x1r0r6hc7g2xvwag0vy"))))
111 (build-system gnu-build-system)
112 (arguments
113 `(#:tests? #f ;no tests
114 #:phases
115 ;; TODO: Add scons-build-system and use it here.
116 (modify-phases %standard-phases
117 (delete 'configure)
118 (add-after 'unpack 'scons-propagate-environment
119 (lambda _
120 ;; By design, SCons does not, by default, propagate
121 ;; environment variables to subprocesses. See:
122 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
123 ;; Here, we modify the SConstruct file to arrange for
124 ;; environment variables to be propagated.
125 (substitute* "SConstruct"
126 (("env = Environment\\(\\)")
127 "env = Environment(ENV=os.environ)")
128 ;; Scons errors out when copying subdirectories from Resources,
129 ;; so we move them instead.
130 (("Copy") "Move")
131 ;; We move the "score" and "Documentation" directories at once,
132 ;; so we have to ignore files contained therein.
133 (("if \".svn\" in file" line)
134 (string-append line
135 " or \"score/\" in file"
136 " or \"Documentation/\" in file")))
137 #t))
138 (replace 'build (lambda _ (zero? (system* "scons"))))
139 (replace 'install
140 (lambda* (#:key outputs #:allow-other-keys)
141 (let ((out (assoc-ref outputs "out")))
142 (and
143 (zero? (system* "scons"
144 (string-append "prefix=" out)
145 "install"))
146 ;; Fix directory permissions
147 (begin
148 (chmod (string-append out "/share/Aria/Documentation") #o555)
149 (chmod (string-append out "/share/Aria/score") #o555)
150 #t))))))))
151 (inputs
152 `(("wxwidgets" ,wxwidgets)
153 ("glib" ,glib)
154 ("alsa-lib" ,alsa-lib)))
155 (native-inputs
156 `(("scons" ,scons)
157 ("pkg-config" ,pkg-config)))
158 (home-page "http://ariamaestosa.sourceforge.net/")
159 (synopsis "MIDI sequencer and editor")
160 (description
161 "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit
162and play MIDI files with a few clicks in a user-friendly interface offering
163score, keyboard, guitar, drum and controller views.")
164 (license license:gpl3+)))
165
e8069d01
PW
166(define-public cmus
167 (package
168 (name "cmus")
169 (version "2.7.1")
170 (source (origin
171 (method url-fetch)
172 (uri (string-append
173 "https://github.com/" name "/" name "/archive/v"
174 version ".tar.gz"))
566fc7fa 175 (file-name (string-append name "-" version ".tar.gz"))
e8069d01
PW
176 (sha256
177 (base32
178 "0raixgjavkm7hxppzsc5zqbfbh2bhjcmbiplhnsxsmyj8flafyc1"))))
179 (build-system gnu-build-system)
180 (arguments
181 `(#:tests? #f ; cmus does not include tests
182 #:phases
183 (modify-phases %standard-phases
184 (replace
185 'configure
186 (lambda* (#:key outputs #:allow-other-keys)
187 (let ((out (assoc-ref outputs "out")))
188
189 ;; It's an idiosyncratic configure script that doesn't
190 ;; understand --prefix=..; it wants prefix=.. instead.
191 (zero?
192 (system* "./configure"
193 (string-append "prefix=" out)))))))))
194 ;; TODO: cmus optionally supports the following formats, which haven't yet
195 ;; been added to Guix:
196 ;;
197 ;; - Roar, libroar
198 ;;
199 ;; - DISCID_LIBS, apparently different from cd-discid which is included in
200 ;; Guix. See <http://sourceforge.net/projects/discid/>
201 (native-inputs
202 `(("pkg-config" ,pkg-config)))
203 (inputs
204 `(("alsa-lib" ,alsa-lib)
205 ("ao" ,ao)
206 ("ffmpeg" ,ffmpeg)
207 ("flac" ,flac)
208 ("jack" ,jack-1)
209 ("libcddb" ,libcddb)
210 ("libcdio-paranoia" ,libcdio-paranoia)
211 ("libcue" ,libcue)
212 ("libmad" ,libmad)
213 ("libmodplug" ,libmodplug)
214 ("libmpcdec" ,libmpcdec)
215 ("libsamplerate" ,libsamplerate)
216 ("libvorbis" ,libvorbis)
217 ("ncurses" ,ncurses)
218 ("opusfile" ,opusfile)
219 ("pulseaudio" ,pulseaudio)
220 ("wavpack" ,wavpack)))
221 (home-page "https://cmus.github.io/")
222 (synopsis "Small console music player")
223 (description "Cmus is a small and fast console music player. It supports
224many input formats and provides a customisable Vi-style user interface.")
225 (license license:gpl2+)))
226
d231bb35
RW
227(define-public hydrogen
228 (package
229 (name "hydrogen")
b7367762 230 (version "0.9.6.1")
d231bb35
RW
231 (source (origin
232 (method url-fetch)
233 (uri (string-append
b7367762
EF
234 "https://github.com/hydrogen-music/hydrogen/archive/"
235 version ".tar.gz"))
d231bb35
RW
236 (sha256
237 (base32
b7367762
EF
238 "0vxnaqfmcv7hhk0cj67imdcqngspnck7f0wfmvhfgfqa7x1xznll"))))
239 (build-system cmake-build-system)
d231bb35 240 (arguments
b7367762 241 `(#:test-target "tests"))
d231bb35 242 (native-inputs
b7367762 243 `(("cppunit" ,cppunit)
d231bb35
RW
244 ("pkg-config" ,pkg-config)))
245 (inputs
b7367762 246 `(("alsa-lib" ,alsa-lib)
d231bb35 247 ("jack" ,jack-1)
b7367762 248 ;; ("ladspa" ,ladspa) ; cannot find during configure
d231bb35 249 ("lash" ,lash)
b7367762
EF
250 ("libarchive" ,libarchive)
251 ("libsndfile" ,libsndfile)
252 ("libtar" ,libtar)
253 ("lrdf" ,lrdf)
d231bb35 254 ("qt" ,qt-4)
b7367762 255 ("zlib" ,zlib)))
d231bb35
RW
256 (home-page "http://www.hydrogen-music.org")
257 (synopsis "Drum machine")
258 (description
259 "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to
260enable professional yet simple and intuitive pattern-based drum programming.")
261 (license license:gpl2+)))
262
8c454dcd
RW
263(define-public klick
264 (package
265 (name "klick")
266 (version "0.12.2")
267 (source (origin
268 (method url-fetch)
269 (uri (string-append "http://das.nasophon.de/download/klick-"
270 version ".tar.gz"))
271 (sha256
272 (base32
273 "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j"))))
274 (build-system gnu-build-system)
275 (arguments
276 `(#:tests? #f ;no "check" target
277 #:phases
278 ;; TODO: Add scons-build-system and use it here.
279 (modify-phases %standard-phases
280 (delete 'configure)
281 (replace 'build
282 (lambda* (#:key inputs outputs #:allow-other-keys)
283 (let ((out (assoc-ref outputs "out")))
284 (mkdir-p out)
285 (zero? (system* "scons" (string-append "PREFIX=" out))))))
286 (replace 'install (lambda _ (zero? (system* "scons" "install")))))))
287 (inputs
288 `(("boost" ,boost)
289 ("jack" ,jack-1)
290 ("libsndfile" ,libsndfile)
291 ("libsamplerate" ,libsamplerate)
292 ("liblo" ,liblo)
293 ("rubberband" ,rubberband)))
294 (native-inputs
295 `(("scons" ,scons)
296 ("python" ,python-2)
297 ("pkg-config" ,pkg-config)))
298 (home-page "http://das.nasophon.de/klick/")
299 (synopsis "Metronome for JACK")
300 (description
301 "klick is an advanced command-line based metronome for JACK. It allows
302you to define complex tempo maps for entire songs or performances.")
303 (license license:gpl2+)))
304
048bfba1
RW
305(define-public gtklick
306 (package
307 (name "gtklick")
308 (version "0.6.4")
309 (source (origin
310 (method url-fetch)
311 (uri (string-append "http://das.nasophon.de/download/gtklick-"
312 version ".tar.gz"))
313 (sha256
314 (base32
315 "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp"))))
316 (build-system python-build-system)
317 (arguments
318 `(#:tests? #f ; no tests
319 #:python ,python-2
320 #:phases
321 (modify-phases %standard-phases
322 (add-before 'build 'add-sitedirs
323 ;; .pth files are not automatically interpreted unless the
324 ;; directories containing them are added as "sites". The directories
325 ;; are then added to those in the PYTHONPATH. This is required for
326 ;; the operation of pygtk.
327 (lambda _
328 (substitute* "gtklick/gtklick.py"
329 (("import pygtk")
330 "import pygtk, site, sys
331for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))))
332 (add-after 'unpack 'inject-store-path-to-klick
333 (lambda* (#:key inputs #:allow-other-keys)
334 (substitute* "gtklick/klick_backend.py"
335 (("KLICK_PATH = 'klick'")
336 (string-append "KLICK_PATH = '"
337 (assoc-ref inputs "klick")
338 "/bin/klick'")))
339 #t)))))
340 (inputs
341 `(("klick" ,klick)
342 ("python2-pyliblo" ,python2-pyliblo)
343 ("python2-pygtk" ,python2-pygtk)))
344 (native-inputs
345 `(("gettext" ,gnu-gettext)))
346 (home-page "http://das.nasophon.de/gtklick/")
347 (synopsis "Simple metronome with an easy-to-use graphical interface")
348 (description
349 "Gtklick is a simple metronome with an easy-to-use graphical user
350interface. It is implemented as a frontend to @code{klick}.")
351 (license license:gpl2+)))
352
1b6826d3
RW
353(define-public lilypond
354 (package
355 (name "lilypond")
398abcf8 356 (version "2.19.33")
1b6826d3
RW
357 (source (origin
358 (method url-fetch)
359 (uri (string-append
360 "http://download.linuxaudio.org/lilypond/sources/v"
361 (version-major+minor version) "/"
362 name "-" version ".tar.gz"))
363 (sha256
364 (base32
398abcf8 365 "0s4vbbfy4xwq4da4kmlnndalmcyx2jaz7y8praah2146qbnr90xh"))))
1b6826d3
RW
366 (build-system gnu-build-system)
367 (arguments
127b04d7 368 `(#:tests? #f ; out-test/collated-files.html fails
1b6826d3 369 #:out-of-source? #t
409be57b 370 #:make-flags '("conf=www") ;to generate images for info manuals
127b04d7 371 #:configure-flags
409be57b
RW
372 (list "CONFIGURATION=www"
373 (string-append "--with-texgyre-dir="
127b04d7
RW
374 (assoc-ref %build-inputs "font-tex-gyre")
375 "/share/fonts/opentype/"))
1b6826d3 376 #:phases
a8bc747a 377 (modify-phases %standard-phases
409be57b
RW
378 (add-after 'unpack 'fix-path-references
379 (lambda _
a8bc747a
RW
380 (substitute* "scm/backend-library.scm"
381 (("\\(search-executable '\\(\"gs\"\\)\\)")
409be57b
RW
382 (string-append "\"" (which "gs") "\""))
383 (("\"/bin/sh\"")
384 (string-append "\"" (which "sh") "\"")))
a8bc747a
RW
385 #t))
386 (add-before 'configure 'prepare-configuration
387 (lambda _
388 (substitute* "configure"
7affb2c1
RW
389 (("SHELL=/bin/sh") "SHELL=sh")
390 ;; When checking the fontforge version do not consider the
391 ;; version string that's part of the directory.
392 (("head -n") "tail -n"))
409be57b
RW
393 (setenv "out" "www")
394 (setenv "conf" "www")
395 #t))
396 (add-after 'install 'install-info
397 (lambda _
398 (zero? (system* "make"
399 "-j" (number->string (parallel-job-count))
400 "conf=www" "install-info")))))))
1b6826d3
RW
401 (inputs
402 `(("guile" ,guile-1.8)
403 ("font-dejavu" ,font-dejavu)
127b04d7 404 ("font-tex-gyre" ,font-tex-gyre)
1b6826d3
RW
405 ("fontconfig" ,fontconfig)
406 ("freetype" ,freetype)
407 ("ghostscript" ,ghostscript)
408 ("pango" ,pango)
409 ("python" ,python-2)))
410 (native-inputs
411 `(("bison" ,bison)
412 ("perl" ,perl)
413 ("flex" ,flex)
414 ("fontforge" ,fontforge)
415 ("dblatex" ,dblatex)
416 ("gettext" ,gnu-gettext)
417 ("imagemagick" ,imagemagick)
418 ("netpbm" ,netpbm) ;for pngtopnm
419 ("texlive" ,texlive) ;metafont and metapost
420 ("texinfo" ,texinfo)
421 ("texi2html" ,texi2html)
422 ("rsync" ,rsync)
423 ("pkg-config" ,pkg-config)
424 ("zip" ,zip)))
425 (home-page "http://www.lilypond.org/")
426 (synopsis "Music typesetting")
427 (description
428 "GNU LilyPond is a music typesetter, which produces high-quality sheet
429music. Music is input in a text file containing control sequences which are
430interpreted by LilyPond to produce the final document. It is extendable with
431Guile.")
55ca5e80
LC
432 (license license:gpl3+)
433
434 ;; On armhf and mips64el, building the documentation sometimes leads to
435 ;; more than an hour of silence, so double the max silent time.
436 (properties `((max-silent-time . 7200)))))
c267cc15 437
8e80244a
RW
438(define-public non-sequencer
439 ;; The latest tagged release is three years old and uses a custom build
440 ;; system, so we take the last commit affecting the "sequencer" directory.
698bd297 441 (let ((commit "1d9bd576f6bf7ea240af5f7a60260592750af0dd"))
8e80244a
RW
442 (package
443 (name "non-sequencer")
698bd297 444 (version (string-append "1.9.5-" (string-take commit 7)))
8e80244a
RW
445 (source (origin
446 (method git-fetch)
447 (uri (git-reference
448 (url "git://git.tuxfamily.org/gitroot/non/non.git")
449 (commit commit)))
450 (sha256
451 (base32
452 "0pkkw8q6d55j38xm7r4rwpdv1wy00a44h8c4wrn7vbgpq9nij46y"))
453 (file-name (string-append name "-" version "-checkout"))))
454 (build-system waf-build-system)
455 (arguments
456 `(#:tests? #f ;no "check" target
e591a4d6
RW
457 #:configure-flags
458 (list "--project=sequencer"
459 ;; Disable the use of SSE unless on x86_64.
460 ,@(if (not (string-prefix? "x86_64" (or (%current-target-system)
461 (%current-system))))
462 '("--disable-sse")
463 '()))
d8c317df
SB
464 #:phases
465 (modify-phases %standard-phases
466 (add-before
467 'configure 'set-flags
468 (lambda _
469 ;; Compile with C++11, required by libsigc++.
470 (setenv "CXXFLAGS" "-std=c++11")
471 #t)))
8e80244a
RW
472 #:python ,python-2))
473 (inputs
474 `(("jack" ,jack-1)
475 ("libsigc++" ,libsigc++)
476 ("liblo" ,liblo)
477 ("ntk" ,ntk)))
478 (native-inputs
479 `(("pkg-config" ,pkg-config)))
480 (home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer")
481 (synopsis "Pattern-based MIDI sequencer")
482 (description
483 "The Non Sequencer is a powerful, lightweight, real-time,
484pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for
485MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non
486Sequencer happens on-line, in real-time. Music can be composed live, while the
487transport is rolling.")
488 (license license:gpl2+))))
489
c267cc15
RW
490(define-public solfege
491 (package
492 (name "solfege")
493 (version "3.22.2")
494 (source (origin
495 (method url-fetch)
496 (uri (string-append
497 "mirror://gnu/solfege/solfege-"
498 version ".tar.xz"))
499 (sha256
500 (base32
501 "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i"))))
502 (build-system gnu-build-system)
503 (arguments
504 `(#:tests? #f ; xmllint attempts to download DTD
505 #:test-target "test"
506 #:phases
507 (alist-cons-after
508 'unpack 'fix-configuration
509 (lambda* (#:key inputs #:allow-other-keys)
510 (substitute* "default.config"
511 (("csound=csound")
512 (string-append "csound="
513 (assoc-ref inputs "csound")
514 "/bin/csound"))
515 (("/usr/bin/aplay")
516 (string-append (assoc-ref inputs "aplay")
517 "/bin/aplay"))
518 (("/usr/bin/timidity")
519 (string-append (assoc-ref inputs "timidity")
520 "/bin/timidity"))
521 (("/usr/bin/mpg123")
522 (string-append (assoc-ref inputs "mpg123")
523 "/bin/mpg123"))
524 (("/usr/bin/ogg123")
525 (string-append (assoc-ref inputs "ogg123")
526 "/bin/ogg123"))))
527 (alist-cons-before
528 'build 'patch-python-shebangs
529 (lambda _
530 ;; Two python scripts begin with a Unicode BOM, so patch-shebang
531 ;; has no effect.
532 (substitute* '("solfege/parsetree.py"
533 "solfege/presetup.py")
534 (("#!/usr/bin/python") (string-append "#!" (which "python")))))
535 (alist-cons-before
536 'build 'add-sitedirs
537 ;; .pth files are not automatically interpreted unless the
538 ;; directories containing them are added as "sites". The directories
539 ;; are then added to those in the PYTHONPATH. This is required for
540 ;; the operation of pygtk and pygobject.
541 (lambda _
542 (substitute* "run-solfege.py"
543 (("import os")
544 "import os, site
545for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)")))
546 (alist-cons-before
547 'build 'adjust-config-file-prefix
548 (lambda* (#:key outputs #:allow-other-keys)
549 (substitute* "run-solfege.py"
550 (("prefix = os.path.*$")
551 (string-append "prefix = " (assoc-ref outputs "out")))))
552 (alist-cons-after
553 'install 'wrap-program
554 (lambda* (#:key inputs outputs #:allow-other-keys)
f3045a5b 555 ;; Make sure 'solfege' runs with the correct PYTHONPATH.
c267cc15 556 (let* ((out (assoc-ref outputs "out"))
f3045a5b 557 (path (getenv "PYTHONPATH")))
c267cc15 558 (wrap-program (string-append out "/bin/solfege")
f3045a5b 559 `("PYTHONPATH" ":" prefix (,path)))))
c267cc15
RW
560 %standard-phases)))))))
561 (inputs
562 `(("python" ,python-2)
563 ("pygtk" ,python2-pygtk)
564 ("gettext" ,gnu-gettext)
565 ("gtk" ,gtk+)
e8309291 566 ("lilypond" ,lilypond)
c267cc15
RW
567 ;; players needed at runtime
568 ("aplay" ,alsa-utils)
569 ("csound" ,csound) ; optional, needed for some exercises
570 ("mpg123" ,mpg123)
571 ("ogg123" ,vorbis-tools)
572 ("timidity" ,timidity++)))
573 (native-inputs
574 `(("pkg-config" ,pkg-config)
575 ("txt2man" ,txt2man)
576 ("libxml2" ,libxml2) ; for tests
577 ("ghostscript" ,ghostscript)
c267cc15
RW
578 ("texinfo" ,texinfo)))
579 (home-page "https://www.gnu.org/software/solfege/")
580 (synopsis "Ear training")
581 (description
582 "GNU Solfege is a program for practicing musical ear-training. With it,
583you can practice your recognition of various musical intervals and chords. It
584features a statistics overview so you can monitor your progress across several
585sessions. Solfege is also designed to be extensible so you can easily write
586your own lessons.")
587 (license license:gpl3+)))
6260d1a8 588
8b9ec354
RW
589(define-public powertabeditor
590 (package
591 (name "powertabeditor")
d19cf783 592 (version "2.0.0-alpha8")
8b9ec354
RW
593 (source (origin
594 (method url-fetch)
595 (uri (string-append
596 "https://github.com/powertab/powertabeditor/archive/"
597 version ".tar.gz"))
598 (file-name (string-append name "-" version ".tar.gz"))
599 (sha256
600 (base32
d19cf783 601 "0gaa2x209v3azql8ak3r1n9a9qbxjx2ssirvwdxwklv2lmfqkm82"))
8b9ec354
RW
602 (modules '((guix build utils)))
603 (snippet
604 '(begin
605 ;; Remove bundled sources for external libraries
606 (delete-file-recursively "external")
607 (substitute* "CMakeLists.txt"
608 (("include_directories\\(\\$\\{PROJECT_SOURCE_DIR\\}/external/.*") "")
8b9ec354
RW
609 (("add_subdirectory\\(external\\)") ""))
610 (substitute* "test/CMakeLists.txt"
611 (("include_directories\\(\\$\\{PROJECT_SOURCE_DIR\\}/external/.*") ""))
612
613 ;; Add install target
614 (substitute* "source/CMakeLists.txt"
615 (("qt5_use_modules")
616 (string-append
617 "install(TARGETS powertabeditor "
618 "RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)\n"
619 "install(FILES data/tunings.json DESTINATION "
620 "${CMAKE_INSTALL_PREFIX}/share/powertabeditor/)\n"
621 "qt5_use_modules")))
622 #t))))
623 (build-system cmake-build-system)
624 (arguments
7e11d113 625 `(#:modules ((guix build cmake-build-system)
8b9ec354
RW
626 (guix build utils)
627 (ice-9 match))
628 #:configure-flags
629 ;; CMake appears to lose the RUNPATH for some reason, so it has to be
630 ;; explicitly set with CMAKE_INSTALL_RPATH.
7e11d113
RW
631 (list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
632 "-DCMAKE_ENABLE_PRECOMPILED_HEADERS=OFF" ; if ON pte_tests cannot be built
633 (string-append "-DCMAKE_INSTALL_RPATH="
8b9ec354
RW
634 (string-join (map (match-lambda
635 ((name . directory)
636 (string-append directory "/lib")))
637 %build-inputs) ";")))
638 #:phases
639 (modify-phases %standard-phases
7e11d113
RW
640 (replace
641 'check
642 (lambda _
643 (zero? (system* "bin/pte_tests"
644 ;; Exclude this failing test
645 "~Formats/PowerTabOldImport/Directions"))))
646 (add-before
647 'configure 'fix-tests
648 (lambda _
649 ;; Tests cannot be built with precompiled headers
650 (substitute* "test/CMakeLists.txt"
651 (("cotire\\(pte_tests\\)") ""))
652 #t))
8b9ec354
RW
653 (add-before
654 'configure 'remove-third-party-libs
655 (lambda* (#:key inputs #:allow-other-keys)
656 ;; Link with required static libraries, because we're not
657 ;; using the bundled version of withershins.
658 (substitute* '("source/CMakeLists.txt"
659 "test/CMakeLists.txt")
7e11d113 660 (("target_link_libraries\\((powertabeditor|pte_tests)" _ target)
8b9ec354
RW
661 (string-append "target_link_libraries(" target " "
662 (assoc-ref inputs "binutils")
663 "/lib/libbfd.a "
d6902798 664 (assoc-ref inputs "libiberty")
8b9ec354
RW
665 "/lib/libiberty.a "
666 "dl")))
667 #t)))))
668 (inputs
669 `(("boost" ,boost)
670 ("alsa-lib" ,alsa-lib)
0a0bfd68 671 ("qtbase" ,qtbase)
8b9ec354 672 ("withershins" ,withershins)
d6902798 673 ("libiberty" ,libiberty) ;for withershins
8b9ec354
RW
674 ("binutils" ,binutils) ;for -lbfd and -liberty (for withershins)
675 ("timidity" ,timidity++)
676 ("pugixml" ,pugixml)
677 ("rtmidi" ,rtmidi)
678 ("rapidjson" ,rapidjson)
679 ("zlib" ,zlib)))
680 (native-inputs
681 `(("catch" ,catch-framework)
682 ("pkg-config" ,pkg-config)))
683 (home-page "http://powertabs.net")
684 (synopsis "Guitar tablature editor")
685 (description
686 "Power Tab Editor 2.0 is the successor to the famous original Power Tab
687Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
688 (license license:gpl3+)))
689
b095e762
RW
690(define-public synthv1
691 (package
692 (name "synthv1")
cb1436d8 693 (version "0.7.5")
b095e762
RW
694 (source (origin
695 (method url-fetch)
696 (uri
697 (string-append "mirror://sourceforge/synthv1/synthv1-"
698 version ".tar.gz"))
699 (sha256
700 (base32
cb1436d8 701 "0h5zja78phf9705i9g54zh61iczb24iv7rxhljyms30sjgajig1y"))))
b095e762
RW
702 (build-system gnu-build-system)
703 ;; There are no tests.
704 (arguments `(#:tests? #f))
705 (inputs
706 `(("jack" ,jack-1)
707 ("lv2" ,lv2)
708 ("alsa-lib" ,alsa-lib)
709 ("liblo" ,liblo)
e5f2afdb
EF
710 ("qtbase" ,qtbase)
711 ("qttools" ,qttools)))
b095e762
RW
712 (home-page "http://synthv1.sourceforge.net")
713 (synopsis "Polyphonic subtractive synthesizer")
714 (description
715 "Synthv1 is an old-school subtractive polyphonic synthesizer with four
716oscillators and stereo effects.")
717 (license license:gpl2+)))
2bb00612
RW
718
719(define-public amsynth
720 (package
721 (name "amsynth")
722 (version "1.6.4")
723 (source
724 (origin
725 (method url-fetch)
726 (uri (string-append "https://github.com/amsynth/amsynth/releases/"
727 "download/release-" version
728 "/amsynth-" version ".tar.bz2"))
729 (sha256
730 (base32
731 "07dp9dl38g9krjqxxh89l2z42z08yzrl57cx95b1l67xnxwjp5k3"))))
732 (build-system gnu-build-system)
733 (arguments
734 `(#:phases
735 (modify-phases %standard-phases
736 (add-before 'configure 'set-flags
737 (lambda _
738 ;; Compile with C++11, required by gtkmm.
739 (setenv "CXXFLAGS" "-std=c++11")
740 #t)))))
741 (inputs
742 `(("alsa-lib" ,alsa-lib)
743 ("jack" ,jack-1)
744 ("lv2" ,lv2)
745 ("libsndfile" ,libsndfile)
746 ("gtk+" ,gtk+-2)
747 ("gtkmm" ,gtkmm-2)))
748 (native-inputs
749 `(("pkg-config" ,pkg-config)))
750 (home-page "http://amsynth.github.io")
751 (synopsis "Analog modeling synthesizer")
752 (description
753 "amsynth is an easy-to-use software synthesizer with a classic
754subtractive synthesizer topology. Its features include: dual
755oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct
756resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato
757keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO
758which can modulate the oscillators, filter, and amplitude; distortion and
759reverb effects.")
760 (license license:gpl2+)))
b095e762 761
ec8da0e2
RW
762(define-public setbfree
763 (package
764 (name "setbfree")
a39f48b8 765 (version "0.8.1")
ec8da0e2
RW
766 (source (origin
767 (method url-fetch)
768 (uri
a39f48b8
RW
769 (string-append "https://github.com/pantherb/setBfree/archive/v"
770 version ".tar.gz"))
771 (file-name (string-append name "-" version ".tar.gz"))
ec8da0e2
RW
772 (sha256
773 (base32
a39f48b8 774 "0hj0rqk5yd4fzs7bwy6a6nhqgrmcggkjcr4il76rxy92r7nwabf3"))))
ec8da0e2
RW
775 (build-system gnu-build-system)
776 (arguments
777 `(#:tests? #f ; no "check" target
778 #:make-flags
779 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
780 (string-append "FONTFILE="
781 (assoc-ref %build-inputs "font-bitstream-vera")
b42d4508
RW
782 "/share/fonts/truetype/VeraBd.ttf")
783 ;; Disable unsupported optimization flags on non-x86
784 ,@(let ((system (or (%current-target-system)
785 (%current-system))))
786 (if (or (string-prefix? "x86_64" system)
787 (string-prefix? "i686" system))
788 '()
789 '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
ec8da0e2
RW
790 #:phases
791 (modify-phases %standard-phases
792 (add-before 'build 'set-CC-variable
793 (lambda _ (setenv "CC" "gcc") #t))
794 (delete 'configure))))
795 (inputs
796 `(("jack" ,jack-1)
797 ("lv2" ,lv2)
798 ("zita-convolver" ,zita-convolver)
799 ("glu" ,glu)
800 ("ftgl" ,ftgl)
801 ("font-bitstream-vera" ,font-bitstream-vera)))
802 (native-inputs
803 `(("help2man" ,help2man)
804 ("pkg-config" ,pkg-config)))
805 (home-page "http://setbfree.org")
806 (synopsis "Tonewheel organ")
807 (description
808 "setBfree is a MIDI-controlled, software synthesizer designed to imitate
809the sound and properties of the electromechanical organs and sound
810modification devices that brought world-wide fame to the names and products of
811Laurens Hammond and Don Leslie.")
812 (license license:gpl2+)))
813
770305f4
RW
814(define-public beast
815 (package
816 (name "beast")
817 (version "0.10.0")
818 (source (origin
819 (method url-fetch)
820 (uri (string-append "https://testbit.eu/pub/dists/beast/beast-"
821 version ".tar.xz"))
822 (sha256
823 (base32
824 "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn"))))
825 (build-system gnu-build-system)
826 (inputs
827 `(("rapicorn" ,rapicorn)
828 ("guile" ,guile-1.8)
829 ("python" ,python-2)
830 ("cython" ,python2-cython)
831 ("libgnomecanvas" ,libgnomecanvas)
832 ("libogg" ,libogg)
833 ("libmad" ,libmad)
834 ("flac" ,flac)
835 ("alsa-lib" ,alsa-lib)
836 ("libvorbis" ,libvorbis)
837 ("gettext" ,gnu-gettext)))
838 (native-inputs
839 `(("pkg-config" ,pkg-config)
840 ("glib:bin" ,glib "bin")
841 ("perl" ,perl)
842 ("perl-xml-parser" ,perl-xml-parser)))
843 (home-page "https://testbit.eu/wiki/Beast_Home")
844 (synopsis "Music composition and modular synthesis environment")
845 (description
846 "Beast is a music composition and modular synthesis application. It
847supports a wide range of standards in the field, such as MIDI, various audio
848file formats and LADSPA modules. It allows for multitrack editing, real-time
849synthesis, 32bit audio rendering, precise timing down to sample granularity,
850on-demand and partial loading of wave files, on the fly decoding, stereo
851mixing, FFT scopes, MIDI automation and full scriptability in Scheme.")
852 (license license:gpl3+)))
853
96250294
RW
854(define-public bristol
855 (package
856 (name "bristol")
857 (version "0.60.11")
858 (source (origin
859 (method url-fetch)
860 (uri (string-append "mirror://sourceforge/bristol/bristol/"
861 (version-major+minor version)
862 "/bristol-" version ".tar.gz"))
863 (sha256
864 (base32
865 "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
866 (build-system gnu-build-system)
18ef998b
RW
867 (arguments
868 `(#:phases
869 (modify-phases %standard-phases
870 (add-after 'unpack 'remove-sse-flags
871 (lambda* (#:key system #:allow-other-keys)
872 (when (not (or (string-prefix? "x86_64" system)
873 (string-prefix? "i686" system)))
874 (substitute* "bristol/Makefile.in"
875 (("-msse -mfpmath=sse") "")))
73124d34
RW
876 #t))
877 ;; We know that Bristol has been linked with JACK and we don't have
878 ;; ldd, so we can just skip this check.
879 (add-after 'unpack 'do-not-grep-for-jack
880 (lambda _
881 (substitute* "bin/startBristol.in"
882 (("ldd `which bristol` | grep jack") "echo guix"))
18ef998b 883 #t)))))
96250294
RW
884 (inputs
885 `(("alsa-lib" ,alsa-lib)
886 ("jack" ,jack-1)
887 ("liblo" ,liblo)
888 ("libx11" ,libx11)))
889 (native-inputs
890 `(("pkg-config" ,pkg-config)))
891 (home-page "http://bristol.sourceforge.net/")
892 (synopsis "Synthesizer emulator")
893 (description
894 "Bristol is an emulation package for a number of different 'classic'
895synthesizers including additive and subtractive and a few organs. The
896application consists of the engine, which is called bristol, and its own GUI
897library called brighton that represents all the emulations. There are
898currently more than twenty different emulations; each does sound different
899although the author maintains that the quality and accuracy of each emulation
900is subjective.")
901 (license license:gpl3+)))
902
6260d1a8
RW
903(define-public tuxguitar
904 (package
905 (name "tuxguitar")
906 (version "1.2")
907 (source (origin
908 (method url-fetch)
909 (uri (string-append
910 "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-"
911 version "/tuxguitar-src-" version ".tar.gz"))
912 (sha256
913 (base32
914 "1g1yf2gd06fzdhqb8kb8dmdcmr602s9y24f01kyl4940wimgr944"))))
915 (build-system gnu-build-system)
916 (arguments
917 `(#:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
918 (assoc-ref %outputs "out") "/lib")
919 (string-append "PREFIX="
920 (assoc-ref %outputs "out"))
921 (string-append "SWT_PATH="
1ad15c16 922 (assoc-ref %build-inputs "java-swt")
6260d1a8
RW
923 "/share/java/swt.jar"))
924 #:tests? #f ;no "check" target
925 #:parallel-build? #f ;not supported
926 #:phases
5f1c9498
RW
927 (modify-phases %standard-phases
928 (delete 'configure)
929 (add-before 'build 'enter-dir-and-set-flags
930 (lambda* (#:key inputs #:allow-other-keys)
931 (chdir "TuxGuitar")
932 (substitute* "GNUmakefile"
6da2e99e
RW
933 (("GCJFLAGS\\+=(.*)" _ rest)
934 (string-append "GCJFLAGS=-fsource=1.4 -fPIC " rest))
5f1c9498
RW
935 (("PROPERTIES\\?=")
936 (string-append "PROPERTIES?= -Dswt.library.path="
1ad15c16 937 (assoc-ref inputs "java-swt") "/lib"))
5f1c9498
RW
938 (("\\$\\(GCJ\\) -o") "$(GCJ) $(LDFLAGS) -o"))
939 #t)))))
6260d1a8 940 (inputs
1ad15c16 941 `(("java-swt" ,java-swt)))
6260d1a8 942 (native-inputs
397dbde8 943 `(("gcj" ,gcj)
6260d1a8
RW
944 ("pkg-config" ,pkg-config)))
945 (home-page "http://tuxguitar.com.ar")
946 (synopsis "Multitrack tablature editor and player")
947 (description
948 "TuxGuitar is a guitar tablature editor with player support through midi.
949It can display scores and multitrack tabs. TuxGuitar provides various
950additional features, including autoscrolling while playing, note duration
951management, bend/slide/vibrato/hammer-on/pull-off effects, support for
952tuplets, time signature management, tempo management, gp3/gp4/gp5 import and
953export.")
954 (license license:lgpl2.1+)))
2d0fd07b
RW
955
956(define-public pd
957 (package
958 (name "pd")
959 (version "0.45.4")
960 (source (origin
961 (method url-fetch)
962 (uri
963 (string-append "mirror://sourceforge/pure-data/pure-data/"
964 version "/pd-" (version-major+minor version)
965 "-" (last (string-split version #\.))
966 ".src.tar.gz"))
967 (sha256
968 (base32
969 "1ls2ap5yi2zxvmr247621g4jx0hhfds4j5704a050bn2n3l0va2p"))))
970 (build-system gnu-build-system)
971 (arguments
972 `(#:tests? #f ; no "check" target
973 #:phases
974 (modify-phases %standard-phases
975 (add-before
976 'configure 'fix-wish-path
977 (lambda _
978 (substitute* "src/s_inter.c"
979 ((" wish ") (string-append " " (which "wish8.6") " ")))
980 (substitute* "tcl/pd-gui.tcl"
981 (("exec wish ") (string-append "exec " (which "wish8.6") " ")))
982 #t))
983 (add-after
984 'unpack 'autoconf
985 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
986 (native-inputs
987 `(("autoconf" ,autoconf)
988 ("automake" ,automake)
989 ("libtool" ,libtool)
990 ("gettext" ,gnu-gettext)
991 ("pkg-config" ,pkg-config)))
992 (inputs
993 `(("tk" ,tk)
994 ("alsa-lib" ,alsa-lib)
995 ("jack" ,jack-1)))
996 (home-page "http://puredata.info")
997 (synopsis "Visual programming language for artistic performances")
998 (description
999 "Pure Data (aka Pd) is a visual programming language. Pd enables
1000musicians, visual artists, performers, researchers, and developers to create
1001software graphically, without writing lines of code. Pd is used to process
1002and generate sound, video, 2D/3D graphics, and interface sensors, input
1003devices, and MIDI. Pd can easily work over local and remote networks to
1004integrate wearable technology, motor systems, lighting rigs, and other
1005equipment. Pd is suitable for learning basic multimedia processing and visual
1006programming methods as well as for realizing complex systems for large-scale
1007projects.")
1008 (license license:bsd-3)))
821664f1 1009
aacb52fb
RW
1010(define-public portmidi
1011 (package
1012 (name "portmidi")
1013 (version "217")
1014 (source (origin
1015 (method url-fetch)
1016 (uri (string-append "mirror://sourceforge/portmedia/portmidi/"
1017 version "/portmidi-src-" version ".zip"))
1018 (sha256
1019 (base32
1020 "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88"))
1021 (patches (list (search-patch "portmidi-modular-build.patch")))))
1022 (build-system cmake-build-system)
1023 (arguments
1024 `(#:tests? #f ; tests cannot be linked
1025 #:configure-flags
1026 (list "-DPORTMIDI_ENABLE_JAVA=Off"
1027 "-DCMAKE_BUILD_TYPE=Release" ; needed to have PMALSA set
1028 "-DPORTMIDI_ENABLE_TEST=Off"))) ; tests fail linking
1029 (inputs
1030 `(("alsa-lib" ,alsa-lib)))
1031 (native-inputs
1032 `(("unzip" ,unzip)))
1033 (home-page "http://portmedia.sourceforge.net/portmidi/")
1034 (synopsis "Library for MIDI I/O")
1035 (description
1036 "PortMidi is a library supporting real-time input and output of MIDI data
1037using a system-independent interface.")
1038 (license license:expat)))
f65d59fc
RW
1039
1040(define-public python-pyportmidi
1041 (package
1042 (name "python-pyportmidi")
1043 (version (package-version portmidi))
1044 (source (package-source portmidi))
1045 (build-system python-build-system)
1046 (arguments
1047 `(#:tests? #f ; no tests included
1048 #:phases
1049 (modify-phases %standard-phases
1050 (add-after 'unpack 'enter-dir
1051 (lambda _ (chdir "pm_python") #t))
1052 (add-after 'enter-dir 'fix-setup.py
1053 (lambda _
1054 (substitute* "setup.py"
1055 ;; Use Python 3 syntax
1056 (("print (\".*\")" _ text)
1057 (string-append "print(" text ")\n"))
1058 ;; TODO.txt and CHANGES.txt don't exist
1059 (("CHANGES =.*") "CHANGES = \"\"\n")
1060 (("TODO =.*") "TODO = \"\"\n"))
1061 #t)))))
1062 (inputs
1063 `(("portmidi" ,portmidi)
1064 ("alsa-lib" ,alsa-lib)
1065 ("python-cython" ,python-cython)))
1066 (native-inputs
1067 `(("unzip" ,unzip)))
1068 (home-page "http://portmedia.sourceforge.net/portmidi/")
1069 (synopsis "Python bindings to PortMidi")
1070 (description
1071 "This package provides Python bindings to the PortMidi library.")
1072 (license license:expat)))
aacb52fb 1073
821664f1
RW
1074(define-public frescobaldi
1075 (package
1076 (name "frescobaldi")
4b2eede4 1077 (version "2.19.0")
821664f1
RW
1078 (source (origin
1079 (method url-fetch)
1080 (uri (string-append
1081 "https://github.com/wbsoft/frescobaldi/releases/download/v"
1082 version "/frescobaldi-" version ".tar.gz"))
1083 (sha256
1084 (base32
4b2eede4 1085 "1rnk8i8dlshzx16n2qxcsqcs7kywgyazzyzw2vy4vp2gsm9vs9ml"))))
821664f1
RW
1086 (build-system python-build-system)
1087 (inputs
1088 `(("lilypond" ,lilypond)
6855b347 1089 ("portmidi" ,portmidi)
821664f1
RW
1090 ("python-pyqt-4" ,python-pyqt-4)
1091 ("python-ly" ,python-ly)
6855b347 1092 ("python-pyportmidi" ,python-pyportmidi)
821664f1
RW
1093 ("poppler" ,poppler)
1094 ("python-poppler-qt4" ,python-poppler-qt4)
1095 ("python-sip" ,python-sip)))
1096 (home-page "http://www.frescobaldi.org/")
1097 (synopsis "LilyPond sheet music text editor")
1098 (description
1099 "Frescobaldi is a LilyPond sheet music text editor with syntax
1100highlighting and automatic completion. Among other things, it can render
1101scores next to the source, can capture input from MIDI or read MusicXML and
1102ABC files, has a MIDI player for proof-listening, and includes a documentation
1103browser.")
1104 (license license:gpl2+)))
ddfddb0c 1105
bf76d780
RW
1106(define-public drumstick
1107 (package
1108 (name "drumstick")
cfac1272 1109 (version "1.0.2")
bf76d780
RW
1110 (source (origin
1111 (method url-fetch)
1112 (uri (string-append "mirror://sourceforge/drumstick/"
1113 version "/drumstick-" version ".tar.bz2"))
1114 (sha256
1115 (base32
cfac1272 1116 "0l47gy9yywrc860db5g3wdqg8yc8qdb2lqq6wvw1dfim5j0vbail"))))
bf76d780
RW
1117 (build-system cmake-build-system)
1118 (arguments
1119 `(#:tests? #f ; no test target
1120 #:configure-flags '("-DLIB_SUFFIX=")
1121 #:phases
1122 (modify-phases %standard-phases
1123 (add-before 'configure 'fix-docbook
1124 (lambda* (#:key inputs #:allow-other-keys)
1125 (substitute* "cmake_admin/CreateManpages.cmake"
1126 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1127 (string-append (assoc-ref inputs "docbook-xsl")
1128 "/xml/xsl/docbook-xsl-"
1129 ,(package-version docbook-xsl)
1130 "/manpages/docbook.xsl")))
1131 #t)))))
1132 (inputs
ca1cab82
EF
1133 `(("qtbase" ,qtbase)
1134 ("qtsvg" ,qtsvg)
bf76d780
RW
1135 ("alsa-lib" ,alsa-lib)
1136 ("fluidsynth" ,fluidsynth)))
1137 (native-inputs
1138 `(("pkg-config" ,pkg-config)
1139 ("libxslt" ,libxslt) ;for xsltproc
1140 ("docbook-xsl" ,docbook-xsl)
1141 ("doxygen" ,doxygen)))
1142 (home-page "http://drumstick.sourceforge.net/")
1143 (synopsis "C++ MIDI library")
1144 (description
1145 "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It
1146includes a C++ wrapper around the ALSA library sequencer interface. A
1147complementary library provides classes for processing SMF (Standard MIDI
1148files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A
1149multiplatform realtime MIDI I/O library is also provided with various output
1150backends, including ALSA, OSS, Network and FluidSynth.")
1151 (license license:gpl2+)))
1152
8e92cfb1
RW
1153(define-public vmpk
1154 (package
1155 (name "vmpk")
fb492b9a 1156 (version "0.6.2a")
8e92cfb1
RW
1157 (source (origin
1158 (method url-fetch)
1159 (uri (string-append "mirror://sourceforge/vmpk/vmpk/"
fb492b9a
RW
1160 (string-drop-right version 1)
1161 "/vmpk-" version ".tar.bz2"))
8e92cfb1
RW
1162 (sha256
1163 (base32
fb492b9a 1164 "0259iikvxnfdiifrh02g8xgcxikrkca4nhd3an8xzx0bd6bk8ifi"))))
8e92cfb1
RW
1165 (build-system cmake-build-system)
1166 (arguments
1167 `(#:tests? #f ; no test target
1168 #:phases
1169 (modify-phases %standard-phases
1170 (add-before 'configure 'fix-docbook
1171 (lambda* (#:key inputs #:allow-other-keys)
1172 (substitute* "cmake_admin/CreateManpages.cmake"
1173 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1174 (string-append (assoc-ref inputs "docbook-xsl")
1175 "/xml/xsl/docbook-xsl-"
1176 ,(package-version docbook-xsl)
1177 "/manpages/docbook.xsl")))
1178 #t)))))
1179 (inputs
1180 `(("drumstick" ,drumstick)
07831f7a
EF
1181 ("qtbase" ,qtbase)
1182 ("qtsvg" ,qtsvg)
1183 ("qttools" ,qttools)
1184 ("qtx11extras" ,qtx11extras)))
8e92cfb1
RW
1185 (native-inputs
1186 `(("libxslt" ,libxslt) ;for xsltproc
1187 ("docbook-xsl" ,docbook-xsl)
1188 ("pkg-config" ,pkg-config)))
1189 (home-page "http://vmpk.sourceforge.net")
1190 (synopsis "Virtual MIDI piano keyboard")
1191 (description
1192 "Virtual MIDI Piano Keyboard is a MIDI events generator and receiver. It
1193doesn't produce any sound by itself, but can be used to drive a MIDI
1194synthesizer (either hardware or software, internal or external). You can use
1195the computer's keyboard to play MIDI notes, and also the mouse. You can use
1196the Virtual MIDI Piano Keyboard to display the played MIDI notes from another
1197instrument or MIDI file player.")
1198 (license license:gpl3+)))
1199
ddfddb0c
RW
1200(define-public zynaddsubfx
1201 (package
1202 (name "zynaddsubfx")
acf2320b 1203 (version "2.5.4")
ddfddb0c
RW
1204 (source (origin
1205 (method url-fetch)
1206 (uri (string-append
1207 "mirror://sourceforge/zynaddsubfx/zynaddsubfx/"
138e7697 1208 version "/zynaddsubfx-" version ".tar.bz2"))
ddfddb0c
RW
1209 (sha256
1210 (base32
acf2320b 1211 "16llaa2wg2gbgjhwp3632b2vx9jvanj4csv7d41k233ms6d1sjq1"))))
ddfddb0c 1212 (build-system cmake-build-system)
00dfc97c
RW
1213 (arguments
1214 `(#:phases
1215 (modify-phases %standard-phases
1216 ;; Move SSE compiler optimization flags from generic target to
1217 ;; athlon64 and core2 targets, because otherwise the build would fail
1218 ;; on non-Intel machines.
1219 (add-after 'unpack 'remove-sse-flags-from-generic-target
1220 (lambda _
1221 (substitute* "src/CMakeLists.txt"
1222 (("-msse -msse2 -mfpmath=sse") "")
1223 (("-march=(athlon64|core2)" flag)
1224 (string-append flag " -msse -msse2 -mfpmath=sse")))
1225 #t)))))
ddfddb0c
RW
1226 (inputs
1227 `(("liblo" ,liblo)
1228 ("ntk" ,ntk)
1229 ("alsa-lib" ,alsa-lib)
1230 ("jack" ,jack-1)
1231 ("fftw" ,fftw)
1232 ("minixml" ,minixml)
1233 ("libxpm" ,libxpm)
1234 ("zlib" ,zlib)))
1235 (native-inputs
1236 `(("pkg-config" ,pkg-config)))
1237 (home-page "http://zynaddsubfx.sf.net/")
1238 (synopsis "Software synthesizer")
1239 (description
1240 "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
1241three synthesizer engines, multitimbral and polyphonic synths, microtonal
1242capabilities, custom envelopes, effects, etc.")
1243 (license license:gpl2)))
c493679f
RW
1244
1245(define-public yoshimi
1246 (package
1247 (name "yoshimi")
8ddc5d57 1248 (version "1.3.8.2")
c493679f
RW
1249 (source (origin
1250 (method url-fetch)
1251 (uri (string-append "mirror://sourceforge/yoshimi/"
1252 (version-major+minor version)
1253 "/yoshimi-" version ".tar.bz2"))
1254 (sha256
1255 (base32
8ddc5d57 1256 "0wl4ln6v1nkkx56kfah23chyrhga2vi93i82g0s200c4s4184xr8"))))
c493679f
RW
1257 (build-system cmake-build-system)
1258 (arguments
1259 `(#:tests? #f ; there are no tests
1260 #:configure-flags
1261 (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR="
1262 (assoc-ref %outputs "out") "/share"))
1263 #:phases
1264 (modify-phases %standard-phases
1265 (add-before 'configure 'enter-dir
1266 (lambda _ (chdir "src") #t))
1267 ;; Move SSE compiler optimization flags from generic target to
1268 ;; athlon64 and core2 targets, because otherwise the build would fail
1269 ;; on non-Intel machines.
1270 (add-after 'unpack 'remove-sse-flags-from-generic-target
1271 (lambda _
1272 (substitute* "src/CMakeLists.txt"
1273 (("-msse -msse2 -mfpmath=sse") "")
1274 (("-march=(athlon64|core2)" flag)
1275 (string-append flag " -msse -msse2 -mfpmath=sse")))
1276 #t)))))
1277 (inputs
1278 `(("boost" ,boost)
1279 ("fftwf" ,fftwf)
1280 ("alsa-lib" ,alsa-lib)
1281 ("jack" ,jack-1)
1282 ("fontconfig" ,fontconfig)
1283 ("minixml" ,minixml)
1284 ("mesa" ,mesa)
1285 ("fltk" ,fltk)
1286 ("lv2" ,lv2)
1287 ("readline" ,readline)
1288 ("ncurses" ,ncurses)
1289 ("cairo" ,cairo)
1290 ("zlib" ,zlib)))
1291 (native-inputs
1292 `(("pkg-config" ,pkg-config)))
1293 (home-page "http://yoshimi.sourceforge.net/")
1294 (synopsis "Multi-paradigm software synthesizer")
1295 (description
1296 "Yoshimi is a fork of ZynAddSubFX, a feature heavy realtime software
1297synthesizer. It offers three synthesizer engines, multitimbral and polyphonic
1298synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi
1299improves on support for JACK features, such as JACK MIDI.")
1300 (license license:gpl2)))
658212eb
LF
1301
1302(define-public cursynth
1303 (package
1304 (name "cursynth")
1305 (version "1.5")
1306 (source
1307 (origin
1308 (method url-fetch)
1309 (uri (string-append "mirror://gnu/cursynth/cursynth-"
1310 version ".tar.gz"))
1311 (sha256
1312 (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v"))
fc1adab1 1313 (patches (search-patches "cursynth-wave-rand.patch"))))
658212eb
LF
1314 (build-system gnu-build-system)
1315 (native-inputs `(("pkg-config" ,pkg-config)))
1316 ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently
1317 ;; prevents us from using pulseaudio
1318 (inputs `(("ncurses" ,ncurses)
1319 ("alsa" ,alsa-lib)))
1320 (home-page "http://www.gnu.org/software/cursynth")
1321 (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses")
1322 (description "GNU cursynth is a polyphonic synthesizer that runs
1323graphically in the terminal. It is built on a full-featured subtractive
1324synthesis engine. Notes and parameter changes may be entered via MIDI or the
1325computer's keyboard.")
1326 (license license:gpl3+)))
a763ce7d
RW
1327
1328(define-public qtractor
1329 (package
1330 (name "qtractor")
457b5eb6 1331 (version "0.7.7")
a763ce7d
RW
1332 (source (origin
1333 (method url-fetch)
1334 (uri (string-append "http://downloads.sourceforge.net/qtractor/"
1335 "qtractor-" version ".tar.gz"))
1336 (sha256
1337 (base32
457b5eb6 1338 "0q8kvy1ynlg64v1w7jxix1rpq0lp2ixgb2y8cbbwxd2b28r3r2vl"))))
a763ce7d
RW
1339 (build-system gnu-build-system)
1340 (arguments `(#:tests? #f)) ; no "check" target
1341 (inputs
1342 `(("qt" ,qt)
1343 ("alsa-lib" ,alsa-lib)
1344 ("jack" ,jack-1)
1345 ("libsndfile" ,libsndfile)
1346 ("ladspa" ,ladspa)
1347 ("lv2" ,lv2)
1348 ("lilv" ,lilv)
1349 ("suil" ,suil)
1350 ("libsamplerate" ,libsamplerate)
1351 ("libvorbis" ,libvorbis)
1352 ("libmad" ,libmad)
1353 ("rubberband" ,rubberband)
1354 ("liblo" ,liblo)
1355 ("zlib" ,zlib)))
1356 (native-inputs
1357 `(("pkg-config" ,pkg-config)))
1358 (home-page "http://qtractor.sourceforge.net/")
1359 (synopsis "Audio/MIDI multi-track sequencer")
1360 (description
1361 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
1362JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
1363follows a traditional multi-track tape recorder control paradigm.")
1364 (license license:gpl2+)))
aa0edd3f
AM
1365
1366(define-public pianobar
1367 (package
1368 (name "pianobar")
1369 (version "2015.11.22")
1370 (source (origin
1371 (method url-fetch)
1372 (uri (string-append "https://github.com/PromyLOPh/"
1373 name "/archive/" version ".tar.gz"))
1374 (file-name (string-append name "-" version ".tar.gz"))
1375 (sha256
1376 (base32
1377 "022df19bhxqvkhy0qy21xahba5s1fm17b13y0p9p9dnf2yl44wfv"))))
1378 (build-system gnu-build-system)
1379 (arguments
1380 `(#:tests? #f ; no tests
1381 #:make-flags (list "CC=gcc" "CFLAGS=-std=c99"
1382 (string-append "PREFIX=" %output))
1383 #:phases (modify-phases %standard-phases
1384 (delete 'configure))))
1385 (inputs
1386 `(("ao" ,ao)
1387 ("curl" ,curl)
1388 ("libgcrypt" ,libgcrypt)
1389 ("json-c" ,json-c)
1390 ("ffmpeg" ,ffmpeg)))
1391 (native-inputs
1392 `(("pkg-config" ,pkg-config)))
1393 (home-page "http://6xq.net/projects/pianobar/")
1394 (synopsis "Console-based pandora.com player")
1395 (description "pianobar is a console-based music player for the
1396personalized online radio pandora.com. It has configurable keys for playing
1397and managing stations, can be controlled remotely via fifo, and can run
1398event-based scripts for scrobbling, notifications, etc.")
1399 (license license:expat)))
3f7a182d
LF
1400
1401(define-public python-mutagen
1402 (package
1403 (name "python-mutagen")
1404 (version "1.31")
1405 (source (origin
1406 (method url-fetch)
1407 (uri (pypi-uri "mutagen" version))
1408 (sha256
1409 (base32
1410 "16fnnhspniac2i7qswxafawsh2x2a803hmc6bn9k1zl5fxq1380a"))))
1411 (build-system python-build-system)
1412 (home-page "https://bitbucket.org/lazka/mutagen")
1413 (synopsis "Read and write audio tags")
1414 (description "Mutagen is a Python module to handle audio metadata. It
1415supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
1416Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
1417of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
1418Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
1419APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
1420streams on an individual packet/page level.")
1421 (license license:gpl2))) ; "later version" never mentioned
1422
1423(define-public python2-mutagen
1424 (package-with-python2 python-mutagen))
8975de88
LF
1425
1426(define-public python-musicbrainzngs
1427 (package
1428 (name "python-musicbrainzngs")
1429 (version "0.5")
1430 (source (origin
1431 (method url-fetch)
1432 (uri (pypi-uri "musicbrainzngs" version))
1433 (sha256
1434 (base32
1435 "12f48llmdf5rkiqxcb70k2k1dmhm8byq0ifazvlrca8dfnmqh4r8"))))
1436 (build-system python-build-system)
1437 (home-page "https://python-musicbrainzngs.readthedocs.org/")
1438 (synopsis "Python bindings for MusicBrainz NGS webservice")
1439 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
1440web service. This library can be used to retrieve music metadata from the
1441MusicBrainz database.")
1442 ;; 'musicbrainzngs/compat.py' is ISC licensed.
1443 (license (list license:bsd-2 license:isc))))
1444
1445(define-public python2-musicbrainzngs
1446 (package-with-python2 python-musicbrainzngs))
e8fee648
LF
1447
1448(define-public python-pyechonest
1449 (package
1450 (name "python-pyechonest")
1451 (version "9.0.0")
1452 (source (origin
1453 (method url-fetch)
1454 (uri (pypi-uri "pyechonest" version))
1455 (sha256
1456 (base32
1457 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
1458 (build-system python-build-system)
1459 (home-page "https://github.com/echonest/pyechonest")
1460 (synopsis "Python interface to The Echo Nest APIs")
d3e3468f
LF
1461 (description "Pyechonest is a Python library for the Echo Nest API. With
1462Pyechonest you have Python access to the entire set of API methods including:
e8fee648
LF
1463
1464@enumerate
1465@item artist - search for artists by name, description, or attribute, and get
1466back detailed information about any artist including audio, similar artists,
1467blogs, familiarity, hotttnesss, news, reviews, urls and video.
1468@item song - search songs by artist, title, description, or attribute (tempo,
1469duration, etc) and get detailed information back about each song, such as
1470hotttnesss, audio_summary, or tracks.
1471@item track - upload a track to the Echo Nest and receive summary information
1472about the track including key, duration, mode, tempo, time signature along with
1473detailed track info including timbre, pitch, rhythm and loudness information.
1474@end enumerate\n")
1475 (license license:bsd-3)
1476 (properties `((python2-variant . ,(delay python2-pyechonest))))))
1477
1478(define-public python2-pyechonest
1479 (package (inherit (package-with-python2
1480 (strip-python2-variant python-pyechonest)))
1481 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
acd7351f
LF
1482
1483(define-public python-pylast
1484 (package
1485 (name "python-pylast")
1486 (version "1.5.1")
1487 (source (origin
1488 (method url-fetch)
1489 (uri (pypi-uri "pylast" version))
1490 (sha256
1491 (base32
1492 "10znd9xr1vs2ix519jkz3ccm90zciaddcdr2w2wrrh2jyy3bc59a"))))
1493 (build-system python-build-system)
1494 (native-inputs
1495 `(("python-coverage" ,python-coverage)
1496 ("python-mock" ,python-mock)
1497 ("python-pep8" ,python-pep8)
1498 ("python-pytest" ,python-pytest)
1499 ("python-pyflakes" ,python-pyflakes)
1500 ("python-pyyaml" ,python-pyyaml)))
1501 (propagated-inputs
1502 `(("python-six" ,python-six)))
1503 (home-page "https://github.com/pylast/pylast")
1504 (synopsis "Python interface to Last.fm and Libre.fm")
1505 (description "A Python interface to Last.fm and other API-compatible
1506websites such as Libre.fm.")
1507 (license license:asl2.0)
1508 (properties `((python2-variant . ,(delay python2-pylast))))))
1509
1510(define-public python2-pylast
1511 (let ((pylast (package-with-python2
1512 (strip-python2-variant python-pylast))))
1513 (package (inherit pylast)
1514 (native-inputs
1515 `(("python2-setuptools" ,python2-setuptools)
1516 ,@(package-native-inputs pylast))))))
3bf429af
LF
1517
1518(define-public beets
1519 (package
1520 (name "beets")
88c8d72f 1521 (version "1.3.18")
3bf429af
LF
1522 (source (origin
1523 (method url-fetch)
88c8d72f
LF
1524 (uri (string-append
1525 "https://pypi.python.org/packages/"
1526 "14/6f/c9c79c5339ab3ecced265ca18adbf5bae3d4058bae737b6164d738fb4d2c/"
1527 name "-" version ".tar.gz"))
1528 (patches (search-patches "beets-image-test-failure.patch"))
3bf429af
LF
1529 (sha256
1530 (base32
88c8d72f 1531 "09pgyywa5llbc36y0lrr21ywgsp8m2zx6p8ncf8hxik28knd5kld"))))
3bf429af
LF
1532 (build-system python-build-system)
1533 (arguments
1534 `(#:python ,python-2 ; only Python 2 is supported
1535 #:phases
1536 (modify-phases %standard-phases
1537 (add-after 'unpack 'set-HOME
36c2c8c8
LF
1538 (lambda _ (setenv "HOME" (string-append (getcwd) "/tmp"))))
1539 (replace 'check
1540 (lambda _ (zero? (system* "nosetests" "-v")))))))
3bf429af
LF
1541 (native-inputs
1542 `(("python2-beautifulsoup4" ,python2-beautifulsoup4)
1543 ("python2-flask" ,python2-flask)
1544 ("python2-setuptools" ,python2-setuptools)
1545 ("python2-mock" ,python2-mock)
1546 ("python2-mpd2" ,python2-mpd2)
36c2c8c8 1547 ("python2-nose" ,python2-nose)
3bf429af
LF
1548 ("python2-pathlib" ,python2-pathlib)
1549 ("python2-pyxdg" ,python2-pyxdg)
1550 ("python2-pyechonest" ,python2-pyechonest)
1551 ("python2-pylast" ,python2-pylast)
1552 ("python2-rarfile" ,python2-rarfile)
1553 ("python2-responses" ,python2-responses)))
1554 ;; TODO: Install optional plugins and dependencies.
b3470031 1555 (inputs
3bf429af
LF
1556 `(("python2-enum34" ,python2-enum34)
1557 ("python2-jellyfish" ,python2-jellyfish)
1558 ("python2-munkres" ,python2-munkres)
1559 ("python2-musicbrainzngs" ,python2-musicbrainzngs)
1560 ("python2-mutagen" ,python2-mutagen)
1561 ("python2-pyyaml" ,python2-pyyaml)
1562 ("python2-unidecode" ,python2-unidecode)))
1563 (home-page "http://beets.io")
1564 (synopsis "Music organizer")
1565 (description "The purpose of beets is to get your music collection right
1566once and for all. It catalogs your collection, automatically improving its
1567metadata as it goes using the MusicBrainz database. Then it provides a variety
1568of tools for manipulating and accessing your music.")
1569 (license license:expat)))
21d18113
KY
1570
1571(define-public milkytracker
1572 (package
1573 (name "milkytracker")
1574 (version "0.90.86")
1575 (source (origin
1576 (method url-fetch)
1577 (uri (string-append "http://milkytracker.org/files/"
1578 name "-" version ".tar.bz2"))
1579 (sha256
1580 (base32
1581 "1v9vp8vi24lkagfpr92c128whvakwgrm9pq2zf6ijpl5sh7014zb"))))
1582 (build-system gnu-build-system)
1583 (arguments
1584 `(#:make-flags '("CXXFLAGS=-lasound")))
1585 (inputs
1586 `(("alsa-lib" ,alsa-lib)
1587 ("jack" ,jack-1)
1588 ("sdl" ,sdl)
1589 ("zlib" ,zlib)))
1590 (native-inputs
1591 `(("pkg-config" ,pkg-config)))
1592 (synopsis "Music tracker for working with .MOD/.XM module files")
1593 (description "MilkyTracker is a music application for creating .MOD and .XM
1594module files. It attempts to recreate the module replay and user experience of
1595the popular DOS program Fasttracker II, with special playback modes available
1596for improved Amiga ProTracker 2/3 compatibility.")
1597 (home-page "http://milkytracker.org/")
1598 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
1599 (license (list license:bsd-3 license:gpl3+))))
13416a10
KY
1600
1601(define-public moc
1602 (package
1603 (name "moc")
1604 (version "2.5.1")
1605 (source (origin
1606 (method url-fetch)
1607 (uri (string-append "http://ftp.daper.net/pub/soft/"
1608 name "/stable/"
1609 name "-" version ".tar.bz2"))
1610 (sha256
1611 (base32
1612 "1wn4za08z64bhsgfhr9c0crfyvy8c3b6a337wx7gz19am5srqh8v"))))
1613 (build-system gnu-build-system)
1614 (inputs
1615 `(("alsa-lib" ,alsa-lib)
1616 ("curl" ,curl)
1617 ("faad2" ,faad2)
1618 ("ffmpeg" ,ffmpeg)
1619 ("file" ,file)
1620 ("jack" ,jack-1)
1621 ("libid3tag" ,libid3tag)
1622 ("libltdl" ,libltdl)
1623 ("libmodplug" ,libmodplug)
1624 ("libmpcdec" ,libmpcdec)
1625 ("libmad" ,libmad)
1626 ("ncurses" ,ncurses)
1627 ("openssl" ,openssl)
1628 ("sasl" ,cyrus-sasl)
1629 ("speex" ,speex)
1630 ("taglib" ,taglib)
1631 ("wavpack" ,wavpack)
1632 ("zlib" ,zlib)))
1633 (native-inputs
1634 `(("pkg-config" ,pkg-config)))
1635 (synopsis "Console audio player designed to be powerful and easy to use")
1636 (description
1637 "Music on Console is a console audio player that supports many file
1638formats, including most audio formats recognized by FFMpeg.")
1639 (home-page "http://moc.daper.net")
1640 (license license:gpl2+)))
6d3ef286
JF
1641
1642(define-public midicsv
1643 (package
1644 (name "midicsv")
1645 (version "1.1")
1646 (source (origin
1647 (method url-fetch)
1648 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
1649 name "-" version ".tar.gz"))
1650 (sha256
1651 (base32
1652 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
1653 (build-system gnu-build-system)
1654 (arguments
1655 `(#:phases (modify-phases %standard-phases (delete 'configure))
1656 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
1657 (synopsis "Convert MIDI files to and from CSV")
1658 (description
1659 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
1660value file (CSV), which preserves all the information in the MIDI file. The
1661ASCII CSV file may be loaded into a spreadsheet or database application, or
1662processed by a program to transform the MIDI data (for example, to key
1663transpose a composition or extract a track from a multi-track sequence). A
1664CSV file in the format created by midicsv may be converted back into a
1665standard MIDI file with the csvmidi program.")
1666 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
1667 (license license:public-domain)))