Dear Alain Jamot,
here is a function that may help you. This function is useful for customising sound playback with multiple sound libraries or for algorithmic orchestration.
The function expects an OMN expression and returns a list of multiple OMN sequences (multiple parts). It basically sorts notes from the OMN sequence into different parts, depending on the articulations of individual notes. All notes with certain articulations go in one resulting parts, and notes wi