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