Importing Audio Clip in Grasshopper

Hey everyone,
I am trying to import an audio snippet and use its corresponding frequency to move points in grasshopper and use the points to manipulate how a surface moves.
I tried using firefly and it gets me close but i want the audio snippet to give me the same changing frequency that the frequency sampler in firefly gives.

Maybe this can give you some ideas:

1 Like

Hey Peter,
Thanks for your help. I really appreciate it.
I came across this solution while I was looking into the problem a few days back but for some reason, my grasshopper doesn’t detect the right channel at all. I’ll attach a file for you to see.
And while this solution does help me with half of my problem, i was looking into if i could get the left and right channel values as the changing numbers without them turning into a polyline. I just need the values so that I can constrain and remap it to feed into a data recorder and use that as a factor for my unit z component.

Post the wav file in question (or rather a small indicative portion of it). All my tests back then were OK. In your case for some reason (damaged input?) the R channel is MIA (info panel tells you that).

Update: did some (about 30) quick tests. Appears that in some wav files the R channel is MIA. Why? I have no idea. See 3 tests (the last has no R channel):



For details see 1st C# (i.e. how it reads the file).

BTW: It’s very easy to provide different - user controlled - outputs (Polylines as Graph used in order to visualise the whole thing).

Hey Peter,
Sorry for the late reply but eventually the file worked out amazingly. I got what I needed.
I just presented my project today and it went great. Thank you for all your help.