gnu: java-swt: Update to 4.7.1a.
[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
RW
1410 `(#:build-target "build"
1411 #:tests? #f ; no tests
6260d1a8 1412 #:phases
5f1c9498 1413 (modify-phases %standard-phases
f467c352
RW
1414 (add-after 'unpack 'enter-dir
1415 (lambda _ (chdir "TuxGuitar-lib") #t))
750e54ec 1416 (add-after 'build 'build-libraries
f467c352 1417 (lambda* (#:key inputs outputs #:allow-other-keys)
750e54ec
RW
1418 (let* ((initial-classpath (getenv "CLASSPATH"))
1419 (build-dir (lambda (dir)
1420 (chdir "..")
1421 (setenv "CLASSPATH"
1422 (string-join (cons initial-classpath
1423 (find-files (getcwd) "\\.jar$"))
1424 ":"))
1425 (chdir dir)
1426 (if (file-exists? "build.xml")
1427 ((assoc-ref %standard-phases 'build)
1428 #:build-target "build")
1429 (begin
1430 ;; Generate default build.xml
1431 ((@@ (guix build ant-build-system) default-build.xml)
1432 (string-append (string-downcase dir) ".jar")
1433 (string-append (assoc-ref outputs "out")
1434 "/share/java"))
1435 ((assoc-ref %standard-phases 'build)))))))
1436 (map build-dir '("TuxGuitar-editor-utils"
1437 "TuxGuitar-ui-toolkit"
1438 "TuxGuitar-ui-toolkit-swt"
1439 "TuxGuitar-awt-graphics")))))
1440 (add-after 'build-libraries 'build-application
f467c352
RW
1441 (lambda _
1442 (chdir "../TuxGuitar")
1443 ((assoc-ref %standard-phases 'build)
1444 #:build-target "build")))
1445 (replace 'install
1446 (lambda* (#:key inputs outputs #:allow-other-keys)
1447 (let* ((out (assoc-ref outputs "out"))
1448 (bin (string-append out "/bin"))
1449 (share (string-append out "/share"))
1450 (lib (string-append share "/java"))
1451 (swt (assoc-ref inputs "java-swt")))
1452 (mkdir-p bin)
f467c352
RW
1453 ;; install all jars
1454 (for-each (lambda (file)
1455 (install-file file lib))
1456 (find-files ".." "\\.jar$"))
750e54ec 1457
f467c352 1458 ;; install all resources
750e54ec
RW
1459 (copy-recursively "share" share)
1460
f467c352
RW
1461 ;; create wrapper
1462 (call-with-output-file (string-append bin "/tuxguitar")
1463 (lambda (port)
1464 (let ((classpath (string-join (append (find-files lib "\\.jar$")
1465 (find-files swt "\\.jar$"))
1466 ":")))
1467 (format
1468 port
1469 (string-append "#!/bin/sh\n"
1470 (which "java")
1471 " -cp " classpath
1472 " -Dtuxguitar.home.path=" out
1473 " -Dtuxguitar.share.path=" out "/share"
1474 " -Dswt.library.path=" swt "/lib"
1475 " org.herac.tuxguitar.app.TGMainSingleton"
1476 " \"$1\" \"$2\"")))))
1477 (chmod (string-append bin "/tuxguitar") #o555)
1478 #t))))))
6260d1a8 1479 (inputs
1ad15c16 1480 `(("java-swt" ,java-swt)))
f9b8b54e 1481 (home-page "http://tuxguitar.pw")
6260d1a8
RW
1482 (synopsis "Multitrack tablature editor and player")
1483 (description
1484 "TuxGuitar is a guitar tablature editor with player support through midi.
1485It can display scores and multitrack tabs. TuxGuitar provides various
1486additional features, including autoscrolling while playing, note duration
1487management, bend/slide/vibrato/hammer-on/pull-off effects, support for
1488tuplets, time signature management, tempo management, gp3/gp4/gp5 import and
1489export.")
1490 (license license:lgpl2.1+)))
2d0fd07b
RW
1491
1492(define-public pd
1493 (package
1494 (name "pd")
037bf4f4 1495 (version "0.47-1")
2d0fd07b
RW
1496 (source (origin
1497 (method url-fetch)
1498 (uri
037bf4f4
RW
1499 (string-append "http://msp.ucsd.edu/Software/pd-"
1500 version ".src.tar.gz"))
2d0fd07b
RW
1501 (sha256
1502 (base32
037bf4f4 1503 "0k5s949kqd7yw97h3m8z81bjz32bis9m4ih8df1z0ymipnafca67"))))
2d0fd07b
RW
1504 (build-system gnu-build-system)
1505 (arguments
1506 `(#:tests? #f ; no "check" target
1507 #:phases
1508 (modify-phases %standard-phases
4712cbb0
RW
1509 (add-before 'configure 'fix-wish-path
1510 (lambda _
1511 (substitute* "src/s_inter.c"
1512 ((" wish ") (string-append " " (which "wish8.6") " ")))
1513 (substitute* "tcl/pd-gui.tcl"
1514 (("exec wish ") (string-append "exec " (which "wish8.6") " ")))
1515 #t))
1516 (add-after 'unpack 'autoconf
8723fe23 1517 (lambda _ (zero? (system* "bash" "./autogen.sh")))))))
2d0fd07b
RW
1518 (native-inputs
1519 `(("autoconf" ,autoconf)
1520 ("automake" ,automake)
1521 ("libtool" ,libtool)
b94a6ca0 1522 ("gettext" ,gettext-minimal)
2d0fd07b
RW
1523 ("pkg-config" ,pkg-config)))
1524 (inputs
1525 `(("tk" ,tk)
1526 ("alsa-lib" ,alsa-lib)
1527 ("jack" ,jack-1)))
1528 (home-page "http://puredata.info")
1529 (synopsis "Visual programming language for artistic performances")
1530 (description
1531 "Pure Data (aka Pd) is a visual programming language. Pd enables
1532musicians, visual artists, performers, researchers, and developers to create
1533software graphically, without writing lines of code. Pd is used to process
1534and generate sound, video, 2D/3D graphics, and interface sensors, input
1535devices, and MIDI. Pd can easily work over local and remote networks to
1536integrate wearable technology, motor systems, lighting rigs, and other
1537equipment. Pd is suitable for learning basic multimedia processing and visual
1538programming methods as well as for realizing complex systems for large-scale
1539projects.")
1540 (license license:bsd-3)))
821664f1 1541
aacb52fb
RW
1542(define-public portmidi
1543 (package
1544 (name "portmidi")
1545 (version "217")
1546 (source (origin
1547 (method url-fetch)
1548 (uri (string-append "mirror://sourceforge/portmedia/portmidi/"
1549 version "/portmidi-src-" version ".zip"))
1550 (sha256
1551 (base32
1552 "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88"))
1553 (patches (list (search-patch "portmidi-modular-build.patch")))))
1554 (build-system cmake-build-system)
1555 (arguments
1556 `(#:tests? #f ; tests cannot be linked
1557 #:configure-flags
1558 (list "-DPORTMIDI_ENABLE_JAVA=Off"
1559 "-DCMAKE_BUILD_TYPE=Release" ; needed to have PMALSA set
1560 "-DPORTMIDI_ENABLE_TEST=Off"))) ; tests fail linking
1561 (inputs
1562 `(("alsa-lib" ,alsa-lib)))
1563 (native-inputs
1564 `(("unzip" ,unzip)))
1565 (home-page "http://portmedia.sourceforge.net/portmidi/")
1566 (synopsis "Library for MIDI I/O")
1567 (description
1568 "PortMidi is a library supporting real-time input and output of MIDI data
1569using a system-independent interface.")
1570 (license license:expat)))
f65d59fc 1571
38098bf7
RW
1572(define-public portmidi-for-extempore
1573 (package (inherit portmidi)
1574 (name "portmidi-for-extempore")
1575 (version "217")
1576 (source (origin
1577 (method url-fetch)
1578 (uri (string-append "https://github.com/extemporelang/portmidi/"
1579 "archive/" version ".tar.gz"))
1580 (file-name (string-append name "-" version ".tar.gz"))
1581 (sha256
1582 (base32
1583 "0gjikwciyr8kk4y3qiv1pcq58xpgw38ql1m2gs6g0qc1s8sx4235"))))
1584 (build-system cmake-build-system)
1585 (arguments `(#:tests? #f)) ; no tests
1586 (native-inputs '())
39162ee4
RW
1587 ;; Extempore refuses to build on architectures other than x86_64
1588 (supported-systems '("x86_64-linux"))
38098bf7
RW
1589 (home-page "https://github.com/extemporelang/portmidi/")))
1590
f65d59fc
RW
1591(define-public python-pyportmidi
1592 (package
1593 (name "python-pyportmidi")
1594 (version (package-version portmidi))
1595 (source (package-source portmidi))
1596 (build-system python-build-system)
1597 (arguments
1598 `(#:tests? #f ; no tests included
1599 #:phases
1600 (modify-phases %standard-phases
1601 (add-after 'unpack 'enter-dir
1602 (lambda _ (chdir "pm_python") #t))
1603 (add-after 'enter-dir 'fix-setup.py
1604 (lambda _
1605 (substitute* "setup.py"
1606 ;; Use Python 3 syntax
1607 (("print (\".*\")" _ text)
1608 (string-append "print(" text ")\n"))
1609 ;; TODO.txt and CHANGES.txt don't exist
1610 (("CHANGES =.*") "CHANGES = \"\"\n")
1611 (("TODO =.*") "TODO = \"\"\n"))
1612 #t)))))
1613 (inputs
1614 `(("portmidi" ,portmidi)
f2516de2 1615 ("alsa-lib" ,alsa-lib)))
f65d59fc 1616 (native-inputs
f2516de2
HG
1617 `(("python-cython" ,python-cython)
1618 ("unzip" ,unzip)))
f65d59fc
RW
1619 (home-page "http://portmedia.sourceforge.net/portmidi/")
1620 (synopsis "Python bindings to PortMidi")
1621 (description
1622 "This package provides Python bindings to the PortMidi library.")
1623 (license license:expat)))
aacb52fb 1624
821664f1
RW
1625(define-public frescobaldi
1626 (package
1627 (name "frescobaldi")
e40335b2 1628 (version "3.0.0")
821664f1
RW
1629 (source (origin
1630 (method url-fetch)
1631 (uri (string-append
1632 "https://github.com/wbsoft/frescobaldi/releases/download/v"
1633 version "/frescobaldi-" version ".tar.gz"))
1634 (sha256
1635 (base32
e40335b2 1636 "15cqhbjbjikr7ljgiq56bz2gxrr38j8p0f78p2vhyzydaviy9a2z"))))
821664f1 1637 (build-system python-build-system)
a19a6d3a 1638 (arguments `(#:tests? #f)) ; no tests included
821664f1
RW
1639 (inputs
1640 `(("lilypond" ,lilypond)
6855b347 1641 ("portmidi" ,portmidi)
e40335b2 1642 ("python-pyqt" ,python-pyqt)
821664f1 1643 ("python-ly" ,python-ly)
6855b347 1644 ("python-pyportmidi" ,python-pyportmidi)
821664f1 1645 ("poppler" ,poppler)
e40335b2 1646 ("python-poppler-qt5" ,python-poppler-qt5)
821664f1
RW
1647 ("python-sip" ,python-sip)))
1648 (home-page "http://www.frescobaldi.org/")
1649 (synopsis "LilyPond sheet music text editor")
1650 (description
1651 "Frescobaldi is a LilyPond sheet music text editor with syntax
1652highlighting and automatic completion. Among other things, it can render
1653scores next to the source, can capture input from MIDI or read MusicXML and
1654ABC files, has a MIDI player for proof-listening, and includes a documentation
1655browser.")
1656 (license license:gpl2+)))
ddfddb0c 1657
bf76d780
RW
1658(define-public drumstick
1659 (package
1660 (name "drumstick")
382aacc5 1661 (version "1.1.0")
bf76d780
RW
1662 (source (origin
1663 (method url-fetch)
1664 (uri (string-append "mirror://sourceforge/drumstick/"
1665 version "/drumstick-" version ".tar.bz2"))
1666 (sha256
1667 (base32
382aacc5 1668 "13pkfqrav30bbcddgf1imd7jk6lpqbxkz1qv31718pdl446jq7df"))))
bf76d780
RW
1669 (build-system cmake-build-system)
1670 (arguments
1671 `(#:tests? #f ; no test target
1672 #:configure-flags '("-DLIB_SUFFIX=")
1673 #:phases
1674 (modify-phases %standard-phases
1675 (add-before 'configure 'fix-docbook
1676 (lambda* (#:key inputs #:allow-other-keys)
1677 (substitute* "cmake_admin/CreateManpages.cmake"
1678 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
1679 (string-append (assoc-ref inputs "docbook-xsl")
1680 "/xml/xsl/docbook-xsl-"
1681 ,(package-version docbook-xsl)
1682 "/manpages/docbook.xsl")))
1683 #t)))))
1684 (inputs
ca1cab82
EF
1685 `(("qtbase" ,qtbase)
1686 ("qtsvg" ,qtsvg)
bf76d780
RW
1687 ("alsa-lib" ,alsa-lib)
1688 ("fluidsynth" ,fluidsynth)))
1689 (native-inputs
1690 `(("pkg-config" ,pkg-config)
1691 ("libxslt" ,libxslt) ;for xsltproc
1692 ("docbook-xsl" ,docbook-xsl)
1693 ("doxygen" ,doxygen)))
1694 (home-page "http://drumstick.sourceforge.net/")
1695 (synopsis "C++ MIDI library")
1696 (description
1697 "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It
1698includes a C++ wrapper around the ALSA library sequencer interface. A
1699complementary library provides classes for processing SMF (Standard MIDI
1700files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A
1701multiplatform realtime MIDI I/O library is also provided with various output
1702backends, including ALSA, OSS, Network and FluidSynth.")
1703 (license license:gpl2+)))
1704
ddfddb0c
RW
1705(define-public zynaddsubfx
1706 (package
1707 (name "zynaddsubfx")
5cff549c 1708 (version "3.0.2")
ddfddb0c
RW
1709 (source (origin
1710 (method url-fetch)
1711 (uri (string-append
1712 "mirror://sourceforge/zynaddsubfx/zynaddsubfx/"
138e7697 1713 version "/zynaddsubfx-" version ".tar.bz2"))
ddfddb0c
RW
1714 (sha256
1715 (base32
5cff549c 1716 "09mr23lqc51r7gskry5b7hk84pghdpgn1s4vnrzvx7xpa21gvplm"))))
ddfddb0c 1717 (build-system cmake-build-system)
00dfc97c
RW
1718 (arguments
1719 `(#:phases
1720 (modify-phases %standard-phases
1721 ;; Move SSE compiler optimization flags from generic target to
1722 ;; athlon64 and core2 targets, because otherwise the build would fail
1723 ;; on non-Intel machines.
1724 (add-after 'unpack 'remove-sse-flags-from-generic-target
1725 (lambda _
1726 (substitute* "src/CMakeLists.txt"
1727 (("-msse -msse2 -mfpmath=sse") "")
1728 (("-march=(athlon64|core2)" flag)
1729 (string-append flag " -msse -msse2 -mfpmath=sse")))
1730 #t)))))
ddfddb0c
RW
1731 (inputs
1732 `(("liblo" ,liblo)
1733 ("ntk" ,ntk)
1ea7969f 1734 ("mesa" ,mesa)
ddfddb0c
RW
1735 ("alsa-lib" ,alsa-lib)
1736 ("jack" ,jack-1)
1737 ("fftw" ,fftw)
1738 ("minixml" ,minixml)
1739 ("libxpm" ,libxpm)
1740 ("zlib" ,zlib)))
1741 (native-inputs
1742 `(("pkg-config" ,pkg-config)))
1743 (home-page "http://zynaddsubfx.sf.net/")
1744 (synopsis "Software synthesizer")
1745 (description
1746 "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
1747three synthesizer engines, multitimbral and polyphonic synths, microtonal
1748capabilities, custom envelopes, effects, etc.")
1749 (license license:gpl2)))
c493679f
RW
1750
1751(define-public yoshimi
1752 (package
1753 (name "yoshimi")
0b4f40e4 1754 (version "1.5.3")
c493679f
RW
1755 (source (origin
1756 (method url-fetch)
1757 (uri (string-append "mirror://sourceforge/yoshimi/"
1758 (version-major+minor version)
1759 "/yoshimi-" version ".tar.bz2"))
1760 (sha256
1761 (base32
0b4f40e4 1762 "0sns35pyw2f74xrv1fxiyf9g9415kvh2rrbdjd60hsiv584nlari"))))
c493679f
RW
1763 (build-system cmake-build-system)
1764 (arguments
1765 `(#:tests? #f ; there are no tests
1766 #:configure-flags
1767 (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR="
1768 (assoc-ref %outputs "out") "/share"))
1769 #:phases
1770 (modify-phases %standard-phases
1771 (add-before 'configure 'enter-dir
1772 (lambda _ (chdir "src") #t))
1773 ;; Move SSE compiler optimization flags from generic target to
1774 ;; athlon64 and core2 targets, because otherwise the build would fail
1775 ;; on non-Intel machines.
1776 (add-after 'unpack 'remove-sse-flags-from-generic-target
1777 (lambda _
1778 (substitute* "src/CMakeLists.txt"
1779 (("-msse -msse2 -mfpmath=sse") "")
1780 (("-march=(athlon64|core2)" flag)
1781 (string-append flag " -msse -msse2 -mfpmath=sse")))
7fd30d1b
RW
1782 #t))
1783 ;; Yoshimi tries to find ncurses with pkg-config, but our ncurses
1784 ;; package does not install .pc files.
1785 (add-after 'unpack 'find-ncurses
1786 (lambda _
1787 (substitute* "src/CMakeLists.txt"
1788 (("LIBNCURSES REQUIRED") "LIBNCURSES")
1789 (("NCURSES REQUIRED") "NCURSES")
1790 (("FATAL_ERROR \"libncurses") "STATUS \"libncurses")
1791 (("\\$\\{NCURSES_LIBRARIES\\}") "ncurses"))
1792 #t)))))
c493679f
RW
1793 (inputs
1794 `(("boost" ,boost)
1795 ("fftwf" ,fftwf)
1796 ("alsa-lib" ,alsa-lib)
1797 ("jack" ,jack-1)
1798 ("fontconfig" ,fontconfig)
1799 ("minixml" ,minixml)
1800 ("mesa" ,mesa)
1801 ("fltk" ,fltk)
1802 ("lv2" ,lv2)
1803 ("readline" ,readline)
1804 ("ncurses" ,ncurses)
1805 ("cairo" ,cairo)
1806 ("zlib" ,zlib)))
1807 (native-inputs
1808 `(("pkg-config" ,pkg-config)))
1809 (home-page "http://yoshimi.sourceforge.net/")
1810 (synopsis "Multi-paradigm software synthesizer")
1811 (description
1812 "Yoshimi is a fork of ZynAddSubFX, a feature heavy realtime software
1813synthesizer. It offers three synthesizer engines, multitimbral and polyphonic
1814synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi
1815improves on support for JACK features, such as JACK MIDI.")
1816 (license license:gpl2)))
658212eb 1817
e87cb754
RW
1818(define-public libgig
1819 (package
1820 (name "libgig")
1821 (version "4.0.0")
1822 (source (origin
1823 (method url-fetch)
1824 (uri (string-append "http://download.linuxsampler.org/packages/"
1825 "libgig-" version ".tar.bz2"))
1826 (sha256
1827 (base32
1828 "1wr8mwjmqpnyz6bx9757lspiii1zzn8zfbqsvn2ipzpgqkxv6kaz"))))
1829 (build-system gnu-build-system)
1830 (inputs
1831 `(("libuuid" ,util-linux)
1832 ("libsndfile" ,libsndfile)))
1833 (native-inputs
1834 `(("pkg-config" ,pkg-config)))
1835 (home-page "http://linuxsampler.org/libgig/")
1836 (synopsis "C++ library for working with Gigasampler (.gig) files")
1837 (description
1838 "Libgig is a C++ library for loading, modifying existing and creating new
1839Gigasampler (.gig) files and DLS (Downloadable Sounds) Level 1/2 files, KORG
1840sample based instruments (.KSF and .KMP files), SoundFont v2 (.sf2) files and
1841AKAI sampler data. The package includes a couple of command line tools based
1842on the library.")
1843 ;; The library and tools are released under the GPL, except the AKAI
1844 ;; classes which are released under the LGPL.
1845 (license (list license:gpl2+ license:lgpl2.1+))))
1846
a9f55bf2
RW
1847(define-public jack-keyboard
1848 (package
1849 (name "jack-keyboard")
1850 (version "2.5")
1851 (source
1852 (origin
1853 (method url-fetch)
1854 (uri (string-append "mirror://sourceforge/jack-keyboard/jack-keyboard/"
1855 version "/jack-keyboard-" version ".tar.gz"))
1856 (sha256
1857 (base32
1858 "0mzmg8aavybcfdlq2yd9d0vscqd6is5p6jzrgfpfm5j3xdcvh2s3"))))
1859 (build-system gnu-build-system)
1860 (inputs
1861 `(("jack" ,jack-1)
1862 ("lash" ,lash)
1863 ("gtk+" ,gtk+-2)))
1864 (native-inputs
1865 `(("pkg-config" ,pkg-config)))
1866 (home-page "http://jack-keyboard.sourceforge.net/")
1867 (synopsis "Virtual MIDI keyboard")
1868 (description "Jack-keyboard is a virtual MIDI keyboard, a program that
1869allows you to send JACK MIDI events (i.e. play) using your PC keyboard.")
1870 (license license:bsd-2)))
1871
658212eb
LF
1872(define-public cursynth
1873 (package
1874 (name "cursynth")
1875 (version "1.5")
1876 (source
1877 (origin
1878 (method url-fetch)
1879 (uri (string-append "mirror://gnu/cursynth/cursynth-"
1880 version ".tar.gz"))
1881 (sha256
1882 (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v"))
fc1adab1 1883 (patches (search-patches "cursynth-wave-rand.patch"))))
658212eb
LF
1884 (build-system gnu-build-system)
1885 (native-inputs `(("pkg-config" ,pkg-config)))
1886 ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently
1887 ;; prevents us from using pulseaudio
1888 (inputs `(("ncurses" ,ncurses)
1889 ("alsa" ,alsa-lib)))
6fd52309 1890 (home-page "https://www.gnu.org/software/cursynth/")
658212eb
LF
1891 (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses")
1892 (description "GNU cursynth is a polyphonic synthesizer that runs
1893graphically in the terminal. It is built on a full-featured subtractive
1894synthesis engine. Notes and parameter changes may be entered via MIDI or the
1895computer's keyboard.")
1896 (license license:gpl3+)))
a763ce7d
RW
1897
1898(define-public qtractor
1899 (package
1900 (name "qtractor")
3765f4e6 1901 (version "0.8.4")
a763ce7d
RW
1902 (source (origin
1903 (method url-fetch)
1904 (uri (string-append "http://downloads.sourceforge.net/qtractor/"
1905 "qtractor-" version ".tar.gz"))
1906 (sha256
1907 (base32
3765f4e6 1908 "17bbjfn94843g5q1h7xh23fwyazpfgg4fw6drrn5wgk2vx7qpkis"))))
a763ce7d
RW
1909 (build-system gnu-build-system)
1910 (arguments `(#:tests? #f)) ; no "check" target
1911 (inputs
523544d3
RW
1912 `(("qt" ,qtbase)
1913 ("qtx11extras" ,qtx11extras)
a763ce7d
RW
1914 ("alsa-lib" ,alsa-lib)
1915 ("jack" ,jack-1)
1916 ("libsndfile" ,libsndfile)
1917 ("ladspa" ,ladspa)
1918 ("lv2" ,lv2)
1919 ("lilv" ,lilv)
1920 ("suil" ,suil)
1921 ("libsamplerate" ,libsamplerate)
1922 ("libvorbis" ,libvorbis)
1923 ("libmad" ,libmad)
1924 ("rubberband" ,rubberband)
1925 ("liblo" ,liblo)
1926 ("zlib" ,zlib)))
1927 (native-inputs
523544d3
RW
1928 `(("pkg-config" ,pkg-config)
1929 ("qttools" ,qttools)))
8071bbbc 1930 (home-page "http://qtractor.org/")
a763ce7d
RW
1931 (synopsis "Audio/MIDI multi-track sequencer")
1932 (description
1933 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
1934JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
1935follows a traditional multi-track tape recorder control paradigm.")
1936 (license license:gpl2+)))
aa0edd3f 1937
849c3d03
RW
1938(define-public ams-lv2
1939 (package
1940 (name "ams-lv2")
f0c5856d 1941 (version "1.2.1")
849c3d03
RW
1942 (source
1943 (origin
1944 (method url-fetch)
1945 (uri (string-append "https://github.com/blablack/ams-lv2/"
1946 "archive/" version ".tar.gz"))
1947 (file-name (string-append name "-" version ".tar.gz"))
1948 (sha256
1949 (base32
f0c5856d 1950 "1xacxyzqcj83g9c1gwfn36gg1c6yi15v7km4vidfidrjzb4x27fq"))))
849c3d03 1951 (build-system waf-build-system)
8a3ce2c7
EF
1952 (arguments
1953 `(#:phases
1954 (modify-phases %standard-phases
1955 (add-after 'unpack 'remove-sse-flags
1956 (lambda* (#:key system #:allow-other-keys)
1957 (when (not (or (string-prefix? "x86_64" system)
1958 (string-prefix? "i686" system)))
1959 (substitute* "wscript"
1960 (("'-msse', '-mfpmath=sse', ") ""))
1961 #t))))
1962 #:tests? #f)) ; no tests
849c3d03
RW
1963 (inputs
1964 `(("lv2" ,lv2)
1965 ("lvtk" ,lvtk)
1966 ("gtkmm" ,gtkmm-2)
1967 ("gtk" ,gtk+-2)
1968 ("cairo" ,cairo)
1969 ("fftw" ,fftw)))
1970 (native-inputs
1971 `(("pkg-config" ,pkg-config)))
1972 (home-page "https://objectivewave.wordpress.com/ams-lv2/")
1973 (synopsis "Port of Alsa Modular Synth internal modules into LV2")
1974 (description "This set of LV2 plugins is a port of the internal modules
1975found in Alsa Modular Synth. These plugins are used to create modular
1976synthesizers and contain: VCO, VCF, VCA, LFO, slew limiter, envelopes, sample
1977and hold, etc.")
1978 (license license:gpl2)))
1979
aed023ff
RW
1980(define-public gxtuner
1981 (package
1982 (name "gxtuner")
f5e0ff0f 1983 (version "2.4")
aed023ff
RW
1984 (source (origin
1985 (method url-fetch)
1986 (uri (string-append "https://github.com/brummer10/gxtuner/"
1987 "archive/v" version ".tar.gz"))
1988 (file-name (string-append name "-" version ".tar.gz"))
1989 (sha256
1990 (base32
f5e0ff0f 1991 "1hn5qjac7qd00v0sp7ijhhc3sb26ks9bni06nngivva21h61xrjr"))))
aed023ff
RW
1992 (build-system gnu-build-system)
1993 (arguments
1994 `(#:make-flags
1995 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1996 (string-append "INCLUDE_L_DIR="
1997 (assoc-ref %build-inputs "zita-resampler")
1998 "/include/"))
1999 #:phases
2000 (modify-phases %standard-phases
2001 (delete 'configure))))
2002 (inputs
f5e0ff0f 2003 `(("gtk+" ,gtk+)
aed023ff
RW
2004 ("jack" ,jack-1)
2005 ("fftwf" ,fftwf)
2006 ("cairo" ,cairo)
2007 ("zita-resampler" ,zita-resampler)))
2008 (native-inputs
2009 `(("pkg-config" ,pkg-config)))
2010 (home-page "https://github.com/brummer10/gxtuner")
2011 (synopsis "Guitar tuner")
2012 (description "GXtuner is a simple guitar tuner for JACK with an
2013analogue-like user interface.")
2014 (license license:gpl2+)))
2015
c2c9e748
RW
2016(define-public mod-host
2017 ;; The last release was in 2014 but since then more than 140 commits have
2018 ;; been made.
82bf45c8
RW
2019 (let ((commit "299a3977476e8eb0285837fbd7522cec506a11de")
2020 (revision "2"))
c2c9e748
RW
2021 (package
2022 (name "mod-host")
2023 (version (string-append "0.10.6-" revision "." (string-take commit 9)))
2024 (source (origin
2025 (method git-fetch)
2026 (uri (git-reference
2027 (url "https://github.com/moddevices/mod-host")
2028 (commit commit)))
2029 (sha256
2030 (base32
82bf45c8 2031 "128q7p5mph086v954rqnafalfbkyvhgwclaq6ks6swrhj45wnag6"))
c2c9e748
RW
2032 (file-name (string-append name "-" version "-checkout"))))
2033 (build-system gnu-build-system)
2034 (arguments
2035 `(#:tests? #f ; no tests included
2036 #:make-flags
2037 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2038 "CC=gcc")
2039 #:phases
2040 (modify-phases %standard-phases
2041 (delete 'configure)
2042 (add-after 'unpack 'fix-jack-installation-directory
2043 (lambda _
2044 ;; Do not attempt to install files to output of "jack" package.
2045 (substitute* "Makefile"
2046 (("\\$\\(shell pkg-config --variable=libdir jack\\)")
2047 "lib"))
2048 #t)))))
2049 (inputs
2050 `(("lilv" ,lilv)
c96cb01a
DC
2051 ("fftw" ,fftw)
2052 ("fftwf" ,fftwf)
c2c9e748
RW
2053 ("lv2" ,lv2)
2054 ("jack" ,jack-1)
2055 ("readline" ,readline)))
2056 (native-inputs
2057 `(("pkg-config" ,pkg-config)
2058 ("python" ,python-2)))
2059 (home-page "https://github.com/moddevices/mod-host")
2060 (synopsis "LV2 host for Jack controllable via socket or command line")
2061 (description "mod-host is an LV2 plugin host for JACK, controllable via
2062socket or command line.")
2063 (license license:gpl3+))))
2064
aa0edd3f
AM
2065(define-public pianobar
2066 (package
2067 (name "pianobar")
3999b664 2068 (version "2016.06.02")
aa0edd3f
AM
2069 (source (origin
2070 (method url-fetch)
2071 (uri (string-append "https://github.com/PromyLOPh/"
2072 name "/archive/" version ".tar.gz"))
2073 (file-name (string-append name "-" version ".tar.gz"))
2074 (sha256
2075 (base32
3999b664 2076 "1hi5rr6jcr0kwf4xfz007ndwkjkp287lhwlsgfz6iryqa5n6jzcp"))))
aa0edd3f
AM
2077 (build-system gnu-build-system)
2078 (arguments
2079 `(#:tests? #f ; no tests
2080 #:make-flags (list "CC=gcc" "CFLAGS=-std=c99"
2081 (string-append "PREFIX=" %output))
2082 #:phases (modify-phases %standard-phases
2083 (delete 'configure))))
2084 (inputs
2085 `(("ao" ,ao)
2086 ("curl" ,curl)
2087 ("libgcrypt" ,libgcrypt)
2088 ("json-c" ,json-c)
2089 ("ffmpeg" ,ffmpeg)))
2090 (native-inputs
2091 `(("pkg-config" ,pkg-config)))
2092 (home-page "http://6xq.net/projects/pianobar/")
2093 (synopsis "Console-based pandora.com player")
2094 (description "pianobar is a console-based music player for the
2095personalized online radio pandora.com. It has configurable keys for playing
2096and managing stations, can be controlled remotely via fifo, and can run
2097event-based scripts for scrobbling, notifications, etc.")
2098 (license license:expat)))
3f7a182d
LF
2099
2100(define-public python-mutagen
2101 (package
2102 (name "python-mutagen")
e39aae4f 2103 (version "1.38")
3f7a182d
LF
2104 (source (origin
2105 (method url-fetch)
2106 (uri (pypi-uri "mutagen" version))
2107 (sha256
2108 (base32
e39aae4f 2109 "0rl7sxn1rcjl48fwga3dqf9f6pzspsny4ngxyf6pp337mrq0z693"))))
3f7a182d 2110 (build-system python-build-system)
4228a79e
LF
2111 (native-inputs
2112 `(("python-pytest" ,python-pytest)))
3f7a182d
LF
2113 (home-page "https://bitbucket.org/lazka/mutagen")
2114 (synopsis "Read and write audio tags")
2115 (description "Mutagen is a Python module to handle audio metadata. It
2116supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
2117Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
2118of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
2119Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
2120APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
2121streams on an individual packet/page level.")
2122 (license license:gpl2))) ; "later version" never mentioned
2123
2124(define-public python2-mutagen
2125 (package-with-python2 python-mutagen))
8975de88
LF
2126
2127(define-public python-musicbrainzngs
2128 (package
2129 (name "python-musicbrainzngs")
daedf34d 2130 (version "0.6")
8975de88
LF
2131 (source (origin
2132 (method url-fetch)
2133 (uri (pypi-uri "musicbrainzngs" version))
2134 (sha256
2135 (base32
daedf34d 2136 "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8"))))
8975de88 2137 (build-system python-build-system)
daedf34d
LF
2138 (arguments
2139 '(;; The tests fail suffer from race conditions:
2140 ;; https://github.com/alastair/python-musicbrainzngs/issues/211
2141 #:tests? #f))
8975de88
LF
2142 (home-page "https://python-musicbrainzngs.readthedocs.org/")
2143 (synopsis "Python bindings for MusicBrainz NGS webservice")
2144 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
2145web service. This library can be used to retrieve music metadata from the
2146MusicBrainz database.")
2147 ;; 'musicbrainzngs/compat.py' is ISC licensed.
2148 (license (list license:bsd-2 license:isc))))
2149
2150(define-public python2-musicbrainzngs
2151 (package-with-python2 python-musicbrainzngs))
e8fee648 2152
a2eab422 2153(define-public python2-pyechonest
e8fee648 2154 (package
a2eab422 2155 (name "python2-pyechonest")
e8fee648
LF
2156 (version "9.0.0")
2157 (source (origin
2158 (method url-fetch)
2159 (uri (pypi-uri "pyechonest" version))
2160 (sha256
2161 (base32
2162 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
2163 (build-system python-build-system)
a2eab422
LF
2164 (arguments
2165 `(;; Python 3 is not supported:
2166 ;; https://github.com/echonest/pyechonest/issues/42
2167 #:python ,python-2))
e8fee648
LF
2168 (home-page "https://github.com/echonest/pyechonest")
2169 (synopsis "Python interface to The Echo Nest APIs")
d3e3468f
LF
2170 (description "Pyechonest is a Python library for the Echo Nest API. With
2171Pyechonest you have Python access to the entire set of API methods including:
e8fee648
LF
2172
2173@enumerate
2174@item artist - search for artists by name, description, or attribute, and get
2175back detailed information about any artist including audio, similar artists,
2176blogs, familiarity, hotttnesss, news, reviews, urls and video.
2177@item song - search songs by artist, title, description, or attribute (tempo,
2178duration, etc) and get detailed information back about each song, such as
2179hotttnesss, audio_summary, or tracks.
2180@item track - upload a track to the Echo Nest and receive summary information
2181about the track including key, duration, mode, tempo, time signature along with
2182detailed track info including timbre, pitch, rhythm and loudness information.
2183@end enumerate\n")
a2eab422 2184 (license license:bsd-3)))
acd7351f
LF
2185
2186(define-public python-pylast
2187 (package
2188 (name "python-pylast")
4ecab114 2189 (version "1.9.0")
acd7351f
LF
2190 (source (origin
2191 (method url-fetch)
2192 (uri (pypi-uri "pylast" version))
2193 (sha256
2194 (base32
4ecab114 2195 "190c6sicc80v21wbbwbq771nqmxw4r6aqmxs22ndj177rc2l275f"))))
acd7351f 2196 (build-system python-build-system)
810f8983
MB
2197 (arguments
2198 '(#:tests? #f)) ; FIXME: Requires unpackaged python-flaky.
acd7351f
LF
2199 (native-inputs
2200 `(("python-coverage" ,python-coverage)
2201 ("python-mock" ,python-mock)
2202 ("python-pep8" ,python-pep8)
2203 ("python-pytest" ,python-pytest)
2204 ("python-pyflakes" ,python-pyflakes)
2205 ("python-pyyaml" ,python-pyyaml)))
2206 (propagated-inputs
2207 `(("python-six" ,python-six)))
2208 (home-page "https://github.com/pylast/pylast")
2209 (synopsis "Python interface to Last.fm and Libre.fm")
2210 (description "A Python interface to Last.fm and other API-compatible
2211websites such as Libre.fm.")
5c31f4aa 2212 (license license:asl2.0)))
acd7351f
LF
2213
2214(define-public python2-pylast
5c31f4aa 2215 (package-with-python2 python-pylast))
3bf429af
LF
2216
2217(define-public beets
2218 (package
2219 (name "beets")
f277dea2 2220 (version "1.4.5")
3bf429af
LF
2221 (source (origin
2222 (method url-fetch)
23319ed6 2223 (uri (pypi-uri "beets" version))
3bf429af
LF
2224 (sha256
2225 (base32
f277dea2 2226 "1z02j871gc8l9mnd344qy9z8akigikgmc22r15ns6driqb2qishv"))))
3bf429af
LF
2227 (build-system python-build-system)
2228 (arguments
0d48ff81 2229 `(#:phases
3bf429af
LF
2230 (modify-phases %standard-phases
2231 (add-after 'unpack 'set-HOME
36c2c8c8
LF
2232 (lambda _ (setenv "HOME" (string-append (getcwd) "/tmp"))))
2233 (replace 'check
2234 (lambda _ (zero? (system* "nosetests" "-v")))))))
3bf429af 2235 (native-inputs
0d48ff81
LF
2236 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2237 ("python-flask" ,python-flask)
2238 ("python-mock" ,python-mock)
2239 ("python-mpd2" ,python-mpd2)
2240 ("python-nose" ,python-nose)
2241 ("python-pathlib" ,python-pathlib)
2242 ("python-pyxdg" ,python-pyxdg)
2243 ("python-pylast" ,python-pylast)
2244 ("python-rarfile" ,python-rarfile)
2245 ("python-responses" ,python-responses)))
3bf429af 2246 ;; TODO: Install optional plugins and dependencies.
b3470031 2247 (inputs
0d48ff81 2248 `(("python-discogs-client" ,python-discogs-client)
0d48ff81
LF
2249 ("python-jellyfish" ,python-jellyfish)
2250 ("python-munkres" ,python-munkres)
2251 ("python-musicbrainzngs" ,python-musicbrainzngs)
2252 ("python-mutagen" ,python-mutagen)
2253 ("python-pyyaml" ,python-pyyaml)
2254 ("python-unidecode" ,python-unidecode)))
3bf429af
LF
2255 (home-page "http://beets.io")
2256 (synopsis "Music organizer")
2257 (description "The purpose of beets is to get your music collection right
2258once and for all. It catalogs your collection, automatically improving its
2259metadata as it goes using the MusicBrainz database. Then it provides a variety
2260of tools for manipulating and accessing your music.")
2261 (license license:expat)))
21d18113
KY
2262
2263(define-public milkytracker
2264 (package
2265 (name "milkytracker")
1faf081b 2266 (version "1.01.00")
21d18113
KY
2267 (source (origin
2268 (method url-fetch)
e3b2e943 2269 (uri (string-append "https://github.com/milkytracker/"
1faf081b
KK
2270 "MilkyTracker/archive/v"
2271 version ".tar.gz"))
e3b2e943 2272 (file-name (string-append name "-" version ".tar.gz"))
21d18113
KY
2273 (sha256
2274 (base32
1faf081b 2275 "1dvnddsnn9c83lz4dlm0cfjpc0m524amfkbalxbswdy0qc8cj1wv"))
e3b2e943
KK
2276 (modules '((guix build utils)))
2277 ;; Remove non-FSDG compliant sample songs.
2278 (snippet
2279 '(begin
2280 (delete-file-recursively "resources/music")
2281 (substitute* "CMakeLists.txt"
2282 (("add_subdirectory\\(resources/music\\)") ""))))))
2283 (build-system cmake-build-system)
21d18113 2284 (arguments
e3b2e943 2285 '(#:tests? #f)) ; no check target
21d18113
KY
2286 (inputs
2287 `(("alsa-lib" ,alsa-lib)
2288 ("jack" ,jack-1)
e3b2e943 2289 ("sdl" ,sdl2)
21d18113
KY
2290 ("zlib" ,zlib)))
2291 (native-inputs
2292 `(("pkg-config" ,pkg-config)))
2293 (synopsis "Music tracker for working with .MOD/.XM module files")
2294 (description "MilkyTracker is a music application for creating .MOD and .XM
2295module files. It attempts to recreate the module replay and user experience of
2296the popular DOS program Fasttracker II, with special playback modes available
2297for improved Amiga ProTracker 2/3 compatibility.")
1b35fea1 2298 (home-page "http://milkytracker.titandemo.org/")
21d18113
KY
2299 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2300 (license (list license:bsd-3 license:gpl3+))))
13416a10 2301
89bcf3fc
KK
2302(define-public schismtracker
2303 (package
2304 (name "schismtracker")
82bdcfe8 2305 (version "20170910")
89bcf3fc
KK
2306 (source (origin
2307 (method url-fetch)
2308 (uri (string-append
2309 "https://github.com/" name "/" name "/archive/"
2310 version ".tar.gz"))
2311 (file-name (string-append name "-" version ".tar.gz"))
2312 (sha256
2313 (base32
82bdcfe8 2314 "01gfcjngbpv87y9w5jln8k313hycpkb1d617hdy2cdw2hxqzlclz"))
89bcf3fc
KK
2315 (modules '((guix build utils)))
2316 (snippet
2317 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2318 `(substitute* "schism/version.c"
9342c5a0 2319 (("Schism Tracker built %s %s.*$")
89bcf3fc
KK
2320 (string-append "Schism Tracker version " ,version "\");"))))))
2321 (build-system gnu-build-system)
2322 (arguments
2323 `(#:phases
2324 (modify-phases %standard-phases
2325 (add-after 'unpack 'autoconf
2326 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
2327 (add-before 'configure 'link-libm
2328 (lambda _ (setenv "LIBS" "-lm") #t)))))
2329 (native-inputs
2330 `(("autoconf" ,autoconf)
2331 ("automake" ,automake)
2332 ("python" ,python)))
2333 (inputs
2334 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2335 ("libx11" ,libx11)
2336 ("libxext" ,libxext)
2337 ("sdl" ,sdl)))
2338 (home-page "http://schismtracker.org")
2339 (synopsis "Oldschool sample-based music composition tool")
2340 (description
2341 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2342create high quality music without the requirements of specialized, expensive
2343equipment, and with a unique \"finger feel\" that is difficult to replicate in
2344part. The player is based on a highly modified version of the ModPlug engine,
2345with a number of bugfixes and changes to improve IT playback.")
2346 (license license:gpl2+)))
2347
5beecc32
RW
2348(define-public sooperlooper
2349 (package
2350 (name "sooperlooper")
2351 (version "1.7.3")
2352 (source (origin
2353 (method url-fetch)
2354 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2355 version ".tar.gz"))
2356 (sha256
2357 (base32
2358 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2359 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2360 (build-system gnu-build-system)
2361 (arguments
2362 `(#:make-flags (list "CXXFLAGS=-std=gnu++11")
2363 #:phases
2364 (modify-phases %standard-phases
2365 (add-after 'unpack 'add-sigc++-includes
2366 (lambda* (#:key inputs #:allow-other-keys)
2367 (let ((sig (assoc-ref inputs "libsigc++"))
2368 (xml (assoc-ref inputs "libxml2"))
2369 (cwd (getcwd)))
2370 (setenv "CPATH"
2371 (string-append sig "/include/sigc++-2.0:"
2372 sig "/lib/sigc++-2.0/include:"
2373 xml "/include/libxml2/:"
2374 cwd "/libs/pbd:"
2375 cwd "/libs/midi++")))
2376 (substitute* '("src/control_osc.hpp"
2377 "src/gui/app_frame.hpp"
2378 "src/gui/config_panel.hpp"
2379 "src/gui/keys_panel.hpp"
2380 "src/gui/latency_panel.hpp"
2381 "src/gui/main_panel.hpp"
2382 "src/gui/midi_bind_panel.hpp"
2383 "src/gui/prefs_dialog.hpp")
2384 (("sigc\\+\\+/object.h")
2385 "sigc++/sigc++.h"))
2386 (substitute* '("src/engine.cpp"
2387 "src/gui/latency_panel.cpp"
2388 "src/gui/looper_panel.cpp"
2389 "src/gui/main_panel.cpp")
2390 (("(\\(| )bind " _ pre)
2391 (string-append pre "sigc::bind ")))
2392 #t))
2393 (add-after 'unpack 'fix-xpm-warnings
2394 (lambda _
2395 (substitute* (find-files "." "\\.xpm$")
2396 (("static char") "static const char"))
2397 #t)))))
2398 (inputs
2399 `(("jack" ,jack-1)
2400 ("alsa-lib" ,alsa-lib)
2401 ("wxwidgets" ,wxwidgets-gtk2)
2402 ("libsndfile" ,libsndfile)
2403 ("libsamplerate" ,libsamplerate)
2404 ("liblo" ,liblo)
2405 ("rubberband" ,rubberband)
2406 ("libxml2" ,libxml2)
2407 ("libsigc++" ,libsigc++)
2408 ("ncurses" ,ncurses)))
2409 (native-inputs
2410 `(("pkg-config" ,pkg-config)))
2411 (home-page "http://essej.net/sooperlooper/")
2412 (synopsis "Live looping sampler")
2413 (description
2414 "SooperLooper is a live looping sampler capable of immediate loop
2415recording, overdubbing, multiplying, reversing and more. It allows for
2416multiple simultaneous multi-channel loops limited only by your computer's
2417available memory.")
2418 (license license:gpl2+)))
2419
13416a10
KY
2420(define-public moc
2421 (package
2422 (name "moc")
2fbc004f 2423 (version "2.5.2")
13416a10
KY
2424 (source (origin
2425 (method url-fetch)
2426 (uri (string-append "http://ftp.daper.net/pub/soft/"
2427 name "/stable/"
2428 name "-" version ".tar.bz2"))
2429 (sha256
2430 (base32
2fbc004f
KK
2431 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))
2432 (modules '((guix build utils)))
2433 (snippet
2434 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2435 '(substitute* "main.c"
2436 (("printf \\(\" Built : %s\", __DATE__\\);") "")
2437 (("printf \\(\" %s\", __TIME__\\);") "")))))
13416a10
KY
2438 (build-system gnu-build-system)
2439 (inputs
2440 `(("alsa-lib" ,alsa-lib)
2441 ("curl" ,curl)
2442 ("faad2" ,faad2)
2443 ("ffmpeg" ,ffmpeg)
2444 ("file" ,file)
2445 ("jack" ,jack-1)
2446 ("libid3tag" ,libid3tag)
2447 ("libltdl" ,libltdl)
2448 ("libmodplug" ,libmodplug)
2449 ("libmpcdec" ,libmpcdec)
2450 ("libmad" ,libmad)
6beaa5a0
MM
2451 ("libogg" ,libogg)
2452 ("libvorbis" ,libvorbis)
13416a10
KY
2453 ("ncurses" ,ncurses)
2454 ("openssl" ,openssl)
2455 ("sasl" ,cyrus-sasl)
2456 ("speex" ,speex)
2457 ("taglib" ,taglib)
2458 ("wavpack" ,wavpack)
2459 ("zlib" ,zlib)))
2460 (native-inputs
2461 `(("pkg-config" ,pkg-config)))
2462 (synopsis "Console audio player designed to be powerful and easy to use")
2463 (description
2464 "Music on Console is a console audio player that supports many file
2465formats, including most audio formats recognized by FFMpeg.")
2466 (home-page "http://moc.daper.net")
2467 (license license:gpl2+)))
6d3ef286
JF
2468
2469(define-public midicsv
2470 (package
2471 (name "midicsv")
2472 (version "1.1")
2473 (source (origin
2474 (method url-fetch)
2475 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
2476 name "-" version ".tar.gz"))
2477 (sha256
2478 (base32
2479 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
2480 (build-system gnu-build-system)
2481 (arguments
2482 `(#:phases (modify-phases %standard-phases (delete 'configure))
2483 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
2484 (synopsis "Convert MIDI files to and from CSV")
2485 (description
2486 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
2487value file (CSV), which preserves all the information in the MIDI file. The
2488ASCII CSV file may be loaded into a spreadsheet or database application, or
2489processed by a program to transform the MIDI data (for example, to key
2490transpose a composition or extract a track from a multi-track sequence). A
2491CSV file in the format created by midicsv may be converted back into a
2492standard MIDI file with the csvmidi program.")
2493 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
2494 (license license:public-domain)))
49604680
RW
2495
2496(define-public gx-guvnor-lv2
35f909d4
RW
2497 (package
2498 (name "gx-guvnor-lv2")
2499 (version "0.1")
2500 (source (origin
2501 (method url-fetch)
2502 (uri (string-append "https://github.com/brummer10/GxGuvnor.lv2/"
2503 "archive/v" version ".tar.gz"))
2504 (file-name (string-append name "-" version ".tar.gz"))
2505 (sha256
2506 (base32
2507 "0rnfvrvs8qmmldyfmx4llyly33zp68448gx40ywdwj42x0mam92p"))))
2508 (build-system gnu-build-system)
2509 (arguments
2510 `(;; The check target is used only to output a warning.
2511 #:tests? #f
2512 #:make-flags
2513 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
2514 #:phases
2515 (modify-phases %standard-phases
2516 (replace 'configure
2517 (lambda _
2518 (substitute* "Makefile"
2519 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n"))
2520 #t)))))
2521 (inputs
2522 `(("lv2" ,lv2)))
2523 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
2524 (synopsis "Overdrive/distortion pedal simulation")
2525 (description "This package provides the LV2 plugin \"GxGuvnor\", a
49604680 2526simulation of an overdrive or distortion pedal for guitars.")
35f909d4
RW
2527 ;; The LICENSE file says GPLv3 but the license headers in the files say
2528 ;; GPLv2 or later.
2529 (license license:gpl2+)))
85ae347e
RW
2530
2531(define-public gx-vbass-preamp-lv2
2532 (let ((commit "0e599abab10c7669dd444e5d06f671c2fc1b9c6c")
2533 (revision "1"))
2534 (package (inherit gx-guvnor-lv2)
2535 (name "gx-vbass-preamp-lv2")
2536 (version (string-append "0-" revision "." (string-take commit 9)))
2537 (source (origin
2538 (method git-fetch)
2539 (uri (git-reference
2540 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
2541 (commit commit)))
2542 (sha256
2543 (base32
2544 "1dzksdfrva666gpi62fd2ni9rhf18sl917f1894qr0b17pbdh9k1"))
2545 (file-name (string-append name "-" version "-checkout"))))
ad67ca3d
RW
2546 (arguments
2547 (substitute-keyword-arguments (package-arguments gx-guvnor-lv2)
2548 ((#:phases phases)
2549 `(modify-phases ,phases
2550 (replace 'configure
2551 (lambda _
2552 (substitute* "Makefile"
2553 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
2554 (("install : all") "install :"))
2555 #t))))))
85ae347e
RW
2556 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
2557 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
2558 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
2559pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
2560Section."))))
cdc7a021
RW
2561
2562(define-public gx-overdriver-lv2
2563 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
2564 (revision "1"))
ad67ca3d 2565 (package (inherit gx-vbass-preamp-lv2)
cdc7a021
RW
2566 (name "gx-overdriver-lv2")
2567 (version (string-append "0-" revision "." (string-take commit 9)))
2568 (source (origin
2569 (method git-fetch)
2570 (uri (git-reference
2571 (url "https://github.com/brummer10/GxOverDriver.lv2")
2572 (commit commit)))
2573 (sha256
2574 (base32
2575 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
2576 (file-name (string-append name "-" version "-checkout"))))
2577 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
2578 (synopsis "Overdrive effect with level and tone control")
2579 (description "This package provides the LV2 plugin \"GxOverDriver\", an
2580overdrive effect."))))
4d95cd30
RW
2581
2582(define-public gx-tone-mender-lv2
2583 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
2584 (revision "1"))
ad67ca3d 2585 (package (inherit gx-vbass-preamp-lv2)
4d95cd30
RW
2586 (name "gx-tone-mender-lv2")
2587 (version (string-append "0-" revision "." (string-take commit 9)))
2588 (source (origin
2589 (method git-fetch)
2590 (uri (git-reference
2591 (url "https://github.com/brummer10/GxToneMender.lv2")
2592 (commit commit)))
2593 (sha256
2594 (base32
2595 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
2596 (file-name (string-append name "-" version "-checkout"))))
2597 (home-page "https://github.com/brummer10/GxToneMender.lv2")
2598 (synopsis "Clean boost with a 3-knob tonestack")
2599 (description "This package provides the LV2 plugin \"GxToneMender\", a
2600clean boost effect with a 3-knob tonestack."))))
4d4bfdc2
RW
2601
2602(define-public gx-push-pull-lv2
2603 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
2604 (revision "1"))
ad67ca3d 2605 (package (inherit gx-vbass-preamp-lv2)
4d4bfdc2
RW
2606 (name "gx-push-pull-lv2")
2607 (version (string-append "0-" revision "." (string-take commit 9)))
2608 (source (origin
2609 (method git-fetch)
2610 (uri (git-reference
2611 (url "https://github.com/brummer10/GxPushPull.lv2")
2612 (commit commit)))
2613 (sha256
2614 (base32
2615 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
2616 (file-name (string-append name "-" version "-checkout"))))
2617 (home-page "https://github.com/brummer10/GxPushPull.lv2")
2618 (synopsis "Octave up push pull transistor fuzz simulation")
2619 (description "This package provides the LV2 plugin \"GxPushPull\", a
2620simulation of a push pull transistor fuzz effect with added high octave."))))
3eb1a964
RW
2621
2622(define-public gx-suppa-tone-bender-lv2
f959991d
RW
2623 (package (inherit gx-guvnor-lv2)
2624 (name "gx-suppa-tone-bender-lv2")
2625 (version "0.1")
2626 (source (origin
2627 (method url-fetch)
2628 (uri (string-append "https://github.com/brummer10/"
2629 "GxSuppaToneBender.lv2/archive/v"
2630 version ".tar.gz"))
2631 (sha256
2632 (base32
2633 "1j90fns87035sfr6bxs4cvqxbyy3pqjhihx1nis8xajn202nl1hx"))
2634 (file-name (string-append name "-" version ".tar.gz"))))
2635 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
2636 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
2637 (description "This package provides the LV2 plugin
3eb1a964 2638\"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
f959991d 2639pedal.")))
664f677f
RW
2640
2641(define-public gx-saturator-lv2
31de5e22
RW
2642 (let ((commit "0b581ac85c515325b9f16e51937cae6e1bf81a0a")
2643 (revision "2"))
ad67ca3d 2644 (package (inherit gx-vbass-preamp-lv2)
664f677f
RW
2645 (name "gx-saturator-lv2")
2646 (version (string-append "0-" revision "." (string-take commit 9)))
2647 (source (origin
2648 (method git-fetch)
2649 (uri (git-reference
2650 (url "https://github.com/brummer10/GxSaturator.lv2")
2651 (commit commit)))
2652 (sha256
2653 (base32
31de5e22 2654 "1cl785pzq8zk55m1rnhfd6qsabci6kpf4pf002gwr91vagyq246z"))
664f677f
RW
2655 (file-name (string-append name "-" version "-checkout"))))
2656 (home-page "https://github.com/brummer10/GxSaturator.lv2")
2657 (synopsis "Saturation effect")
2658 (description "This package provides the LV2 plugin \"GxSaturator\", a
2659saturation effect."))))
89412238
RW
2660
2661(define-public gx-hyperion-lv2
4396e9b5
RW
2662 (package (inherit gx-guvnor-lv2)
2663 (name "gx-hyperion-lv2")
2664 (version "0.1")
2665 (source (origin
2666 (method url-fetch)
2667 (uri (string-append "https://github.com/brummer10/"
2668 "GxHyperion.lv2/archive/v"
2669 version ".tar.gz"))
2670 (sha256
2671 (base32
2672 "1pd7l33a14kq73wavgqq7csw4n3mwjz9d5rxaj0jgsyxd3llp3wh"))
2673 (file-name (string-append name "-" version ".tar.gz"))))
2674 (home-page "https://github.com/brummer10/GxHyperion.lv2")
2675 (synopsis "Simulation of the Hyperion Fuzz pedal")
2676 (description "This package provides the LV2 plugin \"GxHyperion\", a
2677simulation of the Hyperion Fuzz pedal.")))
32536f00
RW
2678
2679(define-public gx-voodoo-fuzz-lv2
cf44ebeb
RW
2680 (package (inherit gx-guvnor-lv2)
2681 (name "gx-voodoo-fuzz-lv2")
2682 (version "0.1")
2683 (source (origin
2684 (method url-fetch)
2685 (uri (string-append "https://github.com/brummer10/"
2686 "GxVoodoFuzz.lv2/archive/v"
2687 version ".tar.gz"))
2688 (sha256
2689 (base32
2690 "0cc8sg7q493bs6pcq4ipqp6czpxv04nh9yvn8kq2x65ni2208n2f"))
2691 (file-name (string-append name "-" version ".tar.gz"))))
2692 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
2693 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
2694 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
32536f00
RW
2695simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
2696Bosstone circuit, followed by the tone control of the FoxToneMachine in
cf44ebeb 2697parallel with a DarkBooster, followed by a volume control.")))
29f63222
RW
2698
2699(define-public gx-super-fuzz-lv2
34a3ecfe
RW
2700 (package (inherit gx-guvnor-lv2)
2701 (name "gx-super-fuzz-lv2")
2702 (version "0.1")
2703 (source (origin
2704 (method url-fetch)
2705 (uri (string-append "https://github.com/brummer10/"
2706 "GxSuperFuzz.lv2/archive/v"
2707 version ".tar.gz"))
2708 (sha256
2709 (base32
2710 "0pnivq05f1kji8c5jxsqdzhdfk3xn422v2d1x20x3jfsxnaf115x"))
2711 (file-name (string-append name "-" version ".tar.gz"))))
2712 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
2713 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
a6f39d7c 2714 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
29f63222 2715analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
d1e4ad1b 2716pot, which is usually in the housing, is exposed as a control parameter. It
34a3ecfe 2717adjusts the amount of harmonics.")))
40bffdfa
RW
2718
2719(define-public gx-vintage-fuzz-master-lv2
38050923
RW
2720 (package (inherit gx-guvnor-lv2)
2721 (name "gx-vintage-fuzz-master-lv2")
2722 (version "0.1")
2723 (source (origin
2724 (method url-fetch)
2725 (uri (string-append "https://github.com/brummer10/"
2726 "GxVintageFuzzMaster.lv2/archive/v"
2727 version ".tar.gz"))
2728 (sha256
2729 (base32
2730 "0bdkfj6xi2g4izfw3pmr4i0nqzg8jnkdwc23x9ifxwc6p1kbayzk"))
2731 (file-name (string-append name "-" version ".tar.gz"))))
2732 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
2733 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
2734 (description "This package provides the LV2 plugin
2735\"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
631f8175
RW
2736
2737(define-public gx-slow-gear-lv2
8e6f6503
RW
2738 (let ((commit "cb852e0426f4e6fe077e7f1ede73a4da335cfc5e")
2739 (revision "2"))
ad67ca3d 2740 (package (inherit gx-vbass-preamp-lv2)
631f8175
RW
2741 (name "gx-slow-gear-lv2")
2742 (version (string-append "0-" revision "." (string-take commit 9)))
2743 (source (origin
2744 (method git-fetch)
2745 (uri (git-reference
2746 (url "https://github.com/brummer10/GxSlowGear.lv2")
2747 (commit commit)))
2748 (sha256
2749 (base32
8e6f6503 2750 "0dp7afi1r3kzciiyn1hrkz6arsq47ys9sx5g4b7xa9k1dv92ishp"))
631f8175
RW
2751 (file-name (string-append name "-" version "-checkout"))))
2752 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
2753 (synopsis "Slow gear audio effect")
2754 (description "This package provides the LV2 plugin \"GxSlowGear\", a
2755slow gear audio effect to produce volume swells."))))
d75e8f5a
RW
2756
2757(define-public gx-switchless-wah-lv2
cfcef2c2
RW
2758 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
2759 (revision "2"))
ad67ca3d 2760 (package (inherit gx-vbass-preamp-lv2)
d75e8f5a
RW
2761 (name "gx-switchless-wah-lv2")
2762 (version (string-append "0-" revision "." (string-take commit 9)))
2763 (source (origin
2764 (method git-fetch)
2765 (uri (git-reference
2766 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
2767 (commit commit)))
2768 (sha256
2769 (base32
cfcef2c2 2770 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
d75e8f5a
RW
2771 (file-name (string-append name "-" version "-checkout"))))
2772 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
2773 (synopsis "Wah emulation with switchless activation")
2774 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
2775a simulation of an analog Wah pedal with switchless activation."))))
84d53724
RW
2776
2777(define-public mod-utilities
2778 (let ((commit "7cdeeac26ae682730740105ece121d4dddb8ba3f")
2779 (revision "1"))
2780 (package
2781 (name "mod-utilities")
2782 (version (string-append "0-" revision "." (string-take commit 9)))
2783 (source (origin
2784 (method git-fetch)
2785 (uri (git-reference
2786 (url "https://github.com/moddevices/mod-utilities.git")
2787 (commit commit)))
2788 (sha256
2789 (base32
2790 "1ilnkbrmwrszxvc21qlb86h29yz7cnc6rcp0jmna1y693ny2qhf4"))
2791 (file-name (string-append name "-" version "-checkout"))))
2792 (build-system gnu-build-system)
2793 (arguments
2794 `(#:tests? #f ; there are no tests
2795 #:make-flags
2796 (list (string-append "INSTALL_PATH="
2797 (assoc-ref %outputs "out")
2798 "/lib/lv2"))
2799 #:phases
2800 (modify-phases %standard-phases
2801 (delete 'configure))))
2802 (inputs
2803 `(("lv2" ,lv2)))
2804 (home-page "https://github.com/moddevices/mod-utilities")
2805 (synopsis "LV2 utility plugins")
2806 (description "This package provides LV2 audio utility plugins, such as
2807filters, crossovers, simple gain plugins without zipper noise, switch box
2808plugins, a switch trigger, a toggle switch, and a peakmeter.")
2809 (license license:gpl2+))))
d3db5efb 2810
951581a2 2811(define-public ingen
19748414
RW
2812 (let ((commit "cc4a4db33f4d126a07a4a498e053c5fb9a883be3")
2813 (revision "2"))
951581a2
RW
2814 (package
2815 (name "ingen")
2816 (version (string-append "0.0.0-" revision "."
2817 (string-take commit 9)))
2818 (source
2819 (origin
2820 (method git-fetch)
2821 (uri (git-reference
2822 (url "http://git.drobilla.net/ingen.git")
2823 (commit commit)))
2824 (file-name (string-append name "-" version "-checkout"))
2825 (sha256
2826 (base32
19748414 2827 "1wg47vjw9djn99gbnsl2bcwj4xhdid61m4wrbn2nlp797flj91ic"))))
951581a2
RW
2828 (build-system waf-build-system)
2829 (arguments
2830 `(#:tests? #f ; no "check" target
2831 #:configure-flags (list "--no-webkit")
2832 #:phases
2833 (modify-phases %standard-phases
2834 (add-after 'unpack 'patch-wscript
2835 (lambda* (#:key outputs #:allow-other-keys)
2836 (let ((out (assoc-ref outputs "out")))
2837 (substitute* "wscript"
2838 ;; FIXME: Our version of lv2specgen.py does not behave as
2839 ;; expected. Maybe this requires a development version of
2840 ;; LV2.
2841 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
2842 ;; Add libraries to RUNPATH.
2843 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
2844 (string-append prefix
2845 "linkflags=[\"-Wl,-rpath="
2846 out "/lib" "\"]," line)))
2847 (substitute* '("src/wscript"
2848 "src/server/wscript")
2849 ;; Add libraries to RUNPATH.
2850 (("bld.env.PTHREAD_LINKFLAGS" line)
2851 (string-append line
2852 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
2853 (substitute* "src/client/wscript"
2854 ;; Add libraries to RUNPATH.
2855 (("^(.+)target.*= 'ingen_client'," line prefix)
2856 (string-append prefix
2857 "linkflags=[\"-Wl,-rpath="
2858 out "/lib" "\"]," line)))
2859 (substitute* "src/gui/wscript"
2860 ;; Add libraries to RUNPATH.
2861 (("^(.+)target.* = 'ingen_gui.*" line prefix)
2862 (string-append prefix
2863 "linkflags=[\"-Wl,-rpath="
2864 out "/lib" "\"]," line))))
2865 #t)))))
2866 (inputs
2867 `(("boost" ,boost)
2868 ("python-rdflib" ,python-rdflib)
2869 ("python" ,python)
2870 ("jack" ,jack-1)
19748414 2871 ("lv2" ,lv2-devel)
951581a2
RW
2872 ("lilv" ,lilv)
2873 ("raul" ,raul-devel)
2874 ("ganv" ,ganv-devel)
2875 ("suil" ,suil)
2876 ("serd" ,serd)
2877 ("sord" ,sord)
2878 ("sratom" ,sratom)
2879 ("gtkmm" ,gtkmm-2)))
2880 (native-inputs
2881 `(("pkg-config" ,pkg-config)
2882 ("python-pygments" ,python-pygments)))
2883 (home-page "http://drobilla.net/software/ingen")
2884 (synopsis "Modular audio processing system")
2885 (description "Ingen is a modular audio processing system for JACK and
2886LV2 based systems. Ingen is built around LV2 technology and a strict
2887separation of engine from user interface. The engine is controlled
2888exclusively through a protocol, and can execute as a headless process, with an
2889in-process GUI, or as an LV2 plugin. The GUI can run as a program which
2890communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
2891communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
2892plugin on any system where Ingen is installed. This allows users to visually
2893develop custom plugins for use in other applications without programming.")
2894 (license license:agpl3+))))
2895
b3410b44
RW
2896(define-public qmidiarp
2897 (package
2898 (name "qmidiarp")
2899 (version "0.6.4")
2900 (source (origin
2901 (method url-fetch)
2902 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
2903 version "/qmidiarp-" version ".tar.bz2"))
2904 (sha256
2905 (base32
2906 "1gkfv8ajgf86kbn6j5ilfc1zlz17gdi9yxzywqd6jwff4xlm75hx"))))
2907 (build-system gnu-build-system)
2908 (arguments
2909 `(#:configure-flags
2910 (list "--enable-qt5"
2911 "CXXFLAGS=-std=gnu++11")))
2912 (inputs
2913 `(("qtbase" ,qtbase)
2914 ("alsa-lib" ,alsa-lib)
2915 ("jack" ,jack-1)
2916 ("liblo" ,liblo)
2917 ("lv2" ,lv2)))
2918 (native-inputs
2919 `(("pkg-config" ,pkg-config)
2920 ("qttools" ,qttools)))
2921 (home-page "http://qmidiarp.sourceforge.net/")
2922 (synopsis "MIDI arpeggiator")
2923 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
2924sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
2925modules running in parallel.")
2926 (license license:gpl2+)))
2927
ff49437d
RW
2928(define-public qmidiroute
2929 (package
2930 (name "qmidiroute")
2931 (version "0.4.0")
2932 (source (origin
2933 (method url-fetch)
2934 (uri (string-append "mirror://sourceforge/alsamodular/QMidiRoute/"
2935 version "/qmidiroute-" version ".tar.bz2"))
2936 (sha256
2937 (base32
2938 "19v1ppbglgl3z9v7xdqc0k33w71cqq8a7d6ihvfs7iz77dygrih9"))))
2939 (build-system gnu-build-system)
2940 (arguments
2941 `(#:configure-flags
2942 (list "--enable-qt5"
2943 "CXXFLAGS=-std=gnu++11")))
2944 (inputs
2945 `(("qtbase" ,qtbase)
2946 ("alsa-lib" ,alsa-lib)))
2947 (native-inputs
2948 `(("pkg-config" ,pkg-config)
2949 ("qttools" ,qttools)))
2950 (home-page "http://alsamodular.sourceforge.net/")
2951 (synopsis "MIDI event router and filter")
2952 (description "QMidiRoute is a MIDI event router and filter. MIDI note,
2953control change, program change and pitch bend events are logged, and can be
2954filtered, redirected and transformed into other events according to MIDI maps
2955defined as tabs in the main control surface.")
2956 (license license:gpl2+)))
2957
5a66e25c
RW
2958(define-public seq24
2959 (package
2960 (name "seq24")
2961 (version "0.9.3")
2962 (source (origin
2963 (method url-fetch)
2964 (uri (string-append "https://launchpad.net/seq24/trunk/"
2965 version "/+download/seq24-"
2966 version ".tar.bz2"))
2967 (sha256
2968 (base32
2969 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
2970 (patches (search-patches "seq24-rename-mutex.patch"))))
2971 (build-system gnu-build-system)
2972 (arguments
2973 `(#:configure-flags
2974 (list "CXXFLAGS=-std=gnu++11")))
2975 (inputs
2976 `(("gtkmm" ,gtkmm-2)
2977 ("alsa-lib" ,alsa-lib)
2978 ("jack" ,jack-1)
2979 ("lash" ,lash)))
2980 (native-inputs
2981 `(("pkg-config" ,pkg-config)))
2982 (home-page "https://edge.launchpad.net/seq24/")
2983 (synopsis "Real-time MIDI sequencer")
2984 (description "Seq24 is a real-time MIDI sequencer. It was created to
2985provide a very simple interface for editing and playing MIDI loops.")
2986 (license license:gpl2+)))
2987
d3db5efb
LF
2988(define-public python-discogs-client
2989 (package
2990 (name "python-discogs-client")
2991 (version "2.2.1")
2992 (source (origin
2993 (method url-fetch)
2994 (uri (pypi-uri "discogs-client" version))
2995 (sha256
2996 (base32
2997 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
2998 (build-system python-build-system)
2999 (propagated-inputs
3000 `(("python-oauthlib" ,python-oauthlib)
3001 ("python-requests" ,python-requests)))
3002 (native-inputs
3003 `(("python-six" ,python-six)))
3004 (home-page "https://github.com/discogs/discogs_client")
3005 (synopsis "Official Python client for the Discogs API")
3006 (description "This is the official Discogs API client for Python. It enables
3007you to query the Discogs database for information on artists, releases, labels,
3008users, Marketplace listings, and more. It also supports OAuth 1.0a
3009authorization, which allows you to change user data such as profile information,
3010collections and wantlists, inventory, and orders.")
80983df3 3011 (license license:bsd-2)))
d3db5efb
LF
3012
3013(define-public python2-discogs-client
80983df3 3014 (package-with-python2 python-discogs-client))
a4f05b46 3015
3016(define-public libsmf
3017 (package
3018 (name "libsmf")
3019 (version "1.3")
3020 (source
3021 (origin
3022 (method url-fetch)
3023 ;; SF download page says development moved, but the link it points to
3024 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
3025 ;; it but made no release so far (https://github.com/stump/libsmf).
3026 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
3027 version "/libsmf-" version ".tar.gz"))
3028 (sha256
3029 (base32
3030 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
3031 (build-system gnu-build-system)
3032 (outputs '("out"
3033 "static")) ; 88KiB of .a files
3034 (arguments
3035 `(#:phases
3036 (modify-phases %standard-phases
3037 (add-after 'install 'move-static-libraries
3038 (lambda* (#:key outputs #:allow-other-keys)
3039 ;; Move static libraries to the "static" output.
3040 (let* ((out (assoc-ref outputs "out"))
3041 (lib (string-append out "/lib"))
3042 (static (assoc-ref outputs "static"))
3043 (slib (string-append static "/lib")))
3044 (mkdir-p slib)
3045 (for-each (lambda (file)
3046 (install-file file slib)
3047 (delete-file file))
3048 (find-files lib "\\.a$"))
3049 #t))))))
3050 (inputs
3051 `(("readline" ,readline)
3052 ("glib" ,glib)))
3053 (native-inputs
3054 `(("doxygen" ,doxygen)
3055 ("pkg-config" ,pkg-config)))
3056 (home-page "http://libsmf.sourceforge.net/")
3057 (synopsis "Standard MIDI File format library")
3058 (description
3059 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3060conversions between time and pulses, tempo map handling and more. The only dependencies
3061are a C compiler and glib. Full API documentation and examples are included.")
3062 (license license:bsd-2)))
a42619e5
RF
3063
3064(define-public lmms
3065 (package
3066 (name "lmms")
3067 (version "1.1.3")
3068 (source
3069 (origin
3070 (method url-fetch)
3071 (uri (string-append "https://github.com/LMMS/lmms/archive/v"
3072 version ".tar.gz"))
3073 (file-name (string-append name "-" version ".tar.gz"))
3074 (sha256
3075 (base32
3076 "1g76z7ha3hd53vbqaq9n1qg6s3lw8zzaw51iny6y2bz0j1xqwcsr"))))
3077 (build-system cmake-build-system)
3078 (arguments
3079 `(#:tests? #f ; no tests
3080 #:phases
3081 (modify-phases %standard-phases
3082 (add-before
3083 'configure 'set-ldflags
3084 (lambda* (#:key outputs #:allow-other-keys)
3085 (setenv "LDFLAGS"
3086 (string-append
3087 "-Wl,-rpath=\""
3088 (assoc-ref outputs "out") "/lib/lmms"
3089 ":"
3090 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3091 "\"")))))))
3092 (native-inputs
3093 `(("pkg-config" ,pkg-config)))
3094 (inputs
3095 `(("sdl" ,sdl)
3096 ("qt" ,qt-4)
3097 ("fltk" ,fltk)
3098 ("libogg" ,libogg)
3099 ("libsamplerate" ,libsamplerate)
3100 ("fluidsynth" ,fluidsynth)
3101 ("libvorbis" ,libvorbis)
3102 ("alsa-lib" ,alsa-lib)
3103 ("portaudio" ,portaudio)
3104 ("ladspa" ,ladspa)
3105 ("libsndfile1" ,libsndfile)
3106 ("libxft" ,libxft)
3107 ("freetype2" ,freetype)
3108 ("fftw3f" ,fftwf)))
3109 (home-page "https://lmms.io/")
3110 (synopsis "Music composition tool")
3111 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3112melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3113audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3114 (license license:gpl2+)))
a7a7186c
NG
3115
3116(define-public musescore
3117 (package
3118 (name "musescore")
3119 (version "2.1.0")
3120 (source (origin
3121 (method url-fetch)
3122 (uri (string-append
3123 "https://github.com/musescore/MuseScore/archive/"
3124 "v" version ".tar.gz"))
3125 (file-name (string-append name "-" version ".tar.gz"))
3126 (sha256
3127 (base32
3128 "0irwsq6ihfz3y3b943cwqy29g3si7gqbgxdscgw53vwv9vfvi085"))
3129 (modules '((guix build utils)))
3130 (snippet
3131 ;; Un-bundle OpenSSL and remove unused libraries.
3132 '(begin
3133 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3134 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3135 ""))
3136 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3137 (("#include <openssl/.*") ""))
3138 (for-each delete-file-recursively
3139 '("thirdparty/freetype"
3140 "thirdparty/openssl"
3141 "thirdparty/portmidi"))
3142 #t))))
3143 (build-system gnu-build-system)
3144 (arguments
3145 `(#:make-flags
3146 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
3147 ;; There are tests, but no simple target to run. The command
3148 ;; used to run them is:
3149 ;;
3150 ;; make debug && sudo make installdebug && cd \
3151 ;; build.debug/mtest && make && ctest
3152 ;;
3153 ;; Basically, it requires to start a whole new build process.
3154 ;; So we simply skip them.
3155 #:tests? #f
3156 #:phases
3157 (modify-phases %standard-phases
3158 (delete 'configure)
3159 (add-after 'unpack 'use-system-freetype
3160 (lambda _
3161 ;; XXX: For the time being, we grossly insert the CMake
3162 ;; option needed to ignore bundled freetype. However,
3163 ;; there's a pending PR to have it as a regular make
3164 ;; option, in a future release.
3165 (substitute* "Makefile"
3166 (("cmake -DCMAKE") "cmake -DUSE_SYSTEM_FREETYPE=ON -DCMAKE"))
3167 #t)))))
3168 (inputs
3169 `(("alsa-lib" ,alsa-lib)
3170 ("freetype" ,freetype)
3171 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3172 ("jack" ,jack-1)
3173 ("lame" ,lame)
3174 ("libogg" ,libogg)
3175 ("libsndfile" ,libsndfile)
3176 ("libvorbis" ,libvorbis)
3177 ("portaudio" ,portaudio)
3178 ("pulseaudio" ,pulseaudio)
3179 ("qtbase" ,qtbase)
3180 ("qtdeclarative" ,qtdeclarative)
3181 ("qtscript" ,qtscript)
3182 ("qtsvg" ,qtsvg)
3183 ("qtwebkit" ,qtwebkit)
3184 ("qtxmlpatterns" ,qtxmlpatterns)))
3185 (native-inputs
3186 `(("cmake" ,cmake)
3187 ("pkg-config" ,pkg-config)
3188 ("qttools" ,qttools)))
3189 (synopsis "Music composition and notation software")
3190 (description "MuseScore is a music score typesetter. Its main purpose is
3191the creation of high-quality engraved musical scores in a WYSIWYG environment.
3192
3193It supports unlimited staves, linked parts and part extraction, tablature,
3194MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3195lyrics (multiple verses), fretboard diagrams, and in general everything
3196commonly used in sheet music. Style options and style sheets to change the
3197appearance and layout are provided.
3198
3199MuseScore can also play back scores through the built-in sequencer and SoundFont
3200sample library.")
3201 (home-page "https://musescore.org")
3202 (license license:gpl2)))
2434f5ce
DM
3203
3204(define-public dssi
3205 (package
3206 (name "dssi")
3207 (version "1.1.1")
3208 (source (origin
3209 (method url-fetch)
3210 (uri (string-append
3211 "mirror://sourceforge/dssi/dssi/" version
3212 "/dssi-" version ".tar.gz"))
3213 (sha256
3214 (base32
3215 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3216 (build-system gnu-build-system)
3217 (inputs
3218 `(("alsa-lib" ,alsa-lib)
3219 ("jack-2" ,jack-2)
3220 ("ladspa" ,ladspa)
3221 ("libsamplerate" ,libsamplerate)
3222 ("libsndfile" ,libsndfile)
3223 ("liblo" ,liblo)))
3224 (native-inputs
3225 `(("pkg-config" ,pkg-config)))
3226 (synopsis "Audio plugin API for soft synths and effects")
3227 (description "DSSI is a plugin API for software instruments with user
3228interfaces, permitting them to be hosted in-process by audio applications.
3229It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3230towards familiarity with MIDI. The DSSI distribution package contains
3231a JACK/ALSA-sequencer reference host and some plugins as well as the
3232specification and header.")
3233 (home-page "http://dssi.sourceforge.net/")
3234 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3235 ;; The vast majority of examples are in the public domain.
3236 (license (list license:lgpl2.1+ license:gpl2+))))
9bc38f28
DM
3237
3238(define-public rosegarden
3239 (package
3240 (name "rosegarden")
3241 (version "17.04")
3242 (source (origin
3243 (method url-fetch)
3244 (uri (string-append
3245 "mirror://sourceforge/rosegarden/rosegarden/"
3246 version "/rosegarden-" version ".tar.bz2"))
3247 (sha256
3248 (base32
3249 "1khfcj22asdhjh0jvhkqsz200wgmigkhsrcz09ffia5hqm0n32lq"))))
3250 (build-system cmake-build-system)
3251 (arguments
3252 `(#:configure-flags '("-DUSE_QT5=1") ; "-DCMAKE_BUILD_TYPE=Release"
3253 #:phases
3254 (modify-phases %standard-phases
3255 (add-after 'unpack 'patch-tests
3256 (lambda _
3257 (substitute* "CMakeLists.txt"
3258 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
3259 ;; Make tests work.
3260 ((" -fvisibility=hidden") ""))
3261 #t))
3262 (add-after 'unpack 'fix-references
3263 (lambda* (#:key inputs #:allow-other-keys)
3264 (substitute* "src/gui/general/ProjectPackager.cpp"
3265 (("\"flac\\>")
3266 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
3267 (("\"wavpack\\>")
3268 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
3269 (("\"wvunpack\\>")
3270 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
3271 (("\"bash\\>")
3272 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
3273 (("\"tar\\>")
3274 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
3275 (substitute* "src/gui/general/LilyPondProcessor.cpp"
3276 (("\"convert-ly\\>")
3277 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
3278 (("\"lilypond\\>")
3279 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
3280 #t))
3281 (add-after 'unpack 'make-reproducible
3282 (lambda _
3283 ;; Prevent Last-Modified from being written.
3284 ;; The "*.qm" files that are used in locale.qrc would have a new
3285 ;; mtime otherwise that is written into qrc_locale.cpp in the
3286 ;; end - except when we disable it.
3287 (substitute* "src/CMakeLists.txt"
3288 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
3289 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
3290 ;; Extraneous.
3291 ;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
3292 ; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
3293 )
3294 ;; Make hashtable traversal order predicable.
3295 (setenv "QT_RCC_TEST" "1") ; important
3296 #t))
3297 (add-before 'check 'prepare-check
3298 (lambda _
3299 (setenv "QT_QPA_PLATFORM" "offscreen")
3300 ;; Tests create files in $HOME/.local/share/rosegarden .
3301 (mkdir-p "/tmp/foo")
3302 (setenv "HOME" "/tmp/foo")
3303 #t)))))
3304 (inputs
3305 `(("alsa-lib" ,alsa-lib)
3306 ("bash" ,bash)
3307 ("dssi" ,dssi)
3308 ("flac" ,flac)
3309 ("fftwf" ,fftwf)
3310 ("jack-2" ,jack-2)
3311 ("ladspa" ,ladspa)
3312 ("liblo" ,liblo)
3313 ("libsamplerate" ,libsamplerate)
3314 ("lilypond" ,lilypond)
3315 ("lrdf" ,lrdf)
3316 ("qtbase" ,qtbase)
3317 ("tar" ,tar)
3318 ("lirc" ,lirc)
3319 ("wavpack" ,wavpack)
3320 ("zlib" ,zlib)))
3321 (native-inputs
3322 `(("pkg-config" ,pkg-config)
3323 ("qtlinguist" ,qttools)))
3324 (synopsis "Music composition and editing environment based around a MIDI
3325sequencer")
3326 (description "Rosegarden is a music composition and editing environment
3327based around a MIDI sequencer that features a rich understanding of music
3328notation and includes basic support for digital audio.")
3329 (home-page "http://www.rosegardenmusic.com/")
3330 (license license:gpl2)))
30655652
RW
3331
3332(define-public sorcer
3333 (package
3334 (name "sorcer")
3335 (version "1.1.3")
3336 (source (origin
3337 (method url-fetch)
3338 (uri (string-append "https://github.com/openAVproductions/"
3339 "openAV-Sorcer/archive/release-"
3340 version ".tar.gz"))
3341 (file-name (string-append name "-" version ".tar.gz"))
3342 (sha256
3343 (base32
3344 "07iyqj28wm0xc4arrq893bm12xjpz65db7ynrlmf6w8krg8wjmd0"))))
3345 (build-system cmake-build-system)
3346 (arguments
3347 `(#:tests? #f ; no tests included
3348 #:phases
3349 (modify-phases %standard-phases
e5af1f4a
EF
3350 (add-after 'unpack 'remove-architecture-specific-flags
3351 (lambda _
3352 (substitute* "CMakeLists.txt"
3353 (("-msse2 -mfpmath=sse") ""))
3354 #t))
30655652
RW
3355 (add-after 'unpack 'build-faust-sources
3356 (lambda* (#:key inputs #:allow-other-keys)
3357 (with-directory-excursion "faust"
3358 (delete-file "main.cpp")
3359 (zero? (system* "faust" "-i"
3360 "-a" "lv2synth.cpp"
3361 "-o" "main.cpp" "main.dsp"))))))))
3362 (inputs
3363 `(("boost" ,boost)
3364 ("lv2" ,lv2)
3365 ("ntk" ,ntk)))
3366 (native-inputs
3367 `(("faust" ,faust)
3368 ("pkg-config" ,pkg-config)))
3369 (home-page "http://openavproductions.com/sorcer/")
3370 (synopsis "Wavetable LV2 plugin synth")
3371 (description "Sorcer is a wavetable LV2 plugin synthesizer, targeted at
3372the electronic or dubstep genre.")
3373 (license license:gpl3+)))
60b7ed9c
PL
3374
3375(define-public libechonest
3376 (package
3377 (name "libechonest")
3378 (version "2.3.1")
3379 (source (origin
3380 (method git-fetch)
3381 (uri (git-reference
3382 (url "git://anongit.kde.org/libechonest.git")
3383 (commit version)))
3384 (file-name (string-append name "-" version "-checkout"))
3385 (sha256
3386 (base32
3387 "0xbavf9f355dl1d3qv59x4ryypqrdanh9xdvw2d0q66l008crdkq"))))
3388 (build-system cmake-build-system)
3389 (arguments
3390 '(#:tests? #f ; Tests require Internet access
3391 #:configure-flags '("-DBUILD_WITH_QT4=OFF")))
3392 (inputs
3393 `(("qtbase" ,qtbase)
3394 ("qjson" ,qjson)))
3395 (home-page "https://projects.kde.org/projects/playground/libs/libechonest")
3396 (synopsis "C++/Qt classes to interface with The Echo Nest API")
3397 (description "@code{libechonest} is a collection of C++/Qt classes
3398designed to make a developer's life easy when trying to use the APIs provided
3399by The Echo Nest.")
3400 (license license:gpl2+)))