title: How to find the frequency response of the Rosenberg Glottal Model
body: <p>Is there an easy way to calculate the frequency response of the following function?</p>
  
  <p><img src="https://i.stack.imgur.com/wqlYn.png" alt="enter image description here"></p>
  
  <p>I tried using heaviside function but with no luck.</p>
  
  <p>Basically I want to write a function to return the frequency response  based on input N1 and N2 and also the number of points (lets say x) between 0 and pi</p>
  
  <p>The output would be a vector which returns x values for the frequency response for corresponding frequencies =>  0:pi/x:pi</p>