Results 1 to 2 of 2

Thread: Playing Midis

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    55

    Lightbulb

    What code do I type in a command button to play a midi file?

    Please help

    Thanks
    Beres

  2. #2
    Guest
    Code:
    Public Declare Function mciMM Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
    Code:
    '--Command Button--'
    mciMM "Open Pathname Type Sequencer Alias midiex Buffer 4", "", 0, 0
    '--End Code--'
    Please reply if you also want to know how to detect the Stop Time of the midi.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width