Magical8bitPlug2/Source/PulseVoice.h
Archonic 09d21d5c90 Added 'bend resolution' slider
This allows for pitch bend to be quantized into semitones (or smaller increments) for a more 'chipped' feel.
2023-06-20 22:59:03 -04:00

29 lines
780 B
C

/*
==============================================================================
PulseVoice.h
Created: 11 Nov 2019 9:36:51pm
Author: 除村 武志
==============================================================================
*/
#pragma once
#include "TonalVoice.h"
struct PulseVoice : public TonalVoice
{
PulseVoice (SettingRefs* sRefs);
PulseDuty currentDuty = kPulseDuty500; // May be changed by Duty Sequence
// Custom Duty Sequence states
int currentDutySequenceFrame = 0;
void startNote (int midiNoteNumber, float velocity,
SynthesiserSound*, int currentPitchWheelPosition) override;
float voltageForAngle (double angle) override;
void advanceControlFrame() override;
};