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