home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / python / pytexdoc / ext / lib / lib2 / audio / tex / images.pl (.txt) < prev    next >
LaTeX Document  |  1996-11-08  |  5KB  |  98 lines

  1. # LaTeX2HTML 2022 (Released January 1, 2022)
  2. # Associate images original text with physical files.
  3. $key = q//;
  4. $cached_env_img{$key} = q|<IMG
  5.   STYLE="height: 196.25ex; vertical-align: -0.70ex; " SRC="|."$dir".q|img12.png"
  6.  ALT="\begin{funcdesc}{amplify}{buf  f1  f2}
  7. Amplifies a chunk of samples by a varia...
  8. ...Resulting values that are to large to fit in a byte are clipped.
  9. \end{funcdesc}">|; 
  10. $key = q/{funcdesc}{add}{buf1,buf2}Bytewiseaddstwochunksofsamples.Bytesthatexceedtherangeareclipped.Ifonebufferisshorter,itisassumedtobepaddedwithzeros.{funcdesc};AAT/;
  11. $cached_env_img{$key} = q|<IMG
  12.   STYLE="height: 2.17ex; vertical-align: 176.68ex; " SRC="|."$dir".q|img14.png"
  13.  ALT="\begin{funcdesc}{add}{buf1  buf2}
  14. Bytewise adds two chunks of samples.
  15. Bytes th...
  16. If one buffer is shorter, it is assumed to be padded with zeros.
  17. \end{funcdesc}">|; 
  18. $key = q/{funcdesc}{chr2num}{buf}Convertsastringofsampledbytesasreturnedbycode{read()}intoalistcontainingthenumericvaluesofthesamples.{funcdesc};AAT/;
  19. $cached_env_img{$key} = q|<IMG
  20.   STYLE="height: 2.17ex; vertical-align: 176.55ex; " SRC="|."$dir".q|img15.png"
  21.  ALT="\begin{funcdesc}{chr2num}{buf}
  22. Converts a string of sampled bytes as returned by...
  23. ...read()} into
  24. a list containing the numeric values of the samples.
  25. \end{funcdesc}">|; 
  26. $key = q/{funcdesc}{getoutgain}{}Returnstheoutputgain.{funcdesc};AAT/;
  27. $cached_env_img{$key} = q|<IMG
  28.   STYLE="height: 2.24ex; vertical-align: 176.61ex; " SRC="|."$dir".q|img2.png"
  29.  ALT="\begin{funcdesc}{getoutgain}{}
  30. Returns the output gain.
  31. \end{funcdesc}">|; 
  32. $key = q/{funcdesc}{num2chr}{list}sloppypar{Convertsalistasreturnedbycode{chr2num()}backtoabufferacceptablebycode{write()}.sloppypar{{funcdesc};AAT/;
  33. $cached_env_img{$key} = q|<IMG
  34.   STYLE="height: 2.38ex; vertical-align: 176.27ex; " SRC="|."$dir".q|img16.png"
  35.  ALT="\begin{funcdesc}{num2chr}{list}
  36. \begin{sloppypar}
  37. Converts a list as returned by...
  38. ...()}
  39. back to a buffer acceptable by
  40. \code{write()}.
  41. \end{sloppypar}\end{funcdesc}">|; 
  42. $key = q/{funcdesc}{poll_recording}{}Returnstrueifthesecondthreadhasfinishedreading(socode{wait_recording()}wouldreturnthedatawithoutdelay).{funcdesc};AAT/;
  43. $cached_env_img{$key} = q|<IMG
  44.   STYLE="height: 2.17ex; vertical-align: 176.55ex; " SRC="|."$dir".q|img10.png"
  45.  ALT="\begin{funcdesc}{poll_recording}{}
  46. Returns true if the second thread has finishe...
  47. ...(so
  48. \code{wait_recording()} would return the data without delay).
  49. \end{funcdesc}">|; 
  50. $key = q/{funcdesc}{reverse}{buf}Returnsachunkofsamplesbackwards.{funcdesc};AAT/;
  51. $cached_env_img{$key} = q|<IMG
  52.   STYLE="height: 2.38ex; vertical-align: 176.40ex; " SRC="|."$dir".q|img13.png"
  53.  ALT="\begin{funcdesc}{reverse}{buf}
  54. Returns a chunk of samples backwards.
  55. \end{funcdesc}">|; 
  56. $key = q/{funcdesc}{setduration}{n}Setsthe`soundduration'inunitsof1slash100seconds.{funcdesc};AAT/;
  57. $cached_env_img{$key} = q|<IMG
  58.   STYLE="height: 2.38ex; vertical-align: 176.27ex; " SRC="|."$dir".q|img4.png"
  59.  ALT="\begin{funcdesc}{setduration}{n}
  60. Sets the \lq sound duration' in units of 1/100 seconds.
  61. \end{funcdesc}">|; 
  62. $key = q/{funcdesc}{setoutgain}{n}Setstheoutputgain.iftexicode{0<=var{n}<256}.else{0leqvar{n}<256{.fi{funcdesc};MSF=1.6;AAT/;
  63. $cached_env_img{$key} = q|<IMG
  64.   STYLE="height: 196.25ex; vertical-align: -0.57ex; " SRC="|."$dir".q|img1.png"
  65.  ALT="\begin{funcdesc}{setoutgain}{n}
  66. Sets the output gain.
  67. \iftexi
  68. \code{0 <= \var{n} < 256}.
  69. \else
  70. $0 \leq \var{n} < 256$.
  71. \end{funcdesc}">|; 
  72. $key = q/{funcdesc}{setrate}{n}Setsthesamplingrate:code{1}=32Kslashsec,code{2}=16Kslashsec,code{3}=8Kslashsec.{funcdesc};AAT/;
  73. $cached_env_img{$key} = q|<IMG
  74.   STYLE="height: 2.10ex; vertical-align: 176.55ex; " SRC="|."$dir".q|img3.png"
  75.  ALT="\begin{funcdesc}{setrate}{n}
  76. Sets the sampling rate: \code{1} = 32K/sec, \code{2} = 16K/sec,
  77. \code{3} = 8K/sec.
  78. \end{funcdesc}">|; 
  79. $key = q/{funcdesc}{stop_recording}{}Makesthesecondthreadstopreadingassoonaspossible.Returnsthedatareadsofar.{funcdesc};AAT/;
  80. $cached_env_img{$key} = q|<IMG
  81.   STYLE="height: 2.17ex; vertical-align: 176.68ex; " SRC="|."$dir".q|img9.png"
  82.  ALT="\begin{funcdesc}{stop_recording}{}
  83. Makes the second thread stop reading as soon as possible.
  84. Returns the data read so far.
  85. \end{funcdesc}">|; 
  86. $key = q/{funcdesc}{wait_recording}{}Waitsforthesecondthreadtofinishandreturnsthedataread.{funcdesc};AAT/;
  87. $cached_env_img{$key} = q|<IMG
  88.   STYLE="height: 2.38ex; vertical-align: 176.40ex; " SRC="|."$dir".q|img8.png"
  89.  ALT="\begin{funcdesc}{wait_recording}{}
  90. Waits for the second thread to finish and returns the data read.
  91. \end{funcdesc}">|; 
  92. $key = q/{funcdesc}{write}{buf}Writesachunkofsamplestotheaudiooutput(speaker).{funcdesc};AAT/;
  93. $cached_env_img{$key} = q|<IMG
  94.   STYLE="height: 2.38ex; vertical-align: 176.27ex; " SRC="|."$dir".q|img6.png"
  95.  ALT="\begin{funcdesc}{write}{buf}
  96. Writes a chunk of samples to the audio output (speaker).
  97. \end{funcdesc}">|; 
  98.