Skip navigation links
eu.bandm.music.top

Class MwHaiku

    • Field Detail

      • myModifiers

        static final Modifiers myModifiers
        Tscore parsing control.
      • voxname_haiku

        public static final String voxname_haiku
        The name of the only voice, carrying the haiku syllables.
        See Also:
        Constant Field Values
      • paramname_kategorie

        public static final String paramname_kategorie
        The name of the only obligate parameter track, carrying the categorie of the phonetic units.
        See Also:
        Constant Field Values
      • paramname_register

        public static final String paramname_register
        The name of the an additional parameter track, carrying the accordeon register for MWs project.
        See Also:
        Constant Field Values
      • cat_redundant

        public static final char cat_redundant
        Character category: only WRITTEN character, no phonetic appearance.
        See Also:
        Constant Field Values
      • cat_plosive

        public static final char cat_plosive
        Character category: very short explosive sound.
        See Also:
        Constant Field Values
      • cat_long

        public static final char cat_long
        Character category: long (mostly vowel, but also soundful consonant.)
        See Also:
        Constant Field Values
      • cat_short

        public static final char cat_short
        Character category: short (normal vowel or consonant).
        See Also:
        Constant Field Values
      • cat_start

        public static final char cat_start
        Character category: at the start of a syllable, no stand-alone form possible ("spiritus asper" etc)
        See Also:
        Constant Field Values
      • cat_end

        public static final char cat_end
        Character category: at the end of a syllable, nearly vanishing.
        See Also:
        Constant Field Values
      • event2silbe

        final Map<Event,String> event2silbe
        The text for each tscore event.
      • eventNotLastInWord

        final Map<Event,String> eventNotLastInWord
        Whether the text of a tscore event ends with a "-".
      • eventIsLastInLine

        final Map<Event,String> eventIsLastInLine
        Whether the text of a tscore event ends with a "/".
      • event2kategorien

        final Map<Event,String> event2kategorien
        The category string corresponding to the syllable text.
      • parseText

        protected final Translet.Parser<?> parseText
        Parser for syllable text. Accepts all German language characters.
      • parseKateg

        protected final Translet.Parser<?> parseKateg
        Parser for character categories
      • soundEvents

        final List<MwHaiku.GenEvent> soundEvents
        Sequence of event prototypes, generated from the characters of the syllables. (Only this sequence will be further translated into CWN Events by MwHaiku_to_cwn.)
      • soundEvent2inEvent

        final Map<MwHaiku.GenEvent,Event> soundEvent2inEvent
        Maps the sound event prototype to the original Haiku score event.
      • origin

        final Map<Event,Event> origin
        Maps the generated CWN event to the original Haiku score event.
      • posInOrigin

        final Map<Event,Integer> posInOrigin
        Gives the position of the character which lead to the CWN event in the original Haiku score event's sequence of categories.
      • kat2factor

        protected Map<Character,Rational> kat2factor
        Duration factors for the different categories of phonems. Should later be parameterizable, FIXME.
      • debugLevel

        protected int debugLevel
        Whether to print debugging information. (Can become an option)
      • msgCounter

        final MessageCounter msgCounter
        Only needed in the main application.
    • Constructor Detail

      • MwHaiku

        public MwHaiku()
    • Method Detail

      • dumpRawEvents

        protected void dumpRawEvents(Vox v)
        Debugging method, dump the events of the Haiku score: syllable text, categories and "lastInLine" / "notLastInWord".
      • doAdd

        protected void doAdd(Map<Event,Integer> map,
                             Event e,
                             int i)
        Count up the number assigned to e by one.
      • printStatistics

        protected void printStatistics(Vox v,
                                       PrintWriter p,
                                       String inputfilename)
        Print the whole analysed input score as a vertical table of groupings and frequencies.
                  syllables in that line
                 /     syllables in that word
                /     /      phonemes in that word
               /     /      /     phonemes in that syllables
              /     /      /     /    syllable
             /     /      /     /    /and categories
            /     /      /     /    /   Phonemes and calculated durations 
           /     /      /     /    /   /
          S/Z   S/W   Ph/W  Ph/S  |
          ------------------------+---------------
            5     2     6     3   | Wol W=1/2 o=1/4 l=1/2
                                  | -,-
                              3   | ken k=1/12 e=1/4 n=1/2
                                  | !,-
                  1     2     2   | am a=3/8 m=3/4
                                  | ,-
                  2     5     2   | Hü H=1/8 ü=3/4
                                  | !-
                              3   | gel g=1/12 e=1/4 l=1/2
                                  | !,-
          
      • update

        public Vox update(TimeScape timeScape)
        Convert raw data into haiku input events.
        Returns:
        the only haiku voice (for printing statistics, etc.)
      • error

        void error(String s)
        Send an error to msg
      • error

        void error(Event e,
                   String s)
        Send an error to msg with the event's location
      • hasErrors

        boolean hasErrors()
        Whether errors have been received by msg.
      • terminateApplicationOnErrors

        void terminateApplicationOnErrors()
        Evident. Print text and message counts.
      • convert

        protected void convert(String inputfilename)
        Central service provision: read the input file identified by the given file name and generate all output files.
      • main

        public static void main(String[] args)
        Application to parse a tscore source file and generated lilypond source and statistics.
      • nonStatic_main

        public void nonStatic_main(String[] args)
        Application to parse a tscore source file and generated lilypond source and statistics.