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