Hi. I have a question concerning the extension of Slate to include a different type of time measurement in the timebar. I wish to present time as bars in the musical notation sense. By setting a beats per minute and beats per measure, the timebar will present beat and measure bars. I wish for track components to line up with these. Does anyone have an opinion about the possibility of making this work? I am an accomplished software developer with decades of Java experience. I am not certain that the package gives me access to the c# timebar / timeline code or if the editor is compiled and packaged in a library.
Thanks for your time.
Mike
I am sorry but there seem to have been some forum issues lately (my replied deleted).
As explained in the forums, access and display of the timebar is not possible to change via API, but with some source code changes, you might get what you are after.
Just so that we are on the same page, please open up CutsceneEditor.cs and within the method named “DrawGuides” at about line #900, please add the following piece of code. It is hardcoded of course, but I just want to understand if that is what you are after.
1
2
3
4
5
6
7
varbpm=10;
varrate=60f/bpm;
for(vari=0f;i<length;i+=rate){
DrawGuideLine(TimeToPos(i),Color.blue);
}
With that piece of code, there will be 10 vertical guides drawn every min (based on the hardcoded bpm variable).
Is that close to what you are after?
Lete me know.
Thank you.
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.