File: node26.html

package info (click to toggle)
mma 16.06-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 45,212 kB
  • sloc: python: 14,894; sh: 26; makefile: 13; perl: 12
file content (564 lines) | stat: -rw-r--r-- 15,897 bytes parent folder | download | duplicates (2)
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
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<!--Converted with LaTeX2HTML 2008 (1.71)
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>Triggers</TITLE>
<META NAME="description" CONTENT="Triggers">
<META NAME="keywords" CONTENT="mma">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

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

<LINK REL="next" HREF="node27.html">
<LINK REL="previous" HREF="node25.html">
<LINK REL="up" HREF="mma.html">
<LINK REL="next" HREF="node27.html">
</HEAD>

<BODY  bgcolor="#ffffff">

<DIV CLASS="navigation"><!--Navigation Panel-->
<A NAME="tex2html899"
  HREF="node27.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html897"
  HREF="mma.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html891"
  HREF="node25.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>   
<BR>
<B> Next:</B> <A NAME="tex2html900"
  HREF="node27.html">After</A>
<B> Up:</B> <A NAME="tex2html898"
  HREF="mma.html">Reference Manual</A>
<B> Previous:</B> <A NAME="tex2html892"
  HREF="node25.html">Patch Management</A>
<BR>
<BR></DIV>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION002600000000000000000"></A>
<A NAME="sec-triggers"></A>
<BR>
Triggers
</H1>

<P>
It is possible to have 
<FONT Face="Serif"  Color="Navy"><I>MMA</I></FONT>  sequences to be automatically played
only when certain conditions apply. This is controlled by a
T<SMALL>RIGGER</SMALL>.

<P>
T<SMALL>RIGGER</SMALL>s are available for all tracks with the exception of
M<SMALL>ELODY</SMALL> and S<SMALL>OLO</SMALL>. T<SMALL>RIGGER</SMALL>s are <SPAN  CLASS="textit">not</SPAN> saved in
G<SMALL>ROOVES</SMALL>.<A NAME="tex2html112"
  HREF="#foot15952"><SUP><SPAN CLASS="arabic">26</SPAN>.<SPAN CLASS="arabic">1</SPAN></SUP></A>
<P>
Once you understand the concept of a T<SMALL>RIGGER</SMALL>, we think you'll
find them very useful. Suppose, for example, that you only want a
chord to be played on a track when the chord changes. First of all you
need to create a chord track:

<P>

      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>Begin Chord-1 
<BR>&nbsp;&nbsp;&nbsp;Voice Piano1 
<BR>&nbsp;&nbsp;&nbsp;Octave 5 
<BR>&nbsp;&nbsp;&nbsp;Sequence {1 1 90 * 4} // chords on 1,2,3 and 4 
<BR>
End   </B> 
   
	    </td></tr>
      </Table>

<P>
If you used this with the following data:

<P>

      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>1 C / D 
<BR>
2 C Gm  </B> 
   
	    </td></tr>
      </Table>

<P>
you will get chords sounding on each beat in the bar.

<P>
To enable a trigger to only sound when the chord changes:

<P>

      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>Chord-1 Trigger Auto  </B> 
   
	    </td></tr>
      </Table>

<P>
Now, the chord will sound on beats 1 and 3 of the first bar and 1 and
2 of the second.

<P>
With that under our belts, let's have a look at all options available:

<P>
First, commands which do not require an additional option:

<P>
<DL COMPACT>
<DT></DT>
<DD><DL>
<DT><STRONG>Auto</STRONG></DT>
<DD>This keyword signals that a trigger should occur
    <SPAN  CLASS="textit">at any point</SPAN> when a chord is changed. In this case you do
    not need (nor should you have) a B<SMALL>EATS</SMALL> option. Note: For
    this command and R<SMALL>EST</SMALL> the actual point for the trigger is
    the exact point of the chord/rest change (this could be at an
    offset like 1.1415).

<P>
</DD>
<DT><STRONG>Off</STRONG></DT>
<DD>Turns the trigger for the specified track off. This is
    the same as having a T<SMALL>RIGGER</SMALL> command with no arguments. No
    other commands are permitted with an ``off'' setting.

