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