| 198 | } |
| 199 | |
| 200 | void Chorder::DropdownUpdated(DropdownList* dropdown, int oldVal, double time) |
| 201 | { |
| 202 | if (dropdown == mChordDropdown || dropdown == mInversionDropdown) |
| 203 | { |
| 204 | std::vector<int> chord = TheScale->GetChordDatabase().GetChord(mChordDropdown->GetLabel(mChordIndex), mInversion); |
| 205 | mChordGrid->Clear(); |
| 206 | for (int val : chord) |
| 207 | { |
| 208 | int row = 2 - ((val + TheScale->GetPitchesPerOctave()) / TheScale->GetPitchesPerOctave()); |
| 209 | int col = (val + TheScale->GetPitchesPerOctave()) % TheScale->GetPitchesPerOctave(); |
| 210 | mChordGrid->SetVal(col, row, 1); |
| 211 | } |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | void Chorder::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation) |
| 216 | { |
nothing calls this directly
no test coverage detected