ShepardToneComplex: Shepard Tone Complex

ShepardToneComplexR Documentation

Shepard Tone Complex

Description

This function generates a tone complex built up of Shepard tones.

Usage

ShepardToneComplex(inToneVector, inDuration = 1, inSampleFreq = 22050,
                   inPhaseFlag = 1, indBLevel = NULL)

Arguments

inToneVector

a 12 elements vector representing the amplitude for each tone "C", "C#", "D", ... in the tone complex (0 = no tone, 1 = full amplitude).

inDuration

the duration (in s). If empty or not specified, 1 is used by default.

inSampleFreq

the desired sample frequency for the output signal (in Hz) if empty or not specified, 22050 is used by default.

inPhaseFlag

for choosing whether random phase has to be used or not (1 to use random phase, 0 otherwise). If empty or not specified, 1 is used by default.

indBLevel

dB level of generated tone complex (in dB) if empty or not specified, no level adjustment is performed.

Value

outSignal, the signal for the tone complex in numeric class.

Author(s)

Marc Vidal (R version). Based on the original code from IPEM Toolbox.

Examples

# Chord C
C  <- ShepardToneComplex(c(1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0), indBLevel = -20)

m-vidal/eaR documentation built on Nov. 18, 2022, 3:55 p.m.