<P>
</DD>
<DT><STRONG>Rest</STRONG></DT>
<DD>This keyword signals that a trigger should occur
    <SPAN  CLASS="textit">at any point</SPAN> where a rest starts. In this way you can
    handle a rest like a ``special'' chord.

<P>
</DD>
</DL>
</DD>
</DL>

<P>
The following commands are set in the OPTION=VALUE format:

<P>
<DL COMPACT>
<DT></DT>
<DD><DL>
<DT><STRONG>Beats</STRONG></DT>
<DD>A comma separated list of beats for your trigger. Note
    that this is ignored if you have set one of the keywords
    A<SMALL>UTO</SMALL> or R<SMALL>EST</SMALL>. The beats can be any legal offset into
    the bar (in <SPAN  CLASS="textbf">4/4</SPAN> this would include 1, 2.4 and even
    3.9).

<P>
</DD>
<DT><STRONG>Bars</STRONG></DT>
<DD>The bars of the sequence to apply the trigger to. For
    example (assuming a four bar sequence):

<P>

      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>Chord-1 Trigger Auto Bars=1,3  </B> 
   
	    </td></tr>
      </Table>

<P>
would limit the sequence to chord changes occurring in the first
    and third (of four) bars of each sequence in the song.

<P>
</DD>
<DT><STRONG>Cnames</STRONG></DT>
<DD>A list of chord names which are checked against the
    active chord at each point of the B<SMALL>EATS</SMALL> list. Example:

<P>

      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>Chord-Test Trigger Beats=1,2,3,4 Cnames=Cm,E7,FM7   </B> 
   
	    </td></tr>
      </Table>

<P>
If the chord name is not in the specified list, no trigger is
    activated.

<P>
</DD>
<DT><STRONG>Ctonics</STRONG></DT>
<DD>A list of base chord names which are checked against
    the active chord at each point of the B<SMALL>EATS</SMALL> list. Example:

<P>

      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>Chord-Test Trigger Beats=1,2,3,4 Ctonics= C,E,F   </B> 
   
	    </td></tr>
      </Table>

<P>
If the tonic of the chord is not in the specified list, no trigger
    is activated.

<P>
</DD>
<DT><STRONG>CTypes</STRONG></DT>
<DD>A list of chord types (e.g., ``m'', ``7'', ``dim'')
    which are checked against the active chord at each point of
    theB<SMALL>EATS</SMALL> list. Example:

<P>

      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>Chord-Test Trigger Beats=1,2,3,4 Ctypes=m,m7,dim7   </B> 
   
	    </td></tr>
      </Table>

<P>
If the chord-type is not in the specified list, no trigger is
    activated.

<P>
</DD>
<DT><STRONG>Count</STRONG></DT>
<DD>The number of patterns to use from the sequence. If you
    have a sequence of four events (like the example at the start of
    this section) only the first event is used. However, by setting
    the count to a value:

<P>

      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>Chord-1 Trigger Auto Count=2  </B> 
   
	    </td></tr>
      </Table>

<P>
more of the patterns will be used. No pattern will start past the
    end of the current bar. The above example doesn't really make a
    lot of sense, but with a sequence like:

<P>

      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>Chord-1 Sequence {1 3 90; 1.3 3 90; 1.6 3 90}  </B> 
   
	    </td></tr>
      </Table>

<P>
and a C<SMALL>OUNT</SMALL> of 3 you can have a triplet play for each
    trigger point.

<P>
</DD>
<DT><STRONG>Measures</STRONG></DT>
<DD>You can limit the trigger events to specific
    measures. For example:

<P>

      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>Chord-1 Trigger Auto Measures=1,5,9   </B> 
   
	    </td></tr>
      </Table>

<P>
will cause trigger events to be played only when a chord changes
    in bars 1, 5 or 9.<A NAME="tex2html113"
  HREF="#foot16047"><SUP><SPAN CLASS="arabic">26</SPAN>.<SPAN CLASS="arabic">2</SPAN></SUP></A> Please note that the bar numbers
    are not checked against the actual bar numbers in your song (which
    can be hard to calculate after repeats and endings), but with the
    number label in the file. So a trigger command in the above
    example will apply to all of the following bars, regardless of the
    order of the numbering:

<P>

      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>5 Cm 
<BR>
1 G     
<BR>
1 D     
<BR>
5 E7    
<BR>
9 A  </B> 
   
	    </td></tr>
      </Table>

<P>
Please don't number your bars like this! It's just an example.

<P>
</DD>
<DT><STRONG>Override</STRONG></DT>
<DD>By default, when a bar is parsed and the trigger
    command <SPAN  CLASS="textit">does not</SPAN> create any events 
<FONT Face="Serif"  Color="Navy"><I>MMA</I></FONT>  will generate an
    empty bar for the track. However, by setting O<SMALL>VERRIDE=</SMALL>T<SMALL>RUE</SMALL>
    the original sequence for the track will be used. Use of this
    command (in conjunction with the S<SMALL>EQUENCE</SMALL> command) lets you
    have different patterns for bars with and without a trigger
    response.

<P>
</DD>
<DT><STRONG>Sequence</STRONG></DT>
<DD>By default, a T<SMALL>RIGGER</SMALL> will use the
    S<SMALL>EQUENCE</SMALL> defined for the track. This command defines a
    different sequence to use. This can be useful in toggling between
    the track sequence and the trigger's by turning the trigger on and
    off. Define the sequence in the normal manner:

<P>

      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>Chord-1 Trigger Auto Sequence = {1 3 90; 1.33 3 80; 1.66 3
      70}   </B> 
   
	    </td></tr>
      </Table>

<P>
Only one sequence is permitted in a trigger command.

<P>
</DD>
<DT><STRONG>Sticky</STRONG></DT>
<DD>This is a convience option to set the S<SMALL>TICKY</SMALL>
    bit for the current track. Its effect is the same as described <A HREF="node6.html#sect-sticky">here</A>. When using the option in a
    T<SMALL>RIGGER</SMALL> line you must include the ``='' as in:
    
      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>Drum-Triangle Trigger Sticky=True   </B> 
   
	    </td></tr>
      </Table>

<P>
</DD>
<DT><STRONG>Truncate</STRONG></DT>
<DD>The duration of the notes in the sequence used by a
    trigger are, normally, left as defined. If you are using short
    notes, this works just fine. But, if the durations are longer you
    can end up with overlapping notes. The T<SMALL>RUNCATE</SMALL> command
    forces 
<FONT Face="Serif"  Color="Navy"><I>MMA</I></FONT>  to truncate the duration of each note to the lesser
    of what is specifed, the start of the next pattern or the end of
    the current bar.

<P>
</DD>
</DL>
</DD>
</DL>

<P>
Things to note:

<UL>
<LI>A T<SMALL>RIGGER</SMALL> will always override a S<SMALL>EQUENCE</SMALL> in a
  track (almost: see the O<SMALL>VERRIDE</SMALL> option). So, if you have a
  sequence set, it will never be played if a trigger is active ...
  whether the trigger is activated or not. You should also note that
  R<SMALL>IFF</SMALL>s override triggers ... which make riffs a convenient
  method of disabling triggers for one or more bars.

<P>
When combining various options you should note the hierarchy of
  
<FONT Face="Serif"  Color="Navy"><I>MMA</I></FONT> 's decision tree:
  
<OL>
<LI>If the B<SMALL>ARS</SMALL> or M<SMALL>EASURES</SMALL> options have been set
    and the current bar is not in the list, no trigger is enabled,

<P>
</LI>
<LI>If there is no sequence (either from the track sequence or the
    trigger sequence option), no trigger is enabled,

<P>
</LI>
<LI>Regardless of the current mode (Chord, Rest or Beats) a new
    sequence is created. If this is an empty sequence ... again no
    trigger.

<P>
</LI>
<LI>the CN<SMALL>AME</SMALL>, CT<SMALL>ONIC</SMALL> and CT<SMALL>YPE</SMALL> commands act
    to limit the B<SMALL>EATS</SMALL>.

<P>
</LI>
</OL>

<P>
If any of the above conditions result in ``no trigger'', no events
  will be generated. You can force events with the use of the
  O<SMALL>VERRIDE</SMALL> option (above).

<P>
An empty line:

<P>

      <Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
        <tr><td>
    <B>Drum-snare Trigger  </B> 
   
	    </td></tr>
      </Table>

<P>
will reset all options to the default and disable the trigger.

<P>
</LI>
<LI>For the CN<SMALL>AMES</SMALL>, CT<SMALL>ONICS</SMALL> and CT<SMALL>YPES</SMALL>
  limiters:

<P>

<UL>
<LI>Using R<SMALL>OMAN</SMALL> notation, the chord name will be the value
    of the roman numeral (e.g., ``I'', ``vii''); however, the tonic
    and type will be correctly derived.

<P>
</LI>
<LI>The T<SMALL>RANSPOSE</SMALL> settings have no effect on the chord
    names and tonics.

<P>
</LI>
<LI>P<SMALL>OLYCHORDS</SMALL> will have only the root (left side) of the
    name saved (the chords ``C'' and ``C&brvbar;D'' are identical
    for the purposes of a trigger).

<P>
</LI>
<LI>If you have more than one of these options set, only the first
    (in order of CN<SMALL>AMES</SMALL>, CT<SMALL>ONICS</SMALL> and CT<SMALL>YPES</SMALL>) is
    used.

<P>
</LI>
</UL>

<P>
</LI>
<LI>You may get better results by creating a main track and copy
  that to a trigger track.

<P>
</LI>
<LI>A T<SMALL>RIGGER</SMALL> command always starts with all options set to
  default.

<P>
</LI>
<LI>Triggers are not saved as part of a G<SMALL>ROOVE</SMALL>. However,
  there is no reason you can't save a trigger command in a macro (in a
  library file) and call that from your song file.

<P>
If you want a trigger to sound across different grooves you must set
  the track for the trigger to S<SMALL>TICKY</SMALL> (details
  <A HREF="node6.html#sect-sticky">here</A>). If you don't, all
  the settings for the track will be reset when a G<SMALL>ROOVE</SMALL>
  command is issued.

<P>
</LI>
</UL>

<P>
A number of example files are included in the distribution in the
directory <TT><A NAME="tex2html114"
  HREF="egs/trigger">egs/trigger</A></TT>.

<P>

<P>
<BR><HR><H4>Footnotes</H4>
<DL>
<DT><A NAME="foot15952">...G<SMALL>ROOVES</SMALL>.</A><A
 HREF="node26.html#tex2html112"><SUP><SPAN CLASS="arabic">26</SPAN>.<SPAN CLASS="arabic">1</SPAN></SUP></A></DT>
<DD>If triggers were part of a groove, the
  triggers a user creates would disappear on a groove change. Probably
  not what is expected.

</DD>
<DT><A NAME="foot16047">... 9.</A><A
 HREF="node26.html#tex2html113"><SUP><SPAN CLASS="arabic">26</SPAN>.<SPAN CLASS="arabic">2</SPAN></SUP></A></DT>
<DD>This is a good reason to number each
      bar in your song, as recommended <A HREF="node8.html#sect-barnumbers">here</A>.

</DD>
</DL>
<DIV CLASS="navigation"><HR>
<!--Navigation Panel-->
<A NAME="tex2html899"
  HREF="node27.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html897"
  HREF="mma.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html891"
  HREF="node25.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>   
<BR>
<B> Next:</B> <A NAME="tex2html900"
  HREF="node27.html">After</A>
<B> Up:</B> <A NAME="tex2html898"
  HREF="mma.html">Reference Manual</A>
<B> Previous:</B> <A NAME="tex2html892"
  HREF="node25.html">Patch Management</A></DIV>
<!--End of Navigation Panel-->
<ADDRESS>
Bob van der Poel
2016-06-11
</ADDRESS>
</BODY>
</HTML>