gensound.exceptions

exception gensound.exceptions.InvalidFrequencyError(freq: float) → None[source]

Bases: ValueError

The exception that raises when passed invalid frequency

Variables:frequency – Passed frequency.
exception gensound.exceptions.InvalidSamplerateError(freq: float) → None[source]

Bases: gensound.exceptions.InvalidFrequencyError

The exception that raises when passed invalid samplerate

Variables:frequency – Passed samplerate.
exception gensound.exceptions.DifferentSamplerateError(frequencies: typing.Tuple[float, ...]) → None[source]

Bases: gensound.exceptions.InvalidSamplerateError

The exception that raises when different samplerates of sounds to joint

Variables:frequency – List of passed frequencies.
exception gensound.exceptions.DifferentChannelsError(channels: typing.Tuple[int, ...]) → None[source]

Bases: ValueError

The exception that raises when different number of channels of sounds to joint

Variables:channels – List of n_channels of sounds.
exception gensound.exceptions.InvalidDurationError(duration: float) → None[source]

Bases: ValueError

The exception that raises when passed sound was invalid duration

Variables:duration – Passed duration.
exception gensound.exceptions.OutOfDurationError(duration: float, min_: float, max_: float) → None[source]

Bases: IndexError

The exception that raises when passed index that out of duration

Variables:
  • duration – Passed duration.
  • min – Minimal acceptable value.
  • max – Maximum acceptable value.
exception gensound.exceptions.InvalidVolumeError(volume: float) → None[source]

Bases: ValueError

The exception that raises when passed invalid volume

Variables:volume – Passed volume.