home *** CD-ROM | disk | FTP | other *** search
/ Multimédia la Compil' 2 / Sybex_Multimedia_La_Compil_2.iso / cooltool / cooldrum / cooldrum.txt < prev    next >
Text File  |  1995-03-19  |  2KB  |  50 lines

  1. CoolDrum -- source code example for MIDI CoolTools
  2. Copyright (c) 1995, Artic Software
  3.  
  4. CoolDrum
  5. =======
  6. The CoolDrum example is to demonstrate how the queue timer functions and to show a very simple 
  7. example of creating MIDI music in real-time.  This example could be expanded to do all kinds 
  8. of really neat things.
  9.  
  10. MIDIOutput Queue
  11. ==============
  12. Whenever the MIDIOutput queue becomes empty, it automatically resets the time (ms) to 0.  
  13. Once you place another event into the queue, it will restart automatically at 0 ms.  As 
  14. long as events are in the queue, the queue will not reset to 0.  It will continue  to count 
  15. up in ms and sending events when scheduled.
  16.  
  17. The MIDI Output has a QueueEmpty Event that is fired as soon as the queue sends its last 
  18. event.  At this moment,  the timer in the queue is  resets back to 0.  You can use 
  19. this event to notify your program that more events are needed in the MIDI Output.  As soon 
  20. as the first event is received in the MIDI Output, playback will start right back up 
  21. automatically.
  22.  
  23. Another thing that you should understand about the MIDI Output is that it can be running 
  24. (sending events as scheduled) and also be receiving more events to schedule for sending.  
  25. It will automatically sort these new events by time -- place them into the correct order 
  26. to be sent.  The only limitation is if the schedule time has already passed, the event 
  27. is discarded.
  28.  
  29. This project contains source code form and module:
  30. COOLDRUM.FRM
  31. MIDCONST.BAS
  32.  
  33. To run this example you need:
  34. HSLIDE1.VBX
  35. VSLIDE1.VBX
  36. VINDIC1.VBX
  37. MIDI1.VBX
  38. VBRUN300.DLL
  39.  
  40.  
  41. For more information on ordering MIDI CoolTools:
  42.  
  43. Artic Software
  44. PO Box 28
  45. Waterford, WI 53185-0028
  46. Fax: 414-534-7809
  47. Voice: 414-534-4309
  48. CompuServe: Go Artic or 74777,2745
  49.  
  50. --end of file