here is a tutorial from clubcubase on how to make midi from monophonic audio material… from 3:30
i can use this Logical editor function in many ways i future too… just change some values in the code !