Skip to content

Commit f3a08bd

Browse files
committed
Update dft size choice
1 parent 8b488bf commit f3a08bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/StftPitchShiftPlugin/Parameters.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Parameters::Parameters(juce::AudioProcessor& process) :
3939
juce::AudioParameterChoiceAttributes()));
4040

4141
parameters.add("reset", new juce::AudioParameterChoice(
42-
{ "dftsize", schema }, "DFT size", { "1024", "2048", "4096" }, 0,
42+
{ "dftsize", schema }, "DFT size", { "512", "1024", "2048" }, 1,
4343
juce::AudioParameterChoiceAttributes()));
4444

4545
parameters.add("reset", new juce::AudioParameterBool(
@@ -133,7 +133,7 @@ int Parameters::dftsize(const int blocksize) const
133133
{
134134
int dftsize = std::stoi(parameters.get<std::string>("dftsize"));
135135

136-
dftsize = std::max(dftsize, 1024);
136+
dftsize = std::max(dftsize, 512);
137137
dftsize = next_power_of_two(dftsize);
138138

139139
while ((dftsize * 2 < blocksize) && (dftsize < 65536))

0 commit comments

Comments
 (0)