Forums > MaxMSP

Help : Draw with cycle~ and sonogram

January 12, 2013 | 1:12 pm

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 !


— Pasted Max Patch, click to expand. —
January 22, 2013 | 10:09 am

Anybody ?

January 24, 2013 | 9:28 am

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

January 24, 2013 | 11:13 am

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…

January 24, 2013 | 1:25 pm

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.

January 26, 2013 | 1:44 pm

Hi again…
So i’ve extracted the useful part of this patch :

— Pasted Max Patch, click to expand. —

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

January 27, 2013 | 2:06 am

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.

messy but hth

— Pasted Max Patch, click to expand. —
January 28, 2013 | 9:28 am

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

January 29, 2013 | 12:14 am

ok, the use of scale~ was superfluous:

— Pasted Max Patch, click to expand. —
January 29, 2013 | 10:30 am

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…

January 29, 2013 | 11:38 am

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

January 30, 2013 | 9:34 am

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…

January 30, 2013 | 2:52 pm

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"

January 31, 2013 | 5:05 pm

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.

Viewing 14 posts - 1 through 14 (of 14 total)

Forums > MaxMSP