How to use NoteMapper_CreateScale()?

I am playing with some scriplets working with scales. I was going to create them programmatically but found the GPScript function NoteMapper_CreateScale(nm: NoteMapper, rootNote: Integer, scale: Integer array). Is there any documentation or examples of how to access and use the generated scale?

Does anyone have any ideas on this?