title: NumPy adds a dot after each element of an array which I can’t strip
body: <p>I am trying to write code which generates a sound file based on a series of frequencies I give it, but I have reached a point where compiling the arrays of integer values together puts a decimal point after each one which corrupts the sound file I'm generating.</p>
  <p>I've tried converting it into a list, turning all elements into integer values, and then converting it back. This removes the dots, but it still corrupts the file.</p>
  <p>Here is my code:</p>
  <pre><code>import numpy as np
  from scipy.io.wavfile import write
  
  # Samples per second
  sps = 44100
  
  # Duration
  duration = 0.1
  
  def wavegen(build):
      final_array = np.array([])
      for i in build:
          freq = i
          eachnum = np.arange(duration * sps)
          waveform = np.sin(2 * np.pi * eachnum * freq / sps)
          waveform_quiet = waveform * 0.3
          waveform_integers = np.int16(waveform_quiet * 32767)
          final_array  = np.append(final_array, waveform_integers)
  
      print(final_array)
      write('sine.wav', sps, final_array)
  
  wavegen([100, 50, 100, 50])
  </code></pre>
  <p>And the array generated looks like this:</p>
  <pre><code>[   0.  140.  280. ... -210. -140.  -70.]
  </code></pre>