# spectral\_bandwidth\_analysis

> spectral\_bandwidth\_analysis(y: npt.ArrayLike, sr: int, save\_to\_csv: bool = True, nfft: int = 2048)

{% hint style="info" %}
Function description
{% endhint %}

To show spectral bandwidth of the input signal with time-axis

{% hint style="info" %}
Parameter
{% endhint %}

y: input signal&#x20;

sr: sampling rate (22050 Hz by default)&#x20;

save\_to\_csv: to save the result as .csv

{% hint style="info" %}
Return
{% endhint %}

None

{% hint style="info" %}
Example
{% endhint %}

```python
from audioviz import *
import librosa
import numpy as np
from audioviz import TimbreAnalysis

y, sr = librosa.load('Mozart_Turkish_March.wav', duration = 45)
TimbreAnalysis.spectral_bandwidth_analysis(y = y, sr = sr)
```

<figure><img src="https://3500702469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh9wXRXdIQoYFVdZ0YFUo%2Fuploads%2FcGGaezKRmRMdoYhEcKnv%2Fimage.png?alt=media&#x26;token=47f2816a-d7d0-4418-bd78-cb05dc708b4e" alt=""><figcaption></figcaption></figure>
