Answers.Body: <p>I think you are writing over your wav file with the example data built into the soundecology package.  Remove your <code>data(tropicalsound)</code> line of code and you should be OK.</p>
  <p>You're also calculating ACI over a very narrow frequency range, if only going up to 600 Hz?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-06T21:22:45.257Z
Answers.LastActivityDate: 2023-07-06T21:22:45.257Z
Answers.UserDisplayName: Carlos Abrahams
Body: <p>I'm calculating <a href="https://www.rdocumentation.org/packages/soundecology/versions/1.3.3/topics/acoustic_complexity" rel="nofollow noreferrer">Acoustic Complexity Index</a> (ACI) for each 30 minute audio file. However each file total is always the same. &quot;30.179&quot; for max freq set at 500 Hz, &quot;34.86996&quot; for max freq set at 600 Hz. I've tried different files from different research too but the ACI is always the same.</p>
  <p>Here is my code in R.</p>
  <p>#assign wav file as tropicalsound</p>
  <blockquote>
  <p>tropicalsound &lt;- readWave(&quot;135012390.210727015150 - 7min55s.wav&quot;)</p>
  </blockquote>
  <blockquote>
  <p>data(tropicalsound)</p>
  </blockquote>
  <p>#Run the function on this object and save the results in a new variable called &quot;soundfile.aci&quot;</p>
  <blockquote>
  <p>soundfile.aci &lt;- acoustic_complexity(tropicalsound, max_freq = 600)</p>
  </blockquote>
  <p>Calculating index. Please wait...</p>
  <p>Acoustic Complexity Index (total): 34.86996</p>
  <p>Why could this be?</p>
  <p>Thanks in advance
  Anna</p>
  
Tags: <r>
Title: Acoustic Complexity Index total is the same for every file
ThreadText: # Acoustic Complexity Index total is the same for every file
  
  (Asked by: username_0 on 2023-07-03)
  
  I'm calculating [Acoustic Complexity Index](https://www.rdocumentation.org/packages/soundecology/versions/1.3.3/topics/acoustic_complexity) (ACI) for each 30 minute audio file. However each file total is always the same. "30.179" for max freq set at 500 Hz, "34.86996" for max freq set at 600 Hz. I've tried different files from different research too but the ACI is always the same.
  
  Here is my code in R.
  
  #assign wav file as tropicalsound
  
  > tropicalsound <- readWave("135012390.210727015150 - 7min55s.wav")
  
  > data(tropicalsound)
  
  #Run the function on this object and save the results in a new variable called "soundfile.aci"
  
  > soundfile.aci <- acoustic\_complexity(tropicalsound, max\_freq = 600)
  
  Calculating index. Please wait...
  
  Acoustic Complexity Index (total): 34.86996
  
  Why could this be?
  
  Thanks in advance
  Anna
  
  **Tags:** r
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-07-06. Score: 1
  
  I think you are writing over your wav file with the example data built into the soundecology package. Remove your `data(tropicalsound)` line of code and you should be OK.
  
  You're also calculating ACI over a very narrow frequency range, if only going up to 600 Hz?
  
  
  ---
  
  