# VassilakisModel class

Implementation of Vassilakis' model from "Perceptual and Physical Properties of Amplitude Fluctuation and their Musical Significance" (2001).

### Contents

where

for

## Base classes

- class CBRModel
- Base class for implementing dissonance models based on summed critical-band roughness.

## Constructors, destructors, conversion operators

- VassilakisModel ()
- Creates a VassilakisModel object.
- ~VassilakisModel ()
- Detructor.

## Public functions

- auto calculateRoughness (float firstFreq, float firstAmp, float secondFreq, float secondAmp) -> float override
- Calculates the roughness between two partials.
- auto cloneModel () -> std::unique_ptr<DissonanceModel> override
- For dynamic allocation via std::unique_ptr in DissonanceCalc.

## Protected variables

- const float maxDiss
- This is the point of maximum dissonance.
- const float plcInterp1
- These values are used to allow a single functional form to interpolate beween the various P&L curves of different frequencies by sliding, stretching/compressing the curve so that its max dissonance occurse at dstar.
- const float plcInterp2
- These values are used to allow a single functional form to interpolate beween the various P&L curves of different frequencies by sliding, stretching/compressing the curve so that its max dissonance occurse at dstar.
- const float plCurveRate1
- Theses values determine the rates at which the function rises and falls and are based on a gradient minimisation of the squared error between Plomp and Levelt's averaged data and the curve.
- const float plCurveRate2
- Theses values determine the rates at which the function rises and falls and are based on a gradient minimisation of the squared error between Plomp and Levelt's averaged data and the curve.
- const float plcFit1
- These parameters have values to fit the experimental data of Plomp and Levelt.
- const float plcFit2
- These parameters have values to fit the experimental data of Plomp and Levelt.
- float curveInterp
- This stores the result of .
- float freqDiff
- This stores the difference in frequency between the partials.

## Variable documentation

###
const float VassilakisModel::maxDiss protected

This is the point of maximum dissonance.

The value is derived from a model of the Plom Levelt dissonance curves for all frequencies. Denoted by .

###
const float VassilakisModel::plcInterp1 protected

These values are used to allow a single functional form to interpolate beween the various P&L curves of different frequencies by sliding, stretching/compressing the curve so that its max dissonance occurse at dstar.

A least-square-fit was made to determine the values. Denoted by .

###
const float VassilakisModel::plcInterp2 protected

A least-square-fit was made to determine the values. Denoted by .

###
const float VassilakisModel::plCurveRate1 protected

Theses values determine the rates at which the function rises and falls and are based on a gradient minimisation of the squared error between Plomp and Levelt's averaged data and the curve.

Denoted by .

###
const float VassilakisModel::plCurveRate2 protected

Denoted by .