Krotos Modules 3
Loading...
Searching...
No Matches
krotos::Grain Class Reference

#include <OscillatorUtils.h>

Public Types

enum  Flavour {
  vehicleMoving = 0 , vehicleStatic , foreground , background ,
  tagged , predicted
}
 

Public Member Functions

void setLifetime (int grainPlaybackLength)
 Set the approriate variables to control the lifetime of the grain.
 

Public Attributes

enum krotos::Grain::Flavour vehicleMoving
 
float mix {1.f}
 
int playHeadStart {0}
 
float grainSize {0.f}
 
int length {0}
 
float grainWindow {0.f}
 
float envelope {0.f}
 
double playHead {0.0}
 
int segmentIndex {0}
 
float resampleRatio {1.f}
 
float pitchRand {0.01f}
 
float gainRand {1.0f}
 
float panRand {0.5f}
 
float widthRand {0.5f}
 
float ramp {0.0f}
 
bool isPlaying {false}
 
float windowDelta {0.f}
 
int voiceIndex {-1}
 
float gainMod {0.f}
 
float pitchMod {0.f}
 
float principalX {0.f}
 
float principalY {0.f}
 
float principalZ {0.f}
 
float principalQ {0.f}
 

Friends

class SampleEngine
 

Member Enumeration Documentation

◆ Flavour

Enumerator
vehicleMoving 
vehicleStatic 
foreground 
background 
tagged 
predicted 

Member Function Documentation

◆ setLifetime()

void krotos::Grain::setLifetime ( int grainPlaybackLength)

Set the approriate variables to control the lifetime of the grain.

Parameters
grainPlaybackLengthplayback length in samples

Friends And Related Symbol Documentation

◆ SampleEngine

friend class SampleEngine
friend

Member Data Documentation

◆ envelope

float krotos::Grain::envelope {0.f}

◆ gainMod

float krotos::Grain::gainMod {0.f}

◆ gainRand

float krotos::Grain::gainRand {1.0f}

◆ grainSize

float krotos::Grain::grainSize {0.f}

◆ grainWindow

float krotos::Grain::grainWindow {0.f}

◆ isPlaying

bool krotos::Grain::isPlaying {false}

◆ length

int krotos::Grain::length {0}

◆ mix

float krotos::Grain::mix {1.f}

◆ panRand

float krotos::Grain::panRand {0.5f}

◆ pitchMod

float krotos::Grain::pitchMod {0.f}

◆ pitchRand

float krotos::Grain::pitchRand {0.01f}

◆ playHead

double krotos::Grain::playHead {0.0}

◆ playHeadStart

int krotos::Grain::playHeadStart {0}

◆ principalQ

float krotos::Grain::principalQ {0.f}

◆ principalX

float krotos::Grain::principalX {0.f}

◆ principalY

float krotos::Grain::principalY {0.f}

◆ principalZ

float krotos::Grain::principalZ {0.f}

◆ ramp

float krotos::Grain::ramp {0.0f}

◆ resampleRatio

float krotos::Grain::resampleRatio {1.f}

◆ segmentIndex

int krotos::Grain::segmentIndex {0}

◆ vehicleMoving

enum krotos::Grain::Flavour krotos::Grain::vehicleMoving

◆ voiceIndex

int krotos::Grain::voiceIndex {-1}

◆ widthRand

float krotos::Grain::widthRand {0.5f}

◆ windowDelta

float krotos::Grain::windowDelta {0.f}

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