Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro for typesetting melodies #6

Open
tweh opened this issue Aug 5, 2013 · 0 comments
Open

Macro for typesetting melodies #6

tweh opened this issue Aug 5, 2013 · 0 comments

Comments

@tweh
Copy link
Owner

tweh commented Aug 5, 2013

Typeset a melody line above of syllables/words with

\melody[<highlights>]{<melody>}{<syllables>}

and a melody without syllables

\melodyline<*>[<highlights>]{<melody>}{<syllables>}

with a starred version to typeset a smaller version, i.e. use a smaller base unit.

The <melody> list constist of numbers, e.g. {0 0 1 0 2 2 0 0 0} would print something like

               _ _ 
      _      /     \
_ _ /   \ _ /       \ _ _ _

In the normal version the number should be absolute (i.e. always relative to 0) but
both macros should get a “plused” version (\melody+/\melodyline+) to make the melody numbers relative. The above example then would be {0 0 1 -1 2 0 -2 0 0}.


Add a TikZ style every melody and different styles like soft sloped, hard sloped, rectangular, smoothed etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant