aspen.sounds.am_tone¶
Amplitude-modulated (AM) tone
Functions
|
Generate sinusoidally amplitude modulated tone. |
Classes
|
Generate sinusoidally amplitude modulated tone. |
-
class
aspen.sounds.am_tone.
AmTone
(am_tone_duration=[1000], am_tone_freq=[440], am_tone_phase=[0], am_tone_modulation_freq=[440], am_tone_depth=[100], am_tone_modulator_phase=[0], am_tone_num_signals=1, samp_freq=16000)[source]¶ Bases:
aspen.interfaces.abs_common_interface.AbsCommonInterface
,aspen.interfaces.abs_sound_interface.AbsSoundInterface
Generate sinusoidally amplitude modulated tone.
- Parameters
am_tone_duration¶ (
Sequence
[float
]) – Duration of am tone in millisecond. Defaults to [1000].am_tone_freq¶ (
Sequence
[float
]) – Frequency of carrier in Hz. Defaults to [440].am_tone_phase¶ (
Sequence
[float
]) – Phase of carrier in degree. Defaults to [0].am_tone_modulation_freq¶ (
Sequence
[float
]) – Frequency of modulator in Hz. Defaults to [440].am_tone_depth¶ (
Sequence
[float
]) – Depth of modulator in percentage. Defaults to [100].am_tone_modulator_phase¶ (
Sequence
[float
]) – Phase of modulator in degree. Defaults to [0].am_tone_num_signals¶ (
int
) – Number of signals. If this value greater than 2, the other arguments should contain 2 types. Defaults to 1.
-
__call__
()¶ Generate a specified number of signals.
-
aspen.sounds.am_tone.
am_tone
(duration=[1000], freq=[440], phase=[0], modulation_freq=[440], depth=[100], modulator_phase=[0], num_signals=1, samp_freq=16000)[source]¶ Generate sinusoidally amplitude modulated tone.
- Parameters
duration¶ (
Sequence
[float
]) – The duration of am tone in millisecond. Defaults to [1000].freq¶ (
Sequence
[float
]) – The frequency of the carrier in Hz. Defaults to [440].modulation_freq¶ (
Sequence
[float
]) – The frequency of modulator in Hz. Defaults to [440].depth¶ (
Sequence
[float
]) – Depth of modulator in percentage. Defaults to [100].modulator_phase¶ (
Sequence
[float
]) – Phase of modulator in degree. Defaults to [0].num_signals¶ (
int
) – Number of signals. If this value greater than 2, the other arguments should contain 2 types. Defaults to 1.
- Return type
- Returns
Output signals.