Gin
Public Types | Public Member Functions | List of all members
SampleOscillator Class Reference

Oscillator for playing samples. More...

Public Types

enum  Direction { forwards , backwards , pingpong }
 

Public Member Functions

 SampleOscillator ()=default
 
void setSampleRateAndBlockSize (double sr, int bs)
 
void setSample (Sample *)
 
void setRange (int s, int e)
 
void setLooping (bool l, int s=0, int e=-1)
 
void setDirection (Direction d)
 
void setCrossfadeDuration (double s)
 
void noteOn ()
 
void noteOff ()
 
bool read (double note, juce::AudioSampleBuffer &buffer, int start=0, int length=-1)
 

Detailed Description

Oscillator for playing samples.

Member Enumeration Documentation

◆ Direction

Enumerator
forwards 
backwards 
pingpong 

Constructor & Destructor Documentation

◆ SampleOscillator()

SampleOscillator::SampleOscillator ( )
default

Member Function Documentation

◆ setSampleRateAndBlockSize()

void SampleOscillator::setSampleRateAndBlockSize ( double  sr,
int  bs 
)

◆ setSample()

void SampleOscillator::setSample ( Sample )

◆ setRange()

void SampleOscillator::setRange ( int  s,
int  e 
)

◆ setLooping()

void SampleOscillator::setLooping ( bool  l,
int  s = 0,
int  e = -1 
)

◆ setDirection()

void SampleOscillator::setDirection ( Direction  d)

◆ setCrossfadeDuration()

void SampleOscillator::setCrossfadeDuration ( double  s)

◆ noteOn()

void SampleOscillator::noteOn ( )

◆ noteOff()

void SampleOscillator::noteOff ( )

◆ read()

bool SampleOscillator::read ( double  note,
juce::AudioSampleBuffer &  buffer,
int  start = 0,
int  length = -1 
)

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