Changeset 370:925790633b2a in roaraudio for include/libroardsp/midi.h
- Timestamp:
- 08/03/08 14:49:05 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroardsp/midi.h
r367 r370 26 26 #define ROAR_MIDI_TYPE_SINE 1 27 27 28 struct roar_midi_len { 29 int mul; 30 int div; 31 }; 32 28 33 struct roar_note_octave { 29 34 uint16_t note; … … 31 36 int octave; 32 37 float freq; 33 int len_mul; 34 int len_div; 38 struct roar_midi_len len; 35 39 }; 36 40 41 42 struct roar_midi_basic_state { 43 struct roar_midi_len len; 44 struct roar_note_octave note; 45 }; 37 46 38 47 char * roar_midi_note2name (uint16_t note); … … 48 57 int roar_midi_gen_tone (struct roar_note_octave * note, int16_t * samples, float t, int rate, int channels, int type, void * opts); 49 58 59 60 int roar_midi_play_note (struct roar_stream * stream, struct roar_note_octave * note, float len); 61 62 int roar_midi_basic_init (struct roar_midi_basic_state * state); 63 int roar_midi_basic_play (struct roar_stream * stream, struct roar_midi_basic_state * state, char * notes); 64 50 65 #endif 51 66
Note: See TracChangeset
for help on using the changeset viewer.