public class guidofactory
extends java.lang.Object
OpenVoice()
), it becomes the current
voice and all subsequent created events are implicitly added to this current voice.
The elements of the factory state are:
OpenMusic()
and CloseMusic()
OpenVoice()
and CloseVoice()
OpenChord()
and CloseChord()
OpenEvent()
and CloseEvent()
OpenTag()
and CloseTag()
Modifier and Type | Field and Description |
---|---|
long |
fFactoryHandler |
Constructor and Description |
---|
guidofactory() |
Modifier and Type | Method and Description |
---|---|
int |
AddFlat()
Add a flat to the current event.
|
int |
AddSharp()
Adds a sharp to the current event.
|
int |
AddTagParameterFloat(double val)
Adds a new floating-point parameter to the current tag.
|
int |
AddTagParameterInt(int val)
Adds a new integer parameter to the current tag.
|
int |
AddTagParameterString(java.lang.String val)
Adds a new string parameter to the current tag.
|
void |
Close()
Closes the Guido Factory.
|
int |
CloseChord()
Closes the current chord.
|
int |
CloseEvent()
Closes the current event.
|
long |
CloseMusic()
Closes the current music score.
|
int |
CloseTag()
Closes the current tag.
|
int |
CloseVoice()
Closes the current voice.
|
int |
EndTag()
Indicates the end of a range tag.
|
protected static void |
Init()
Internal jni initialization method.
|
int |
InsertCommata()
Begins a new chord note commata.
|
int |
IsRangeTag()
Deprecated.
|
int |
Open()
Opens the Guido Factory.
|
int |
OpenChord()
Creates and open a new chord.
|
int |
OpenEvent(java.lang.String eventName)
Creates and opens a new event (note or rest).
|
int |
OpenMusic()
Creates and opens a new music score.
|
int |
OpenRangeTag(java.lang.String tagName,
long tagID)
Add a range tag to the current voice.
|
int |
OpenTag(java.lang.String tagName,
long tagID)
Add a tag to the current voice.
|
int |
OpenVoice()
Creates and opens a new voice.
|
int |
SetDuration(int numerator,
int denominator)
Sets the duration of the current event.
|
int |
SetEventAccidentals(int accident)
Sets the accidentals of the current event.
|
int |
SetEventDots(int dots)
Sets the number of dots of the current event.
|
int |
SetOctave(int octave)
Sets the octave of the current event.
|
int |
SetParameterName(java.lang.String name)
Defines the name (when applicable) of the last added tag-parameter
|
int |
SetParameterUnit(java.lang.String unit)
Defines the unit of the last added tag-parameter
|
public final int Open()
public final void Close()
public final int OpenMusic()
CloseMusic()
CloseMusic()
public final long CloseMusic()
OpenMusic()
public final int OpenVoice()
CloseVoice()
Voices are similar to sequence is GMN.CloseVoice()
public final int CloseVoice()
OpenVoice()
public final int OpenChord()
CloseChord()
CloseChord()
public final int CloseChord()
OpenChord()
public final int InsertCommata()
public final int OpenEvent(java.lang.String eventName)
CloseEvent()
eventName
- a note, rest or empty name confroming to the GMN formatCloseEvent()
public final int CloseEvent()
OpenEvent(java.lang.String)
public final int AddSharp()
public final int AddFlat()
public final int SetEventDots(int dots)
dots
- the number of dots to be carried by the current event.public final int SetEventAccidentals(int accident)
accident
- positive values are used for sharp and negative values for flatspublic final int SetOctave(int octave)
octave
- is an integer value indicating the octave of the note where
a1 is A 440Hz. All octaves start with the pitch class c
.public final int SetDuration(int numerator, int denominator)
numerator
- the rational duration numeratordenominator
- the rational duration denominatorpublic final int OpenTag(java.lang.String tagName, long tagID)
tagName
- the tag nametagID
- is the number that the parser generates for advanced GUIDO ?????public final int OpenRangeTag(java.lang.String tagName, long tagID)
tagName
- the tag nametagID
- a tag identifier@Deprecated public final int IsRangeTag()
OpenTag(String, long)
OpenRangeTag(String, long)
public final int EndTag()
CloseTag()
.
With the following examples:
staff<1> c d
: call EndTag()
after CloseTag()
and
before creating the c
note slur(c d e) f
: call EndTag()
before creating the f
note public final int CloseTag()
tag<1,2,3>(c d e )
: call CloseTag()
, next IsRangeTag()
creating the c d e
notes and call EndTag()
tag<1,2> c d
: call CloseTag()
before creating the c
note
public final int AddTagParameterString(java.lang.String val)
val
- the string parameter valuepublic final int AddTagParameterInt(int val)
val
- the parameter valuepublic final int AddTagParameterFloat(double val)
val
- the parameter valuepublic final int SetParameterName(java.lang.String name)
name
- the tag parameter namepublic final int SetParameterUnit(java.lang.String unit)
unit
- a string defining the unit. The following units are supported:
m
- meter cm
- centimeter mm
- millimeter in
- inch pt
- point (= 1/72.27 inch) pc
- pica (= 12pt) hs
- halfspace (half of the space between two lines of the current staff) rl
- relative measure in percent (used for positioning on score page) protected static void Init()