VocalEasel/mma/docs/html/ref/node7.html

433 lines
11 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>Riffs</TITLE>
<META NAME="description" CONTENT="Riffs">
<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="node8.html">
<LINK REL="previous" HREF="node6.html">
<LINK REL="up" HREF="mma.html">
<LINK REL="next" HREF="node8.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="tex2html504"
2006-11-10 08:07:56 +00:00
HREF="node8.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="tex2html502"
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="tex2html496"
2006-11-10 08:07:56 +00:00
HREF="node6.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="tex2html505"
2006-11-10 08:07:56 +00:00
HREF="node8.html">Musical Data Format</A>
2011-07-26 22:49:39 +00:00
<B> Up:</B> <A NAME="tex2html503"
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="tex2html497"
2006-11-10 08:07:56 +00:00
HREF="node6.html">Grooves</A>
<BR>
2009-05-17 22:34:44 +00:00
<BR></DIV>
2006-11-10 08:07:56 +00:00
<!--End of Navigation Panel-->
2011-07-26 22:49:39 +00:00
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
<UL CLASS="ChildLinks">
<LI><A NAME="tex2html506"
HREF="node7.html#SECTION00710000000000000000">DupRiff</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
2006-11-10 08:07:56 +00:00
<H1><A NAME="SECTION00700000000000000000"></A> <A NAME="sec-riff"></A>
<BR>
Riffs
</H1>
<P>
In previous chapters you were shown how to create a P<SMALL>ATTERN</SMALL>
which becomes a part of a S<SMALL>EQUENCE</SMALL>. And how to set a musical
style by defining a G<SMALL>ROOVE</SMALL>.
<P>
These predefined G<SMALL>ROOVE</SMALL>s are wonderful things. And, yes, entire
accompaniment tracks can be created with just some chords and a single
G<SMALL>ROOVE</SMALL>. But, often a bit of variety in the track is needed.
<P>
The R<SMALL>IFF</SMALL> command permits the setting of an alternate pattern
for any track for a single bar-this overrides the current
S<SMALL>EQUENCE</SMALL> for that track.
<P>
The syntax for R<SMALL>IFF</SMALL> is very similar to that of D<SMALL>EFINE</SMALL>,
with the exception that no pattern name is used. You might think of
R<SMALL>IFF</SMALL> as the setting of an S<SMALL>EQUENCE</SMALL> with an anonymous
pattern.
<P>
A R<SMALL>IFF</SMALL> is set with the command:
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Track Riff Pattern </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>
where:
<P>
<DL>
<DT><STRONG>Track</STRONG></DT>
<DD>is any valid
<FONT Face="Serif" Color="Navy"><I>MMA</I></FONT> track name,
<P>
</DD>
<DT><STRONG>Pattern</STRONG></DT>
<DD>is any existing pattern name defined for the specified
track, or a pattern definition following the same syntax as a
2011-07-26 22:49:39 +00:00
D<SMALL>EFINE</SMALL>. In addition the pattern can be a single &#8220;z&#8221;,
2006-11-10 08:07:56 +00:00
indicating no pattern for the specified track.
<P>
</DD>
</DL>
<P>
Following is a short example using R<SMALL>IFF</SMALL> to change the Chord Pattern:
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Groove Rhumba
2006-11-10 08:07:56 +00:00
<BR>
1 Fm7
<BR>
2 Bb7
<BR>
3 EbM7
<BR>
Chord Riff 1 4 100; 3 8 90; 3.666 8 80; 4.333 8 70
<BR>
4 Eb6 / Eb
<BR>
2007-04-29 06:47:40 +00:00
5 Fm7 </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>
In this case there is a Rhumba Groove for the song; however, in bar 4
the melodic pattern is emphasized by chording a quarter-note triplet
over beats 3 and 4. In this case the pattern has been defined right in
the R<SMALL>IFF</SMALL> command.
<P>
The next example shows that R<SMALL>IFF</SMALL> patterns can be defined just
like the patterns used in a sequence.
<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 Emph8 1 0 128 * 8
2006-11-10 08:07:56 +00:00
<BR>
Groove Blues
<BR>
1 C
<BR>
2 G
<BR>
Drum-Clap Riff Emph8
<BR>
3 G
<BR>
4 F
<BR>
Drum-Clap Riff Emph8
<BR>
2007-04-29 06:47:40 +00:00
5 C </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>
2009-05-17 22:34:44 +00:00
Here the <SPAN CLASS="textit">Emph8</SPAN> pattern is defined as a series of eighth notes.
2006-11-10 08:07:56 +00:00
This is applied for the third and fifth bars. If you compile and play this example
2009-05-17 22:34:44 +00:00
you will hear a sporadic hand-clap on bar 3. The <SPAN CLASS="textit">Drum-Clap</SPAN>
2006-11-10 08:07:56 +00:00
track was previously defined in the Blues G<SMALL>ROOVE</SMALL> as random
claps on beats 2 and 4--our R<SMALL>IFF</SMALL> changes this to a louder
volume with multiple hits.
<P>
2011-07-26 22:49:39 +00:00
The special pattern &#8220;z&#8221; can be used to turn off a track for a single
bar. This is similar to using a &#8220;z&#8221; in the S<SMALL>EQUENCE</SMALL>
2006-11-10 08:07:56 +00:00
directive.
<P>
A few things to keep in mind when using R<SMALL>IFF</SMALL>s:
<P>
<UL>
<LI>Each R<SMALL>IFF</SMALL> is in effect for only one bar (see the
2011-07-26 22:49:39 +00:00
discussion below about multiple R<SMALL>IFF</SMALL>s).
2006-11-10 08:07:56 +00:00
<P>
</LI>
<LI>R<SMALL>IFF</SMALL> sequences are always enabled. Even if there is no
2011-07-26 22:49:39 +00:00
sequence for a track, or if the &#8220;z&#8221; sequence is being used, the
2006-11-10 08:07:56 +00:00
pattern specified in R<SMALL>IFF</SMALL> will apply.
<P>
</LI>
<LI>The existing voicing, articulation, etc. for the track will
apply to the R<SMALL>IFF</SMALL>.
<P>
</LI>
<LI>It's quite possible to use a macro for repeated R<SMALL>IFF</SMALL>s.
The following example uses a macro which
sets the V<SMALL>OLUME</SMALL>, A<SMALL>RTICULATE</SMALL>, etc. as well as the
pattern. Note how the pattern is initially set as single whole note,
but, redefined in the R<SMALL>IFF</SMALL> as a run controlled by another
macro. In bar 2 an eight note run is played and in bar 5 this is
changed to a run of triplets.
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Mset CRiff
2006-11-10 08:07:56 +00:00
<BR>&nbsp;&nbsp;Begin Scale
<BR>&nbsp;&nbsp;&nbsp;&nbsp;Define Run 1 1 120
<BR>&nbsp;&nbsp;&nbsp;&nbsp;Riff Run * $SSpeed
<BR>&nbsp;&nbsp;&nbsp;&nbsp;Voice AltoSax
<BR>&nbsp;&nbsp;&nbsp;&nbsp;Volume f
<BR>&nbsp;&nbsp;&nbsp;&nbsp;Articulate 80
<BR>&nbsp;&nbsp;&nbsp;&nbsp;Rskip 5
<BR>&nbsp;&nbsp;End
<BR>
MsetEnd
<BR>
Groove Blues
<BR>
1 C
<BR>
Set SSpeed 8
<BR> $CRiff
<BR>
2 G
<BR>
3 G
<BR>
Set SSpeed 12
<BR> $CRIFF
<BR>
2007-04-29 06:47:40 +00:00
5 C </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>
</LI>
<LI>A R<SMALL>IFF</SMALL> can only be deleted by using it (i.e., a music bar
follows the setting), with a S<SMALL>EQ</SMALL>C<SMALL>LEAR</SMALL> or by a track D<SMALL>ELETE</SMALL>.
<P>
</LI>
</UL>
<P>
R<SMALL>IFF</SMALL>s can also be used to specify a bar of music in a
S<SMALL>OLO</SMALL> or M<SMALL>ELODY</SMALL> track. Please see <A HREF="node10.html#chap-solo">Solo and
Melody</A>.
<P>
The above examples show how to apply a temporary pattern to a single
bar--the bar which follows the R<SMALL>IFF</SMALL> command. But, you can
2011-07-26 22:49:39 +00:00
&#8220;stack&#8221;<A NAME="tex2html36"
HREF="#foot3368"><SUP><SPAN CLASS="arabic">7</SPAN>.<SPAN CLASS="arabic">1</SPAN></SUP></A> a number of patterns to be processed sequentially. Each
2006-11-10 08:07:56 +00:00
successive R<SMALL>IFF</SMALL> command adds a pattern to the stack; these
2011-07-26 22:49:39 +00:00
patterns are then &#8220;pulled&#8221; from the stack as successive chord lines
2006-11-10 08:07:56 +00:00
are processed.
<P>
Recycling an earlier example, lets assume that you want to use a
customized pattern for bars 4 and 5 in a mythical song:
<P>
2007-04-29 06:47:40 +00:00
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Groove Rhumba
2006-11-10 08:07:56 +00:00
<BR>
1 Fm7
<BR>
2 Bb7
<BR>
3 EbM7
<BR>
Chord Riff 1 4 100; 3 8 90; 3.666 8 80; 4.333 8 70
<BR>
Chord Riff 1 2 100; 3 8 90;
<BR>
4 Eb6 / Eb
<BR>
2007-04-29 06:47:40 +00:00
5 Fm7 </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>
2009-05-17 22:34:44 +00:00
In this example the first <SPAN CLASS="textit">Chord Riff</SPAN> will be used in bar 4; the
2006-11-10 08:07:56 +00:00
second in bar 5. For an example of this see the sample file
2009-05-17 22:34:44 +00:00
<TT><SPAN CLASS="textbf">egs/riffs.mma</SPAN></TT>.
2006-11-10 08:07:56 +00:00
<P>
I often use this feature when creating a S<SMALL>OLO</SMALL> line.
2011-07-26 22:49:39 +00:00
<P>
<H1><A NAME="SECTION00710000000000000000"></A> <A NAME="dupriff"></A>
<BR>
DupRiff
</H1>
<P>
In the above section we discussed the creation of R<SMALL>IFF</SMALL>s. In
addition to being fun and useful in a specified track, they
can easily be duplicated between similar tracks with a single command:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Solo DupRiff Solo-1 Solo-2 </B>
</td></tr>
</Table>
<P>
will copy any pending R<SMALL>IFF</SMALL> data in the S<SMALL>OLO</SMALL> track to the
S<SMALL>OLO-1</SMALL> and S<SMALL>OLO-2</SMALL> tracks.
<P>
A few rules:
<P>
<UL>
<LI>All the tracks must be of the same type. You can't copy a
R<SMALL>IFF</SMALL> from C<SMALL>HORD</SMALL> track to a S<SMALL>OLO</SMALL>, etc.
<P>
</LI>
<LI>The source track must have R<SMALL>IFF</SMALL> data to copy.
<P>
</LI>
<LI>The destination track(s) must <SPAN CLASS="textit">not</SPAN> have any pending
R<SMALL>IFF</SMALL> data.
<P>
</LI>
</UL>
<P>
The use of the D<SMALL>UP</SMALL>R<SMALL>IFF</SMALL> makes it very easy to manage data for
solos with multiple instruments. For example:
<P>
<Table Hspace="40%" CellSpacing=0 CellPadding=10 BGColor="OldLace" Border=3>
<tr><td>
<B>Begin Solo-1
<BR>&nbsp;&nbsp; Voice Flute
<BR>&nbsp;&nbsp; HarmonyOnly Open
<BR>
End
<BR>&nbsp;
<BR>
Begin Solo
<BR>&nbsp;&nbsp; Voice Clarinet
<BR>&nbsp;&nbsp; Begin Riff
<BR>&nbsp;&nbsp;&nbsp;&nbsp; 2g+; f+;
<BR>&nbsp;&nbsp;&nbsp;&nbsp; 2e+; d+;
<BR>&nbsp;&nbsp; End
<BR>
End
<BR>&nbsp;
<BR>
Solo DupRiff Solo-1
</B>
</td></tr>
</Table>
<P>
The above example creates two S<SMALL>OLO</SMALL> tracks. S<SMALL>OLO-1</SMALL> will
only play the harmony notes; S<SMALL>OLO</SMALL> will play the melody. Without
D<SMALL>UP</SMALL>R<SMALL>IFF</SMALL> you would need to duplicate the note data in both
tracks, either line by line or with a macro. Using D<SMALL>UP</SMALL>R<SMALL>IFF</SMALL> is
much simpler.
2006-11-10 08:07:56 +00:00
<BR><HR><H4>Footnotes</H4>
<DL>
2011-07-26 22:49:39 +00:00
<DT><A NAME="foot3368">...
&#8220;stack&#8221;</A><A
HREF="node7.html#tex2html36"><SUP><SPAN CLASS="arabic">7</SPAN>.<SPAN CLASS="arabic">1</SPAN></SUP></A></DT>
2006-11-10 08:07:56 +00:00
<DD>Actually a queue or FIFO (First In, First Out)
buffer.
</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="tex2html504"
2006-11-10 08:07:56 +00:00
HREF="node8.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="tex2html502"
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="tex2html496"
2006-11-10 08:07:56 +00:00
HREF="node6.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="tex2html505"
2006-11-10 08:07:56 +00:00
HREF="node8.html">Musical Data Format</A>
2011-07-26 22:49:39 +00:00
<B> Up:</B> <A NAME="tex2html503"
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="tex2html497"
2009-05-17 22:34:44 +00:00
HREF="node6.html">Grooves</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>