title: sox convert to spectogram parameters meaning
body: <p>Here, I want to use <code>sox</code> to convert flac file into spectogram png file. When I want to convert <code>.flac</code> file, I can use the following command</p>
  
  <pre><code>sox output.flac -n spectrogram -r -o a.png
  </code></pre>
  
  <p>And if I want to convert into N x 129 pixels spectogram, I can use the following command</p>
  
  <pre><code>sox output.flac -n spectrogram -Y 200 -X 50 -m -r -o spectogram.png
  </code></pre>
  
  <p>However, I don't quite understand totally what <code>-Y 200</code> and <code>-X 50</code> parameters mean i.e. is there a way that I can convert these parameters into sampling frequency, time bin (in millisecond) and also frequency bin as in Matlab or Python. It would be great if someone can answer here in details since the documentation in <a href="https://github.com/chirlu/sox" rel="nofollow noreferrer">chirlu/sox</a> does not state clearly what it means (or I didn't find it explicitly).</p>