Files
Client/Library/dxx8/samples/Multimedia/VBSamples/DirectMusic/DMDrums
LGram16 e067522598 Initial commit: ROW Client source code
Game client codebase including:
- CharacterActionControl: Character and creature management
- GlobalScript: Network, items, skills, quests, utilities
- RYLClient: Main client application with GUI and event handlers
- Engine: 3D rendering engine (RYLGL)
- MemoryManager: Custom memory allocation
- Library: Third-party dependencies (DirectX, boost, etc.)
- Tools: Development utilities

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 16:24:34 +09:00
..

//-----------------------------------------------------------------------------
// 
// Sample Name: DMDrums Sample
// 
// Copyright (C) 1999-2001 Microsoft Corporation. All rights reserved.
// 
//-----------------------------------------------------------------------------


Description
===========
The DMDrums sample illustrates playing Motif's from a 
DirectMusic segment, as well as playing grooves from that 
same segment using different instrument sets.

  
Path
====
  Source: DXSDK\Samples\Multimedia\VBSamples\DirectMusic\DMDrums

  Executable: DXSDK\Samples\Multimedia\VBSamples\DirectMusic\bin


User's Guide
============
Clicking any of the drum buttons will play that Drum based on the 
current grove and instrument set.  You can also click the Play 
button to play a default sample of that instrument set.  Volume and 
Tempo can also be changed.

Programming Notes
=================
On startup drums!.sgt and drums!.sty are loaded, and all motifs are
loaded from the style.  All available bands are loaded next, and the 
list of 'Grooves' are loaded.  We then play each motif whenever the 
corresponding button is pressed.  If the Play button is stopped we 
play the default segment.

Whenever a new band is selected we unload the current band, and then
load a new band (based on what is selected in the list box), and download
that band.  We also call SetMasterGrooveLevel whenever the groove has changed.

Finally, we can turn on and off environmental reverb by changing the default
audio path for DirectMusic.