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