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