Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Media";
Текущий архив: 2005.08.21;
Скачать: [xml.tar.bz2];

Вниз

Сохранение midi   Найти похожие ветки 

 
toshbek   (2005-04-12 21:04) [0]

Как можно сохранить извлекаемые на мидивыход звуки в файл?
пример извлечения:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if (key = 90) and not (z) then
begin
 z := True;
 midimsg:=$7f3c90;
 midioutshortmsg(hmidi_out,midimsg);
end;
if (key = 88) and not (x) then
begin
 x := True;
 midimsg:=$7f3e91;
 midioutshortmsg(hmidi_out,midimsg);
end;
и т.д.
заранее благодарен!
p.s. как бороться с переполнение буфера клавы?


 
thaddy   (2005-04-12 22:37) [1]

The last one is easy: use a ringbuffer with size equal to the polypgony of the keyboard and store the access times. Throw away the oldest one when a new message enters and the buffer is full.
The first one:
You can find examples for midi storage on Colin Wilson's site:
http://www.wilsonc.demon.co.uk/delphi.htm
including a full midi sequencer application with all sources! (powerseqencer)


 
thaddy   (2005-04-12 22:38) [2]

The last one is easy: use a ringbuffer with size equal to the polypgony of the keyboard and store the access times. Throw away the oldest one when a new message enters and the buffer is full.
The first one:
You can find examples for midi storage on Colin Wilson's site:
http://www.wilsonc.demon.co.uk/delphi.htm
including a full midi sequencer application with all sources! (powerseqencer)


 
Digitman ©   (2005-04-13 10:10) [3]


> Как можно сохранить извлекаемые на мидивыход звуки в файл?


это зависит от конкретно используемого тобой MidiOut-дивайса


> как бороться с переполнение буфера клавы?


Использовать DirectInput



Страницы: 1 вся ветка

Форум: "Media";
Текущий архив: 2005.08.21;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.033 c
8-1107270985
SFproG
2005-02-01 18:16
2005.08.21
программный MIDI синтезатор


1-1122844342
ronyn
2005-08-01 01:12
2005.08.21
Срок работы DEMO


14-1122473064
Андрей Жук
2005-07-27 18:04
2005.08.21
Почитав Софта, я подумал


6-1115884049
DmitryMN
2005-05-12 11:47
2005.08.21
Проблема с пересылкой записи чеп рез сокет


1-1122906825
Starcom
2005-08-01 18:33
2005.08.21
Как в приложении вызвать процедуру для вывода изображения из RES





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский