FLOSS Manuals

 English |  Español |  Français |  Italiano |  Português |  Русский |  Shqip

CSOUND Español

AMPLITUDE AND RING MODULATION

MODULACIÓN DE AMPLITUD Y ANILLO

Introduction

Introducción

Amplitude-modulation (AM) means, that one oscillator varies the volume/amplitude of an other. If this modulation is done very slowly (1 Hz to 10 Hz) it is recognised as tremolo. Volume-modulation above 10 Hz leads to the effect, that the sound changes its timbre. So called side-bands appear.

Modulación de amplitud (AM) significa que un oscilador varía el volumen / amplitud de otro. Si esta modulación se hace muy lentamente (1 Hz a 10 Hz) se reconoce como tremolo. La modulación de volumen por encima de 10 Hz conduce al efecto de que el sonido cambia su timbre. Aparecen las llamadas bandas laterales.

EXAMPLE 04C01_Simple_AM.csd

<CsoundSynthesizer>
<CsOptions>
-o dac
</CsOptions>
<CsInstruments>

sr = 48000
ksmps = 32
nchnls = 1
0dbfs = 1

instr 1
aRaise expseg 2, 20, 100
aModSine poscil 0.5, aRaise, 1
aDCOffset = 0.5    ; we want amplitude-modulation
aCarSine poscil 0.3, 440, 1
out aCarSine*(aModSine + aDCOffset)
endin

</CsInstruments>
<CsScore>
f 1 0 1024 10 1
i 1 0 25
e
</CsScore>
</CsoundSynthesizer>
; written by Alex Hofmann (Mar. 2011)

Theory, Mathematics and Sidebands

Teoría, matemáticas y bandas laterales

The side-bands appear on both sides of the main frequency. This means (freq1-freq2) and (freq1+freq2) appear.

Las bandas laterales aparecen en ambos lados de la frecuencia principal. Esto significa que (freq1-freq2) y (freq1 freq2) aparecen.

The sounding result of the following example can be calculated as this: freq1 = 440Hz, freq2 = 40 Hz -> The result is a sound with [400, 440, 480] Hz.

El resultado de sondeo del siguiente ejemplo se puede calcular como: freq1 = 440Hz, freq2 = 40 Hz - El resultado es un sonido con [400, 440, 480] Hz.

The amount of the sidebands can be controlled by a DC-offset of the modulator.

La cantidad de las bandas laterales puede ser controlada por un offset DC del modulador.

EXAMPLE 04C02_Sidebands.csd

<CsoundSynthesizer>
<CsOptions>
-o dac
</CsOptions>
<CsInstruments>

sr = 48000
ksmps = 32
nchnls = 1
0dbfs = 1

instr 1
aOffset linseg 0, 1, 0, 5, 0.6, 3, 0
aSine1 poscil 0.3, 40 , 1
aSine2 poscil 0.3, 440, 1
out (aSine1+aOffset)*aSine2
endin


</CsInstruments>
<CsScore>
f 1 0 1024 10 1
i 1 0 10
e
</CsScore>
</CsoundSynthesizer>
; written by Alex Hofmann (Mar. 2011)

Ring-modulation is a special-case of AM, without DC-offset (DC-Offset = 0). That means the modulator varies between -1 and +1 like the carrier. The sounding difference to AM is, that RM doesn't contain the carrier frequency.

Ring-modulation es un caso especial de AM, sin offset DC (DC-Offset = 0). Eso significa que el modulador varía entre -1 y 1 como el portador. La diferencia de sonidos para AM es que RM no contiene la frecuencia portadora.

(If the modulator is unipolar (oscillates between 0 and +1) the effect is called AM.)

(Si el modulador es unipolar (oscila entre 0 y 1) el efecto se denomina AM.)

More Complex Synthesis using Ring Modulation and Amplitude Modulation

Síntesis más compleja mediante modulación de anillo y modulación de amplitud

If the modulator itself contains more harmonics, the resulting ring modulated sound becomes more complex.

Si el modulador en sí contiene más armónicos, el sonido resultante en forma de anillo se vuelve más complejo.

Carrier freq: 600 Hz

Modulator freqs: 200Hz with 3 harmonics = [200, 400, 600] Hz

Resulting freqs: [0, 200, 400, <-600->, 800, 1000, 1200]

Frecuencia portadora: 600 Hz Frecuencias del modulador: 200Hz con 3 armónicos = [200, 400, 600] Hz Frecuencias resultantes: [0, 200, 400, -600-, 800, 1000, 1200]

EXAMPLE 04C03_RingMod.csd

<CsoundSynthesizer>
<CsOptions>
-o dac
</CsOptions>
<CsInstruments>

sr = 48000
ksmps = 32
nchnls = 1
0dbfs = 1

instr 1   ; Ring-Modulation (no DC-Offset)
aSine1 poscil 0.3, 200, 2 ; -> [200, 400, 600] Hz
aSine2 poscil 0.3, 600, 1
out aSine1*aSine2
endin

</CsInstruments>
<CsScore>
f 1 0 1024 10 1 ; sine
f 2 0 1024 10 1 1 1; 3 harmonics
i 1 0 5
e
</CsScore>
</CsoundSynthesizer>
; written by Alex Hofmann (Mar. 2011)

Using an inharmonic modulator frequency also makes the result sound inharmonic. Varying the DC-offset makes the sound-spectrum evolve over time. Modulator freqs: [230, 460, 690] Resulting freqs: [ (-)90, 140, 370, <-600->, 830, 1060, 1290] (negative frequencies become mirrored, but phase inverted)

El uso de una frecuencia moduladora inharmónica también hace que el resultado sea inarmónico. Variar el offset DC hace que el espectro de sonido evolucione con el tiempo. Frecuencias del modulador: [230, 460, 690] Frecuencias resultantes: [(-) 90, 140, 370, -600-, 830, 1060, 1290] (Las frecuencias negativas se vuelven reflejadas, pero la fase se invierte)

EXAMPLE 04C04_Evolving_AM.csd

<CsoundSynthesizer>
<CsOptions>
-o dac
</CsOptions>
<CsInstruments>

sr = 48000
ksmps = 32
nchnls = 1
0dbfs = 1

instr 1   ; Amplitude-Modulation
aOffset linseg 0, 1, 0, 5, 1, 3, 0
aSine1 poscil 0.3, 230, 2 ; -> [230, 460, 690] Hz
aSine2 poscil 0.3, 600, 1
out (aSine1+aOffset)*aSine2
endin

</CsInstruments>
<CsScore>
f 1 0 1024 10 1 ; sine
f 2 0 1024 10 1 1 1; 3 harmonics
i 1 0 10
e
</CsScore>
</CsoundSynthesizer>

There has been error in communication with Booktype server. Not sure right now where is the problem.

You should refresh this page.