Klang C++ 0.7.15
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 5172 of file klang.h.

Constructor & Destructor Documentation

◆ Loop()

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

Definition at line 5173 of file klang.h.

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

Member Function Documentation

◆ isActive()

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

Definition at line 5178 of file klang.h.

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

◆ reset()

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

Definition at line 5176 of file klang.h.

5176{ start = end = -1; }

◆ set()

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

Definition at line 5175 of file klang.h.

5175{ start = from; end = to; }

Member Data Documentation

◆ end

int klang::Envelope::Loop::end

Definition at line 5181 of file klang.h.

◆ start

int klang::Envelope::Loop::start

Definition at line 5180 of file klang.h.