<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4913.1100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>hi, your idea is correct, though slightly 
unprecise. </FONT></DIV>
<DIV><FONT face=Arial size=2>to get a synchronized bang after each block of 1024 
samples you can use the "block~"-object</FONT></DIV>
<DIV><FONT face=Arial size=2>if you use a "tabsend~"-object, then the fft-data 
is sent countinuously. to read a certain frequency you could also use 
the&nbsp;bangs from bang~</FONT></DIV>
<DIV><FONT face=Arial size=2>the channel 0 will give the d.c. one would be 
samplerate/blocksize (with 44.1k this would be 43Hz) 2 would be 86Hz and so on. 
512 should be 22050Hz, the nyquist-frequency, but the highest frequency the 
fft-object of pd gives you is 511 (22007Hz).</FONT></DIV>
<DIV><FONT face=Arial size=2>do you need a table? NO. you can use "pack~ 1024" 
and "packel [number]" with number the default channel you want to 
watch.</FONT></DIV>
<DIV><FONT face=Arial size=2>your other question, detecting the&nbsp;loudest 
frequency, could be done with either one of the zexy objects or could be 
calculated in realtime on signal-way. but for frequency-detection you can also 
use "bonk", one of millers specials...</FONT></DIV>
<DIV><FONT face=Arial size=2>sme.</FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=andre@vju.info href="mailto:andre@vju.info">Andre Schmidt</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=pd-list@iem.kug.ac.at 
  href="mailto:pd-list@iem.kug.ac.at">PD-LiST</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, April 30, 2002 8:03 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [PD] [fft] frequency 
select</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>hi,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>i just started on fft and wondered if this 
  [attachment] is the best/right way to analyze a selected frequency... 
  </FONT><FONT face=Arial size=2>the fft part is ripped from the examples (dunno 
  which it was). then i just select with tabread/index the frequency i 
  need...</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>do i NEED a table for this task ???</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>thnx</FONT></DIV>
  <DIV><FONT face=Arial size=2>-andre</FONT></DIV></BLOCKQUOTE></BODY></HTML>