|
CSL
6.0
|
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... | |
| Grain * | nextGrain |
| A pointer to the next grain in the linked list. More... | |
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.
| float csl::Grain::amplitude |
| 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 |
| 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 |
| unsigned csl::Grain::delay |
| float* csl::Grain::samples |
| unsigned csl::Grain::numSamples |
| 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().