Hi all,
i'm trying to write a basic synthesizer program that can stores a sequence of midi notes and their associated channel/velocity data. at the moment i have this which can take the data and use that to turn an oscillator on, however i want to be able to store a sequence of notes in an array so i can record/playback the sequence.
i am having difficulty in reading the data into an array, so far i have this (excluding the note synthesis code) to set the array element value to the note number but the osc is only playing 8 notes. from the decoder is taking the note-off message i.e. me releasing the key as the next note?:
is there anyone that can help/ point me in the right direction so i can get my sequencer up and running?. sorry for the long first post!Code:int main() { int notes[16]; int index, note, velocity; for(index = 0; index < 16; index ++) { note = aserveGetNote(); velocity = aserveGetVelocity(); notes[index] = note; printf("Note %d\n", index); processNote(note); } return 0; }
any and all help is greatly appreciated



LinkBack URL
About LinkBacks



