Convert signal to data

Gusjdt's icon

How can I convert a signal stream to data? There's an object that may work called sig2MIDI but it is only for OSX and I'm running windows. I need to convert an output from the adc~ to raw data (numbers) so I can then manipulate that data to trigger samples etc.

Any ideas?

Jeff Kaiser's icon
Gusjdt's icon

Right, so if I want a constant update of the converted signal, I should do this, right?

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

I want to convert the frequency of the signal to MIDI notes, but something is not right. I'm getting strange numbers when the signal is converted. For example, shouldnt 278 Hz (middle C) convert to 60 (middle C)?

Roman Thilenius's icon
Gusjdt's icon

Thanks! I had heard about fiddle~ before but I never knew exactly what it did. It's kind of strange to understand how to get it to work, but I'm getting there. Thanks again!

Roman Thilenius's icon

before you are using snapshot~ 5 you might want to use a rampsmooth~ or slide~ before.

Gusjdt's icon

All right, I got fiddle~ working with a cycle~. However, when I change the pitch (in midi notes) to 44, the output of fiddle for pitch gives me 0, instead of 44. If I set cycle~ at 45, I get the correct output of 45. but for some reason 44 brings it down to 0. Here's the test patch.

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

Any ideas as to why it does that? I tried amplifying the signal of cycle~ before it goes into fiddle~ but that just brings the amplitude up.

Roman Thilenius's icon

frequencies lower than 44 Hz are probably beyond what
fiddle~ is able to analyze.

its quite difficult to fin the loudest fundamental
below that point. (as well as above nyquist)

-110

Gusjdt's icon

Ah, I see. But it's not 44Hz, its midi note 44, which is 110Hz.

Oh well, I'll try to work with that then. Thanks very much for the help!

justin's icon

it's cos the window size is too small. it cant identify pitches which have a longer waveform period than the window for analysis.

try this:

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

Stefan Tiedje's icon

Gus schrieb:
> Ah, I see. But it's not 44Hz, its midi note 44, which is 110Hz.

That's why Roman always precedes his patches with 110, he never got
below it...

Stefan

--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com

Gusjdt's icon

Thanks Justin. I imagine I can make the window size larger to get even lower frequencies analyzed. at 2048, it wont go lower than 34/33.

Stefan Tiedje's icon

Gus schrieb:
> Thanks Justin. I imagine I can make the window size larger to get
> even lower frequencies analyzed. at 2048, it wont go lower than
> 34/33.

But it comes for a price: latency...

Stefan

--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com

elcromagnoncriollo's icon

How could I get the objects fiddle~, pitch~, yin~
I'm trying to get data out of some signals to
produce color.
Please anyone tell me where to go (URL)
and get them
Regards
elcromagnoncriollo

Chris Muir's icon

On Feb 16, 2008, at 9:43 PM, Marcos Salazar Delfino wrote:
> Please anyone tell me where to go (URL)
> and get them

You can find most objects here:
http://www.maxobjects.com

-C

elcromagnoncriollo's icon

Thanks for your fast answer Chris.
The thing is, that when I go to Maxobjects, it takes me to ircam forum and I can't find the object, only some info
but not the object

Sorry for bother, I'm kind of a newby to the forum

Thanks again
Marcos