Hi there,
I am wondering whether it would be possible to create a test following a [fiddle] (or what will be proposed here) to analyse incoming audio and test in realtime whether this is 'noise' (far-from-harmonic audio) or 'instrument' (rather harmonic audio).
I'd see it as a rough evaluation of the 'quality' of the signal in terms of harmonicity leading to a numeric value that I could test to finally reduce it to a binary result : 'sufficiently harmonic' / 'insufficiently harmonic'.
When I midify audio with Pd, I read what [spigot] outputs (every 10ms for example) and convert it to a noteout midi message. As the audio is my violin playing realtime, it happens that between (rather) clean notes transitory audio (bow direction change, or any noise catched by the piezo transducer) is handled by [spigot] and a (hazardous) fundamental frequency is outputted. This leads to kinds of 'jitter' in the midi playing, with clean notes sometimes separated by very short but irritating 'random' (often high) notes .
So my (stupid ?) strategy would be to avoid those 'silly' notes to be sent, using the test idea described above to drive another [spigot].
Of course the 'harmonicity' test is only an idea. Other strategies welcome !
Any idea ?
thanx,
Nau