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