All Projects → jperon → lyluatex

jperon / lyluatex

Licence: MIT license
Alternative à lilypond-book pour lualatex

Programming Languages

lua
6591 projects
TeX
3793 projects
LilyPond
23 projects
Makefile
30231 projects

Projects that are alternatives of or similar to lyluatex

canorus
Canorus is a free cross-platform music score editor
Stars: ✭ 25 (-45.65%)
Mutual labels:  lilypond, music-notation
musyn
Write music together, in real time.
Stars: ✭ 20 (-56.52%)
Mutual labels:  music-notation
Libmusicxml
A C/C++ library to support the MusicXML format.
Stars: ✭ 108 (+134.78%)
Mutual labels:  music-notation
tomato
Turkish-Ottoman Makam (M)usic Analysis TOolbox
Stars: ✭ 30 (-34.78%)
Mutual labels:  lilypond
Smufl
Standard Music Font Layout
Stars: ✭ 137 (+197.83%)
Mutual labels:  music-notation
msmd
A Multimodal Audio Sheet Music Dataset
Stars: ✭ 49 (+6.52%)
Mutual labels:  lilypond
Tabr
R package: tabr. Notation-based and tidy music data analysis and transcription.
Stars: ✭ 87 (+89.13%)
Mutual labels:  music-notation
travis-ci-latex-pdf
Overview of different methods to build LaTeX with GitHub Actions or Travis-CI (idea by @jackolney but completely rewritten by @PHPirates and contributors).
Stars: ✭ 113 (+145.65%)
Mutual labels:  lualatex
music
Repository of scores typeset using Lilypond & Ripple
Stars: ✭ 19 (-58.7%)
Mutual labels:  lilypond
SubLilyPond
LilyPond syntax highlighting in Sublime Text 2 and 3.
Stars: ✭ 26 (-43.48%)
Mutual labels:  lilypond
VSLilyPond
VSCode Extension for LilyPond
Stars: ✭ 59 (+28.26%)
Mutual labels:  lilypond
Bravura
Bravura music font, reference font for SMuFL (Standard Music Font Layout)
Stars: ✭ 155 (+236.96%)
Mutual labels:  music-notation
lilynode
Node.js wrapper for lilypond
Stars: ✭ 18 (-60.87%)
Mutual labels:  lilypond
Music Encoding
美 The Music Encoding Initiative schema and guidelines development repository
Stars: ✭ 129 (+180.43%)
Mutual labels:  music-notation
purescript-school-of-music
Port of the Haskell School of Music to Purescript
Stars: ✭ 21 (-54.35%)
Mutual labels:  music-notation
Gregorio
The Gregorio Project
Stars: ✭ 100 (+117.39%)
Mutual labels:  music-notation
midica
A Music programming language. Translates source code into MIDI. Includes a player. Supports MIDI-Karaoke. Includes a MIDI analyzer.
Stars: ✭ 57 (+23.91%)
Mutual labels:  lilypond
Spontini
A text-combined-with-graphic music editor for creating professional scores with LilyPond
Stars: ✭ 43 (-6.52%)
Mutual labels:  lilypond
superfomus
SuperCollider bindings to Fomus Music Notation
Stars: ✭ 23 (-50%)
Mutual labels:  lilypond
smufl
Standard Music Font Layout
Stars: ✭ 41 (-10.87%)
Mutual labels:  music-notation

lyluatex

Alternative to lilypond-book for lualatex

Build Status

Installation

For a single document

Copy all lyluatex*.sty and lyluatex*.lua files into the folder containing the document you wish to typeset.

For all documents compiled with your LaTeX distribution

TeXLive version

Just run this command:

tlmgr install lyluatex

Last version

Copy all lyluatex*.sty and lyluatex*.lua files from this repository into your texmf tree, then run mktexlsr.

Usage

In the preable of your document, include the package lyluatex:

\usepackage{lyluatex}

The program option permits the definition of an alternative path to lilypond, for example:

\usepackage[program=/opt/lilypond-dev/lilypond]{lyluatex}

Thereafter, you can include a lilypond file with the command:

\lilypondfile[staffsize=17]{PATH/TO/THE/FILE}

The argument staffsize, which is optional, changes the size of the score. You can change the size for all the subsequent scores in a document by placing the following command before your first include statement to be so affected:

\setluaoption{ly}{staffsize}{24}

Next, you simply need to compile the document normally with the command lualatex -shell-escape:

lualatex -shell-escape DOCUMENT.TEX

Another "more secure" option is to add lilypond and gs to default allowed commands:

shell_escape_commands=$(kpsewhich -expand-var '$shell_escape_commands'),lilypond,gs lualatex DOCUMENT.TEX

On systems with low RAM, when working on big documents, you could encounter buffer overflows in lilypond calls. In that case, first compile with luatex's command line option --draftmode to generate all LilyPond output snippets, then compile again without this option to generate the output PDF.

You can also input music directly into your document with the lilypond environment. This is only recommended for relatively short snippets. For example:

\begin{lilypond}
\relative c' { c d e f g a b c }
\end{lilypond}

Finally, for truly short snippets, there is also the \lily command. Example:

\lilypond[staffsize=12]{c' d' g'}

Nota bene: The \lilypond command does not support blocks of LilyPond code with explicit \score blocks. Such code must be included with the lilypond environment or as a separate file.

Migration from lilypond-book

In order to facilitate the migration from lilypond-book, \lilypondfile, the environment lilypond and the command \lilypond should work nearly as with lilypond-book; for even more identical behaviour, call lyluatex as follows:

\usepackage[program=/opt/lilypond-dev/lilypond]{lyluatex}

That way, documents typeset with lilypond-book can be adapted to use lyluatex without much difficulty.

Credits

See Contributors.md.

Contributing

If you want improvements or encounter an error, do not hesitate to to report the issue. If you have programming skills, you may also propose your changes via a pull request.

This extension is and will remain free; if you find it useful and wish to encourage its development by a donation, many thanks!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].