Hello everyone! Now that Google Summer of Code 2022 has wrapped up, I’d like to present the work that I have done over the summer. I would also like to take the time to thank Audacity for giving me this opportunity that has made me much more aware of, and competent in, open-source development. Please use this link if you would like to return to my first blog post and read about the project from the beginning.
You can view the final state of my work for GSoC on this pull request.
I have met most of the goals originally proposed, with the structure of the Rulers updated for increased flexibility and the vertical Linear dB Waveform ruler and Beats & Measures timer having been created. Here is a summary of the changes made for this project:
- Ruler Restructuring
RulerUpdaterclasses, as well as their large number of subclasses, were created by extracting and reformatting existing code into polymorphic objects.
SetFormatfunctions were created to support this polymorphism for the Ruler, replacing the
SetCustomfunctions which restricted the ruler to messier switch statements.
SetFormatDatafunctions were created on the Ruler to allow for data of any type to be passed to the ruler. This replaces the
SetUseZoomInfofunction as well as other functions which control
ZoomInfo, and open up the doors for much more flexible data passing.
- Restructured Ruler structs like
TickSizes, and added the ability to set
minorMinorticks (the smallest tick size) using
TickSizes. This gives increased flexibility to updaters that rely on this, like the default
- Linear dB Ruler
- A new ruler option was created for the Waveform ruler, which can be accessed through the right-click menu as well as preferences dialogue.
- This utilizes the new
CustomUpdaterValueupdater, which allows the specific necessary dB values for a linear dB ruler to be passed to the ruler creation function.
- Code was written to generate these values and update the ruler as necessary, as well as make it responsive to a variety of decibel ranges and track sizes.
- Beats & Measures Ruler
- A new ruler format,
BeatsFormat, was created, which relies on the new ability to pass in data to a ruler format.
- A new option for the time ruler was created which utilizes
BeatsFormatto display time based on user-defined beats per minute and time signature. This data can be set in the preferences dialogue.
- A new format in the bottom time panel was made which displays bars and beats, and lets users snap to beats when selecting on their track.
- A new ruler format,
I’d also like to go over some planned future changes, as I intend to continue working on this project:
- Perform general cleanup of code, including comments and variable name changes for both new and legacy code.
- Add the ability to pass customizable sizes for each different kind of tick.
- Improve the cleanliness and visual appeal of the user interface, especially the vertical linear dB ruler.
- Add a panel for setting the data on the beats & measures ruler without going into the preferences menu.
I’d like to especially thank my mentor Paul Licameli, as well as the support from everyone on the Audacity team, including but not limited to Dmitry Vedenko, Peter Sampson, and Peter Jonas. I hope that my work can lead to many new and useful development for Audacity’s user interface in the future.