Page 1 of 1

Posted: 22 Mar 2019, 08:42
by bvorberger
I am in need of a specific software solution.
I was wondering if you have a solution that would analyze live audio input (Line in or Mic),
and then user selects (isolates) specific width and/or peak of an audio spectrum.
When selected audio situation happens,software generates (also live) specified MIDI note.
Is there a patch in hollyhock that can manage this specific task.
It should be user friendly tool which isolates part of a spectrum and also user friendly tool to select a MIDI note.
I'm currently using a bunch of subprograms for Ableton live to do this but I'm looking for a new solution (I use it to MIDI trigger lighting console)

Posted: 22 Mar 2019, 10:33
by x.iso
I'm pretty sure you can, unless you need to employ some complex algorithm for audio analysis. But there are tools for audio analysis out of the box and even Audio to MIDI patches as well. You can generate whatever MIDI message you want from whatever you consider to be a trigger.

Posted: 22 Mar 2019, 10:47
by bvorberger
(Message to all good people who try to help: I'm a lightman, could you be more specific how it can be done. My knowlege of sound systems and audio tools is limited.)

Posted: 22 Mar 2019, 11:45
by joffo78
Hello bvorberger. I m a light/sound/video man. Peharps i can help you but my english level is a little bit poor. May can we discuss in french and somewhere in private. ..

Posted: 22 Mar 2019, 11:55
by x.iso
well, this kind of question originally belongs to general discussion section.
here's example with one of Audio to MIDI patches out of the box:
Image
it works, but it may not be as accurate as you need out of the box, so you'll need to dive in the patcher and fine tune settings of the modules for your task, or modify the patch if needed. Since you didn't describe exactly what kind of input you will use and what exact output is expected, I can't say if this will work for you out of the box without the need to understand how to edit the patch yourself.

Posted: 22 Mar 2019, 22:25
by bvorberger
joffo78 wrote:Hello bvorberger. I m a light/sound/video man. Peharps i can help you but my english level is a little bit poor. May can we discuss in french and somewhere in private. ..

Posted: 23 Mar 2019, 00:21
by joffo78
It doesn't matter. Let's continue here

Posted: 23 Mar 2019, 08:59
by oli_lab
try FFT then isolate frequencies by multiplying array resulting from FFT with a masquing array

Posted: 23 Mar 2019, 09:16
by bvorberger
x.iso wrote:well, this kind of question originally belongs to general discussion section.
here's example with one of Audio to MIDI patches out of the box:
http://www.sensomusic.org/forums/upload ... -03-22.png
it works, but it may not be as accurate as you need out of the box, so you'll need to dive in the patcher and fine tune settings of the modules for your task, or modify the patch if needed. Since you didn't describe exactly what kind of input you will use and what exact output is expected, I can't say if this will work for you out of the box without the need to understand how to edit the patch yourself.
It's not a specific music situation. The point is that when you hear at a show rehersal a tone,instrument,beat etc. that you want to have a light que (flash,strobe,color change...) which you want to have in live show. So at a rehersal you hear something - you see it in audio analysis and then you say: Ok when this happens play a midi tone which will trigger lighting console. That's what I'm trying to achieve.
Thnx

Posted: 23 Mar 2019, 09:35
by senso
detecting a pitch of a musical instrument is not so easy because of the the "transients" of the sound and, in live, the potential pollution of other instruments.
So more precision means more latency.
Moreover you have to think in terms of "probability of good detection" which is never 100%

Posted: 23 Mar 2019, 21:13
by x.iso
If instruments have their own audio inputs (mics), then the task is much easier.

Posted: 24 Mar 2019, 09:21
by bvorberger
I'll have to buy a beer for the sound man but it is possible.

Posted: 24 Mar 2019, 13:45
by joffo78
HERE is a basic example that quite work for me

Posted: 24 Mar 2019, 15:39
by 23fx23
also depends on source material, if mostly hi freqs i would use FFT based solutions if low freq more use a zero crossing counting based one as fft will quickly lack of precision

(edit) nice one by the way joffo! wonder if amplitudes shouldn't be remapped log to compensate the fact lower notes usually makes higher amplitude, but working nice already

Posted: 24 Mar 2019, 22:47
by joffo78
If you have an idea to improve it you're welcome !

Posted: 24 Apr 2019, 13:29
by SylvainT
Well done Joffo
Used it this morning with great results