Gin
Public Types | Public Member Functions | Public Attributes | List of all members
MSEGComponent Class Reference

Draws an MSEG LFO curve and shows a little dot moving long. More...

Inheritance diagram for MSEGComponent:

Public Types

enum  DrawMode {
  step , half , down , up ,
  tri
}
 

Public Member Functions

 MSEGComponent (MSEG::Data &d)
 
 ~MSEGComponent () override=default
 
void setParams (Parameter::Ptr sync, Parameter::Ptr rate, Parameter::Ptr beat, Parameter::Ptr depth, Parameter::Ptr offset, Parameter::Ptr phase, Parameter::Ptr enable, Parameter::Ptr xgrid, Parameter::Ptr ygrid, Parameter::Ptr loop)
 
void setEditable (bool e)
 
void setDrawMode (bool enable, DrawMode m)
 
void markDirty ()
 
void paint (juce::Graphics &g) override
 
void resized () override
 
- Public Member Functions inherited from MultiParamComponent
 MultiParamComponent ()
 
 ~MultiParamComponent () override
 
juce::Colour dimIfNeeded (const juce::Colour &c)
 
- Public Member Functions inherited from Parameter::ParameterListener
virtual ~ParameterListener ()
 

Public Attributes

std::function< std::vector< float >)> phaseCallback
 
std::function< void()> onClick
 
std::function< void()> onLoad
 
std::function< void()> onSave
 

Additional Inherited Members

- Protected Member Functions inherited from MultiParamComponent
void showBubble (const juce::String &text, const juce::Rectangle< int > &rc)
 
void hideBubble ()
 
void watchParam (Parameter *p)
 
void unwatchParam (Parameter *p)
 
void unwatchParams ()
 
void enablementChanged () override
 
void valueUpdated (Parameter *) override
 
void handleAsyncUpdate () override
 
- Protected Attributes inherited from MultiParamComponent
juce::Array< Parameter * > params
 
std::unique_ptr< juce::BubbleMessageComponent > bubble
 

Detailed Description

Draws an MSEG LFO curve and shows a little dot moving long.

Member Enumeration Documentation

◆ DrawMode

Enumerator
step 
half 
down 
up 
tri 

Constructor & Destructor Documentation

◆ MSEGComponent()

MSEGComponent::MSEGComponent ( MSEG::Data d)

◆ ~MSEGComponent()

MSEGComponent::~MSEGComponent ( )
overridedefault

Member Function Documentation

◆ setParams()

void MSEGComponent::setParams ( Parameter::Ptr  sync,
Parameter::Ptr  rate,
Parameter::Ptr  beat,
Parameter::Ptr  depth,
Parameter::Ptr  offset,
Parameter::Ptr  phase,
Parameter::Ptr  enable,
Parameter::Ptr  xgrid,
Parameter::Ptr  ygrid,
Parameter::Ptr  loop 
)

◆ setEditable()

void MSEGComponent::setEditable ( bool  e)

◆ setDrawMode()

void MSEGComponent::setDrawMode ( bool  enable,
DrawMode  m 
)

◆ markDirty()

void MSEGComponent::markDirty ( )

◆ paint()

void MSEGComponent::paint ( juce::Graphics &  g)
override

◆ resized()

void MSEGComponent::resized ( )
override

Member Data Documentation

◆ phaseCallback

std::function<std::vector<float>)> MSEGComponent::phaseCallback

◆ onClick

std::function<void()> MSEGComponent::onClick

◆ onLoad

std::function<void()> MSEGComponent::onLoad

◆ onSave

std::function<void()> MSEGComponent::onSave

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