mirror of
https://github.com/AquaMorph/Droplets.git
synced 2025-04-30 01:35:34 +00:00
AD Droplet documentation
This commit is contained in:
parent
df827b5054
commit
b15720944c
@ -114,7 +114,10 @@ ADDroplet::ADDroplet(DaisyPatch* m_patch,
|
|||||||
sample_rate,
|
sample_rate,
|
||||||
&m_state);
|
&m_state);
|
||||||
}
|
}
|
||||||
|
CreateTitleGraph();
|
||||||
|
}
|
||||||
|
|
||||||
|
void ADDroplet::CreateTitleGraph() {
|
||||||
title_graph = new Graph(GetScreenMax()-GetScreenMin(),
|
title_graph = new Graph(GetScreenMax()-GetScreenMin(),
|
||||||
GetTitleHeight());
|
GetTitleHeight());
|
||||||
}
|
}
|
||||||
@ -212,6 +215,5 @@ void ADDroplet::UpdateStateCallback() {
|
|||||||
State());
|
State());
|
||||||
}
|
}
|
||||||
delete title_graph;
|
delete title_graph;
|
||||||
title_graph = new Graph(GetScreenMax()-GetScreenMin(),
|
CreateTitleGraph();
|
||||||
GetTitleHeight());
|
|
||||||
}
|
}
|
||||||
|
@ -28,19 +28,77 @@ private:
|
|||||||
DropletState* state;
|
DropletState* state;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
/*
|
||||||
|
* Contructor for attach decay envelope.
|
||||||
|
*
|
||||||
|
* @param m_patch pointer to patch
|
||||||
|
* @param sample_rate audio sample rate
|
||||||
|
* @param state droplet position
|
||||||
|
*/
|
||||||
void Init(DaisyPatch* m_patch,
|
void Init(DaisyPatch* m_patch,
|
||||||
float sample_rate,
|
float sample_rate,
|
||||||
DropletState* state);
|
DropletState* state);
|
||||||
|
|
||||||
void Process(DacHandle::Channel chn, DaisyPatch::GateInput gate);
|
/*
|
||||||
|
* Precesses input from the trigger gate
|
||||||
|
* and sends envelope data to a given CV output.
|
||||||
|
*
|
||||||
|
* @param chn
|
||||||
|
* @param gate
|
||||||
|
*/
|
||||||
|
void Process(DacHandle::Channel chn,
|
||||||
|
DaisyPatch::GateInput gate);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns the envelope signal level.
|
||||||
|
*
|
||||||
|
* @return envelope signal level
|
||||||
|
*/
|
||||||
float GetSignal();
|
float GetSignal();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns the envelope attack time.
|
||||||
|
*
|
||||||
|
* @return envelope attack time
|
||||||
|
*/
|
||||||
float GetAttack();
|
float GetAttack();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns the envelope decay time.
|
||||||
|
*
|
||||||
|
* @return envelope decay time
|
||||||
|
*/
|
||||||
float GetDecay();
|
float GetDecay();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns the envelope slope shape.
|
||||||
|
*
|
||||||
|
* @return envelope slope shape
|
||||||
|
*/
|
||||||
float GetCurve();
|
float GetCurve();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns the envelope amp level.
|
||||||
|
*
|
||||||
|
* @return envelope amp level
|
||||||
|
*/
|
||||||
float GetAmp();
|
float GetAmp();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns the envelope menu state.
|
||||||
|
*
|
||||||
|
* @return envelope menu state
|
||||||
|
*/
|
||||||
bool GetMenu();
|
bool GetMenu();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Toggles envelope menu state.
|
||||||
|
*/
|
||||||
void ToggleCurve();
|
void ToggleCurve();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Binds envelope to menu hardware controls.
|
||||||
|
*/
|
||||||
void SetControls();
|
void SetControls();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -50,12 +108,18 @@ private:
|
|||||||
float sample_rate;
|
float sample_rate;
|
||||||
Graph* title_graph;
|
Graph* title_graph;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create a new graph for the title bar.
|
||||||
|
*/
|
||||||
|
void CreateTitleGraph();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/*
|
/*
|
||||||
* Constructor for a AD droplet.
|
* Constructor for a AD droplet.
|
||||||
*
|
*
|
||||||
* @param m_patch pointer to patch
|
* @param m_patch pointer to patch
|
||||||
* @param m_state droplet position
|
* @param m_state droplet position
|
||||||
|
* @param sample_rate audio sample rate
|
||||||
*/
|
*/
|
||||||
ADDroplet(DaisyPatch* m_patch,
|
ADDroplet(DaisyPatch* m_patch,
|
||||||
DropletState m_state,
|
DropletState m_state,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user