pyaudiosynth documentation¶
-
class pyaudiosynth.Note(name: str, ms: float | None =
None, wave: Wave | None =None)[source]¶ Bases:
objectA class for holding note information
- Parameters:¶
-
ms : float | None =
None¶
- name : str¶
-
class pyaudiosynth.Synthesizer(default_nlen: int =
500, default_wave: Wave =Wave.Sine, show_vis: bool =False)[source]¶ Bases:
objectMain class for synthesizing notes
- Parameters:¶
- play_notes_ww(note: Note | list[Note], wave: Wave) None[source]¶
Plays note(s), ignoring the notes waveform instead using the provided waveform
- play_saw(note: Note | list[Note]) None[source]¶
Plays note(s), ignoring the notes waveform instead using a Sawtooth wave
- play_sine(note: Note | list[Note]) None[source]¶
Plays note(s), ignoring the notes waveform instead using a Sine wave
- class pyaudiosynth.Wave(value)[source]¶
Bases:
EnumAn enumeration.
-
Saw =
3¶ A sawtooth wave
-
Sine =
1¶ A sine wave
-
Square =
2¶ A square wave
-
Triangle =
4¶ A triangle wave
-
Saw =