Class TrillFunction

java.lang.Object
org.staccato.functions.TrillFunction
All Implemented Interfaces:
PreprocessorFunction

public class TrillFunction extends Object implements PreprocessorFunction
Replaces the given note with multiple 32nd notes of the given note and the note one interval higher. For example, ":trill(Cq)" will become "Ct Dt Ct Dt Ct Dt Ct Dt"
Author:
dkoelle
  • Method Details

    • getInstance

      public static TrillFunction getInstance()
    • apply

      public String apply(String parameters, StaccatoParserContext context)
      Description copied from interface: PreprocessorFunction
      Returns a string that should be inserted into the Staccato string instead of the function which is being pre-processed.
      Specified by:
      apply in interface PreprocessorFunction
      Parameters:
      parameters -
      context -
      Returns:
    • getNames

      public String[] getNames()
      Description copied from interface: PreprocessorFunction
      Returns the names of this function, which are the same names that would be seen in the Staccato function call, e.g., "TRILL" for a trill function. The name of the function must be expressed in all capital letters. This method may return multiple names of a function to allow for abbreviations (e.g., TR or TRILL could both be legal names for the trill function)
      Specified by:
      getNames in interface PreprocessorFunction
      Returns: