Klang C++
Language Reference (draft)
Loading...
Searching...
No Matches
klang::Envelope::Loop

Envelope loop. More...

#include <klang.h>

Public Member Functions

 Loop (int from=-1, int to=-1)
 
void set (int from, int to)
 
void reset ()
 
bool isActive () const
 

Public Attributes

int start
 
int end
 

Detailed Description

Definition at line 2740 of file klang.h.

Constructor & Destructor Documentation

◆ Loop()

klang::Envelope::Loop::Loop ( int from = -1,
int to = -1 )
inline

Definition at line 2741 of file klang.h.

2741: start(from), end(to) {}

References end, and start.

Member Function Documentation

◆ isActive()

bool klang::Envelope::Loop::isActive ( ) const
inline

Definition at line 2746 of file klang.h.

2746{ return start != -1 && end != -1; }

References end, and start.

Referenced by klang::Envelope::operator++().

◆ reset()

void klang::Envelope::Loop::reset ( )
inline

Definition at line 2744 of file klang.h.

2744{ start = end = -1; }

References end, and start.

Referenced by klang::Envelope::initialise(), and klang::Envelope::resetLoop().

◆ set()

void klang::Envelope::Loop::set ( int from,
int to )
inline

Definition at line 2743 of file klang.h.

2743{ start = from; end = to; }

References end, and start.

Referenced by klang::Envelope::setLoop().

Member Data Documentation

◆ end

int klang::Envelope::Loop::end

Definition at line 2749 of file klang.h.

Referenced by Loop(), isActive(), klang::Envelope::operator++(), reset(), and set().

◆ start

int klang::Envelope::Loop::start

Definition at line 2748 of file klang.h.

Referenced by Loop(), isActive(), klang::Envelope::operator++(), reset(), and set().