Revert "Add (guix self) and use it when pulling."
[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>
3c8ba11a 8;;; Copyright © 2016, 2017 Kei Kebreau <kkebreau@posteo.net>
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>
60b7ed9c 14;;; Copyright © 2017 Pierre Langlois <pierre.langlois@gmx.com>
1b6826d3
RW
15;;;
16;;; This file is part of GNU Guix.
17;;;
18;;; GNU Guix is free software; you can redistribute it and/or modify it
19;;; under the terms of the GNU General Public License as published by
20;;; the Free Software Foundation; either version 3 of the License, or (at
21;;; your option) any later version.
22;;;
23;;; GNU Guix is distributed in the hope that it will be useful, but
24;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26;;; GNU General Public License for more details.
27;;;
28;;; You should have received a copy of the GNU General Public License
29;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30
31(define-module (gnu packages music)
32 #:use-module (guix utils)
33 #:use-module (guix packages)
34 #:use-module (guix download)
8e80244a 35 #:use-module (guix git-download)
1b6826d3
RW
36 #:use-module ((guix licenses) #:prefix license:)
37 #:use-module (guix build-system gnu)
f467c352 38 #:use-module (guix build-system ant)
8b9ec354 39 #:use-module (guix build-system cmake)
821664f1 40 #:use-module (guix build-system python)
8e80244a 41 #:use-module (guix build-system waf)
1b6826d3 42 #:use-module (gnu packages)
ddfddb0c 43 #:use-module (gnu packages algebra)
91595624 44 #:use-module (gnu packages apr)
c267cc15 45 #:use-module (gnu packages audio)
2d0fd07b 46 #:use-module (gnu packages autotools)
b7367762 47 #:use-module (gnu packages backup)
8b9ec354 48 #:use-module (gnu packages base) ;libbdf
7bac8196 49 #:use-module (gnu packages bash)
1b6826d3 50 #:use-module (gnu packages bison)
b7367762 51 #:use-module (gnu packages boost)
e8069d01 52 #:use-module (gnu packages cdrom)
8b9ec354
RW
53 #:use-module (gnu packages code)
54 #:use-module (gnu packages check)
a7a7186c 55 #:use-module (gnu packages cmake)
8b9ec354 56 #:use-module (gnu packages compression)
aa0edd3f 57 #:use-module (gnu packages curl)
13416a10 58 #:use-module (gnu packages cyrus-sasl)
1b6826d3 59 #:use-module (gnu packages docbook)
99828fa7 60 #:use-module (gnu packages documentation)
91595624 61 #:use-module (gnu packages emacs)
13416a10 62 #:use-module (gnu packages file)
1b6826d3 63 #:use-module (gnu packages flex)
8e80244a 64 #:use-module (gnu packages fltk)
1b6826d3
RW
65 #:use-module (gnu packages fonts)
66 #:use-module (gnu packages fontutils)
3bf429af 67 #:use-module (gnu packages freedesktop)
6260d1a8 68 #:use-module (gnu packages gcc)
aa0edd3f 69 #:use-module (gnu packages gnupg)
1b6826d3
RW
70 #:use-module (gnu packages gettext)
71 #:use-module (gnu packages ghostscript)
ec8da0e2 72 #:use-module (gnu packages gl)
8e80244a 73 #:use-module (gnu packages glib)
c267cc15 74 #:use-module (gnu packages gnome)
770305f4 75 #:use-module (gnu packages graphics)
1b6826d3
RW
76 #:use-module (gnu packages gtk)
77 #:use-module (gnu packages guile)
c267cc15 78 #:use-module (gnu packages image)
1b6826d3 79 #:use-module (gnu packages imagemagick)
6260d1a8 80 #:use-module (gnu packages java)
91595624 81 #:use-module (gnu packages libffi)
7bac8196
LF
82 #:use-module (gnu packages linux) ; for alsa-utils
83 #:use-module (gnu packages lirc)
91595624 84 #:use-module (gnu packages llvm)
c267cc15
RW
85 #:use-module (gnu packages man)
86 #:use-module (gnu packages mp3)
3bf429af 87 #:use-module (gnu packages mpd)
e8069d01 88 #:use-module (gnu packages ncurses)
1b6826d3 89 #:use-module (gnu packages netpbm)
91595624 90 #:use-module (gnu packages pcre)
821664f1 91 #:use-module (gnu packages pdf)
1b6826d3
RW
92 #:use-module (gnu packages perl)
93 #:use-module (gnu packages pkg-config)
d231bb35 94 #:use-module (gnu packages pulseaudio) ;libsndfile
1b6826d3 95 #:use-module (gnu packages python)
1b2f753d 96 #:use-module (gnu packages python-web)
8b9ec354 97 #:use-module (gnu packages qt)
d231bb35 98 #:use-module (gnu packages rdf)
c493679f 99 #:use-module (gnu packages readline)
1b6826d3 100 #:use-module (gnu packages rsync)
21d18113 101 #:use-module (gnu packages sdl)
2d0fd07b 102 #:use-module (gnu packages tcl)
1b6826d3 103 #:use-module (gnu packages texinfo)
8f9ac901 104 #:use-module (gnu packages tex)
13416a10 105 #:use-module (gnu packages tls)
e8069d01 106 #:use-module (gnu packages video)
8b9ec354 107 #:use-module (gnu packages web)
c30a66de 108 #:use-module (gnu packages wxwidgets)
c267cc15 109 #:use-module (gnu packages xml)
ddfddb0c 110 #:use-module (gnu packages xorg)
c267cc15 111 #:use-module (gnu packages xiph)
2d0fd07b 112 #:use-module ((srfi srfi-1) #:select (last)))
1b6826d3 113
c30a66de
RW
114(define-public aria-maestosa
115 (package
116 (name "aria-maestosa")
0a151351 117 (version "1.4.13")
c30a66de
RW
118 (source (origin
119 (method url-fetch)
120 (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/"
121 version "/AriaSrc-" version ".tar.bz2"))
122 (sha256
123 (base32
0a151351 124 "1cs3z6frx2ch7rm5ammx9p0rxcjrbj1vq14hvcbimpaw39rdsn3d"))))
c30a66de
RW
125 (build-system gnu-build-system)
126 (arguments
127 `(#:tests? #f ;no tests
128 #:phases
129 ;; TODO: Add scons-build-system and use it here.
130 (modify-phases %standard-phases
131 (delete 'configure)
132 (add-after 'unpack 'scons-propagate-environment
133 (lambda _
134 ;; By design, SCons does not, by default, propagate
135 ;; environment variables to subprocesses. See:
136 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
137 ;; Here, we modify the SConstruct file to arrange for
138 ;; environment variables to be propagated.
139 (substitute* "SConstruct"
140 (("env = Environment\\(\\)")
141 "env = Environment(ENV=os.environ)")
142 ;; Scons errors out when copying subdirectories from Resources,
143 ;; so we move them instead.
144 (("Copy") "Move")
145 ;; We move the "score" and "Documentation" directories at once,
146 ;; so we have to ignore files contained therein.
147 (("if \".svn\" in file" line)
148 (string-append line
149 " or \"score/\" in file"
150 " or \"Documentation/\" in file")))
151 #t))
152 (replace 'build (lambda _ (zero? (system* "scons"))))
153 (replace 'install
154 (lambda* (#:key outputs #:allow-other-keys)
155 (let ((out (assoc-ref outputs "out")))
156 (and
157 (zero? (system* "scons"
158 (string-append "prefix=" out)
159 "install"))
160 ;; Fix directory permissions
161 (begin
162 (chmod (string-append out "/share/Aria/Documentation") #o555)
163 (chmod (string-append out "/share/Aria/score") #o555)
164 #t))))))))
165 (inputs
166 `(("wxwidgets" ,wxwidgets)
167 ("glib" ,glib)
168 ("alsa-lib" ,alsa-lib)))
169 (native-inputs
170 `(("scons" ,scons)
171 ("pkg-config" ,pkg-config)))
172 (home-page "http://ariamaestosa.sourceforge.net/")
173 (synopsis "MIDI sequencer and editor")
174 (description
175 "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit
176and play MIDI files with a few clicks in a user-friendly interface offering
177score, keyboard, guitar, drum and controller views.")
178 (license license:gpl3+)))
179
e8069d01
PW
180(define-public cmus
181 (package
182 (name "cmus")
183 (version "2.7.1")
184 (source (origin
185 (method url-fetch)
186 (uri (string-append
187 "https://github.com/" name "/" name "/archive/v"
188 version ".tar.gz"))
566fc7fa 189 (file-name (string-append name "-" version ".tar.gz"))
e8069d01
PW
190 (sha256
191 (base32
192 "0raixgjavkm7hxppzsc5zqbfbh2bhjcmbiplhnsxsmyj8flafyc1"))))
193 (build-system gnu-build-system)
194 (arguments
195 `(#:tests? #f ; cmus does not include tests
196 #:phases
197 (modify-phases %standard-phases
198 (replace
199 'configure
200 (lambda* (#:key outputs #:allow-other-keys)
201 (let ((out (assoc-ref outputs "out")))
202
203 ;; It's an idiosyncratic configure script that doesn't
204 ;; understand --prefix=..; it wants prefix=.. instead.
205 (zero?
206 (system* "./configure"
207 (string-append "prefix=" out)))))))))
208 ;; TODO: cmus optionally supports the following formats, which haven't yet
209 ;; been added to Guix:
210 ;;
211 ;; - Roar, libroar
212 ;;
213 ;; - DISCID_LIBS, apparently different from cd-discid which is included in
214 ;; Guix. See <http://sourceforge.net/projects/discid/>
215 (native-inputs
216 `(("pkg-config" ,pkg-config)))
217 (inputs
218 `(("alsa-lib" ,alsa-lib)
219 ("ao" ,ao)
220 ("ffmpeg" ,ffmpeg)
221 ("flac" ,flac)
222 ("jack" ,jack-1)
223 ("libcddb" ,libcddb)
224 ("libcdio-paranoia" ,libcdio-paranoia)
225 ("libcue" ,libcue)
226 ("libmad" ,libmad)
227 ("libmodplug" ,libmodplug)
228 ("libmpcdec" ,libmpcdec)
229 ("libsamplerate" ,libsamplerate)
230 ("libvorbis" ,libvorbis)
231 ("ncurses" ,ncurses)
232 ("opusfile" ,opusfile)
233 ("pulseaudio" ,pulseaudio)
234 ("wavpack" ,wavpack)))
235 (home-page "https://cmus.github.io/")
236 (synopsis "Small console music player")
237 (description "Cmus is a small and fast console music player. It supports
238many input formats and provides a customisable Vi-style user interface.")
239 (license license:gpl2+)))
240
edd1652e
KK
241(define-public denemo
242 (package
243 (name "denemo")
6ff5e9ba 244 (version "2.1")
edd1652e
KK
245 (source (origin
246 (method url-fetch)
247 (uri (string-append "mirror://gnu/denemo/denemo-"
248 version ".tar.gz"))
249 (sha256
250 (base32
6ff5e9ba 251 "0hggf8c4xcrjcxd5m00r788r7jg7g8ff54w2idfaqpj5j2ix3299"))))
edd1652e
KK
252 (build-system gnu-build-system)
253 (arguments
254 `(#:phases
255 (modify-phases %standard-phases
256 (replace 'check
257 ;; Denemo's documentation says to use this command to run its
258 ;; testsuite.
259 (lambda _
260 (zero? (system* "make" "-C" "tests" "check"))))
b43ec33b
KK
261 (add-before 'build 'set-lilypond
262 ;; This phase sets the default path for lilypond to its current
263 ;; location in the store.
264 (lambda* (#:key inputs #:allow-other-keys)
265 (let* ((lilypond (string-append (assoc-ref inputs "lilypond")
266 "/bin/lilypond")))
267 (substitute* "src/core/prefops.c"
268 (("g_string_new \\(\"lilypond\"\\);")
269 (string-append "g_string_new (\""
270 lilypond
271 "\");"))))
272 #t))
edd1652e
KK
273 (add-after 'install 'correct-filename
274 ;; "graft-derivation/shallow" from the (guix grafts) module runs in
275 ;; the C locale, expecting file names to be ASCII encoded. This
276 ;; phase renames a filename with a Unicode character in it to meet
277 ;; the aforementioned condition.
278 (lambda* (#:key outputs #:allow-other-keys)
279 (let* ((out (assoc-ref outputs "out")))
280 (chdir (string-append
281 out
282 "/share/denemo/templates/instruments/woodwind"))
283 (rename-file "Clarinet in B♭.denemo"
284 "Clarinet in Bb.denemo"))
285 #t)))))
286 (native-inputs
287 `(("glib:bin", glib "bin") ; for gtester
288 ("pkg-config" ,pkg-config)))
289 (inputs
290 `(("alsa-lib" ,alsa-lib)
291 ("aubio" ,aubio)
292 ("evince" ,evince)
293 ("fftw" ,fftw)
294 ("fluidsynth" ,fluidsynth)
295 ("glib" ,glib)
296 ("gtk+" ,gtk+)
297 ("gtk-doc" ,gtk-doc)
298 ("gtksourceview" ,gtksourceview)
299 ("guile" ,guile-2.0)
300 ("intltool" ,intltool)
301 ("librsvg" ,librsvg)
302 ("libsndfile" ,libsndfile)
303 ("libtool" ,libtool)
304 ("libxml2" ,libxml2)
b43ec33b 305 ("lilypond", lilypond)
edd1652e
KK
306 ("portaudio" ,portaudio)
307 ("portmidi" ,portmidi)
308 ("rubberband" ,rubberband)))
edd1652e
KK
309 (synopsis "Graphical music notation, front-end to GNU Lilypond")
310 (description
311 "GNU Denemo is a music notation editor that provides a convenient
312interface to the powerful music engraving program Lilypond. Music can be
313typed in using the computer keyboard, played in using a MIDI keyboard, or
314even input via a microphone connected to the sound card. The final product
315is publication-quality music notation that is continuously generated in the
316background while you work.")
317 (home-page "http://www.denemo.org")
318 (license license:gpl3+)))
319
d231bb35
RW
320(define-public hydrogen
321 (package
322 (name "hydrogen")
7276b560 323 (version "0.9.7")
d231bb35
RW
324 (source (origin
325 (method url-fetch)
326 (uri (string-append
b7367762
EF
327 "https://github.com/hydrogen-music/hydrogen/archive/"
328 version ".tar.gz"))
d231bb35
RW
329 (sha256
330 (base32
7276b560 331 "1dy2jfkdw0nchars4xi4isrz66fqn53a9qk13bqza7lhmsg3s3qy"))))
b7367762 332 (build-system cmake-build-system)
d231bb35 333 (arguments
b7367762 334 `(#:test-target "tests"))
d231bb35 335 (native-inputs
b7367762 336 `(("cppunit" ,cppunit)
d231bb35
RW
337 ("pkg-config" ,pkg-config)))
338 (inputs
b7367762 339 `(("alsa-lib" ,alsa-lib)
d231bb35 340 ("jack" ,jack-1)
b7367762 341 ;; ("ladspa" ,ladspa) ; cannot find during configure
d231bb35 342 ("lash" ,lash)
b7367762
EF
343 ("libarchive" ,libarchive)
344 ("libsndfile" ,libsndfile)
345 ("libtar" ,libtar)
346 ("lrdf" ,lrdf)
d231bb35 347 ("qt" ,qt-4)
b7367762 348 ("zlib" ,zlib)))
d231bb35
RW
349 (home-page "http://www.hydrogen-music.org")
350 (synopsis "Drum machine")
351 (description
352 "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to
353enable professional yet simple and intuitive pattern-based drum programming.")
354 (license license:gpl2+)))
355
91595624
RW
356(define-public extempore
357 (package
358 (name "extempore")
359 (version "0.7.0")
360 (source (origin
361 (method url-fetch)
362 (uri (string-append
363 "https://github.com/digego/extempore/archive/"
364 version ".tar.gz"))
365 (sha256
366 (base32
367 "1wap1mvsicrhlazikf7l8zxg37fir8bmnh9rin28m1rix730vcch"))
368 (file-name (string-append name "-" version ".tar.gz"))))
369 (build-system cmake-build-system)
370 (arguments
371 `(;; The default target also includes ahead-of-time compilation of the
372 ;; standard libraries. However, during the "install" phase this would
373 ;; happen *again* for unknown reasons. Hence we only build the
374 ;; extempore executable during the build phase.
375 #:make-flags '("extempore")
376 #:configure-flags '("-DJACK=ON"
377 ;; We want to distribute.
378 "-DIN_TREE=OFF"
379 ;; Don't download any dependencies.
380 "-DBUILD_DEPS=OFF")
381 #:modules ((ice-9 match)
382 (guix build cmake-build-system)
383 (guix build utils))
384 #:phases
385 (modify-phases %standard-phases
386 (add-after 'unpack 'patch-directories
387 (lambda* (#:key outputs #:allow-other-keys)
388 ;; Rewrite default path to runtime directory
389 (substitute* "src/Extempore.cpp"
390 (("runtimedir \\+= \"runtime\"")
391 (string-append "runtimedir = \""
392 (assoc-ref outputs "out")
393 "/lib/extempore/runtime\"")))
394 (substitute* "extras/extempore.el"
395 (("\\(runtime-directory \\(concat default-directory \"runtime\"\\)\\)")
396 (string-append "(runtime-directory \""
397 (assoc-ref outputs "out")
398 "/lib/extempore/runtime"
399 "\")")))
400 #t))
401 (add-after 'unpack 'link-with-additional-libs
402 (lambda _
403 ;; The executable must be linked with libffi and zlib.
404 (substitute* "CMakeLists.txt"
405 (("add_dependencies\\(aot_extended extended_deps\\)") "")
406 (("target_link_libraries\\(extempore PRIVATE dl" line)
407 (string-append line " ffi z")))
408 #t))
409 ;; FIXME: AOT compilation of the nanovg bindings fail with the error:
410 ;; "Compiler Error could not bind _nvgLinearGradient"
411 (add-after 'unpack 'disable-nanovg
412 (lambda _
413 (substitute* "CMakeLists.txt"
414 (("aotcompile_lib\\(libs/external/nanovg.xtm.*") ""))
415 #t))
416 ;; FIXME: All examples that are used as tests segfault for some
417 ;; unknown reason.
418 (add-after 'unpack 'disable-broken-tests
419 (lambda _
420 (substitute* "CMakeLists.txt"
421 (("extempore_add_example_as_test\\(.*") ""))
422 #t))
423 (add-after 'unpack 'hardcode-external-lib-paths
424 (lambda* (#:key inputs #:allow-other-keys)
425 (use-modules (ice-9 match))
426 (for-each
427 (match-lambda
428 ((file-name lib pkg-name)
429 (substitute* (string-append "libs/external/" file-name ".xtm")
430 ((lib) (string-append (assoc-ref inputs pkg-name)
431 "/lib/" lib)))))
432 '(("assimp" "libassimp.so" "assimp")
433 ("portmidi" "libportmidi.so" "portmidi")
434 ("sndfile" "libsndfile.so" "libsndfile")
435 ("fft" "libkiss_fft.so" "kiss-fft")
436 ("stb_image" "libstb_image.so" "stb-image")
437 ("nanovg" "libnanovg.so" "nanovg")
438 ("glext" "libGL.so" "mesa")
439 ("glfw3" "libglfw.so" "glfw")
440 ("gl/glcore-directbind" "libGL.so" "mesa")
441 ("gl/glcompat-directbind" "libGL.so" "mesa")))
442 #t))
443 (add-after 'unpack 'use-own-llvm
444 (lambda* (#:key inputs #:allow-other-keys)
445 (setenv "EXT_LLVM_DIR" (assoc-ref inputs "llvm"))
446 ;; Our LLVM builds shared libraries, so Extempore should use
447 ;; those.
448 (substitute* "CMakeLists.txt"
449 (("CMAKE_STATIC_LIBRARY") "CMAKE_SHARED_LIBRARY"))
450 #t))
451 (add-after 'unpack 'fix-aot-compilation
452 (lambda* (#:key outputs #:allow-other-keys)
453 (substitute* "CMakeLists.txt"
454 ;; EXT_SHARE_DIR does not exist before installation, so the
455 ;; working directory should be the source directory instead.
456 (("WORKING_DIRECTORY \\$\\{EXT_SHARE_DIR\\}")
457 "WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}")
458 ;; Extempore needs to be told where the runtime is to be found.
459 ;; While we're at it we disable automatic tuning for a specific
460 ;; CPU to make binary substitution possible.
461 (("COMMAND extempore" prefix)
462 (string-append prefix " --sharedir " (getcwd)
463 " --mcpu=generic --attr=none")))
464 #t)))))
465 (inputs
466 `(("llvm" ,llvm-for-extempore)
467 ("libffi" ,libffi)
468 ("jack" ,jack-1)
469 ("libsndfile" ,libsndfile)
470 ("glfw" ,glfw)
471 ("apr" ,apr)
472 ("stb-image" ,stb-image-for-extempore)
473 ("kiss-fft" ,kiss-fft-for-extempore)
474 ("nanovg" ,nanovg-for-extempore)
475 ("portmidi" ,portmidi-for-extempore)
476 ("assimp" ,assimp)
477 ("alsa-lib" ,alsa-lib)
478 ("portaudio" ,portaudio)
479 ("mesa" ,mesa)
480 ("pcre" ,pcre)
481 ("zlib" ,zlib)))
482 (native-inputs
483 `(("perl" ,perl)
484 ("emacs" ,emacs-no-x)))
39162ee4
RW
485 ;; Extempore refuses to build on architectures other than x86_64
486 (supported-systems '("x86_64-linux"))
95708ed8 487 (home-page "http://digego.github.io/extempore/")
91595624
RW
488 (synopsis "Programming environment for live coding of multimedia")
489 (description
490 "Extempore is a programming language and runtime environment designed
491with live programming in mind. It supports interactive programming in a REPL
492style, compiling and binding code just-in-time. Although Extempore has its
493roots in 'live coding' of audiovisual media art, it is suitable for any task
494domain where dynamic run-time modifiability and good numerical performance are
495required. Extempore also has strong timing and concurrency semantics, which
496are helpful when working in problem spaces where timing is important (such as
497audio and video).")
498 (license license:bsd-2)))
499
8c454dcd
RW
500(define-public klick
501 (package
502 (name "klick")
503 (version "0.12.2")
504 (source (origin
505 (method url-fetch)
506 (uri (string-append "http://das.nasophon.de/download/klick-"
507 version ".tar.gz"))
508 (sha256
509 (base32
510 "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j"))))
511 (build-system gnu-build-system)
512 (arguments
513 `(#:tests? #f ;no "check" target
514 #:phases
515 ;; TODO: Add scons-build-system and use it here.
516 (modify-phases %standard-phases
517 (delete 'configure)
518 (replace 'build
519 (lambda* (#:key inputs outputs #:allow-other-keys)
520 (let ((out (assoc-ref outputs "out")))
521 (mkdir-p out)
522 (zero? (system* "scons" (string-append "PREFIX=" out))))))
523 (replace 'install (lambda _ (zero? (system* "scons" "install")))))))
524 (inputs
525 `(("boost" ,boost)
526 ("jack" ,jack-1)
527 ("libsndfile" ,libsndfile)
528 ("libsamplerate" ,libsamplerate)
529 ("liblo" ,liblo)
530 ("rubberband" ,rubberband)))
531 (native-inputs
532 `(("scons" ,scons)
533 ("python" ,python-2)
534 ("pkg-config" ,pkg-config)))
535 (home-page "http://das.nasophon.de/klick/")
536 (synopsis "Metronome for JACK")
537 (description
538 "klick is an advanced command-line based metronome for JACK. It allows
539you to define complex tempo maps for entire songs or performances.")
540 (license license:gpl2+)))
541
048bfba1
RW
542(define-public gtklick
543 (package
544 (name "gtklick")
545 (version "0.6.4")
546 (source (origin
547 (method url-fetch)
548 (uri (string-append "http://das.nasophon.de/download/gtklick-"
549 version ".tar.gz"))
550 (sha256
551 (base32
552 "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp"))))
553 (build-system python-build-system)
554 (arguments
555 `(#:tests? #f ; no tests
556 #:python ,python-2
557 #:phases
558 (modify-phases %standard-phases
559 (add-before 'build 'add-sitedirs
560 ;; .pth files are not automatically interpreted unless the
561 ;; directories containing them are added as "sites". The directories
562 ;; are then added to those in the PYTHONPATH. This is required for
563 ;; the operation of pygtk.
564 (lambda _
565 (substitute* "gtklick/gtklick.py"
566 (("import pygtk")
567 "import pygtk, site, sys
568for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))))
569 (add-after 'unpack 'inject-store-path-to-klick
570 (lambda* (#:key inputs #:allow-other-keys)
571 (substitute* "gtklick/klick_backend.py"
572 (("KLICK_PATH = 'klick'")
573 (string-append "KLICK_PATH = '"
574 (assoc-ref inputs "klick")
575 "/bin/klick'")))
576 #t)))))
577 (inputs
578 `(("klick" ,klick)
579 ("python2-pyliblo" ,python2-pyliblo)
580 ("python2-pygtk" ,python2-pygtk)))
581 (native-inputs
b94a6ca0 582 `(("gettext" ,gettext-minimal)))
048bfba1
RW
583 (home-page "http://das.nasophon.de/gtklick/")
584 (synopsis "Simple metronome with an easy-to-use graphical interface")
585 (description
586 "Gtklick is a simple metronome with an easy-to-use graphical user
587interface. It is implemented as a frontend to @code{klick}.")
588 (license license:gpl2+)))
589
a3b10217
KK
590(define-public libgme
591 (package
592 (name "libgme")
593 (version "0.6.1")
594 (source (origin
595 (method url-fetch)
596 (uri (string-append "https://bitbucket.org/mpyne/game-music-emu/"
597 "downloads/game-music-emu-" version
598 ".tar.bz2"))
599 (sha256
600 (base32
601 "08fk7zddpn7v93d0fa7fcypx7hvgwx9b5psj9l6m8b87k2hbw4fw"))))
602 (build-system cmake-build-system)
603 (arguments
604 '(#:tests? #f)) ; no check target
605 (home-page "https://bitbucket.org/mpyne/game-music-emu")
606 (synopsis "Video game music file playback library")
607 (description
608 "Game-music-emu is a collection of video game music file emulators that
609support the following formats and systems:
610@table @code
611@item AY
612ZX Spectrum/Asmtrad CPC
613@item GBS
614Nintendo Game Boy
615@item GYM
616Sega Genesis/Mega Drive
617@item HES
618NEC TurboGrafx-16/PC Engine
619@item KSS
620MSX Home Computer/other Z80 systems (doesn't support FM sound)
621@item NSF/NSFE
622Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
623@item SAP
624Atari systems using POKEY sound chip
625@item SPC
626Super Nintendo/Super Famicom
627@item VGM/VGZ
628Sega Master System/Mark III, Sega Genesis/Mega Drive, BBC Micro
629@end table")
630 (license (list license:lgpl2.1+
631 ;; demo and player directories are under the Expat license
632 license:expat))))
633
1b6826d3
RW
634(define-public lilypond
635 (package
636 (name "lilypond")
b037ce94 637 (version "2.19.63")
1b6826d3
RW
638 (source (origin
639 (method url-fetch)
640 (uri (string-append
641 "http://download.linuxaudio.org/lilypond/sources/v"
642 (version-major+minor version) "/"
643 name "-" version ".tar.gz"))
644 (sha256
645 (base32
b037ce94 646 "0hwv7m1lzyhjiyxqhqfdrrrpx475jhiwckrnxbjbv3ynhyzkngw0"))))
1b6826d3
RW
647 (build-system gnu-build-system)
648 (arguments
127b04d7 649 `(#:tests? #f ; out-test/collated-files.html fails
1b6826d3 650 #:out-of-source? #t
409be57b 651 #:make-flags '("conf=www") ;to generate images for info manuals
127b04d7 652 #:configure-flags
409be57b
RW
653 (list "CONFIGURATION=www"
654 (string-append "--with-texgyre-dir="
127b04d7
RW
655 (assoc-ref %build-inputs "font-tex-gyre")
656 "/share/fonts/opentype/"))
1b6826d3 657 #:phases
a8bc747a 658 (modify-phases %standard-phases
9cc823f5
RW
659 (add-after 'unpack 'use-texlive-union
660 (lambda _
661 ;; FIXME: fonts are not found and have to be generated in HOME.
662 (setenv "HOME" "/tmp")
663 ;; The test for the "lh" package fails, even though it is among
664 ;; the inputs.
665 (substitute* "configure"
666 (("TEX_FIKPARM=.*") "TEX_FIKPARM=found\n"))
667 #t))
409be57b
RW
668 (add-after 'unpack 'fix-path-references
669 (lambda _
a8bc747a
RW
670 (substitute* "scm/backend-library.scm"
671 (("\\(search-executable '\\(\"gs\"\\)\\)")
409be57b
RW
672 (string-append "\"" (which "gs") "\""))
673 (("\"/bin/sh\"")
674 (string-append "\"" (which "sh") "\"")))
a8bc747a
RW
675 #t))
676 (add-before 'configure 'prepare-configuration
677 (lambda _
678 (substitute* "configure"
7affb2c1
RW
679 (("SHELL=/bin/sh") "SHELL=sh")
680 ;; When checking the fontforge version do not consider the
681 ;; version string that's part of the directory.
31ec5228
EF
682 (("head -n") "tail -n")
683 ;; Also allow for SOURCE_DATE_EPOCH = 0 in fontforge.
684 (("20110222") "19700101"))
409be57b
RW
685 (setenv "out" "www")
686 (setenv "conf" "www")
687 #t))
688 (add-after 'install 'install-info
689 (lambda _
690 (zero? (system* "make"
691 "-j" (number->string (parallel-job-count))
692 "conf=www" "install-info")))))))
1b6826d3
RW
693 (inputs
694 `(("guile" ,guile-1.8)
695 ("font-dejavu" ,font-dejavu)
127b04d7 696 ("font-tex-gyre" ,font-tex-gyre)
1b6826d3
RW
697 ("fontconfig" ,fontconfig)
698 ("freetype" ,freetype)
fb0b9ff1 699 ("ghostscript" ,ghostscript)
1b6826d3
RW
700 ("pango" ,pango)
701 ("python" ,python-2)))
702 (native-inputs
703 `(("bison" ,bison)
704 ("perl" ,perl)
705 ("flex" ,flex)
706 ("fontforge" ,fontforge)
707 ("dblatex" ,dblatex)
b94a6ca0 708 ("gettext" ,gettext-minimal)
1b6826d3
RW
709 ("imagemagick" ,imagemagick)
710 ("netpbm" ,netpbm) ;for pngtopnm
9cc823f5
RW
711 ("texlive" ,(texlive-union (list texlive-metapost
712 texlive-generic-epsf
713 texlive-latex-lh
714 texlive-latex-cyrillic)))
1b6826d3
RW
715 ("texinfo" ,texinfo)
716 ("texi2html" ,texi2html)
717 ("rsync" ,rsync)
718 ("pkg-config" ,pkg-config)
719 ("zip" ,zip)))
720 (home-page "http://www.lilypond.org/")
721 (synopsis "Music typesetting")
722 (description
723 "GNU LilyPond is a music typesetter, which produces high-quality sheet
724music. Music is input in a text file containing control sequences which are
725interpreted by LilyPond to produce the final document. It is extendable with
726Guile.")
55ca5e80
LC
727 (license license:gpl3+)
728
729 ;; On armhf and mips64el, building the documentation sometimes leads to
730 ;; more than an hour of silence, so double the max silent time.
731 (properties `((max-silent-time . 7200)))))
c267cc15 732
8e80244a
RW
733(define-public non-sequencer
734 ;; The latest tagged release is three years old and uses a custom build
1bbe7959 735 ;; system, so we take the last commit.
5feac7b0
RW
736 (let ((commit "10c31e57291b6e42be53371567a722b62b32d220")
737 (revision "3"))
8e80244a
RW
738 (package
739 (name "non-sequencer")
1bbe7959 740 (version (string-append "1.9.5-" revision "." (string-take commit 7)))
8e80244a
RW
741 (source (origin
742 (method git-fetch)
743 (uri (git-reference
744 (url "git://git.tuxfamily.org/gitroot/non/non.git")
745 (commit commit)))
746 (sha256
747 (base32
5feac7b0 748 "080rha4ffp7qycyg1mqcf4vj0s7z8qfvz6bxm0w29xgg2kkmb3fx"))
8e80244a
RW
749 (file-name (string-append name "-" version "-checkout"))))
750 (build-system waf-build-system)
751 (arguments
752 `(#:tests? #f ;no "check" target
e591a4d6
RW
753 #:configure-flags
754 (list "--project=sequencer"
755 ;; Disable the use of SSE unless on x86_64.
756 ,@(if (not (string-prefix? "x86_64" (or (%current-target-system)
757 (%current-system))))
758 '("--disable-sse")
759 '()))
d8c317df
SB
760 #:phases
761 (modify-phases %standard-phases
762 (add-before
763 'configure 'set-flags
764 (lambda _
765 ;; Compile with C++11, required by libsigc++.
766 (setenv "CXXFLAGS" "-std=c++11")
767 #t)))
8e80244a
RW
768 #:python ,python-2))
769 (inputs
770 `(("jack" ,jack-1)
771 ("libsigc++" ,libsigc++)
772 ("liblo" ,liblo)
773 ("ntk" ,ntk)))
774 (native-inputs
775 `(("pkg-config" ,pkg-config)))
776 (home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer")
777 (synopsis "Pattern-based MIDI sequencer")
778 (description
779 "The Non Sequencer is a powerful, lightweight, real-time,
780pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for
781MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non
782Sequencer happens on-line, in real-time. Music can be composed live, while the
783transport is rolling.")
784 (license license:gpl2+))))
785
ded69d6f
RW
786(define-public non-session-manager
787 (package (inherit non-sequencer)
788 (name "non-session-manager")
789 (arguments
790 (substitute-keyword-arguments (package-arguments non-sequencer)
791 ((#:configure-flags flags)
792 `(cons "--project=session-manager"
793 (delete "--project=sequencer" ,flags)))))
794 (inputs
795 `(("jack" ,jack-1)
796 ("liblo" ,liblo)
797 ("ntk" ,ntk)))
798 (native-inputs
799 `(("pkg-config" ,pkg-config)))
800 (home-page "http://non.tuxfamily.org/nsm/")
801 (synopsis "Audio session management")
802 (description
803 "The Non Session Manager is an API and an implementation for audio
804session management. NSM clients use a well-specified OSC protocol to
805communicate with the session management daemon.")
806 (license license:gpl2+)))
807
46bb58b8
RW
808(define-public non-mixer
809 (package (inherit non-sequencer)
810 (name "non-mixer")
811 (arguments
812 (substitute-keyword-arguments (package-arguments non-sequencer)
813 ((#:configure-flags flags)
814 `(cons "--project=mixer"
815 (delete "--project=sequencer" ,flags)))))
816 (inputs
817 `(("jack" ,jack-1)
818 ("liblo" ,liblo)
819 ("ladspa" ,ladspa)
820 ("lrdf" ,lrdf)
821 ("ntk" ,ntk)))
822 (native-inputs
823 `(("pkg-config" ,pkg-config)))
824 (home-page "http://non.tuxfamily.org/wiki/Non%20Mixer")
825 (synopsis "Modular digital audio mixer")
826 (description
827 "The Non Mixer is a powerful, reliable and fast modular digital audio
828mixer. It utilizes JACK for inter-application audio I/O and the NTK GUI
829toolkit for a fast and lightweight user interface. Non Mixer can be used
830alone or in concert with Non Timeline and Non Sequencer to form a complete
831studio.")
832 (license license:gpl2+)))
833
4511e0db
RW
834(define-public non-timeline
835 (package (inherit non-sequencer)
836 (name "non-timeline")
837 (arguments
838 (substitute-keyword-arguments (package-arguments non-sequencer)
839 ((#:configure-flags flags)
840 `(cons "--project=timeline"
841 (delete "--project=sequencer" ,flags)))))
842 (inputs
843 `(("jack" ,jack-1)
844 ("liblo" ,liblo)
845 ("libsndfile" ,libsndfile)
846 ("ntk" ,ntk)))
847 (native-inputs
848 `(("pkg-config" ,pkg-config)))
849 (home-page "http://non.tuxfamily.org/wiki/Non%20Timeline")
850 (synopsis "Modular digital audio timeline arranger")
851 (description
852 "The Non Timeline is a powerful, reliable and fast modular digital audio
853timeline arranger. It utilizes JACK for inter-application audio I/O and the
854NTK GUI toolkit for a fast and lightweight user interface. Non Timeline can
855be used alone or in concert with Non Mixer and Non Sequencer to form a
856complete studio.")
857 (license license:gpl2+)))
858
c267cc15
RW
859(define-public solfege
860 (package
861 (name "solfege")
862 (version "3.22.2")
863 (source (origin
864 (method url-fetch)
865 (uri (string-append
866 "mirror://gnu/solfege/solfege-"
867 version ".tar.xz"))
868 (sha256
869 (base32
870 "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i"))))
871 (build-system gnu-build-system)
872 (arguments
873 `(#:tests? #f ; xmllint attempts to download DTD
874 #:test-target "test"
875 #:phases
dc1d3cde
KK
876 (modify-phases %standard-phases
877 (add-after 'unpack 'fix-configuration
878 (lambda* (#:key inputs #:allow-other-keys)
879 (substitute* "default.config"
880 (("csound=csound")
881 (string-append "csound="
882 (assoc-ref inputs "csound")
883 "/bin/csound"))
884 (("/usr/bin/aplay")
885 (string-append (assoc-ref inputs "aplay")
886 "/bin/aplay"))
887 (("/usr/bin/timidity")
888 (string-append (assoc-ref inputs "timidity")
889 "/bin/timidity"))
890 (("/usr/bin/mpg123")
891 (string-append (assoc-ref inputs "mpg123")
892 "/bin/mpg123"))
893 (("/usr/bin/ogg123")
894 (string-append (assoc-ref inputs "ogg123")
895 "/bin/ogg123")))
896 #t))
897 (add-before 'build 'patch-python-shebangs
898 (lambda _
899 ;; Two python scripts begin with a Unicode BOM, so patch-shebang
900 ;; has no effect.
901 (substitute* '("solfege/parsetree.py"
902 "solfege/presetup.py")
903 (("#!/usr/bin/python") (string-append "#!" (which "python"))))
904 #t))
905 (add-before 'build 'add-sitedirs
906 ;; .pth files are not automatically interpreted unless the
907 ;; directories containing them are added as "sites". The directories
908 ;; are then added to those in the PYTHONPATH. This is required for
909 ;; the operation of pygtk and pygobject.
910 (lambda _
911 (substitute* "run-solfege.py"
912 (("import os")
913 "import os, site
914for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))
915 #t))
916 (add-before 'build 'adjust-config-file-prefix
c267cc15
RW
917 (lambda* (#:key outputs #:allow-other-keys)
918 (substitute* "run-solfege.py"
919 (("prefix = os.path.*$")
dc1d3cde
KK
920 (string-append "prefix = " (assoc-ref outputs "out"))))
921 #t))
922 (add-after 'install 'wrap-program
923 (lambda* (#:key inputs outputs #:allow-other-keys)
924 ;; Make sure 'solfege' runs with the correct PYTHONPATH.
925 (let* ((out (assoc-ref outputs "out"))
926 (path (getenv "PYTHONPATH")))
927 (wrap-program (string-append out "/bin/solfege")
928 `("PYTHONPATH" ":" prefix (,path))))
929 #t)))))
c267cc15
RW
930 (inputs
931 `(("python" ,python-2)
932 ("pygtk" ,python2-pygtk)
b94a6ca0 933 ("gettext" ,gettext-minimal)
c267cc15 934 ("gtk" ,gtk+)
e8309291 935 ("lilypond" ,lilypond)
c267cc15
RW
936 ;; players needed at runtime
937 ("aplay" ,alsa-utils)
938 ("csound" ,csound) ; optional, needed for some exercises
939 ("mpg123" ,mpg123)
940 ("ogg123" ,vorbis-tools)
941 ("timidity" ,timidity++)))
942 (native-inputs
943 `(("pkg-config" ,pkg-config)
944 ("txt2man" ,txt2man)
945 ("libxml2" ,libxml2) ; for tests
946 ("ghostscript" ,ghostscript)
c267cc15
RW
947 ("texinfo" ,texinfo)))
948 (home-page "https://www.gnu.org/software/solfege/")
949 (synopsis "Ear training")
950 (description
951 "GNU Solfege is a program for practicing musical ear-training. With it,
952you can practice your recognition of various musical intervals and chords. It
953features a statistics overview so you can monitor your progress across several
954sessions. Solfege is also designed to be extensible so you can easily write
955your own lessons.")
956 (license license:gpl3+)))
6260d1a8 957
8b9ec354
RW
958(define-public powertabeditor
959 (package
960 (name "powertabeditor")
92a1cb92 961 (version "2.0.0-alpha10")
8b9ec354
RW
962 (source (origin
963 (method url-fetch)
964 (uri (string-append
965 "https://github.com/powertab/powertabeditor/archive/"
966 version ".tar.gz"))
967 (file-name (string-append name "-" version ".tar.gz"))
968 (sha256
969 (base32
92a1cb92 970 "1fr14ql0yhlqvh6y08yaanszm2nvca5i50rqym396kfvga3ky18x"))
8b9ec354
RW
971 (modules '((guix build utils)))
972 (snippet
973 '(begin
974 ;; Remove bundled sources for external libraries
975 (delete-file-recursively "external")
40effef7 976 ;; Use only system libraries
8b9ec354 977 (substitute* "CMakeLists.txt"
40effef7
RW
978 (("include\\( PTE_ThirdParty \\)")
979 "\
980include(third_party/Qt)
981include(third_party/boost)
982add_library( Catch INTERFACE IMPORTED )
983add_library( rapidjson INTERFACE IMPORTED )"))
8b9ec354
RW
984 #t))))
985 (build-system cmake-build-system)
986 (arguments
7e11d113 987 `(#:modules ((guix build cmake-build-system)
8b9ec354
RW
988 (guix build utils)
989 (ice-9 match))
990 #:configure-flags
991 ;; CMake appears to lose the RUNPATH for some reason, so it has to be
992 ;; explicitly set with CMAKE_INSTALL_RPATH.
7e11d113 993 (list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
7e11d113 994 (string-append "-DCMAKE_INSTALL_RPATH="
8b9ec354
RW
995 (string-join (map (match-lambda
996 ((name . directory)
997 (string-append directory "/lib")))
40effef7
RW
998 %build-inputs) ";"))
999 "-DPTE_DATA_DIR=share/powertabeditor")
8b9ec354
RW
1000 #:phases
1001 (modify-phases %standard-phases
40effef7
RW
1002 (replace 'check
1003 (lambda _
1004 (zero? (system* "bin/pte_tests"
92a1cb92
RW
1005 ;; FIXME: these tests fail
1006 "exclude:Actions/EditStaff"
1007 "exclude:Formats/PowerTabOldImport/MergeMultiBarRests"
1008 "exclude:Score/ViewFilter/FilterRule"
1009 "exclude:Score/ViewFilter/ViewFilter"
1010 "exclude:Formats/PowerTabOldImport/Directions"
1011 ))))
40effef7
RW
1012 (add-before 'configure 'remove-third-party-libs
1013 (lambda* (#:key inputs #:allow-other-keys)
1014 ;; Link with required static libraries, because we're not
1015 ;; using the bundled version of withershins.
c3913fac 1016 ;; Also add pthread for fixing a linker error.
40effef7
RW
1017 (substitute* "source/build/CMakeLists.txt"
1018 (("withershins" line)
1019 (string-append line "\n"
1020 (assoc-ref inputs "binutils")
1021 "/lib/libbfd.a\n"
1022 (assoc-ref inputs "libiberty")
1023 "/lib/libiberty.a\n"
1024 "dl\n"
c3913fac 1025 "pthread\n"
40effef7
RW
1026 "z\n")))
1027 #t)))))
8b9ec354
RW
1028 (inputs
1029 `(("boost" ,boost)
1030 ("alsa-lib" ,alsa-lib)
0a0bfd68 1031 ("qtbase" ,qtbase)
8b9ec354 1032 ("withershins" ,withershins)
d6902798 1033 ("libiberty" ,libiberty) ;for withershins
8b9ec354
RW
1034 ("binutils" ,binutils) ;for -lbfd and -liberty (for withershins)
1035 ("timidity" ,timidity++)
1036 ("pugixml" ,pugixml)
1037 ("rtmidi" ,rtmidi)
1038 ("rapidjson" ,rapidjson)
1039 ("zlib" ,zlib)))
1040 (native-inputs
1041 `(("catch" ,catch-framework)
1042 ("pkg-config" ,pkg-config)))
1043 (home-page "http://powertabs.net")
1044 (synopsis "Guitar tablature editor")
1045 (description
1046 "Power Tab Editor 2.0 is the successor to the famous original Power Tab
1047Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
1048 (license license:gpl3+)))
1049
3d4b1bb9
RW
1050(define-public jalv-select
1051 (package
1052 (name "jalv-select")
eaace76c 1053 (version "0.8")
3d4b1bb9
RW
1054 (source (origin
1055 (method url-fetch)
1056 (uri (string-append "https://github.com/brummer10/jalv_select/"
1057 "archive/V" version ".tar.gz"))
1058 (sha256
1059 (base32
eaace76c 1060 "0zraagwr681b5s3qifxf399c7q93jz23c8sr42gmff9zqnvxc75q"))))
3d4b1bb9
RW
1061 (build-system gnu-build-system)
1062 (arguments
1063 `(#:make-flags
1064 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1065 #:phases
1066 (modify-phases %standard-phases
1067 (delete 'configure)
1068 (add-after 'unpack 'ignore-PATH
1069 (lambda* (#:key inputs #:allow-other-keys)
1070 (substitute* "jalv.select.cpp"
ad7f6e5f 1071 (("echo \\$PATH.*tr ':'.*xargs ls")
3d4b1bb9
RW
1072 (string-append "ls -1 " (assoc-ref inputs "jalv") "/bin")))
1073 (substitute* "jalv.select.h"
1074 (("gtkmm.h") "gtkmm-2.4/gtkmm.h"))
1075 #t)))))
1076 (inputs
1077 `(("lilv" ,lilv)
1078 ("lv2" ,lv2)
1079 ("jalv" ,jalv)
1080 ("gtkmm" ,gtkmm-2)))
1081 (native-inputs
1082 `(("pkg-config" ,pkg-config)))
1083 (home-page "https://github.com/brummer10/jalv_select")
1084 (synopsis "GUI to select LV2 plugins and run them with jalv")
1085 (description
1086 "The jalv.select package provides a graphical user interface allowing
1087users to select LV2 plugins and run them with jalv.")
1088 (license license:public-domain)))
1089
b095e762
RW
1090(define-public synthv1
1091 (package
1092 (name "synthv1")
9cb928ad 1093 (version "0.8.4")
b095e762
RW
1094 (source (origin
1095 (method url-fetch)
1096 (uri
de67e922
LF
1097 (string-append "mirror://sourceforge/synthv1/synthv1/" version
1098 "/synthv1-" version ".tar.gz"))
b095e762
RW
1099 (sha256
1100 (base32
9cb928ad 1101 "0awk2zx0xa6vl6ah24zz0k2mwsx50hh5g1rh32mp790fp4x7l5s8"))))
b095e762 1102 (build-system gnu-build-system)
69008d73
DC
1103 (arguments
1104 `(#:tests? #f ; There are no tests.
1105 #:configure-flags
1106 '("CXXFLAGS=-std=gnu++11")))
b095e762
RW
1107 (inputs
1108 `(("jack" ,jack-1)
1109 ("lv2" ,lv2)
1110 ("alsa-lib" ,alsa-lib)
b45aa39b 1111 ("non-session-manager" ,non-session-manager)
b095e762 1112 ("liblo" ,liblo)
e5f2afdb
EF
1113 ("qtbase" ,qtbase)
1114 ("qttools" ,qttools)))
b45aa39b
RW
1115 (native-inputs
1116 `(("pkg-config" ,pkg-config)))
b095e762
RW
1117 (home-page "http://synthv1.sourceforge.net")
1118 (synopsis "Polyphonic subtractive synthesizer")
1119 (description
1120 "Synthv1 is an old-school subtractive polyphonic synthesizer with four
1121oscillators and stereo effects.")
1122 (license license:gpl2+)))
2bb00612 1123
cf9af706
RW
1124(define-public drumkv1
1125 (package
1126 (name "drumkv1")
f7a99e27 1127 (version "0.8.4")
cf9af706
RW
1128 (source (origin
1129 (method url-fetch)
1130 (uri
1131 (string-append "mirror://sourceforge/drumkv1/drumkv1/" version
1132 "/drumkv1-" version ".tar.gz"))
1133 (sha256
1134 (base32
f7a99e27 1135 "0qqpklzy4wgw9jy0v2810j06712q90bwc69fp7da82536ba058a9"))))
cf9af706
RW
1136 (build-system gnu-build-system)
1137 (arguments
1138 `(#:tests? #f ; There are no tests.
1139 #:configure-flags
1140 '("CXXFLAGS=-std=gnu++11")))
1141 (inputs
1142 `(("jack" ,jack-1)
1143 ("lv2" ,lv2)
1144 ("libsndfile" ,libsndfile)
1145 ("alsa-lib" ,alsa-lib)
41e2a731 1146 ("non-session-manager" ,non-session-manager)
cf9af706
RW
1147 ("liblo" ,liblo)
1148 ("qtbase" ,qtbase)))
1149 (native-inputs
1150 `(("pkg-config" ,pkg-config)
1151 ("qttools" ,qttools)))
1152 (home-page "http://drumkv1.sourceforge.net")
1153 (synopsis "Drum-kit sampler synthesizer with stereo effects")
1154 (description
1155 "Drumkv1 is an old-school drum-kit sampler synthesizer with stereo
1156effects.")
1157 (license license:gpl2+)))
1158
18675264
RW
1159(define-public samplv1
1160 (package
1161 (name "samplv1")
fba1cade 1162 (version "0.8.4")
18675264
RW
1163 (source (origin
1164 (method url-fetch)
1165 (uri
1166 (string-append "mirror://sourceforge/samplv1/samplv1/" version
1167 "/samplv1-" version ".tar.gz"))
1168 (sha256
1169 (base32
fba1cade 1170 "107p2xsj066q2bil0xcgqrrn7lawp02wzf7qmlajcbnd79jhsi6i"))))
18675264
RW
1171 (build-system gnu-build-system)
1172 (arguments
1173 `(#:tests? #f ; There are no tests.
1174 #:configure-flags
1175 '("CXXFLAGS=-std=gnu++11")))
1176 (inputs
1177 `(("jack" ,jack-1)
1178 ("lv2" ,lv2)
1179 ("libsndfile" ,libsndfile)
1180 ("alsa-lib" ,alsa-lib)
92b70c6f 1181 ("non-session-manager" ,non-session-manager)
18675264
RW
1182 ("liblo" ,liblo)
1183 ("qtbase" ,qtbase)))
1184 (native-inputs
1185 `(("pkg-config" ,pkg-config)
1186 ("qttools" ,qttools)))
1187 (home-page "http://samplv1.sourceforge.net")
1188 (synopsis "Polyphonic sampler synthesizer with stereo effects")
1189 (description
1190 "Samplv1 is an old-school polyphonic sampler synthesizer with stereo
1191effects.")
1192 (license license:gpl2+)))
1193
2bb00612
RW
1194(define-public amsynth
1195 (package
1196 (name "amsynth")
7e0befd4 1197 (version "1.7.1")
2bb00612
RW
1198 (source
1199 (origin
1200 (method url-fetch)
1201 (uri (string-append "https://github.com/amsynth/amsynth/releases/"
1202 "download/release-" version
1203 "/amsynth-" version ".tar.bz2"))
1204 (sha256
1205 (base32
7e0befd4 1206 "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
2bb00612
RW
1207 (build-system gnu-build-system)
1208 (arguments
1209 `(#:phases
1210 (modify-phases %standard-phases
1211 (add-before 'configure 'set-flags
1212 (lambda _
1213 ;; Compile with C++11, required by gtkmm.
1214 (setenv "CXXFLAGS" "-std=c++11")
1215 #t)))))
1216 (inputs
1217 `(("alsa-lib" ,alsa-lib)
1218 ("jack" ,jack-1)
1219 ("lv2" ,lv2)
7175f4c2 1220 ("lash" ,lash)
2bb00612
RW
1221 ("libsndfile" ,libsndfile)
1222 ("gtk+" ,gtk+-2)
1223 ("gtkmm" ,gtkmm-2)))
1224 (native-inputs
7e0befd4
RW
1225 `(("pkg-config" ,pkg-config)
1226 ("intltool" ,intltool)))
2bb00612
RW
1227 (home-page "http://amsynth.github.io")
1228 (synopsis "Analog modeling synthesizer")
1229 (description
1230 "amsynth is an easy-to-use software synthesizer with a classic
1231subtractive synthesizer topology. Its features include: dual
1232oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct
1233resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato
1234keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO
1235which can modulate the oscillators, filter, and amplitude; distortion and
1236reverb effects.")
1237 (license license:gpl2+)))
b095e762 1238
ec8da0e2
RW
1239(define-public setbfree
1240 (package
1241 (name "setbfree")
8dbc5d23 1242 (version "0.8.4")
ec8da0e2
RW
1243 (source (origin
1244 (method url-fetch)
1245 (uri
a39f48b8
RW
1246 (string-append "https://github.com/pantherb/setBfree/archive/v"
1247 version ".tar.gz"))
1248 (file-name (string-append name "-" version ".tar.gz"))
ec8da0e2
RW
1249 (sha256
1250 (base32
8dbc5d23 1251 "1g4s1920kb2q5gpp82l2vxia29qa8g8zvdjgrca8ypynvxpzn65f"))))
ec8da0e2
RW
1252 (build-system gnu-build-system)
1253 (arguments
1254 `(#:tests? #f ; no "check" target
1255 #:make-flags
1256 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1257 (string-append "FONTFILE="
1258 (assoc-ref %build-inputs "font-bitstream-vera")
b42d4508
RW
1259 "/share/fonts/truetype/VeraBd.ttf")
1260 ;; Disable unsupported optimization flags on non-x86
1261 ,@(let ((system (or (%current-target-system)
1262 (%current-system))))
1263 (if (or (string-prefix? "x86_64" system)
1264 (string-prefix? "i686" system))
1265 '()
1266 '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
ec8da0e2
RW
1267 #:phases
1268 (modify-phases %standard-phases
1269 (add-before 'build 'set-CC-variable
1270 (lambda _ (setenv "CC" "gcc") #t))
1271 (delete 'configure))))
1272 (inputs
1273 `(("jack" ,jack-1)
1274 ("lv2" ,lv2)
1275 ("zita-convolver" ,zita-convolver)
1276 ("glu" ,glu)
1277 ("ftgl" ,ftgl)
1278 ("font-bitstream-vera" ,font-bitstream-vera)))
1279 (native-inputs
1280 `(("help2man" ,help2man)
1281 ("pkg-config" ,pkg-config)))
1282 (home-page "http://setbfree.org")
1283 (synopsis "Tonewheel organ")
1284 (description
1285 "setBfree is a MIDI-controlled, software synthesizer designed to imitate
1286the sound and properties of the electromechanical organs and sound
1287modification devices that brought world-wide fame to the names and products of
1288Laurens Hammond and Don Leslie.")
1289 (license license:gpl2+)))
1290
770305f4
RW
1291(define-public beast
1292 (package
1293 (name "beast")
1294 (version "0.10.0")
1295 (source (origin
1296 (method url-fetch)
1297 (uri (string-append "https://testbit.eu/pub/dists/beast/beast-"
1298 version ".tar.xz"))
1299 (sha256
1300 (base32
1301 "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn"))))
1302 (build-system gnu-build-system)
844f4f6e
EF
1303 (arguments
1304 '(#:parallel-build? #f)) ; Race conditions cause build failures
770305f4
RW
1305 (inputs
1306 `(("rapicorn" ,rapicorn)
1307 ("guile" ,guile-1.8)
1308 ("python" ,python-2)
770305f4
RW
1309 ("libgnomecanvas" ,libgnomecanvas)
1310 ("libogg" ,libogg)
1311 ("libmad" ,libmad)
1312 ("flac" ,flac)
1313 ("alsa-lib" ,alsa-lib)
1314 ("libvorbis" ,libvorbis)
b94a6ca0 1315 ("gettext" ,gettext-minimal)))
770305f4
RW
1316 (native-inputs
1317 `(("pkg-config" ,pkg-config)
1318 ("glib:bin" ,glib "bin")
f2516de2 1319 ("cython" ,python2-cython)
770305f4
RW
1320 ("perl" ,perl)
1321 ("perl-xml-parser" ,perl-xml-parser)))
1322 (home-page "https://testbit.eu/wiki/Beast_Home")
1323 (synopsis "Music composition and modular synthesis environment")
1324 (description
1325 "Beast is a music composition and modular synthesis application. It
1326supports a wide range of standards in the field, such as MIDI, various audio
1327file formats and LADSPA modules. It allows for multitrack editing, real-time
1328synthesis, 32bit audio rendering, precise timing down to sample granularity,
1329on-demand and partial loading of wave files, on the fly decoding, stereo
1330mixing, FFT scopes, MIDI automation and full scriptability in Scheme.")
1331 (license license:gpl3+)))
1332
96250294
RW
1333(define-public bristol
1334 (package
1335 (name "bristol")
1336 (version "0.60.11")
1337 (source (origin
1338 (method url-fetch)
1339 (uri (string-append "mirror://sourceforge/bristol/bristol/"
1340 (version-major+minor version)
1341 "/bristol-" version ".tar.gz"))
1342 (sha256
1343 (base32
1344 "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
1345 (build-system gnu-build-system)
18ef998b
RW
1346 (arguments
1347 `(#:phases
1348 (modify-phases %standard-phases
1349 (add-after 'unpack 'remove-sse-flags
1350 (lambda* (#:key system #:allow-other-keys)
1351 (when (not (or (string-prefix? "x86_64" system)
1352 (string-prefix? "i686" system)))
1353 (substitute* "bristol/Makefile.in"
1354 (("-msse -mfpmath=sse") "")))
73124d34 1355 #t))
bd0c6231
RW
1356 ;; alsa-lib 1.1.x no longer provides iatomic.h. That's okay because
1357 ;; bristol actually doesn't use it.
1358 (add-after 'unpack 'do-not-use-alsa-iatomic
1359 (lambda _
1360 (substitute* "libbristolaudio/audioEngineJack.c"
1361 (("#include <alsa/iatomic.h>") ""))
1362 #t))
73124d34
RW
1363 ;; We know that Bristol has been linked with JACK and we don't have
1364 ;; ldd, so we can just skip this check.
1365 (add-after 'unpack 'do-not-grep-for-jack
1366 (lambda _
1367 (substitute* "bin/startBristol.in"
1368 (("ldd `which bristol` | grep jack") "echo guix"))
18ef998b 1369 #t)))))
96250294
RW
1370 (inputs
1371 `(("alsa-lib" ,alsa-lib)
1372 ("jack" ,jack-1)
1373 ("liblo" ,liblo)
1374 ("libx11" ,libx11)))
1375 (native-inputs
1376 `(("pkg-config" ,pkg-config)))
1377 (home-page "http://bristol.sourceforge.net/")
1378 (synopsis "Synthesizer emulator")
1379 (description
1380 "Bristol is an emulation package for a number of different 'classic'
1381synthesizers including additive and subtractive and a few organs. The
1382application consists of the engine, which is called bristol, and its own GUI
1383library called brighton that represents all the emulations. There are
1384currently more than twenty different emulations; each does sound different
1385although the author maintains that the quality and accuracy of each emulation
1386is subjective.")
1387 (license license:gpl3+)))
1388
6260d1a8
RW
1389(define-public tuxguitar
1390 (package
1391 (name "tuxguitar")
750e54ec 1392 (version "1.4")
6260d1a8
RW
1393 (source (origin
1394 (method url-fetch)
1395 (uri (string-append
1396 "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-"
f467c352 1397 version "/tuxguitar-" version "-src.tar.gz"))
6260d1a8
RW
1398 (sha256
1399 (base32
750e54ec 1400 "041275vwfr82kass7wiq9g2y82w9qrbzfinzcvfij2f2q45njwmc"))
f467c352
RW
1401 (modules '((guix build utils)))
1402 (snippet
750e54ec
RW
1403 '(begin
1404 ;; Delete pre-built classes
1405 (delete-file-recursively "TuxGuitar-android-gdrive/bin")
1406 (delete-file-recursively "TuxGuitar-android-gdrive-gdaa/bin")
1407 #t))))
f467c352 1408 (build-system ant-build-system)
6260d1a8 1409 (arguments
f467c352 1410 `(#:build-target "build"
40f372af 1411 #:jdk ,icedtea-8
f467c352 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")
5cff549c 1709 (version "3.0.2")
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
5cff549c 1717 "09mr23lqc51r7gskry5b7hk84pghdpgn1s4vnrzvx7xpa21gvplm"))))
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")
0b4f40e4 1755 (version "1.5.3")
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
0b4f40e4 1763 "0sns35pyw2f74xrv1fxiyf9g9415kvh2rrbdjd60hsiv584nlari"))))
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")
3765f4e6 1902 (version "0.8.4")
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
3765f4e6 1909 "17bbjfn94843g5q1h7xh23fwyazpfgg4fw6drrn5wgk2vx7qpkis"))))
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")
653f2b92 2190 (version "2.0.0")
acd7351f
LF
2191 (source (origin
2192 (method url-fetch)
2193 (uri (pypi-uri "pylast" version))
2194 (sha256
2195 (base32
653f2b92 2196 "0r9h7g8i8l2mgqjwkda3v6prfbkb2im5kap1az9ppmhjm9i4jkcf"))))
acd7351f 2197 (build-system python-build-system)
653f2b92
RW
2198 ;; Tests require network access. See
2199 ;; https://github.com/pylast/pylast/issues/105
2200 (arguments '(#:tests? #f))
acd7351f
LF
2201 (native-inputs
2202 `(("python-coverage" ,python-coverage)
653f2b92 2203 ("python-pycodestyle" ,python-pycodestyle)
acd7351f
LF
2204 ("python-mock" ,python-mock)
2205 ("python-pep8" ,python-pep8)
2206 ("python-pytest" ,python-pytest)
653f2b92 2207 ("python-flaky" ,python-flaky)
acd7351f
LF
2208 ("python-pyflakes" ,python-pyflakes)
2209 ("python-pyyaml" ,python-pyyaml)))
2210 (propagated-inputs
2211 `(("python-six" ,python-six)))
2212 (home-page "https://github.com/pylast/pylast")
2213 (synopsis "Python interface to Last.fm and Libre.fm")
2214 (description "A Python interface to Last.fm and other API-compatible
2215websites such as Libre.fm.")
5c31f4aa 2216 (license license:asl2.0)))
acd7351f
LF
2217
2218(define-public python2-pylast
5c31f4aa 2219 (package-with-python2 python-pylast))
3bf429af
LF
2220
2221(define-public beets
2222 (package
2223 (name "beets")
f277dea2 2224 (version "1.4.5")
3bf429af
LF
2225 (source (origin
2226 (method url-fetch)
23319ed6 2227 (uri (pypi-uri "beets" version))
3bf429af
LF
2228 (sha256
2229 (base32
f277dea2 2230 "1z02j871gc8l9mnd344qy9z8akigikgmc22r15ns6driqb2qishv"))))
3bf429af
LF
2231 (build-system python-build-system)
2232 (arguments
0d48ff81 2233 `(#:phases
3bf429af
LF
2234 (modify-phases %standard-phases
2235 (add-after 'unpack 'set-HOME
36c2c8c8
LF
2236 (lambda _ (setenv "HOME" (string-append (getcwd) "/tmp"))))
2237 (replace 'check
2238 (lambda _ (zero? (system* "nosetests" "-v")))))))
3bf429af 2239 (native-inputs
0d48ff81
LF
2240 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2241 ("python-flask" ,python-flask)
2242 ("python-mock" ,python-mock)
2243 ("python-mpd2" ,python-mpd2)
2244 ("python-nose" ,python-nose)
2245 ("python-pathlib" ,python-pathlib)
2246 ("python-pyxdg" ,python-pyxdg)
2247 ("python-pylast" ,python-pylast)
2248 ("python-rarfile" ,python-rarfile)
2249 ("python-responses" ,python-responses)))
3bf429af 2250 ;; TODO: Install optional plugins and dependencies.
b3470031 2251 (inputs
0d48ff81 2252 `(("python-discogs-client" ,python-discogs-client)
0d48ff81
LF
2253 ("python-jellyfish" ,python-jellyfish)
2254 ("python-munkres" ,python-munkres)
2255 ("python-musicbrainzngs" ,python-musicbrainzngs)
2256 ("python-mutagen" ,python-mutagen)
2257 ("python-pyyaml" ,python-pyyaml)
2258 ("python-unidecode" ,python-unidecode)))
3bf429af
LF
2259 (home-page "http://beets.io")
2260 (synopsis "Music organizer")
2261 (description "The purpose of beets is to get your music collection right
2262once and for all. It catalogs your collection, automatically improving its
2263metadata as it goes using the MusicBrainz database. Then it provides a variety
2264of tools for manipulating and accessing your music.")
2265 (license license:expat)))
21d18113
KY
2266
2267(define-public milkytracker
2268 (package
2269 (name "milkytracker")
1faf081b 2270 (version "1.01.00")
21d18113
KY
2271 (source (origin
2272 (method url-fetch)
e3b2e943 2273 (uri (string-append "https://github.com/milkytracker/"
1faf081b
KK
2274 "MilkyTracker/archive/v"
2275 version ".tar.gz"))
e3b2e943 2276 (file-name (string-append name "-" version ".tar.gz"))
21d18113
KY
2277 (sha256
2278 (base32
1faf081b 2279 "1dvnddsnn9c83lz4dlm0cfjpc0m524amfkbalxbswdy0qc8cj1wv"))
e3b2e943
KK
2280 (modules '((guix build utils)))
2281 ;; Remove non-FSDG compliant sample songs.
2282 (snippet
2283 '(begin
2284 (delete-file-recursively "resources/music")
2285 (substitute* "CMakeLists.txt"
2286 (("add_subdirectory\\(resources/music\\)") ""))))))
2287 (build-system cmake-build-system)
21d18113 2288 (arguments
e3b2e943 2289 '(#:tests? #f)) ; no check target
21d18113
KY
2290 (inputs
2291 `(("alsa-lib" ,alsa-lib)
2292 ("jack" ,jack-1)
e3b2e943 2293 ("sdl" ,sdl2)
21d18113
KY
2294 ("zlib" ,zlib)))
2295 (native-inputs
2296 `(("pkg-config" ,pkg-config)))
2297 (synopsis "Music tracker for working with .MOD/.XM module files")
2298 (description "MilkyTracker is a music application for creating .MOD and .XM
2299module files. It attempts to recreate the module replay and user experience of
2300the popular DOS program Fasttracker II, with special playback modes available
2301for improved Amiga ProTracker 2/3 compatibility.")
1b35fea1 2302 (home-page "http://milkytracker.titandemo.org/")
21d18113
KY
2303 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2304 (license (list license:bsd-3 license:gpl3+))))
13416a10 2305
89bcf3fc
KK
2306(define-public schismtracker
2307 (package
2308 (name "schismtracker")
82bdcfe8 2309 (version "20170910")
89bcf3fc
KK
2310 (source (origin
2311 (method url-fetch)
2312 (uri (string-append
2313 "https://github.com/" name "/" name "/archive/"
2314 version ".tar.gz"))
2315 (file-name (string-append name "-" version ".tar.gz"))
2316 (sha256
2317 (base32
82bdcfe8 2318 "01gfcjngbpv87y9w5jln8k313hycpkb1d617hdy2cdw2hxqzlclz"))
89bcf3fc
KK
2319 (modules '((guix build utils)))
2320 (snippet
2321 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2322 `(substitute* "schism/version.c"
9342c5a0 2323 (("Schism Tracker built %s %s.*$")
89bcf3fc
KK
2324 (string-append "Schism Tracker version " ,version "\");"))))))
2325 (build-system gnu-build-system)
2326 (arguments
2327 `(#:phases
2328 (modify-phases %standard-phases
2329 (add-after 'unpack 'autoconf
2330 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
2331 (add-before 'configure 'link-libm
2332 (lambda _ (setenv "LIBS" "-lm") #t)))))
2333 (native-inputs
2334 `(("autoconf" ,autoconf)
2335 ("automake" ,automake)
2336 ("python" ,python)))
2337 (inputs
2338 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2339 ("libx11" ,libx11)
2340 ("libxext" ,libxext)
2341 ("sdl" ,sdl)))
2342 (home-page "http://schismtracker.org")
2343 (synopsis "Oldschool sample-based music composition tool")
2344 (description
2345 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2346create high quality music without the requirements of specialized, expensive
2347equipment, and with a unique \"finger feel\" that is difficult to replicate in
2348part. The player is based on a highly modified version of the ModPlug engine,
2349with a number of bugfixes and changes to improve IT playback.")
2350 (license license:gpl2+)))
2351
5beecc32
RW
2352(define-public sooperlooper
2353 (package
2354 (name "sooperlooper")
2355 (version "1.7.3")
2356 (source (origin
2357 (method url-fetch)
2358 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2359 version ".tar.gz"))
2360 (sha256
2361 (base32
2362 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2363 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2364 (build-system gnu-build-system)
2365 (arguments
2366 `(#:make-flags (list "CXXFLAGS=-std=gnu++11")
2367 #:phases
2368 (modify-phases %standard-phases
2369 (add-after 'unpack 'add-sigc++-includes
2370 (lambda* (#:key inputs #:allow-other-keys)
2371 (let ((sig (assoc-ref inputs "libsigc++"))
2372 (xml (assoc-ref inputs "libxml2"))
2373 (cwd (getcwd)))
2374 (setenv "CPATH"
2375 (string-append sig "/include/sigc++-2.0:"
2376 sig "/lib/sigc++-2.0/include:"
2377 xml "/include/libxml2/:"
2378 cwd "/libs/pbd:"
2379 cwd "/libs/midi++")))
2380 (substitute* '("src/control_osc.hpp"
2381 "src/gui/app_frame.hpp"
2382 "src/gui/config_panel.hpp"
2383 "src/gui/keys_panel.hpp"
2384 "src/gui/latency_panel.hpp"
2385 "src/gui/main_panel.hpp"
2386 "src/gui/midi_bind_panel.hpp"
2387 "src/gui/prefs_dialog.hpp")
2388 (("sigc\\+\\+/object.h")
2389 "sigc++/sigc++.h"))
2390 (substitute* '("src/engine.cpp"
2391 "src/gui/latency_panel.cpp"
2392 "src/gui/looper_panel.cpp"
2393 "src/gui/main_panel.cpp")
2394 (("(\\(| )bind " _ pre)
2395 (string-append pre "sigc::bind ")))
2396 #t))
2397 (add-after 'unpack 'fix-xpm-warnings
2398 (lambda _
2399 (substitute* (find-files "." "\\.xpm$")
2400 (("static char") "static const char"))
2401 #t)))))
2402 (inputs
2403 `(("jack" ,jack-1)
2404 ("alsa-lib" ,alsa-lib)
2405 ("wxwidgets" ,wxwidgets-gtk2)
2406 ("libsndfile" ,libsndfile)
2407 ("libsamplerate" ,libsamplerate)
2408 ("liblo" ,liblo)
2409 ("rubberband" ,rubberband)
2410 ("libxml2" ,libxml2)
2411 ("libsigc++" ,libsigc++)
2412 ("ncurses" ,ncurses)))
2413 (native-inputs
2414 `(("pkg-config" ,pkg-config)))
2415 (home-page "http://essej.net/sooperlooper/")
2416 (synopsis "Live looping sampler")
2417 (description
2418 "SooperLooper is a live looping sampler capable of immediate loop
2419recording, overdubbing, multiplying, reversing and more. It allows for
2420multiple simultaneous multi-channel loops limited only by your computer's
2421available memory.")
2422 (license license:gpl2+)))
2423
13416a10
KY
2424(define-public moc
2425 (package
2426 (name "moc")
2fbc004f 2427 (version "2.5.2")
13416a10
KY
2428 (source (origin
2429 (method url-fetch)
2430 (uri (string-append "http://ftp.daper.net/pub/soft/"
2431 name "/stable/"
2432 name "-" version ".tar.bz2"))
2433 (sha256
2434 (base32
2fbc004f
KK
2435 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))
2436 (modules '((guix build utils)))
2437 (snippet
2438 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2439 '(substitute* "main.c"
2440 (("printf \\(\" Built : %s\", __DATE__\\);") "")
2441 (("printf \\(\" %s\", __TIME__\\);") "")))))
13416a10
KY
2442 (build-system gnu-build-system)
2443 (inputs
2444 `(("alsa-lib" ,alsa-lib)
2445 ("curl" ,curl)
2446 ("faad2" ,faad2)
2447 ("ffmpeg" ,ffmpeg)
2448 ("file" ,file)
2449 ("jack" ,jack-1)
2450 ("libid3tag" ,libid3tag)
2451 ("libltdl" ,libltdl)
2452 ("libmodplug" ,libmodplug)
2453 ("libmpcdec" ,libmpcdec)
2454 ("libmad" ,libmad)
6beaa5a0
MM
2455 ("libogg" ,libogg)
2456 ("libvorbis" ,libvorbis)
13416a10
KY
2457 ("ncurses" ,ncurses)
2458 ("openssl" ,openssl)
2459 ("sasl" ,cyrus-sasl)
2460 ("speex" ,speex)
2461 ("taglib" ,taglib)
2462 ("wavpack" ,wavpack)
2463 ("zlib" ,zlib)))
2464 (native-inputs
2465 `(("pkg-config" ,pkg-config)))
2466 (synopsis "Console audio player designed to be powerful and easy to use")
2467 (description
2468 "Music on Console is a console audio player that supports many file
2469formats, including most audio formats recognized by FFMpeg.")
2470 (home-page "http://moc.daper.net")
2471 (license license:gpl2+)))
6d3ef286
JF
2472
2473(define-public midicsv
2474 (package
2475 (name "midicsv")
2476 (version "1.1")
2477 (source (origin
2478 (method url-fetch)
2479 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
2480 name "-" version ".tar.gz"))
2481 (sha256
2482 (base32
2483 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
2484 (build-system gnu-build-system)
2485 (arguments
2486 `(#:phases (modify-phases %standard-phases (delete 'configure))
2487 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
2488 (synopsis "Convert MIDI files to and from CSV")
2489 (description
2490 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
2491value file (CSV), which preserves all the information in the MIDI file. The
2492ASCII CSV file may be loaded into a spreadsheet or database application, or
2493processed by a program to transform the MIDI data (for example, to key
2494transpose a composition or extract a track from a multi-track sequence). A
2495CSV file in the format created by midicsv may be converted back into a
2496standard MIDI file with the csvmidi program.")
2497 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
2498 (license license:public-domain)))
49604680
RW
2499
2500(define-public gx-guvnor-lv2
35f909d4
RW
2501 (package
2502 (name "gx-guvnor-lv2")
2503 (version "0.1")
2504 (source (origin
2505 (method url-fetch)
2506 (uri (string-append "https://github.com/brummer10/GxGuvnor.lv2/"
2507 "archive/v" version ".tar.gz"))
2508 (file-name (string-append name "-" version ".tar.gz"))
2509 (sha256
2510 (base32
2511 "0rnfvrvs8qmmldyfmx4llyly33zp68448gx40ywdwj42x0mam92p"))))
2512 (build-system gnu-build-system)
2513 (arguments
2514 `(;; The check target is used only to output a warning.
2515 #:tests? #f
2516 #:make-flags
2517 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
2518 #:phases
2519 (modify-phases %standard-phases
2520 (replace 'configure
2521 (lambda _
2522 (substitute* "Makefile"
2523 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n"))
2524 #t)))))
2525 (inputs
2526 `(("lv2" ,lv2)))
2527 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
2528 (synopsis "Overdrive/distortion pedal simulation")
2529 (description "This package provides the LV2 plugin \"GxGuvnor\", a
49604680 2530simulation of an overdrive or distortion pedal for guitars.")
35f909d4
RW
2531 ;; The LICENSE file says GPLv3 but the license headers in the files say
2532 ;; GPLv2 or later.
2533 (license license:gpl2+)))
85ae347e
RW
2534
2535(define-public gx-vbass-preamp-lv2
2536 (let ((commit "0e599abab10c7669dd444e5d06f671c2fc1b9c6c")
2537 (revision "1"))
2538 (package (inherit gx-guvnor-lv2)
2539 (name "gx-vbass-preamp-lv2")
2540 (version (string-append "0-" revision "." (string-take commit 9)))
2541 (source (origin
2542 (method git-fetch)
2543 (uri (git-reference
2544 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
2545 (commit commit)))
2546 (sha256
2547 (base32
2548 "1dzksdfrva666gpi62fd2ni9rhf18sl917f1894qr0b17pbdh9k1"))
2549 (file-name (string-append name "-" version "-checkout"))))
ad67ca3d
RW
2550 (arguments
2551 (substitute-keyword-arguments (package-arguments gx-guvnor-lv2)
2552 ((#:phases phases)
2553 `(modify-phases ,phases
2554 (replace 'configure
2555 (lambda _
2556 (substitute* "Makefile"
2557 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
2558 (("install : all") "install :"))
2559 #t))))))
85ae347e
RW
2560 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
2561 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
2562 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
2563pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
2564Section."))))
cdc7a021
RW
2565
2566(define-public gx-overdriver-lv2
2567 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
2568 (revision "1"))
ad67ca3d 2569 (package (inherit gx-vbass-preamp-lv2)
cdc7a021
RW
2570 (name "gx-overdriver-lv2")
2571 (version (string-append "0-" revision "." (string-take commit 9)))
2572 (source (origin
2573 (method git-fetch)
2574 (uri (git-reference
2575 (url "https://github.com/brummer10/GxOverDriver.lv2")
2576 (commit commit)))
2577 (sha256
2578 (base32
2579 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
2580 (file-name (string-append name "-" version "-checkout"))))
2581 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
2582 (synopsis "Overdrive effect with level and tone control")
2583 (description "This package provides the LV2 plugin \"GxOverDriver\", an
2584overdrive effect."))))
4d95cd30
RW
2585
2586(define-public gx-tone-mender-lv2
2587 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
2588 (revision "1"))
ad67ca3d 2589 (package (inherit gx-vbass-preamp-lv2)
4d95cd30
RW
2590 (name "gx-tone-mender-lv2")
2591 (version (string-append "0-" revision "." (string-take commit 9)))
2592 (source (origin
2593 (method git-fetch)
2594 (uri (git-reference
2595 (url "https://github.com/brummer10/GxToneMender.lv2")
2596 (commit commit)))
2597 (sha256
2598 (base32
2599 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
2600 (file-name (string-append name "-" version "-checkout"))))
2601 (home-page "https://github.com/brummer10/GxToneMender.lv2")
2602 (synopsis "Clean boost with a 3-knob tonestack")
2603 (description "This package provides the LV2 plugin \"GxToneMender\", a
2604clean boost effect with a 3-knob tonestack."))))
4d4bfdc2
RW
2605
2606(define-public gx-push-pull-lv2
2607 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
2608 (revision "1"))
ad67ca3d 2609 (package (inherit gx-vbass-preamp-lv2)
4d4bfdc2
RW
2610 (name "gx-push-pull-lv2")
2611 (version (string-append "0-" revision "." (string-take commit 9)))
2612 (source (origin
2613 (method git-fetch)
2614 (uri (git-reference
2615 (url "https://github.com/brummer10/GxPushPull.lv2")
2616 (commit commit)))
2617 (sha256
2618 (base32
2619 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
2620 (file-name (string-append name "-" version "-checkout"))))
2621 (home-page "https://github.com/brummer10/GxPushPull.lv2")
2622 (synopsis "Octave up push pull transistor fuzz simulation")
2623 (description "This package provides the LV2 plugin \"GxPushPull\", a
2624simulation of a push pull transistor fuzz effect with added high octave."))))
3eb1a964
RW
2625
2626(define-public gx-suppa-tone-bender-lv2
f959991d
RW
2627 (package (inherit gx-guvnor-lv2)
2628 (name "gx-suppa-tone-bender-lv2")
2629 (version "0.1")
2630 (source (origin
2631 (method url-fetch)
2632 (uri (string-append "https://github.com/brummer10/"
2633 "GxSuppaToneBender.lv2/archive/v"
2634 version ".tar.gz"))
2635 (sha256
2636 (base32
2637 "1j90fns87035sfr6bxs4cvqxbyy3pqjhihx1nis8xajn202nl1hx"))
2638 (file-name (string-append name "-" version ".tar.gz"))))
2639 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
2640 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
2641 (description "This package provides the LV2 plugin
3eb1a964 2642\"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
f959991d 2643pedal.")))
664f677f
RW
2644
2645(define-public gx-saturator-lv2
31de5e22
RW
2646 (let ((commit "0b581ac85c515325b9f16e51937cae6e1bf81a0a")
2647 (revision "2"))
ad67ca3d 2648 (package (inherit gx-vbass-preamp-lv2)
664f677f
RW
2649 (name "gx-saturator-lv2")
2650 (version (string-append "0-" revision "." (string-take commit 9)))
2651 (source (origin
2652 (method git-fetch)
2653 (uri (git-reference
2654 (url "https://github.com/brummer10/GxSaturator.lv2")
2655 (commit commit)))
2656 (sha256
2657 (base32
31de5e22 2658 "1cl785pzq8zk55m1rnhfd6qsabci6kpf4pf002gwr91vagyq246z"))
664f677f
RW
2659 (file-name (string-append name "-" version "-checkout"))))
2660 (home-page "https://github.com/brummer10/GxSaturator.lv2")
2661 (synopsis "Saturation effect")
2662 (description "This package provides the LV2 plugin \"GxSaturator\", a
2663saturation effect."))))
89412238
RW
2664
2665(define-public gx-hyperion-lv2
4396e9b5
RW
2666 (package (inherit gx-guvnor-lv2)
2667 (name "gx-hyperion-lv2")
2668 (version "0.1")
2669 (source (origin
2670 (method url-fetch)
2671 (uri (string-append "https://github.com/brummer10/"
2672 "GxHyperion.lv2/archive/v"
2673 version ".tar.gz"))
2674 (sha256
2675 (base32
2676 "1pd7l33a14kq73wavgqq7csw4n3mwjz9d5rxaj0jgsyxd3llp3wh"))
2677 (file-name (string-append name "-" version ".tar.gz"))))
2678 (home-page "https://github.com/brummer10/GxHyperion.lv2")
2679 (synopsis "Simulation of the Hyperion Fuzz pedal")
2680 (description "This package provides the LV2 plugin \"GxHyperion\", a
2681simulation of the Hyperion Fuzz pedal.")))
32536f00
RW
2682
2683(define-public gx-voodoo-fuzz-lv2
cf44ebeb
RW
2684 (package (inherit gx-guvnor-lv2)
2685 (name "gx-voodoo-fuzz-lv2")
2686 (version "0.1")
2687 (source (origin
2688 (method url-fetch)
2689 (uri (string-append "https://github.com/brummer10/"
2690 "GxVoodoFuzz.lv2/archive/v"
2691 version ".tar.gz"))
2692 (sha256
2693 (base32
2694 "0cc8sg7q493bs6pcq4ipqp6czpxv04nh9yvn8kq2x65ni2208n2f"))
2695 (file-name (string-append name "-" version ".tar.gz"))))
2696 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
2697 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
2698 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
32536f00
RW
2699simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
2700Bosstone circuit, followed by the tone control of the FoxToneMachine in
cf44ebeb 2701parallel with a DarkBooster, followed by a volume control.")))
29f63222
RW
2702
2703(define-public gx-super-fuzz-lv2
34a3ecfe
RW
2704 (package (inherit gx-guvnor-lv2)
2705 (name "gx-super-fuzz-lv2")
2706 (version "0.1")
2707 (source (origin
2708 (method url-fetch)
2709 (uri (string-append "https://github.com/brummer10/"
2710 "GxSuperFuzz.lv2/archive/v"
2711 version ".tar.gz"))
2712 (sha256
2713 (base32
2714 "0pnivq05f1kji8c5jxsqdzhdfk3xn422v2d1x20x3jfsxnaf115x"))
2715 (file-name (string-append name "-" version ".tar.gz"))))
2716 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
2717 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
a6f39d7c 2718 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
29f63222 2719analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
d1e4ad1b 2720pot, which is usually in the housing, is exposed as a control parameter. It
34a3ecfe 2721adjusts the amount of harmonics.")))
40bffdfa
RW
2722
2723(define-public gx-vintage-fuzz-master-lv2
38050923
RW
2724 (package (inherit gx-guvnor-lv2)
2725 (name "gx-vintage-fuzz-master-lv2")
2726 (version "0.1")
2727 (source (origin
2728 (method url-fetch)
2729 (uri (string-append "https://github.com/brummer10/"
2730 "GxVintageFuzzMaster.lv2/archive/v"
2731 version ".tar.gz"))
2732 (sha256
2733 (base32
2734 "0bdkfj6xi2g4izfw3pmr4i0nqzg8jnkdwc23x9ifxwc6p1kbayzk"))
2735 (file-name (string-append name "-" version ".tar.gz"))))
2736 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
2737 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
2738 (description "This package provides the LV2 plugin
2739\"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
631f8175
RW
2740
2741(define-public gx-slow-gear-lv2
8e6f6503
RW
2742 (let ((commit "cb852e0426f4e6fe077e7f1ede73a4da335cfc5e")
2743 (revision "2"))
ad67ca3d 2744 (package (inherit gx-vbass-preamp-lv2)
631f8175
RW
2745 (name "gx-slow-gear-lv2")
2746 (version (string-append "0-" revision "." (string-take commit 9)))
2747 (source (origin
2748 (method git-fetch)
2749 (uri (git-reference
2750 (url "https://github.com/brummer10/GxSlowGear.lv2")
2751 (commit commit)))
2752 (sha256
2753 (base32
8e6f6503 2754 "0dp7afi1r3kzciiyn1hrkz6arsq47ys9sx5g4b7xa9k1dv92ishp"))
631f8175
RW
2755 (file-name (string-append name "-" version "-checkout"))))
2756 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
2757 (synopsis "Slow gear audio effect")
2758 (description "This package provides the LV2 plugin \"GxSlowGear\", a
2759slow gear audio effect to produce volume swells."))))
d75e8f5a
RW
2760
2761(define-public gx-switchless-wah-lv2
cfcef2c2
RW
2762 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
2763 (revision "2"))
ad67ca3d 2764 (package (inherit gx-vbass-preamp-lv2)
d75e8f5a
RW
2765 (name "gx-switchless-wah-lv2")
2766 (version (string-append "0-" revision "." (string-take commit 9)))
2767 (source (origin
2768 (method git-fetch)
2769 (uri (git-reference
2770 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
2771 (commit commit)))
2772 (sha256
2773 (base32
cfcef2c2 2774 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
d75e8f5a
RW
2775 (file-name (string-append name "-" version "-checkout"))))
2776 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
2777 (synopsis "Wah emulation with switchless activation")
2778 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
2779a simulation of an analog Wah pedal with switchless activation."))))
84d53724
RW
2780
2781(define-public mod-utilities
2782 (let ((commit "7cdeeac26ae682730740105ece121d4dddb8ba3f")
2783 (revision "1"))
2784 (package
2785 (name "mod-utilities")
2786 (version (string-append "0-" revision "." (string-take commit 9)))
2787 (source (origin
2788 (method git-fetch)
2789 (uri (git-reference
2790 (url "https://github.com/moddevices/mod-utilities.git")
2791 (commit commit)))
2792 (sha256
2793 (base32
2794 "1ilnkbrmwrszxvc21qlb86h29yz7cnc6rcp0jmna1y693ny2qhf4"))
2795 (file-name (string-append name "-" version "-checkout"))))
2796 (build-system gnu-build-system)
2797 (arguments
2798 `(#:tests? #f ; there are no tests
2799 #:make-flags
2800 (list (string-append "INSTALL_PATH="
2801 (assoc-ref %outputs "out")
2802 "/lib/lv2"))
2803 #:phases
2804 (modify-phases %standard-phases
2805 (delete 'configure))))
2806 (inputs
2807 `(("lv2" ,lv2)))
2808 (home-page "https://github.com/moddevices/mod-utilities")
2809 (synopsis "LV2 utility plugins")
2810 (description "This package provides LV2 audio utility plugins, such as
2811filters, crossovers, simple gain plugins without zipper noise, switch box
2812plugins, a switch trigger, a toggle switch, and a peakmeter.")
2813 (license license:gpl2+))))
d3db5efb 2814
951581a2 2815(define-public ingen
19748414
RW
2816 (let ((commit "cc4a4db33f4d126a07a4a498e053c5fb9a883be3")
2817 (revision "2"))
951581a2
RW
2818 (package
2819 (name "ingen")
2820 (version (string-append "0.0.0-" revision "."
2821 (string-take commit 9)))
2822 (source
2823 (origin
2824 (method git-fetch)
2825 (uri (git-reference
2826 (url "http://git.drobilla.net/ingen.git")
2827 (commit commit)))
2828 (file-name (string-append name "-" version "-checkout"))
2829 (sha256
2830 (base32
19748414 2831 "1wg47vjw9djn99gbnsl2bcwj4xhdid61m4wrbn2nlp797flj91ic"))))
951581a2
RW
2832 (build-system waf-build-system)
2833 (arguments
2834 `(#:tests? #f ; no "check" target
2835 #:configure-flags (list "--no-webkit")
2836 #:phases
2837 (modify-phases %standard-phases
2838 (add-after 'unpack 'patch-wscript
2839 (lambda* (#:key outputs #:allow-other-keys)
2840 (let ((out (assoc-ref outputs "out")))
2841 (substitute* "wscript"
2842 ;; FIXME: Our version of lv2specgen.py does not behave as
2843 ;; expected. Maybe this requires a development version of
2844 ;; LV2.
2845 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
2846 ;; Add libraries to RUNPATH.
2847 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
2848 (string-append prefix
2849 "linkflags=[\"-Wl,-rpath="
2850 out "/lib" "\"]," line)))
2851 (substitute* '("src/wscript"
2852 "src/server/wscript")
2853 ;; Add libraries to RUNPATH.
2854 (("bld.env.PTHREAD_LINKFLAGS" line)
2855 (string-append line
2856 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
2857 (substitute* "src/client/wscript"
2858 ;; Add libraries to RUNPATH.
2859 (("^(.+)target.*= 'ingen_client'," line prefix)
2860 (string-append prefix
2861 "linkflags=[\"-Wl,-rpath="
2862 out "/lib" "\"]," line)))
2863 (substitute* "src/gui/wscript"
2864 ;; Add libraries to RUNPATH.
2865 (("^(.+)target.* = 'ingen_gui.*" line prefix)
2866 (string-append prefix
2867 "linkflags=[\"-Wl,-rpath="
2868 out "/lib" "\"]," line))))
2869 #t)))))
2870 (inputs
2871 `(("boost" ,boost)
2872 ("python-rdflib" ,python-rdflib)
2873 ("python" ,python)
2874 ("jack" ,jack-1)
19748414 2875 ("lv2" ,lv2-devel)
951581a2
RW
2876 ("lilv" ,lilv)
2877 ("raul" ,raul-devel)
2878 ("ganv" ,ganv-devel)
2879 ("suil" ,suil)
2880 ("serd" ,serd)
2881 ("sord" ,sord)
2882 ("sratom" ,sratom)
2883 ("gtkmm" ,gtkmm-2)))
2884 (native-inputs
2885 `(("pkg-config" ,pkg-config)
2886 ("python-pygments" ,python-pygments)))
2887 (home-page "http://drobilla.net/software/ingen")
2888 (synopsis "Modular audio processing system")
2889 (description "Ingen is a modular audio processing system for JACK and
2890LV2 based systems. Ingen is built around LV2 technology and a strict
2891separation of engine from user interface. The engine is controlled
2892exclusively through a protocol, and can execute as a headless process, with an
2893in-process GUI, or as an LV2 plugin. The GUI can run as a program which
2894communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
2895communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
2896plugin on any system where Ingen is installed. This allows users to visually
2897develop custom plugins for use in other applications without programming.")
2898 (license license:agpl3+))))
2899
b3410b44
RW
2900(define-public qmidiarp
2901 (package
2902 (name "qmidiarp")
2903 (version "0.6.4")
2904 (source (origin
2905 (method url-fetch)
2906 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
2907 version "/qmidiarp-" version ".tar.bz2"))
2908 (sha256
2909 (base32
2910 "1gkfv8ajgf86kbn6j5ilfc1zlz17gdi9yxzywqd6jwff4xlm75hx"))))
2911 (build-system gnu-build-system)
2912 (arguments
2913 `(#:configure-flags
2914 (list "--enable-qt5"
2915 "CXXFLAGS=-std=gnu++11")))
2916 (inputs
2917 `(("qtbase" ,qtbase)
2918 ("alsa-lib" ,alsa-lib)
2919 ("jack" ,jack-1)
2920 ("liblo" ,liblo)
2921 ("lv2" ,lv2)))
2922 (native-inputs
2923 `(("pkg-config" ,pkg-config)
2924 ("qttools" ,qttools)))
2925 (home-page "http://qmidiarp.sourceforge.net/")
2926 (synopsis "MIDI arpeggiator")
2927 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
2928sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
2929modules running in parallel.")
2930 (license license:gpl2+)))
2931
ff49437d
RW
2932(define-public qmidiroute
2933 (package
2934 (name "qmidiroute")
2935 (version "0.4.0")
2936 (source (origin
2937 (method url-fetch)
2938 (uri (string-append "mirror://sourceforge/alsamodular/QMidiRoute/"
2939 version "/qmidiroute-" version ".tar.bz2"))
2940 (sha256
2941 (base32
2942 "19v1ppbglgl3z9v7xdqc0k33w71cqq8a7d6ihvfs7iz77dygrih9"))))
2943 (build-system gnu-build-system)
2944 (arguments
2945 `(#:configure-flags
2946 (list "--enable-qt5"
2947 "CXXFLAGS=-std=gnu++11")))
2948 (inputs
2949 `(("qtbase" ,qtbase)
2950 ("alsa-lib" ,alsa-lib)))
2951 (native-inputs
2952 `(("pkg-config" ,pkg-config)
2953 ("qttools" ,qttools)))
2954 (home-page "http://alsamodular.sourceforge.net/")
2955 (synopsis "MIDI event router and filter")
2956 (description "QMidiRoute is a MIDI event router and filter. MIDI note,
2957control change, program change and pitch bend events are logged, and can be
2958filtered, redirected and transformed into other events according to MIDI maps
2959defined as tabs in the main control surface.")
2960 (license license:gpl2+)))
2961
5a66e25c
RW
2962(define-public seq24
2963 (package
2964 (name "seq24")
2965 (version "0.9.3")
2966 (source (origin
2967 (method url-fetch)
2968 (uri (string-append "https://launchpad.net/seq24/trunk/"
2969 version "/+download/seq24-"
2970 version ".tar.bz2"))
2971 (sha256
2972 (base32
2973 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
2974 (patches (search-patches "seq24-rename-mutex.patch"))))
2975 (build-system gnu-build-system)
2976 (arguments
2977 `(#:configure-flags
2978 (list "CXXFLAGS=-std=gnu++11")))
2979 (inputs
2980 `(("gtkmm" ,gtkmm-2)
2981 ("alsa-lib" ,alsa-lib)
2982 ("jack" ,jack-1)
2983 ("lash" ,lash)))
2984 (native-inputs
2985 `(("pkg-config" ,pkg-config)))
2986 (home-page "https://edge.launchpad.net/seq24/")
2987 (synopsis "Real-time MIDI sequencer")
2988 (description "Seq24 is a real-time MIDI sequencer. It was created to
2989provide a very simple interface for editing and playing MIDI loops.")
2990 (license license:gpl2+)))
2991
d3db5efb
LF
2992(define-public python-discogs-client
2993 (package
2994 (name "python-discogs-client")
2995 (version "2.2.1")
2996 (source (origin
2997 (method url-fetch)
2998 (uri (pypi-uri "discogs-client" version))
2999 (sha256
3000 (base32
3001 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
3002 (build-system python-build-system)
3003 (propagated-inputs
3004 `(("python-oauthlib" ,python-oauthlib)
3005 ("python-requests" ,python-requests)))
3006 (native-inputs
3007 `(("python-six" ,python-six)))
3008 (home-page "https://github.com/discogs/discogs_client")
3009 (synopsis "Official Python client for the Discogs API")
3010 (description "This is the official Discogs API client for Python. It enables
3011you to query the Discogs database for information on artists, releases, labels,
3012users, Marketplace listings, and more. It also supports OAuth 1.0a
3013authorization, which allows you to change user data such as profile information,
3014collections and wantlists, inventory, and orders.")
80983df3 3015 (license license:bsd-2)))
d3db5efb
LF
3016
3017(define-public python2-discogs-client
80983df3 3018 (package-with-python2 python-discogs-client))
a4f05b46 3019
3020(define-public libsmf
3021 (package
3022 (name "libsmf")
3023 (version "1.3")
3024 (source
3025 (origin
3026 (method url-fetch)
3027 ;; SF download page says development moved, but the link it points to
3028 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
3029 ;; it but made no release so far (https://github.com/stump/libsmf).
3030 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
3031 version "/libsmf-" version ".tar.gz"))
3032 (sha256
3033 (base32
3034 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
3035 (build-system gnu-build-system)
3036 (outputs '("out"
3037 "static")) ; 88KiB of .a files
3038 (arguments
3039 `(#:phases
3040 (modify-phases %standard-phases
3041 (add-after 'install 'move-static-libraries
3042 (lambda* (#:key outputs #:allow-other-keys)
3043 ;; Move static libraries to the "static" output.
3044 (let* ((out (assoc-ref outputs "out"))
3045 (lib (string-append out "/lib"))
3046 (static (assoc-ref outputs "static"))
3047 (slib (string-append static "/lib")))
3048 (mkdir-p slib)
3049 (for-each (lambda (file)
3050 (install-file file slib)
3051 (delete-file file))
3052 (find-files lib "\\.a$"))
3053 #t))))))
3054 (inputs
3055 `(("readline" ,readline)
3056 ("glib" ,glib)))
3057 (native-inputs
3058 `(("doxygen" ,doxygen)
3059 ("pkg-config" ,pkg-config)))
3060 (home-page "http://libsmf.sourceforge.net/")
3061 (synopsis "Standard MIDI File format library")
3062 (description
3063 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3064conversions between time and pulses, tempo map handling and more. The only dependencies
3065are a C compiler and glib. Full API documentation and examples are included.")
3066 (license license:bsd-2)))
a42619e5
RF
3067
3068(define-public lmms
3069 (package
3070 (name "lmms")
3071 (version "1.1.3")
3072 (source
3073 (origin
3074 (method url-fetch)
3075 (uri (string-append "https://github.com/LMMS/lmms/archive/v"
3076 version ".tar.gz"))
3077 (file-name (string-append name "-" version ".tar.gz"))
3078 (sha256
3079 (base32
3080 "1g76z7ha3hd53vbqaq9n1qg6s3lw8zzaw51iny6y2bz0j1xqwcsr"))))
3081 (build-system cmake-build-system)
3082 (arguments
3083 `(#:tests? #f ; no tests
3084 #:phases
3085 (modify-phases %standard-phases
3086 (add-before
3087 'configure 'set-ldflags
3088 (lambda* (#:key outputs #:allow-other-keys)
3089 (setenv "LDFLAGS"
3090 (string-append
3091 "-Wl,-rpath=\""
3092 (assoc-ref outputs "out") "/lib/lmms"
3093 ":"
3094 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3095 "\"")))))))
3096 (native-inputs
3097 `(("pkg-config" ,pkg-config)))
3098 (inputs
3099 `(("sdl" ,sdl)
3100 ("qt" ,qt-4)
3101 ("fltk" ,fltk)
3102 ("libogg" ,libogg)
3103 ("libsamplerate" ,libsamplerate)
3104 ("fluidsynth" ,fluidsynth)
3105 ("libvorbis" ,libvorbis)
3106 ("alsa-lib" ,alsa-lib)
3107 ("portaudio" ,portaudio)
3108 ("ladspa" ,ladspa)
3109 ("libsndfile1" ,libsndfile)
3110 ("libxft" ,libxft)
3111 ("freetype2" ,freetype)
3112 ("fftw3f" ,fftwf)))
3113 (home-page "https://lmms.io/")
3114 (synopsis "Music composition tool")
3115 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3116melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3117audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3118 (license license:gpl2+)))
a7a7186c
NG
3119
3120(define-public musescore
3121 (package
3122 (name "musescore")
3123 (version "2.1.0")
3124 (source (origin
3125 (method url-fetch)
3126 (uri (string-append
3127 "https://github.com/musescore/MuseScore/archive/"
3128 "v" version ".tar.gz"))
3129 (file-name (string-append name "-" version ".tar.gz"))
3130 (sha256
3131 (base32
3132 "0irwsq6ihfz3y3b943cwqy29g3si7gqbgxdscgw53vwv9vfvi085"))
3133 (modules '((guix build utils)))
3134 (snippet
3135 ;; Un-bundle OpenSSL and remove unused libraries.
3136 '(begin
3137 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3138 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3139 ""))
3140 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3141 (("#include <openssl/.*") ""))
3142 (for-each delete-file-recursively
3143 '("thirdparty/freetype"
3144 "thirdparty/openssl"
3145 "thirdparty/portmidi"))
3146 #t))))
3147 (build-system gnu-build-system)
3148 (arguments
3149 `(#:make-flags
3150 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
3151 ;; There are tests, but no simple target to run. The command
3152 ;; used to run them is:
3153 ;;
3154 ;; make debug && sudo make installdebug && cd \
3155 ;; build.debug/mtest && make && ctest
3156 ;;
3157 ;; Basically, it requires to start a whole new build process.
3158 ;; So we simply skip them.
3159 #:tests? #f
3160 #:phases
3161 (modify-phases %standard-phases
3162 (delete 'configure)
3163 (add-after 'unpack 'use-system-freetype
3164 (lambda _
3165 ;; XXX: For the time being, we grossly insert the CMake
3166 ;; option needed to ignore bundled freetype. However,
3167 ;; there's a pending PR to have it as a regular make
3168 ;; option, in a future release.
3169 (substitute* "Makefile"
3170 (("cmake -DCMAKE") "cmake -DUSE_SYSTEM_FREETYPE=ON -DCMAKE"))
3171 #t)))))
3172 (inputs
3173 `(("alsa-lib" ,alsa-lib)
3174 ("freetype" ,freetype)
3175 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3176 ("jack" ,jack-1)
3177 ("lame" ,lame)
3178 ("libogg" ,libogg)
3179 ("libsndfile" ,libsndfile)
3180 ("libvorbis" ,libvorbis)
3181 ("portaudio" ,portaudio)
3182 ("pulseaudio" ,pulseaudio)
3183 ("qtbase" ,qtbase)
3184 ("qtdeclarative" ,qtdeclarative)
3185 ("qtscript" ,qtscript)
3186 ("qtsvg" ,qtsvg)
3187 ("qtwebkit" ,qtwebkit)
3188 ("qtxmlpatterns" ,qtxmlpatterns)))
3189 (native-inputs
3190 `(("cmake" ,cmake)
3191 ("pkg-config" ,pkg-config)
3192 ("qttools" ,qttools)))
3193 (synopsis "Music composition and notation software")
3194 (description "MuseScore is a music score typesetter. Its main purpose is
3195the creation of high-quality engraved musical scores in a WYSIWYG environment.
3196
3197It supports unlimited staves, linked parts and part extraction, tablature,
3198MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3199lyrics (multiple verses), fretboard diagrams, and in general everything
3200commonly used in sheet music. Style options and style sheets to change the
3201appearance and layout are provided.
3202
3203MuseScore can also play back scores through the built-in sequencer and SoundFont
3204sample library.")
3205 (home-page "https://musescore.org")
3206 (license license:gpl2)))
2434f5ce
DM
3207
3208(define-public dssi
3209 (package
3210 (name "dssi")
3211 (version "1.1.1")
3212 (source (origin
3213 (method url-fetch)
3214 (uri (string-append
3215 "mirror://sourceforge/dssi/dssi/" version
3216 "/dssi-" version ".tar.gz"))
3217 (sha256
3218 (base32
3219 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3220 (build-system gnu-build-system)
3221 (inputs
3222 `(("alsa-lib" ,alsa-lib)
3223 ("jack-2" ,jack-2)
3224 ("ladspa" ,ladspa)
3225 ("libsamplerate" ,libsamplerate)
3226 ("libsndfile" ,libsndfile)
3227 ("liblo" ,liblo)))
3228 (native-inputs
3229 `(("pkg-config" ,pkg-config)))
3230 (synopsis "Audio plugin API for soft synths and effects")
3231 (description "DSSI is a plugin API for software instruments with user
3232interfaces, permitting them to be hosted in-process by audio applications.
3233It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3234towards familiarity with MIDI. The DSSI distribution package contains
3235a JACK/ALSA-sequencer reference host and some plugins as well as the
3236specification and header.")
3237 (home-page "http://dssi.sourceforge.net/")
3238 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3239 ;; The vast majority of examples are in the public domain.
3240 (license (list license:lgpl2.1+ license:gpl2+))))
9bc38f28
DM
3241
3242(define-public rosegarden
3243 (package
3244 (name "rosegarden")
3245 (version "17.04")
3246 (source (origin
3247 (method url-fetch)
3248 (uri (string-append
3249 "mirror://sourceforge/rosegarden/rosegarden/"
3250 version "/rosegarden-" version ".tar.bz2"))
3251 (sha256
3252 (base32
3253 "1khfcj22asdhjh0jvhkqsz200wgmigkhsrcz09ffia5hqm0n32lq"))))
3254 (build-system cmake-build-system)
3255 (arguments
3256 `(#:configure-flags '("-DUSE_QT5=1") ; "-DCMAKE_BUILD_TYPE=Release"
3257 #:phases
3258 (modify-phases %standard-phases
3259 (add-after 'unpack 'patch-tests
3260 (lambda _
3261 (substitute* "CMakeLists.txt"
3262 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
3263 ;; Make tests work.
3264 ((" -fvisibility=hidden") ""))
3265 #t))
3266 (add-after 'unpack 'fix-references
3267 (lambda* (#:key inputs #:allow-other-keys)
3268 (substitute* "src/gui/general/ProjectPackager.cpp"
3269 (("\"flac\\>")
3270 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
3271 (("\"wavpack\\>")
3272 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
3273 (("\"wvunpack\\>")
3274 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
3275 (("\"bash\\>")
3276 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
3277 (("\"tar\\>")
3278 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
3279 (substitute* "src/gui/general/LilyPondProcessor.cpp"
3280 (("\"convert-ly\\>")
3281 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
3282 (("\"lilypond\\>")
3283 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
3284 #t))
3285 (add-after 'unpack 'make-reproducible
3286 (lambda _
3287 ;; Prevent Last-Modified from being written.
3288 ;; The "*.qm" files that are used in locale.qrc would have a new
3289 ;; mtime otherwise that is written into qrc_locale.cpp in the
3290 ;; end - except when we disable it.
3291 (substitute* "src/CMakeLists.txt"
3292 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
3293 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
3294 ;; Extraneous.
3295 ;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
3296 ; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
3297 )
3298 ;; Make hashtable traversal order predicable.
3299 (setenv "QT_RCC_TEST" "1") ; important
3300 #t))
3301 (add-before 'check 'prepare-check
3302 (lambda _
3303 (setenv "QT_QPA_PLATFORM" "offscreen")
3304 ;; Tests create files in $HOME/.local/share/rosegarden .
3305 (mkdir-p "/tmp/foo")
3306 (setenv "HOME" "/tmp/foo")
3307 #t)))))
3308 (inputs
3309 `(("alsa-lib" ,alsa-lib)
3310 ("bash" ,bash)
3311 ("dssi" ,dssi)
3312 ("flac" ,flac)
3313 ("fftwf" ,fftwf)
3314 ("jack-2" ,jack-2)
3315 ("ladspa" ,ladspa)
3316 ("liblo" ,liblo)
3317 ("libsamplerate" ,libsamplerate)
3318 ("lilypond" ,lilypond)
3319 ("lrdf" ,lrdf)
3320 ("qtbase" ,qtbase)
3321 ("tar" ,tar)
3322 ("lirc" ,lirc)
3323 ("wavpack" ,wavpack)
3324 ("zlib" ,zlib)))
3325 (native-inputs
3326 `(("pkg-config" ,pkg-config)
3327 ("qtlinguist" ,qttools)))
3328 (synopsis "Music composition and editing environment based around a MIDI
3329sequencer")
3330 (description "Rosegarden is a music composition and editing environment
3331based around a MIDI sequencer that features a rich understanding of music
3332notation and includes basic support for digital audio.")
3333 (home-page "http://www.rosegardenmusic.com/")
3334 (license license:gpl2)))
30655652
RW
3335
3336(define-public sorcer
3337 (package
3338 (name "sorcer")
3339 (version "1.1.3")
3340 (source (origin
3341 (method url-fetch)
3342 (uri (string-append "https://github.com/openAVproductions/"
3343 "openAV-Sorcer/archive/release-"
3344 version ".tar.gz"))
3345 (file-name (string-append name "-" version ".tar.gz"))
3346 (sha256
3347 (base32
3348 "07iyqj28wm0xc4arrq893bm12xjpz65db7ynrlmf6w8krg8wjmd0"))))
3349 (build-system cmake-build-system)
3350 (arguments
3351 `(#:tests? #f ; no tests included
3352 #:phases
3353 (modify-phases %standard-phases
e5af1f4a
EF
3354 (add-after 'unpack 'remove-architecture-specific-flags
3355 (lambda _
3356 (substitute* "CMakeLists.txt"
3357 (("-msse2 -mfpmath=sse") ""))
3358 #t))
30655652
RW
3359 (add-after 'unpack 'build-faust-sources
3360 (lambda* (#:key inputs #:allow-other-keys)
3361 (with-directory-excursion "faust"
3362 (delete-file "main.cpp")
3363 (zero? (system* "faust" "-i"
3364 "-a" "lv2synth.cpp"
3365 "-o" "main.cpp" "main.dsp"))))))))
3366 (inputs
3367 `(("boost" ,boost)
3368 ("lv2" ,lv2)
3369 ("ntk" ,ntk)))
3370 (native-inputs
3371 `(("faust" ,faust)
3372 ("pkg-config" ,pkg-config)))
3373 (home-page "http://openavproductions.com/sorcer/")
3374 (synopsis "Wavetable LV2 plugin synth")
3375 (description "Sorcer is a wavetable LV2 plugin synthesizer, targeted at
3376the electronic or dubstep genre.")
3377 (license license:gpl3+)))
60b7ed9c
PL
3378
3379(define-public libechonest
3380 (package
3381 (name "libechonest")
3382 (version "2.3.1")
3383 (source (origin
3384 (method git-fetch)
3385 (uri (git-reference
3386 (url "git://anongit.kde.org/libechonest.git")
3387 (commit version)))
3388 (file-name (string-append name "-" version "-checkout"))
3389 (sha256
3390 (base32
3391 "0xbavf9f355dl1d3qv59x4ryypqrdanh9xdvw2d0q66l008crdkq"))))
3392 (build-system cmake-build-system)
3393 (arguments
3394 '(#:tests? #f ; Tests require Internet access
3395 #:configure-flags '("-DBUILD_WITH_QT4=OFF")))
3396 (inputs
3397 `(("qtbase" ,qtbase)
3398 ("qjson" ,qjson)))
3399 (home-page "https://projects.kde.org/projects/playground/libs/libechonest")
3400 (synopsis "C++/Qt classes to interface with The Echo Nest API")
3401 (description "@code{libechonest} is a collection of C++/Qt classes
3402designed to make a developer's life easy when trying to use the APIs provided
3403by The Echo Nest.")
3404 (license license:gpl2+)))