#include <OscillatorUtils.h>
|
| void | setLifetime (int grainPlaybackLength) |
| | Set the approriate variables to control the lifetime of the grain.
|
| |
◆ Flavour
| Enumerator |
|---|
| vehicleMoving | |
| vehicleStatic | |
| foreground | |
| background | |
| tagged | |
| predicted | |
◆ setLifetime()
| void krotos::Grain::setLifetime |
( |
int | grainPlaybackLength | ) |
|
Set the approriate variables to control the lifetime of the grain.
- Parameters
-
| grainPlaybackLength | playback length in samples |
◆ SampleEngine
◆ 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
◆ 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: