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