MCPcopy Create free account
hub / github.com/andrewreeman/SpectralSuite / parameterValueChanged

Method parameterValueChanged

shared/FftWindowChoiceAdapter.cpp:53–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void FftWindowChoiceAdapter::parameterValueChanged(int, float)
54{
55 auto choiceIndex = m_parameter->getIndex();
56 if(choiceIndex == 0) {
57 m_currentWindow = FftWindowType::HANN;
58 }
59 else if(choiceIndex == 1) {
60 m_currentWindow = FftWindowType::BLACKMAN;
61 }
62 else if(choiceIndex == 2) {
63 m_currentWindow = FftWindowType::HAMMING;
64 }
65 else if(choiceIndex == 3) {
66 m_currentWindow = FftWindowType::BLACKMAN_HARRIS;
67 }
68 else {
69 m_currentWindow = FftWindowType::HANN;
70 }
71
72 m_shouldChangeFftWindow = true;
73}
74

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected