mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-08 22:23:59 +01:00
Extended pitch, tempo, and speed effects to operate on NoteTracks. Fixed off-by-one error on channel buttons.
This commit is contained in:
@@ -36,6 +36,10 @@ class EffectSoundTouch:public Effect {
|
||||
|
||||
public:
|
||||
virtual bool Process();
|
||||
#ifdef USE_MIDI
|
||||
double mSemitones; // pitch change for NoteTracks
|
||||
EffectSoundTouch() { mSemitones = 0; }
|
||||
#endif
|
||||
|
||||
protected:
|
||||
SoundTouch *mSoundTouch;
|
||||
@@ -44,6 +48,7 @@ class EffectSoundTouch:public Effect {
|
||||
|
||||
private:
|
||||
bool ProcessLabelTrack(Track *track);
|
||||
bool ProcessNoteTrack(Track *track);
|
||||
bool ProcessOne(WaveTrack * t, sampleCount start, sampleCount end);
|
||||
bool ProcessStereo(WaveTrack* leftTrack, WaveTrack* rightTrack,
|
||||
sampleCount start, sampleCount end);
|
||||
|
||||
Reference in New Issue
Block a user