impulse.f
上传用户:szhypcb168
上传日期:2007-01-06
资源大小:2187k
文件大小:1k
源码类别:

语音压缩

开发平台:

Unix_Linux

  1. C==========================================================================
  2. C
  3. C ROUTINE
  4. C               impulse 
  5. C
  6. C FUNCTION
  7. C               compute impulse response with direct form filter
  8. C exclusive of adaptive code book contribution
  9. C
  10. C SYNOPSIS
  11. C               subroutine impulse(l)
  12. C
  13. C   formal 
  14. C
  15. C                       data    I/O
  16. C       name            type    type    function
  17. C       -------------------------------------------------------------------
  18. C       l               int     i       impulse response length
  19. C
  20. C   global 
  21. C                       data    I/O
  22. C       name            type    type    function
  23. C       -------------------------------------------------------------------
  24. C  /ccsub/       see description include file
  25. C
  26. C==========================================================================
  27. C*-
  28.         subroutine impulse(l)
  29. implicit undefined(a-z)
  30. integer l
  31. c
  32. include 'ccsub.com'
  33. convex #include "ccsub.com"
  34. real fctemp(maxno+1)
  35. c
  36.         call setr(l, 0.0, h)
  37.         h(1) = 1.0
  38. call setr(no+1, 0.0, d5)
  39. call bwexp(gamma, fc, fctemp, no)
  40. call polefilt(fctemp, no, d5, h, l)
  41.         return
  42.         end