Tempo curve

Hi, What’s the behaviour of tempo curve (of timeSettings class) and how drawing it between to points in a component that represent two tempos?

Sorry for trouble and thank you in advice!

Probably the easiest thing is to take a look at Waveform’s Tempo track? There you can change the curves and see how that affects the other track content?

1 Like

Yes, thank you @dave96!

I explained wrongly, sorry, in waveform it’s clear, but my problem is (perhaps trivial sorry!) What type of curve is?

In my timeline to get things simple I have 100 pixel between each time.
At this point if curve is 0.0, -1.0 or 1.0 things are simple, but in a situation where I have a tempo at 60 bpm at time 5, with curve 0.5 and the next tempo after setted bmp to 200 is at time 7 how can I draw the curve? There’s a juce path that match?

Sorry, surely it will be a simple thing, but until now I haven’t had brilliant ideas!

You probably want to look at https://github.com/Tracktion/tracktion_engine/blob/master/modules/tracktion_engine/utilities/tracktion_CurveEditor.h

That has code to do the drawing for you.

If you ensure your curve values are between -0.5 & 0.5 then it’s a bezier curve.

1 Like

Really really thank you! I’ll study it! :slight_smile: