pytimbre.utilities.audio_generator.generate_tone

pytimbre.utilities.audio_generator.generate_tone(frequency: float = 100, sample_rate: float = 48000, duration: float = 1.0, amplitude_db: float = 94)

This function generates a sine wave tone function with the specific frequency and duration specified in the argument list.

Parameters:
  • frequency (float, default: 100 - the linear frequency of the waveform)

  • sample_rate (float, default: 48000 - the number of samples per second)

  • duration (float, default: 1.0 - the total number of seconds in the waveform)

  • amplitude_db (float, default:94, this is the RMS amplitude of the waveform)

Return type:

A waveform this the generated data.