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