I have been experimenting with some projects that uses tracktion engine. I get some errors when converting beats to X coordinates and time to beats etc. For example, I get “No matching member function for call to ‘timeToBeats’” on this function
It seems these return TimePosition and needs conversion from a double and I am not sure what is the right way to do that. I have been getting this type of error a lot, another example is the screenshot below where i used int instead of timeDuration. Can someone help me with these i have been trying to figure them out with no success.
This is the code from EditViewState class from the Tracktion engine demos. The values 0, 60 and 0 have to be in TimePosition rather than in double. Can you provide an example on this code please?