Changeset 2464:eeed49d99728 in roaraudio


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

added some basic note on/off functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/ssynth.c

    r2463 r2464  
    141141 
    142142int ssynth_note_on       (struct roar_note_octave * note, char vv) { 
    143  return -1; 
     143 return ssynth_note_new(note, vv); 
    144144} 
    145145 
    146146int ssynth_note_off      (struct roar_note_octave * note, char vv) { 
    147  return -1; 
     147 int id; 
     148 
     149 if ( (id = ssynth_note_find(note)) == -1 ) 
     150  return -1; 
     151 
     152 // add support to for keyups... 
     153 
     154 return ssynth_note_free(id); 
    148155} 
    149156 
Note: See TracChangeset for help on using the changeset viewer.