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