Package org.staccato

Class MicrotonePreprocessor

  • All Implemented Interfaces:
    Preprocessor

    public class MicrotonePreprocessor
    extends java.lang.Object
    implements Preprocessor
    The MicrotonePreprocess lets a user express a microtone using 'm' followed by the frequency - e.g., m440. The MicrotonePreprocessor takes this String, parses the frequency value, figures out what Pitch Wheel and Note events need to be called to generate this frequency in MIDI, and returns the full set of Staccato Pitch Wheel and Note events.
    • Constructor Detail

      • MicrotonePreprocessor

        public MicrotonePreprocessor()
    • Method Detail

      • convertFrequencyToStaccato

        public static java.lang.String convertFrequencyToStaccato​(double frequency,
                                                                  java.lang.String qualifier)
        Converts the given frequency to a music string that involves the Pitch Wheel and notes to create the frequency
        Parameters:
        freq - the frequency
        Returns:
        a MusicString that represents the frequency