Commit | Line | Data |
---|---|---|
1b6826d3 | 1 | ;;; GNU Guix --- Functional package management for GNU |
658212eb | 2 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
a763ce7d | 3 | ;;; Copyright © 2015, 2016 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> |
b7367762 | 6 | ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> |
3f7a182d | 7 | ;;; Copyright © 2016 Leo Famulari <leo@famulari.name> |
21f05134 | 8 | ;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org> |
6d3ef286 | 9 | ;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net> |
23319ed6 | 10 | ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com> |
1b6826d3 RW |
11 | ;;; |
12 | ;;; This file is part of GNU Guix. | |
13 | ;;; | |
14 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
15 | ;;; under the terms of the GNU General Public License as published by | |
16 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
17 | ;;; your option) any later version. | |
18 | ;;; | |
19 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
20 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 | ;;; GNU General Public License for more details. | |
23 | ;;; | |
24 | ;;; You should have received a copy of the GNU General Public License | |
25 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
26 | ||
27 | (define-module (gnu packages music) | |
28 | #:use-module (guix utils) | |
29 | #:use-module (guix packages) | |
30 | #:use-module (guix download) | |
8e80244a | 31 | #:use-module (guix git-download) |
1b6826d3 RW |
32 | #:use-module ((guix licenses) #:prefix license:) |
33 | #:use-module (guix build-system gnu) | |
f467c352 | 34 | #:use-module (guix build-system ant) |
8b9ec354 | 35 | #:use-module (guix build-system cmake) |
821664f1 | 36 | #:use-module (guix build-system python) |
8e80244a | 37 | #:use-module (guix build-system waf) |
1b6826d3 | 38 | #:use-module (gnu packages) |
ddfddb0c | 39 | #:use-module (gnu packages algebra) |
c267cc15 | 40 | #:use-module (gnu packages audio) |
2d0fd07b | 41 | #:use-module (gnu packages autotools) |
b7367762 | 42 | #:use-module (gnu packages backup) |
8b9ec354 | 43 | #:use-module (gnu packages base) ;libbdf |
1b6826d3 | 44 | #:use-module (gnu packages bison) |
b7367762 | 45 | #:use-module (gnu packages boost) |
e8069d01 | 46 | #:use-module (gnu packages cdrom) |
8b9ec354 RW |
47 | #:use-module (gnu packages code) |
48 | #:use-module (gnu packages check) | |
49 | #:use-module (gnu packages compression) | |
aa0edd3f | 50 | #:use-module (gnu packages curl) |
13416a10 | 51 | #:use-module (gnu packages cyrus-sasl) |
1b6826d3 | 52 | #:use-module (gnu packages docbook) |
99828fa7 | 53 | #:use-module (gnu packages documentation) |
13416a10 | 54 | #:use-module (gnu packages file) |
1b6826d3 | 55 | #:use-module (gnu packages flex) |
8e80244a | 56 | #:use-module (gnu packages fltk) |
1b6826d3 RW |
57 | #:use-module (gnu packages fonts) |
58 | #:use-module (gnu packages fontutils) | |
3bf429af | 59 | #:use-module (gnu packages freedesktop) |
6260d1a8 | 60 | #:use-module (gnu packages gcc) |
aa0edd3f | 61 | #:use-module (gnu packages gnupg) |
1b6826d3 RW |
62 | #:use-module (gnu packages gettext) |
63 | #:use-module (gnu packages ghostscript) | |
ec8da0e2 | 64 | #:use-module (gnu packages gl) |
8e80244a | 65 | #:use-module (gnu packages glib) |
c267cc15 | 66 | #:use-module (gnu packages gnome) |
770305f4 | 67 | #:use-module (gnu packages graphics) |
1b6826d3 RW |
68 | #:use-module (gnu packages gtk) |
69 | #:use-module (gnu packages guile) | |
c267cc15 | 70 | #:use-module (gnu packages image) |
1b6826d3 | 71 | #:use-module (gnu packages imagemagick) |
6260d1a8 | 72 | #:use-module (gnu packages java) |
c267cc15 RW |
73 | #:use-module (gnu packages linux) ; for alsa-utils |
74 | #:use-module (gnu packages man) | |
75 | #:use-module (gnu packages mp3) | |
3bf429af | 76 | #:use-module (gnu packages mpd) |
e8069d01 | 77 | #:use-module (gnu packages ncurses) |
1b6826d3 | 78 | #:use-module (gnu packages netpbm) |
821664f1 | 79 | #:use-module (gnu packages pdf) |
1b6826d3 RW |
80 | #:use-module (gnu packages perl) |
81 | #:use-module (gnu packages pkg-config) | |
d231bb35 | 82 | #:use-module (gnu packages pulseaudio) ;libsndfile |
1b6826d3 | 83 | #:use-module (gnu packages python) |
8b9ec354 | 84 | #:use-module (gnu packages qt) |
d231bb35 | 85 | #:use-module (gnu packages rdf) |
c493679f | 86 | #:use-module (gnu packages readline) |
1b6826d3 | 87 | #:use-module (gnu packages rsync) |
21d18113 | 88 | #:use-module (gnu packages sdl) |
2d0fd07b | 89 | #:use-module (gnu packages tcl) |
1b6826d3 | 90 | #:use-module (gnu packages texinfo) |
8f9ac901 | 91 | #:use-module (gnu packages tex) |
13416a10 | 92 | #:use-module (gnu packages tls) |
e8069d01 | 93 | #:use-module (gnu packages video) |
8b9ec354 | 94 | #:use-module (gnu packages web) |
c30a66de | 95 | #:use-module (gnu packages wxwidgets) |
c267cc15 | 96 | #:use-module (gnu packages xml) |
ddfddb0c | 97 | #:use-module (gnu packages xorg) |
c267cc15 | 98 | #:use-module (gnu packages xiph) |
2d0fd07b RW |
99 | #:use-module (gnu packages zip) |
100 | #:use-module ((srfi srfi-1) #:select (last))) | |
1b6826d3 | 101 | |
c30a66de RW |
102 | (define-public aria-maestosa |
103 | (package | |
104 | (name "aria-maestosa") | |
105 | (version "1.4.11") | |
106 | (source (origin | |
107 | (method url-fetch) | |
108 | (uri (string-append "mirror://sourceforge/ariamaestosa/ariamaestosa/" | |
109 | version "/AriaSrc-" version ".tar.bz2")) | |
110 | (sha256 | |
111 | (base32 | |
112 | "0gf9z96z83jiabxhpl856j15vl9flfgs6x1r0r6hc7g2xvwag0vy")))) | |
113 | (build-system gnu-build-system) | |
114 | (arguments | |
115 | `(#:tests? #f ;no tests | |
116 | #:phases | |
117 | ;; TODO: Add scons-build-system and use it here. | |
118 | (modify-phases %standard-phases | |
119 | (delete 'configure) | |
120 | (add-after 'unpack 'scons-propagate-environment | |
121 | (lambda _ | |
122 | ;; By design, SCons does not, by default, propagate | |
123 | ;; environment variables to subprocesses. See: | |
124 | ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969> | |
125 | ;; Here, we modify the SConstruct file to arrange for | |
126 | ;; environment variables to be propagated. | |
127 | (substitute* "SConstruct" | |
128 | (("env = Environment\\(\\)") | |
129 | "env = Environment(ENV=os.environ)") | |
130 | ;; Scons errors out when copying subdirectories from Resources, | |
131 | ;; so we move them instead. | |
132 | (("Copy") "Move") | |
133 | ;; We move the "score" and "Documentation" directories at once, | |
134 | ;; so we have to ignore files contained therein. | |
135 | (("if \".svn\" in file" line) | |
136 | (string-append line | |
137 | " or \"score/\" in file" | |
138 | " or \"Documentation/\" in file"))) | |
139 | #t)) | |
140 | (replace 'build (lambda _ (zero? (system* "scons")))) | |
141 | (replace 'install | |
142 | (lambda* (#:key outputs #:allow-other-keys) | |
143 | (let ((out (assoc-ref outputs "out"))) | |
144 | (and | |
145 | (zero? (system* "scons" | |
146 | (string-append "prefix=" out) | |
147 | "install")) | |
148 | ;; Fix directory permissions | |
149 | (begin | |
150 | (chmod (string-append out "/share/Aria/Documentation") #o555) | |
151 | (chmod (string-append out "/share/Aria/score") #o555) | |
152 | #t)))))))) | |
153 | (inputs | |
154 | `(("wxwidgets" ,wxwidgets) | |
155 | ("glib" ,glib) | |
156 | ("alsa-lib" ,alsa-lib))) | |
157 | (native-inputs | |
158 | `(("scons" ,scons) | |
159 | ("pkg-config" ,pkg-config))) | |
160 | (home-page "http://ariamaestosa.sourceforge.net/") | |
161 | (synopsis "MIDI sequencer and editor") | |
162 | (description | |
163 | "Aria Maestosa is a MIDI sequencer and editor. It lets you compose, edit | |
164 | and play MIDI files with a few clicks in a user-friendly interface offering | |
165 | score, keyboard, guitar, drum and controller views.") | |
166 | (license license:gpl3+))) | |
167 | ||
e8069d01 PW |
168 | (define-public cmus |
169 | (package | |
170 | (name "cmus") | |
171 | (version "2.7.1") | |
172 | (source (origin | |
173 | (method url-fetch) | |
174 | (uri (string-append | |
175 | "https://github.com/" name "/" name "/archive/v" | |
176 | version ".tar.gz")) | |
566fc7fa | 177 | (file-name (string-append name "-" version ".tar.gz")) |
e8069d01 PW |
178 | (sha256 |
179 | (base32 | |
180 | "0raixgjavkm7hxppzsc5zqbfbh2bhjcmbiplhnsxsmyj8flafyc1")))) | |
181 | (build-system gnu-build-system) | |
182 | (arguments | |
183 | `(#:tests? #f ; cmus does not include tests | |
184 | #:phases | |
185 | (modify-phases %standard-phases | |
186 | (replace | |
187 | 'configure | |
188 | (lambda* (#:key outputs #:allow-other-keys) | |
189 | (let ((out (assoc-ref outputs "out"))) | |
190 | ||
191 | ;; It's an idiosyncratic configure script that doesn't | |
192 | ;; understand --prefix=..; it wants prefix=.. instead. | |
193 | (zero? | |
194 | (system* "./configure" | |
195 | (string-append "prefix=" out))))))))) | |
196 | ;; TODO: cmus optionally supports the following formats, which haven't yet | |
197 | ;; been added to Guix: | |
198 | ;; | |
199 | ;; - Roar, libroar | |
200 | ;; | |
201 | ;; - DISCID_LIBS, apparently different from cd-discid which is included in | |
202 | ;; Guix. See <http://sourceforge.net/projects/discid/> | |
203 | (native-inputs | |
204 | `(("pkg-config" ,pkg-config))) | |
205 | (inputs | |
206 | `(("alsa-lib" ,alsa-lib) | |
207 | ("ao" ,ao) | |
208 | ("ffmpeg" ,ffmpeg) | |
209 | ("flac" ,flac) | |
210 | ("jack" ,jack-1) | |
211 | ("libcddb" ,libcddb) | |
212 | ("libcdio-paranoia" ,libcdio-paranoia) | |
213 | ("libcue" ,libcue) | |
214 | ("libmad" ,libmad) | |
215 | ("libmodplug" ,libmodplug) | |
216 | ("libmpcdec" ,libmpcdec) | |
217 | ("libsamplerate" ,libsamplerate) | |
218 | ("libvorbis" ,libvorbis) | |
219 | ("ncurses" ,ncurses) | |
220 | ("opusfile" ,opusfile) | |
221 | ("pulseaudio" ,pulseaudio) | |
222 | ("wavpack" ,wavpack))) | |
223 | (home-page "https://cmus.github.io/") | |
224 | (synopsis "Small console music player") | |
225 | (description "Cmus is a small and fast console music player. It supports | |
226 | many input formats and provides a customisable Vi-style user interface.") | |
227 | (license license:gpl2+))) | |
228 | ||
d231bb35 RW |
229 | (define-public hydrogen |
230 | (package | |
231 | (name "hydrogen") | |
b7367762 | 232 | (version "0.9.6.1") |
d231bb35 RW |
233 | (source (origin |
234 | (method url-fetch) | |
235 | (uri (string-append | |
b7367762 EF |
236 | "https://github.com/hydrogen-music/hydrogen/archive/" |
237 | version ".tar.gz")) | |
d231bb35 RW |
238 | (sha256 |
239 | (base32 | |
b7367762 EF |
240 | "0vxnaqfmcv7hhk0cj67imdcqngspnck7f0wfmvhfgfqa7x1xznll")))) |
241 | (build-system cmake-build-system) | |
d231bb35 | 242 | (arguments |
b7367762 | 243 | `(#:test-target "tests")) |
d231bb35 | 244 | (native-inputs |
b7367762 | 245 | `(("cppunit" ,cppunit) |
d231bb35 RW |
246 | ("pkg-config" ,pkg-config))) |
247 | (inputs | |
b7367762 | 248 | `(("alsa-lib" ,alsa-lib) |
d231bb35 | 249 | ("jack" ,jack-1) |
b7367762 | 250 | ;; ("ladspa" ,ladspa) ; cannot find during configure |
d231bb35 | 251 | ("lash" ,lash) |
b7367762 EF |
252 | ("libarchive" ,libarchive) |
253 | ("libsndfile" ,libsndfile) | |
254 | ("libtar" ,libtar) | |
255 | ("lrdf" ,lrdf) | |
d231bb35 | 256 | ("qt" ,qt-4) |
b7367762 | 257 | ("zlib" ,zlib))) |
d231bb35 RW |
258 | (home-page "http://www.hydrogen-music.org") |
259 | (synopsis "Drum machine") | |
260 | (description | |
261 | "Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to | |
262 | enable professional yet simple and intuitive pattern-based drum programming.") | |
263 | (license license:gpl2+))) | |
264 | ||
8c454dcd RW |
265 | (define-public klick |
266 | (package | |
267 | (name "klick") | |
268 | (version "0.12.2") | |
269 | (source (origin | |
270 | (method url-fetch) | |
271 | (uri (string-append "http://das.nasophon.de/download/klick-" | |
272 | version ".tar.gz")) | |
273 | (sha256 | |
274 | (base32 | |
275 | "0hmcaywnwzjci3pp4xpvbijnnwvibz7gf9xzcdjbdca910y5728j")))) | |
276 | (build-system gnu-build-system) | |
277 | (arguments | |
278 | `(#:tests? #f ;no "check" target | |
279 | #:phases | |
280 | ;; TODO: Add scons-build-system and use it here. | |
281 | (modify-phases %standard-phases | |
282 | (delete 'configure) | |
283 | (replace 'build | |
284 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
285 | (let ((out (assoc-ref outputs "out"))) | |
286 | (mkdir-p out) | |
287 | (zero? (system* "scons" (string-append "PREFIX=" out)))))) | |
288 | (replace 'install (lambda _ (zero? (system* "scons" "install"))))))) | |
289 | (inputs | |
290 | `(("boost" ,boost) | |
291 | ("jack" ,jack-1) | |
292 | ("libsndfile" ,libsndfile) | |
293 | ("libsamplerate" ,libsamplerate) | |
294 | ("liblo" ,liblo) | |
295 | ("rubberband" ,rubberband))) | |
296 | (native-inputs | |
297 | `(("scons" ,scons) | |
298 | ("python" ,python-2) | |
299 | ("pkg-config" ,pkg-config))) | |
300 | (home-page "http://das.nasophon.de/klick/") | |
301 | (synopsis "Metronome for JACK") | |
302 | (description | |
303 | "klick is an advanced command-line based metronome for JACK. It allows | |
304 | you to define complex tempo maps for entire songs or performances.") | |
305 | (license license:gpl2+))) | |
306 | ||
048bfba1 RW |
307 | (define-public gtklick |
308 | (package | |
309 | (name "gtklick") | |
310 | (version "0.6.4") | |
311 | (source (origin | |
312 | (method url-fetch) | |
313 | (uri (string-append "http://das.nasophon.de/download/gtklick-" | |
314 | version ".tar.gz")) | |
315 | (sha256 | |
316 | (base32 | |
317 | "0dq1km6njnzsqdqyf6wzir9g733z0mc9vmxfg2383k3c2a2di6bp")))) | |
318 | (build-system python-build-system) | |
319 | (arguments | |
320 | `(#:tests? #f ; no tests | |
321 | #:python ,python-2 | |
322 | #:phases | |
323 | (modify-phases %standard-phases | |
324 | (add-before 'build 'add-sitedirs | |
325 | ;; .pth files are not automatically interpreted unless the | |
326 | ;; directories containing them are added as "sites". The directories | |
327 | ;; are then added to those in the PYTHONPATH. This is required for | |
328 | ;; the operation of pygtk. | |
329 | (lambda _ | |
330 | (substitute* "gtklick/gtklick.py" | |
331 | (("import pygtk") | |
332 | "import pygtk, site, sys | |
333 | for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)")))) | |
334 | (add-after 'unpack 'inject-store-path-to-klick | |
335 | (lambda* (#:key inputs #:allow-other-keys) | |
336 | (substitute* "gtklick/klick_backend.py" | |
337 | (("KLICK_PATH = 'klick'") | |
338 | (string-append "KLICK_PATH = '" | |
339 | (assoc-ref inputs "klick") | |
340 | "/bin/klick'"))) | |
341 | #t))))) | |
342 | (inputs | |
343 | `(("klick" ,klick) | |
344 | ("python2-pyliblo" ,python2-pyliblo) | |
345 | ("python2-pygtk" ,python2-pygtk))) | |
346 | (native-inputs | |
347 | `(("gettext" ,gnu-gettext))) | |
348 | (home-page "http://das.nasophon.de/gtklick/") | |
349 | (synopsis "Simple metronome with an easy-to-use graphical interface") | |
350 | (description | |
351 | "Gtklick is a simple metronome with an easy-to-use graphical user | |
352 | interface. It is implemented as a frontend to @code{klick}.") | |
353 | (license license:gpl2+))) | |
354 | ||
1b6826d3 RW |
355 | (define-public lilypond |
356 | (package | |
357 | (name "lilypond") | |
398abcf8 | 358 | (version "2.19.33") |
1b6826d3 RW |
359 | (source (origin |
360 | (method url-fetch) | |
361 | (uri (string-append | |
362 | "http://download.linuxaudio.org/lilypond/sources/v" | |
363 | (version-major+minor version) "/" | |
364 | name "-" version ".tar.gz")) | |
365 | (sha256 | |
366 | (base32 | |
398abcf8 | 367 | "0s4vbbfy4xwq4da4kmlnndalmcyx2jaz7y8praah2146qbnr90xh")))) |
1b6826d3 RW |
368 | (build-system gnu-build-system) |
369 | (arguments | |
127b04d7 | 370 | `(#:tests? #f ; out-test/collated-files.html fails |
1b6826d3 | 371 | #:out-of-source? #t |
409be57b | 372 | #:make-flags '("conf=www") ;to generate images for info manuals |
127b04d7 | 373 | #:configure-flags |
409be57b RW |
374 | (list "CONFIGURATION=www" |
375 | (string-append "--with-texgyre-dir=" | |
127b04d7 RW |
376 | (assoc-ref %build-inputs "font-tex-gyre") |
377 | "/share/fonts/opentype/")) | |
1b6826d3 | 378 | #:phases |
a8bc747a | 379 | (modify-phases %standard-phases |
409be57b RW |
380 | (add-after 'unpack 'fix-path-references |
381 | (lambda _ | |
a8bc747a RW |
382 | (substitute* "scm/backend-library.scm" |
383 | (("\\(search-executable '\\(\"gs\"\\)\\)") | |
409be57b RW |
384 | (string-append "\"" (which "gs") "\"")) |
385 | (("\"/bin/sh\"") | |
386 | (string-append "\"" (which "sh") "\""))) | |
a8bc747a RW |
387 | #t)) |
388 | (add-before 'configure 'prepare-configuration | |
389 | (lambda _ | |
390 | (substitute* "configure" | |
7affb2c1 RW |
391 | (("SHELL=/bin/sh") "SHELL=sh") |
392 | ;; When checking the fontforge version do not consider the | |
393 | ;; version string that's part of the directory. | |
394 | (("head -n") "tail -n")) | |
409be57b RW |
395 | (setenv "out" "www") |
396 | (setenv "conf" "www") | |
397 | #t)) | |
398 | (add-after 'install 'install-info | |
399 | (lambda _ | |
400 | (zero? (system* "make" | |
401 | "-j" (number->string (parallel-job-count)) | |
402 | "conf=www" "install-info"))))))) | |
1b6826d3 RW |
403 | (inputs |
404 | `(("guile" ,guile-1.8) | |
405 | ("font-dejavu" ,font-dejavu) | |
127b04d7 | 406 | ("font-tex-gyre" ,font-tex-gyre) |
1b6826d3 RW |
407 | ("fontconfig" ,fontconfig) |
408 | ("freetype" ,freetype) | |
fb0b9ff1 | 409 | ("ghostscript" ,ghostscript) |
1b6826d3 RW |
410 | ("pango" ,pango) |
411 | ("python" ,python-2))) | |
412 | (native-inputs | |
413 | `(("bison" ,bison) | |
414 | ("perl" ,perl) | |
415 | ("flex" ,flex) | |
416 | ("fontforge" ,fontforge) | |
417 | ("dblatex" ,dblatex) | |
418 | ("gettext" ,gnu-gettext) | |
419 | ("imagemagick" ,imagemagick) | |
420 | ("netpbm" ,netpbm) ;for pngtopnm | |
421 | ("texlive" ,texlive) ;metafont and metapost | |
422 | ("texinfo" ,texinfo) | |
423 | ("texi2html" ,texi2html) | |
424 | ("rsync" ,rsync) | |
425 | ("pkg-config" ,pkg-config) | |
426 | ("zip" ,zip))) | |
427 | (home-page "http://www.lilypond.org/") | |
428 | (synopsis "Music typesetting") | |
429 | (description | |
430 | "GNU LilyPond is a music typesetter, which produces high-quality sheet | |
431 | music. Music is input in a text file containing control sequences which are | |
432 | interpreted by LilyPond to produce the final document. It is extendable with | |
433 | Guile.") | |
55ca5e80 LC |
434 | (license license:gpl3+) |
435 | ||
436 | ;; On armhf and mips64el, building the documentation sometimes leads to | |
437 | ;; more than an hour of silence, so double the max silent time. | |
438 | (properties `((max-silent-time . 7200))))) | |
c267cc15 | 439 | |
8e80244a RW |
440 | (define-public non-sequencer |
441 | ;; The latest tagged release is three years old and uses a custom build | |
442 | ;; system, so we take the last commit affecting the "sequencer" directory. | |
698bd297 | 443 | (let ((commit "1d9bd576f6bf7ea240af5f7a60260592750af0dd")) |
8e80244a RW |
444 | (package |
445 | (name "non-sequencer") | |
698bd297 | 446 | (version (string-append "1.9.5-" (string-take commit 7))) |
8e80244a RW |
447 | (source (origin |
448 | (method git-fetch) | |
449 | (uri (git-reference | |
450 | (url "git://git.tuxfamily.org/gitroot/non/non.git") | |
451 | (commit commit))) | |
452 | (sha256 | |
453 | (base32 | |
454 | "0pkkw8q6d55j38xm7r4rwpdv1wy00a44h8c4wrn7vbgpq9nij46y")) | |
455 | (file-name (string-append name "-" version "-checkout")))) | |
456 | (build-system waf-build-system) | |
457 | (arguments | |
458 | `(#:tests? #f ;no "check" target | |
e591a4d6 RW |
459 | #:configure-flags |
460 | (list "--project=sequencer" | |
461 | ;; Disable the use of SSE unless on x86_64. | |
462 | ,@(if (not (string-prefix? "x86_64" (or (%current-target-system) | |
463 | (%current-system)))) | |
464 | '("--disable-sse") | |
465 | '())) | |
d8c317df SB |
466 | #:phases |
467 | (modify-phases %standard-phases | |
468 | (add-before | |
469 | 'configure 'set-flags | |
470 | (lambda _ | |
471 | ;; Compile with C++11, required by libsigc++. | |
472 | (setenv "CXXFLAGS" "-std=c++11") | |
473 | #t))) | |
8e80244a RW |
474 | #:python ,python-2)) |
475 | (inputs | |
476 | `(("jack" ,jack-1) | |
477 | ("libsigc++" ,libsigc++) | |
478 | ("liblo" ,liblo) | |
479 | ("ntk" ,ntk))) | |
480 | (native-inputs | |
481 | `(("pkg-config" ,pkg-config))) | |
482 | (home-page "http://non.tuxfamily.org/wiki/Non%20Sequencer") | |
483 | (synopsis "Pattern-based MIDI sequencer") | |
484 | (description | |
485 | "The Non Sequencer is a powerful, lightweight, real-time, | |
486 | pattern-based MIDI sequencer. It utilizes the JACK Audio Connection Kit for | |
487 | MIDI I/O and the NTK GUI toolkit for its user interface. Everything in Non | |
488 | Sequencer happens on-line, in real-time. Music can be composed live, while the | |
489 | transport is rolling.") | |
490 | (license license:gpl2+)))) | |
491 | ||
c267cc15 RW |
492 | (define-public solfege |
493 | (package | |
494 | (name "solfege") | |
495 | (version "3.22.2") | |
496 | (source (origin | |
497 | (method url-fetch) | |
498 | (uri (string-append | |
499 | "mirror://gnu/solfege/solfege-" | |
500 | version ".tar.xz")) | |
501 | (sha256 | |
502 | (base32 | |
503 | "1w25rxdbj907nsx285k9nm480pvy12w3yknfh4n1dfv17cwy072i")))) | |
504 | (build-system gnu-build-system) | |
505 | (arguments | |
506 | `(#:tests? #f ; xmllint attempts to download DTD | |
507 | #:test-target "test" | |
508 | #:phases | |
509 | (alist-cons-after | |
510 | 'unpack 'fix-configuration | |
511 | (lambda* (#:key inputs #:allow-other-keys) | |
512 | (substitute* "default.config" | |
513 | (("csound=csound") | |
514 | (string-append "csound=" | |
515 | (assoc-ref inputs "csound") | |
516 | "/bin/csound")) | |
517 | (("/usr/bin/aplay") | |
518 | (string-append (assoc-ref inputs "aplay") | |
519 | "/bin/aplay")) | |
520 | (("/usr/bin/timidity") | |
521 | (string-append (assoc-ref inputs "timidity") | |
522 | "/bin/timidity")) | |
523 | (("/usr/bin/mpg123") | |
524 | (string-append (assoc-ref inputs "mpg123") | |
525 | "/bin/mpg123")) | |
526 | (("/usr/bin/ogg123") | |
527 | (string-append (assoc-ref inputs "ogg123") | |
528 | "/bin/ogg123")))) | |
529 | (alist-cons-before | |
530 | 'build 'patch-python-shebangs | |
531 | (lambda _ | |
532 | ;; Two python scripts begin with a Unicode BOM, so patch-shebang | |
533 | ;; has no effect. | |
534 | (substitute* '("solfege/parsetree.py" | |
535 | "solfege/presetup.py") | |
536 | (("#!/usr/bin/python") (string-append "#!" (which "python"))))) | |
537 | (alist-cons-before | |
538 | 'build 'add-sitedirs | |
539 | ;; .pth files are not automatically interpreted unless the | |
540 | ;; directories containing them are added as "sites". The directories | |
541 | ;; are then added to those in the PYTHONPATH. This is required for | |
542 | ;; the operation of pygtk and pygobject. | |
543 | (lambda _ | |
544 | (substitute* "run-solfege.py" | |
545 | (("import os") | |
546 | "import os, site | |
547 | for path in [path for path in sys.path if 'site-packages' in path]: site.addsitedir(path)"))) | |
548 | (alist-cons-before | |
549 | 'build 'adjust-config-file-prefix | |
550 | (lambda* (#:key outputs #:allow-other-keys) | |
551 | (substitute* "run-solfege.py" | |
552 | (("prefix = os.path.*$") | |
553 | (string-append "prefix = " (assoc-ref outputs "out"))))) | |
554 | (alist-cons-after | |
555 | 'install 'wrap-program | |
556 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
f3045a5b | 557 | ;; Make sure 'solfege' runs with the correct PYTHONPATH. |
c267cc15 | 558 | (let* ((out (assoc-ref outputs "out")) |
f3045a5b | 559 | (path (getenv "PYTHONPATH"))) |
c267cc15 | 560 | (wrap-program (string-append out "/bin/solfege") |
f3045a5b | 561 | `("PYTHONPATH" ":" prefix (,path))))) |
c267cc15 RW |
562 | %standard-phases))))))) |
563 | (inputs | |
564 | `(("python" ,python-2) | |
565 | ("pygtk" ,python2-pygtk) | |
566 | ("gettext" ,gnu-gettext) | |
567 | ("gtk" ,gtk+) | |
e8309291 | 568 | ("lilypond" ,lilypond) |
c267cc15 RW |
569 | ;; players needed at runtime |
570 | ("aplay" ,alsa-utils) | |
571 | ("csound" ,csound) ; optional, needed for some exercises | |
572 | ("mpg123" ,mpg123) | |
573 | ("ogg123" ,vorbis-tools) | |
574 | ("timidity" ,timidity++))) | |
575 | (native-inputs | |
576 | `(("pkg-config" ,pkg-config) | |
577 | ("txt2man" ,txt2man) | |
578 | ("libxml2" ,libxml2) ; for tests | |
579 | ("ghostscript" ,ghostscript) | |
c267cc15 RW |
580 | ("texinfo" ,texinfo))) |
581 | (home-page "https://www.gnu.org/software/solfege/") | |
582 | (synopsis "Ear training") | |
583 | (description | |
584 | "GNU Solfege is a program for practicing musical ear-training. With it, | |
585 | you can practice your recognition of various musical intervals and chords. It | |
586 | features a statistics overview so you can monitor your progress across several | |
587 | sessions. Solfege is also designed to be extensible so you can easily write | |
588 | your own lessons.") | |
589 | (license license:gpl3+))) | |
6260d1a8 | 590 | |
8b9ec354 RW |
591 | (define-public powertabeditor |
592 | (package | |
593 | (name "powertabeditor") | |
d19cf783 | 594 | (version "2.0.0-alpha8") |
8b9ec354 RW |
595 | (source (origin |
596 | (method url-fetch) | |
597 | (uri (string-append | |
598 | "https://github.com/powertab/powertabeditor/archive/" | |
599 | version ".tar.gz")) | |
600 | (file-name (string-append name "-" version ".tar.gz")) | |
601 | (sha256 | |
602 | (base32 | |
d19cf783 | 603 | "0gaa2x209v3azql8ak3r1n9a9qbxjx2ssirvwdxwklv2lmfqkm82")) |
8b9ec354 RW |
604 | (modules '((guix build utils))) |
605 | (snippet | |
606 | '(begin | |
607 | ;; Remove bundled sources for external libraries | |
608 | (delete-file-recursively "external") | |
609 | (substitute* "CMakeLists.txt" | |
610 | (("include_directories\\(\\$\\{PROJECT_SOURCE_DIR\\}/external/.*") "") | |
8b9ec354 RW |
611 | (("add_subdirectory\\(external\\)") "")) |
612 | (substitute* "test/CMakeLists.txt" | |
613 | (("include_directories\\(\\$\\{PROJECT_SOURCE_DIR\\}/external/.*") "")) | |
614 | ||
615 | ;; Add install target | |
616 | (substitute* "source/CMakeLists.txt" | |
617 | (("qt5_use_modules") | |
618 | (string-append | |
619 | "install(TARGETS powertabeditor " | |
620 | "RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)\n" | |
621 | "install(FILES data/tunings.json DESTINATION " | |
622 | "${CMAKE_INSTALL_PREFIX}/share/powertabeditor/)\n" | |
623 | "qt5_use_modules"))) | |
624 | #t)))) | |
625 | (build-system cmake-build-system) | |
626 | (arguments | |
7e11d113 | 627 | `(#:modules ((guix build cmake-build-system) |
8b9ec354 RW |
628 | (guix build utils) |
629 | (ice-9 match)) | |
630 | #:configure-flags | |
631 | ;; CMake appears to lose the RUNPATH for some reason, so it has to be | |
632 | ;; explicitly set with CMAKE_INSTALL_RPATH. | |
7e11d113 RW |
633 | (list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE" |
634 | "-DCMAKE_ENABLE_PRECOMPILED_HEADERS=OFF" ; if ON pte_tests cannot be built | |
635 | (string-append "-DCMAKE_INSTALL_RPATH=" | |
8b9ec354 RW |
636 | (string-join (map (match-lambda |
637 | ((name . directory) | |
638 | (string-append directory "/lib"))) | |
639 | %build-inputs) ";"))) | |
640 | #:phases | |
641 | (modify-phases %standard-phases | |
7e11d113 RW |
642 | (replace |
643 | 'check | |
644 | (lambda _ | |
645 | (zero? (system* "bin/pte_tests" | |
646 | ;; Exclude this failing test | |
647 | "~Formats/PowerTabOldImport/Directions")))) | |
648 | (add-before | |
649 | 'configure 'fix-tests | |
650 | (lambda _ | |
651 | ;; Tests cannot be built with precompiled headers | |
652 | (substitute* "test/CMakeLists.txt" | |
653 | (("cotire\\(pte_tests\\)") "")) | |
654 | #t)) | |
8b9ec354 RW |
655 | (add-before |
656 | 'configure 'remove-third-party-libs | |
657 | (lambda* (#:key inputs #:allow-other-keys) | |
658 | ;; Link with required static libraries, because we're not | |
659 | ;; using the bundled version of withershins. | |
660 | (substitute* '("source/CMakeLists.txt" | |
661 | "test/CMakeLists.txt") | |
7e11d113 | 662 | (("target_link_libraries\\((powertabeditor|pte_tests)" _ target) |
8b9ec354 RW |
663 | (string-append "target_link_libraries(" target " " |
664 | (assoc-ref inputs "binutils") | |
665 | "/lib/libbfd.a " | |
d6902798 | 666 | (assoc-ref inputs "libiberty") |
8b9ec354 RW |
667 | "/lib/libiberty.a " |
668 | "dl"))) | |
669 | #t))))) | |
670 | (inputs | |
671 | `(("boost" ,boost) | |
672 | ("alsa-lib" ,alsa-lib) | |
0a0bfd68 | 673 | ("qtbase" ,qtbase) |
8b9ec354 | 674 | ("withershins" ,withershins) |
d6902798 | 675 | ("libiberty" ,libiberty) ;for withershins |
8b9ec354 RW |
676 | ("binutils" ,binutils) ;for -lbfd and -liberty (for withershins) |
677 | ("timidity" ,timidity++) | |
678 | ("pugixml" ,pugixml) | |
679 | ("rtmidi" ,rtmidi) | |
680 | ("rapidjson" ,rapidjson) | |
681 | ("zlib" ,zlib))) | |
682 | (native-inputs | |
683 | `(("catch" ,catch-framework) | |
684 | ("pkg-config" ,pkg-config))) | |
685 | (home-page "http://powertabs.net") | |
686 | (synopsis "Guitar tablature editor") | |
687 | (description | |
688 | "Power Tab Editor 2.0 is the successor to the famous original Power Tab | |
689 | Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.") | |
690 | (license license:gpl3+))) | |
691 | ||
b095e762 RW |
692 | (define-public synthv1 |
693 | (package | |
694 | (name "synthv1") | |
cb1436d8 | 695 | (version "0.7.5") |
b095e762 RW |
696 | (source (origin |
697 | (method url-fetch) | |
698 | (uri | |
de67e922 LF |
699 | (string-append "mirror://sourceforge/synthv1/synthv1/" version |
700 | "/synthv1-" version ".tar.gz")) | |
b095e762 RW |
701 | (sha256 |
702 | (base32 | |
cb1436d8 | 703 | "0h5zja78phf9705i9g54zh61iczb24iv7rxhljyms30sjgajig1y")))) |
b095e762 | 704 | (build-system gnu-build-system) |
69008d73 DC |
705 | (arguments |
706 | `(#:tests? #f ; There are no tests. | |
707 | #:configure-flags | |
708 | '("CXXFLAGS=-std=gnu++11"))) | |
b095e762 RW |
709 | (inputs |
710 | `(("jack" ,jack-1) | |
711 | ("lv2" ,lv2) | |
712 | ("alsa-lib" ,alsa-lib) | |
713 | ("liblo" ,liblo) | |
e5f2afdb EF |
714 | ("qtbase" ,qtbase) |
715 | ("qttools" ,qttools))) | |
b095e762 RW |
716 | (home-page "http://synthv1.sourceforge.net") |
717 | (synopsis "Polyphonic subtractive synthesizer") | |
718 | (description | |
719 | "Synthv1 is an old-school subtractive polyphonic synthesizer with four | |
720 | oscillators and stereo effects.") | |
721 | (license license:gpl2+))) | |
2bb00612 RW |
722 | |
723 | (define-public amsynth | |
724 | (package | |
725 | (name "amsynth") | |
726 | (version "1.6.4") | |
727 | (source | |
728 | (origin | |
729 | (method url-fetch) | |
730 | (uri (string-append "https://github.com/amsynth/amsynth/releases/" | |
731 | "download/release-" version | |
732 | "/amsynth-" version ".tar.bz2")) | |
733 | (sha256 | |
734 | (base32 | |
735 | "07dp9dl38g9krjqxxh89l2z42z08yzrl57cx95b1l67xnxwjp5k3")))) | |
736 | (build-system gnu-build-system) | |
737 | (arguments | |
738 | `(#:phases | |
739 | (modify-phases %standard-phases | |
740 | (add-before 'configure 'set-flags | |
741 | (lambda _ | |
742 | ;; Compile with C++11, required by gtkmm. | |
743 | (setenv "CXXFLAGS" "-std=c++11") | |
744 | #t))))) | |
745 | (inputs | |
746 | `(("alsa-lib" ,alsa-lib) | |
747 | ("jack" ,jack-1) | |
748 | ("lv2" ,lv2) | |
749 | ("libsndfile" ,libsndfile) | |
750 | ("gtk+" ,gtk+-2) | |
751 | ("gtkmm" ,gtkmm-2))) | |
752 | (native-inputs | |
753 | `(("pkg-config" ,pkg-config))) | |
754 | (home-page "http://amsynth.github.io") | |
755 | (synopsis "Analog modeling synthesizer") | |
756 | (description | |
757 | "amsynth is an easy-to-use software synthesizer with a classic | |
758 | subtractive synthesizer topology. Its features include: dual | |
759 | oscillators (sine, saw, square, noise) with hard sync; 12 and 24 dB/oct | |
760 | resonant filters (low-pass, high-pass, band-pass, notch); mono, poly, legato | |
761 | keyboard modes; dual ADSR envelope generators for filter and amplitude; LFO | |
762 | which can modulate the oscillators, filter, and amplitude; distortion and | |
763 | reverb effects.") | |
764 | (license license:gpl2+))) | |
b095e762 | 765 | |
ec8da0e2 RW |
766 | (define-public setbfree |
767 | (package | |
768 | (name "setbfree") | |
a39f48b8 | 769 | (version "0.8.1") |
ec8da0e2 RW |
770 | (source (origin |
771 | (method url-fetch) | |
772 | (uri | |
a39f48b8 RW |
773 | (string-append "https://github.com/pantherb/setBfree/archive/v" |
774 | version ".tar.gz")) | |
775 | (file-name (string-append name "-" version ".tar.gz")) | |
ec8da0e2 RW |
776 | (sha256 |
777 | (base32 | |
a39f48b8 | 778 | "0hj0rqk5yd4fzs7bwy6a6nhqgrmcggkjcr4il76rxy92r7nwabf3")))) |
ec8da0e2 RW |
779 | (build-system gnu-build-system) |
780 | (arguments | |
781 | `(#:tests? #f ; no "check" target | |
782 | #:make-flags | |
783 | (list (string-append "PREFIX=" (assoc-ref %outputs "out")) | |
784 | (string-append "FONTFILE=" | |
785 | (assoc-ref %build-inputs "font-bitstream-vera") | |
b42d4508 RW |
786 | "/share/fonts/truetype/VeraBd.ttf") |
787 | ;; Disable unsupported optimization flags on non-x86 | |
788 | ,@(let ((system (or (%current-target-system) | |
789 | (%current-system)))) | |
790 | (if (or (string-prefix? "x86_64" system) | |
791 | (string-prefix? "i686" system)) | |
792 | '() | |
793 | '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3")))) | |
ec8da0e2 RW |
794 | #:phases |
795 | (modify-phases %standard-phases | |
796 | (add-before 'build 'set-CC-variable | |
797 | (lambda _ (setenv "CC" "gcc") #t)) | |
798 | (delete 'configure)))) | |
799 | (inputs | |
800 | `(("jack" ,jack-1) | |
801 | ("lv2" ,lv2) | |
802 | ("zita-convolver" ,zita-convolver) | |
803 | ("glu" ,glu) | |
804 | ("ftgl" ,ftgl) | |
805 | ("font-bitstream-vera" ,font-bitstream-vera))) | |
806 | (native-inputs | |
807 | `(("help2man" ,help2man) | |
808 | ("pkg-config" ,pkg-config))) | |
809 | (home-page "http://setbfree.org") | |
810 | (synopsis "Tonewheel organ") | |
811 | (description | |
812 | "setBfree is a MIDI-controlled, software synthesizer designed to imitate | |
813 | the sound and properties of the electromechanical organs and sound | |
814 | modification devices that brought world-wide fame to the names and products of | |
815 | Laurens Hammond and Don Leslie.") | |
816 | (license license:gpl2+))) | |
817 | ||
770305f4 RW |
818 | (define-public beast |
819 | (package | |
820 | (name "beast") | |
821 | (version "0.10.0") | |
822 | (source (origin | |
823 | (method url-fetch) | |
824 | (uri (string-append "https://testbit.eu/pub/dists/beast/beast-" | |
825 | version ".tar.xz")) | |
826 | (sha256 | |
827 | (base32 | |
828 | "1jzzmfwssklzw8fvvil04n8csc0zm99fnd9p2xa7c0xchg37lvhn")))) | |
829 | (build-system gnu-build-system) | |
830 | (inputs | |
831 | `(("rapicorn" ,rapicorn) | |
832 | ("guile" ,guile-1.8) | |
833 | ("python" ,python-2) | |
834 | ("cython" ,python2-cython) | |
835 | ("libgnomecanvas" ,libgnomecanvas) | |
836 | ("libogg" ,libogg) | |
837 | ("libmad" ,libmad) | |
838 | ("flac" ,flac) | |
839 | ("alsa-lib" ,alsa-lib) | |
840 | ("libvorbis" ,libvorbis) | |
841 | ("gettext" ,gnu-gettext))) | |
842 | (native-inputs | |
843 | `(("pkg-config" ,pkg-config) | |
844 | ("glib:bin" ,glib "bin") | |
845 | ("perl" ,perl) | |
846 | ("perl-xml-parser" ,perl-xml-parser))) | |
847 | (home-page "https://testbit.eu/wiki/Beast_Home") | |
848 | (synopsis "Music composition and modular synthesis environment") | |
849 | (description | |
850 | "Beast is a music composition and modular synthesis application. It | |
851 | supports a wide range of standards in the field, such as MIDI, various audio | |
852 | file formats and LADSPA modules. It allows for multitrack editing, real-time | |
853 | synthesis, 32bit audio rendering, precise timing down to sample granularity, | |
854 | on-demand and partial loading of wave files, on the fly decoding, stereo | |
855 | mixing, FFT scopes, MIDI automation and full scriptability in Scheme.") | |
856 | (license license:gpl3+))) | |
857 | ||
96250294 RW |
858 | (define-public bristol |
859 | (package | |
860 | (name "bristol") | |
861 | (version "0.60.11") | |
862 | (source (origin | |
863 | (method url-fetch) | |
864 | (uri (string-append "mirror://sourceforge/bristol/bristol/" | |
865 | (version-major+minor version) | |
866 | "/bristol-" version ".tar.gz")) | |
867 | (sha256 | |
868 | (base32 | |
869 | "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx")))) | |
870 | (build-system gnu-build-system) | |
18ef998b RW |
871 | (arguments |
872 | `(#:phases | |
873 | (modify-phases %standard-phases | |
874 | (add-after 'unpack 'remove-sse-flags | |
875 | (lambda* (#:key system #:allow-other-keys) | |
876 | (when (not (or (string-prefix? "x86_64" system) | |
877 | (string-prefix? "i686" system))) | |
878 | (substitute* "bristol/Makefile.in" | |
879 | (("-msse -mfpmath=sse") ""))) | |
73124d34 RW |
880 | #t)) |
881 | ;; We know that Bristol has been linked with JACK and we don't have | |
882 | ;; ldd, so we can just skip this check. | |
883 | (add-after 'unpack 'do-not-grep-for-jack | |
884 | (lambda _ | |
885 | (substitute* "bin/startBristol.in" | |
886 | (("ldd `which bristol` | grep jack") "echo guix")) | |
18ef998b | 887 | #t))))) |
96250294 RW |
888 | (inputs |
889 | `(("alsa-lib" ,alsa-lib) | |
890 | ("jack" ,jack-1) | |
891 | ("liblo" ,liblo) | |
892 | ("libx11" ,libx11))) | |
893 | (native-inputs | |
894 | `(("pkg-config" ,pkg-config))) | |
895 | (home-page "http://bristol.sourceforge.net/") | |
896 | (synopsis "Synthesizer emulator") | |
897 | (description | |
898 | "Bristol is an emulation package for a number of different 'classic' | |
899 | synthesizers including additive and subtractive and a few organs. The | |
900 | application consists of the engine, which is called bristol, and its own GUI | |
901 | library called brighton that represents all the emulations. There are | |
902 | currently more than twenty different emulations; each does sound different | |
903 | although the author maintains that the quality and accuracy of each emulation | |
904 | is subjective.") | |
905 | (license license:gpl3+))) | |
906 | ||
6260d1a8 RW |
907 | (define-public tuxguitar |
908 | (package | |
909 | (name "tuxguitar") | |
f467c352 | 910 | (version "1.3.2") |
6260d1a8 RW |
911 | (source (origin |
912 | (method url-fetch) | |
913 | (uri (string-append | |
914 | "mirror://sourceforge/tuxguitar/TuxGuitar/TuxGuitar-" | |
f467c352 | 915 | version "/tuxguitar-" version "-src.tar.gz")) |
6260d1a8 RW |
916 | (sha256 |
917 | (base32 | |
f467c352 RW |
918 | "0ldml31zvywid1w28mfd65ramyiics55fdl0ch846vm7j7nwv58j")) |
919 | (modules '((guix build utils))) | |
920 | (snippet | |
921 | ;; Delete pre-built classes | |
922 | '(delete-file-recursively "TuxGuitar-android/bin")))) | |
923 | (build-system ant-build-system) | |
6260d1a8 | 924 | (arguments |
f467c352 RW |
925 | `(#:build-target "build" |
926 | #:tests? #f ; no tests | |
6260d1a8 | 927 | #:phases |
5f1c9498 | 928 | (modify-phases %standard-phases |
f467c352 RW |
929 | (add-after 'unpack 'enter-dir |
930 | (lambda _ (chdir "TuxGuitar-lib") #t)) | |
931 | (add-after 'build 'build-editor-utils | |
932 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
933 | (chdir "..") | |
934 | (let ((cwd (getcwd))) | |
935 | (setenv "CLASSPATH" | |
936 | (string-append | |
937 | cwd "/TuxGuitar-lib/tuxguitar-lib.jar" ":" | |
938 | cwd "/TuxGuitar-editor-utils/build/jar/tuxguitar-editor-utils.jar" ":" | |
939 | (getenv "CLASSPATH")))) | |
940 | (chdir "TuxGuitar-editor-utils") | |
941 | ;; Generate default build.xml | |
942 | ((@@ (guix build ant-build-system) default-build.xml) | |
943 | "tuxguitar-editor-utils.jar" | |
944 | (string-append (assoc-ref outputs "out") | |
945 | "/share/java")) | |
946 | ((assoc-ref %standard-phases 'build)))) | |
947 | (add-after 'build-editor-utils 'build-application | |
948 | (lambda _ | |
949 | (chdir "../TuxGuitar") | |
950 | ((assoc-ref %standard-phases 'build) | |
951 | #:build-target "build"))) | |
952 | (replace 'install | |
953 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
954 | (let* ((out (assoc-ref outputs "out")) | |
955 | (bin (string-append out "/bin")) | |
956 | (share (string-append out "/share")) | |
957 | (lib (string-append share "/java")) | |
958 | (swt (assoc-ref inputs "java-swt"))) | |
959 | (mkdir-p bin) | |
960 | (mkdir-p lib) | |
961 | ;; install all jars | |
962 | (for-each (lambda (file) | |
963 | (install-file file lib)) | |
964 | (find-files ".." "\\.jar$")) | |
965 | ;; install all resources | |
966 | (for-each (lambda (file) | |
967 | (install-file file share)) | |
968 | (find-files "share" ".*")) | |
969 | ;; create wrapper | |
970 | (call-with-output-file (string-append bin "/tuxguitar") | |
971 | (lambda (port) | |
972 | (let ((classpath (string-join (append (find-files lib "\\.jar$") | |
973 | (find-files swt "\\.jar$")) | |
974 | ":"))) | |
975 | (format | |
976 | port | |
977 | (string-append "#!/bin/sh\n" | |
978 | (which "java") | |
979 | " -cp " classpath | |
980 | " -Dtuxguitar.home.path=" out | |
981 | " -Dtuxguitar.share.path=" out "/share" | |
982 | " -Dswt.library.path=" swt "/lib" | |
983 | " org.herac.tuxguitar.app.TGMainSingleton" | |
984 | " \"$1\" \"$2\""))))) | |
985 | (chmod (string-append bin "/tuxguitar") #o555) | |
986 | #t)))))) | |
6260d1a8 | 987 | (inputs |
1ad15c16 | 988 | `(("java-swt" ,java-swt))) |
6260d1a8 RW |
989 | (home-page "http://tuxguitar.com.ar") |
990 | (synopsis "Multitrack tablature editor and player") | |
991 | (description | |
992 | "TuxGuitar is a guitar tablature editor with player support through midi. | |
993 | It can display scores and multitrack tabs. TuxGuitar provides various | |
994 | additional features, including autoscrolling while playing, note duration | |
995 | management, bend/slide/vibrato/hammer-on/pull-off effects, support for | |
996 | tuplets, time signature management, tempo management, gp3/gp4/gp5 import and | |
997 | export.") | |
998 | (license license:lgpl2.1+))) | |
2d0fd07b RW |
999 | |
1000 | (define-public pd | |
1001 | (package | |
1002 | (name "pd") | |
1003 | (version "0.45.4") | |
1004 | (source (origin | |
1005 | (method url-fetch) | |
1006 | (uri | |
1007 | (string-append "mirror://sourceforge/pure-data/pure-data/" | |
1008 | version "/pd-" (version-major+minor version) | |
1009 | "-" (last (string-split version #\.)) | |
1010 | ".src.tar.gz")) | |
1011 | (sha256 | |
1012 | (base32 | |
1013 | "1ls2ap5yi2zxvmr247621g4jx0hhfds4j5704a050bn2n3l0va2p")))) | |
1014 | (build-system gnu-build-system) | |
1015 | (arguments | |
1016 | `(#:tests? #f ; no "check" target | |
1017 | #:phases | |
1018 | (modify-phases %standard-phases | |
1019 | (add-before | |
1020 | 'configure 'fix-wish-path | |
1021 | (lambda _ | |
1022 | (substitute* "src/s_inter.c" | |
1023 | ((" wish ") (string-append " " (which "wish8.6") " "))) | |
1024 | (substitute* "tcl/pd-gui.tcl" | |
1025 | (("exec wish ") (string-append "exec " (which "wish8.6") " "))) | |
1026 | #t)) | |
1027 | (add-after | |
1028 | 'unpack 'autoconf | |
1029 | (lambda _ (zero? (system* "autoreconf" "-vfi"))))))) | |
1030 | (native-inputs | |
1031 | `(("autoconf" ,autoconf) | |
1032 | ("automake" ,automake) | |
1033 | ("libtool" ,libtool) | |
1034 | ("gettext" ,gnu-gettext) | |
1035 | ("pkg-config" ,pkg-config))) | |
1036 | (inputs | |
1037 | `(("tk" ,tk) | |
1038 | ("alsa-lib" ,alsa-lib) | |
1039 | ("jack" ,jack-1))) | |
1040 | (home-page "http://puredata.info") | |
1041 | (synopsis "Visual programming language for artistic performances") | |
1042 | (description | |
1043 | "Pure Data (aka Pd) is a visual programming language. Pd enables | |
1044 | musicians, visual artists, performers, researchers, and developers to create | |
1045 | software graphically, without writing lines of code. Pd is used to process | |
1046 | and generate sound, video, 2D/3D graphics, and interface sensors, input | |
1047 | devices, and MIDI. Pd can easily work over local and remote networks to | |
1048 | integrate wearable technology, motor systems, lighting rigs, and other | |
1049 | equipment. Pd is suitable for learning basic multimedia processing and visual | |
1050 | programming methods as well as for realizing complex systems for large-scale | |
1051 | projects.") | |
1052 | (license license:bsd-3))) | |
821664f1 | 1053 | |
aacb52fb RW |
1054 | (define-public portmidi |
1055 | (package | |
1056 | (name "portmidi") | |
1057 | (version "217") | |
1058 | (source (origin | |
1059 | (method url-fetch) | |
1060 | (uri (string-append "mirror://sourceforge/portmedia/portmidi/" | |
1061 | version "/portmidi-src-" version ".zip")) | |
1062 | (sha256 | |
1063 | (base32 | |
1064 | "03rfsk7z6rdahq2ihy5k13qjzgx757f75yqka88v3gc0pn9ais88")) | |
1065 | (patches (list (search-patch "portmidi-modular-build.patch"))))) | |
1066 | (build-system cmake-build-system) | |
1067 | (arguments | |
1068 | `(#:tests? #f ; tests cannot be linked | |
1069 | #:configure-flags | |
1070 | (list "-DPORTMIDI_ENABLE_JAVA=Off" | |
1071 | "-DCMAKE_BUILD_TYPE=Release" ; needed to have PMALSA set | |
1072 | "-DPORTMIDI_ENABLE_TEST=Off"))) ; tests fail linking | |
1073 | (inputs | |
1074 | `(("alsa-lib" ,alsa-lib))) | |
1075 | (native-inputs | |
1076 | `(("unzip" ,unzip))) | |
1077 | (home-page "http://portmedia.sourceforge.net/portmidi/") | |
1078 | (synopsis "Library for MIDI I/O") | |
1079 | (description | |
1080 | "PortMidi is a library supporting real-time input and output of MIDI data | |
1081 | using a system-independent interface.") | |
1082 | (license license:expat))) | |
f65d59fc RW |
1083 | |
1084 | (define-public python-pyportmidi | |
1085 | (package | |
1086 | (name "python-pyportmidi") | |
1087 | (version (package-version portmidi)) | |
1088 | (source (package-source portmidi)) | |
1089 | (build-system python-build-system) | |
1090 | (arguments | |
1091 | `(#:tests? #f ; no tests included | |
1092 | #:phases | |
1093 | (modify-phases %standard-phases | |
1094 | (add-after 'unpack 'enter-dir | |
1095 | (lambda _ (chdir "pm_python") #t)) | |
1096 | (add-after 'enter-dir 'fix-setup.py | |
1097 | (lambda _ | |
1098 | (substitute* "setup.py" | |
1099 | ;; Use Python 3 syntax | |
1100 | (("print (\".*\")" _ text) | |
1101 | (string-append "print(" text ")\n")) | |
1102 | ;; TODO.txt and CHANGES.txt don't exist | |
1103 | (("CHANGES =.*") "CHANGES = \"\"\n") | |
1104 | (("TODO =.*") "TODO = \"\"\n")) | |
1105 | #t))))) | |
1106 | (inputs | |
1107 | `(("portmidi" ,portmidi) | |
1108 | ("alsa-lib" ,alsa-lib) | |
1109 | ("python-cython" ,python-cython))) | |
1110 | (native-inputs | |
1111 | `(("unzip" ,unzip))) | |
1112 | (home-page "http://portmedia.sourceforge.net/portmidi/") | |
1113 | (synopsis "Python bindings to PortMidi") | |
1114 | (description | |
1115 | "This package provides Python bindings to the PortMidi library.") | |
1116 | (license license:expat))) | |
aacb52fb | 1117 | |
821664f1 RW |
1118 | (define-public frescobaldi |
1119 | (package | |
1120 | (name "frescobaldi") | |
4b2eede4 | 1121 | (version "2.19.0") |
821664f1 RW |
1122 | (source (origin |
1123 | (method url-fetch) | |
1124 | (uri (string-append | |
1125 | "https://github.com/wbsoft/frescobaldi/releases/download/v" | |
1126 | version "/frescobaldi-" version ".tar.gz")) | |
1127 | (sha256 | |
1128 | (base32 | |
4b2eede4 | 1129 | "1rnk8i8dlshzx16n2qxcsqcs7kywgyazzyzw2vy4vp2gsm9vs9ml")))) |
821664f1 RW |
1130 | (build-system python-build-system) |
1131 | (inputs | |
1132 | `(("lilypond" ,lilypond) | |
6855b347 | 1133 | ("portmidi" ,portmidi) |
821664f1 RW |
1134 | ("python-pyqt-4" ,python-pyqt-4) |
1135 | ("python-ly" ,python-ly) | |
6855b347 | 1136 | ("python-pyportmidi" ,python-pyportmidi) |
821664f1 RW |
1137 | ("poppler" ,poppler) |
1138 | ("python-poppler-qt4" ,python-poppler-qt4) | |
1139 | ("python-sip" ,python-sip))) | |
1140 | (home-page "http://www.frescobaldi.org/") | |
1141 | (synopsis "LilyPond sheet music text editor") | |
1142 | (description | |
1143 | "Frescobaldi is a LilyPond sheet music text editor with syntax | |
1144 | highlighting and automatic completion. Among other things, it can render | |
1145 | scores next to the source, can capture input from MIDI or read MusicXML and | |
1146 | ABC files, has a MIDI player for proof-listening, and includes a documentation | |
1147 | browser.") | |
1148 | (license license:gpl2+))) | |
ddfddb0c | 1149 | |
bf76d780 RW |
1150 | (define-public drumstick |
1151 | (package | |
1152 | (name "drumstick") | |
cfac1272 | 1153 | (version "1.0.2") |
bf76d780 RW |
1154 | (source (origin |
1155 | (method url-fetch) | |
1156 | (uri (string-append "mirror://sourceforge/drumstick/" | |
1157 | version "/drumstick-" version ".tar.bz2")) | |
1158 | (sha256 | |
1159 | (base32 | |
cfac1272 | 1160 | "0l47gy9yywrc860db5g3wdqg8yc8qdb2lqq6wvw1dfim5j0vbail")))) |
bf76d780 RW |
1161 | (build-system cmake-build-system) |
1162 | (arguments | |
1163 | `(#:tests? #f ; no test target | |
1164 | #:configure-flags '("-DLIB_SUFFIX=") | |
1165 | #:phases | |
1166 | (modify-phases %standard-phases | |
1167 | (add-before 'configure 'fix-docbook | |
1168 | (lambda* (#:key inputs #:allow-other-keys) | |
1169 | (substitute* "cmake_admin/CreateManpages.cmake" | |
1170 | (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl") | |
1171 | (string-append (assoc-ref inputs "docbook-xsl") | |
1172 | "/xml/xsl/docbook-xsl-" | |
1173 | ,(package-version docbook-xsl) | |
1174 | "/manpages/docbook.xsl"))) | |
1175 | #t))))) | |
1176 | (inputs | |
ca1cab82 EF |
1177 | `(("qtbase" ,qtbase) |
1178 | ("qtsvg" ,qtsvg) | |
bf76d780 RW |
1179 | ("alsa-lib" ,alsa-lib) |
1180 | ("fluidsynth" ,fluidsynth))) | |
1181 | (native-inputs | |
1182 | `(("pkg-config" ,pkg-config) | |
1183 | ("libxslt" ,libxslt) ;for xsltproc | |
1184 | ("docbook-xsl" ,docbook-xsl) | |
1185 | ("doxygen" ,doxygen))) | |
1186 | (home-page "http://drumstick.sourceforge.net/") | |
1187 | (synopsis "C++ MIDI library") | |
1188 | (description | |
1189 | "Drumstick is a set of MIDI libraries using C++/Qt5 idioms and style. It | |
1190 | includes a C++ wrapper around the ALSA library sequencer interface. A | |
1191 | complementary library provides classes for processing SMF (Standard MIDI | |
1192 | files: .MID/.KAR), Cakewalk (.WRK), and Overture (.OVE) file formats. A | |
1193 | multiplatform realtime MIDI I/O library is also provided with various output | |
1194 | backends, including ALSA, OSS, Network and FluidSynth.") | |
1195 | (license license:gpl2+))) | |
1196 | ||
8e92cfb1 RW |
1197 | (define-public vmpk |
1198 | (package | |
1199 | (name "vmpk") | |
fb492b9a | 1200 | (version "0.6.2a") |
8e92cfb1 RW |
1201 | (source (origin |
1202 | (method url-fetch) | |
1203 | (uri (string-append "mirror://sourceforge/vmpk/vmpk/" | |
fb492b9a RW |
1204 | (string-drop-right version 1) |
1205 | "/vmpk-" version ".tar.bz2")) | |
8e92cfb1 RW |
1206 | (sha256 |
1207 | (base32 | |
fb492b9a | 1208 | "0259iikvxnfdiifrh02g8xgcxikrkca4nhd3an8xzx0bd6bk8ifi")))) |
8e92cfb1 RW |
1209 | (build-system cmake-build-system) |
1210 | (arguments | |
1211 | `(#:tests? #f ; no test target | |
1212 | #:phases | |
1213 | (modify-phases %standard-phases | |
1214 | (add-before 'configure 'fix-docbook | |
1215 | (lambda* (#:key inputs #:allow-other-keys) | |
1216 | (substitute* "cmake_admin/CreateManpages.cmake" | |
1217 | (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl") | |
1218 | (string-append (assoc-ref inputs "docbook-xsl") | |
1219 | "/xml/xsl/docbook-xsl-" | |
1220 | ,(package-version docbook-xsl) | |
1221 | "/manpages/docbook.xsl"))) | |
1222 | #t))))) | |
1223 | (inputs | |
1224 | `(("drumstick" ,drumstick) | |
07831f7a EF |
1225 | ("qtbase" ,qtbase) |
1226 | ("qtsvg" ,qtsvg) | |
1227 | ("qttools" ,qttools) | |
1228 | ("qtx11extras" ,qtx11extras))) | |
8e92cfb1 RW |
1229 | (native-inputs |
1230 | `(("libxslt" ,libxslt) ;for xsltproc | |
1231 | ("docbook-xsl" ,docbook-xsl) | |
1232 | ("pkg-config" ,pkg-config))) | |
1233 | (home-page "http://vmpk.sourceforge.net") | |
1234 | (synopsis "Virtual MIDI piano keyboard") | |
1235 | (description | |
1236 | "Virtual MIDI Piano Keyboard is a MIDI events generator and receiver. It | |
1237 | doesn't produce any sound by itself, but can be used to drive a MIDI | |
1238 | synthesizer (either hardware or software, internal or external). You can use | |
1239 | the computer's keyboard to play MIDI notes, and also the mouse. You can use | |
1240 | the Virtual MIDI Piano Keyboard to display the played MIDI notes from another | |
1241 | instrument or MIDI file player.") | |
1242 | (license license:gpl3+))) | |
1243 | ||
ddfddb0c RW |
1244 | (define-public zynaddsubfx |
1245 | (package | |
1246 | (name "zynaddsubfx") | |
acf2320b | 1247 | (version "2.5.4") |
ddfddb0c RW |
1248 | (source (origin |
1249 | (method url-fetch) | |
1250 | (uri (string-append | |
1251 | "mirror://sourceforge/zynaddsubfx/zynaddsubfx/" | |
138e7697 | 1252 | version "/zynaddsubfx-" version ".tar.bz2")) |
ddfddb0c RW |
1253 | (sha256 |
1254 | (base32 | |
acf2320b | 1255 | "16llaa2wg2gbgjhwp3632b2vx9jvanj4csv7d41k233ms6d1sjq1")))) |
ddfddb0c | 1256 | (build-system cmake-build-system) |
00dfc97c RW |
1257 | (arguments |
1258 | `(#:phases | |
1259 | (modify-phases %standard-phases | |
1260 | ;; Move SSE compiler optimization flags from generic target to | |
1261 | ;; athlon64 and core2 targets, because otherwise the build would fail | |
1262 | ;; on non-Intel machines. | |
1263 | (add-after 'unpack 'remove-sse-flags-from-generic-target | |
1264 | (lambda _ | |
1265 | (substitute* "src/CMakeLists.txt" | |
1266 | (("-msse -msse2 -mfpmath=sse") "") | |
1267 | (("-march=(athlon64|core2)" flag) | |
1268 | (string-append flag " -msse -msse2 -mfpmath=sse"))) | |
1269 | #t))))) | |
ddfddb0c RW |
1270 | (inputs |
1271 | `(("liblo" ,liblo) | |
1272 | ("ntk" ,ntk) | |
1273 | ("alsa-lib" ,alsa-lib) | |
1274 | ("jack" ,jack-1) | |
1275 | ("fftw" ,fftw) | |
1276 | ("minixml" ,minixml) | |
1277 | ("libxpm" ,libxpm) | |
1278 | ("zlib" ,zlib))) | |
1279 | (native-inputs | |
1280 | `(("pkg-config" ,pkg-config))) | |
1281 | (home-page "http://zynaddsubfx.sf.net/") | |
1282 | (synopsis "Software synthesizer") | |
1283 | (description | |
1284 | "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers | |
1285 | three synthesizer engines, multitimbral and polyphonic synths, microtonal | |
1286 | capabilities, custom envelopes, effects, etc.") | |
1287 | (license license:gpl2))) | |
c493679f RW |
1288 | |
1289 | (define-public yoshimi | |
1290 | (package | |
1291 | (name "yoshimi") | |
8ddc5d57 | 1292 | (version "1.3.8.2") |
c493679f RW |
1293 | (source (origin |
1294 | (method url-fetch) | |
1295 | (uri (string-append "mirror://sourceforge/yoshimi/" | |
1296 | (version-major+minor version) | |
1297 | "/yoshimi-" version ".tar.bz2")) | |
1298 | (sha256 | |
1299 | (base32 | |
8ddc5d57 | 1300 | "0wl4ln6v1nkkx56kfah23chyrhga2vi93i82g0s200c4s4184xr8")))) |
c493679f RW |
1301 | (build-system cmake-build-system) |
1302 | (arguments | |
1303 | `(#:tests? #f ; there are no tests | |
1304 | #:configure-flags | |
1305 | (list (string-append "-DCMAKE_INSTALL_DATAROOTDIR=" | |
1306 | (assoc-ref %outputs "out") "/share")) | |
1307 | #:phases | |
1308 | (modify-phases %standard-phases | |
1309 | (add-before 'configure 'enter-dir | |
1310 | (lambda _ (chdir "src") #t)) | |
1311 | ;; Move SSE compiler optimization flags from generic target to | |
1312 | ;; athlon64 and core2 targets, because otherwise the build would fail | |
1313 | ;; on non-Intel machines. | |
1314 | (add-after 'unpack 'remove-sse-flags-from-generic-target | |
1315 | (lambda _ | |
1316 | (substitute* "src/CMakeLists.txt" | |
1317 | (("-msse -msse2 -mfpmath=sse") "") | |
1318 | (("-march=(athlon64|core2)" flag) | |
1319 | (string-append flag " -msse -msse2 -mfpmath=sse"))) | |
1320 | #t))))) | |
1321 | (inputs | |
1322 | `(("boost" ,boost) | |
1323 | ("fftwf" ,fftwf) | |
1324 | ("alsa-lib" ,alsa-lib) | |
1325 | ("jack" ,jack-1) | |
1326 | ("fontconfig" ,fontconfig) | |
1327 | ("minixml" ,minixml) | |
1328 | ("mesa" ,mesa) | |
1329 | ("fltk" ,fltk) | |
1330 | ("lv2" ,lv2) | |
1331 | ("readline" ,readline) | |
1332 | ("ncurses" ,ncurses) | |
1333 | ("cairo" ,cairo) | |
1334 | ("zlib" ,zlib))) | |
1335 | (native-inputs | |
1336 | `(("pkg-config" ,pkg-config))) | |
1337 | (home-page "http://yoshimi.sourceforge.net/") | |
1338 | (synopsis "Multi-paradigm software synthesizer") | |
1339 | (description | |
1340 | "Yoshimi is a fork of ZynAddSubFX, a feature heavy realtime software | |
1341 | synthesizer. It offers three synthesizer engines, multitimbral and polyphonic | |
1342 | synths, microtonal capabilities, custom envelopes, effects, etc. Yoshimi | |
1343 | improves on support for JACK features, such as JACK MIDI.") | |
1344 | (license license:gpl2))) | |
658212eb LF |
1345 | |
1346 | (define-public cursynth | |
1347 | (package | |
1348 | (name "cursynth") | |
1349 | (version "1.5") | |
1350 | (source | |
1351 | (origin | |
1352 | (method url-fetch) | |
1353 | (uri (string-append "mirror://gnu/cursynth/cursynth-" | |
1354 | version ".tar.gz")) | |
1355 | (sha256 | |
1356 | (base32 "1dhphsya41rv8z6yqcv9l6fwbslsds4zh1y56zizi39nd996d40v")) | |
fc1adab1 | 1357 | (patches (search-patches "cursynth-wave-rand.patch")))) |
658212eb LF |
1358 | (build-system gnu-build-system) |
1359 | (native-inputs `(("pkg-config" ,pkg-config))) | |
1360 | ;; TODO: See https://github.com/iyoko/cursynth/issues/4 which currently | |
1361 | ;; prevents us from using pulseaudio | |
1362 | (inputs `(("ncurses" ,ncurses) | |
1363 | ("alsa" ,alsa-lib))) | |
1364 | (home-page "http://www.gnu.org/software/cursynth") | |
1365 | (synopsis "Polyphonic and MIDI subtractive music synthesizer using curses") | |
1366 | (description "GNU cursynth is a polyphonic synthesizer that runs | |
1367 | graphically in the terminal. It is built on a full-featured subtractive | |
1368 | synthesis engine. Notes and parameter changes may be entered via MIDI or the | |
1369 | computer's keyboard.") | |
1370 | (license license:gpl3+))) | |
a763ce7d RW |
1371 | |
1372 | (define-public qtractor | |
1373 | (package | |
1374 | (name "qtractor") | |
457b5eb6 | 1375 | (version "0.7.7") |
a763ce7d RW |
1376 | (source (origin |
1377 | (method url-fetch) | |
1378 | (uri (string-append "http://downloads.sourceforge.net/qtractor/" | |
1379 | "qtractor-" version ".tar.gz")) | |
1380 | (sha256 | |
1381 | (base32 | |
457b5eb6 | 1382 | "0q8kvy1ynlg64v1w7jxix1rpq0lp2ixgb2y8cbbwxd2b28r3r2vl")))) |
a763ce7d RW |
1383 | (build-system gnu-build-system) |
1384 | (arguments `(#:tests? #f)) ; no "check" target | |
1385 | (inputs | |
1386 | `(("qt" ,qt) | |
1387 | ("alsa-lib" ,alsa-lib) | |
1388 | ("jack" ,jack-1) | |
1389 | ("libsndfile" ,libsndfile) | |
1390 | ("ladspa" ,ladspa) | |
1391 | ("lv2" ,lv2) | |
1392 | ("lilv" ,lilv) | |
1393 | ("suil" ,suil) | |
1394 | ("libsamplerate" ,libsamplerate) | |
1395 | ("libvorbis" ,libvorbis) | |
1396 | ("libmad" ,libmad) | |
1397 | ("rubberband" ,rubberband) | |
1398 | ("liblo" ,liblo) | |
1399 | ("zlib" ,zlib))) | |
1400 | (native-inputs | |
1401 | `(("pkg-config" ,pkg-config))) | |
1402 | (home-page "http://qtractor.sourceforge.net/") | |
1403 | (synopsis "Audio/MIDI multi-track sequencer") | |
1404 | (description | |
1405 | "Qtractor is an Audio/MIDI multi-track sequencer application. It uses | |
1406 | JACK for audio and ALSA sequencer for MIDI as multimedia infrastructures and | |
1407 | follows a traditional multi-track tape recorder control paradigm.") | |
1408 | (license license:gpl2+))) | |
aa0edd3f AM |
1409 | |
1410 | (define-public pianobar | |
1411 | (package | |
1412 | (name "pianobar") | |
1413 | (version "2015.11.22") | |
1414 | (source (origin | |
1415 | (method url-fetch) | |
1416 | (uri (string-append "https://github.com/PromyLOPh/" | |
1417 | name "/archive/" version ".tar.gz")) | |
1418 | (file-name (string-append name "-" version ".tar.gz")) | |
1419 | (sha256 | |
1420 | (base32 | |
1421 | "022df19bhxqvkhy0qy21xahba5s1fm17b13y0p9p9dnf2yl44wfv")))) | |
1422 | (build-system gnu-build-system) | |
1423 | (arguments | |
1424 | `(#:tests? #f ; no tests | |
1425 | #:make-flags (list "CC=gcc" "CFLAGS=-std=c99" | |
1426 | (string-append "PREFIX=" %output)) | |
1427 | #:phases (modify-phases %standard-phases | |
1428 | (delete 'configure)))) | |
1429 | (inputs | |
1430 | `(("ao" ,ao) | |
1431 | ("curl" ,curl) | |
1432 | ("libgcrypt" ,libgcrypt) | |
1433 | ("json-c" ,json-c) | |
1434 | ("ffmpeg" ,ffmpeg))) | |
1435 | (native-inputs | |
1436 | `(("pkg-config" ,pkg-config))) | |
1437 | (home-page "http://6xq.net/projects/pianobar/") | |
1438 | (synopsis "Console-based pandora.com player") | |
1439 | (description "pianobar is a console-based music player for the | |
1440 | personalized online radio pandora.com. It has configurable keys for playing | |
1441 | and managing stations, can be controlled remotely via fifo, and can run | |
1442 | event-based scripts for scrobbling, notifications, etc.") | |
1443 | (license license:expat))) | |
3f7a182d LF |
1444 | |
1445 | (define-public python-mutagen | |
1446 | (package | |
1447 | (name "python-mutagen") | |
1448 | (version "1.31") | |
1449 | (source (origin | |
1450 | (method url-fetch) | |
1451 | (uri (pypi-uri "mutagen" version)) | |
1452 | (sha256 | |
1453 | (base32 | |
1454 | "16fnnhspniac2i7qswxafawsh2x2a803hmc6bn9k1zl5fxq1380a")))) | |
1455 | (build-system python-build-system) | |
1456 | (home-page "https://bitbucket.org/lazka/mutagen") | |
1457 | (synopsis "Read and write audio tags") | |
1458 | (description "Mutagen is a Python module to handle audio metadata. It | |
1459 | supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg | |
1460 | Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions | |
1461 | of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read | |
1462 | Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and | |
1463 | APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg | |
1464 | streams on an individual packet/page level.") | |
1465 | (license license:gpl2))) ; "later version" never mentioned | |
1466 | ||
1467 | (define-public python2-mutagen | |
1468 | (package-with-python2 python-mutagen)) | |
8975de88 LF |
1469 | |
1470 | (define-public python-musicbrainzngs | |
1471 | (package | |
1472 | (name "python-musicbrainzngs") | |
1473 | (version "0.5") | |
1474 | (source (origin | |
1475 | (method url-fetch) | |
1476 | (uri (pypi-uri "musicbrainzngs" version)) | |
1477 | (sha256 | |
1478 | (base32 | |
1479 | "12f48llmdf5rkiqxcb70k2k1dmhm8byq0ifazvlrca8dfnmqh4r8")))) | |
1480 | (build-system python-build-system) | |
1481 | (home-page "https://python-musicbrainzngs.readthedocs.org/") | |
1482 | (synopsis "Python bindings for MusicBrainz NGS webservice") | |
1483 | (description "Musicbrainzngs implements Python bindings of the MusicBrainz | |
1484 | web service. This library can be used to retrieve music metadata from the | |
1485 | MusicBrainz database.") | |
1486 | ;; 'musicbrainzngs/compat.py' is ISC licensed. | |
1487 | (license (list license:bsd-2 license:isc)))) | |
1488 | ||
1489 | (define-public python2-musicbrainzngs | |
1490 | (package-with-python2 python-musicbrainzngs)) | |
e8fee648 LF |
1491 | |
1492 | (define-public python-pyechonest | |
1493 | (package | |
1494 | (name "python-pyechonest") | |
1495 | (version "9.0.0") | |
1496 | (source (origin | |
1497 | (method url-fetch) | |
1498 | (uri (pypi-uri "pyechonest" version)) | |
1499 | (sha256 | |
1500 | (base32 | |
1501 | "1584nira3rkiman9dm81kdshihmkj21s8navndz2l8spnjwb790x")))) | |
1502 | (build-system python-build-system) | |
1503 | (home-page "https://github.com/echonest/pyechonest") | |
1504 | (synopsis "Python interface to The Echo Nest APIs") | |
d3e3468f LF |
1505 | (description "Pyechonest is a Python library for the Echo Nest API. With |
1506 | Pyechonest you have Python access to the entire set of API methods including: | |
e8fee648 LF |
1507 | |
1508 | @enumerate | |
1509 | @item artist - search for artists by name, description, or attribute, and get | |
1510 | back detailed information about any artist including audio, similar artists, | |
1511 | blogs, familiarity, hotttnesss, news, reviews, urls and video. | |
1512 | @item song - search songs by artist, title, description, or attribute (tempo, | |
1513 | duration, etc) and get detailed information back about each song, such as | |
1514 | hotttnesss, audio_summary, or tracks. | |
1515 | @item track - upload a track to the Echo Nest and receive summary information | |
1516 | about the track including key, duration, mode, tempo, time signature along with | |
1517 | detailed track info including timbre, pitch, rhythm and loudness information. | |
1518 | @end enumerate\n") | |
1519 | (license license:bsd-3) | |
1520 | (properties `((python2-variant . ,(delay python2-pyechonest)))))) | |
1521 | ||
1522 | (define-public python2-pyechonest | |
1523 | (package (inherit (package-with-python2 | |
1524 | (strip-python2-variant python-pyechonest))) | |
1525 | (native-inputs `(("python2-setuptools" ,python2-setuptools))))) | |
acd7351f LF |
1526 | |
1527 | (define-public python-pylast | |
1528 | (package | |
1529 | (name "python-pylast") | |
1530 | (version "1.5.1") | |
1531 | (source (origin | |
1532 | (method url-fetch) | |
1533 | (uri (pypi-uri "pylast" version)) | |
1534 | (sha256 | |
1535 | (base32 | |
1536 | "10znd9xr1vs2ix519jkz3ccm90zciaddcdr2w2wrrh2jyy3bc59a")))) | |
1537 | (build-system python-build-system) | |
1538 | (native-inputs | |
1539 | `(("python-coverage" ,python-coverage) | |
1540 | ("python-mock" ,python-mock) | |
1541 | ("python-pep8" ,python-pep8) | |
1542 | ("python-pytest" ,python-pytest) | |
1543 | ("python-pyflakes" ,python-pyflakes) | |
1544 | ("python-pyyaml" ,python-pyyaml))) | |
1545 | (propagated-inputs | |
1546 | `(("python-six" ,python-six))) | |
1547 | (home-page "https://github.com/pylast/pylast") | |
1548 | (synopsis "Python interface to Last.fm and Libre.fm") | |
1549 | (description "A Python interface to Last.fm and other API-compatible | |
1550 | websites such as Libre.fm.") | |
1551 | (license license:asl2.0) | |
1552 | (properties `((python2-variant . ,(delay python2-pylast)))))) | |
1553 | ||
1554 | (define-public python2-pylast | |
1555 | (let ((pylast (package-with-python2 | |
1556 | (strip-python2-variant python-pylast)))) | |
1557 | (package (inherit pylast) | |
1558 | (native-inputs | |
1559 | `(("python2-setuptools" ,python2-setuptools) | |
1560 | ,@(package-native-inputs pylast)))))) | |
3bf429af LF |
1561 | |
1562 | (define-public beets | |
1563 | (package | |
1564 | (name "beets") | |
23319ed6 | 1565 | (version "1.3.19") |
3bf429af LF |
1566 | (source (origin |
1567 | (method url-fetch) | |
23319ed6 | 1568 | (uri (pypi-uri "beets" version)) |
3bf429af LF |
1569 | (sha256 |
1570 | (base32 | |
23319ed6 | 1571 | "1vi1dh3fr554bnm8y9pjy09hblw18v6cl2jppzwlp72afri1w93b")))) |
3bf429af LF |
1572 | (build-system python-build-system) |
1573 | (arguments | |
1574 | `(#:python ,python-2 ; only Python 2 is supported | |
1575 | #:phases | |
1576 | (modify-phases %standard-phases | |
1577 | (add-after 'unpack 'set-HOME | |
36c2c8c8 LF |
1578 | (lambda _ (setenv "HOME" (string-append (getcwd) "/tmp")))) |
1579 | (replace 'check | |
1580 | (lambda _ (zero? (system* "nosetests" "-v"))))))) | |
3bf429af LF |
1581 | (native-inputs |
1582 | `(("python2-beautifulsoup4" ,python2-beautifulsoup4) | |
1583 | ("python2-flask" ,python2-flask) | |
1584 | ("python2-setuptools" ,python2-setuptools) | |
1585 | ("python2-mock" ,python2-mock) | |
1586 | ("python2-mpd2" ,python2-mpd2) | |
36c2c8c8 | 1587 | ("python2-nose" ,python2-nose) |
3bf429af LF |
1588 | ("python2-pathlib" ,python2-pathlib) |
1589 | ("python2-pyxdg" ,python2-pyxdg) | |
1590 | ("python2-pyechonest" ,python2-pyechonest) | |
1591 | ("python2-pylast" ,python2-pylast) | |
1592 | ("python2-rarfile" ,python2-rarfile) | |
1593 | ("python2-responses" ,python2-responses))) | |
1594 | ;; TODO: Install optional plugins and dependencies. | |
b3470031 | 1595 | (inputs |
3bf429af LF |
1596 | `(("python2-enum34" ,python2-enum34) |
1597 | ("python2-jellyfish" ,python2-jellyfish) | |
1598 | ("python2-munkres" ,python2-munkres) | |
1599 | ("python2-musicbrainzngs" ,python2-musicbrainzngs) | |
1600 | ("python2-mutagen" ,python2-mutagen) | |
1601 | ("python2-pyyaml" ,python2-pyyaml) | |
1602 | ("python2-unidecode" ,python2-unidecode))) | |
1603 | (home-page "http://beets.io") | |
1604 | (synopsis "Music organizer") | |
1605 | (description "The purpose of beets is to get your music collection right | |
1606 | once and for all. It catalogs your collection, automatically improving its | |
1607 | metadata as it goes using the MusicBrainz database. Then it provides a variety | |
1608 | of tools for manipulating and accessing your music.") | |
1609 | (license license:expat))) | |
21d18113 KY |
1610 | |
1611 | (define-public milkytracker | |
1612 | (package | |
1613 | (name "milkytracker") | |
1614 | (version "0.90.86") | |
1615 | (source (origin | |
1616 | (method url-fetch) | |
1617 | (uri (string-append "http://milkytracker.org/files/" | |
1618 | name "-" version ".tar.bz2")) | |
1619 | (sha256 | |
1620 | (base32 | |
1621 | "1v9vp8vi24lkagfpr92c128whvakwgrm9pq2zf6ijpl5sh7014zb")))) | |
1622 | (build-system gnu-build-system) | |
1623 | (arguments | |
1624 | `(#:make-flags '("CXXFLAGS=-lasound"))) | |
1625 | (inputs | |
1626 | `(("alsa-lib" ,alsa-lib) | |
1627 | ("jack" ,jack-1) | |
1628 | ("sdl" ,sdl) | |
1629 | ("zlib" ,zlib))) | |
1630 | (native-inputs | |
1631 | `(("pkg-config" ,pkg-config))) | |
1632 | (synopsis "Music tracker for working with .MOD/.XM module files") | |
1633 | (description "MilkyTracker is a music application for creating .MOD and .XM | |
1634 | module files. It attempts to recreate the module replay and user experience of | |
1635 | the popular DOS program Fasttracker II, with special playback modes available | |
1636 | for improved Amiga ProTracker 2/3 compatibility.") | |
1637 | (home-page "http://milkytracker.org/") | |
1638 | ;; 'src/milkyplay' is under Modified BSD, the rest is under GPL3 or later. | |
1639 | (license (list license:bsd-3 license:gpl3+)))) | |
13416a10 KY |
1640 | |
1641 | (define-public moc | |
1642 | (package | |
1643 | (name "moc") | |
1644 | (version "2.5.1") | |
1645 | (source (origin | |
1646 | (method url-fetch) | |
1647 | (uri (string-append "http://ftp.daper.net/pub/soft/" | |
1648 | name "/stable/" | |
1649 | name "-" version ".tar.bz2")) | |
1650 | (sha256 | |
1651 | (base32 | |
1652 | "1wn4za08z64bhsgfhr9c0crfyvy8c3b6a337wx7gz19am5srqh8v")))) | |
1653 | (build-system gnu-build-system) | |
1654 | (inputs | |
1655 | `(("alsa-lib" ,alsa-lib) | |
1656 | ("curl" ,curl) | |
1657 | ("faad2" ,faad2) | |
1658 | ("ffmpeg" ,ffmpeg) | |
1659 | ("file" ,file) | |
1660 | ("jack" ,jack-1) | |
1661 | ("libid3tag" ,libid3tag) | |
1662 | ("libltdl" ,libltdl) | |
1663 | ("libmodplug" ,libmodplug) | |
1664 | ("libmpcdec" ,libmpcdec) | |
1665 | ("libmad" ,libmad) | |
1666 | ("ncurses" ,ncurses) | |
1667 | ("openssl" ,openssl) | |
1668 | ("sasl" ,cyrus-sasl) | |
1669 | ("speex" ,speex) | |
1670 | ("taglib" ,taglib) | |
1671 | ("wavpack" ,wavpack) | |
1672 | ("zlib" ,zlib))) | |
1673 | (native-inputs | |
1674 | `(("pkg-config" ,pkg-config))) | |
1675 | (synopsis "Console audio player designed to be powerful and easy to use") | |
1676 | (description | |
1677 | "Music on Console is a console audio player that supports many file | |
1678 | formats, including most audio formats recognized by FFMpeg.") | |
1679 | (home-page "http://moc.daper.net") | |
1680 | (license license:gpl2+))) | |
6d3ef286 JF |
1681 | |
1682 | (define-public midicsv | |
1683 | (package | |
1684 | (name "midicsv") | |
1685 | (version "1.1") | |
1686 | (source (origin | |
1687 | (method url-fetch) | |
1688 | (uri (string-append "http://www.fourmilab.ch/webtools/midicsv/" | |
1689 | name "-" version ".tar.gz")) | |
1690 | (sha256 | |
1691 | (base32 | |
1692 | "1vvhk2nf9ilfw0wchmxy8l13hbw9cnpz079nsx5srsy4nnd78nkw")))) | |
1693 | (build-system gnu-build-system) | |
1694 | (arguments | |
1695 | `(#:phases (modify-phases %standard-phases (delete 'configure)) | |
1696 | #:make-flags (list "CC=gcc" (string-append "INSTALL_DEST=" %output)))) | |
1697 | (synopsis "Convert MIDI files to and from CSV") | |
1698 | (description | |
1699 | "Midicsv reads a standard MIDI file and decodes it into a comma-separated | |
1700 | value file (CSV), which preserves all the information in the MIDI file. The | |
1701 | ASCII CSV file may be loaded into a spreadsheet or database application, or | |
1702 | processed by a program to transform the MIDI data (for example, to key | |
1703 | transpose a composition or extract a track from a multi-track sequence). A | |
1704 | CSV file in the format created by midicsv may be converted back into a | |
1705 | standard MIDI file with the csvmidi program.") | |
1706 | (home-page "http://www.fourmilab.ch/webtools/midicsv/") | |
1707 | (license license:public-domain))) |