class ToAbcmusic

Last modified: April 24, 2015

Contents

ToAbcmusic

In module gamera.toolkits.otr.to_abcmusic

Generates abc music code from tablature glyphs that are already semantically grouped.

The code is generated in the constructor and stored in the property abc_music.

__init__

Gives an output of a classified an semantically interpreted glyphlist as an abc music-formatted string.

Signature:

init(glyphs, tabtype, tuning="gdAFCG,", key="auto", factor=0)

with

glyphs:
classified and semantically interpreted glyphs. Depending on tabtype, this must be either the sorted list returned by TabGlypList.set_glyph_properties or the property page of a GermanGlyph object.
tuning:
The tuning of each course, from top to bottom. Each note is specified as abc code (sharp = prefix '^', flat = prefix '_', octave up = postfix single quote, octave down = postfix comma)
key:
Key signature, e.g. the value Eb stands for E flat Major or Cm for C Minor. When set to auto the key is guessed automatically.
factor:
Logarithmic length factor for slowing down. For example, when set to 2 the sixteenth notes are printed as quarter notes.

The resulting abc string is stored in the public property abc_music and can be given as input to the external program abctab2ps.