File: node5.html

package info (click to toggle)
mma 0.12-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,020 kB
  • ctags: 1,143
  • sloc: python: 5,235; makefile: 37
file content (470 lines) | stat: -rw-r--r-- 12,941 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2002-2-1 (1.70)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Sequences</TITLE>
<META NAME="description" CONTENT="Sequences">
<META NAME="keywords" CONTENT="mma">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="mma.css">

<LINK REL="next" HREF="node6.html">
<LINK REL="previous" HREF="node4.html">
<LINK REL="up" HREF="mma.html">
<LINK REL="next" HREF="node6.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html337"
  HREF="node6.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="file:/usr/lib/latex2html/icons/next.png"></A> 
<A NAME="tex2html335"
  HREF="mma.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="file:/usr/lib/latex2html/icons/up.png"></A> 
<A NAME="tex2html329"
  HREF="node4.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="file:/usr/lib/latex2html/icons/prev.png"></A>   
<BR>
<B> Next:</B> <A NAME="tex2html338"
  HREF="node6.html">Grooves</A>
<B> Up:</B> <A NAME="tex2html336"
  HREF="mma.html">Reference Manaul</A>
<B> Previous:</B> <A NAME="tex2html330"
  HREF="node4.html">Patterns</A>
<BR>
<BR>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>

<UL>
<LI><A NAME="tex2html339"
  HREF="node5.html#SECTION00510000000000000000">SeqClear</A>
<LI><A NAME="tex2html340"
  HREF="node5.html#SECTION00520000000000000000">SeqRnd</A>
<LI><A NAME="tex2html341"
  HREF="node5.html#SECTION00530000000000000000">SeqNoRnd</A>
<LI><A NAME="tex2html342"
  HREF="node5.html#SECTION00540000000000000000">SeqSize</A>
</UL>
<!--End of Table of Child-Links-->
<HR>

<H1><A NAME="SECTION00500000000000000000"></A>
<A NAME="sec-seqs"></A>
<BR>
Sequences
</H1> 

<P>
Patterns by themselves don't do much good. They have to be combined into
sequences to be of any use to you or to <I><B>MMA</B></I>.

<P>
A <I>Sequence</I> command sets the pattern(s) used in creating 
each track in your song:

<P>

	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>Track Sequence Pattern1 Pattern2 ... </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

<P>
``Track'' can be any valid track name: ``Chord'', ``Walk'', ``Walk-Sus'', ``Arpeggio-88'', etc.

<P>
All pattern names used when setting a sequence need to be defined
when this command is issued; or you can use what appears to be
a pattern definition right in the sequence command by enclosing the pattern definition in a set of  curly brackets ``{ }''.

<P>

<DIV ALIGN="CENTER">

<P><A NAME="eg:seq1"></A></P>      
	<TABLE CELLSPACING=0 CELLPADDING=10" BGCOLOR="#dddddd" BORDER=3><TR> <TD>
	
      	<TABLE  WIDTH="100%"><CAPTION ALIGN="BOTTOM"><STRONG><B>Example</B> 5.1:</STRONG>
Simple Sequence</CAPTION>
<TR><TD> 
      	    <BR>
<BR>
      	    
	
	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>SeqClear 
<BR>
SeqSize 2 
<BR>
Begin Drum 
<BR>	&nbsp;&nbsp;&nbsp; Sequence Snare4 
<BR>	&nbsp;&nbsp;&nbsp; Tone Snaredrum1 
<BR>
End 
<BR>
Begin Drum-1 
<BR>	&nbsp;&nbsp;&nbsp; Sequence Bass1 Bass2 
<BR>	&nbsp;&nbsp;&nbsp; Tone KickDrum2 
<BR>
End 
<BR>
Chord Sequence Broken8  
<BR>
Bass Sequence Broken8 
<BR>
Arpeggio Sequence { 1 1 100 * 8 } { 1 1 80 * 4 }  </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

      	    <BR>
<BR>
      	    </TD></TR>
</TABLE>

<P>
 

	</TD></TR></TABLE> 
 
</DIV>

<P>
Example <A HREF="#eg:seq1">5.1</A> creates a 2 bar pattern. The Drum, Chord and Bass patterns repeat on every bar; the Drum-1 sequence repeats after 2 bars. Note how the Arpeggio pattern is defined at run-time. <A NAME="tex2html29"
  HREF="#foot1727"><SUP>5.1</SUP></A>
