title: Audio Synthesis with (AVFoundation?) Using Sine Wave
body: <p>Let's say I have an array of Y values for a sine wave. (Assume X is time)</p>
  
  <p>In Python you can just write it to a Wav file:</p>
  
  <p><code>wav.write("file.wav", &lt;sample rate&gt;, &lt;waveform&gt;)</code></p>
  
  <p>Is it possible to do this in Swift using AVFoundation? If so how? If not, what library should I be using? (I'm trying to avoid AudioKit for now.)</p>
  
  <p>Thanks,
  Charles</p>