public void TestWrite() { byte[] data = TestUtils.GetArrayFromResourceStream("Bass_sample.mid"); midi.Read(data); MemoryStream ms = new MemoryStream(); midi.Write(ms, MIDIWriteOptions.ExplicitStatus); Assert.AreEqual(data, ms.ToArray()); }
public void TestWrite() { midi.ReadHMP(TestUtils.GetResourceStream("vgame20.hmp")); Assert.AreEqual(110712, midi.Write().Length); }
private static void WriteFile(MIDISequence midi, string fn) { ResolvePath(fn).Replace(midi.Write()); }