<P>
If there are fewer patterns than <I>SeqSize</I>,  the sequence will be filled
out to correct size. If the number of patterns used is greater than <I>SeqSize</I> (see Chapter <A HREF="node17.html#sec-directives">17</A>) a warning message will be printed and the pattern list will be truncated.

<P>
When defining longer sequences, you can use the ``repeat'' symbol, a single ``/'', to save typing. For example, the following two lines are equivalent:

<P>

	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>Bass Sequence Bass1 Bass1 Bass2 Bass2 
<BR>
Bass Sequence Bass1 / Bass2 /  </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

<P>
<A NAME="sequence-clear"></A>
<P>
The special pattern name ``-'' (no quotes, just a single hyphen), or a single
``z'' can be used to turn a track off. For example, if we have set the
sequences in example <A HREF="#eg:seq1">5.1</A> and decide to delete the Bass halfway
though the song we could:

<P>

	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>Bass Sequence -  </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

<P>
The special sequences, ``-'' or``z'', are also the equivalent of a rest or
``tacet'' sequence. For example, in defining a 4 bar sequence with a 1-5 bass
pattern on the first 3 bars and a walking bass on bar 4 we might do something
like:

<P>

	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>Bass Sequence Bass4-13 / / z 
<BR>
Walk Sequence z  / / Walk4-4  </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

<P>
When a sequence is created a series of pointers to the existing patterns
are created. If you change the definition of a particular pattern
later in your file the new definition will have <I>no</I> effect
on your exisiting sequences.

<P>
Sequences are the workhorse of <I><B>MMA</B></I>. With them you can set up many interesting
patterns and variations. This chapter should certainly give more detail and
many more examples.

<P>
The following commands help manipulate sequences in your creations:

<P>

<H1><A NAME="SECTION00510000000000000000"></A>  <A NAME="sec-seqclear"></A>
<BR>
SeqClear
</H1>

<P>
This command clears all existing sequences from memory. It is useful
when defining a new sequence and you want to be sure that no ``leftover''
sequences are active. The command:

<P>

	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>SeqClear </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

<P>
deletes all sequence information.

<P>
Alternately, the command:

<P>

	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>Drum SeqClear </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

<P>
deletes <B>all</B> drum sequences. This includes the track ``Drum'', ``Drum1'', etc.

<P>
If you use a sub-track:

<P>

	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>Chord-Piano SeqClear </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

<P>
only the sequence for that track is cleared.<A NAME="tex2html30"
  HREF="#foot1782"><SUP>5.2</SUP></A>
<P>
In addition to clearing the sequence pattern, the following other settings are
restored to a default condition:

<P>

<UL>
<LI>Track Invert setting,
</LI>
<LI>Track Sequence Rnd setting,
</LI>
<LI>Track MidiSeq setting,
</LI>
<LI>Track octave,
</LI>
<LI>Track voice,
</LI>
<LI>Track Rvolume,
</LI>
<LI>Track Volume,
</LI>
<LI>Track RTime,
</LI>
<LI>Track Strum.
</LI>
</UL>

<P>
CAUTION: It is not possible to clear only <I>Drum</I>, <I>Chord</I>, etc. using  this command. Use the ``-'' option. 

<P>

<H1><A NAME="SECTION00520000000000000000">
SeqRnd</A>
</H1> 

<P>
Normally, the patterns used for each bar are selected in order. For example, if you had a sequence:

<P>

	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>Drum-2 Sequence P1 P2 P3 z </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

<P>
bar 1 would use ``P1'', bar 2 ``P2'', etc. However, if you set <I>SeqRnd</I> for a specific track, the pattern used <I>for that track</I> will be selected at random from the sequence list. Note that 'Z' bars <B>are</B> included in the selection. Due to the nature of random selection, it is quite possible to get a several bars with the same (or in the above case, no) pattern.

<P>
You can only use this command in a track or in a global context:

<P>

	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>Drum SeqRnd </B></BLOCKQUOTE>

	</TD></TR></TABLE> 
or
	
	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>SeqRnd </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

