title: Applying afilter () function to multiple files before calculating ACI
body: <p>I need to calculate Acoustic Complexity Index (ACI) of hundreds of .wav files as part of a Soundscape Ecology study.</p>
  
  <p>The soundecology package in R has a very useful function multiple_sounds () function. However, I couldn't find any amplitude filter in the package. </p>
  
  <p>seewave package has afilter () which allows to set filtering of amplitude by setting at certain thresholds. </p>
  
  <p>I would like to use afilter () to many .wav files in a folder and then to apply multiple_sounds () to all the filtered files. Since I am new to R, I am at a loss to combine or loop these two functions to get desired results.</p>
  
  <p>Can you please help me in this?</p>
  
  <p>Examples:</p>
  
  <pre><code>afilter (.wav files,f=22050,threshold= 5,plot= F)
  
  multiple_sounds (directory = "C:/Users/pc1/Desktop/sound",
              resultfile = "C:/Users/pc1/Desktop/sound/results1.csv",
              soundindex = "acoustic_complexity",min_freq = 1500, max_freq = 
              12000, j = 5, fft_w = 512)
  </code></pre>
  
  <p>Thank you,</p>
  
  <p>Ana</p>