Grasshopper

algorithmic modeling for Rhino

Hi all,
Is it possible import directx libraries (or something else) and use them for manipulate through python or c# the execution of audio files? My goal is to control volume levels by frequency (equalize) and in relation to the camera position in 3d space.
Suggestions?

Views: 453

Replies to This Discussion

Hi GM

I remember experimenting with an audio library a long time ago. It was working. I cannot remember which one it was, but a quick search revealed NAudio, which might have likely been the one I had quickly played with.

It should be possible to use it in C#, Vb.Net and Python but since most samples are in C#, I would use that language.

Does it help?

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Hi Giulio,

Thanks for your reply. I've read the NAudio documentation but i can't find nothing about equalization by frequencies. Moreover actually I'm not really familiar with C# and I would use Python.

Do you know other libraries that I can use with it?

thanks again

Hi again GM

you might want to learn about FFT for frequencies. NAudio can do it (I am not advocating it, it happens to be the one library I could find documentation for and I think would work).

http://stackoverflow.com/questions/7735036/naudio-frequency-band-in...

http://stackoverflow.com/questions/17222492/how-to-change-frequency...;

I am no expert in this field; I would have to do research just like you. Maybe someone else on this forum has already done more work in this area, let's see. Or it might be you, the first one :)

This does not look like something completely at reach for someone with not much programming experience, but maybe with some guidance it could be doable.

--

>>Do you know other libraries that I can use with it?
Sorry I would have to search for other libraries just like you.

EDIT: This link has a simple sine wave written from scratch. It might be a good start to mix with the code above and a playground to understand theory.

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

thank you very much Giulio, I really appreciate your help and your time.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service