I would like to build a function that does something based on the current value of the waveform of an audio.
Inputs:
- An audio file: like a speaker object or a path on the hard drive or a track name in VSE or whatever.
- Frame number.
Outputs:
- A number that represents how high or low the audio is. But I don't need to get the volume which is constant by default (100%). I need to get a number that represents the current point on the waveform.
Is there a python code that does the following? I'll use it for something like visualization and auto move the mouth (auto speak).
fcurve.evaluate(frame). Didn't download but suggest it relates to "I need".. and no to little research. Personally find theaubiomodule very good for this and have put together a lot of new code to replace blenders bake ... Some related links https://blender.stackexchange.com/questions/127895/how-can-you-invert-an-f-curve https://blender.stackexchange.com/questions/39231/whats-the-range-of-values-on-a-sound-baked-f-curve/39241#39241 https://blender.stackexchange.com/questions/171087/how-to-add-a-minimum-value-to-f-curves – batFINGER Feb 24 '21 at 08:46aubio, scipy, numpy, matplotlib.. but still way back on back burner. Can dig up some code reaubio-> blender fcurve. – batFINGER Feb 24 '21 at 08:59