Modify Revit Elements With Sound Waves


#1

Hey Guys,

I’m pretty new to Dynamo but this is a different use of it from anything I could find, so I thought I should share.

The basic workflow goes like this:

  1. convert a WAV file to a CSV and save it in excel
  2. Bring the data into Dynamo
  3. Clean up and modify the list a bit
  4. modify elements in Revit, in my example I use a fence

Here’s the whole workflow step by step.
https://www.wholeconstructionsolutions.com/single-post/2017/11/27/Dynamo-Workflow-with-Sound-Waves


#2

:+1: An interesting concept, sound based facade design anyone?


#3

What did you use to convert the .WAV to .CSV? I’m looking into SoX and wondering if Dynamo could read the .WAV directly, eliminating the need for a middle man in your example, and perhaps allowing for better/smarter/faster acoustical studies tied into Revit geometry.

Thoughts anyone?


#4

Thought Id give it a go, James Brown “I feel good” in Dynamo/Revit.


@JacobSmall if sound measurements were taken within a space (concert hall) to assess sound fade, intensity etc.I reckon that Dynamo could easily provide a scatter plot of zones of interest.

While I am not involved in any acoustic type studies, if i find some time to experiment I’l let you know. :grinning:


#5

I used a (free) program called Audacity. What is SoX?


#6

Hey Ewan, this looks really cool, how did you get that green graph?


#7

Any chance you could share the graph and the sound file?


#8

Sure, NP Sound Wave Fence.dyn (668.1 KB)

Seems like I can’t attach a .CSV file for some reason though. Send me an email at strom@wholeconstructionsolutions.com and I’ll email it to you.


#9

The green model line is from a Nurbs.Curve approximation of the sound max dB peaks.

The scaling of the horizontal length of the Curve (length of the track) was just by eye comparing it to the spectrum in Audacity (@Nolan_WCS :+1:)

I did trim the sample down a bit for testing, so the complete WAV track may carry on a bit from the end of the green line.

I think there would be a simple scaling track length to data sample length to curve length formula that could be done in lieu of a keen eye.

CSV, WAV, DYN - rename extension as stated.

JB_feel_good.wav.(removetxt).txt (23.8 KB)
(D1.3) Soundwave dB peaks.dyn (22.5 KB)
JB_feel_good_dB peaks.(removetxt).csv.txt (97.4 KB)


#10

SoX info can be found here:

http://sox.sourceforge.net/Main/HomePage

For now i’m going to play with the provided csv Ewan posted above. I have ideas and stuff. :rofl:


#11

Full WAV file dB output :wink: Just to show the correlation…