keijiro / Reaktion

Audio reactive animation toolkit for Unity
1.04k stars 155 forks source link

Not an issue - need help adapting for mic input in Tilt Brush #13

Open dpentecost opened 5 years ago

dpentecost commented 5 years ago

Hi - Hope you can help. Would like to use the Tilt Brush version of this (in Unity) for microphone input, but it is set for internal audio source. I have a show in our planetarium next week, already using Lasp for part of it, but I am not a C# coder to adapt TB visualizer input to take the microphone. Any tips? A line of code?

thnewlands commented 5 years ago

Could you play the microphone audio through the headphones / computer and mute them for the experience?

edit: Misunderstood this post - I thought you were talking about TiltBrush!! You could still use the same idea if you wanted to avoid coding by finding another script that would play microphone audio in the scene through an audiosource. The VisualizerAudioInput script in the TiltBrushToolkit just uses any audio that the audiolistener can hear.

keijiro commented 5 years ago

I'm not involved in TiltBrush, so unfortunately, I have no idea about it.

Although there is an experimental version of LASP that provides loopback from an AudioSource to a LASP input, I don't recommend using this because it's just a WIP thing.

I think using a virtual audio driver (Soundflower, VB-Cable, etc.) would be a simple and practical approach.

dpentecost commented 5 years ago

Thanks for the suggestions. I'll try them and see what I can get going.

And yes, thenewlands, I looked at that script. Tried to adapt it but my C# is not great. I will look at VB-Cable (have to do this on Windows for the GPU) and then go back to that script after the show. I'm stubborn.