Package org.staccato.functions
Class ArpeggiatedChordFunction
- java.lang.Object
-
- org.staccato.functions.ArpeggiatedChordFunction
-
- All Implemented Interfaces:
PreprocessorFunction
public class ArpeggiatedChordFunction extends java.lang.Object implements PreprocessorFunction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringapply(java.lang.String parameters, StaccatoParserContext context)Returns a string that should be inserted into the Staccato string instead of the function which is being pre-processed.static ArpeggiatedChordFunctiongetInstance()java.lang.String[]getNames()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.
-
-
-
Method Detail
-
getInstance
public static ArpeggiatedChordFunction getInstance()
-
apply
public java.lang.String apply(java.lang.String parameters, StaccatoParserContext context)Description copied from interface:PreprocessorFunctionReturns a string that should be inserted into the Staccato string instead of the function which is being pre-processed.- Specified by:
applyin interfacePreprocessorFunction- Returns:
-
getNames
public java.lang.String[] getNames()
Description copied from interface:PreprocessorFunctionReturns 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:
getNamesin interfacePreprocessorFunction- Returns:
-
-