#include <sound_pattern.h>
Public Member Functions | |
CSoundPattern () | |
virtual | ~CSoundPattern () |
Sounds list management | |
virtual void | addSound (std::string &name) |
virtual void | getSounds (std::vector< std::string > &sounds) |
virtual void | removeSound (const NLMISC::TStringId &name) |
Iterating through the sound pattern | |
virtual IntervalIterator | beginIntervalPattern () |
virtual uint16 | getInterval (IntervalIterator *iterator) |
Iterating through the sound pattern | |
virtual PatternIterator | beginSoundPattern () |
virtual std::string & | getSound (PatternIterator *iterator) |
Interval pattern editing and generation | |
virtual void | generateRandomIntervals (uint length, uint16 min, uint16 max) |
virtual void | generateRandomMin1Intervals (uint length, uint16 min, uint16 max) |
virtual void | getIntervals (std::string &list) |
virtual void | setIntervals (std::string &list) |
Sound pattern editing and generation | |
virtual void | generateRandomMin1Pattern (uint length) |
virtual void | generateRandomPattern (uint length) |
virtual void | getSoundPattern (std::string &list) |
virtual void | setSoundPattern (std::string &list) |
Continuous controllers | |
virtual ISoundController * | getFreqModulation () |
virtual ISoundController * | getVolumeEnvelope () |
virtual void | setFreqModulation (ISoundController *mod) |
virtual void | setVolumeEnvelope (ISoundController *env) |
Spawning | |
virtual bool | getSpawn () |
virtual void | setSpawn (bool v) |
Tempo | |
virtual float | getTicksPerSecond () |
virtual void | setTicksPerSecond (float ticks) |
Private Member Functions | |
virtual void | concatenatePattern (std::string &list, uint16_string &pattern) |
virtual void | expandString (std::string &s, std::string &buffer) |
virtual void | generateRandomMin1Pattern (uint16_string &pattern, uint length, uint16 min, uint16 max) |
virtual void | generateRandomPattern (uint16_string &pattern, uint length, uint16 min, uint16 max) |
virtual void | parsePattern (std::string &list, uint16_string &pattern) |
Private Attributes | |
ISoundController * | _FreqModulation |
uint16_string | _Intervals |
uint16_string | _SoundPattern |
std::vector< std::string > | _Sounds |
bool | _Spawn |
std::string | _StringBuffer |
float | _TicksPerSeconds |
ISoundController * | _VolumeEnvelope |
|
Constructor |
|
Destructor |
|
Definition at line 108 of file sound_pattern.h.
00108 { _Sounds.push_back(name); } |
|
Definition at line 157 of file sound_pattern.h. References _Intervals.
00157 { return IntervalIterator(this, _Intervals.size()); } |
|
Definition at line 138 of file sound_pattern.h. References _SoundPattern.
00138 { return PatternIterator(this, _SoundPattern.size()); } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 217 of file sound_pattern.h. References _FreqModulation.
00217 { return _FreqModulation; } |
|
Referenced by NLSOUND::CSoundPattern::IntervalIterator::operator *(). |
|
|
|
Referenced by NLSOUND::CSoundPattern::PatternIterator::operator *(). |
|
|
|
|
|
Definition at line 209 of file sound_pattern.h. References _Spawn.
00209 { return _Spawn; } |
|
Definition at line 202 of file sound_pattern.h.
00202 { return _TicksPerSeconds; } |
|
Definition at line 215 of file sound_pattern.h. References _VolumeEnvelope.
00215 { return _VolumeEnvelope; } |
|
|
|
|
|
Definition at line 216 of file sound_pattern.h. References _FreqModulation.
00216 { _FreqModulation = mod; } |
|
|
|
|
|
Definition at line 208 of file sound_pattern.h.
|
|
Definition at line 203 of file sound_pattern.h.
00203 { _TicksPerSeconds = ticks; } |
|
Definition at line 214 of file sound_pattern.h. References _VolumeEnvelope.
00214 { _VolumeEnvelope = env; } |
|
Definition at line 236 of file sound_pattern.h. Referenced by getFreqModulation(), and setFreqModulation(). |
|
Definition at line 233 of file sound_pattern.h. Referenced by beginIntervalPattern(). |
|
Definition at line 232 of file sound_pattern.h. Referenced by beginSoundPattern(). |
|
Definition at line 230 of file sound_pattern.h. |
|
Definition at line 234 of file sound_pattern.h. Referenced by getSpawn(), and setSpawn(). |
|
Definition at line 237 of file sound_pattern.h. |
|
Definition at line 231 of file sound_pattern.h. |
|
Definition at line 235 of file sound_pattern.h. Referenced by getVolumeEnvelope(), and setVolumeEnvelope(). |