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