Comments and constants

This commit is contained in:
Takeshi Yokemura
2021-08-16 14:35:28 +09:00
parent 88dea8e989
commit 05e27d0da6
2 changed files with 14 additions and 10 deletions

View File

@ -11,6 +11,8 @@
#pragma once
#include "BaseVoice.h"
#define NUMNOTEBUFFER 10
struct TonalVoice : public BaseVoice // The base for Pulse and Triangle
{
TonalVoice (SettingRefs* sRefs);
@ -36,7 +38,7 @@ struct TonalVoice : public BaseVoice // The base for Pulse and Triangle
int currentPitchSequenceFrame = 0;
// Legato/Arpeggio
int noteBuffer[10];
int noteBuffer[NUMNOTEBUFFER];
int currentNumNoteBuffer = 0;
int primaryMidiChannel = 1;
@ -47,7 +49,7 @@ struct TonalVoice : public BaseVoice // The base for Pulse and Triangle
int currentArpeggioFrame = 0;
double arpeggioFrameTimer = 0;
double arpeggioFrameLength = 0; // Unit: seconds. Set non-zero value to enable arpeggio
int retireBuffer[10];
int retireBuffer[NUMNOTEBUFFER];
int currentNumRetireBuffer = 0;
void startNote (int midiNoteNumber, float velocity,