Arquivos
OpenBCI_GUI/libraries/minim/documentation/multichannelbuffer_method_getsample.html
2016-07-19 17:54:57 -04:00

73 linhas
2.4 KiB
HTML
Arquivo Executável

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Minim : : MultiChannelBuffer : : getSample</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body>
<center>
<table class="mainTable">
<tr>
<td class="header">
<span class="indexheader">Minim</span><br/>
<span class="indexnavigation">
<a href="index.html">core</a> |
<a href="index_ugens.html">ugens</a> |
<a href="index_analysis.html">analysis</a>
</span>
</td>
<td class="border-left">&nbsp;</td>
</tr>
<tr>
<td class="classNavigation">
<p class="mainTextName"><A href="multichannelbuffer_class_multichannelbuffer.html">MultiChannelBuffer</A></p>
<p class="methodName">getSample</p>
</td>
<td class="mainText border-left">
<p class="memberSectionHeader">Description</p>
Returns the value of a sample in the given channel,
at the given offset from the beginning of the buffer.
When sampleIndex is a float, this returns an interpolated
sample value. For instance, getSample( 0, 30.5f ) will
return an interpolated sample value in channel 0 that is
between the value at 30 and the value at 31.
<p class="memberSectionHeader">Signature</p>
<pre>float getSample(int channelNumber, int sampleIndex)
float getSample(int channelNumber, float sampleIndex)
</pre>
<p class="memberSectionHeader">Parameters</p>
<span class="parameterName">channelNumber</span>&nbsp;&mdash;&nbsp;<span class="parameterDescription">int: the channel to get the sample value from</span><br/>
<span class="parameterName">sampleIndex</span>&nbsp;&mdash;&nbsp;<span class="parameterDescription">int: the offset from the beginning of the buffer, in samples.</span><br/>
<span class="parameterName">sampleIndex</span>&nbsp;&mdash;&nbsp;<span class="parameterDescription">float: the offset from the beginning of the buffer, in samples.</span><br/>
<p class="memberSectionHeader">Returns</p>
<p>float: the value of the sample</p>
<p class="memberSectionHeader">Related</p>
<p class="memberSectionHeader">Example</p>
<pre>None available</pre>
<p class="memberSectionHeader">Usage</p>
Web & Application
</td>
</tr>
</table>
</center>
</body>
</html>