~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to modules/controller_midi.c

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-08-22 11:50:05 UTC
  • mfrom: (0.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20080822115005-yxj5svf3v9x1mkr7
Tags: upstream-2.4.7
ImportĀ upstreamĀ versionĀ 2.4.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
869
869
      switch (event->type)
870
870
        {
871
871
        case SND_SEQ_EVENT_NOTEON:
872
 
          midi_event (midi, midi->channel, event->data.note.note,
 
872
          midi_event (midi, event->data.note.channel,
 
873
                      event->data.note.note,
873
874
                      (gdouble) event->data.note.velocity / 127.0);
874
875
          break;
875
876
 
876
877
        case SND_SEQ_EVENT_NOTEOFF:
877
 
          midi_event (midi, midi->channel, event->data.note.note + 128,
 
878
          midi_event (midi, event->data.note.channel,
 
879
                      event->data.note.note + 128,
878
880
                      (gdouble) event->data.note.velocity / 127.0);
879
881
          break;
880
882
 
881
883
        case SND_SEQ_EVENT_CONTROLLER:
882
 
          midi_event (midi, midi->channel, event->data.control.param + 256,
 
884
          midi_event (midi, event->data.control.channel,
 
885
                      event->data.control.param + 256,
883
886
                      (gdouble) event->data.control.value / 127.0);
884
887
          break;
885
888