music.note_with_two_vibratos

music.note_with_two_vibratos(freq=220, duration=2, vibrato_freq=2, secondary_vibrato_freq=6, nu1=2, nu2=4, alphav1=1, alphav2=1, waveform_table=array([-1., -0.99975586, -0.99951172, ..., -0.99926758, -0.99951172, -0.99975586], shape=(16384,)), vibrato_waveform_table=array([0., 0.0003835, 0.00076699, ..., -0.00115049, -0.00076699, -0.0003835], shape=(16384,)), sec_vibrato_waveform_table=array([0., 0.0003835, 0.00076699, ..., -0.00115049, -0.00076699, -0.0003835], shape=(16384,)), number_of_samples=0, sample_rate=44100)[source]

A note with a vibrato that also has a secondary oscillatory pattern.

Parameters:
freqscalar

The frequency of the note.

durationscalar

The duration of the sound in seconds.

vibrato_freqscalar

The frequency of the vibrato.

secondary_vibrato_freqscalar

The frequency of the secondary pattern of the vibrato.

nu1scalar

The maximum deviation of pitch in the vibrato in semitones.

nu2scalar

The maximum deviation in semitones of pitch in the secondary pattern of the vibrato.

alphav1scalar

An index to distort the pitch deviation of the vibrato.

alphav2scalar

An index to distort the pitch deviation of the secondary pattern of the vibrato.

waveform_tablearray_like

The table with the waveform to synthesize the sound.

vibrato_waveform_tablearray_like

The table with the waveform for the vibrato oscillatory pattern.

secondary_vibrato_waveform_tablearray_like

The table with the waveform for the secondary pattern of the vibrato.

number_of_samplesscalar

The number of samples of the sound. If supplied, d is not used.

sample_ratescalar

The sample rate.

Returns:
sndarray

A numpy array where each value is a PCM sample of the sound.

See also

PV

A note with a glissando and a vibrato.

PVV

A note with a glissando and a vibrato with two oscillatory patterns.

N

A basic musical note without vibrato.

V

A musical note with an oscillation of pitch.

T

A tremolo, an oscillation of loudness.

F

Fade in and out.

L

A transition of loudness.

Examples

>>> W(note_with_vibratos())  # writes file with a two simultaneous vibratos
>>> s = H([AD(note_with_vibratos(vibrato_freq=i, secondary_vibrato_freq=j))
          for i, j in zip([2, 6, 4], [8, 10, 15])])
>>> W(s)  # writes a file with two vibratos