are you planning to do tp for taiko or osu!mania ?
I doubt I have enough knowledge about those gamemodes to make a good difficulty algorithm. I might try to get in touch with some pros though to ask them to give me directions. But that's far in the future, don't expect it soon.