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