57 |
e.Type = Event::type_note_on; |
e.Type = Event::type_note_on; |
58 |
e.Param.Note.Key = note; |
e.Param.Note.Key = note; |
59 |
e.Param.Note.Velocity = velocity; |
e.Param.Note.Velocity = velocity; |
60 |
e.Format = {}; // init format speific stuff with zero |
memset(&e.Format, 0, sizeof(e.Format)); // init format speific stuff with zero |
61 |
|
|
62 |
int id = pEngineChannel->ScheduleEvent(&e, duration); |
int id = pEngineChannel->ScheduleEvent(&e, duration); |
63 |
|
|
77 |
static_cast<AbstractEngineChannel*>(m_vm->m_event->cause.pEngineChannel); |
static_cast<AbstractEngineChannel*>(m_vm->m_event->cause.pEngineChannel); |
78 |
|
|
79 |
Event e = m_vm->m_event->cause; |
Event e = m_vm->m_event->cause; |
80 |
e.Format = {}; // init format speific stuff with zero |
memset(&e.Format, 0, sizeof(e.Format)); // init format speific stuff with zero |
81 |
if (controller == CTRL_TABLE_IDX_AFTERTOUCH) { |
if (controller == CTRL_TABLE_IDX_AFTERTOUCH) { |
82 |
e.Type = Event::type_channel_pressure; |
e.Type = Event::type_channel_pressure; |
83 |
e.Param.ChannelPressure.Value = value & 127; |
e.Param.ChannelPressure.Value = value & 127; |