mirror of
https://github.com/AquaMorph/Droplets.git
synced 2025-07-04 19:32:01 +00:00
Updated libs
This commit is contained in:
@ -34,7 +34,7 @@ size_t Droplet::GetChannelMax() {
|
||||
}
|
||||
|
||||
void Droplet::DrawName(std::string name) {
|
||||
WriteCenteredString(*patch, (screen_min + screen_max) / 2, 0,
|
||||
WriteCenteredString(patch, (screen_min + screen_max) / 2, 0,
|
||||
Font_6x8, name);
|
||||
}
|
||||
|
||||
|
@ -52,8 +52,8 @@ public:
|
||||
* @param out the audio outputs for the patch
|
||||
* @param size the number of inputs and outputs
|
||||
*/
|
||||
virtual void Process(float** in,
|
||||
float** out,
|
||||
virtual void Process(AudioHandle::InputBuffer in,
|
||||
AudioHandle::OutputBuffer out,
|
||||
size_t size)=0;
|
||||
|
||||
/*
|
||||
|
@ -9,7 +9,7 @@ NoiseDroplet::NoiseDroplet(DaisyPatch* m_patch,
|
||||
|
||||
void NoiseDroplet::Control() {}
|
||||
|
||||
void NoiseDroplet::Process(float** in, float** out, size_t size) {
|
||||
void NoiseDroplet::Process(AudioHandle::InputBuffer in, AudioHandle::OutputBuffer out, size_t size) {
|
||||
for (size_t i = 0; i < size; i += 2) {
|
||||
float sig = noise.Process();
|
||||
for (size_t chn = GetChannelMin(); chn < GetChannelMax(); chn++) {
|
||||
|
@ -33,8 +33,8 @@ public:
|
||||
* @param out the audio outputs for the patch
|
||||
* @param size the number of inputs and outputs
|
||||
*/
|
||||
void Process(float** in,
|
||||
float** out,
|
||||
void Process(AudioHandle::InputBuffer in,
|
||||
AudioHandle::OutputBuffer out,
|
||||
size_t size);
|
||||
|
||||
/*
|
||||
|
@ -48,7 +48,7 @@ void VCODroplet::Control() {
|
||||
AdjustWaveShape(Patch()->encoder.Increment());
|
||||
}
|
||||
|
||||
void VCODroplet::Process(float** in, float** out, size_t size) {
|
||||
void VCODroplet::Process(AudioHandle::InputBuffer in, AudioHandle::OutputBuffer out, size_t size) {
|
||||
float sig, freq, amp = 1.0;
|
||||
|
||||
Patch()->ProcessAnalogControls();
|
||||
@ -79,13 +79,13 @@ void VCODroplet::Process(float** in, float** out, size_t size) {
|
||||
void VCODroplet::Draw() {
|
||||
SetWaveState(wave);
|
||||
if (GetState() == DropletState::kFull) {
|
||||
WriteCenteredString(*Patch(),
|
||||
WriteCenteredString(Patch(),
|
||||
(GetScreenMax()-GetScreenMin())/2,
|
||||
54,
|
||||
Font_6x8,
|
||||
WaveToString(wave));
|
||||
} else {
|
||||
WriteDoubleCentered(*Patch(),
|
||||
WriteDoubleCentered(Patch(),
|
||||
GetScreenMin() +
|
||||
(GetScreenMax()-GetScreenMin())/2,
|
||||
54,
|
||||
|
@ -67,8 +67,8 @@ public:
|
||||
* @param out the audio outputs for the patch
|
||||
* @param size the number of inputs and outputs
|
||||
*/
|
||||
void Process(float** in,
|
||||
float** out,
|
||||
void Process(AudioHandle::InputBuffer in,
|
||||
AudioHandle::OutputBuffer out,
|
||||
size_t size);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user