<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Aaron,<br>
<br>
<blockquote
cite="mid:41d2e7541003281928j170b3e80gec48d9a7393d913a@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type"
content="text/html; charset=ISO-8859-1">
Here's one for ya.<br>
<br>
I'd like to have a program which "checks" for a certain frequency every
20 minutes or so while I'm not in the room.<br>
<br>
If this frequency happens (and my microphone picks it up, of course)
something happens, <br>
</blockquote>
If I understand correctly what you mean (detecting a single 'pitch'
(frequency)) the simple attached Pd patch should do it.<br>
<blockquote
cite="mid:41d2e7541003281928j170b3e80gec48d9a7393d913a@mail.gmail.com"
type="cite"><br>
I'm thinking something web-like.<br>
</blockquote>
Pd has has netsend to do network or popen to start shell commands (..
look at the docs.<br>
<br>
Lorenzo.<br>
<blockquote
cite="mid:41d2e7541003281928j170b3e80gec48d9a7393d913a@mail.gmail.com"
type="cite"><br>
The function below sucks and I'm aware of that.<br>
<br>
Just fishing for any ideas.<br>
<br>
Thanks, amigos!<br>
<br>
-Aaron<br>
<br>
<br>
$curr_frequency(){<br>
wicked function which listens to the mic every 20 minutes<br>
}<br>
<br>
$frequency = '';<br>
if ($time >= 1200000 ) { //20 minutes<br>
curr_frequency (&$curr_frequency, $time);<br>
return $frequency;<br>
}; <br>
if ($frequency == '2500hz') //maybe make this a range {<br>
do something neato;<br>
}<br>
<br>
}<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Linux-audio-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Linux-audio-user@lists.linuxaudio.org">Linux-audio-user@lists.linuxaudio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxaudio.org/listinfo/linux-audio-user">http://lists.linuxaudio.org/listinfo/linux-audio-user</a>
</pre>
</blockquote>
</body>
</html>