Return the sample bar chart data
: Duration of the wave in seconds
: Number of samples per second
: Frequency of the wave in Hz