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