public class EventFactory extends Object
Modifier and Type | Method and Description |
---|---|
static Optional<Event> |
create(MidiEvent event,
TempoCache cache)
Constructs a new immutable subclass of
Event with the appropriate
information. |
static Optional<Event> |
create(MidiMessage message,
long time)
Constructs a new immutable subclass of
Event with the appropriate
information. |
public static Optional<Event> create(MidiEvent event, TempoCache cache)
Event
with the appropriate
information.event
- the MidiEvent
to create an event forcache
- the TempoCache
to convert timestamps withpublic static Optional<Event> create(MidiMessage message, long time)
Event
with the appropriate
information.message
- the MidiMessage
to create an event fortime
- the time in microseconds to create an event forCopyright © 2015 Kreatious LLC. All rights reserved.