Depend on supported command for capital pitch change #15433
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Link to issue number:
Closes #15262
Blocked by #15271
Summary of the issue:
When implementing a synthesizer driver, there are two ways to change pitch:
Capital pitch change uses pitch commands to change pitch for capital letters. When doing this, it calls isSupported("pitch") on the driver, which returns True when the pitch setting is supported. However in order to support capital pitch changes, the driver should implement support for the PitchCommand instead.
Description of user facing changes
None
Description of development approach
Changed all situations where isSupported("pitch") is called to generate a pitch command to check whether the PitchCommand is in supportedCommands.
Testing strategy:
Tested that capital pitch changes are still working, at least with one core.
Known issues with pull request:
This can be considered API breaking, because capital pitch changes still worked when a driver didn't offer the pitch command. However, the synthDriver class docs explicitly state that supported commands should be implemented.
Change log entries:
For Developers
Code Review Checklist: