>
Globally handles groove-patterns for the groove-quantization feature.
TODO Currently stores user-defined or imported patterns as .mid files in a directory
.frinika-groove-patterns/. This is very simple, persistent storage of patterns should
be configurable via user-options.
- Author:
- Jens Gulden
- See Also:
MidiQuantizeAction
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PRESETS_PACKAGE
public static final java.lang.String PRESETS_PACKAGE
- See Also:
- Constant Field Values
PRESETS
public static final java.lang.String[] PRESETS
getInstance
public static GroovePatternManager getInstance()
normalizeName
public static java.lang.String normalizeName(java.lang.String name)
getGroovePatterns
public java.util.Collection<GroovePattern> getGroovePatterns()
getGroovePattern
public GroovePattern getGroovePattern(java.lang.String name)
- Finds a groove pattern by name.
- Parameters:
name
-
- Returns:
- a groove pattern with the requested unique name, or null if ot found
getPresetGroovePatterns
public java.util.Collection<GroovePattern> getPresetGroovePatterns()
getUserGroovePatterns
public java.util.Collection<GroovePatternFromSequence> getUserGroovePatterns()
importUserGroovePattern
public GroovePatternFromSequence importUserGroovePattern(java.io.File midiFile)
throws java.io.IOException
- Throws:
java.io.IOException
importUserGroovePattern
public GroovePatternFromSequence importUserGroovePattern(java.lang.String name,
MidiPart part)
throws java.io.IOException
- Throws:
java.io.IOException
removeUserGroovePattern
public void removeUserGroovePattern(GroovePatternFromSequence gp)
throws java.io.IOException
- Throws:
java.io.IOException