mirror of
https://github.com/yokemura/Magical8bitPlug2.git
synced 2025-07-17 11:04:16 -04:00
Basic monophonic
This commit is contained in:
@ -218,6 +218,13 @@ void BaseVoice::renderNextBlock (AudioSampleBuffer& outputBuffer, int startSampl
|
||||
}
|
||||
}
|
||||
|
||||
void BaseVoice::changeNote (int midiNoteNumber, float velocity) {
|
||||
noteNumber = midiNoteNumber;
|
||||
|
||||
ampByVelocityAndGain = * (settingRefs->gain) * velocity; // velocity value range is 0.0f-1.0f
|
||||
}
|
||||
|
||||
|
||||
void BaseVoice::calculateAngleDelta()
|
||||
{
|
||||
auto cyclesPerSecond = MidiMessage::getMidiNoteInHertz (noteNumber);
|
||||
|
Reference in New Issue
Block a user