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