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