public void PushBuffer(IMessage[] messages) { // Add messages to buffer, applying transformations LinkedList <IMessage> buffer = new LinkedList <IMessage>(); foreach (IMessage message in messages) { buffer.AddLast(message); } foreach (ITransform transform in Transforms) { buffer = transform.Apply(buffer); } MidiStream.PushBuffer(buffer); }
public MetaMidiStream() { MetaState = new MetaState(); MidiStream = new MidiStream(); }
public MetaMidiStream(int beatsPerMeasure, int subdivision, int bpm) { MetaState = new MetaState(beatsPerMeasure, subdivision, bpm); MidiStream = new MidiStream(); Transforms = new List <ITransform>(); }