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