Re: [PD] Writing -dB or VU level to a TXT File
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 pa...@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
Re: [PD] Writing -dB or VU level to a TXT File
Pall Thayer wrote: > actually exists and can be written to by anybody. > well, at least by the user running Pd. fsmt IOhannes ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Writing -dB or VU level to a TXT File
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é -- http://www.padovani.googlepages.com ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Writing -dB or VU level to a TXT File
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:jancs...@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) wrote: > From: Benalt, Adam D (NBC Universal, MSNBC) > Subject: RE: [PD] Writing -dB or VU level to a TXT File > To: jancs...@yahoo.com, "Pall Thayer" > 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:jancs...@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 > ), and "savepanel" and "textfile" are objects (). > 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 > wrote: > > > From: Pall Thayer > > 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:pa...@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, A
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é -- http://www.padovani.googlepages.com #N canvas 0 22 743 498 10; #X msg 302 275 write /Users/ze/teste.txt; #X obj 303 224 loadbang; #X msg 338 98 1; #X obj 197 202 metro 50; #X floatatom 65 259 5 0 0 0 - - -; #X floatatom 178 175 5 0 0 0 - - -; #X obj 159 244 f; #X msg 327 130 0; #X obj 474 179 tgl 20 0 empty empty write_file 0 -5 0 10 -262144 -1 -1 1 1; #X obj 468 91 sel 1; #X msg 165 432 clear; #X obj 118 363 sel 100; #X obj 130 398 t b b; #X floatatom 439 311 5 0 0 0 - - -; #X obj 197 391 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 144 109 *~; #X floatatom 205 58 5 0 1 0 - - -; #X text 481 275 <-change to windows formated path; #X floatatom 459 217 5 0 0 0 - - -; #X msg 367 248 50; #X obj 170 138 env~; #X text 498 215 <- change the metro; #X obj 343 437 textfile; #X obj 65 223 counter; #X obj 97 173 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X text 481 313 <-change number of recorded itens; #X msg 163 302 add2 \$1; #X msg 356 306 1; #X msg 116 201 1; #X obj 432 341 - 1; #X obj 124 63 adc~; #X connect 0 0 22 0; #X connect 1 0 0 0; #X connect 1 0 19 0; #X connect 1 0 27 0; #X connect 2 0 3 0; #X connect 3 0 6 0; #X connect 3 0 24 0; #X connect 4 0 11 0; #X connect 5 0 6 1; #X connect 6 0 26 0; #X connect 7 0 3 0; #X connect 8 0 9 0; #X connect 9 0 2 0; #X connect 9 1 7 0; #X connect 10 0 22 0; #X connect 11 0 12 0; #X connect 12 0 10 0; #X connect 12 0 23 2; #X connect 12 1 0 0; #X connect 13 0 14 0; #X connect 13 0 29 0; #X connect 14 0 23 2; #X connect 15 0 20 0; #X connect 16 0 15 1; #X connect 18 0 3 1; #X connect 19 0 18 0; #X connect 20 0 5 0; #X connect 23 0 4 0; #X connect 24 0 23 0; #X connect 26 0 22 0; #X connect 27 0 13 0; #X connect 29 0 11 1; #X connect 30 0 15 0; ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
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) wrote: > From: Benalt, Adam D (NBC Universal, MSNBC) > Subject: RE: [PD] Writing -dB or VU level to a TXT File > To: jancs...@yahoo.com, "Pall Thayer" > 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:jancs...@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 > ), and "savepanel" and > "textfile" are objects (). 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 > wrote: > > > From: Pall Thayer > > 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:pa...@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 &
Re: [PD] Writing -dB or VU level to a TXT File
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___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Writing -dB or VU level to a TXT File
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:jancs...@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 ), and "savepanel" and "textfile" are objects (). 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 wrote: From: Pall Thayer 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:pa...@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:pa...@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.ben...@msnbc.com Adam D. Benalt Production Technology Director 212-664-1142 desk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list -- Pall Thayer p
Re: [PD] Writing -dB or VU level to a TXT File
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:jancs...@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 ), and "savepanel" and "textfile" are objects (). 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 wrote: > From: Pall Thayer > 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:pa...@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:pa...@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, wha
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 ), and "savepanel" and "textfile" are objects (). 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 wrote: > From: Pall Thayer > 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:pa...@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:pa...@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.ben...@msnbc.com > >>> > >>> Adam D. Benalt > >>> Production Technology Director > >>> 212-664-1142 desk > >>> > >>> > >>> > ___ > >>> Pd-list@iem.at mailing list > >>> UNSUBSCRIBE and account-management -> > http://lists.puredata.info/ > >>> listinfo/pd-list > >> > >> > >> > >> > >> -- > >> Pall Thayer > >> pa...@pallit.lhi.is > >> http://www.this.is/pallit > >> > >> > >> > >> > > > > > > > > > > -- > > Pall Thayer > > pa...@pallit.lhi.is > > http://www.this.is/pallit > > > > > > > > > > > -- > Pall Thayer > pa...@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 ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Writing -dB or VU level to a TXT File
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:pa...@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:pa...@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.ben...@msnbc.com >> >> Adam D. Benalt >> Production Technology Director >> 212-664-1142 desk >> >> >> ___ >> Pd-list@iem.at mailing list >> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ >> listinfo/pd-list > > > > > -- > Pall Thayer > pa...@pallit.lhi.is > http://www.this.is/pallit > > > > -- Pall Thayer pa...@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
Re: [PD] Writing -dB or VU level to a TXT File
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:pa...@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:pa...@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.ben...@msnbc.com Adam D. Benalt Production Technology Director 212-664-1142 desk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list -- Pall Thayer pa...@pallit.lhi.is http://www.this.is/pallit -- Pall Thayer pa...@pallit.lhi.is http://www.this.is/pallit -- Pall Thayer pa...@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
Re: [PD] Writing -dB or VU level to a TXT File
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:pa...@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.ben...@msnbc.com Adam D. Benalt Production Technology Director 212-664-1142 desk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list -- Pall Thayer pa...@pallit.lhi.is http://www.this.is/pallit -- Pall Thayer pa...@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
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:pa...@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.ben...@msnbc.com Adam D. Benalt Production Technology Director 212-664-1142 desk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list -- Pall Thayer pa...@pallit.lhi.is http://www.this.is/pallit -- Pall Thayer pa...@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
Re: [PD] Writing -dB or VU level to a TXT File
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:pa...@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.ben...@msnbc.com > > Adam D. Benalt > Production Technology Director > 212-664-1142 desk > > > ___ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> http://lists.puredata.info/ > listinfo/pd-list -- Pall Thayer pa...@pallit.lhi.is http://www.this.is/pallit METER TEST2.pd Description: METER TEST2.pd ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
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.ben...@msnbc.com Adam D. Benalt Production Technology Director 212-664-1142 desk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list -- Pall Thayer pa...@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
Re: [PD] Writing -dB or VU level to a TXT File
There's probably a better way but here's what comes first to my mind: in a terminal: nc -l -p >> pd_output.txt Then, in your PD patch use netsend to send the UV values to localhost port 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.ben...@msnbc.com Adam D. Benalt Production Technology Director 212-664-1142 desk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list -- Pall Thayer pa...@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
[PD] Writing -dB or VU level to a TXT File
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.ben...@msnbc.com Adam D. Benalt Production Technology Director 212-664-1142 desk <>___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list