gnu: Add noise-repellent.
[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 2110
13edf1b9
RW
2111(define-public aj-snapshot
2112 (package
2113 (name "aj-snapshot")
2114 (version "0.9.7")
2115 (source (origin
2116 (method url-fetch)
2117 (uri (string-append "mirror://sourceforge/aj-snapshot/"
2118 "aj-snapshot-" version ".tar.bz2"))
2119 (sha256
2120 (base32
2121 "0yxccgp9qw2cyqv719wlbq8wfsr5ga8czvwa7bmb8dh5s11n3rn8"))))
2122 (build-system gnu-build-system)
2123 (inputs
2124 `(("minixml" ,minixml)
2125 ("jack" ,jack-1)
2126 ("alsa-lib" ,alsa-lib)))
2127 (native-inputs
2128 `(("pkg-config" ,pkg-config)))
2129 (home-page "http://aj-snapshot.sourceforge.net/")
2130 (synopsis "Snapshot connections between ALSA and JACK clients")
2131 (description "Aj-snapshot is a small program that can be used to make
2132snapshots of the connections made between JACK and/or ALSA clients. Because
2133JACK can provide both audio and MIDI support to programs, aj-snapshot can
2134store both types of connections for JACK. ALSA, on the other hand, only
2135provides routing facilities for MIDI clients. Aj-snapshot is meant to be used
2136from the command line.")
2137 (license license:gpl3+)))
2138
a763ce7d
RW
2139(define-public qtractor
2140 (package
2141 (name "qtractor")
bb6693b8 2142 (version "0.8.5")
a763ce7d
RW
2143 (source (origin
2144 (method url-fetch)
2145 (uri (string-append "http://downloads.sourceforge.net/qtractor/"
2146 "qtractor-" version ".tar.gz"))
2147 (sha256
2148 (base32
bb6693b8 2149 "0anhsd3gg8cxbf31mn2mimf19ycbbxqvd7ldizk93yq2zfbzzqqa"))))
a763ce7d
RW
2150 (build-system gnu-build-system)
2151 (arguments `(#:tests? #f)) ; no "check" target
2152 (inputs
523544d3
RW
2153 `(("qt" ,qtbase)
2154 ("qtx11extras" ,qtx11extras)
a763ce7d
RW
2155 ("alsa-lib" ,alsa-lib)
2156 ("jack" ,jack-1)
2157 ("libsndfile" ,libsndfile)
2158 ("ladspa" ,ladspa)
2159 ("lv2" ,lv2)
2160 ("lilv" ,lilv)
2161 ("suil" ,suil)
2162 ("libsamplerate" ,libsamplerate)
2163 ("libvorbis" ,libvorbis)
2164 ("libmad" ,libmad)
2165 ("rubberband" ,rubberband)
2166 ("liblo" ,liblo)
2167 ("zlib" ,zlib)))
2168 (native-inputs
523544d3
RW
2169 `(("pkg-config" ,pkg-config)
2170 ("qttools" ,qttools)))
8071bbbc 2171 (home-page "http://qtractor.org/")
a763ce7d
RW
2172 (synopsis "Audio/MIDI multi-track sequencer")
2173 (description
2174 "Qtractor is an Audio/MIDI multi-track sequencer application. It uses
2175JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and
2176follows a traditional multi-track tape recorder control paradigm.")
2177 (license license:gpl2+)))
aa0edd3f 2178
849c3d03
RW
2179(define-public ams-lv2
2180 (package
2181 (name "ams-lv2")
f0c5856d 2182 (version "1.2.1")
849c3d03
RW
2183 (source
2184 (origin
2185 (method url-fetch)
2186 (uri (string-append "https://github.com/blablack/ams-lv2/"
2187 "archive/" version ".tar.gz"))
2188 (file-name (string-append name "-" version ".tar.gz"))
2189 (sha256
2190 (base32
f0c5856d 2191 "1xacxyzqcj83g9c1gwfn36gg1c6yi15v7km4vidfidrjzb4x27fq"))))
849c3d03 2192 (build-system waf-build-system)
8a3ce2c7
EF
2193 (arguments
2194 `(#:phases
2195 (modify-phases %standard-phases
2196 (add-after 'unpack 'remove-sse-flags
2197 (lambda* (#:key system #:allow-other-keys)
2198 (when (not (or (string-prefix? "x86_64" system)
2199 (string-prefix? "i686" system)))
2200 (substitute* "wscript"
2201 (("'-msse', '-mfpmath=sse', ") ""))
2202 #t))))
2203 #:tests? #f)) ; no tests
849c3d03
RW
2204 (inputs
2205 `(("lv2" ,lv2)
2206 ("lvtk" ,lvtk)
2207 ("gtkmm" ,gtkmm-2)
2208 ("gtk" ,gtk+-2)
2209 ("cairo" ,cairo)
2210 ("fftw" ,fftw)))
2211 (native-inputs
2212 `(("pkg-config" ,pkg-config)))
2213 (home-page "https://objectivewave.wordpress.com/ams-lv2/")
2214 (synopsis "Port of Alsa Modular Synth internal modules into LV2")
2215 (description "This set of LV2 plugins is a port of the internal modules
2216found in Alsa Modular Synth. These plugins are used to create modular
2217synthesizers and contain: VCO, VCF, VCA, LFO, slew limiter, envelopes, sample
2218and hold, etc.")
2219 (license license:gpl2)))
2220
aed023ff
RW
2221(define-public gxtuner
2222 (package
2223 (name "gxtuner")
f5e0ff0f 2224 (version "2.4")
aed023ff
RW
2225 (source (origin
2226 (method url-fetch)
2227 (uri (string-append "https://github.com/brummer10/gxtuner/"
2228 "archive/v" version ".tar.gz"))
2229 (file-name (string-append name "-" version ".tar.gz"))
2230 (sha256
2231 (base32
f5e0ff0f 2232 "1hn5qjac7qd00v0sp7ijhhc3sb26ks9bni06nngivva21h61xrjr"))))
aed023ff
RW
2233 (build-system gnu-build-system)
2234 (arguments
2235 `(#:make-flags
2236 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2237 (string-append "INCLUDE_L_DIR="
2238 (assoc-ref %build-inputs "zita-resampler")
2239 "/include/"))
2240 #:phases
2241 (modify-phases %standard-phases
2242 (delete 'configure))))
2243 (inputs
f5e0ff0f 2244 `(("gtk+" ,gtk+)
aed023ff
RW
2245 ("jack" ,jack-1)
2246 ("fftwf" ,fftwf)
2247 ("cairo" ,cairo)
2248 ("zita-resampler" ,zita-resampler)))
2249 (native-inputs
2250 `(("pkg-config" ,pkg-config)))
2251 (home-page "https://github.com/brummer10/gxtuner")
2252 (synopsis "Guitar tuner")
2253 (description "GXtuner is a simple guitar tuner for JACK with an
2254analogue-like user interface.")
2255 (license license:gpl2+)))
2256
c2c9e748
RW
2257(define-public mod-host
2258 ;; The last release was in 2014 but since then more than 140 commits have
2259 ;; been made.
82bf45c8
RW
2260 (let ((commit "299a3977476e8eb0285837fbd7522cec506a11de")
2261 (revision "2"))
c2c9e748
RW
2262 (package
2263 (name "mod-host")
2264 (version (string-append "0.10.6-" revision "." (string-take commit 9)))
2265 (source (origin
2266 (method git-fetch)
2267 (uri (git-reference
2268 (url "https://github.com/moddevices/mod-host")
2269 (commit commit)))
2270 (sha256
2271 (base32
82bf45c8 2272 "128q7p5mph086v954rqnafalfbkyvhgwclaq6ks6swrhj45wnag6"))
c2c9e748
RW
2273 (file-name (string-append name "-" version "-checkout"))))
2274 (build-system gnu-build-system)
2275 (arguments
2276 `(#:tests? #f ; no tests included
2277 #:make-flags
2278 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2279 "CC=gcc")
2280 #:phases
2281 (modify-phases %standard-phases
2282 (delete 'configure)
2283 (add-after 'unpack 'fix-jack-installation-directory
2284 (lambda _
2285 ;; Do not attempt to install files to output of "jack" package.
2286 (substitute* "Makefile"
2287 (("\\$\\(shell pkg-config --variable=libdir jack\\)")
2288 "lib"))
2289 #t)))))
2290 (inputs
2291 `(("lilv" ,lilv)
c96cb01a
DC
2292 ("fftw" ,fftw)
2293 ("fftwf" ,fftwf)
c2c9e748
RW
2294 ("lv2" ,lv2)
2295 ("jack" ,jack-1)
2296 ("readline" ,readline)))
2297 (native-inputs
2298 `(("pkg-config" ,pkg-config)
2299 ("python" ,python-2)))
2300 (home-page "https://github.com/moddevices/mod-host")
2301 (synopsis "LV2 host for Jack controllable via socket or command line")
2302 (description "mod-host is an LV2 plugin host for JACK, controllable via
2303socket or command line.")
2304 (license license:gpl3+))))
2305
aa0edd3f
AM
2306(define-public pianobar
2307 (package
2308 (name "pianobar")
3999b664 2309 (version "2016.06.02")
aa0edd3f
AM
2310 (source (origin
2311 (method url-fetch)
2312 (uri (string-append "https://github.com/PromyLOPh/"
2313 name "/archive/" version ".tar.gz"))
2314 (file-name (string-append name "-" version ".tar.gz"))
2315 (sha256
2316 (base32
3999b664 2317 "1hi5rr6jcr0kwf4xfz007ndwkjkp287lhwlsgfz6iryqa5n6jzcp"))))
aa0edd3f
AM
2318 (build-system gnu-build-system)
2319 (arguments
2320 `(#:tests? #f ; no tests
2321 #:make-flags (list "CC=gcc" "CFLAGS=-std=c99"
2322 (string-append "PREFIX=" %output))
2323 #:phases (modify-phases %standard-phases
2324 (delete 'configure))))
2325 (inputs
2326 `(("ao" ,ao)
2327 ("curl" ,curl)
2328 ("libgcrypt" ,libgcrypt)
2329 ("json-c" ,json-c)
2330 ("ffmpeg" ,ffmpeg)))
2331 (native-inputs
2332 `(("pkg-config" ,pkg-config)))
2333 (home-page "http://6xq.net/projects/pianobar/")
2334 (synopsis "Console-based pandora.com player")
2335 (description "pianobar is a console-based music player for the
2336personalized online radio pandora.com. It has configurable keys for playing
2337and managing stations, can be controlled remotely via fifo, and can run
2338event-based scripts for scrobbling, notifications, etc.")
2339 (license license:expat)))
3f7a182d
LF
2340
2341(define-public python-mutagen
2342 (package
2343 (name "python-mutagen")
e39aae4f 2344 (version "1.38")
3f7a182d
LF
2345 (source (origin
2346 (method url-fetch)
2347 (uri (pypi-uri "mutagen" version))
2348 (sha256
2349 (base32
e39aae4f 2350 "0rl7sxn1rcjl48fwga3dqf9f6pzspsny4ngxyf6pp337mrq0z693"))))
3f7a182d 2351 (build-system python-build-system)
4228a79e
LF
2352 (native-inputs
2353 `(("python-pytest" ,python-pytest)))
3f7a182d
LF
2354 (home-page "https://bitbucket.org/lazka/mutagen")
2355 (synopsis "Read and write audio tags")
2356 (description "Mutagen is a Python module to handle audio metadata. It
2357supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg
2358Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions
2359of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read
2360Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and
2361APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg
2362streams on an individual packet/page level.")
2363 (license license:gpl2))) ; "later version" never mentioned
2364
2365(define-public python2-mutagen
2366 (package-with-python2 python-mutagen))
8975de88
LF
2367
2368(define-public python-musicbrainzngs
2369 (package
2370 (name "python-musicbrainzngs")
daedf34d 2371 (version "0.6")
8975de88
LF
2372 (source (origin
2373 (method url-fetch)
2374 (uri (pypi-uri "musicbrainzngs" version))
2375 (sha256
2376 (base32
daedf34d 2377 "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8"))))
8975de88 2378 (build-system python-build-system)
daedf34d
LF
2379 (arguments
2380 '(;; The tests fail suffer from race conditions:
2381 ;; https://github.com/alastair/python-musicbrainzngs/issues/211
2382 #:tests? #f))
8975de88
LF
2383 (home-page "https://python-musicbrainzngs.readthedocs.org/")
2384 (synopsis "Python bindings for MusicBrainz NGS webservice")
2385 (description "Musicbrainzngs implements Python bindings of the MusicBrainz
2386web service. This library can be used to retrieve music metadata from the
2387MusicBrainz database.")
2388 ;; 'musicbrainzngs/compat.py' is ISC licensed.
2389 (license (list license:bsd-2 license:isc))))
2390
2391(define-public python2-musicbrainzngs
2392 (package-with-python2 python-musicbrainzngs))
e8fee648 2393
a2eab422 2394(define-public python2-pyechonest
e8fee648 2395 (package
a2eab422 2396 (name "python2-pyechonest")
e8fee648
LF
2397 (version "9.0.0")
2398 (source (origin
2399 (method url-fetch)
2400 (uri (pypi-uri "pyechonest" version))
2401 (sha256
2402 (base32
2403 "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x"))))
2404 (build-system python-build-system)
a2eab422
LF
2405 (arguments
2406 `(;; Python 3 is not supported:
2407 ;; https://github.com/echonest/pyechonest/issues/42
2408 #:python ,python-2))
e8fee648
LF
2409 (home-page "https://github.com/echonest/pyechonest")
2410 (synopsis "Python interface to The Echo Nest APIs")
d3e3468f
LF
2411 (description "Pyechonest is a Python library for the Echo Nest API. With
2412Pyechonest you have Python access to the entire set of API methods including:
e8fee648
LF
2413
2414@enumerate
2415@item artist - search for artists by name, description, or attribute, and get
2416back detailed information about any artist including audio, similar artists,
2417blogs, familiarity, hotttnesss, news, reviews, urls and video.
2418@item song - search songs by artist, title, description, or attribute (tempo,
2419duration, etc) and get detailed information back about each song, such as
2420hotttnesss, audio_summary, or tracks.
2421@item track - upload a track to the Echo Nest and receive summary information
2422about the track including key, duration, mode, tempo, time signature along with
2423detailed track info including timbre, pitch, rhythm and loudness information.
2424@end enumerate\n")
a2eab422 2425 (license license:bsd-3)))
acd7351f
LF
2426
2427(define-public python-pylast
2428 (package
2429 (name "python-pylast")
653f2b92 2430 (version "2.0.0")
acd7351f
LF
2431 (source (origin
2432 (method url-fetch)
2433 (uri (pypi-uri "pylast" version))
2434 (sha256
2435 (base32
653f2b92 2436 "0r9h7g8i8l2mgqjwkda3v6prfbkb2im5kap1az9ppmhjm9i4jkcf"))))
acd7351f 2437 (build-system python-build-system)
653f2b92
RW
2438 ;; Tests require network access. See
2439 ;; https://github.com/pylast/pylast/issues/105
2440 (arguments '(#:tests? #f))
acd7351f
LF
2441 (native-inputs
2442 `(("python-coverage" ,python-coverage)
653f2b92 2443 ("python-pycodestyle" ,python-pycodestyle)
acd7351f
LF
2444 ("python-mock" ,python-mock)
2445 ("python-pep8" ,python-pep8)
2446 ("python-pytest" ,python-pytest)
653f2b92 2447 ("python-flaky" ,python-flaky)
acd7351f
LF
2448 ("python-pyflakes" ,python-pyflakes)
2449 ("python-pyyaml" ,python-pyyaml)))
2450 (propagated-inputs
2451 `(("python-six" ,python-six)))
2452 (home-page "https://github.com/pylast/pylast")
2453 (synopsis "Python interface to Last.fm and Libre.fm")
2454 (description "A Python interface to Last.fm and other API-compatible
2455websites such as Libre.fm.")
5c31f4aa 2456 (license license:asl2.0)))
acd7351f
LF
2457
2458(define-public python2-pylast
5c31f4aa 2459 (package-with-python2 python-pylast))
3bf429af
LF
2460
2461(define-public beets
2462 (package
2463 (name "beets")
f277dea2 2464 (version "1.4.5")
3bf429af
LF
2465 (source (origin
2466 (method url-fetch)
23319ed6 2467 (uri (pypi-uri "beets" version))
3bf429af
LF
2468 (sha256
2469 (base32
f277dea2 2470 "1z02j871gc8l9mnd344qy9z8akigikgmc22r15ns6driqb2qishv"))))
3bf429af
LF
2471 (build-system python-build-system)
2472 (arguments
0d48ff81 2473 `(#:phases
3bf429af
LF
2474 (modify-phases %standard-phases
2475 (add-after 'unpack 'set-HOME
36c2c8c8
LF
2476 (lambda _ (setenv "HOME" (string-append (getcwd) "/tmp"))))
2477 (replace 'check
2478 (lambda _ (zero? (system* "nosetests" "-v")))))))
3bf429af 2479 (native-inputs
0d48ff81
LF
2480 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2481 ("python-flask" ,python-flask)
2482 ("python-mock" ,python-mock)
2483 ("python-mpd2" ,python-mpd2)
2484 ("python-nose" ,python-nose)
2485 ("python-pathlib" ,python-pathlib)
2486 ("python-pyxdg" ,python-pyxdg)
2487 ("python-pylast" ,python-pylast)
2488 ("python-rarfile" ,python-rarfile)
2489 ("python-responses" ,python-responses)))
3bf429af 2490 ;; TODO: Install optional plugins and dependencies.
b3470031 2491 (inputs
0d48ff81 2492 `(("python-discogs-client" ,python-discogs-client)
0d48ff81
LF
2493 ("python-jellyfish" ,python-jellyfish)
2494 ("python-munkres" ,python-munkres)
2495 ("python-musicbrainzngs" ,python-musicbrainzngs)
2496 ("python-mutagen" ,python-mutagen)
2497 ("python-pyyaml" ,python-pyyaml)
2498 ("python-unidecode" ,python-unidecode)))
3bf429af
LF
2499 (home-page "http://beets.io")
2500 (synopsis "Music organizer")
2501 (description "The purpose of beets is to get your music collection right
2502once and for all. It catalogs your collection, automatically improving its
2503metadata as it goes using the MusicBrainz database. Then it provides a variety
2504of tools for manipulating and accessing your music.")
2505 (license license:expat)))
21d18113
KY
2506
2507(define-public milkytracker
2508 (package
2509 (name "milkytracker")
1faf081b 2510 (version "1.01.00")
21d18113
KY
2511 (source (origin
2512 (method url-fetch)
e3b2e943 2513 (uri (string-append "https://github.com/milkytracker/"
1faf081b
KK
2514 "MilkyTracker/archive/v"
2515 version ".tar.gz"))
e3b2e943 2516 (file-name (string-append name "-" version ".tar.gz"))
21d18113
KY
2517 (sha256
2518 (base32
1faf081b 2519 "1dvnddsnn9c83lz4dlm0cfjpc0m524amfkbalxbswdy0qc8cj1wv"))
e3b2e943
KK
2520 (modules '((guix build utils)))
2521 ;; Remove non-FSDG compliant sample songs.
2522 (snippet
2523 '(begin
2524 (delete-file-recursively "resources/music")
2525 (substitute* "CMakeLists.txt"
2526 (("add_subdirectory\\(resources/music\\)") ""))))))
2527 (build-system cmake-build-system)
21d18113 2528 (arguments
e3b2e943 2529 '(#:tests? #f)) ; no check target
21d18113
KY
2530 (inputs
2531 `(("alsa-lib" ,alsa-lib)
2532 ("jack" ,jack-1)
e3b2e943 2533 ("sdl" ,sdl2)
21d18113
KY
2534 ("zlib" ,zlib)))
2535 (native-inputs
2536 `(("pkg-config" ,pkg-config)))
2537 (synopsis "Music tracker for working with .MOD/.XM module files")
2538 (description "MilkyTracker is a music application for creating .MOD and .XM
2539module files. It attempts to recreate the module replay and user experience of
2540the popular DOS program Fasttracker II, with special playback modes available
2541for improved Amiga ProTracker 2/3 compatibility.")
1b35fea1 2542 (home-page "http://milkytracker.titandemo.org/")
21d18113
KY
2543 ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later.
2544 (license (list license:bsd-3 license:gpl3+))))
13416a10 2545
89bcf3fc
KK
2546(define-public schismtracker
2547 (package
2548 (name "schismtracker")
82bdcfe8 2549 (version "20170910")
89bcf3fc
KK
2550 (source (origin
2551 (method url-fetch)
2552 (uri (string-append
2553 "https://github.com/" name "/" name "/archive/"
2554 version ".tar.gz"))
2555 (file-name (string-append name "-" version ".tar.gz"))
2556 (sha256
2557 (base32
82bdcfe8 2558 "01gfcjngbpv87y9w5jln8k313hycpkb1d617hdy2cdw2hxqzlclz"))
89bcf3fc
KK
2559 (modules '((guix build utils)))
2560 (snippet
2561 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2562 `(substitute* "schism/version.c"
9342c5a0 2563 (("Schism Tracker built %s %s.*$")
89bcf3fc
KK
2564 (string-append "Schism Tracker version " ,version "\");"))))))
2565 (build-system gnu-build-system)
2566 (arguments
2567 `(#:phases
2568 (modify-phases %standard-phases
2569 (add-after 'unpack 'autoconf
2570 (lambda _ (zero? (system* "autoreconf" "-vfi"))))
2571 (add-before 'configure 'link-libm
2572 (lambda _ (setenv "LIBS" "-lm") #t)))))
2573 (native-inputs
2574 `(("autoconf" ,autoconf)
2575 ("automake" ,automake)
2576 ("python" ,python)))
2577 (inputs
2578 `(("alsa-lib" ,alsa-lib) ; for asound dependency
2579 ("libx11" ,libx11)
2580 ("libxext" ,libxext)
2581 ("sdl" ,sdl)))
2582 (home-page "http://schismtracker.org")
2583 (synopsis "Oldschool sample-based music composition tool")
2584 (description
2585 "Schism Tracker is a reimplementation of Impulse Tracker, a program used to
2586create high quality music without the requirements of specialized, expensive
2587equipment, and with a unique \"finger feel\" that is difficult to replicate in
2588part. The player is based on a highly modified version of the ModPlug engine,
2589with a number of bugfixes and changes to improve IT playback.")
2590 (license license:gpl2+)))
2591
5beecc32
RW
2592(define-public sooperlooper
2593 (package
2594 (name "sooperlooper")
2595 (version "1.7.3")
2596 (source (origin
2597 (method url-fetch)
2598 (uri (string-append "http://essej.net/sooperlooper/sooperlooper-"
2599 version ".tar.gz"))
2600 (sha256
2601 (base32
2602 "0n2gdxw1fx8nxxnpzf4sj0kp6k6zi1yq59cbz6qqzcnsnpnvszbs"))
2603 (patches (search-patches "sooperlooper-build-with-wx-30.patch"))))
2604 (build-system gnu-build-system)
2605 (arguments
2606 `(#:make-flags (list "CXXFLAGS=-std=gnu++11")
2607 #:phases
2608 (modify-phases %standard-phases
2609 (add-after 'unpack 'add-sigc++-includes
2610 (lambda* (#:key inputs #:allow-other-keys)
2611 (let ((sig (assoc-ref inputs "libsigc++"))
2612 (xml (assoc-ref inputs "libxml2"))
2613 (cwd (getcwd)))
2614 (setenv "CPATH"
2615 (string-append sig "/include/sigc++-2.0:"
2616 sig "/lib/sigc++-2.0/include:"
2617 xml "/include/libxml2/:"
2618 cwd "/libs/pbd:"
2619 cwd "/libs/midi++")))
2620 (substitute* '("src/control_osc.hpp"
2621 "src/gui/app_frame.hpp"
2622 "src/gui/config_panel.hpp"
2623 "src/gui/keys_panel.hpp"
2624 "src/gui/latency_panel.hpp"
2625 "src/gui/main_panel.hpp"
2626 "src/gui/midi_bind_panel.hpp"
2627 "src/gui/prefs_dialog.hpp")
2628 (("sigc\\+\\+/object.h")
2629 "sigc++/sigc++.h"))
2630 (substitute* '("src/engine.cpp"
2631 "src/gui/latency_panel.cpp"
2632 "src/gui/looper_panel.cpp"
2633 "src/gui/main_panel.cpp")
2634 (("(\\(| )bind " _ pre)
2635 (string-append pre "sigc::bind ")))
2636 #t))
2637 (add-after 'unpack 'fix-xpm-warnings
2638 (lambda _
2639 (substitute* (find-files "." "\\.xpm$")
2640 (("static char") "static const char"))
2641 #t)))))
2642 (inputs
2643 `(("jack" ,jack-1)
2644 ("alsa-lib" ,alsa-lib)
2645 ("wxwidgets" ,wxwidgets-gtk2)
2646 ("libsndfile" ,libsndfile)
2647 ("libsamplerate" ,libsamplerate)
2648 ("liblo" ,liblo)
2649 ("rubberband" ,rubberband)
2650 ("libxml2" ,libxml2)
2651 ("libsigc++" ,libsigc++)
2652 ("ncurses" ,ncurses)))
2653 (native-inputs
2654 `(("pkg-config" ,pkg-config)))
2655 (home-page "http://essej.net/sooperlooper/")
2656 (synopsis "Live looping sampler")
2657 (description
2658 "SooperLooper is a live looping sampler capable of immediate loop
2659recording, overdubbing, multiplying, reversing and more. It allows for
2660multiple simultaneous multi-channel loops limited only by your computer's
2661available memory.")
2662 (license license:gpl2+)))
2663
13416a10
KY
2664(define-public moc
2665 (package
2666 (name "moc")
2fbc004f 2667 (version "2.5.2")
13416a10
KY
2668 (source (origin
2669 (method url-fetch)
2670 (uri (string-append "http://ftp.daper.net/pub/soft/"
2671 name "/stable/"
2672 name "-" version ".tar.bz2"))
2673 (sha256
2674 (base32
2fbc004f
KK
2675 "026v977kwb0wbmlmf6mnik328plxg8wykfx9ryvqhirac0aq39pk"))
2676 (modules '((guix build utils)))
2677 (snippet
2678 ;; Remove use of __DATE__ and __TIME__ for reproducibility.
2679 '(substitute* "main.c"
2680 (("printf \\(\" Built : %s\", __DATE__\\);") "")
2681 (("printf \\(\" %s\", __TIME__\\);") "")))))
13416a10
KY
2682 (build-system gnu-build-system)
2683 (inputs
2684 `(("alsa-lib" ,alsa-lib)
2685 ("curl" ,curl)
2686 ("faad2" ,faad2)
2687 ("ffmpeg" ,ffmpeg)
2688 ("file" ,file)
2689 ("jack" ,jack-1)
2690 ("libid3tag" ,libid3tag)
2691 ("libltdl" ,libltdl)
2692 ("libmodplug" ,libmodplug)
2693 ("libmpcdec" ,libmpcdec)
2694 ("libmad" ,libmad)
6beaa5a0
MM
2695 ("libogg" ,libogg)
2696 ("libvorbis" ,libvorbis)
13416a10
KY
2697 ("ncurses" ,ncurses)
2698 ("openssl" ,openssl)
2699 ("sasl" ,cyrus-sasl)
2700 ("speex" ,speex)
2701 ("taglib" ,taglib)
2702 ("wavpack" ,wavpack)
2703 ("zlib" ,zlib)))
2704 (native-inputs
2705 `(("pkg-config" ,pkg-config)))
2706 (synopsis "Console audio player designed to be powerful and easy to use")
2707 (description
2708 "Music on Console is a console audio player that supports many file
2709formats, including most audio formats recognized by FFMpeg.")
2710 (home-page "http://moc.daper.net")
2711 (license license:gpl2+)))
6d3ef286
JF
2712
2713(define-public midicsv
2714 (package
2715 (name "midicsv")
2716 (version "1.1")
2717 (source (origin
2718 (method url-fetch)
2719 (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/"
2720 name "-" version ".tar.gz"))
2721 (sha256
2722 (base32
2723 "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw"))))
2724 (build-system gnu-build-system)
2725 (arguments
2726 `(#:phases (modify-phases %standard-phases (delete 'configure))
2727 #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output))))
2728 (synopsis "Convert MIDI files to and from CSV")
2729 (description
2730 "Midicsv reads a standard MIDI file and decodes it into a comma-separated
2731value file (CSV), which preserves all the information in the MIDI file. The
2732ASCII CSV file may be loaded into a spreadsheet or database application, or
2733processed by a program to transform the MIDI data (for example, to key
2734transpose a composition or extract a track from a multi-track sequence). A
2735CSV file in the format created by midicsv may be converted back into a
2736standard MIDI file with the csvmidi program.")
2737 (home-page "http://www.fourmilab.ch/webtools/midicsv/")
2738 (license license:public-domain)))
49604680
RW
2739
2740(define-public gx-guvnor-lv2
35f909d4
RW
2741 (package
2742 (name "gx-guvnor-lv2")
2743 (version "0.1")
2744 (source (origin
6ac8c78c
RW
2745 (method git-fetch)
2746 (uri (git-reference
2747 (url "https://github.com/brummer10/GxGuvnor.lv2.git")
2748 (commit (string-append "v" version))))
2749 (file-name (string-append name "-" version "-checkout"))
35f909d4
RW
2750 (sha256
2751 (base32
6ac8c78c 2752 "1wa5070j40p7f0b3kr259pzm99xb6cf2badr2capayjvgayd6gnm"))))
35f909d4
RW
2753 (build-system gnu-build-system)
2754 (arguments
2755 `(;; The check target is used only to output a warning.
2756 #:tests? #f
2757 #:make-flags
2758 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
2759 #:phases
2760 (modify-phases %standard-phases
2761 (replace 'configure
2762 (lambda _
2763 (substitute* "Makefile"
6ac8c78c
RW
2764 (("INSTALL_DIR = .*") "INSTALL_DIR=/lib/lv2\n")
2765 (("install : all") "install :"))
35f909d4
RW
2766 #t)))))
2767 (inputs
2768 `(("lv2" ,lv2)))
2769 (home-page "https://github.com/brummer10/GxGuvnor.lv2")
2770 (synopsis "Overdrive/distortion pedal simulation")
2771 (description "This package provides the LV2 plugin \"GxGuvnor\", a
49604680 2772simulation of an overdrive or distortion pedal for guitars.")
35f909d4 2773 ;; The LICENSE file says GPLv3 but the license headers in the files say
4b359532
RW
2774 ;; GPLv2 or later. The whole project is released under GPLv3 or later
2775 ;; according to https://github.com/brummer10/GxGuvnor.lv2/issues/1
2776 (license license:gpl3+)))
85ae347e
RW
2777
2778(define-public gx-vbass-preamp-lv2
1b74b126
RW
2779 (let ((commit "eb999b0ca0ef4da40a59e458a9ab6e7042b96c99")
2780 (revision "2"))
85ae347e
RW
2781 (package (inherit gx-guvnor-lv2)
2782 (name "gx-vbass-preamp-lv2")
2783 (version (string-append "0-" revision "." (string-take commit 9)))
2784 (source (origin
2785 (method git-fetch)
2786 (uri (git-reference
2787 (url "https://github.com/brummer10/GxVBassPreAmp.lv2")
2788 (commit commit)))
2789 (sha256
2790 (base32
1b74b126 2791 "0firap073ldw4nrykkd7jvyyj0jbl1nslxyzjj4kswazp99x7d9h"))
85ae347e 2792 (file-name (string-append name "-" version "-checkout"))))
1b74b126
RW
2793 (inputs
2794 `(("lv2" ,lv2)
2795 ("gtk+" ,gtk+-2)))
2796 (native-inputs
2797 `(("pkg-config" ,pkg-config)))
85ae347e
RW
2798 (home-page "https://github.com/brummer10/GxVBassPreAmp.lv2")
2799 (synopsis "Simulation of the Vox Venue Bass 100 Pre Amp Section")
2800 (description "This package provides the LV2 plugin \"GxVBassPreAmp\", a
2801pre-amplifier simulation modelled after the 1984 Vox Venue Bass 100 Pre Amp
2802Section."))))
cdc7a021
RW
2803
2804(define-public gx-overdriver-lv2
2805 (let ((commit "ed71801987449414bf3adaa0dbfac68e8775f1ce")
2806 (revision "1"))
1b74b126 2807 (package (inherit gx-guvnor-lv2)
cdc7a021
RW
2808 (name "gx-overdriver-lv2")
2809 (version (string-append "0-" revision "." (string-take commit 9)))
2810 (source (origin
2811 (method git-fetch)
2812 (uri (git-reference
2813 (url "https://github.com/brummer10/GxOverDriver.lv2")
2814 (commit commit)))
2815 (sha256
2816 (base32
2817 "13j614jh525fbkby79nnzwj0z1ac0c9wclyn5pfqvkmx6a7j24r8"))
2818 (file-name (string-append name "-" version "-checkout"))))
2819 (home-page "https://github.com/brummer10/GxOverDriver.lv2")
2820 (synopsis "Overdrive effect with level and tone control")
2821 (description "This package provides the LV2 plugin \"GxOverDriver\", an
2822overdrive effect."))))
4d95cd30
RW
2823
2824(define-public gx-tone-mender-lv2
2825 (let ((commit "b6780b4a3e4782b3ed0e5882d6788f178aed138f")
2826 (revision "1"))
1b74b126 2827 (package (inherit gx-guvnor-lv2)
4d95cd30
RW
2828 (name "gx-tone-mender-lv2")
2829 (version (string-append "0-" revision "." (string-take commit 9)))
2830 (source (origin
2831 (method git-fetch)
2832 (uri (git-reference
2833 (url "https://github.com/brummer10/GxToneMender.lv2")
2834 (commit commit)))
2835 (sha256
2836 (base32
2837 "07qdcfsvv2vdnfnjh91pfgvjdcs5y91nvwfm8c0z8fp6b4bk7a9q"))
2838 (file-name (string-append name "-" version "-checkout"))))
2839 (home-page "https://github.com/brummer10/GxToneMender.lv2")
2840 (synopsis "Clean boost with a 3-knob tonestack")
2841 (description "This package provides the LV2 plugin \"GxToneMender\", a
2842clean boost effect with a 3-knob tonestack."))))
4d4bfdc2
RW
2843
2844(define-public gx-push-pull-lv2
2845 (let ((commit "7f76ae2068498643ac8671ee0930b13ee3fd8eb5")
2846 (revision "1"))
1b74b126 2847 (package (inherit gx-guvnor-lv2)
4d4bfdc2
RW
2848 (name "gx-push-pull-lv2")
2849 (version (string-append "0-" revision "." (string-take commit 9)))
2850 (source (origin
2851 (method git-fetch)
2852 (uri (git-reference
2853 (url "https://github.com/brummer10/GxPushPull.lv2")
2854 (commit commit)))
2855 (sha256
2856 (base32
2857 "12f5hwck2irph0gjbj8xy8jqcqdwb8l1hlwf29k0clz52h1jhb5q"))
2858 (file-name (string-append name "-" version "-checkout"))))
2859 (home-page "https://github.com/brummer10/GxPushPull.lv2")
2860 (synopsis "Octave up push pull transistor fuzz simulation")
2861 (description "This package provides the LV2 plugin \"GxPushPull\", a
2862simulation of a push pull transistor fuzz effect with added high octave."))))
3eb1a964
RW
2863
2864(define-public gx-suppa-tone-bender-lv2
f959991d
RW
2865 (package (inherit gx-guvnor-lv2)
2866 (name "gx-suppa-tone-bender-lv2")
2867 (version "0.1")
2868 (source (origin
48b95a19
RW
2869 (method git-fetch)
2870 (uri (git-reference
2871 (url "https://github.com/brummer10/GxSuppaToneBender.lv2.git")
2872 (commit (string-append "v" version))))
2873 (file-name (string-append name "-" version "-checkout"))
f959991d
RW
2874 (sha256
2875 (base32
48b95a19 2876 "01x6bjmllkmvxfzc5xwdix7w021j26js71awv728cxsmkxgqw0zy"))))
f959991d
RW
2877 (home-page "https://github.com/brummer10/GxSuppaToneBender.lv2")
2878 (synopsis "Simulation of the Vox Suppa Tone Bender pedal")
2879 (description "This package provides the LV2 plugin
3eb1a964 2880\"GxSuppaToneBender\", a simulation modelled after the Vox Suppa Tone Bender
f959991d 2881pedal.")))
664f677f
RW
2882
2883(define-public gx-saturator-lv2
d9f65bd3
RW
2884 (let ((commit "605330f432c94b6eb3f8203cbe472befae959532")
2885 (revision "3"))
ad67ca3d 2886 (package (inherit gx-vbass-preamp-lv2)
664f677f
RW
2887 (name "gx-saturator-lv2")
2888 (version (string-append "0-" revision "." (string-take commit 9)))
2889 (source (origin
2890 (method git-fetch)
2891 (uri (git-reference
2892 (url "https://github.com/brummer10/GxSaturator.lv2")
2893 (commit commit)))
2894 (sha256
2895 (base32
d9f65bd3 2896 "1w4nvh0rmxrv3s3hmh4fs74f3hc0jn31v00j769j7v68mqr7kawy"))
664f677f
RW
2897 (file-name (string-append name "-" version "-checkout"))))
2898 (home-page "https://github.com/brummer10/GxSaturator.lv2")
2899 (synopsis "Saturation effect")
2900 (description "This package provides the LV2 plugin \"GxSaturator\", a
2901saturation effect."))))
89412238
RW
2902
2903(define-public gx-hyperion-lv2
4396e9b5
RW
2904 (package (inherit gx-guvnor-lv2)
2905 (name "gx-hyperion-lv2")
2906 (version "0.1")
2907 (source (origin
37519239
RW
2908 (method git-fetch)
2909 (uri (git-reference
2910 (url "https://github.com/brummer10/GxHyperion.lv2.git")
2911 (commit (string-append "v" version))))
2912 (file-name (string-append name "-" version "-checkout"))
4396e9b5
RW
2913 (sha256
2914 (base32
37519239 2915 "1vx79s6s9if117y2g0ppdja2sv2wcny6xcfl3j1z4cipahnildxf"))))
4396e9b5
RW
2916 (home-page "https://github.com/brummer10/GxHyperion.lv2")
2917 (synopsis "Simulation of the Hyperion Fuzz pedal")
2918 (description "This package provides the LV2 plugin \"GxHyperion\", a
2919simulation of the Hyperion Fuzz pedal.")))
32536f00
RW
2920
2921(define-public gx-voodoo-fuzz-lv2
cf44ebeb
RW
2922 (package (inherit gx-guvnor-lv2)
2923 (name "gx-voodoo-fuzz-lv2")
2924 (version "0.1")
2925 (source (origin
d42c6613
RW
2926 (method git-fetch)
2927 (uri (git-reference
2928 (url "https://github.com/brummer10/GxVoodoFuzz.lv2.git")
2929 (commit (string-append "v" version))))
2930 (file-name (string-append name "-" version "-checkout"))
cf44ebeb
RW
2931 (sha256
2932 (base32
d42c6613 2933 "1v0scphivri1fk4hl20j13f92i48mnx1zsil4hgnadsmm4nsfw43"))))
cf44ebeb
RW
2934 (home-page "https://github.com/brummer10/GxVoodoFuzz.lv2")
2935 (synopsis "Fuzz effect modelled after the Voodoo Lab SuperFuzz")
2936 (description "This package provides the LV2 plugin \"GxVoodooFuzz\", a
32536f00
RW
2937simulation modelled after the Voodoo Lab SuperFuzz pedal. It's basically a
2938Bosstone circuit, followed by the tone control of the FoxToneMachine in
cf44ebeb 2939parallel with a DarkBooster, followed by a volume control.")))
29f63222
RW
2940
2941(define-public gx-super-fuzz-lv2
34a3ecfe
RW
2942 (package (inherit gx-guvnor-lv2)
2943 (name "gx-super-fuzz-lv2")
2944 (version "0.1")
2945 (source (origin
5057535f
RW
2946 (method git-fetch)
2947 (uri (git-reference
2948 (url "https://github.com/brummer10/GxSuperFuzz.lv2.git")
2949 (commit (string-append "v" version))))
2950 (file-name (string-append name "-" version "-checkout"))
34a3ecfe
RW
2951 (sha256
2952 (base32
5057535f 2953 "1jlljd9hlgfflbiizq47lv1xbbgjyx3v835mf24zmh1q5zsw4np4"))))
34a3ecfe
RW
2954 (home-page "https://github.com/brummer10/GxSuperFuzz.lv2")
2955 (synopsis "Fuzz effect modelled after the UniVox SuperFuzz")
a6f39d7c 2956 (description "This package provides the LV2 plugin \"GxSuperFuzz\", an
29f63222 2957analog simulation of the UniVox SuperFuzz pedal. In this simulation the trim
d1e4ad1b 2958pot, which is usually in the housing, is exposed as a control parameter. It
34a3ecfe 2959adjusts the amount of harmonics.")))
40bffdfa
RW
2960
2961(define-public gx-vintage-fuzz-master-lv2
38050923
RW
2962 (package (inherit gx-guvnor-lv2)
2963 (name "gx-vintage-fuzz-master-lv2")
2964 (version "0.1")
2965 (source (origin
0febd673
RW
2966 (method git-fetch)
2967 (uri (git-reference
2968 (url "https://github.com/brummer10/GxVintageFuzzMaster.lv2.git")
2969 (commit (string-append "v" version))))
2970 (file-name (string-append name "-" version "-checkout"))
38050923
RW
2971 (sha256
2972 (base32
0febd673 2973 "02jb211z8rw2qr5r1z5mdxlqgiw6cbc319xpqplvn6k21c59mskv"))))
38050923
RW
2974 (home-page "https://github.com/brummer10/GxVintageFuzzMaster.lv2")
2975 (synopsis "Fuzz effect simulation of the vintage Fuzz Master")
2976 (description "This package provides the LV2 plugin
2977\"GxVintageFuzzMaster\", a simulation of the vintage Fuzz Master pedal.")))
631f8175
RW
2978
2979(define-public gx-slow-gear-lv2
d921a1f4
RW
2980 (let ((commit "5d37e775b0feef1d82feee94e2a7a2d7e57efe2d")
2981 (revision "3"))
ad67ca3d 2982 (package (inherit gx-vbass-preamp-lv2)
631f8175
RW
2983 (name "gx-slow-gear-lv2")
2984 (version (string-append "0-" revision "." (string-take commit 9)))
2985 (source (origin
2986 (method git-fetch)
2987 (uri (git-reference
2988 (url "https://github.com/brummer10/GxSlowGear.lv2")
2989 (commit commit)))
2990 (sha256
2991 (base32
d921a1f4 2992 "141mz69zkhk3lm54bb6wgpnghb92zm1ig7fv07240cmhydqji1q1"))
631f8175
RW
2993 (file-name (string-append name "-" version "-checkout"))))
2994 (home-page "https://github.com/brummer10/GxSlowGear.lv2")
2995 (synopsis "Slow gear audio effect")
2996 (description "This package provides the LV2 plugin \"GxSlowGear\", a
2997slow gear audio effect to produce volume swells."))))
d75e8f5a
RW
2998
2999(define-public gx-switchless-wah-lv2
cfcef2c2
RW
3000 (let ((commit "7b08691203314612999f0ce2328cdc1161cd6665")
3001 (revision "2"))
1b74b126 3002 (package (inherit gx-guvnor-lv2)
d75e8f5a
RW
3003 (name "gx-switchless-wah-lv2")
3004 (version (string-append "0-" revision "." (string-take commit 9)))
3005 (source (origin
3006 (method git-fetch)
3007 (uri (git-reference
3008 (url "https://github.com/brummer10/GxSwitchlessWah.lv2")
3009 (commit commit)))
3010 (sha256
3011 (base32
cfcef2c2 3012 "04jqfpncmrrqn34p21w4v9m2x5a5wsqwbm4f3byxvq4vcibwxzk2"))
d75e8f5a
RW
3013 (file-name (string-append name "-" version "-checkout"))))
3014 (home-page "https://github.com/brummer10/GxSwitchlessWah.lv2")
3015 (synopsis "Wah emulation with switchless activation")
3016 (description "This package provides the LV2 plugin \"GxSwitchlessWah\",
3017a simulation of an analog Wah pedal with switchless activation."))))
84d53724
RW
3018
3019(define-public mod-utilities
fe049d21
RW
3020 (let ((commit "80ea3ea9f52fab7f191671f4810bf90fc955a046")
3021 (revision "2"))
84d53724
RW
3022 (package
3023 (name "mod-utilities")
3024 (version (string-append "0-" revision "." (string-take commit 9)))
3025 (source (origin
3026 (method git-fetch)
3027 (uri (git-reference
3028 (url "https://github.com/moddevices/mod-utilities.git")
3029 (commit commit)))
fe049d21 3030 (file-name (string-append name "-" version "-checkout"))
84d53724
RW
3031 (sha256
3032 (base32
fe049d21 3033 "1v55zmzmlg0ka7341x5lsvb44amy17vk27s669ps1basd1bk5s5v"))))
84d53724
RW
3034 (build-system gnu-build-system)
3035 (arguments
3036 `(#:tests? #f ; there are no tests
3037 #:make-flags
3038 (list (string-append "INSTALL_PATH="
3039 (assoc-ref %outputs "out")
fe049d21
RW
3040 "/lib/lv2")
3041 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3042 "CC=gcc")
84d53724
RW
3043 #:phases
3044 (modify-phases %standard-phases
3045 (delete 'configure))))
3046 (inputs
3047 `(("lv2" ,lv2)))
3048 (home-page "https://github.com/moddevices/mod-utilities")
3049 (synopsis "LV2 utility plugins")
3050 (description "This package provides LV2 audio utility plugins, such as
3051filters, crossovers, simple gain plugins without zipper noise, switch box
3052plugins, a switch trigger, a toggle switch, and a peakmeter.")
3053 (license license:gpl2+))))
d3db5efb 3054
951581a2 3055(define-public ingen
19748414
RW
3056 (let ((commit "cc4a4db33f4d126a07a4a498e053c5fb9a883be3")
3057 (revision "2"))
951581a2
RW
3058 (package
3059 (name "ingen")
3060 (version (string-append "0.0.0-" revision "."
3061 (string-take commit 9)))
3062 (source
3063 (origin
3064 (method git-fetch)
3065 (uri (git-reference
3066 (url "http://git.drobilla.net/ingen.git")
3067 (commit commit)))
3068 (file-name (string-append name "-" version "-checkout"))
3069 (sha256
3070 (base32
19748414 3071 "1wg47vjw9djn99gbnsl2bcwj4xhdid61m4wrbn2nlp797flj91ic"))))
951581a2
RW
3072 (build-system waf-build-system)
3073 (arguments
3074 `(#:tests? #f ; no "check" target
3075 #:configure-flags (list "--no-webkit")
3076 #:phases
3077 (modify-phases %standard-phases
3078 (add-after 'unpack 'patch-wscript
3079 (lambda* (#:key outputs #:allow-other-keys)
3080 (let ((out (assoc-ref outputs "out")))
3081 (substitute* "wscript"
3082 ;; FIXME: Our version of lv2specgen.py does not behave as
3083 ;; expected. Maybe this requires a development version of
3084 ;; LV2.
3085 (("lv2specgen.py") "touch ingen.lv2/ingen.html; echo")
3086 ;; Add libraries to RUNPATH.
3087 (("^(.+)target.*= 'src/ingen/ingen'," line prefix)
3088 (string-append prefix
3089 "linkflags=[\"-Wl,-rpath="
3090 out "/lib" "\"]," line)))
3091 (substitute* '("src/wscript"
3092 "src/server/wscript")
3093 ;; Add libraries to RUNPATH.
3094 (("bld.env.PTHREAD_LINKFLAGS" line)
3095 (string-append line
3096 " + [\"-Wl,-rpath=" out "/lib" "\"]")))
3097 (substitute* "src/client/wscript"
3098 ;; Add libraries to RUNPATH.
3099 (("^(.+)target.*= 'ingen_client'," line prefix)
3100 (string-append prefix
3101 "linkflags=[\"-Wl,-rpath="
3102 out "/lib" "\"]," line)))
3103 (substitute* "src/gui/wscript"
3104 ;; Add libraries to RUNPATH.
3105 (("^(.+)target.* = 'ingen_gui.*" line prefix)
3106 (string-append prefix
3107 "linkflags=[\"-Wl,-rpath="
3108 out "/lib" "\"]," line))))
3109 #t)))))
3110 (inputs
3111 `(("boost" ,boost)
3112 ("python-rdflib" ,python-rdflib)
3113 ("python" ,python)
3114 ("jack" ,jack-1)
19748414 3115 ("lv2" ,lv2-devel)
951581a2
RW
3116 ("lilv" ,lilv)
3117 ("raul" ,raul-devel)
3118 ("ganv" ,ganv-devel)
3119 ("suil" ,suil)
3120 ("serd" ,serd)
3121 ("sord" ,sord)
3122 ("sratom" ,sratom)
3123 ("gtkmm" ,gtkmm-2)))
3124 (native-inputs
3125 `(("pkg-config" ,pkg-config)
3126 ("python-pygments" ,python-pygments)))
3127 (home-page "http://drobilla.net/software/ingen")
3128 (synopsis "Modular audio processing system")
3129 (description "Ingen is a modular audio processing system for JACK and
3130LV2 based systems. Ingen is built around LV2 technology and a strict
3131separation of engine from user interface. The engine is controlled
3132exclusively through a protocol, and can execute as a headless process, with an
3133in-process GUI, or as an LV2 plugin. The GUI can run as a program which
3134communicates over a Unix or TCP/IP socket, or as an embeddable LV2 GUI which
3135communicates via LV2 ports. Any saved Ingen graph can be loaded as an LV2
3136plugin on any system where Ingen is installed. This allows users to visually
3137develop custom plugins for use in other applications without programming.")
3138 (license license:agpl3+))))
3139
b3410b44
RW
3140(define-public qmidiarp
3141 (package
3142 (name "qmidiarp")
3143 (version "0.6.4")
3144 (source (origin
3145 (method url-fetch)
3146 (uri (string-append "mirror://sourceforge/qmidiarp/qmidiarp/"
3147 version "/qmidiarp-" version ".tar.bz2"))
3148 (sha256
3149 (base32
3150 "1gkfv8ajgf86kbn6j5ilfc1zlz17gdi9yxzywqd6jwff4xlm75hx"))))
3151 (build-system gnu-build-system)
3152 (arguments
3153 `(#:configure-flags
3154 (list "--enable-qt5"
3155 "CXXFLAGS=-std=gnu++11")))
3156 (inputs
3157 `(("qtbase" ,qtbase)
3158 ("alsa-lib" ,alsa-lib)
3159 ("jack" ,jack-1)
3160 ("liblo" ,liblo)
3161 ("lv2" ,lv2)))
3162 (native-inputs
3163 `(("pkg-config" ,pkg-config)
3164 ("qttools" ,qttools)))
3165 (home-page "http://qmidiarp.sourceforge.net/")
3166 (synopsis "MIDI arpeggiator")
3167 (description "QMidiArp is an advanced MIDI arpeggiator, programmable step
3168sequencer and LFO. It can hold any number of arpeggiator, sequencer, or LFO
3169modules running in parallel.")
3170 (license license:gpl2+)))
3171
ff49437d
RW
3172(define-public qmidiroute
3173 (package
3174 (name "qmidiroute")
3175 (version "0.4.0")
3176 (source (origin
3177 (method url-fetch)
3178 (uri (string-append "mirror://sourceforge/alsamodular/QMidiRoute/"
3179 version "/qmidiroute-" version ".tar.bz2"))
3180 (sha256
3181 (base32
3182 "19v1ppbglgl3z9v7xdqc0k33w71cqq8a7d6ihvfs7iz77dygrih9"))))
3183 (build-system gnu-build-system)
3184 (arguments
3185 `(#:configure-flags
3186 (list "--enable-qt5"
3187 "CXXFLAGS=-std=gnu++11")))
3188 (inputs
3189 `(("qtbase" ,qtbase)
3190 ("alsa-lib" ,alsa-lib)))
3191 (native-inputs
3192 `(("pkg-config" ,pkg-config)
3193 ("qttools" ,qttools)))
3194 (home-page "http://alsamodular.sourceforge.net/")
3195 (synopsis "MIDI event router and filter")
3196 (description "QMidiRoute is a MIDI event router and filter. MIDI note,
3197control change, program change and pitch bend events are logged, and can be
3198filtered, redirected and transformed into other events according to MIDI maps
3199defined as tabs in the main control surface.")
3200 (license license:gpl2+)))
3201
5a66e25c
RW
3202(define-public seq24
3203 (package
3204 (name "seq24")
3205 (version "0.9.3")
3206 (source (origin
3207 (method url-fetch)
3208 (uri (string-append "https://launchpad.net/seq24/trunk/"
3209 version "/+download/seq24-"
3210 version ".tar.bz2"))
3211 (sha256
3212 (base32
3213 "12dphdhnvfk1k0vmagi1v2lhyxjyj1j3cz6ksjw0ydcvid1x8ap2"))
3214 (patches (search-patches "seq24-rename-mutex.patch"))))
3215 (build-system gnu-build-system)
3216 (arguments
3217 `(#:configure-flags
3218 (list "CXXFLAGS=-std=gnu++11")))
3219 (inputs
3220 `(("gtkmm" ,gtkmm-2)
3221 ("alsa-lib" ,alsa-lib)
3222 ("jack" ,jack-1)
3223 ("lash" ,lash)))
3224 (native-inputs
3225 `(("pkg-config" ,pkg-config)))
3226 (home-page "https://edge.launchpad.net/seq24/")
3227 (synopsis "Real-time MIDI sequencer")
3228 (description "Seq24 is a real-time MIDI sequencer. It was created to
3229provide a very simple interface for editing and playing MIDI loops.")
3230 (license license:gpl2+)))
3231
d3db5efb
LF
3232(define-public python-discogs-client
3233 (package
3234 (name "python-discogs-client")
3235 (version "2.2.1")
3236 (source (origin
3237 (method url-fetch)
3238 (uri (pypi-uri "discogs-client" version))
3239 (sha256
3240 (base32
3241 "053ld2psh0yj3z0kg6z5bn4y3cr562m727494n0ayhgzbkjbacly"))))
3242 (build-system python-build-system)
3243 (propagated-inputs
3244 `(("python-oauthlib" ,python-oauthlib)
3245 ("python-requests" ,python-requests)))
3246 (native-inputs
3247 `(("python-six" ,python-six)))
3248 (home-page "https://github.com/discogs/discogs_client")
3249 (synopsis "Official Python client for the Discogs API")
3250 (description "This is the official Discogs API client for Python. It enables
3251you to query the Discogs database for information on artists, releases, labels,
3252users, Marketplace listings, and more. It also supports OAuth 1.0a
3253authorization, which allows you to change user data such as profile information,
3254collections and wantlists, inventory, and orders.")
80983df3 3255 (license license:bsd-2)))
d3db5efb
LF
3256
3257(define-public python2-discogs-client
80983df3 3258 (package-with-python2 python-discogs-client))
a4f05b46 3259
3260(define-public libsmf
3261 (package
3262 (name "libsmf")
3263 (version "1.3")
3264 (source
3265 (origin
3266 (method url-fetch)
3267 ;; SF download page says development moved, but the link it points to
3268 ;; is gone (https://github.com/nilsgey/libsmf). Someone else adopted
3269 ;; it but made no release so far (https://github.com/stump/libsmf).
3270 (uri (string-append "mirror://sourceforge/libsmf/libsmf/"
3271 version "/libsmf-" version ".tar.gz"))
3272 (sha256
3273 (base32
3274 "16c0n40h0r56gzbh5ypxa4dwp296dan3jminml2qkb4lvqarym6k"))))
3275 (build-system gnu-build-system)
3276 (outputs '("out"
3277 "static")) ; 88KiB of .a files
3278 (arguments
3279 `(#:phases
3280 (modify-phases %standard-phases
3281 (add-after 'install 'move-static-libraries
3282 (lambda* (#:key outputs #:allow-other-keys)
3283 ;; Move static libraries to the "static" output.
3284 (let* ((out (assoc-ref outputs "out"))
3285 (lib (string-append out "/lib"))
3286 (static (assoc-ref outputs "static"))
3287 (slib (string-append static "/lib")))
3288 (mkdir-p slib)
3289 (for-each (lambda (file)
3290 (install-file file slib)
3291 (delete-file file))
3292 (find-files lib "\\.a$"))
3293 #t))))))
3294 (inputs
3295 `(("readline" ,readline)
3296 ("glib" ,glib)))
3297 (native-inputs
3298 `(("doxygen" ,doxygen)
3299 ("pkg-config" ,pkg-config)))
3300 (home-page "http://libsmf.sourceforge.net/")
3301 (synopsis "Standard MIDI File format library")
3302 (description
3303 "LibSMF is a C library for handling SMF (\"*.mid\") files. It transparently handles
3304conversions between time and pulses, tempo map handling and more. The only dependencies
3305are a C compiler and glib. Full API documentation and examples are included.")
3306 (license license:bsd-2)))
a42619e5
RF
3307
3308(define-public lmms
3309 (package
3310 (name "lmms")
3311 (version "1.1.3")
3312 (source
3313 (origin
3314 (method url-fetch)
3315 (uri (string-append "https://github.com/LMMS/lmms/archive/v"
3316 version ".tar.gz"))
3317 (file-name (string-append name "-" version ".tar.gz"))
3318 (sha256
3319 (base32
3320 "1g76z7ha3hd53vbqaq9n1qg6s3lw8zzaw51iny6y2bz0j1xqwcsr"))))
3321 (build-system cmake-build-system)
3322 (arguments
3323 `(#:tests? #f ; no tests
3324 #:phases
3325 (modify-phases %standard-phases
ab2ccf4c
KK
3326 (add-before 'configure 'set-ldflags
3327 (lambda* (#:key outputs #:allow-other-keys)
3328 (setenv "LDFLAGS"
3329 (string-append
3330 "-Wl,-rpath=\""
3331 (assoc-ref outputs "out") "/lib/lmms"
3332 ":"
3333 (assoc-ref outputs "out") "/lib/lmms/ladspa"
3334 "\""))
3335 #t))
3336 (add-before 'configure 'remove-Werror
3337 (lambda _
3338 (substitute* "CMakeLists.txt"
3339 (("SET\\(WERROR_FLAGS \"\\$\\{WERROR_FLAGS\\} -Werror")
3340 "SET(WERROR_FLAGS \"${WERROR_FLAGS}"))
3341 #t))
3342 (add-before 'reset-gzip-timestamps 'make-manpages-writable
3343 (lambda* (#:key outputs #:allow-other-keys)
3344 (map (lambda (file)
3345 (make-file-writable file))
3346 (find-files (string-append (assoc-ref outputs "out")
3347 "/share/man")
3348 ".*\\.gz$"))
3349 #t)))))
a42619e5
RF
3350 (native-inputs
3351 `(("pkg-config" ,pkg-config)))
3352 (inputs
3353 `(("sdl" ,sdl)
3354 ("qt" ,qt-4)
3355 ("fltk" ,fltk)
3356 ("libogg" ,libogg)
3357 ("libsamplerate" ,libsamplerate)
3358 ("fluidsynth" ,fluidsynth)
3359 ("libvorbis" ,libvorbis)
3360 ("alsa-lib" ,alsa-lib)
3361 ("portaudio" ,portaudio)
3362 ("ladspa" ,ladspa)
3363 ("libsndfile1" ,libsndfile)
3364 ("libxft" ,libxft)
3365 ("freetype2" ,freetype)
3366 ("fftw3f" ,fftwf)))
3367 (home-page "https://lmms.io/")
3368 (synopsis "Music composition tool")
3369 (description "LMMS is a digital audio workstation. It includes tools for sequencing
3370melodies and beats and for mixing and arranging songs. LMMS includes instruments based on
3371audio samples and various soft sythesizers. It can receive input from a MIDI keyboard.")
3372 (license license:gpl2+)))
a7a7186c
NG
3373
3374(define-public musescore
3375 (package
3376 (name "musescore")
3377 (version "2.1.0")
3378 (source (origin
3379 (method url-fetch)
3380 (uri (string-append
3381 "https://github.com/musescore/MuseScore/archive/"
3382 "v" version ".tar.gz"))
3383 (file-name (string-append name "-" version ".tar.gz"))
3384 (sha256
3385 (base32
3386 "0irwsq6ihfz3y3b943cwqy29g3si7gqbgxdscgw53vwv9vfvi085"))
3387 (modules '((guix build utils)))
3388 (snippet
3389 ;; Un-bundle OpenSSL and remove unused libraries.
3390 '(begin
3391 (substitute* "thirdparty/kQOAuth/CMakeLists.txt"
3392 (("-I \\$\\{PROJECT_SOURCE_DIR\\}/thirdparty/openssl/include ")
3393 ""))
3394 (substitute* "thirdparty/kQOAuth/kqoauthutils.cpp"
3395 (("#include <openssl/.*") ""))
3396 (for-each delete-file-recursively
3397 '("thirdparty/freetype"
3398 "thirdparty/openssl"
3399 "thirdparty/portmidi"))
3400 #t))))
3401 (build-system gnu-build-system)
3402 (arguments
3403 `(#:make-flags
3404 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
3405 ;; There are tests, but no simple target to run. The command
3406 ;; used to run them is:
3407 ;;
3408 ;; make debug && sudo make installdebug && cd \
3409 ;; build.debug/mtest && make && ctest
3410 ;;
3411 ;; Basically, it requires to start a whole new build process.
3412 ;; So we simply skip them.
3413 #:tests? #f
3414 #:phases
3415 (modify-phases %standard-phases
3416 (delete 'configure)
3417 (add-after 'unpack 'use-system-freetype
3418 (lambda _
3419 ;; XXX: For the time being, we grossly insert the CMake
3420 ;; option needed to ignore bundled freetype. However,
3421 ;; there's a pending PR to have it as a regular make
3422 ;; option, in a future release.
3423 (substitute* "Makefile"
3424 (("cmake -DCMAKE") "cmake -DUSE_SYSTEM_FREETYPE=ON -DCMAKE"))
3425 #t)))))
3426 (inputs
3427 `(("alsa-lib" ,alsa-lib)
3428 ("freetype" ,freetype)
3429 ("gtk+-bin" ,gtk+ "bin") ;for gtk-update-icon-cache
3430 ("jack" ,jack-1)
3431 ("lame" ,lame)
3432 ("libogg" ,libogg)
3433 ("libsndfile" ,libsndfile)
3434 ("libvorbis" ,libvorbis)
3435 ("portaudio" ,portaudio)
3436 ("pulseaudio" ,pulseaudio)
3437 ("qtbase" ,qtbase)
3438 ("qtdeclarative" ,qtdeclarative)
3439 ("qtscript" ,qtscript)
3440 ("qtsvg" ,qtsvg)
3441 ("qtwebkit" ,qtwebkit)
3442 ("qtxmlpatterns" ,qtxmlpatterns)))
3443 (native-inputs
3444 `(("cmake" ,cmake)
3445 ("pkg-config" ,pkg-config)
3446 ("qttools" ,qttools)))
3447 (synopsis "Music composition and notation software")
3448 (description "MuseScore is a music score typesetter. Its main purpose is
3449the creation of high-quality engraved musical scores in a WYSIWYG environment.
3450
3451It supports unlimited staves, linked parts and part extraction, tablature,
3452MIDI input, percussion notation, cross-staff beaming, automatic transposition,
3453lyrics (multiple verses), fretboard diagrams, and in general everything
3454commonly used in sheet music. Style options and style sheets to change the
3455appearance and layout are provided.
3456
3457MuseScore can also play back scores through the built-in sequencer and SoundFont
3458sample library.")
3459 (home-page "https://musescore.org")
3460 (license license:gpl2)))
2434f5ce
DM
3461
3462(define-public dssi
3463 (package
3464 (name "dssi")
3465 (version "1.1.1")
3466 (source (origin
3467 (method url-fetch)
3468 (uri (string-append
3469 "mirror://sourceforge/dssi/dssi/" version
3470 "/dssi-" version ".tar.gz"))
3471 (sha256
3472 (base32
3473 "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j"))))
3474 (build-system gnu-build-system)
3475 (inputs
3476 `(("alsa-lib" ,alsa-lib)
3477 ("jack-2" ,jack-2)
3478 ("ladspa" ,ladspa)
3479 ("libsamplerate" ,libsamplerate)
3480 ("libsndfile" ,libsndfile)
3481 ("liblo" ,liblo)))
3482 (native-inputs
3483 `(("pkg-config" ,pkg-config)))
3484 (synopsis "Audio plugin API for soft synths and effects")
3485 (description "DSSI is a plugin API for software instruments with user
3486interfaces, permitting them to be hosted in-process by audio applications.
3487It is intended to be simple, GUI-toolkit-agnostic, and slightly biased
3488towards familiarity with MIDI. The DSSI distribution package contains
3489a JACK/ALSA-sequencer reference host and some plugins as well as the
3490specification and header.")
3491 (home-page "http://dssi.sourceforge.net/")
3492 ;; The DSSI interface is LGPL2.1+, some tests and examples are GPL2+.
3493 ;; The vast majority of examples are in the public domain.
3494 (license (list license:lgpl2.1+ license:gpl2+))))
9bc38f28
DM
3495
3496(define-public rosegarden
3497 (package
3498 (name "rosegarden")
3499 (version "17.04")
3500 (source (origin
3501 (method url-fetch)
3502 (uri (string-append
3503 "mirror://sourceforge/rosegarden/rosegarden/"
3504 version "/rosegarden-" version ".tar.bz2"))
3505 (sha256
3506 (base32
3507 "1khfcj22asdhjh0jvhkqsz200wgmigkhsrcz09ffia5hqm0n32lq"))))
3508 (build-system cmake-build-system)
3509 (arguments
3510 `(#:configure-flags '("-DUSE_QT5=1") ; "-DCMAKE_BUILD_TYPE=Release"
3511 #:phases
3512 (modify-phases %standard-phases
3513 (add-after 'unpack 'patch-tests
3514 (lambda _
3515 (substitute* "CMakeLists.txt"
3516 (("BUILD_TESTING OFF") "BUILD_TESTING ON")
3517 ;; Make tests work.
3518 ((" -fvisibility=hidden") ""))
3519 #t))
3520 (add-after 'unpack 'fix-references
3521 (lambda* (#:key inputs #:allow-other-keys)
3522 (substitute* "src/gui/general/ProjectPackager.cpp"
3523 (("\"flac\\>")
3524 (string-append "\"" (assoc-ref inputs "flac") "/bin/flac"))
3525 (("\"wavpack\\>")
3526 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wavpack"))
3527 (("\"wvunpack\\>")
3528 (string-append "\"" (assoc-ref inputs "wavpack") "/bin/wvunpack"))
3529 (("\"bash\\>")
3530 (string-append "\"" (assoc-ref inputs "bash") "/bin/bash"))
3531 (("\"tar\\>")
3532 (string-append "\"" (assoc-ref inputs "tar") "/bin/tar")))
3533 (substitute* "src/gui/general/LilyPondProcessor.cpp"
3534 (("\"convert-ly\\>")
3535 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/convert-ly"))
3536 (("\"lilypond\\>")
3537 (string-append "\"" (assoc-ref inputs "lilypond") "/bin/lilypond")))
3538 #t))
3539 (add-after 'unpack 'make-reproducible
3540 (lambda _
3541 ;; Prevent Last-Modified from being written.
3542 ;; The "*.qm" files that are used in locale.qrc would have a new
3543 ;; mtime otherwise that is written into qrc_locale.cpp in the
3544 ;; end - except when we disable it.
3545 (substitute* "src/CMakeLists.txt"
3546 (("COMMAND [$][{]QT_RCC_EXECUTABLE[}]")
3547 "COMMAND ${QT_RCC_EXECUTABLE} --format-version 1")
3548 ;; Extraneous.
3549 ;(("qt5_add_resources[(]rg_SOURCES ../data/data.qrc[)]")
3550 ; "qt5_add_resources(rg_SOURCES ../data/data.qrc OPTIONS --format-version 1)")
3551 )
3552 ;; Make hashtable traversal order predicable.
3553 (setenv "QT_RCC_TEST" "1") ; important
3554 #t))
3555 (add-before 'check 'prepare-check
3556 (lambda _
3557 (setenv "QT_QPA_PLATFORM" "offscreen")
3558 ;; Tests create files in $HOME/.local/share/rosegarden .
3559 (mkdir-p "/tmp/foo")
3560 (setenv "HOME" "/tmp/foo")
3561 #t)))))
3562 (inputs
3563 `(("alsa-lib" ,alsa-lib)
3564 ("bash" ,bash)
3565 ("dssi" ,dssi)
3566 ("flac" ,flac)
3567 ("fftwf" ,fftwf)
3568 ("jack-2" ,jack-2)
3569 ("ladspa" ,ladspa)
3570 ("liblo" ,liblo)
3571 ("libsamplerate" ,libsamplerate)
3572 ("lilypond" ,lilypond)
3573 ("lrdf" ,lrdf)
3574 ("qtbase" ,qtbase)
3575 ("tar" ,tar)
3576 ("lirc" ,lirc)
3577 ("wavpack" ,wavpack)
3578 ("zlib" ,zlib)))
3579 (native-inputs
3580 `(("pkg-config" ,pkg-config)
3581 ("qtlinguist" ,qttools)))
3582 (synopsis "Music composition and editing environment based around a MIDI
3583sequencer")
3584 (description "Rosegarden is a music composition and editing environment
3585based around a MIDI sequencer that features a rich understanding of music
3586notation and includes basic support for digital audio.")
3587 (home-page "http://www.rosegardenmusic.com/")
3588 (license license:gpl2)))
30655652
RW
3589
3590(define-public sorcer
3591 (package
3592 (name "sorcer")
3593 (version "1.1.3")
3594 (source (origin
3595 (method url-fetch)
3596 (uri (string-append "https://github.com/openAVproductions/"
3597 "openAV-Sorcer/archive/release-"
3598 version ".tar.gz"))
3599 (file-name (string-append name "-" version ".tar.gz"))
3600 (sha256
3601 (base32
3602 "07iyqj28wm0xc4arrq893bm12xjpz65db7ynrlmf6w8krg8wjmd0"))))
3603 (build-system cmake-build-system)
3604 (arguments
3605 `(#:tests? #f ; no tests included
3606 #:phases
3607 (modify-phases %standard-phases
e5af1f4a
EF
3608 (add-after 'unpack 'remove-architecture-specific-flags
3609 (lambda _
3610 (substitute* "CMakeLists.txt"
3611 (("-msse2 -mfpmath=sse") ""))
3612 #t))
30655652
RW
3613 (add-after 'unpack 'build-faust-sources
3614 (lambda* (#:key inputs #:allow-other-keys)
3615 (with-directory-excursion "faust"
3616 (delete-file "main.cpp")
3617 (zero? (system* "faust" "-i"
3618 "-a" "lv2synth.cpp"
3619 "-o" "main.cpp" "main.dsp"))))))))
3620 (inputs
3621 `(("boost" ,boost)
3622 ("lv2" ,lv2)
3623 ("ntk" ,ntk)))
3624 (native-inputs
3625 `(("faust" ,faust)
3626 ("pkg-config" ,pkg-config)))
3627 (home-page "http://openavproductions.com/sorcer/")
3628 (synopsis "Wavetable LV2 plugin synth")
3629 (description "Sorcer is a wavetable LV2 plugin synthesizer, targeted at
3630the electronic or dubstep genre.")
3631 (license license:gpl3+)))
60b7ed9c
PL
3632
3633(define-public libechonest
3634 (package
3635 (name "libechonest")
3636 (version "2.3.1")
3637 (source (origin
3638 (method git-fetch)
3639 (uri (git-reference
3640 (url "git://anongit.kde.org/libechonest.git")
3641 (commit version)))
3642 (file-name (string-append name "-" version "-checkout"))
3643 (sha256
3644 (base32
3645 "0xbavf9f355dl1d3qv59x4ryypqrdanh9xdvw2d0q66l008crdkq"))))
3646 (build-system cmake-build-system)
3647 (arguments
3648 '(#:tests? #f ; Tests require Internet access
3649 #:configure-flags '("-DBUILD_WITH_QT4=OFF")))
3650 (inputs
3651 `(("qtbase" ,qtbase)
3652 ("qjson" ,qjson)))
3653 (home-page "https://projects.kde.org/projects/playground/libs/libechonest")
3654 (synopsis "C++/Qt classes to interface with The Echo Nest API")
3655 (description "@code{libechonest} is a collection of C++/Qt classes
3656designed to make a developer's life easy when trying to use the APIs provided
3657by The Echo Nest.")
3658 (license license:gpl2+)))
43925703
PL
3659
3660(define-public libmygpo-qt
3661 (package
3662 (name "libmygpo-qt")
3663 (version "1.0.9")
3664 (source (origin
3665 (method url-fetch)
3666 (uri (string-append "http://stefan.derkits.at/files/"
3667 "libmygpo-qt/libmygpo-qt." version ".tar.gz"))
3668 (sha256
3669 (base32
3670 "1wsgh2vjnd52rkvpncj1ycpbp84sj9hh12ija46b42z9mmqf2jm4"))
3671 (patches
3672 (search-patches "libmygpo-qt-fix-jsoncreatortest.patch"))))
3673 (build-system cmake-build-system)
3674 (arguments
3675 '(#:configure-flags '("-DBUILD_WITH_QT4=OFF")))
3676 (native-inputs
3677 `(("pkg-config" ,pkg-config)))
3678 (inputs
3679 `(("qt" ,qtbase)))
3680 (home-page "http://wiki.gpodder.org/wiki/Libmygpo-qt")
3681 (synopsis "Qt/C++ library wrapping the gpodder web service")
3682 (description "@code{libmygpo-qt} is a Qt/C++ library wrapping the
3683@url{https://gpodder.net} APIs. It allows applications to discover, manage
3684and track podcasts.")
3685 (license license:lgpl2.1+)))
f7ce2134
RW
3686
3687(define-public sonivox-eas
3688 (package
3689 (name "sonivox-eas")
3690 (version "1.1.0")
3691 (source (origin
3692 (method git-fetch)
3693 (uri (git-reference
3694 (url "https://github.com/pedrolcl/Linux-SonivoxEas.git")
3695 (commit (string-append "v" version))))
3696 (file-name (string-append name "-" version "-checkout"))
3697 (sha256
3698 (base32
3699 "0l9gs00p5g4k4qy6i7nv1mfi2n2wnsycwjrgrh9hxzam4irf2mw2"))))
3700 (build-system cmake-build-system)
3701 (arguments '(#:tests? #f)) ; there are no tests
3702 (inputs
3703 `(("alsa-lib" ,alsa-lib)
3704 ("drumstick" ,drumstick)
3705 ("pulseaudio" ,pulseaudio)
3706 ("qtbase" ,qtbase)))
3707 (native-inputs
3708 `(("pkg-config" ,pkg-config)))
3709 (home-page "https://github.com/pedrolcl/Linux-SonivoxEas")
3710 (synopsis "MIDI synthesizer library")
3711 (description "This project is a real time General MIDI synthesizer based
3712on the Sonivox EAS Synthesizer by Google. It does not need external
3713soundfonts, using embedded samples instead.")
3714 ;; Sonivox is released under the ASL2.0; the rest of the code is under
3715 ;; GPLv2+.
3716 (license (list license:gpl2+ license:asl2.0))))
92b36e3a
RW
3717
3718(define-public whysynth
3719 (package
3720 (name "whysynth")
3721 (version "20170701")
3722 (source (origin
3723 (method url-fetch)
3724 (uri (string-append "http://smbolton.com/whysynth/whysynth-"
3725 version ".tar.bz2"))
3726 (sha256
3727 (base32
3728 "02qbn0hbvn1iym4zxv35b201blg31yjpgh71h8db0j5zls2xc0m6"))))
3729 (build-system gnu-build-system)
3730 (inputs
3731 `(("dssi" ,dssi)
3732 ("liblo" ,liblo)
3733 ("fftwf" ,fftwf)
3734 ("gtk+" ,gtk+-2)
3735 ("ladspa" ,ladspa)
3736 ("alsa-lib" ,alsa-lib)))
3737 (native-inputs
3738 `(("pkg-config" ,pkg-config)))
3739 (home-page "http://smbolton.com/whysynth.html")
3740 (synopsis "DSSI software synthesizer")
3741 (description "WhySynth is a versatile softsynth which operates as a plugin
3742for the DSSI Soft Synth Interface. A brief list of features:
3743
3744@enumerate
3745@item 4 oscillators, 2 filters, 3 LFOs, and 5 envelope generators per voice.
3746@item 11 oscillator modes: minBLEP, wavecycle, chorused wavecycle,
3747 asynchronous granular, three FM modes, waveshaper, noise, PADsynth, and phase
3748 distortion.
3749@item 10 filter modes.
3750@item flexible modulation and mixdown options, plus effects.
3751@end enumerate
3752")
3753 (license license:gpl2+)))