I am working on a project for an interactive music-project where one should be able to choose between one, two or three options at the end of each song. I already did a sidescroller with music and sounds from scratch using the minim library (and my brain to figure it out) - so I thought I could do it.
I'm on the early planing stage but I'm kinda stuck:
I made a Tabulator-seperated file in which each track is listed (with filepath etc). Also there is a list of the songs that should come after this song. So there the outcome should be an irregular net-like strukture with knots. I figured out how to descripe it to fit in a file. Also I think it will not be so hard to let those tracks play in the desired order.
My Problem: I fail at displaying this structure. All I want to do is to display a structure with knots and branches where lenght equals tracklength.
There are three cases:
One knot leads to one or many knots (easy - but how should the angles beto not destroy the possibility of the child branches to return to their desired knot?)
Two knots leading to the same knot (could be solved with trigonometry I guess)
Many knots leading to the same point (???)
It seems like an problem where one can not just solve things in a serial matter but the whole thing must be solved parallel? Is it even geometrical possible to display this thing? I'm stuck in my thinking and I have no idea what therms I should use in a websearch.
To make it more understandable heare a link to a brach structure I like to have as an outcome. The knots are on the same x-axis to describe the branching levels.
If someone knows a way to tackle this issue or if someone could give me a little hint I would be very pleased ; )
But I think its very likely that someone has thought about this thing before.