Changeset 2463:4f769fd0a58b in roaraudio


Ignore:
Timestamp:
08/21/09 19:18:22 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

very basic ssynth_eval_message(), stubs for ssynth_note_on() and ssynth_note_off()

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/include/ssynth.h

    r2460 r2463  
    7070int ssynth_note_set_stage(int id, int stage); 
    7171 
     72int ssynth_note_on       (struct roar_note_octave * note, char vv); 
     73int ssynth_note_off      (struct roar_note_octave * note, char vv); 
     74 
    7275int ssynth_eval_message (struct midi_message * mes); 
    7376 
  • roard/ssynth.c

    r2460 r2463  
    140140} 
    141141 
     142int ssynth_note_on       (struct roar_note_octave * note, char vv) { 
     143 return -1; 
     144} 
     145 
     146int ssynth_note_off      (struct roar_note_octave * note, char vv) { 
     147 return -1; 
     148} 
     149 
    142150int ssynth_eval_message (struct midi_message * mes) { 
     151 if ( !ssynth_conf.enable ) 
     152  return -1; 
     153 
     154 switch (mes->type) { 
     155  case MIDI_TYPE_NOTE_OFF: 
     156    return ssynth_note_off(&(mes->d.note), mes->vv); 
     157   break; 
     158  case MIDI_TYPE_NOTE_ON: 
     159    return ssynth_note_off(&(mes->d.note), mes->vv); 
     160   break; 
     161  default: 
     162    /* ignore all other events at the moment */ 
     163    return 0; 
     164 } 
     165 
    143166 return -1; 
    144167} 
Note: See TracChangeset for help on using the changeset viewer.