Deluge Firmware 1.3.0
Build date: 2026.11.22
Loading...
Searching...
No Matches
VoiceUnisonPartSource Class Reference
Collaboration diagram for VoiceUnisonPartSource:

Public Member Functions

bool noteOn (Voice *voice, Source *source, VoiceSamplePlaybackGuide *voiceSource, uint32_t samplesLate, uint32_t oscPhase, bool resetEverything, SynthMode synthMode, uint8_t velocity)
void unassign (bool deletingSong)
bool getPitchAndSpeedParams (Source *source, VoiceSamplePlaybackGuide *voiceSource, uint32_t *phaseIncrement, uint32_t *timeStretchRatio, uint32_t *noteLengthInSamples)
uint32_t getSpeedParamForNoSyncing (Source *source, int32_t phaseIncrement, int32_t pitchAdjustNeutralValue)
uint32_t getStretchToUndoPitch (int32_t pitchAdjustNeutralValue, uint32_t phaseIncrement)

Public Attributes

uint32_t oscPos
deluge::dsp::Supersaw::SidePhases supersawPhases = deluge::dsp::Supersaw::sidePhasesFrom(0)
uint32_t phaseIncrementStoredValue
int32_t carrierFeedback
bool active
VoiceSample * voiceSample = nullptr
LivePitchShifter * livePitchShifter = nullptr
gsl::owner< DxVoice * > dxVoice = nullptr

Private Attributes

int32_t stretchToUndoPitchNeutral_ = 0
uint32_t stretchToUndoPitchIncrement_ = 0
uint32_t stretchToUndoPitch_ = 0

Member Function Documentation

◆ getStretchToUndoPitch()

uint32_t VoiceUnisonPartSource::getStretchToUndoPitch ( int32_t pitchAdjustNeutralValue,
uint32_t phaseIncrement )

(pitchAdjustNeutralValue << 24) / phaseIncrement, the time-stretch ratio that undoes a pitch change. The 64-bit divide is a call to the software divide, and the pitch rarely changes between renders, so the last one is kept.


The documentation for this class was generated from the following files: