mirror of
https://github.com/yokemura/Magical8bitPlug2.git
synced 2025-07-17 11:04:16 -04:00
Added code
This commit is contained in:
28
Source/PulseVoice.h
Normal file
28
Source/PulseVoice.h
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
==============================================================================
|
||||
|
||||
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;
|
||||
};
|
Reference in New Issue
Block a user