Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Source/Control/adenv.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ class AdEnv

/** Starts or retriggers the envelope.*/
inline void Trigger() { trigger_ = 1; }
/** Sets the length of time (in seconds) for a specific segment. */
/** Sets the length of time (in seconds) for a specific segment.

Segments are defined by the AdEnvSegment enumeration.
@see AdEnvSegment
*/
inline void SetTime(uint8_t seg, float time) { segment_time_[seg] = time; }
/** Sets the amount of curve applied. A positve value will create a log
curve. Input range: -100 to 100. (or more)
Expand All @@ -72,6 +76,10 @@ class AdEnv
inline float GetValue() const { return (output_ * (max_ - min_)) + min_; }
/** Returns the segment of the envelope that the phase is currently located
in.

Segments are defined by the AdEnvSegment enumeration.
@see AdEnvSegment
\return the current AdEnvSegment
*/
inline uint8_t GetCurrentSegment() { return current_segment_; }
/** Returns true if the envelope is currently in any stage apart from idle.
Expand Down