@Lindon I just found this thread which seems to be exactly what I am looking for.

https://forum.hise.audio/topic/7812/audioloop-player-granulator-file-handling/4?_=1722250501048

I shall try this out when I get home but from reading it through it looks like it should give me enough to get to where I need to get to and build from there.