# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLSOUND::CSoundPattern Class Reference

#include <sound_pattern.h>

List of all members.

Public Methods

 CSoundPattern ()
 Constructor. More...

virtual ~CSoundPattern ()
 Destructor. More...

Sounds list management
virtual void addSound (std::string &name)
virtual void removeSound (std::string &name)
virtual void getSounds (std::vector< std::string > &sounds)
Iterating through the sound pattern
virtual PatternIterator beginSoundPattern ()
virtual std::string & getSound (PatternIterator *iterator)
Iterating through the sound pattern
virtual IntervalIterator beginIntervalPattern ()
virtual uint16 getInterval (IntervalIterator *iterator)
Sound pattern editing and generation
virtual void setSoundPattern (std::string &list)
virtual void getSoundPattern (std::string &list)
virtual void generateRandomPattern (uint length)
virtual void generateRandomMin1Pattern (uint length)
Interval pattern editing and generation
virtual void setIntervals (std::string &list)
virtual void getIntervals (std::string &list)
virtual void generateRandomIntervals (uint length, uint16 min, uint16 max)
virtual void generateRandomMin1Intervals (uint length, uint16 min, uint16 max)
Tempo
virtual float getTicksPerSecond ()
virtual void setTicksPerSecond (float ticks)
Spawning
virtual void setSpawn (bool v)
virtual bool getSpawn ()
Continuous controllers
virtual void setVolumeEnvelope (ISoundController *env)
virtual ISoundController * getVolumeEnvelope ()
virtual void setFreqModulation (ISoundController *mod)
virtual ISoundController * getFreqModulation ()

Private Methods

virtual void parsePattern (std::string &list, uint16_string &pattern)
virtual void concatenatePattern (std::string &list, uint16_string &pattern)
virtual void generateRandomPattern (uint16_string &pattern, uint length, uint16 min, uint16 max)
virtual void generateRandomMin1Pattern (uint16_string &pattern, uint length, uint16 min, uint16 max)
virtual void expandString (std::string &s, std::string &buffer)

Private Attributes

std::vector< std::string > _Sounds
float _TicksPerSeconds
uint16_string _SoundPattern
uint16_string _Intervals
bool _Spawn
ISoundController * _VolumeEnvelope
ISoundController * _FreqModulation
std::string _StringBuffer


Constructor & Destructor Documentation

NLSOUND::CSoundPattern::CSoundPattern  
 

Constructor.

virtual NLSOUND::CSoundPattern::~CSoundPattern   [virtual]
 

Destructor.


Member Function Documentation

virtual void NLSOUND::CSoundPattern::addSound std::string &    name [inline, virtual]
 

Definition at line 108 of file sound_pattern.h.

References _Sounds.

virtual IntervalIterator NLSOUND::CSoundPattern::beginIntervalPattern   [inline, virtual]
 

Definition at line 157 of file sound_pattern.h.

References _Intervals.

virtual PatternIterator NLSOUND::CSoundPattern::beginSoundPattern   [inline, virtual]
 

Definition at line 138 of file sound_pattern.h.

References _SoundPattern.

virtual void NLSOUND::CSoundPattern::concatenatePattern std::string &    list,
uint16_string   pattern
[private, virtual]
 

virtual void NLSOUND::CSoundPattern::expandString std::string &    s,
std::string &    buffer
[private, virtual]
 

virtual void NLSOUND::CSoundPattern::generateRandomIntervals uint    length,
uint16    min,
uint16    max
[virtual]
 

virtual void NLSOUND::CSoundPattern::generateRandomMin1Intervals uint    length,
uint16    min,
uint16    max
[virtual]
 

virtual void NLSOUND::CSoundPattern::generateRandomMin1Pattern uint16_string   pattern,
uint    length,
uint16    min,
uint16    max
[private, virtual]
 

virtual void NLSOUND::CSoundPattern::generateRandomMin1Pattern uint    length [virtual]
 

virtual void NLSOUND::CSoundPattern::generateRandomPattern uint16_string   pattern,
uint    length,
uint16    min,
uint16    max
[private, virtual]
 

