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