nomelif / Audionodes

Audio generation in blender nodes
Other
88 stars 10 forks source link

Visualizing and Outputting wave value for animation #15

Open enzyme69 opened 5 years ago

enzyme69 commented 5 years ago

Hi, I managed to install Audio Nodes version 1.0, so far spending hours of joy making noise, one thing I wonder is there a possibility to see or visualize the value of the wave, perhaps so that I can use it for animation?

Wondering if @zeffii can help with this?

Cheers!

zeffii commented 5 years ago

sadly no.

enzyme69 commented 5 years ago
screen shot 2018-07-24 at 11 51 12 am

So far I am using SV nodes that remote control the Audio Nodes "frequency" value. Maybe I am doing the right thing.

Would nice is Audio Nodes simply provide Input and Output node which can be sourced in realtime? @nomelif @ollpu

ollpu commented 5 years ago

We've been thinking about displaying an oscilloscope-ish visualizer behind the nodes like with compositing nodes. That has proven to be quite infeasible with just Blender's Python API, so it would have to happen in a separate window/process. An external audio-oscilloscope program can be used for now.

The Sverchock integration is one thing, but you should also be able to control our nodes by simply applying an animation on the properties, have you tried that? (haven't tried that myself lately, hopefully it works) A math node set to Add, for example, works fine as an input node this way.

As for output, I have thought of a "multimeter" node. It would pull in the value of its input into a property at a reasonable frequency, which could then be read by the user or fetched into Sverchock or any other script. Could that be useful?

nortikin commented 5 years ago

@enzyme69 one way here https://github.com/nomelif/Audionodes/issues/14 backward to oscilograph will be good to have... yes, i asked for several streams in output and also osci-multimeter will be great. if there will be veriable, we will handle this. but cache this wave is other aim maybe. There will be great to have all three - streams, multimeter and cache. cache in temp file or to memory. working with memory in python for me is dark metter, maybe there is simple approach librery...

ollpu commented 5 years ago

@nortikin Could you elaborate on what you mean by cache? Recording audio into a file or memory, or something else?

ZodiacFRA commented 5 years ago

Hello :) I just found you work and it looks awesome! I'm trying to create a realtime MIDI / Audio artistic visualizer in Blender as well, using a script (PyAudio + PyGame for MIDI), capable of handling 4 audio channels. The problem is: scripts are blocking for Blender. I've tried using a modalOperator template but my script is refreshed only when I move the mouse so I was considering the nodes, and I have a few questions about it if that does not bother you: -Why c++ rather than python? I know c++ as well but I find Python much quicker. -Are the nodes updated constantly? -How did you learn programming nodes and what would be the best way for me to get into?

Have a nice day :)