1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> 2<head> 3<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 4<title>SND_SetTrackPitch</title> 5<link rel="stylesheet" href="../css/nitro.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.65.1"> 7</head> 8<body> 9<div class="refentry" lang="ja"><a name="IDAFLWT"></a><div class="titlepage"> 10<div></div> 11<div></div> 12</div> 13<h1>SND_SetTrackPitch <IMG src="../image/NTR.gif" width="24" height="12" border="0" align=middle><IMG src="../image/TWL.gif" width="24" height="12" border="0" align=middle></h1> 14<h2>Syntax</h2> 15<dl> 16<dd><pre class="funcsynopsisinfo"><code>#include <nitro/snd.h></code></pre></dd> 17<dd><pre class="funcprototype"><code class="funcprototype">void SND_SetTrackPitch( int <var>playerNo</var>, u32 <var>trackBitMask</var>, int <var>pitch</var> );</code><br></pre></dd> 18</dl> 19<div class="refsection" lang="ja"><a name="IDACNWT"></a> 20 <h2>Arguments</h2> 21 22 <div class="variablelist"> 23<table border="0"> 24<col align="left" valign="top"> 25<tbody> 26<tr> 27<td><em><strong><code>playerNo</code></strong></em></td> 28<td>The player number. Takes a value between 0 and 15.</td> 29</tr> 30<tr> 31<td><em><strong><code>trackBitMask</code></strong></em></td> 32<td>This is the track bit mask. It designates which track to use.</td> 33</tr> 34<tr> 35<td><em><strong><code>pitch</code></strong></em></td> 36<td>The degree to which to change the pitch. Takes a value between -32768 and 32767.</td> 37</tr> 38</tbody> 39</table> 40</div> 41 42 </div> 43<div class="refsection" lang="ja"><a name="IDA5NWT"></a> 44 <h2>Return Values</h2> 45 46 <p>None.</p> 47 </div> 48<div class="refsection" lang="ja"><a name="IDAGOWT"></a> 49 <h2>Description</h2> 50 <p> 51Changes the track pitch of the sequence being played by the Player specified by <code>playerNo</code>. 52</p> 53 <p> 54The track bit mask, <em><strong><code>trackBitMask</code></strong></em>, designates which track to use. Each bit expresses a track in descending order track 0 as the lowest bit. Operations are performed only on tracks with active bits. 55</p> 56 <p> 57Setting a positive value for <code>pitch</code> raises the pitch, while setting a negative value lowers the pitch. A value of +/- 64 changes the pitch by exactly one half-note. 58</p> 59 <div class="note"> 60<h3 class="title">Note</h3> 61<p> 62This function is an ARM7 reserved function. After this function is called, its processing will occur only after the command is issued with the <tt class="function"><a href="SND_FlushCommand.html">SND_FlushCommand</a></tt> function. 63</p> 64<p> 65If program execution must be synchronized with process completion, first use the <tt class="function"><a href="SND_GetCurrentCommandTag.html">SND_GetCurrentCommandTag</a></tt> function to obtain the command tag immediately after calling this function. Then, after the command is issued, use the command tag and call either the <tt class="function"><a href="SND_IsFinishedCommandTag.html">SND_IsFinishedCommandTag</a></tt> or <tt class="function"><a href="SND_WaitForCommandProc.html">SND_WaitForCommandProc</a></tt> function to confirm that processing has finished or to wait for it to complete. 66</p> 67</div> 68 </div> 69<h2>See Also</h2> 70<p><code><a href="SND_FlushCommand.html">SND_FlushCommand</a>, <a href="SND_GetCurrentCommandTag.html">SND_GetCurrentCommandTag</a>, <a href="SND_IsFinishedCommandTag.html">SND_IsFinishedCommandTag</a>, <a href="SND_WaitForCommandProc.html">SND_WaitForCommandProc</a></code></p> 71<h2>Revision History</h2> 72<p> 732005/02/17 Added a note about ARM7 command processing. <br>2004/07/01 Initial version. 74</p> 75</div> 76<hr><p>CONFIDENTIAL</p></body> 77</html> 78