<P>
The latter example is interesting. Let us assume you have the following sequences defined (the contents of the patterns don't matter for the purpose of the example):

<P>

	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>Chord C1 C2 C3 C4 
<BR>
Bass  B1 B2 B3 z 
<BR>
Walk  z / / W1  </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

<P>
The idea of the <I>Bass</I> and <I>Walk</I> sequences is to play <I>either</I> one of the patterns, never both. If you were to randomize the tracks you might get a bar with no bass at all, one of the two, or none. However, if you set <I>SeqRnd</I> outside the tracks, then you will have one of the following patterns:

<P>
<BLOCKQUOTE>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT">C1</TD>
<TD ALIGN="LEFT">B1</TD>
<TD ALIGN="LEFT">z</TD>
</TR>
<TR><TD ALIGN="LEFT">C2</TD>
<TD ALIGN="LEFT">B2</TD>
<TD ALIGN="LEFT">z</TD>
</TR>
<TR><TD ALIGN="LEFT">C3</TD>
<TD ALIGN="LEFT">B3</TD>
<TD ALIGN="LEFT">z</TD>
</TR>
<TR><TD ALIGN="LEFT">C4</TD>
<TD ALIGN="LEFT">z</TD>
<TD ALIGN="LEFT">W1</TD>
</TR>
</TABLE>
</BLOCKQUOTE>

<P>
A <I>SeqRnd</I> is cleared by a <I>SeqClear</I> or a <I>SeqNoRnd</I> directive.

<P>
If you have set <I>Invert</I> for a track, the inversions will follow the patterns. For example:

<P>

	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>Chord Sequence C1 C2 C3 C4 
<BR>
Invert 0 1 2 3
		SeqRnd
	 </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

<P>
Whenever pattern ``C1'' is selected it will be used with inversion 0, ``C2'' will always be inversion 1, etc.

<P>

<H1><A NAME="SECTION00530000000000000000">
SeqNoRnd</A>
</H1> 

<P>
This command sets the sequence order for the specified track to normal. It undoes the effect of the <I>SeqRnd</I> directive.  Example:

<P>

	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>Drum-3 SeqNoRnd </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

<P>

<H1><A NAME="SECTION00540000000000000000">
SeqSize</A>
</H1> 

<P>
The number of bars in a sequence are set with the ``SeqSize'' command. For example:

<P>

	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>SeqSize 4 </B></BLOCKQUOTE>

	</TD></TR></TABLE> 

<P>
sets it to 4 bars. The SeqSize applies to all tracks.

<P>
This command resets the <B>sequence counter</B> to 1.

<P>
If some sequences have already been defined, they will be truncated or expanded to the new size. Truncation is done by removing patterns from the end of the sequence; expansion is done by duplicating the sequence until it is long enough.

<P>
<BR><HR><H4>Footnotes</H4>
<DL>
<DT><A NAME="foot1727">... run-time.</A><A
 HREF="node5.html#tex2html29"><SUP>5.1</SUP></A></DT>
<DD>If you run <I><B>MMA</B></I> with the ``-s''  option you'll see pattern names in the format  ``_1''. The leading underscore indicates that the pattern was dynamically created in the sequence.

</DD>
<DT><A NAME="foot1782">...</A><A
 HREF="node5.html#tex2html30"><SUP>5.2</SUP></A></DT>
<DD>It is probably easier to use the command:
		
	<TABLE CELLSPACING=0 CELLPADDING=5" BGCOLOR="OldLace" BORDER=3><TR> <TD>
<BLOCKQUOTE><B>Chord-Piano Sequence - </B></BLOCKQUOTE>

	</TD></TR></TABLE> 
	if that is what you want to do. In this case <B>only</B> 
	sequence pattern is cleared. 

</DD>
</DL><HR>
<!--Navigation Panel-->
<A NAME="tex2html337"
  HREF="node6.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="file:/usr/lib/latex2html/icons/next.png"></A> 
<A NAME="tex2html335"
  HREF="mma.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="file:/usr/lib/latex2html/icons/up.png"></A> 
<A NAME="tex2html329"
  HREF="node4.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="file:/usr/lib/latex2html/icons/prev.png"></A>   
<BR>
<B> Next:</B> <A NAME="tex2html338"
  HREF="node6.html">Grooves</A>
<B> Up:</B> <A NAME="tex2html336"
  HREF="mma.html">Reference Manaul</A>
<B> Previous:</B> <A NAME="tex2html330"
  HREF="node4.html">Patterns</A>
<!--End of Navigation Panel-->
<ADDRESS>
Bob
2004-12-02
</ADDRESS>
</BODY>
</HTML>