Results 1 to 3 of 3

Thread: MMcontrol -midi-

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Posts
    4

    Post

    i was wondering how you can make your midi forever looping using the mmcontrol.
    i tried this but its not working
    ____________________________________________
    If Form1.MMControl1.Mode = 530 Then Form1.MMControl1.Command = "PREV" And Form1.MMControl1.Command = "PLAY"
    _____________________________________________
    Please Help...
    Also see my Collision and PacMan engine Post!

  2. #2
    Member
    Join Date
    Jun 1999
    Location
    Singapore
    Posts
    32

    Post

    I was thinking it might work if you change the code to this:

    If MMControl1.Length > 0 And MMControl1.Length = MMControl1.Position Then
    MMControl1.Command = "Prev"
    MMControl1.Command = "Play"
    End If

    By the way, you cannot "AND" commands after an 'IF' command. You can only "AND" conditions for an 'IF' command to be true.

    [This message has been edited by atjs (edited 08-01-1999).]

  3. #3
    Junior Member
    Join Date
    Feb 2002
    Posts
    26

    Your Solution

    It's actually quite easy. In the MMControl's "stop" event, place the code you use to start playing the MIDI. When the MIDI stops playing, it will begin playing again from the start.

    I forget exactly which event it is, but you can spot it pretty easily by scanning through the drop-down list of events in the VB IDE for your MM control.
    ~~~RLore18

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