Gin
Public Member Functions | Static Public Member Functions | List of all members
Sample Class Reference

Holds an audio sample. More...

Public Member Functions

int getLength ()
 
int getRootNote ()
 
double getSampleRate ()
 
juce::AudioSampleBuffer & getSamples ()
 
void read (juce::AudioSampleBuffer &buffer, int samplePos, int bufferPos=0, int length=-1)
 
void readSamplesAt (int pos, float &lOut, float &rOut)
 

Static Public Member Functions

static std::unique_ptr< SamplefromFile (const juce::File &f)
 

Detailed Description

Holds an audio sample.

Member Function Documentation

◆ fromFile()

static std::unique_ptr<Sample> Sample::fromFile ( const juce::File &  f)
static

◆ getLength()

int Sample::getLength ( )

◆ getRootNote()

int Sample::getRootNote ( )

◆ getSampleRate()

double Sample::getSampleRate ( )

◆ getSamples()

juce::AudioSampleBuffer& Sample::getSamples ( )

◆ read()

void Sample::read ( juce::AudioSampleBuffer &  buffer,
int  samplePos,
int  bufferPos = 0,
int  length = -1 
)

◆ readSamplesAt()

void Sample::readSamplesAt ( int  pos,
float &  lOut,
float &  rOut 
)

The documentation for this class was generated from the following file: