Package | Description |
---|---|
net.kreatious.pianoleopard.midi |
Data models backed by physical MIDI sequencer devices
|
net.kreatious.pianoleopard.midi.event |
Data model for MIDI events
|
Modifier and Type | Method and Description |
---|---|
void |
OutputModel.addEventHandler(BiFunction<MidiMessage,Optional<Event>,OutputModel.EventAction> handler)
Adds an event handler to handle MIDI events.
|
void |
InputModel.addInputListener(Consumer<? super Event> listener)
Adds a listener to notify when the user has pressed a key
|
Modifier and Type | Class and Description |
---|---|
class |
EventPair<T extends Event>
Represents an immutable pair of on/off events
|
Modifier and Type | Class and Description |
---|---|
class |
NoteEvent
Represents a note on or off event that is associated with a particular key
(note) number.
|
class |
PedalEvent
Represents an event that is associated with a pedal.
|
Modifier and Type | Method and Description |
---|---|
abstract <T extends Event> |
Event.createOff(long offTime)
Creates a new off event of the same type and slot with the specified
timestamp.
|
Modifier and Type | Method and Description |
---|---|
static Optional<Event> |
EventFactory.create(MidiEvent event,
TempoCache cache)
Constructs a new immutable subclass of
Event with the appropriate
information. |
static Optional<Event> |
EventFactory.create(MidiMessage message,
long time)
Constructs a new immutable subclass of
Event with the appropriate
information. |
Copyright © 2015 Kreatious LLC. All rights reserved.