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

Buzz Synthesis with BUZZ-1

Tutorial BUZZ-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

f0

Generating frequency [Hz]

220.0

aenv

Amplitude Envelope [GEN]

Instance: GEN07

bzl

Lowest harmonic present in the buzz [int]

1

bzh

Highest harmonic present in the buzz [% of sr/2/f0. From 0.0 to 1.0]

1.0

bzm

Multiplier in the series of amplitude coefficients [flt]

0.95

bzmenv

Envelope of the buzz multiplier [GEN]

Instance: GEN07

Class description

The BUZZ-1 Class realizes a Buzz Synthesis (a set of harmonically related cosine partials) with the following controls:

  • The main amplitude,
  • The generating frequency,
  • The amplitude envelope by means of a GEN routine,
  • The lowest and the highest harmonic of the spectrum,
  • The components' amplitude of the spectrum,
  • The components' amplitude envelope by means of a GEN routine.
Patch description

The example A focuses on the  values of the generating frequencies.

The example B deals with the amplitude envelopes made by 5 different BPF (Break Point Function).

The example C fixes on the lowest component of the spectrum. This integer is the lowest harmonic's number.

The example D fixes on the highest component of the spectrum. This floating represents the percentage of the possible components (1 = 100%). The highest frequency is the the generating frequency multiplied by rounding the half of the sample rate divided by the generating frequency. E.g. Generating frequency = 440 Sample Rate = 48000 -> 24000/440= 54.5454... -> 440*54=23.760 Hz.

The example E demonstrates the meaning of the multiplier in the series of amplitude coefficients.

The example F collects 5 different envelopes of the buzz multiplier.

Common Red Patches

For the red patches Synt, C#ed and rnd see Appendix-A.

Inside the Class

Csound Orchestra of the BUZZ-1 Class.

instr 1

idur = p3

idurosc = 1/p3

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

ifq = p5

iaenv = p6

inn = sr/2/ifq ; total possible number of harmonics present

inn = int (inn * p8) ; % of possible total

ilh = p7 ; lowest harmonic present

ifn = 5 ; stored cosine function

ibzmul = p9 ; multiplier

ibzmenv = p10 ; envelope for the multiplier

kenv poscil iamp, idurosc, iaenv ; amp envelope

kratio poscil ibzmul, idurosc, ibzmenv ; kratio envelope

asound gbuzz kenv,ifq,inn,ilh,kratio,ifn

out asound

endin

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