How to design an efficient, responsive Timing-grid
Posted: Fri Apr 04, 2014 6:25 pm
I'm interested in writing an audio editing app, and therefore interested in how the timing grid in modern daws is implemented efficiently so that the UI is responsive and calculations related to the timing grid are quick. My interest includes:
- Drawing and labeling the grid lines for measures, beats, and ticks
- Drawing audio waveforms at the correct size and position so the grid lines give an accurate visual of where the waveform is and how long it is etc.
- Wherever you click in this box, the program easily and quickly calculates your location in measures, beats, ticks, samples, seconds, etc.
- Doing all of the above with any number of tempo and meter changes in a scrollable, zoomable box containing your tracks, just like you find in the "track window" of virtually all modern DAWs.