Hey All -- I'd appreciate any advice that you could offer on this.
Ultimately, what I'd want to do is just access the Line-In audio data (I'm assuming it's somewhere in the Windows API?) and then write that data (maybe constantly updated to a TXT file?) so I can access the TXT file from another program.
Basically, how to get numerical data (writing into a txt file) representing the levels on a sound card?
Please e-mail responses to: adam.benalt@msnbc.com
Adam D. Benalt Production Technology Director 212-664-1142 desk
There's probably a better way but here's what comes first to my mind:
in a terminal:
nc -l -p 5555 >> pd_output.txt
Then, in your PD patch use netsend to send the UV values to localhost
port 5555
Pall
On 3.4.2009, at 19:52, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Hey All -- I'd appreciate any advice that you could offer on this.
Ultimately, what I'd want to do is just access the Line-In audio
data (I'm assuming it's somewhere in the Windows API?) and then
write that data (maybe constantly updated to a TXT file?) so I can
access the TXT file from another program.Basically, how to get numerical data (writing into a txt file)
representing the levels on a sound card?Please e-mail responses to: adam.benalt@msnbc.com
Adam D. Benalt Production Technology Director 212-664-1142 desk <att3a7c4.PNG>
<att3a7c4.PNG>_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
Oh, I just noticed you're on Windows and uh... as far as I can tell
you're not even talking about PD.
On 3.4.2009, at 19:52, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Hey All -- I'd appreciate any advice that you could offer on this.
Ultimately, what I'd want to do is just access the Line-In audio
data (I'm assuming it's somewhere in the Windows API?) and then
write that data (maybe constantly updated to a TXT file?) so I can
access the TXT file from another program.Basically, how to get numerical data (writing into a txt file)
representing the levels on a sound card?Please e-mail responses to: adam.benalt@msnbc.com
Adam D. Benalt Production Technology Director 212-664-1142 desk <att3a7c4.PNG>
<att3a7c4.PNG>_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
Thanks Pall -- I appreciate your responses.
Yes, I am on windows. And, yes, I am trying to get PD to do this. So far it looks like the right tool for the job, but I just downloaded it today on the advice of a friend. Together we've cobbled together the attached .pd file. If you start the Metro (clicking the [1]) the atom number box gives me the level from the line input (in this case a microphone.) But I can't get the write to txt box to hook up properly, or to write to a file.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 6:49 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT File
Oh, I just noticed you're on Windows and uh... as far as I can tell you're not even talking about PD.
On 3.4.2009, at 19:52, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Hey All -- I'd appreciate any advice that you could offer on this.
Ultimately, what I'd want to do is just access the Line-In audio data (I'm assuming it's somewhere in the Windows API?) and then write that data (maybe constantly updated to a TXT file?) so I can access the TXT
file from another program.
Basically, how to get numerical data (writing into a txt file) representing the levels on a sound card?
Please e-mail responses to: adam.benalt@msnbc.com
Adam D. Benalt Production Technology Director 212-664-1142 desk <att3a7c4.PNG>
<att3a7c4.PNG>_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
I would think that on Windows you have to do something like [write C:
\tmp\textfile.txt] but I'm not positive. Anyway, the problem I see is
the path to the file. /tmp/textfile.txt means nothing to Windows.
best r. Pall
On 3.4.2009, at 22:54, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Thanks Pall -- I appreciate your responses.
Yes, I am on windows. And, yes, I am trying to get PD to do this. So far it looks like the right tool for the job, but I just downloaded it today on the advice of a friend. Together we've cobbled together the attached .pd file. If you start the Metro (clicking the [1]) the atom number box gives me the level from the line input (in this case a microphone.) But I can't get the write to txt box to hook up properly, or to
write to a file.Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 6:49 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT File
Oh, I just noticed you're on Windows and uh... as far as I can tell you're not even talking about PD.
On 3.4.2009, at 19:52, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Hey All -- I'd appreciate any advice that you could offer on this.
Ultimately, what I'd want to do is just access the Line-In audio data (I'm assuming it's somewhere in the Windows API?) and then write that data (maybe constantly updated to a TXT file?) so I can access the
TXTfile from another program.
Basically, how to get numerical data (writing into a txt file) representing the levels on a sound card?
Please e-mail responses to: adam.benalt@msnbc.com
Adam D. Benalt Production Technology Director 212-664-1142 desk <att3a7c4.PNG>
<att3a7c4.PNG>_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
<METER TEST2.pd>
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
Yeah, that's what I thought at first. But, when I try to enter a back-slash '' I get an error in the print window that says "keycode 92: dropped" Also the help file shows the slashed the way I wrote them, I just copied what was in there.
Thanks again.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 7:02 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT File
I would think that on Windows you have to do something like [write C: \tmp\textfile.txt] but I'm not positive. Anyway, the problem I see is the path to the file. /tmp/textfile.txt means nothing to Windows.
best r. Pall
On 3.4.2009, at 22:54, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Thanks Pall -- I appreciate your responses.
Yes, I am on windows. And, yes, I am trying to get PD to do this. So far it looks like the right tool for the job, but I just downloaded
it today on the advice of a friend. Together we've cobbled together the attached .pd file. If you start the Metro (clicking the [1]) the atom number box gives me
the level from the line input (in this case a microphone.) But I can't
get the write to txt box to hook up properly, or to write to a file.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 6:49 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT File
Oh, I just noticed you're on Windows and uh... as far as I can tell you're not even talking about PD.
On 3.4.2009, at 19:52, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Hey All -- I'd appreciate any advice that you could offer on this.
Ultimately, what I'd want to do is just access the Line-In audio data
(I'm assuming it's somewhere in the Windows API?) and then write that
data (maybe constantly updated to a TXT file?) so I can access the TXT
file from another program.
Basically, how to get numerical data (writing into a txt file) representing the levels on a sound card?
Please e-mail responses to: adam.benalt@msnbc.com
Adam D. Benalt Production Technology Director 212-664-1142 desk <att3a7c4.PNG>
<att3a7c4.PNG>_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
<METER TEST2.pd>
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
Have you tried [write C:/tmp/textfile.txt] ?
I haven't run PD on Windows in years, so I'm not sure and have no way
of testing.
On 3.4.2009, at 23:05, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Yeah, that's what I thought at first. But, when I try to enter a back-slash '' I get an error in the print window that says "keycode 92: dropped" Also the help file shows the slashed the way I wrote them, I just
copied what was in there.Thanks again.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 7:02 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT File
I would think that on Windows you have to do something like [write C: \tmp\textfile.txt] but I'm not positive. Anyway, the problem I see is the path to the file. /tmp/textfile.txt means nothing to Windows.
best r. Pall
On 3.4.2009, at 22:54, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Thanks Pall -- I appreciate your responses.
Yes, I am on windows. And, yes, I am trying to get PD to do this. So far it looks like the right tool for the job, but I just
downloadedit today on the advice of a friend. Together we've cobbled together the attached .pd file. If you start the Metro (clicking the [1]) the atom number box
gives methe level from the line input (in this case a microphone.) But I
can'tget the write to txt box to hook up properly, or to write to a file.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 6:49 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT File
Oh, I just noticed you're on Windows and uh... as far as I can tell you're not even talking about PD.
On 3.4.2009, at 19:52, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Hey All -- I'd appreciate any advice that you could offer on this.
Ultimately, what I'd want to do is just access the Line-In audio
data(I'm assuming it's somewhere in the Windows API?) and then write
thatdata (maybe constantly updated to a TXT file?) so I can access the TXT
file from another program.
Basically, how to get numerical data (writing into a txt file) representing the levels on a sound card?
Please e-mail responses to: adam.benalt@msnbc.com
Adam D. Benalt Production Technology Director 212-664-1142 desk <att3a7c4.PNG>
<att3a7c4.PNG>_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
<METER TEST2.pd>
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
Hi Adam, I'm not exactly sure what you're trying to do with that patch, but if you're having trouble with file names in windows, use the following chain of objects:
[bang( | [savepanel] | [write $1( | [textfile]
In this case, "bang" and "write $1" are messages (created with <ctrl-2>), and "savepanel" and "textfile" are objects (<ctrl-1>). When you connect them together, click the bang message at the top and you will get the standard "save as" dialog box. The filename will be automatically formatted, so you don't have to worry about typing in backslashes or whatever.
You can right click and choose "help" to get info on any pd object (as well as messages, arrays, gui's, etc).
-Jonathan
--- On Sat, 4/4/09, Pall Thayer palli@pallit.lhi.is wrote:
From: Pall Thayer palli@pallit.lhi.is Subject: Re: [PD] Writing -dB or VU level to a TXT File To: "Benalt, Adam D (NBC Universal, MSNBC)" adam.benalt@msnbc.com Cc: pd-list@iem.at Date: Saturday, April 4, 2009, 1:13 AM Have you tried [write C:/tmp/textfile.txt] ?
I haven't run PD on Windows in years, so I'm not sure and have no way
of testing.On 3.4.2009, at 23:05, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Yeah, that's what I thought at first. But, when I try to enter a back-slash ''
I get an error in the print
window that says "keycode 92: dropped" Also the help file shows the slashed the way I wrote
them, I just
copied what was in there.
Thanks again.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 7:02 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT
File
I would think that on Windows you have to do something
like [write C:
\tmp\textfile.txt] but I'm not positive.
Anyway, the problem I see is
the path to the file. /tmp/textfile.txt means nothing
to Windows.
best r. Pall
On 3.4.2009, at 22:54, Benalt, Adam D (NBC Universal,
MSNBC) wrote:
Thanks Pall -- I appreciate your responses.
Yes, I am on windows. And, yes, I am trying to get PD to do this. So far it looks like the right tool for the job,
but I just
downloaded
it today on the advice of a friend. Together we've cobbled together the attached
.pd file.
If you start the Metro (clicking the [1]) the atom
number box
gives me
the level from the line input (in this case a
microphone.) But I
can't
get the write to txt box to hook up properly, or
to write to a file.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 6:49 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT
File
Oh, I just noticed you're on Windows and uh...
as far as I can tell
you're not even talking about PD.
On 3.4.2009, at 19:52, Benalt, Adam D (NBC
Universal, MSNBC) wrote:
Hey All -- I'd appreciate any advice that you could
offer on this.
Ultimately, what I'd want to do is just
access the Line-In audio
data
(I'm assuming it's somewhere in the
Windows API?) and then write
that
data (maybe constantly updated to a TXT file?)
so I can access the
TXT
file from another program.
Basically, how to get numerical data (writing
into a txt file)
representing the levels on a sound card?
Please e-mail responses to:
adam.benalt@msnbc.com
Adam D. Benalt Production Technology Director 212-664-1142 desk <att3a7c4.PNG>
<att3a7c4.PNG>_______________________________________________
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
listinfo/pd-list
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
<METER TEST2.pd>
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thanks Jonathan, This works as you noted below, however I need this to be an automated process. At least a couple of times per second, writing one numeric value to the same text file over and over again. Then I can query it as needed and it will return the VU level at that moment.
Pall -- This concept seems simpler than using terminal, as I'm not really familiar with how that will work.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Jonathan Wilkes [mailto:jancsika@yahoo.com] Sent: Friday, April 03, 2009 7:59 PM To: Benalt, Adam D (NBC Universal, MSNBC); Pall Thayer Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT File
Hi Adam, I'm not exactly sure what you're trying to do with that patch, but if you're having trouble with file names in windows, use the following chain of objects:
[bang( | [savepanel] | [write $1( | [textfile]
In this case, "bang" and "write $1" are messages (created with <ctrl-2>), and "savepanel" and "textfile" are objects (<ctrl-1>). When you connect them together, click the bang message at the top and you will get the standard "save as" dialog box. The filename will be automatically formatted, so you don't have to worry about typing in backslashes or whatever.
You can right click and choose "help" to get info on any pd object (as well as messages, arrays, gui's, etc).
-Jonathan
--- On Sat, 4/4/09, Pall Thayer palli@pallit.lhi.is wrote:
From: Pall Thayer palli@pallit.lhi.is Subject: Re: [PD] Writing -dB or VU level to a TXT File To: "Benalt, Adam D (NBC Universal, MSNBC)" adam.benalt@msnbc.com Cc: pd-list@iem.at Date: Saturday, April 4, 2009, 1:13 AM Have you tried [write C:/tmp/textfile.txt] ?
I haven't run PD on Windows in years, so I'm not sure and have no way of testing.
On 3.4.2009, at 23:05, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Yeah, that's what I thought at first. But, when I try to enter a back-slash ''
I get an error in the print
window that says "keycode 92: dropped" Also the help file shows the slashed the way I wrote
them, I just
copied what was in there.
Thanks again.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 7:02 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT
File
I would think that on Windows you have to do something
like [write C:
\tmp\textfile.txt] but I'm not positive.
Anyway, the problem I see is
the path to the file. /tmp/textfile.txt means nothing
to Windows.
best r. Pall
On 3.4.2009, at 22:54, Benalt, Adam D (NBC Universal,
MSNBC) wrote:
Thanks Pall -- I appreciate your responses.
Yes, I am on windows. And, yes, I am trying to get PD to do this. So far it looks like the right tool for the job,
but I just
downloaded
it today on the advice of a friend. Together we've cobbled together the attached
.pd file.
If you start the Metro (clicking the [1]) the atom
number box
gives me
the level from the line input (in this case a
microphone.) But I
can't
get the write to txt box to hook up properly, or
to write to a file.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 6:49 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT
File
Oh, I just noticed you're on Windows and uh...
as far as I can tell
you're not even talking about PD.
On 3.4.2009, at 19:52, Benalt, Adam D (NBC
Universal, MSNBC) wrote:
Hey All -- I'd appreciate any advice that you could
offer on this.
Ultimately, what I'd want to do is just
access the Line-In audio
data
(I'm assuming it's somewhere in the
Windows API?) and then write
that
data (maybe constantly updated to a TXT file?)
so I can access the
TXT
file from another program.
Basically, how to get numerical data (writing
into a txt file)
representing the levels on a sound card?
Please e-mail responses to:
adam.benalt@msnbc.com
Adam D. Benalt Production Technology Director 212-664-1142 desk <att3a7c4.PNG>
<att3a7c4.PNG>_______________________________________________
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
listinfo/pd-list
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
<METER TEST2.pd>
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On unix related systems, printing the output of [savepanel] will show
you the path to the file. Perhaps that will show you how you can
format the path to work in [write(
[savepanel] | [print]
will print it to the pd window.
On 4.4.2009, at 00:40, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Thanks Jonathan, This works as you noted below, however I need this to be an automated process. At least a couple of times per second, writing one numeric value to
the same text file over and over again. Then I can query it as needed and it will return the VU level at that moment.Pall -- This concept seems simpler than using terminal, as I'm not really familiar with how that will work.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Jonathan Wilkes [mailto:jancsika@yahoo.com] Sent: Friday, April 03, 2009 7:59 PM To: Benalt, Adam D (NBC Universal, MSNBC); Pall Thayer Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT File
Hi Adam, I'm not exactly sure what you're trying to do with that patch,
but if you're having trouble with file names in windows, use the following chain of objects:[bang( | [savepanel] | [write $1( | [textfile]
In this case, "bang" and "write $1" are messages (created with <ctrl-2>), and "savepanel" and "textfile" are objects (<ctrl-1>).
When you connect them together, click the bang message at the top and you will get the standard "save as" dialog box. The filename will be automatically formatted, so you don't have to worry about typing in backslashes or whatever.You can right click and choose "help" to get info on any pd object (as well as messages, arrays, gui's, etc).
-Jonathan
--- On Sat, 4/4/09, Pall Thayer palli@pallit.lhi.is wrote:
From: Pall Thayer palli@pallit.lhi.is Subject: Re: [PD] Writing -dB or VU level to a TXT File To: "Benalt, Adam D (NBC Universal, MSNBC)" adam.benalt@msnbc.com Cc: pd-list@iem.at Date: Saturday, April 4, 2009, 1:13 AM Have you tried [write C:/tmp/textfile.txt] ?
I haven't run PD on Windows in years, so I'm not sure and have no way of testing.
On 3.4.2009, at 23:05, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Yeah, that's what I thought at first. But, when I try to enter a back-slash ''
I get an error in the print
window that says "keycode 92: dropped" Also the help file shows the slashed the way I wrote
them, I just
copied what was in there.
Thanks again.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 7:02 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT
File
I would think that on Windows you have to do something
like [write C:
\tmp\textfile.txt] but I'm not positive.
Anyway, the problem I see is
the path to the file. /tmp/textfile.txt means nothing
to Windows.
best r. Pall
On 3.4.2009, at 22:54, Benalt, Adam D (NBC Universal,
MSNBC) wrote:
Thanks Pall -- I appreciate your responses.
Yes, I am on windows. And, yes, I am trying to get PD to do this. So far it looks like the right tool for the job,
but I just
downloaded
it today on the advice of a friend. Together we've cobbled together the attached
.pd file.
If you start the Metro (clicking the [1]) the atom
number box
gives me
the level from the line input (in this case a
microphone.) But I
can't
get the write to txt box to hook up properly, or
to write to a file.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 6:49 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT
File
Oh, I just noticed you're on Windows and uh...
as far as I can tell
you're not even talking about PD.
On 3.4.2009, at 19:52, Benalt, Adam D (NBC
Universal, MSNBC) wrote:
Hey All -- I'd appreciate any advice that you could
offer on this.
Ultimately, what I'd want to do is just
access the Line-In audio
data
(I'm assuming it's somewhere in the
Windows API?) and then write
that
data (maybe constantly updated to a TXT file?)
so I can access the
TXT
file from another program.
Basically, how to get numerical data (writing
into a txt file)
representing the levels on a sound card?
Please e-mail responses to:
adam.benalt@msnbc.com
Adam D. Benalt Production Technology Director 212-664-1142 desk <att3a7c4.PNG>
<att3a7c4.PNG>_______________________________________________
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
listinfo/pd-list
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
<METER TEST2.pd>
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
Benalt, Adam D (NBC Universal, MSNBC) escreveu:
Thanks Jonathan, This works as you noted below, however I need this to be an automated process. At least a couple of times per second, writing one numeric value to the same text file over and over again. Then I can query it as needed and it will return the VU level at that moment.
Pall -- This concept seems simpler than using terminal, as I'm not really familiar with how that will work.
something like that, maybe? (didn't tested on windows)
josé
Thanks josé ! This writes the file to the correct directory, but as a blank .txt What do I click or change to get the numeric value?
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: padovani [mailto:josepadovani@yahoo.com.br] Sent: Friday, April 03, 2009 9:42 PM To: Benalt, Adam D (NBC Universal, MSNBC); pd-list@iem.at Subject: [LIKELY_SPAM]Re: [PD] Writing -dB or VU level to a TXT File
Benalt, Adam D (NBC Universal, MSNBC) escreveu:
Thanks Jonathan, This works as you noted below, however I need this to be an automated process. At least a couple of times per second, writing one numeric value to the same text file over and over again. Then I can query it as needed and it will return the VU level at that moment.
Pall -- This concept seems simpler than using terminal, as I'm not really familiar with how that will work.
something like that, maybe? (didn't tested on windows)
josé
Benalt, Adam D (NBC Universal, MSNBC) escreveu:
This writes the file to the correct directory, but as a blank .txt What do I click or change to get the numeric value?
probably the file is blank because you didn't switched the audio computing on... (?) to start it press ctrl+/, to stop press [ctrl+.]...
maybe you should right click some objects to see how they work... (help) . and also read the first audio examples... (help->browser->3.audio.examples)
good luck,
josé
Jose, you're a genius! I think I got it figured out. I enter a multiplier integer in the top right atoms# box and it does EXACTLY what it should!
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: padovani [mailto:josepadovani@yahoo.com.br] Sent: Friday, April 03, 2009 9:42 PM To: Benalt, Adam D (NBC Universal, MSNBC); pd-list@iem.at Subject: [LIKELY_SPAM]Re: [PD] Writing -dB or VU level to a TXT File
Benalt, Adam D (NBC Universal, MSNBC) escreveu:
Thanks Jonathan, This works as you noted below, however I need this to be an automated process. At least a couple of times per second, writing one numeric value to the same text file over and over again. Then I can query it as needed and it will return the VU level at that moment.
Pall -- This concept seems simpler than using terminal, as I'm not really familiar with how that will work.
something like that, maybe? (didn't tested on windows)
josé
Oh, I see. In that case, just use [write my_textfile.txt( and my_textfile.txt will be saved in the same folder as your patch.
-Jonathan
--- On Sat, 4/4/09, Benalt, Adam D (NBC Universal, MSNBC) adam.benalt@msnbc.com wrote:
From: Benalt, Adam D (NBC Universal, MSNBC) adam.benalt@msnbc.com Subject: RE: [PD] Writing -dB or VU level to a TXT File To: jancsika@yahoo.com, "Pall Thayer" palli@pallit.lhi.is Cc: pd-list@iem.at Date: Saturday, April 4, 2009, 2:40 AM Thanks Jonathan, This works as you noted below, however I need this to be an automated process. At least a couple of times per second, writing one numeric value to the same text file over and over again. Then I can query it as needed and it will return the VU level at that moment.
Pall -- This concept seems simpler than using terminal, as I'm not really familiar with how that will work.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Jonathan Wilkes [mailto:jancsika@yahoo.com] Sent: Friday, April 03, 2009 7:59 PM To: Benalt, Adam D (NBC Universal, MSNBC); Pall Thayer Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT File
Hi Adam, I'm not exactly sure what you're trying to do with that patch, but if you're having trouble with file names in windows, use the following chain of objects:
[bang( | [savepanel] | [write $1( | [textfile]
In this case, "bang" and "write $1" are messages (created with <ctrl-2>), and "savepanel" and "textfile" are objects (<ctrl-1>). When you connect them together, click the bang message at the top and you will get the standard "save as" dialog box. The filename will be automatically formatted, so you don't have to worry about typing in backslashes or whatever.
You can right click and choose "help" to get info on any pd object (as well as messages, arrays, gui's, etc).
-Jonathan
--- On Sat, 4/4/09, Pall Thayer palli@pallit.lhi.is wrote:
From: Pall Thayer palli@pallit.lhi.is Subject: Re: [PD] Writing -dB or VU level to a TXT
File
To: "Benalt, Adam D (NBC Universal, MSNBC)"
Cc: pd-list@iem.at Date: Saturday, April 4, 2009, 1:13 AM Have you tried
[write
C:/tmp/textfile.txt] ?
I haven't run PD on Windows in years, so I'm
not sure and have no way
of testing.
On 3.4.2009, at 23:05, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Yeah, that's what I thought at first. But, when I try to enter a back-slash
''
I get an error in the print
window that says "keycode 92: dropped" Also the help file shows the slashed the way I
wrote
them, I just
copied what was in there.
Thanks again.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 7:02 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a
TXT
File
I would think that on Windows you have to do
something
like [write C:
\tmp\textfile.txt] but I'm not
positive.
Anyway, the problem I see is
the path to the file. /tmp/textfile.txt means
nothing
to Windows.
best r. Pall
On 3.4.2009, at 22:54, Benalt, Adam D (NBC
Universal,
MSNBC) wrote:
Thanks Pall -- I appreciate your responses.
Yes, I am on windows. And, yes, I am trying to get PD to do this. So far it looks like the right tool for the
job,
but I just
downloaded
it today on the advice of a friend. Together we've cobbled together the
attached
.pd file.
If you start the Metro (clicking the [1]) the
atom
number box
gives me
the level from the line input (in this case a
microphone.) But I
can't
get the write to txt box to hook up properly,
or
to write to a file.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer
[mailto:palli@pallit.lhi.is]
Sent: Friday, April 03, 2009 6:49 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to
a TXT
File
Oh, I just noticed you're on Windows and
uh...
as far as I can tell
you're not even talking about PD.
On 3.4.2009, at 19:52, Benalt, Adam D (NBC
Universal, MSNBC) wrote:
Hey All -- I'd appreciate any advice that you
could
offer on this.
Ultimately, what I'd want to do is
just
access the Line-In audio
data
(I'm assuming it's somewhere in
the
Windows API?) and then write
that
data (maybe constantly updated to a TXT
file?)
so I can access the
TXT
file from another program.
Basically, how to get numerical data
(writing
into a txt file)
representing the levels on a sound card?
Please e-mail responses to:
adam.benalt@msnbc.com
Adam D. Benalt Production Technology Director 212-664-1142 desk <att3a7c4.PNG>
<att3a7c4.PNG>_______________________________________________
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
listinfo/pd-list
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
<METER TEST2.pd>
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thanks Jonathan -- José's solution uses that convention and works, but I'm so new to PD that I don't really understand what the rest of his app is doing. :-)
All -- I really appreciate your assistance on this. I've been looking for any solution to this problem for 2 days now and in the last 4 hours so many of you have just jumped in to help.
I just wanted to say THANKS! This is a great group!
Adam D. Benalt Production Technology Director 212-664-1142 desk MSNBC
-----Original Message----- From: Jonathan Wilkes [mailto:jancsika@yahoo.com] Sent: Friday, April 03, 2009 9:44 PM To: Pall Thayer; Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: RE: [PD] Writing -dB or VU level to a TXT File
Oh, I see. In that case, just use [write my_textfile.txt( and my_textfile.txt will be saved in the same folder as your patch.
-Jonathan
--- On Sat, 4/4/09, Benalt, Adam D (NBC Universal, MSNBC) adam.benalt@msnbc.com wrote:
From: Benalt, Adam D (NBC Universal, MSNBC) adam.benalt@msnbc.com Subject: RE: [PD] Writing -dB or VU level to a TXT File To: jancsika@yahoo.com, "Pall Thayer" palli@pallit.lhi.is Cc: pd-list@iem.at Date: Saturday, April 4, 2009, 2:40 AM Thanks Jonathan, This works as you noted below, however I need this to be an automated process. At least a couple of times per second, writing one numeric value to the same text file over and over again. Then I can query it as needed and it will return the VU level at that moment.
Pall -- This concept seems simpler than using terminal, as I'm not really familiar with how that will work.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Jonathan Wilkes [mailto:jancsika@yahoo.com] Sent: Friday, April 03, 2009 7:59 PM To: Benalt, Adam D (NBC Universal, MSNBC); Pall Thayer Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT File
Hi Adam, I'm not exactly sure what you're trying to do with that patch, but if you're having trouble with file names in windows, use the following chain of objects:
[bang( | [savepanel] | [write $1( | [textfile]
In this case, "bang" and "write $1" are messages (created with <ctrl-2>), and "savepanel" and "textfile" are objects (<ctrl-1>).
When you connect them together, click the bang message at the top and you will get the standard "save as" dialog box. The filename will be automatically formatted, so you don't have to worry about typing in backslashes or whatever.You can right click and choose "help" to get info on any pd object (as well as messages, arrays, gui's, etc).
-Jonathan
--- On Sat, 4/4/09, Pall Thayer palli@pallit.lhi.is wrote:
From: Pall Thayer palli@pallit.lhi.is Subject: Re: [PD] Writing -dB or VU level to a TXT
File
To: "Benalt, Adam D (NBC Universal, MSNBC)"
Cc: pd-list@iem.at Date: Saturday, April 4, 2009, 1:13 AM Have you tried
[write
C:/tmp/textfile.txt] ?
I haven't run PD on Windows in years, so I'm
not sure and have no way
of testing.
On 3.4.2009, at 23:05, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Yeah, that's what I thought at first. But, when I try to enter a back-slash
''
I get an error in the print
window that says "keycode 92: dropped" Also the help file shows the slashed the way I
wrote
them, I just
copied what was in there.
Thanks again.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 7:02 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a
TXT
File
I would think that on Windows you have to do
something
like [write C:
\tmp\textfile.txt] but I'm not
positive.
Anyway, the problem I see is
the path to the file. /tmp/textfile.txt means
nothing
to Windows.
best r. Pall
On 3.4.2009, at 22:54, Benalt, Adam D (NBC
Universal,
MSNBC) wrote:
Thanks Pall -- I appreciate your responses.
Yes, I am on windows. And, yes, I am trying to get PD to do this. So far it looks like the right tool for the
job,
but I just
downloaded
it today on the advice of a friend. Together we've cobbled together the
attached
.pd file.
If you start the Metro (clicking the [1]) the
atom
number box
gives me
the level from the line input (in this case a
microphone.) But I
can't
get the write to txt box to hook up properly,
or
to write to a file.
Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer
[mailto:palli@pallit.lhi.is]
Sent: Friday, April 03, 2009 6:49 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to
a TXT
File
Oh, I just noticed you're on Windows and
uh...
as far as I can tell
you're not even talking about PD.
On 3.4.2009, at 19:52, Benalt, Adam D (NBC
Universal, MSNBC) wrote:
Hey All -- I'd appreciate any advice that you
could
offer on this.
Ultimately, what I'd want to do is
just
access the Line-In audio
data
(I'm assuming it's somewhere in
the
Windows API?) and then write
that
data (maybe constantly updated to a TXT
file?)
so I can access the
TXT
file from another program.
Basically, how to get numerical data
(writing
into a txt file)
representing the levels on a sound card?
Please e-mail responses to:
adam.benalt@msnbc.com
Adam D. Benalt Production Technology Director 212-664-1142 desk <att3a7c4.PNG>
<att3a7c4.PNG>_______________________________________________
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
listinfo/pd-list
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
<METER TEST2.pd>
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Oh, and you'll probably have to make sure that a folder named tmp
actually exists and can be written to by anybody.
On 3.4.2009, at 22:54, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Thanks Pall -- I appreciate your responses.
Yes, I am on windows. And, yes, I am trying to get PD to do this. So far it looks like the right tool for the job, but I just downloaded it today on the advice of a friend. Together we've cobbled together the attached .pd file. If you start the Metro (clicking the [1]) the atom number box gives me the level from the line input (in this case a microphone.) But I can't get the write to txt box to hook up properly, or to
write to a file.Adam D. Benalt Production Technology Director 212-664-1142 desk 646-306-4751 blackberry MSNBC
-----Original Message----- From: Pall Thayer [mailto:palli@pallit.lhi.is] Sent: Friday, April 03, 2009 6:49 PM To: Benalt, Adam D (NBC Universal, MSNBC) Cc: pd-list@iem.at Subject: Re: [PD] Writing -dB or VU level to a TXT File
Oh, I just noticed you're on Windows and uh... as far as I can tell you're not even talking about PD.
On 3.4.2009, at 19:52, Benalt, Adam D (NBC Universal, MSNBC) wrote:
Hey All -- I'd appreciate any advice that you could offer on this.
Ultimately, what I'd want to do is just access the Line-In audio data (I'm assuming it's somewhere in the Windows API?) and then write that data (maybe constantly updated to a TXT file?) so I can access the
TXTfile from another program.
Basically, how to get numerical data (writing into a txt file) representing the levels on a sound card?
Please e-mail responses to: adam.benalt@msnbc.com
Adam D. Benalt Production Technology Director 212-664-1142 desk <att3a7c4.PNG>
<att3a7c4.PNG>_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
<METER TEST2.pd>
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
I thought the Windows way of thinking is either writable by nobody or
writable by anybody ;-)
On 4.4.2009, at 11:33, IOhannes m zmoelnig wrote:
Pall Thayer wrote:
actually exists and can be written to by anybody.
well, at least by the user running Pd.
fsmt IOhannes
-- Pall Thayer palli@pallit.lhi.is http://www.this.is/pallit
On Fri, 3 Apr 2009, Pall Thayer wrote:
Oh, I just noticed you're on Windows
but the ">>" redirection operator that you use does exist in MSDOS and compatible... I've used it in the eighties.
I would think that on Windows you have to do something like [write C:\tmp\textfile.txt] but I'm not positive. Anyway, the problem I see is the path to the file. /tmp/textfile.txt means nothing to Windows. Have you tried [write C:/tmp/textfile.txt] ?
The slashes do work with the Windows API, though they might not work with the Windows shell and commandline arguments in general. The slash is reserved for options, but is reused in the Windows API as an alternative to the backslash, for slightly greater UNIX compatibility. Then "/tmp/textfile.txt" goes in the toplevel folder "tmp" of the current drive, so, this is a drive-relative path, which is an intermediate between an absolute path and a relative path.
Oh, and you'll probably have to make sure that a folder named tmp actually exists and can be written to by anybody.
AFAIR, this would be c:/windows/temp ?... that's what I recall as a value for the $TEMP envvar, either in DOS or some UNIX<->Windows compat thing or both...
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec