VocalEasel/mma/docs/html/ref/node4.html

1362 lines
40 KiB
HTML
Raw Normal View History

2009-05-17 22:34:44 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2006-11-10 08:07:56 +00:00
2011-07-26 22:49:39 +00:00
<!--Converted with LaTeX2HTML 2008 (1.71)
2006-11-10 08:07:56 +00:00
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>Patterns</TITLE>
<META NAME="description" CONTENT="Patterns">
<META NAME="keywords" CONTENT="mma">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
2011-07-26 22:49:39 +00:00
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
2006-11-10 08:07:56 +00:00
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="mma.css">
<LINK REL="next" HREF="node5.html">
<LINK REL="previous" HREF="node3.html">
<LINK REL="up" HREF="mma.html">
<LINK REL="next" HREF="node5.html">
</HEAD>
<BODY bgcolor="#ffffff">
2009-05-17 22:34:44 +00:00
<DIV CLASS="navigation"><!--Navigation Panel-->
2011-07-26 22:49:39 +00:00
<A NAME="tex2html450"
2006-11-10 08:07:56 +00:00
HREF="node5.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
2011-07-26 22:49:39 +00:00
<A NAME="tex2html448"
2006-11-10 08:07:56 +00:00
HREF="mma.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
2011-07-26 22:49:39 +00:00
<A NAME="tex2html442"
2006-11-10 08:07:56 +00:00
HREF="node3.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
<BR>
2011-07-26 22:49:39 +00:00
<B> Next:</B> <A NAME="tex2html451"
2006-11-10 08:07:56 +00:00
HREF="node5.html">Sequences</A>
2011-07-26 22:49:39 +00:00
<B> Up:</B> <A NAME="tex2html449"
2006-11-10 08:07:56 +00:00
HREF="mma.html">Reference Manual</A>
2011-07-26 22:49:39 +00:00
<B> Previous:</B> <A NAME="tex2html443"
2006-11-10 08:07:56 +00:00
HREF="node3.html">Tracks and Channels</A>
<BR>
2009-05-17 22:34:44 +00:00
<BR></DIV>
2006-11-10 08:07:56 +00:00
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
2009-05-17 22:34:44 +00:00
<UL CLASS="ChildLinks">
2011-07-26 22:49:39 +00:00
<LI><A NAME="tex2html452"
2006-11-10 08:07:56 +00:00
HREF="node4.html#SECTION00410000000000000000">Defining a Pattern</A>
<UL>
2011-07-26 22:49:39 +00:00
<LI><A NAME="tex2html453"
2006-11-10 08:07:56 +00:00
HREF="node4.html#SECTION00411000000000000000">Bass</A>
2011-07-26 22:49:39 +00:00
<LI><A NAME="tex2html454"
2006-11-10 08:07:56 +00:00
HREF="node4.html#SECTION00412000000000000000">Chord</A>
2011-07-26 22:49:39 +00:00
<LI><A NAME="tex2html455"
2006-11-10 08:07:56 +00:00
HREF="node4.html#SECTION00413000000000000000">Arpeggio</A>
2011-07-26 22:49:39 +00:00
<LI><A NAME="tex2html456"
2006-11-10 08:07:56 +00:00
HREF="node4.html#SECTION00414000000000000000">Walk</A>
2011-07-26 22:49:39 +00:00
<LI><A NAME="tex2html457"
2006-11-10 08:07:56 +00:00
HREF="node4.html#SECTION00415000000000000000">Scale</A>
2011-07-26 22:49:39 +00:00
<LI><A NAME="tex2html458"
2007-04-29 06:47:40 +00:00
HREF="node4.html#SECTION00416000000000000000">Aria</A>
2011-07-26 22:49:39 +00:00
<LI><A NAME="tex2html459"
HREF="node4.html#SECTION00417000000000000000">Plectrum</A>
<LI><A NAME="tex2html460"
HREF="node4.html#SECTION00418000000000000000">Drum</A>
<LI><A NAME="tex2html461"
HREF="node4.html#SECTION00419000000000000000">Drum Tone</A>
2006-11-10 08:07:56 +00:00
</UL>
<BR>
2011-07-26 22:49:39 +00:00
<LI><A NAME="tex2html462"
2006-11-10 08:07:56 +00:00
HREF="node4.html#SECTION00420000000000000000">Including Existing Patterns in New Definitions</A>
2011-07-26 22:49:39 +00:00
<LI><A NAME="tex2html463"
2006-11-10 08:07:56 +00:00
HREF="node4.html#SECTION00430000000000000000">Multiplying and Shifting Patterns</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
<H1><A NAME="SECTION00400000000000000000"></A>
<A NAME="sec-pats"></A>
<BR>
Patterns
</H1>
<P>
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> builds its output based on P<SMALL>ATTERN</SMALL>s and S<SMALL>EQUENCE</SMALL>s
supplied by you. These can be defined in the same file as the rest of
the song data, or can be included (see
2011-07-26 22:49:39 +00:00
<A HREF="node27.html#sec-paths">here</A>) from a library file.
2006-11-10 08:07:56 +00:00
<P>
A pattern is a definition for a voice or track which describes what
rhythm to play during the current bar. The actual notes selected for
the rhythm are determined by the song bar data (see
<A HREF="node8.html#sec-music">here</A>).
<P>
<H1><A NAME="SECTION00410000000000000000">
Defining a Pattern</A>
</H1>
<P>
The formats for the different tracks vary, but are similar enough to
confuse the unwary.
<P>
Each pattern definition consists of three parts:
<P>
<UL>
<LI>A unique label to identify the pattern. This is
case-insensitive. Note that the same label names can be used in
2011-07-26 22:49:39 +00:00
different tracks--for example, you could use the name &#8220;MyPattern&#8221;
in both a Drum and Chord pattern ... but this is probably not a
2006-11-10 08:07:56 +00:00
good idea. Names can use punctuation characters, but must not begin
2011-07-26 22:49:39 +00:00
with an underscore (&#8220;_&#8221;). The pattern names &#8220;z&#8221; or &#8220;Z&#8221; and
&#8220;-&#8221; are also reserved.
2006-11-10 08:07:56 +00:00
<P>
</LI>
<LI>A series of note definitions. Each set in the series is
2011-07-26 22:49:39 +00:00
delimited with a &#8220;;&#8221;.
2006-11-10 08:07:56 +00:00
<P>
</LI>
<LI>The end of the pattern definition is indicated by the
end-of-line.
</LI>
</UL>
<P>
2011-07-26 22:49:39 +00:00
In the following sections definitions are shown in continuation lines;
however, it is quite legal to mash all the information onto a single
line.
2006-11-10 08:07:56 +00:00
<P>
The following concepts are used when defining a pattern:
<P>
<DL>
2011-07-26 22:49:39 +00:00
<DD><A NAME="beat-offset"></A></DD>
2006-11-10 08:07:56 +00:00
<DT><STRONG>Start</STRONG></DT>
<DD>When to start the note. This is expressed as a beat
offset. For example, to start a note at the start of a bar you use
2011-07-26 22:49:39 +00:00
&#8220;1&#8221;, the second beat would be &#8220;2&#8221;, the fourth &#8220;4&#8221;, etc. You
can easily use off-beats as well: The &#8220;and&#8221; of 2 is &#8220;2.5&#8221;, the
&#8220;and ahh&#8221; of the first beat is &#8220;1.75&#8221;, etc. Using a beat offset
greater than the number of beats in a bar or less than &#8220;0&#8221; is not
permitted. Please note that offsets in the range &#8220;0&#8221; to &#8220;.999&#8221;
will actually be played in the <SPAN CLASS="textit">previous</SPAN> bar using the chord
specified at beat 1 of the current bar (this can be useful in Jazz
charts, and it will generate a warning!).<A NAME="tex2html20"
HREF="#foot1692"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">1</SPAN></SUP></A> See
T<SMALL>IME</SMALL> (<A HREF="node16.html#time">here</A>).
2006-11-10 08:07:56 +00:00
<P>
The offset can be further modified by appending a note length (see
the duration chart, below). If you want to specify an offset in the
2011-07-26 22:49:39 +00:00
middle of the first beat you can use &#8220;1.5&#8221; or &#8220;1+8&#8221;. The latter
2006-11-10 08:07:56 +00:00
means the first beat plus the value of an eight note. This notation
2011-07-26 22:49:39 +00:00
is quite useful when generating &#8220;swing&#8221; sequences. For example,
two &#8220;swing eights&#8221; chords on beat one would be notated as: &#8220;1 81
90; 1+81 82 90&#8221;.
2006-11-10 08:07:56 +00:00
<P>
You can subtract note lengths as well, but this is rarely done. And,
to make your style files completely unreadable, you can even use
note length combinations. So, yes, the following pattern is
2011-07-26 22:49:39 +00:00
fine:<A NAME="tex2html21"
HREF="#foot1693"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">2</SPAN></SUP></A>
2006-11-10 08:07:56 +00:00
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Chord Define C1 2-81+4 82 90 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<A NAME="notelength"></A>
<P>
</DD>
<DT><STRONG>Duration</STRONG></DT>
<DD>The length of a note is somewhat standard musical
notation. Since it is impractical to draw in graphical notes or to
2009-05-17 22:34:44 +00:00
use fractions (like <SPAN CLASS="textbf">1/4</SPAN>)
2006-11-10 08:07:56 +00:00
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> , uses a shorthand
notation detailed in the following table:
<P>
<BLOCKQUOTE>
2007-04-29 06:47:40 +00:00
<Table CellSpacing=0 Width="80%" Align="Center" CellPadding=10 BGColor="#dddddd" Border=3>
<tr> <td>
2011-07-26 22:49:39 +00:00
<TABLE CELLPADDING=3 BORDER="1">
2009-05-17 22:34:44 +00:00
<TR><TD ALIGN="LEFT"><SPAN CLASS="textit">Notation</SPAN></TD>
<TD ALIGN="LEFT"><SPAN CLASS="textit">Description</SPAN></TD>
2006-11-10 08:07:56 +00:00
</TR>
<TR><TD ALIGN="LEFT">1</TD>
<TD ALIGN="LEFT">Whole note</TD>
</TR>
<TR><TD ALIGN="LEFT">2</TD>
<TD ALIGN="LEFT">Half</TD>
</TR>
<TR><TD ALIGN="LEFT">4</TD>
<TD ALIGN="LEFT">Quarter</TD>
</TR>
<TR><TD ALIGN="LEFT">8</TD>
<TD ALIGN="LEFT">Eighth</TD>
</TR>
<TR><TD ALIGN="LEFT">81</TD>
<TD ALIGN="LEFT">The first of a pair of swing eights</TD>
</TR>
<TR><TD ALIGN="LEFT">82</TD>
<TD ALIGN="LEFT">The second of a pair of swing eights</TD>
</TR>
<TR><TD ALIGN="LEFT">16</TD>
<TD ALIGN="LEFT">Sixteenth</TD>
</TR>
<TR><TD ALIGN="LEFT">32</TD>
<TD ALIGN="LEFT">Thirty-second</TD>
</TR>
<TR><TD ALIGN="LEFT">64</TD>
<TD ALIGN="LEFT">Sixty-fourth</TD>
</TR>
<TR><TD ALIGN="LEFT">3</TD>
<TD ALIGN="LEFT">Eight note triplet</TD>
</TR>
<TR><TD ALIGN="LEFT">43</TD>
<TD ALIGN="LEFT">Quarter note triplet</TD>
</TR>
<TR><TD ALIGN="LEFT">23</TD>
<TD ALIGN="LEFT">Half note triplet</TD>
</TR>
<TR><TD ALIGN="LEFT">6</TD>
<TD ALIGN="LEFT">Sixteenth note triplet</TD>
</TR>
<TR><TD ALIGN="LEFT">5</TD>
<TD ALIGN="LEFT">Eight note quintuplet</TD>
</TR>
<TR><TD ALIGN="LEFT">0</TD>
<TD ALIGN="LEFT">A single MIDI tick</TD>
</TR>
2011-07-26 22:49:39 +00:00
<TR><TD ALIGN="LEFT">ddT</TD>
<TD ALIGN="LEFT">dd MIDI ticks.</TD>
</TR>
2006-11-10 08:07:56 +00:00
</TABLE>
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
</BLOCKQUOTE>
<P>
2011-07-26 22:49:39 +00:00
The &#8220;81&#8221; and &#8220;82&#8221; notations represent the values of a pair of
2006-11-10 08:07:56 +00:00
eighth notes in a swing pair. These values vary depending on the
2011-07-26 22:49:39 +00:00
setting of S<SMALL>WING</SMALL>M<SMALL>ODE </SMALL>S<SMALL>KEW</SMALL>, see
<A HREF="node17.html#swingmode">here</A>.
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
The note length &#8220;0&#8221; is a special value often used in drum tracks
where the actual &#8220;ringing&#8221;length appears to be controlled by the
MIDI synth, not the driving program. Internally, a &#8220;0&#8221; note length
is converted to a single MIDI tick.
2006-11-10 08:07:56 +00:00
<P>
Lengths can have a single or double dot appended. For example,
2011-07-26 22:49:39 +00:00
&#8220;2.&#8221; is a dotted half note and &#8220;4..&#8221; adds an eight and sixteenth
2006-11-10 08:07:56 +00:00
value to a quarter note.
<P>
2011-07-26 22:49:39 +00:00
Note lengths can be combined using &#8220;+&#8221;. For example, to make a
dotted eight note use the notation &#8220;8+16&#8221;, a dotted half &#8220;2+4&#8221;,
and a quarter triplet &#8220;3+3&#8221;.
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
Note lengths can also be combined using a &#8220;-&#8221;. For example, to
make a dotted half you could use &#8220;1-4&#8221;. Subtraction might appear
2009-05-17 22:34:44 +00:00
silly at first, but is useful in generating a note <SPAN CLASS="textit">just</SPAN> a bit
2011-07-26 22:49:39 +00:00
shorter than its full beat. For example, &#8220;1-0&#8221; will generate a
2006-11-10 08:07:56 +00:00
note 1 MIDI tick shorter than a whole note. This can be used in
2011-07-26 22:49:39 +00:00
generating breaks in sustained tones.<A NAME="tex2html22"
HREF="#foot1695"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">3</SPAN></SUP></A>
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
It is permissible to combine notes with &#8220;dots&#8221;, &#8220;+&#8221;s and
&#8220;-&#8221;s. The notation &#8220;2.+4&#8221; would be the same as a whole note.
2006-11-10 08:07:56 +00:00
<P>
The actual duration given to a note will be adjusted by the
2011-07-26 22:49:39 +00:00
A<SMALL>RTICULATE</SMALL> value <A HREF="node24.html#articulate">here</A>).
<P>
In special cases you might want to forget all standard duration
conventions and specify the length of a note or chord in MIDI
ticks. Just append a single &#8220;t&#8221; or &#8220;T&#8221; to end of the value. For
example, a quarter note duration can be set with a &#8220;4&#8221; or
&#8220;192t&#8221;. Using MIDI values can simplify the creation of odd-length
beats.
<P>
When using MIDI tick values you cannot use &#8220;+&#8221;, &#8220;-&#8221; or &#8220;.&#8221; to
combine or modify the value.
2006-11-10 08:07:56 +00:00
<P>
</DD>
<DT><STRONG>Volume</STRONG></DT>
2011-07-26 22:49:39 +00:00
<DD>The MIDI velocity<A NAME="tex2html23"
HREF="#foot1458"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">4</SPAN></SUP></A> to use for the specified note.
2006-11-10 08:07:56 +00:00
For a detailed explanation of how
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> calculates the volume of a
2011-07-26 22:49:39 +00:00
note, see <A HREF="node18.html#sec-volume">read this</A>.
2006-11-10 08:07:56 +00:00
<P>
MIDI velocities are limited to the range 0 to 127. However,
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> does not check the volumes specified in a pattern for
2011-07-26 22:49:39 +00:00
validity.<A NAME="tex2html24"
HREF="#foot1463"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">5</SPAN></SUP></A>
2006-11-10 08:07:56 +00:00
<P>
In most cases velocities in the range 50 to 100 are useful.
<P>
</DD>
<DT><STRONG>Offset</STRONG></DT>
<DD>The offset into the current chord. If you have, for
2009-05-17 22:34:44 +00:00
example, a C minor chord (C, E<SPAN CLASS="MATH"><IMG
2011-07-26 22:49:39 +00:00
WIDTH="13" HEIGHT="20" ALIGN="BOTTOM" BORDER="0"
2006-11-10 08:07:56 +00:00
SRC="img1.png"
2011-07-26 22:49:39 +00:00
ALT="$ \flat$"></SPAN>, and G) has 3 offsets: 0, 1
2009-05-17 22:34:44 +00:00
and 2. Note that the offsets refer to the <SPAN CLASS="textit">chord</SPAN> not the
2011-07-26 22:49:39 +00:00
scale. For example, a musician might refer to the &#8220;fifth&#8221;--this
means the fifth note of a scale ... in a major chord this is the
2006-11-10 08:07:56 +00:00
third note, which has an offset of 2 in
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> .
<P>
</DD>
</DL>
<P>
Patterns can be defined for B<SMALL>ASS</SMALL>, W<SMALL>ALK</SMALL>, C<SMALL>HORD</SMALL>,
2011-07-26 22:49:39 +00:00
A<SMALL>RPEGGIO</SMALL> and D<SMALL>RUM</SMALL> tracks. All patterns are shared by the
tracks of the same type--<SPAN CLASS="textit">Chord-Sus</SPAN> and <SPAN CLASS="textit">Chord-Piano</SPAN>
share the patterns for <SPAN CLASS="textit">Chord</SPAN>. As a convenience,
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> will
permit you to define a pattern for a sub-track, but remember that it
will be shared by all similar tracks. For example:
2006-11-10 08:07:56 +00:00
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Drum Define S1 1 0 50 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
and
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Drum-woof Define S1 1 0 50 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
Will generate identical outcomes.<A NAME="tex2html25"
HREF="#foot1477"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">6</SPAN></SUP></A>
2006-11-10 08:07:56 +00:00
<P>
<H2><A NAME="SECTION00411000000000000000"></A> <A NAME="sec-bass"></A>
<BR>
Bass
</H2>
<P>
2011-07-26 22:49:39 +00:00
A B<SMALL>ASS</SMALL> pattern is defined with:
2006-11-10 08:07:56 +00:00
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Position Duration Offset Volume ; ...</B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
Each group consists of an beat offset for the start point, the note
duration, the note offset and volume.
<P>
2011-07-26 22:49:39 +00:00
The note offset is one of the digits &#8220;1&#8221; through &#8220;7&#8221;, each
2006-11-10 08:07:56 +00:00
representing a note of the chord scale. So, if you want to play the
2011-07-26 22:49:39 +00:00
root and fifth in a traditional bass pattern you'd use &#8220;1&#8221; and &#8220;5&#8221;
2006-11-10 08:07:56 +00:00
in your pattern definition.
<P>
The note offset can be modified by appending a single or multiple set
2011-07-26 22:49:39 +00:00
of &#8220;+&#8221; or &#8220;-&#8221; signs. Each &#8220;+&#8221; will force the note up an octave;
each &#8220;-&#8221; forces it down. This modifier is handy in creating bass
2006-11-10 08:07:56 +00:00
patterns when you wish to alternate between the root note and the root
2011-07-26 22:49:39 +00:00
up an octave ... but users will find other interesting
patterns. There is no limit to the number of &#8220;+&#8221;s or &#8220;-&#8221;s. You can
2006-11-10 08:07:56 +00:00
even use both together if you're in a mood to obfuscate.
<P>
The note offset can be further modified with a single accidental "#",
&quot&amp;" or "b". This modifier will raise or lower the note by a
2011-07-26 22:49:39 +00:00
semitone.<A NAME="tex2html26"
HREF="#foot1696"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">7</SPAN></SUP></A> In the boogie-woogie
2006-11-10 08:07:56 +00:00
library file a "6#" is used to generate a dominant 7th.
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="#efefef" Border=3>
<tr><td Align="CENTER" BGColor="White">
2009-05-17 22:34:44 +00:00
<SPAN CLASS="textbf"><BIG CLASS="XLARGE">Bass Definition</BIG></SPAN> <A NAME="eg:b8"></A>
2007-04-29 06:47:40 +00:00
</tr> </td>
<tr> <td >
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Bass Define Broken8 1 8 1 90 ; &#92;
2006-11-10 08:07:56 +00:00
<BR>&nbsp;&nbsp;&nbsp; 2 8 5 80 ; &#92;
<BR>&nbsp;&nbsp;&nbsp; 3 8 3 90 ; &#92;
2007-04-29 06:47:40 +00:00
<BR>&nbsp;&nbsp;&nbsp; 4 8 1+ 80 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<BR>
2009-05-17 22:34:44 +00:00
<BR> <SPAN CLASS="textbf">Sheet Music Equivalent</SPAN>
2006-11-10 08:07:56 +00:00
<P>
<BR>
<BR>
<P>
<IMG WIDTH="95%" SRC="mupex/bassb8.png" ALT="Lost Image">
2011-07-26 22:49:39 +00:00
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td> </tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<P>
<A HREF="#eg:b8">This example</A> defines 4 bass notes
(probably staccato eight notes) at beats 1, 2, 3 and 4 in a
2009-05-17 22:34:44 +00:00
<SPAN CLASS="textbf">4/4</SPAN> time bar. The first note is the root of the chord, the
2006-11-10 08:07:56 +00:00
second is the fifth; the third note is the third; the last note is the
root up an octave. The volumes of the notes are set to a MIDI velocity
of 90 for beats 1 and 3 and 80 for beats 2 and 4.
<P>
2011-07-26 22:49:39 +00:00
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> refers to note tables to determine the &#8220;scale&#8221; to use in a
2006-11-10 08:07:56 +00:00
bass pattern. Each recognized chord type has an associated scale. For
2011-07-26 22:49:39 +00:00
example, the chord &#8220;Cm&#8221; consists of the notes &#8220;c&#8221;, &#8220;e<SPAN CLASS="MATH"><IMG
WIDTH="13" HEIGHT="20" ALIGN="BOTTOM" BORDER="0"
2006-11-10 08:07:56 +00:00
SRC="img1.png"
2011-07-26 22:49:39 +00:00
ALT="$ \flat$"></SPAN>&#8221;
and &#8220;g&#8221;; the scale for this chord is &#8220;c, d, e<SPAN CLASS="MATH"><IMG
WIDTH="13" HEIGHT="20" ALIGN="BOTTOM" BORDER="0"
2006-11-10 08:07:56 +00:00
SRC="img1.png"
2011-07-26 22:49:39 +00:00
ALT="$ \flat$"></SPAN>, f, g, a, b&#8221;.
2006-11-10 08:07:56 +00:00
<P>
Due to the ease in which specific notes of a scale can be specified,
2011-07-26 22:49:39 +00:00
B<SMALL>ASS</SMALL> tracks and patterns are useful for much more than &#8220;bass&#8221;
lines! These tracks are useful for sustained string voices,
interesting arpeggio and scale lines, and counter melodies.
2006-11-10 08:07:56 +00:00
<P>
<H2><A NAME="SECTION00412000000000000000"></A> <A NAME="sec-chordseq"></A>
<BR>
Chord
</H2>
<P>
2011-07-26 22:49:39 +00:00
A C<SMALL>HORD</SMALL> pattern is defined with:
2006-11-10 08:07:56 +00:00
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
2009-05-17 22:34:44 +00:00
<B>Position Duration Volume1 Volume2 ...; ...</B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
Each group consists of an beat offset for the start point, the note
duration, and the volumes for each note in the chord. If you have
fewer volumes than notes in a chord, the last volume will apply to the
remaining notes.
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="#efefef" Border=3>
<tr><td Align="CENTER" BGColor="White">
2009-05-17 22:34:44 +00:00
<SPAN CLASS="textbf"><BIG CLASS="XLARGE">Chord Definition</BIG></SPAN> <A NAME="eg:s4"></A>
2007-04-29 06:47:40 +00:00
</tr> </td>
<tr> <td >
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Chord Define Straight4+3 1 4 100 ; &#92;
2006-11-10 08:07:56 +00:00
<BR>&nbsp;&nbsp;&nbsp; 2 4 90 ; &#92;
<BR>&nbsp;&nbsp;&nbsp; 3 4 100 ; &#92;
<BR>&nbsp;&nbsp;&nbsp; 4 3 90 ; &#92;
<BR>&nbsp;&nbsp;&nbsp; 4.3 3 80 ; &#92;
2007-04-29 06:47:40 +00:00
<BR>&nbsp;&nbsp;&nbsp; 4.6 3 80 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<BR>
2009-05-17 22:34:44 +00:00
<BR> <SPAN CLASS="textbf">Sheet Music Equivalent </SPAN>
2006-11-10 08:07:56 +00:00
<P>
<BR>
<BR>
<IMG WIDTH="95%" SRC="mupex/chord43.png" ALT="Lost Image">
2007-04-29 06:47:40 +00:00
</td> </tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<P>
<A HREF="#eg:s4">This example</A> defines a
2009-05-17 22:34:44 +00:00
<SPAN CLASS="textbf">4/4</SPAN> pattern in a quarter, quarter, quarter, triplet rhythm.
2006-11-10 08:07:56 +00:00
The quarter notes sound on beats 1, 2 and 3; the triplet is played on
beat 4. The example assumes that you have C major for beats 1 and 2,
and G major for 3 and 4.
<P>
2011-07-26 22:49:39 +00:00
Using a volume of &#8220;0&#8221; will disable a note. So, you want only the
root and fifth of a chord to sound, you could use something like:
2006-11-10 08:07:56 +00:00
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Chord Define Dups 1 8 90 0 90 0; 3 8 90 0 90 0 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<H2><A NAME="SECTION00413000000000000000">
Arpeggio</A>
</H2>
<P>
2011-07-26 22:49:39 +00:00
An A<SMALL>RPEGGIO</SMALL> pattern is defined with:
2006-11-10 08:07:56 +00:00
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Position Duration Volume ; ...</B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
The arpeggio tracks play notes from a chord one at a time. This is
quite different from chords where the notes are played all at
once--refer to the S<SMALL>TRUM</SMALL> directive
2011-07-26 22:49:39 +00:00
(<A HREF="node24.html#strum">here</A>).
2006-11-10 08:07:56 +00:00
<P>
Each group consists of an beat offset, the note duration, and the note
volume. You have no choice as to which notes of a chord are played
(however, they are played in alternating ascending/descending
2011-07-26 22:49:39 +00:00
order.<A NAME="tex2html27"
HREF="#foot1699"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">8</SPAN></SUP></A> Volumes are
2006-11-10 08:07:56 +00:00
selected for the specific beat, not for the actual note.
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="#efefef" Border=3>
<tr><td Align="CENTER" BGColor="White">
2009-05-17 22:34:44 +00:00
<SPAN CLASS="textbf"><BIG CLASS="XLARGE">Arpeggio Definition</BIG></SPAN> <A NAME="eg:arp4s"></A>
2007-04-29 06:47:40 +00:00
</tr> </td>
<tr> <td >
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Arpeggio Define 4s 1 4 100; &#92;
2006-11-10 08:07:56 +00:00
<BR>&nbsp;&nbsp;&nbsp; 2 4 90; &#92;
<BR>&nbsp;&nbsp;&nbsp; 3 4 100; &#92;
2007-04-29 06:47:40 +00:00
<BR>&nbsp;&nbsp;&nbsp; 4 4 100 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<BR>
2009-05-17 22:34:44 +00:00
<BR> <SPAN CLASS="textbf">Sheet Music Equivalent </SPAN> <BR>
2006-11-10 08:07:56 +00:00
<BR>
<IMG WIDTH="95%" SRC="mupex/arp4s.png" ALT="Lost Image">
2007-04-29 06:47:40 +00:00
</td> </tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<P>
<A HREF="#eg:arp4s">This example</A> plays quarter note
2009-05-17 22:34:44 +00:00
on beats 1, 2, 3 and 4 of a bar in <SPAN CLASS="textbf">4/4</SPAN> time.
2006-11-10 08:07:56 +00:00
<P>
<H2><A NAME="SECTION00414000000000000000">
Walk</A>
</H2>
<P>
2011-07-26 22:49:39 +00:00
A W<SMALL>ALK</SMALL>ing Bass pattern is defined with:
2006-11-10 08:07:56 +00:00
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
2011-07-26 22:49:39 +00:00
<B>Position Duration Volume ; ...</B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
Walking bass tracks play up and down the first part of a scale, paying
2011-07-26 22:49:39 +00:00
attention to the &#8220;color&#8221;<A NAME="tex2html28"
HREF="#foot1701"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">9</SPAN></SUP></A> of the
chord. Walking bass lines are very common in jazz and swing
music. They appear quite often as an &#8220;emphasis&#8221; bar in marches.
2006-11-10 08:07:56 +00:00
<P>
Each group consists of an beat offset, the note duration, and the note
volume.
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> selects the actual note pitches to play based on the
current chord (you cannot change this).
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="#efefef" Border=3>
<tr><td Align="CENTER" BGColor="White">
2009-05-17 22:34:44 +00:00
<SPAN CLASS="textbf"><BIG CLASS="XLARGE">Walking Bass Definition</BIG></SPAN> <A NAME="eg:walk4"></A>
2007-04-29 06:47:40 +00:00
</tr> </td>
<tr> <td >
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Walk Define Walk4 1 4 100 ; &#92;
2006-11-10 08:07:56 +00:00
<BR>&nbsp;&nbsp;&nbsp; 2 4 90; &#92;
2007-04-29 06:47:40 +00:00
<BR>&nbsp;&nbsp;&nbsp; 3 4 90 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
2007-04-29 06:47:40 +00:00
</td> </tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<P>
<A HREF="#eg:walk4">This example</A> plays a bass note
2009-05-17 22:34:44 +00:00
on beats 1, 2 and 3 of a bar in <SPAN CLASS="textbf">3/4</SPAN> time.
2006-11-10 08:07:56 +00:00
<P>
<H2><A NAME="SECTION00415000000000000000">
Scale</A>
</H2>
<P>
2011-07-26 22:49:39 +00:00
A S<SMALL>CALE</SMALL> pattern is defined with:
2006-11-10 08:07:56 +00:00
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Position Duration Volume ; ...</B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
Each group consists of an beat offset for the start point, the note
duration, and volume.
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="#efefef" Border=3>
<tr><td Align="CENTER" BGColor="White">
2009-05-17 22:34:44 +00:00
<SPAN CLASS="textbf"><BIG CLASS="XLARGE">Scale Definition</BIG></SPAN> <A NAME="eg:scale"></A>
2007-04-29 06:47:40 +00:00
</tr> </td>
<tr> <td >
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Scale Define S1 1 1 90
2006-11-10 08:07:56 +00:00
<BR>
Scale Define S4 S1 * 4
<BR>
2007-04-29 06:47:40 +00:00
Scale Define S8 S1 * 8 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td> </tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<P>
<A HREF="#eg:scale">This example</A> defines three scale
2011-07-26 22:49:39 +00:00
patterns: &#8220;S1&#8221; is just a single whole note, not that useful on its
own, but it is used as a base for &#8220;S4&#8221; and &#8220;S8&#8221;.
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
&#8220;S4&#8221; is 4 quarter notes and &#8220;S8&#8221; is 8 eight notes. All the volumes
2006-11-10 08:07:56 +00:00
are set to a MIDI velocity of 90.
<P>
Scale patterns are quite useful in endings. More options for scales
detailed in the S<SMALL>CALE</SMALL>D<SMALL>IRECTION</SMALL>
2011-07-26 22:49:39 +00:00
(<A HREF="node24.html#scale-direction">here</A>) and S<SMALL>CALE</SMALL>T<SMALL>YPE</SMALL>
(<A HREF="node24.html#scale-type">here</A>) sections.
2007-04-29 06:47:40 +00:00
<P>
<H2><A NAME="SECTION00416000000000000000">
Aria</A>
</H2>
<P>
2011-07-26 22:49:39 +00:00
An A<SMALL>RIA</SMALL> pattern is defined with:
2006-11-10 08:07:56 +00:00
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Position Duration Volume ; ...</B>
</td></tr>
</Table>
<P>
much like a scale pattern. Please refer to the the A<SMALL>RIA</SMALL> section
2011-07-26 22:49:39 +00:00
(<A HREF="node12.html#chap-aria">here</A>) for more details.
<P>
<H2><A NAME="SECTION00417000000000000000">
Plectrum</A>
</H2>
2007-04-29 06:47:40 +00:00
<P>
2011-07-26 22:49:39 +00:00
An P<SMALL>LECTRUM</SMALL> pattern is defined with:
2007-04-29 06:47:40 +00:00
2011-07-26 22:49:39 +00:00
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Position Strum Volume1 Volume2 ...; ...</B>
</td></tr>
</Table>
<P>
Note the absence of a duration setting. For details, please refer to
the the P<SMALL>LECTRUM</SMALL> section
(<A HREF="node11.html#chap-plectrum">here</A>) for more details.
<P>
<H2><A NAME="SECTION00418000000000000000"></A> <A NAME="sec-drum"></A>
2006-11-10 08:07:56 +00:00
<BR>
Drum
</H2>
<P>
Drum tracks are a bit different from the other tracks discussed so
far. Instead of having each track saved as a separate MIDI track, all
the drum tracks are combined onto MIDI track 10.
<P>
A Drum pattern is defined with:
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Position Duration Volume; ...</B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="#efefef" Border=3>
<tr><td Align="CENTER" BGColor="White">
2009-05-17 22:34:44 +00:00
<SPAN CLASS="textbf"><BIG CLASS="XLARGE">Drum Definition</BIG></SPAN> <A NAME="eg:s2"></A>
2007-04-29 06:47:40 +00:00
</tr> </td>
<tr> <td >
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Drum Define S2 1 0 100; &#92;
2006-11-10 08:07:56 +00:00
<BR>&nbsp;&nbsp;&nbsp; 2 0 80 ; &#92;
<BR>&nbsp;&nbsp;&nbsp; 3 0 100 ; &#92;
2007-04-29 06:47:40 +00:00
<BR>&nbsp;&nbsp;&nbsp; 4 0 80 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td> </tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<P>
<A HREF="#eg:s2">This example</A> plays a drum sound on
2009-05-17 22:34:44 +00:00
beats 1, 2, 3 and 4 of a bar in <SPAN CLASS="textbf">4/4</SPAN> time. The MIDI velocity
2006-11-10 08:07:56 +00:00
(volume) of the drum is 100 on beats 1 and 3; 80 on beats 2 and 4.
<P>
2011-07-26 22:49:39 +00:00
This example uses the special duration of &#8220;0&#8221;, which indicates 1
MIDI tick.
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
<H2><A NAME="SECTION00419000000000000000"></A> <A NAME="drum-tone"></A>
2006-11-10 08:07:56 +00:00
<BR>
Drum Tone
2011-07-26 22:49:39 +00:00
</H2>
2006-11-10 08:07:56 +00:00
<P>
Essential to drum definitions is the T<SMALL>ONE</SMALL> directive.
<P>
2011-07-26 22:49:39 +00:00
When a drum pattern is defined it uses the default &#8220;note&#8221; or
&#8220;tone&#8221; which is a snare drum sound. But, this can (and should) be
2006-11-10 08:07:56 +00:00
changed using the T<SMALL>ONE</SMALL> directive. This is normally issued at
the same time as a sequence is set up (see
<A HREF="node5.html#sec-seqs">sequences</A>).
<P>
T<SMALL>ONE</SMALL> is a list of drum sounds which match the sequence length.
Here's a short, concocted example (see the library files for many
more):
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Drum Define S1 1 0 90
2006-11-10 08:07:56 +00:00
<BR>
Drum Define S2 S1 * 2
<BR>
Drum Define S4 S1 * 4
<BR>
SeqClear
<BR>
SeqSize 4
<BR>
Drum Sequence S4 S2 S2 S4
<BR>
2007-04-29 06:47:40 +00:00
Drum Tone SnareDrum1 SideKick LowTom1 Slap </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
Here the drum patterns &#8220;S2&#8221; and &#8220;S4&#8221; are defined to sound a drum
2006-11-10 08:07:56 +00:00
on beats 1 and 3, and 1, 2, 3 and 4 respectively (see
2011-07-26 22:49:39 +00:00
<A HREF="#defmult">DefMult</A> for details on the &#8220;*&#8221;
2006-11-10 08:07:56 +00:00
option). Next, a sequence size of 4 bars and a drum sequence are set
to use this pattern. Finally,
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> is instructed to use a SnareDrum1
sound in bar 1, a SideKick sound in bar 2, a LowTom1 in bar 3 and a
Slap in bar 4. If the song has more than four bars, this sequence will
be repeated.
<P>
In most cases you will probably use a single drum tone name for the
entire sequence, but it can be useful to alternate the tone between
bars.
<P>
2011-07-26 22:49:39 +00:00
To repeat the same &#8220;tone&#8221; in a sequence list, use a single &#8220;/&#8221;.
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
The &#8220;tone&#8221; can be specified with a MIDI note value or with a
symbolic name. For example, a snare drum could be specified as &#8220;38&#8221;
or &#8220;SnareDrum1&#8221;. <A HREF="node30.html#sec-drumnames">The Drumnames
2006-11-10 08:07:56 +00:00
appendix</A> lists all the defined symbolic
names.
<P>
It is possible to substitute tone values. See
2011-07-26 22:49:39 +00:00
<A HREF="node23.html#set-drumtr">T<SMALL>ONE</SMALL>TR</A>.
2006-11-10 08:07:56 +00:00
<P>
<H1><A NAME="SECTION00420000000000000000">
Including Existing Patterns in New Definitions</A>
</H1>
<P>
When defining a pattern, you can use an existing pattern name in place
of a definition grouping. For example, if you have already defined a
chord pattern (which is played on beats 1 and 3) as:
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
2011-07-26 22:49:39 +00:00
<B>Chord Define M13 1 4 80; 3 4 80 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
you can create a new pattern which plays on same beats and adds a
single push note just before the third beat:
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
2011-07-26 22:49:39 +00:00
<B>Chord Define M1+3 M13; 2.5 16 80 0 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
A few points to note:
<P>
<UL>
<LI>the existing pattern must exist and belong to the same track,
<P>
</LI>
<LI>the existing pattern is expanded in place,
<P>
</LI>
<LI>it is perfectly acceptable to have several existing definitions,
2011-07-26 22:49:39 +00:00
just be sure to delimit each with a &#8220;;&#8221;,
2006-11-10 08:07:56 +00:00
<P>
</LI>
<LI>the order of items in a definition does not matter, each will be
placed at the correct position in the bar.
<P>
</LI>
</UL>
<P>
This is a powerful shortcut in creating patterns. See the included
library files for examples.
<P>
<H1><A NAME="SECTION00430000000000000000"></A> <A NAME="defmult"></A>
<BR>
Multiplying and Shifting Patterns
</H1>
<P>
Since most pattern definitions are, internally, repetitious, you can
create complex rhythms by multiplying a copy of an existing pattern.
For example, if you have defined a pattern to play a chord on beats 1
though 4 (a quarter note strum), you can easily create a similar
pattern to play eighth note chords on beats 1, 1.5, etc. though 4.5
with a command like:
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Track Define NewPattern OldPattern * N </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
where &#8220;Track&#8221; is a valid track name (&#8220;Chord&#8221;, &#8220;Walk&#8221;, &#8220;Bass&#8221;,
&#8220;Arpeggio&#8221; or &#8220;Drum&#8221;, as well as &#8220;Chord2&#8221; or &#8220;DRUM3&#8221;, etc.).
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
The &#8220;*&#8221; is absolutely required.
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
&#8220;N&#8221; can be any integer value between 2 and 100.
2006-11-10 08:07:56 +00:00
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="#efefef" Border=3>
<tr><td Align="CENTER" BGColor="White">
2009-05-17 22:34:44 +00:00
<SPAN CLASS="textbf"><BIG CLASS="XLARGE">Multiply Define</BIG></SPAN> <A NAME="eg:drum2"></A>
2007-04-29 06:47:40 +00:00
</tr> </td>
<tr> <td >
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B> Drum Define S1 1 1 100
2006-11-10 08:07:56 +00:00
<BR>
Drum Define S13 S1 * 2
<BR>
Drum Define S1234 S1 * 4
<BR>
Drum Define S8 S1234 * 2
<BR>
Drum Define S16 S8 * 2
<BR>
Drum Define S32 S16 * 2
<BR>
2007-04-29 06:47:40 +00:00
Drum Define S64 S1 * 64 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td> </tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<P>
2011-07-26 22:49:39 +00:00
In <A HREF="#eg:drum2">this example</A> a Drum pattern
is defined which plays a drum tone on beat 1 (assuming <SPAN CLASS="textbf">4/4</SPAN>
time). Then a new pattern, &#8220;S13&#8221;, is created. This is the old &#8220;S1&#8221;
multiplied by 2. This new pattern will play a tone on beats 1 and 3.
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
Next, &#8220;S1234&#8221; is created. This plays 4 notes, one the each beat.
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
Note the definition for &#8220;S64&#8221;: &#8220;S32&#8221; could have been multiplied by
2, but, for illustrative purposes, &#8220;S1&#8221; has been multiplied by
2006-11-10 08:07:56 +00:00
64--same result either way.
<P>
When
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> multiplies an existing pattern it will (usually) do what
you expect. The start positions for all notes are adjusted to the new
positions; the length of all the notes are adjusted (quarter notes
become eighth notes, etc.). No changes are made to note offsets or
volumes.
<P>
<A HREF="#eg:sw8">This example</A> shows how to get a
swing pattern which might be useful on a snare drum.
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="#efefef" Border=3>
<tr><td Align="CENTER" BGColor="White">
2009-05-17 22:34:44 +00:00
<SPAN CLASS="textbf"><BIG CLASS="XLARGE">Swing Beat Drum Definition</BIG></SPAN> <A NAME="eg:sw8"></A>
2007-04-29 06:47:40 +00:00
</tr> </td>
<tr> <td >
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Begin Drum Define
2006-11-10 08:07:56 +00:00
<BR>&nbsp;&nbsp;&nbsp;&nbsp;SB8 1 2+16 0 90 ; 3.66 4+32 80
<BR>&nbsp;&nbsp;&nbsp;&nbsp;SB8 SB8 * 4
<BR>
2007-04-29 06:47:40 +00:00
End </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<BR>
2009-05-17 22:34:44 +00:00
<BR> <SPAN CLASS="textbf">Sheet Music Equivalent, Normal Notation</SPAN>
2006-11-10 08:07:56 +00:00
<P>
<BR>
<BR>
<IMG WIDTH="95%" SRC="mupex/swingdrum8.png" ALT="Lost Image">
<P>
<BR>
2009-05-17 22:34:44 +00:00
<BR> <SPAN CLASS="textbf">Sheet Music Equivalent, Actual Rhythm</SPAN>
2006-11-10 08:07:56 +00:00
<P>
<IMG WIDTH="95%" SRC="mupex/swingdrum8-3.png" ALT="Lost Image">
2007-04-29 06:47:40 +00:00
</td> </tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<P>
To see the effects of multiplying patterns, create a simple test file
and process it though
2011-07-26 22:49:39 +00:00
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> with the &#8220;-p&#8221; option.
2006-11-10 08:07:56 +00:00
<P>
2011-07-26 22:49:39 +00:00
Even cooler<A NAME="tex2html29"
HREF="#foot1667"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">10</SPAN></SUP></A> is combining a multiplier, and
2006-11-10 08:07:56 +00:00
existing pattern and a new pattern all in one statement. The following
is quite legal (and useful):
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Drum Define D1234 1 0 90 * 4 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
which creates drum hits on beats 1, 2, 3 and 4.
<P>
More contrived (but examples are needed) is:
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Drum Define Dfunny D1234 * 2; 1.5 0 70 * 2 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
If you're really interested in the result, run
2011-07-26 22:49:39 +00:00
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> with the &#8220;-p&#8221;
2006-11-10 08:07:56 +00:00
option with the above definition.
<P>
<A NAME="defshift"></A>
<P>
2009-05-17 22:34:44 +00:00
An existing pattern can be modified by <SPAN CLASS="textit">shifting</SPAN> it a beat, or
2006-11-10 08:07:56 +00:00
portion of a beat. This is done in a
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> definition with the
S<SMALL>HIFT</SMALL> directive. <A HREF="#eg:shift">This
example</A> shows a triplet pattern created to
play on beat 1, and then a second pattern played on beat 3.
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="#efefef" Border=3>
<tr><td Align="CENTER" BGColor="White">
2009-05-17 22:34:44 +00:00
<SPAN CLASS="textbf"><BIG CLASS="XLARGE">Shift Pattern Definition</BIG></SPAN> <A NAME="eg:shift"></A>
2007-04-29 06:47:40 +00:00
</tr> </td>
<tr> <td >
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Chord Define C1-3 1 3 90; &#92;
<BR>&nbsp;&nbsp;&nbsp; 1.33 3 90; 1.66 3 90 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<BR>
<BR>
<P>
<IMG WIDTH="95%" SRC="mupex/trip1.png" ALT="Lost Image">
<P>
<BR>
<BR>
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Chord Define C3-3 C1-3 Shift 2 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<IMG WIDTH="95%" SRC="mupex/trip3.png" ALT="Lost Image">
2007-04-29 06:47:40 +00:00
</td> </tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<P>
Note that the shift factor can be a negative or positive value. It can
be fractional. Just be sure that the factor doesn't force the note
placement to be less than 1 or greater than the T<SMALL>IME</SMALL> setting.
<P>
And, just like the multiplier discussed earlier you can shift patterns
as they are defined. And shifts and multipliers can be combined. So,
to define a series of quarter notes on the offbeat you could use:
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Drum Define D1234' 1 0 90 * 4 Shift .5 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
which would create the same pattern as the longer:
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Drum Define D1234' 1.5 1 90; 2.5 1 90; 3.5 1 90; 4.5 1 90 </B>
2006-11-10 08:07:56 +00:00
2007-04-29 06:47:40 +00:00
</td></tr>
</Table>
2006-11-10 08:07:56 +00:00
<P>
<P>
<BR><HR><H4>Footnotes</H4>
<DL>
2011-07-26 22:49:39 +00:00
<DT><A NAME="foot1692">... warning!).</A><A
HREF="node4.html#tex2html20"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">1</SPAN></SUP></A></DT>
<DD>The exception is
that R<SMALL>TIME</SMALL> may move the chord back into the bar.
2006-11-10 08:07:56 +00:00
</DD>
2011-07-26 22:49:39 +00:00
<DT><A NAME="foot1693">... fine:</A><A
HREF="node4.html#tex2html21"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">2</SPAN></SUP></A></DT>
2006-11-10 08:07:56 +00:00
<DD>The start offset is the value of the first of a pair
2009-05-17 22:34:44 +00:00
of swing eights plus a quarter <SPAN CLASS="textit">before</SPAN> the second beat.
2006-11-10 08:07:56 +00:00
</DD>
2011-07-26 22:49:39 +00:00
<DT><A NAME="foot1695">... tones.</A><A
HREF="node4.html#tex2html22"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">3</SPAN></SUP></A></DT>
2006-11-10 08:07:56 +00:00
<DD>See the supplied
2011-07-26 22:49:39 +00:00
G<SMALL>ROOVE</SMALL> &#8220;Bluegrass&#8221; for an example.
2006-11-10 08:07:56 +00:00
</DD>
2011-07-26 22:49:39 +00:00
<DT><A NAME="foot1458">... velocity</A><A
HREF="node4.html#tex2html23"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">4</SPAN></SUP></A></DT>
<DD>MIDI &#8220;note on&#8221; events are
declared with a &#8220;velocity&#8221; value. Think of this as the
&#8220;striking pressure&#8221; on a piano.
2006-11-10 08:07:56 +00:00
</DD>
2011-07-26 22:49:39 +00:00
<DT><A NAME="foot1463">... validity.</A><A
HREF="node4.html#tex2html24"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">5</SPAN></SUP></A></DT>
2006-11-10 08:07:56 +00:00
<DD>This is a feature that you probably don't want to
use, but if you want to ensure that a note is always sounded use a
very large value (e.g., 1000) for the volume. That way, future
adjustments will maintain a large value and this large value will
be clipped to the maximum permitted MIDI velocity.
</DD>
2011-07-26 22:49:39 +00:00
<DT><A NAME="foot1477">... outcomes.</A><A
HREF="node4.html#tex2html25"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">6</SPAN></SUP></A></DT>
2006-11-10 08:07:56 +00:00
<DD>What really happens is that
2011-07-26 22:49:39 +00:00
this definition is stored in a slot named &#8220;DRUM&#8221;.
2006-11-10 08:07:56 +00:00
</DD>
2011-07-26 22:49:39 +00:00
<DT><A NAME="foot1696">...
2006-11-10 08:07:56 +00:00
semitone.</A><A
2011-07-26 22:49:39 +00:00
HREF="node4.html#tex2html26"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">7</SPAN></SUP></A></DT>
<DD> Be careful using this feature ... certain
2006-11-10 08:07:56 +00:00
scales/chords may return non-musical results.
</DD>
2011-07-26 22:49:39 +00:00
<DT><A NAME="foot1699">...
2006-11-10 08:07:56 +00:00
order.</A><A
2011-07-26 22:49:39 +00:00
HREF="node4.html#tex2html27"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">8</SPAN></SUP></A></DT>
2006-11-10 08:07:56 +00:00
<DD>See the D<SMALL>IRECTION</SMALL> command
2011-07-26 22:49:39 +00:00
(<A HREF="node24.html#scale-direction">here</A>).
2006-11-10 08:07:56 +00:00
</DD>
2011-07-26 22:49:39 +00:00
<DT><A NAME="foot1701">... &#8220;color&#8221;</A><A
HREF="node4.html#tex2html28"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">9</SPAN></SUP></A></DT>
2006-11-10 08:07:56 +00:00
<DD>The color of a chord are items
2011-07-26 22:49:39 +00:00
like &#8220;minor&#8221;, &#8220;major&#8221;, etc. The current walking bass algorithm
2006-11-10 08:07:56 +00:00
generates acceptable (uninspired) lines. If you want something
better there is nothing stopping you from using a R<SMALL>IFF</SMALL> to
over-ride the computer generated pattern for important bars.
</DD>
2011-07-26 22:49:39 +00:00
<DT><A NAME="foot1667">... cooler</A><A
HREF="node4.html#tex2html29"><SUP><SPAN CLASS="arabic">4</SPAN>.<SPAN CLASS="arabic">10</SPAN></SUP></A></DT>
<DD>In this case the word &#8220;cool&#8221; substitutes for
the more correct &#8220;useful&#8221;.
2006-11-10 08:07:56 +00:00
</DD>
2009-05-17 22:34:44 +00:00
</DL>
<DIV CLASS="navigation"><HR>
2006-11-10 08:07:56 +00:00
<!--Navigation Panel-->
2011-07-26 22:49:39 +00:00
<A NAME="tex2html450"
2006-11-10 08:07:56 +00:00
HREF="node5.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
2011-07-26 22:49:39 +00:00
<A NAME="tex2html448"
2006-11-10 08:07:56 +00:00
HREF="mma.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
2011-07-26 22:49:39 +00:00
<A NAME="tex2html442"
2006-11-10 08:07:56 +00:00
HREF="node3.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
<BR>
2011-07-26 22:49:39 +00:00
<B> Next:</B> <A NAME="tex2html451"
2006-11-10 08:07:56 +00:00
HREF="node5.html">Sequences</A>
2011-07-26 22:49:39 +00:00
<B> Up:</B> <A NAME="tex2html449"
2006-11-10 08:07:56 +00:00
HREF="mma.html">Reference Manual</A>
2011-07-26 22:49:39 +00:00
<B> Previous:</B> <A NAME="tex2html443"
2009-05-17 22:34:44 +00:00
HREF="node3.html">Tracks and Channels</A></DIV>
2006-11-10 08:07:56 +00:00
<!--End of Navigation Panel-->
<ADDRESS>
2007-04-29 06:47:40 +00:00
bob
2011-07-26 22:49:39 +00:00
2010-11-07
2006-11-10 08:07:56 +00:00
</ADDRESS>
</BODY>
</HTML>