Deluge Firmware
Loading...
Searching...
No Matches
voiceunisonpartsource.h
Go to the documentation of this file.
1/*
2 * Copyright © 2014-2023 Synthstrom Audible Limited
3 *
4 * This file is part of The Synthstrom Audible Deluge Firmware.
5 *
6 * The Synthstrom Audible Deluge Firmware is free software: you can redistribute it and/or modify it under the
7 * terms of the GNU General Public License as published by the Free Software Foundation,
8 * either version 3 of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 * See the GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along with this program.
15 * If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#ifndef VOICE_UNISON_PART_SOURCE_H
19#define VOICE_UNISON_PART_SOURCE_H
20
21#include "definitions.h"
22#include "Sample.h"
23#include "numericdriver.h"
24
25class TimeStretcher;
27class Source;
28class Voice;
29class VoiceSample;
31
32
33
34
35
37{
38public:
40 bool noteOn(Voice* voice, Source* source, VoiceSamplePlaybackGuide* voiceSource, uint32_t samplesLate, uint32_t oscPhase, bool resetEverything, uint8_t synthMode);
41 void unassign();
42 bool getPitchAndSpeedParams(Source* source, VoiceSamplePlaybackGuide* voiceSource, uint32_t* phaseIncrement, uint32_t* timeStretchRatio, uint32_t* noteLengthInSamples);
43 uint32_t getSpeedParamForNoSyncing(Source* source, int32_t phaseIncrement, int32_t pitchAdjustNeutralValue);
44
45 uint32_t oscPos; // FKA phase. No longer used for Sample playback / rate conversion position. Only waves, including wavetable.
48 bool active;
51};
52
53#endif
Definition: LivePitchShifter.h:26
Definition: source.h:31
Definition: TimeStretcher.h:40
Definition: voice.h:33
Definition: VoiceSample.h:38
Definition: voicesampleplaybackguide.h:29
Definition: voiceunisonpartsource.h:37
bool active
Definition: voiceunisonpartsource.h:48
bool getPitchAndSpeedParams(Source *source, VoiceSamplePlaybackGuide *voiceSource, uint32_t *phaseIncrement, uint32_t *timeStretchRatio, uint32_t *noteLengthInSamples)
Definition: voiceunisonpartsource.cpp:87
int32_t carrierFeedback
Definition: voiceunisonpartsource.h:47
uint32_t phaseIncrementStoredValue
Definition: voiceunisonpartsource.h:46
uint32_t getSpeedParamForNoSyncing(Source *source, int32_t phaseIncrement, int32_t pitchAdjustNeutralValue)
Definition: voiceunisonpartsource.cpp:160
void unassign()
Definition: voiceunisonpartsource.cpp:72
VoiceUnisonPartSource()
Definition: voiceunisonpartsource.cpp:30
bool noteOn(Voice *voice, Source *source, VoiceSamplePlaybackGuide *voiceSource, uint32_t samplesLate, uint32_t oscPhase, bool resetEverything, uint8_t synthMode)
Definition: voiceunisonpartsource.cpp:37
uint32_t oscPos
Definition: voiceunisonpartsource.h:45
LivePitchShifter * livePitchShifter
Definition: voiceunisonpartsource.h:50
VoiceSample * voiceSample
Definition: voiceunisonpartsource.h:49