public static void DownloadMidi(BitMidiResultEntry midi, Stream stream) { string URL = $"https://bitmidi.com" + midi.downloadUrl; using (WebClient client = new WebClient()) { byte[] Buffer = client.DownloadData(URL); stream.Write(Buffer, 0, Buffer.Length); stream.Flush(); } }
public MidiEntry(BitMidiResultEntry midi) { InitializeComponent(); this.midi = midi; }