[beast: 68/73] BSE: bsemidireceiver.cc: normalize indentation and whitespaces for merging
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 68/73] BSE: bsemidireceiver.cc: normalize indentation and whitespaces for merging
- Date: Thu, 23 Mar 2017 21:47:23 +0000 (UTC)
commit ef0680621027d347b6804f0d647cd0698c7eb928
Author: Tim Janik <timj gnu org>
Date: Thu Mar 23 18:51:31 2017 +0100
BSE: bsemidireceiver.cc: normalize indentation and whitespaces for merging
Signed-off-by: Tim Janik <timj gnu org>
bse/bsemidireceiver.cc | 100 ++++++++++++++++++++++++------------------------
1 files changed, 50 insertions(+), 50 deletions(-)
---
diff --git a/bse/bsemidireceiver.cc b/bse/bsemidireceiver.cc
index 446da4e..57ea060 100644
--- a/bse/bsemidireceiver.cc
+++ b/bse/bsemidireceiver.cc
@@ -1955,22 +1955,22 @@ midi_receiver_process_event_L (BseMidiReceiver *self,
BseTrans *trans = bse_trans_open ();
self->events = sfi_ring_remove_node (self->events, self->events);
switch (event->status)
- {
+ {
MidiChannel *mchannel;
case BSE_MIDI_NOTE_ON:
mchannel = self->peek_channel (event->channel);
- EDUMP ("MidiChannel[%u]: NoteOn %fHz Velo=%f channel=%s (stamp:%llu)", event->channel,
+ EDUMP ("MidiChannel[%u]: NoteOn %fHz Velo=%f channel=%s (stamp:%llu)", event->channel,
event->data.note.frequency, event->data.note.velocity, mchannel ? string_from_int
(event->channel) : "<unknown>", event->delta_time);
- if (mchannel)
+ if (mchannel)
mchannel->start_note (event->delta_time,
event->data.note.frequency,
event->data.note.velocity,
trans);
- else
+ else
sfi_diag ("ignoring note-on (%fHz) for foreign midi channel: %u", event->data.note.frequency,
event->channel);
- break;
- case BSE_MIDI_KEY_PRESSURE:
- case BSE_MIDI_NOTE_OFF:
+ break;
+ case BSE_MIDI_KEY_PRESSURE:
+ case BSE_MIDI_NOTE_OFF:
mchannel = self->peek_channel (event->channel);
EDUMP ("MidiChannel[%u]: %s %fHz channel=%s (stamp:%llu)", event->channel,
event->status == BSE_MIDI_NOTE_OFF ? "NoteOff" : "NotePressure",
@@ -1984,56 +1984,56 @@ midi_receiver_process_event_L (BseMidiReceiver *self,
event->data.note.frequency, event->status,
event->data.note.velocity, sustained_note, trans);
}
- break;
- case BSE_MIDI_CONTROL_CHANGE:
- EDUMP ("MidiChannel[%u]: Control %2u Value=%f (stamp:%llu)", event->channel,
+ break;
+ case BSE_MIDI_CONTROL_CHANGE:
+ EDUMP ("MidiChannel[%u]: Control %2u Value=%f (stamp:%llu)", event->channel,
event->data.control.control, event->data.control.value, event->delta_time);
- process_midi_control_L (self, event->channel, event->delta_time,
- event->data.control.control, event->data.control.value,
- FALSE,
+ process_midi_control_L (self, event->channel, event->delta_time,
+ event->data.control.control, event->data.control.value,
+ FALSE,
trans);
- break;
- case BSE_MIDI_X_CONTINUOUS_CHANGE:
- EDUMP ("MidiChannel[%u]: X Continuous Control %2u Value=%f (stamp:%llu)", event->channel,
- event->data.control.control, event->data.control.value, event->delta_time);
- process_midi_control_L (self, event->channel, event->delta_time,
- event->data.control.control, event->data.control.value,
+ break;
+ case BSE_MIDI_X_CONTINUOUS_CHANGE:
+ EDUMP ("MidiChannel[%u]: X Continuous Control %2u Value=%f (stamp:%llu)", event->channel,
+ event->data.control.control, event->data.control.value, event->delta_time);
+ process_midi_control_L (self, event->channel, event->delta_time,
+ event->data.control.control, event->data.control.value,
TRUE,
- trans);
- break;
- case BSE_MIDI_PROGRAM_CHANGE:
- EDUMP ("MidiChannel[%u]: Program %u (Value=%f) (stamp:%llu)", event->channel,
- event->data.program, event->data.program / (gfloat) 0x7f, event->delta_time);
- update_midi_signal_L (self, event->channel, event->delta_time,
- Bse::MidiSignal::PROGRAM, event->data.program / (gfloat) 0x7f,
- trans);
- break;
- case BSE_MIDI_CHANNEL_PRESSURE:
- EDUMP ("MidiChannel[%u]: Channel Pressure Value=%f (stamp:%llu)", event->channel,
- event->data.intensity, event->delta_time);
- update_midi_signal_L (self, event->channel, event->delta_time,
- Bse::MidiSignal::PRESSURE, event->data.intensity,
- trans);
- break;
- case BSE_MIDI_PITCH_BEND:
- EDUMP ("MidiChannel[%u]: Pitch Bend Value=%f (stamp:%llu)", event->channel,
+ trans);
+ break;
+ case BSE_MIDI_PROGRAM_CHANGE:
+ EDUMP ("MidiChannel[%u]: Program %u (Value=%f) (stamp:%llu)", event->channel,
+ event->data.program, event->data.program / (gfloat) 0x7f, event->delta_time);
+ update_midi_signal_L (self, event->channel, event->delta_time,
+ Bse::MidiSignal::PROGRAM, event->data.program / (gfloat) 0x7f,
+ trans);
+ break;
+ case BSE_MIDI_CHANNEL_PRESSURE:
+ EDUMP ("MidiChannel[%u]: Channel Pressure Value=%f (stamp:%llu)", event->channel,
+ event->data.intensity, event->delta_time);
+ update_midi_signal_L (self, event->channel, event->delta_time,
+ Bse::MidiSignal::PRESSURE, event->data.intensity,
+ trans);
+ break;
+ case BSE_MIDI_PITCH_BEND:
+ EDUMP ("MidiChannel[%u]: Pitch Bend Value=%f (stamp:%llu)", event->channel,
event->data.pitch_bend, event->delta_time);
- update_midi_signal_L (self, event->channel, event->delta_time,
- Bse::MidiSignal::PITCH_BEND, event->data.pitch_bend,
- trans);
- break;
- default:
- EDUMP ("MidiChannel[%u]: Ignoring Event %u (stamp:%llu)", event->channel,
+ update_midi_signal_L (self, event->channel, event->delta_time,
+ Bse::MidiSignal::PITCH_BEND, event->data.pitch_bend,
+ trans);
+ break;
+ default:
+ EDUMP ("MidiChannel[%u]: Ignoring Event %u (stamp:%llu)", event->channel,
event->status, event->delta_time);
- break;
- }
+ break;
+ }
if (self->notifier)
- {
- self->notifier_events = sfi_ring_append (self->notifier_events, event);
- need_wakeup = TRUE;
- }
+ {
+ self->notifier_events = sfi_ring_append (self->notifier_events, event);
+ need_wakeup = TRUE;
+ }
else
- bse_midi_free_event (event);
+ bse_midi_free_event (event);
bse_trans_commit (trans);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]