Pattern.MappingType
Constructor and Description |
---|
ConcretePattern(Loom loom) |
ConcretePattern(Loom loom,
ContinuousFunction function) |
ConcretePattern(Loom loom,
double defaultValue) |
ConcretePattern(Loom loom,
EventQueryable events) |
Modifier and Type | Method and Description |
---|---|
ConcretePattern |
clone() |
static ConcretePattern |
forEach(Pattern other)
Generate a pattern of note on and off events from the events of another
pattern.
|
static ConcretePattern |
forEach(Pattern other,
Double boundaryType)
Generate a pattern of note on or note off events from the events of
another pattern, depending on the boundary type desired.
|
Collection<Callable<?>> |
getActiveMappingsFor(Interval interval) |
Collection<DrawCommand> |
getDrawCommands() |
ConcurrentMap<Pattern.MappingType,Mapping<?>> |
getOutputMappings() |
double |
getValueFor(Interval now)
Returns the value of the pattern for a specified
Interval . |
boolean |
hasActiveMappings()
Check if this pattern or its children have any active mappings, i.e.
|
boolean |
hasMapping(Pattern.MappingType mapping) |
String |
toString() |
addAllTurtleDrawCommands, after, after, after, after, after, after, asCallable, asCallable, asColor, asColor, asDrawCommand, asDrawCommand, asFloat, asFloat, asInt, asInt, asMidiChannel, asMidiChannel, asMidiChannel, asMidiCommand, asMidiCommand, asMidiCommand, asMidiData1, asMidiData1, asMidiData1, asMidiData2, asMidiData2, asMidiData2, asMidiInstrument, asMidiInstrument, asMidiMessage, asMidiMessage, asMidiNote, asMidiNote, asMidiPercussion, asMidiPercussion, asObject, asObject, asOscBundle, asOscBundle, asOscBundle, asOscMessage, asOscMessage, asOscMessage, asOscMessage, asOscMessage, asSample, asSoundFile, asStatefulCallable, asStatefulCallable, asSynthParam, asTurtleDrawCommand, asTurtleDrawCommand, asTurtleDrawCommand, clear, delay, delay, draw, every, every, every, extend, extend, extend, extend, extend, extend, extend, following, fromABC, fromInts, fromString, getCurrentInterval, getCurrentInterval, getLoopInterval, getMinimumResolution, getRepeats, getTimeOffset, getTimeScale, getTotalInterval, getValue, getValueOffset, getValueScale, invert, isConcretePattern, isDiscretePattern, loop, once, onOnset, onOnset, onRelease, onRelease, putMapping, rect, rect, repeat, reverse, rewrite, select, selectFrom, setLoopInterval, setTimeMatch, setTimeOffset, setTimeOffset, setTimeScale, setTimeScale, setValueOffset, setValueScale, shift, shift, speed, speed, then, transform, transform, transpose
public ConcretePattern(Loom loom)
public ConcretePattern(Loom loom, double defaultValue)
public ConcretePattern(Loom loom, EventQueryable events)
public ConcretePattern(Loom loom, ContinuousFunction function)
public ConcurrentMap<Pattern.MappingType,Mapping<?>> getOutputMappings()
getOutputMappings
in class Pattern
public Collection<Callable<?>> getActiveMappingsFor(Interval interval)
getActiveMappingsFor
in class Pattern
public Collection<DrawCommand> getDrawCommands()
getDrawCommands
in class Pattern
public boolean hasActiveMappings()
Pattern
hasActiveMappings
in class Pattern
public boolean hasMapping(Pattern.MappingType mapping)
hasMapping
in class Pattern
public double getValueFor(Interval now)
Pattern
Interval
.getValueFor
in class Pattern
now
- the interval to querypublic static ConcretePattern forEach(Pattern other)
other
- the pattern to get events fromEventBoundaryProxy
public static ConcretePattern forEach(Pattern other, Double boundaryType)
other
- the pattern to get events fromboundaryType
- the boundary type (note on == 1.0, note off == 0.5)EventBoundaryProxy
public ConcretePattern clone()
Processing Library loom by Cora Johnson-Roberson. (c) 2014-2016