Pipo.onseg duration threshold discard first vs second marker

Dear developers,

Sorry for the harassment. :wink:

Using MuBu.process with onset detection through pipo.onseg you can determine the minimal duration of a segment with onseg.durthresh, which is great. If the duration is too short MuBu will discard the marker that is connected to that short segment.

In practice when I look at ‘dirty’ attacks that last longer (wind and brass instruments) I mostly want to keep the first onset and discard the second and subsequent triggers so I am sure that the complete onset with all its peculiarities is kept.

The current situation is good for pitch where you look at longer stable durations.

Is it possible to implement both these situations?

Thanks for all the good work, Hans.