How can i controll visualisation with incoming audio signal?

Ingo Schebesta's icon

Hallo,

how can i control videosignal with incoming audio signal. I would like to swith video input signal betwen 2 cameras, when the music changes. How can i read a frequency or bpm and by changing send signal to switch camera or visualisation? Have someone an idea? I would be glad to read a cople of ideas. Thanks

Pedro Santos's icon

What is "when the music changes"?
That is the main question and the one that needs clarification.
The video control aspect is easy.

Ingo Schebesta's icon

Thanks for your answer.

I mean a couple of factors. Tempo, Volume or f.e. lower frequency goes down (Range between 20Hz and 150Hz). So I have a few factors to variate.

Ingo Schebesta's icon

can you halp me by exemple with tempo? maybe bpm counter.

Andro's icon

I wouldnt analyze frequencies. I d use the amplitude/peak information to start with. Tempo. Use transport and get the tick count from it.

Pedro Santos's icon

Try using the beat~ object by Tristan Jehan to analyze incoming audio. It should be easy this way:
http://web.media.mit.edu/~tristan/maxmsp.html

Andro's icon

snapshot~ object transforms an audio signal into a float

Ingo Schebesta's icon

sorry for this question. how I use beat~? where should i copy this directory?
i copyed it to Max folder. If I type beat~ in the object box I can chose a beat object and halp, but the console says: no such object...

Max7 / Windows 7 64-bit

Andro's icon

You need to put it in the shared map.

Pedro Santos's icon

Is the beat~ object 64 bit? I'm not sure, but it probably only works in 32 bit mode...
Regarding the external install location, probably the "easier" way is to put the external in the same directory of your patch.

Ingo Schebesta's icon

i think 64-bit isn't a problem. But it doesn't work :( . Compiler says beat~: no such object
any other sugestions?

Andro's icon

Check for cycling 74/shared/packages.
Put it in there orrr go to file preferences and add the folder with the external.

Pedro Santos's icon

Are you sure 64 bit is not a problem?
And did you put the fftw3.dll file in the Max directory, as written in the instructions?
http://web.media.mit.edu/~tristan/MaxMSP/fftw3.dll.zip

Ingo Schebesta's icon

yes fftw.dll is in the max directory but it doesn't work

Pedro Santos's icon

I've just tried and on Max 6 64 bit on my Windows 7 machine the object does not work. It works in Max 6 32 bit mode. Why would Max 7 be any different? I'm wondering why you say that 64 bit shouldn't be a problem... have you read anything about it on Tristan Jehan's site? I haven't seen any version history, but I guess these plugins haven't been updated in a while (unfortunately)...

Ingo Schebesta's icon

Thank you very much for your help and time! I found another solution in this forum. https://cycling74.com/forums/tap-tempo-2/ + lowpass + threshold (threshold is not ready yet). I think it will works.

umma08's icon

I was hoping there would be some information about Trsitan's objects being updated for 64 bit. Unfortunately it seems they havent been yet. What a pain. The analyser~ object was really nice :(

umma08's icon

i think i may have found later, updated externals from another thread