virtual void NLSOUND::CSoundPattern::generateRandomPattern uint    length [virtual]
 

virtual ISoundController* NLSOUND::CSoundPattern::getFreqModulation   [inline, virtual]
 

Definition at line 217 of file sound_pattern.h.

References _FreqModulation.

virtual uint16 NLSOUND::CSoundPattern::getInterval IntervalIterator   iterator [virtual]
 

virtual void NLSOUND::CSoundPattern::getIntervals std::string &    list [virtual]
 

virtual std::string& NLSOUND::CSoundPattern::getSound PatternIterator   iterator [virtual]
 

virtual void NLSOUND::CSoundPattern::getSoundPattern std::string &    list [virtual]
 

virtual void NLSOUND::CSoundPattern::getSounds std::vector< std::string > &    sounds [virtual]
 

virtual bool NLSOUND::CSoundPattern::getSpawn void    [inline, virtual]
 

Definition at line 209 of file sound_pattern.h.

References _Spawn.

virtual float NLSOUND::CSoundPattern::getTicksPerSecond   [inline, virtual]
 

Definition at line 202 of file sound_pattern.h.

References _TicksPerSeconds.

virtual ISoundController* NLSOUND::CSoundPattern::getVolumeEnvelope   [inline, virtual]
 

Definition at line 215 of file sound_pattern.h.

References _VolumeEnvelope.

virtual void NLSOUND::CSoundPattern::parsePattern std::string &    list,
uint16_string   pattern
[private, virtual]
 

virtual void NLSOUND::CSoundPattern::removeSound std::string &    name [virtual]
 

virtual void NLSOUND::CSoundPattern::setFreqModulation ISoundController *    mod [inline, virtual]
 

Definition at line 216 of file sound_pattern.h.

References _FreqModulation.

virtual void NLSOUND::CSoundPattern::setIntervals std::string &    list [virtual]
 

virtual void NLSOUND::CSoundPattern::setSoundPattern std::string &    list [virtual]
 

virtual void NLSOUND::CSoundPattern::setSpawn bool    v [inline, virtual]
 

Definition at line 208 of file sound_pattern.h.

References _Spawn, and v.

virtual void NLSOUND::CSoundPattern::setTicksPerSecond float    ticks [inline, virtual]
 

Definition at line 203 of file sound_pattern.h.

References _TicksPerSeconds.

virtual void NLSOUND::CSoundPattern::setVolumeEnvelope ISoundController *    env [inline, virtual]
 

Definition at line 214 of file sound_pattern.h.

References _VolumeEnvelope.


Member Data Documentation

ISoundController* NLSOUND::CSoundPattern::_FreqModulation [private]
 

Definition at line 236 of file sound_pattern.h.

Referenced by getFreqModulation, and setFreqModulation.

uint16_string NLSOUND::CSoundPattern::_Intervals [private]
 

Definition at line 233 of file sound_pattern.h.

Referenced by beginIntervalPattern.

uint16_string NLSOUND::CSoundPattern::_SoundPattern [private]
 

Definition at line 232 of file sound_pattern.h.

Referenced by beginSoundPattern.

std::vector<std::string> NLSOUND::CSoundPattern::_Sounds [private]
 

Definition at line 230 of file sound_pattern.h.

Referenced by addSound.

bool NLSOUND::CSoundPattern::_Spawn [private]
 

Definition at line 234 of file sound_pattern.h.

Referenced by getSpawn, and setSpawn.

std::string NLSOUND::CSoundPattern::_StringBuffer [private]
 

Definition at line 237 of file sound_pattern.h.

float NLSOUND::CSoundPattern::_TicksPerSeconds [private]
 

Definition at line 231 of file sound_pattern.h.

Referenced by getTicksPerSecond, and setTicksPerSecond.

ISoundController* NLSOUND::CSoundPattern::_VolumeEnvelope [private]
 

Definition at line 235 of file sound_pattern.h.

Referenced by getVolumeEnvelope, and setVolumeEnvelope.


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