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