Droplets/src/droplets/mixer_droplet.h

67 lines
1.2 KiB
C++

#pragma once
#ifndef DROPLETS_MIXER_DROPLET_H_
#define DROPLETS_MIXER_DROPLET_H_
#include "daisysp.h"
#include "daisy_patch.h"
#include "droplet.h"
#include "../util.h"
using namespace daisy;
using namespace daisysp;
class MixerDroplet: public Droplet {
private:
Parameter mix[4];
public:
/*
* Constructor for a mixer droplet.
*
* @param m_patch pointer to patch
* @param m_state droplet position
*/
MixerDroplet(DaisyPatch* m_patch,
DropletState m_state);
/*
* Destructor for vco droplet.
*/
~MixerDroplet();
/*
* Processes user controls and inputs.
*/
void Control();
/*
* Processes audio input and outputs.
*
* @param in the audio inputs for the patch
* @param out the audio outputs for the patch
* @param size the number of inputs and outputs
*/
void Process(AudioHandle::InputBuffer in,
AudioHandle::OutputBuffer out,
size_t size);
/*
* Processes information to be shown on the display.
*/
void Draw();
/*
* Runs when droplet state is updated.
*/
void UpdateStateCallback();
/*
* Set up the controls for the droplet.
*/
void SetControls();
};
#endif // DROPLETS_VCA_DROPLET_H_