C# 클래스 Midi.CallbackMessage

Pseudo-MIDI message used to arrange for a callback at a certain time.

This message can be scheduled with Clock.Schedule just like any other message. When its time comes and it gets "sent", it invokes the callback provided in the constructor.

The idea is that you can embed callback points into the music you've scheduled, so that (if the clock gets to that point in the music) your code has an opportunity for some additional processing.

The callback is invoked on the MidiOutputDevice's worker thread.

상속: Message
파일 보기 프로젝트 열기: jstnryan/midi-dot-net

공개 메소드들

메소드 설명
CallbackMessage ( CallbackType callback, float time ) : System

Constructs a Callback message.

MakeTimeShiftedCopy ( float delta ) : Message

Returns a copy of this message, shifted in time by the specified amount.

SendNow ( ) : void

Sends this message immediately, ignoring the beatTime.

메소드 상세

CallbackMessage() 공개 메소드

Constructs a Callback message.
public CallbackMessage ( CallbackType callback, float time ) : System
callback CallbackType The callback to invoke when this message is "sent".
time float The timestamp for this message.
리턴 System

MakeTimeShiftedCopy() 공개 메소드

Returns a copy of this message, shifted in time by the specified amount.
public MakeTimeShiftedCopy ( float delta ) : Message
delta float
리턴 Message

SendNow() 공개 메소드

Sends this message immediately, ignoring the beatTime.
public SendNow ( ) : void
리턴 void