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

338 lines
8.9 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
<!--Converted with LaTeX2HTML 2002-2-1 (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>Riffs</TITLE>
<META NAME="description" CONTENT="Riffs">
<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="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-->
<A NAME="tex2html448"
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>
2009-05-17 22:34:44 +00:00
<A NAME="tex2html446"
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>
2009-05-17 22:34:44 +00:00
<A NAME="tex2html440"
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>
2009-05-17 22:34:44 +00:00
<B> Next:</B> <A NAME="tex2html449"
2006-11-10 08:07:56 +00:00
HREF="node8.html">Musical Data Format</A>
2009-05-17 22:34:44 +00:00
<B> Up:</B> <A NAME="tex2html447"
2006-11-10 08:07:56 +00:00
HREF="mma.html">Reference Manual</A>
2009-05-17 22:34:44 +00:00
<B> Previous:</B> <A NAME="tex2html441"
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-->
<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
D<SMALL>EFINE</SMALL>. In addition the pattern can be a single ``z'',
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>
The special pattern ``z'' can be used to turn off a track for a single
bar. This is similar to using a ``z'' in the S<SMALL>EQUENCE</SMALL>
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
discussion below about multiple R<SMALL>IFF</SMALL>s.
<P>
</LI>
<LI>R<SMALL>IFF</SMALL> sequences are always enabled. Even if there is no
sequence for a track, or if the ``z'' sequence is being used, the
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
``stack''<A NAME="tex2html35"
2009-05-17 22:34:44 +00:00
HREF="#foot3206"><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
patterns are then ``pulled'' from the stack as successive chord lines
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.
<BR><HR><H4>Footnotes</H4>
<DL>
2009-05-17 22:34:44 +00:00
<DT><A NAME="foot3206">...
2006-11-10 08:07:56 +00:00
``stack''</A><A
2009-05-17 22:34:44 +00:00
HREF="node7.html#tex2html35"><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-->
2009-05-17 22:34:44 +00:00
<A NAME="tex2html448"
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>
2009-05-17 22:34:44 +00:00
<A NAME="tex2html446"
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>
2009-05-17 22:34:44 +00:00
<A NAME="tex2html440"
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>
2009-05-17 22:34:44 +00:00
<B> Next:</B> <A NAME="tex2html449"
2006-11-10 08:07:56 +00:00
HREF="node8.html">Musical Data Format</A>
2009-05-17 22:34:44 +00:00
<B> Up:</B> <A NAME="tex2html447"
2006-11-10 08:07:56 +00:00
HREF="mma.html">Reference Manual</A>
2009-05-17 22:34:44 +00:00
<B> Previous:</B> <A NAME="tex2html441"
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
2009-05-17 22:34:44 +00:00
2008-09-28
2006-11-10 08:07:56 +00:00
</ADDRESS>
</BODY>
</HTML>