Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking for a MIDI solution
#9
(09-03-2023, 12:43 AM)SMcNeill Wrote: Can you share the code and file?  Something is wrong if it's a 200mb file.
Code: (Select All)
$Unstable:Midi
$MidiSoundFont:Big GrinDefault

Option _Explicit

Dim buffer As String
Dim h As Long

buffer = LoadData

h = _SndOpen(buffer, "memory")

_SndLoop h

Function LoadData$
    Dim Size As _Unsigned Long
    Dim MEM As String

    Open "game-over.mid" For Binary Access Read As #1
    Size = LOF(1)
    MEM = Space$(Size)
    Get #1, , MEM
    Close #1

    LoadData$ = MEM
End Function

And this is the result:
[Image: AITFw-yHm1QKD_ijph3uAykYyLXTzkrADWzo4IpA...w1440-h856]

The midi is exactly 415 bytes in size.

(09-03-2023, 01:07 AM)SpriggsySpriggs Wrote: You can use MCISendString, I believe.
How do I do that there exactly?
So to transfer a MIDI in the buffer to the MCI?
Reply


Messages In This Thread
Looking for a MIDI solution - by SagaraS - 09-02-2023, 07:17 PM
RE: Looking for a MIDI solution - by bplus - 09-02-2023, 07:35 PM
RE: Looking for a MIDI solution - by SMcNeill - 09-02-2023, 07:41 PM
RE: Looking for a MIDI solution - by SMcNeill - 09-02-2023, 07:43 PM
RE: Looking for a MIDI solution - by DSMan195276 - 09-02-2023, 08:22 PM
RE: Looking for a MIDI solution - by SagaraS - 09-03-2023, 12:40 AM
RE: Looking for a MIDI solution - by SMcNeill - 09-03-2023, 12:43 AM
RE: Looking for a MIDI solution - by SagaraS - 09-03-2023, 01:27 AM
RE: Looking for a MIDI solution - by mnrvovrfc - 09-03-2023, 01:37 AM
RE: Looking for a MIDI solution - by SagaraS - 09-03-2023, 01:52 AM
RE: Looking for a MIDI solution - by SMcNeill - 09-03-2023, 02:22 AM
RE: Looking for a MIDI solution - by SagaraS - 09-03-2023, 02:36 AM
RE: Looking for a MIDI solution - by SMcNeill - 09-03-2023, 09:30 PM
RE: Looking for a MIDI solution - by grymmjack - 09-06-2023, 12:07 AM
RE: Looking for a MIDI solution - by SMcNeill - 09-03-2023, 02:33 AM
RE: Looking for a MIDI solution - by DSMan195276 - 09-03-2023, 03:09 AM
RE: Looking for a MIDI solution - by mnrvovrfc - 09-03-2023, 03:13 AM
RE: Looking for a MIDI solution - by MasterGy - 09-03-2023, 06:48 AM
RE: Looking for a MIDI solution - by grymmjack - 09-03-2023, 02:18 PM
RE: Looking for a MIDI solution - by SagaraS - 09-03-2023, 11:26 AM
RE: Looking for a MIDI solution - by a740g - 09-03-2023, 12:09 PM
RE: Looking for a MIDI solution - by grymmjack - 09-03-2023, 02:27 PM
RE: Looking for a MIDI solution - by SagaraS - 09-03-2023, 06:37 PM
RE: Looking for a MIDI solution - by mnrvovrfc - 09-05-2023, 04:40 PM
RE: Looking for a MIDI solution - by grymmjack - 09-06-2023, 12:10 AM
RE: Looking for a MIDI solution - by mnrvovrfc - 09-06-2023, 07:05 AM



Users browsing this thread: 1 Guest(s)