YSE sound engine  1.0
cross platform sound engine
 All Classes Namespaces Functions Pages
YSE::DSP::ramp Class Reference
Inheritance diagram for YSE::DSP::ramp:
YSE::DSP::sample

Public Member Functions

rampset (Flt target, Int time=0)
 
rampsetIfNew (Flt target, Int time=0)
 
rampstop ()
 
rampupdate ()
 
AUDIOBUFFER & operator() ()
 
AUDIOBUFFER & getSample ()
 
Flt getValue ()
 
 ramp (ramp &)
 
UInt getLength () const
 
UInt getLengthMS () const
 
Flt getLengthSec () const
 
Flt * getBuffer ()
 
AUDIOBUFFER & operator+= (Flt f)
 
AUDIOBUFFER & operator+= (const AUDIOBUFFER &s)
 
AUDIOBUFFER & operator-= (Flt f)
 
AUDIOBUFFER & operator-= (const AUDIOBUFFER &s)
 
AUDIOBUFFER & operator*= (Flt f)
 
AUDIOBUFFER & operator*= (const AUDIOBUFFER &s)
 
AUDIOBUFFER & operator/= (Flt f)
 
AUDIOBUFFER & operator/= (const AUDIOBUFFER &s)
 
AUDIOBUFFER & copyFrom (const AUDIOBUFFER &s, UInt SourcePos, UInt DestPos, UInt length)
 
sampledrawLine (UInt start, UInt stop, Flt startValue, Flt stopValue)
 
sampledrawLine (UInt start, UInt stop, Flt value)
 
Flt getBack ()
 
AUDIOBUFFER & resize (UInt length, Bool copy=false)
 

Public Attributes

Flt * cursor
 

Detailed Description

Definition at line 20 of file ramp.hpp.

Member Function Documentation

sample& YSE::DSP::sample::drawLine ( UInt  start,
UInt  stop,
Flt  startValue,
Flt  stopValue 
)
inherited

Draw data in a sound buffer.

This is not meant for buffers which will be sent to the audio output, but for buffers used to do calculations on real audio buffers. Make sure that start and stop values are within the bounds of this buffer (0 -> getLength()). If the startValue differs from the stopValue, values inbetween will be created as a linear slope.

Parameters
startthe position in the buffer you want to start drawing
stopthe position in the buffer you want to stop drawing
startValuethe value you want to start with. (Between -1 and 1)
stopValuethe value you want to stop at. (Between -1 and 1)
sample& YSE::DSP::sample::drawLine ( UInt  start,
UInt  stop,
Flt  value 
)
inherited

Fill (part of) a buffer with one value.

This is not meant for buffers which will be sent to the audio output, but for buffers used to do calculations on real audio buffers. Make sure that start and stop values are within the bounds of this buffer (0 -> getLength()). In a visual representation the result is an horizontal line.

Parameters
startthe position in the buffer you want to start drawing
stopthe position in the buffer you want to stop drawing
valuethe value to set. (Between -1 and 1)

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