# plot\_constant\_q\_transform

> plot\_constant\_q\_transform(y: npt.ArrayLike, sr:int)

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

To show the constant Q transfrom spectrum

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

y: input signal&#x20;

sr: sampling rate (22050 Hz by default)

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

None

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

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

y, sr = librosa.load('Mozart_Turkish_March.wav', duration = 45)
PitchAnalysis.plot_constant_q_transform(y = y, sr = sr)
```

<figure><img src="https://3500702469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh9wXRXdIQoYFVdZ0YFUo%2Fuploads%2FOBqmaiRRyXhd8Sg88snP%2Fimage.png?alt=media&#x26;token=1e77de8d-4b05-44ec-a0c4-fb3fb81bb237" alt=""><figcaption></figcaption></figure>
