How to set up the variable fractional delay for a flanging effect?

1 Ansicht (letzte 30 Tage)
Debraj
Debraj am 29 Okt. 2012
Each time I try to simulate, it gives an error saying "All sample times for this block must be discrete". The error message corresponds to the variable fractional delay block.
The sine wave generated is set on discrete with a sample time of 1/1000.
I appreciate your help.
  1 Kommentar
Debraj
Debraj am 14 Nov. 2012
Here's the answer I was looking for:
MATLAB seems to pull up this error when there's a mismatch in the sampling rates of various sources in the design.
I set a common sampling rate of 25kHz(could be anything).
Under Simulink parameters, I made the step size fixed and changed the solver to discrete.
The model worked after that.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Kaustubha Govind
Kaustubha Govind am 30 Okt. 2012
Try enabling sample time colors for your model to see what sample times the inputs to the block receive. Perhaps one of them is a continuous sample time (look for black signals).
  2 Kommentare
Debraj
Debraj am 1 Nov. 2012
I enabled the colors. The signals coming from the variable fractional delay and my audio input are discrete.
The constant source is giving an output that is gray in color and is called an FiM (Fixed in minor step). I'm not sure what this is.
Debraj
Debraj am 1 Nov. 2012
Bearbeitet: Debraj am 1 Nov. 2012
I tried putting just a constant source into the variable fraction delay block's "delay" input and that gives the delay.
But for some reason, any other discrete function, like the discrete sine function (after adding to a constant or making absolute) and step counter, give the same error.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by