Windows Media Encoder SDK banner art

To create a segment based on the style

  1. On the File menu, click New. In the Create New File(s) dialog box, select Segment. Clear the Use Default Names checkbox and enter StyleBased as the name. Click OK.
  2. In the Add New Tracks dialog box, select Groove Track and Style Track. You can select both by holding down the Control key while clicking. Click OK. You see the new segment in the Segment Designer window.
  3. Open the Properties window for the segment. Set the length to 13 bars.
  4. Select the first measure in the groove track and press Insert. In the Groove Level Properties window, the groove level should already be set to 1.
  5. Select measure 9 in the groove track and press Insert. Set the groove level to 100.
  6. Select measure 13 in the groove track and press Insert. In the Embellishment list, select End.
  7. Select the first measure in the style track and press Insert. A Style Properties window appears. Select DemoStyle from the drop-down list. The following figure shows the style being inserted in the segment.

    Style-based segment and style properties

You have now created a segment that only plays back certain patterns in each measure. For the first eight measures, the segment will play only PatternA and PatternB, which you earlier marked as valid for groove levels 1 to 50. For the next four measures, it will play only PatternC, which is valid for groove levels 51 to 100. Finally, because the last measure is marked as an ending, only PatternEnding can be played in this position.

Play the segment to observe how the patterns are selected, and how variations are used. Four different sequences of patterns are possible for the first four measures: AA, AB, BA, and BB. Because most of the patterns in the style have two or more variations, and the choice of variation is independent for each part within the pattern, the total number of ways this simple piece of music can be played is very large.


© 2000-2001 Microsoft Corporation. All rights reserved.