music.note_with_two_vibratos_glissando

music.note_with_two_vibratos_glissando(start_freq=220, end_freq=440, duration=2, vibrato_freq=2, secondary_vibrato_freq=6, max_pitch_dev=2, secondary_max_pitch_dev=0.5, alpha=1, alphav1=1, alphav2=1, waveform_table=array([-1., -0.99975586, -0.99951172, ..., -0.99926758, -0.99951172, -0.99975586], shape=(16384,)), tabv1=array([0., 0.0003835, 0.00076699, ..., -0.00115049, -0.00076699, -0.0003835], shape=(16384,)), tabv2=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 glissando and a vibrato that also has a secondary oscillatory pattern.

Parameters:
start_freqscalar

The starting frequency.

end_freqscalar

The final frequency.

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.

max_pitch_devscalar

The maximum deviation of pitch in the vibrato in semitones.

max_pitch_devscalar

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

alphascalar

An index to begin the transitions faster or slower. If alpha != 1, the transition is not of linear pitch.

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.

tabv1array_like

The table with the waveform for the vibrato oscillatory pattern.

tabv2array_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.

VV

A note with a vibrato with two oscillatory patterns.

PV_

A note with arbitrary pitch transitions and vibratos.

V

a musical note with an oscillation of pitch.

N

a basic musical note without vibrato.

T

a tremolo, an oscillation of loudness.

F

fade in or out.

L

a transition of loudness.

Examples

>>> W(note_with_pitch_vibratos())
>>> s = H([AD(note_with_pitch_vibratos(secondary_vibrato_freq=i,
                                       max_pitch_dev=j))                     for i, j in zip([330, 440, 100], [8, 2, 15])])
>>> W(s)