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