/[svn]/gigedit/trunk/src/plugin/linuxsamplerplugin.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/plugin/linuxsamplerplugin.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1660 by schoenebeck, Sun Feb 3 00:19:55 2008 UTC revision 1664 by schoenebeck, Mon Feb 4 00:40:03 2008 UTC
# Line 127  bool LinuxSamplerPlugin::__onPollPeriod( Line 127  bool LinuxSamplerPlugin::__onPollPeriod(
127      if (!NotesChanged()) return true;      if (!NotesChanged()) return true;
128      for (int iKey = 0; iKey < 128; iKey++)      for (int iKey = 0; iKey < 128; iKey++)
129          if (NoteChanged(iKey))          if (NoteChanged(iKey))
130              NoteIsActive(iKey) ? // we don't care about velocity yet              NoteIsActive(iKey) ?
131                  app->on_note_on_event(iKey, 127) :                  app->on_note_on_event(iKey, NoteOnVelocity(iKey)) :
132                  app->on_note_off_event(iKey, 127);                  app->on_note_off_event(iKey, NoteOffVelocity(iKey));
133      return true;      return true;
134  }  }
135    

Legend:
Removed from v.1660  
changed lines
  Added in v.1664

  ViewVC Help
Powered by ViewVC