Help : Draw with cycle~ and sonogram

chapelier fou's icon

Hi !
For some reason, i want to draw lines using cycle~ and white noise (or a better sine signal) into a spectroscope in sonogram mode.
It kind of work, but is there any way to make the spectro 'less sensitive', so it would draw real lines. The result is kind of blurry, as you can see in this patch. I'm thinking of cheating and using a lcd instead, but i'd really like that the sound would actually draw the lines.

Thank you !

Max Patch
Copy patch and select New From Clipboard in Max.

louis

chapelier fou's icon

Anybody ?

chapelier fou's icon

Okay, i guess it's just not doable. Thank you anyway.

Pedro Santos's icon

I think the spectroscope~ object has a fixed resolution...
Maybe the "jit.poke~-spectrogram" patch in the examples folder of jitter is useful as an alternative...

chapelier fou's icon

Wow, awesome, this looks very promising !!
Just have no idea how to change the frequency min/max and the display 'speed'.
Thank you very very much.

chapelier fou's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hi again...
So i've extracted the useful part of this patch :

Could anybody help me to figure out how can i change the Freq Min/Max ?
Thank you very much...

ak's icon

here you have a crude way of calculating bin range (I increased fft size for better freq. resolution). For wider range / higher freqs you have to increase dim[1] of bar matrix.

Max Patch
Copy patch and select New From Clipboard in Max.

messy but hth

chapelier fou's icon

Well...thank you very much.....But...
I am on max 5, my max window says 'no scale~object...'

ak's icon
Max Patch
Copy patch and select New From Clipboard in Max.

ok, the use of scale~ was superfluous:

chapelier fou's icon

Thank you very much...i don't really get how it works, but it does...
One thing : i thought that sending noise~ instead of cycle~ would draw vertical lines, but it doesn't...

ak's icon

increase value in float number box below [cartopol~] object (to 0.3 or so).

chapelier fou's icon

Well, i don't seem to achieve the results im looking for... Thanks anyway for your time and help !
I think i'll use an lcd instead...

ak's icon

well, you are looking for quite advanced analysis techniques... If you don't need to analyze actual sound and you know what you want to draw, yes, you would better draw it "by hand"

chapelier fou's icon

In fact the purpose is to draw lines (horizontals, diagonals and verticals) with pure signals and noise, so i think i can easily 'cheat' by using an lcd. Thank you very much.
louis