CSL  6.0
csl::Grain Struct Reference

Grain data structure This implementation uses a linked list data structure. You might want to add a few more members to this for flexibility. More...

#include <Granulator.h>

Public Attributes

float amplitude
 amplitude scale (0 - 1) More...
 
float rate
 playback rate (1.0 for normal pitch, < 0 reads backwards) More...
 
float duration
 duration in samples More...
 
float time
 current time (index) in samples More...
 
float pan
 stereo pan 0 - 1 More...
 
float env
 envelope: 0 = perc, 0.5 = triangle, 1 = reverse perc More...
 
float position
 running sample index More...
 
unsigned delay
 initial delay in samples More...
 
float * samples
 sample buffer pointer More...
 
unsigned numSamples
 length of sample vector More...
 
GrainnextGrain
 A pointer to the next grain in the linked list. More...
 

Detailed Description

Grain data structure This implementation uses a linked list data structure. You might want to add a few more members to this for flexibility.

Definition at line 21 of file Granulator.h.

Member Data Documentation

float csl::Grain::amplitude

amplitude scale (0 - 1)

Definition at line 22 of file Granulator.h.

Referenced by createGrains().

float csl::Grain::rate

playback rate (1.0 for normal pitch, < 0 reads backwards)

Definition at line 23 of file Granulator.h.

Referenced by createGrains().

float csl::Grain::duration

duration in samples

Definition at line 24 of file Granulator.h.

Referenced by createGrains(), and reapGrains().

float csl::Grain::time

current time (index) in samples

Definition at line 25 of file Granulator.h.

Referenced by createGrains(), and reapGrains().

float csl::Grain::pan

stereo pan 0 - 1

Definition at line 26 of file Granulator.h.

Referenced by createGrains().

float csl::Grain::env

envelope: 0 = perc, 0.5 = triangle, 1 = reverse perc

Definition at line 27 of file Granulator.h.

Referenced by createGrains().

float csl::Grain::position

running sample index

Definition at line 28 of file Granulator.h.

Referenced by createGrains().

unsigned csl::Grain::delay

initial delay in samples

Definition at line 29 of file Granulator.h.

Referenced by createGrains().

float* csl::Grain::samples

sample buffer pointer

Definition at line 30 of file Granulator.h.

Referenced by createGrains().

unsigned csl::Grain::numSamples

length of sample vector

Definition at line 31 of file Granulator.h.

Referenced by createGrains().

Grain* csl::Grain::nextGrain

A pointer to the next grain in the linked list.

Definition at line 32 of file Granulator.h.

Referenced by createGrains(), csl::GrainCloud::GrainCloud(), csl::GrainPlayer::nextBuffer(), reapGrains(), and csl::GrainCloud::reset().


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