Пример #1
0
        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();
            }
        }
Пример #2
0
 public MidiEntry(BitMidiResultEntry midi)
 {
     InitializeComponent();
     this.midi = midi;
 }