oversample

oversample — Sets a higher local sampling rate based on an oversampling factor.

Description

Sets the local sampling rate value in a user-defined opcode block.

Syntax

oversample ifactor[,imode] 

Initialization

ifactor -- sets the oversampling factor. It needs to be a positive integer > 1. A factor of 1 is a non-op, zero or negative factors are illegal. The local sampling rate is set as ifactor * sr. The value of the sr variable is then changed locally. Local kr is also changed accordingly, local ksmps remains unchanged.

imode -- oversampling mode: if Secret Rabbit Code is used, then 0 - best quality sync (default); 1 - medium quality sync; 2 - fast sync; 3 - zero-order hold; and 4 - linear.

[Note] Note

Calling this opcode in the same UDO as setksmps is not allowed. The opcode can only be used in UDOs. Audio or control rate array arguments are not allowed. Global variables or bus channels should not be used.

See Also

User Defined Opcodes (UDO)

Credits

Author: Victor Lazzarini

New in version 7.0