Skip to content

python_audio_server v0.3.0

Choose a tag to compare

@codynhanpham codynhanpham released this 08 Jan 17:52
· 39 commits to main since this release

What's New?

Add the ability to include a fade-in and fade-out (edges) to the generated tone or sweep

  • Parameter: ?edge=<value>, with the value is the ramp duration in ms. The default is edge=0, no fade-in or fade-out.
  • The ramp is linear, and will always go from 0 dB to the specified amplitude value.
  • edge can either be positive or negative.
  • A positive edge value will add the edge duration to the tone (addition), which will result in a tone with the total duration of duration + (2 * edge) (in and out).
  • A negative edge value will maintain the specified duration (inclusive). The maximum negative edge value is limited to duration / 2, in which case, the amplitude will rise to the specified amplitude, and then immediately fall back down.

Sweep's edges

  • The edge value, if specified, in /sweep or /save_sweep must be negative (inclusive), as the duration of the sweep is also limited by the frequency start and end range.