Mercurial > hg > sonic-visualiser
comparison audioio/AudioGenerator.cpp @ 185:f3191ab6d564
* Add MIDI file export (closes FR#1643721)
author | Chris Cannam |
---|---|
date | Thu, 04 Oct 2007 11:52:38 +0000 |
parents | ebd906049fb6 |
children |
comparison
equal
deleted
inserted
replaced
184:ebd906049fb6 | 185:f3191ab6d564 |
---|---|
534 | 534 |
535 snd_seq_event_t onEv; | 535 snd_seq_event_t onEv; |
536 onEv.type = SND_SEQ_EVENT_NOTEON; | 536 onEv.type = SND_SEQ_EVENT_NOTEON; |
537 onEv.data.note.channel = 0; | 537 onEv.data.note.channel = 0; |
538 onEv.data.note.note = 64; | 538 onEv.data.note.note = 64; |
539 onEv.data.note.velocity = 127; | 539 onEv.data.note.velocity = 100; |
540 | 540 |
541 snd_seq_event_t offEv; | 541 snd_seq_event_t offEv; |
542 offEv.type = SND_SEQ_EVENT_NOTEOFF; | 542 offEv.type = SND_SEQ_EVENT_NOTEOFF; |
543 offEv.data.note.channel = 0; | 543 offEv.data.note.channel = 0; |
544 offEv.data.note.velocity = 0; | 544 offEv.data.note.velocity = 0; |
678 | 678 |
679 snd_seq_event_t onEv; | 679 snd_seq_event_t onEv; |
680 onEv.type = SND_SEQ_EVENT_NOTEON; | 680 onEv.type = SND_SEQ_EVENT_NOTEON; |
681 onEv.data.note.channel = 0; | 681 onEv.data.note.channel = 0; |
682 onEv.data.note.note = 64; | 682 onEv.data.note.note = 64; |
683 onEv.data.note.velocity = 127; | 683 onEv.data.note.velocity = 100; |
684 | 684 |
685 snd_seq_event_t offEv; | 685 snd_seq_event_t offEv; |
686 offEv.type = SND_SEQ_EVENT_NOTEOFF; | 686 offEv.type = SND_SEQ_EVENT_NOTEOFF; |
687 offEv.data.note.channel = 0; | 687 offEv.data.note.channel = 0; |
688 offEv.data.note.velocity = 0; | 688 offEv.data.note.velocity = 0; |