Recherche Google
OMChroma User ManualPredefined Classes > Subtractive Synthesis > Subtractive Synthesis with SUB-1
page précédentepage suivante

Subtractive Synthesis with SUB-1

Tutorial SUB-1

Specific Slots

Name

Description

Default value

amp

Maximum Amplitude. Linear from >0.0 to 1000 or in dB from 0 to -∞ (see Tutorial Getting Started 02 - Amplitude and Internal Editor for more details)

-6.0

freq

Maximum frequency of the noise [Hz]

2000.0

bw

Bandwidth of the formant-resonant filter [%]

0.01

aenv

Amplitude Envelope [GEN]

Instance: GEN07

Class description

The SUB-1 Class realizes a Subtractive Synthesis of a white noise generator and a resonant filter with the following controls:

  • The main amplitude,
  • The center frequency of the resonant filter,
  • The bandwidth of the resonant filter,
  • The amplitude envelope by means of a GEN routine.
Patch description

The example A deals with the center frequency of the resonant filter.

The example B spreads the bandwidth of the resonant filter from 1% to 100%

The example C collects 5 different amplitude envelopes.

Inside the Class

Csound Orchestra of the SUB-1 Class.

instr 1

idur = p3

idurosc = 1.0/idur

iamp = (p4 > 0.0 ? (p4*0.001*0dbfs) : (ampdbfs (p4)))

icfq = p5

ibw = p6*icfq

iaenv = p7

iskip = 2

anoise rand iamp ; white noise

a1 reson anoise, icfq, ibw, iskip ; filter, iskip = 2

a2 poscil 1.0, idurosc, iaenv

asound = a1*a2

out asound

endin

page précédentepage suivante
A propos...Réalisé avec Scenari