Re: [PD] using puredata to play playlist gapless
On Tue, 2013-02-19 at 20:57 -1000, Rick T wrote: Yes I have tried giving textfile a bang. Still no sound I'm not sure what you mean by the second response since I get sound when I click on the message with the single wav file hard coded in the message box. I don't get sound when I load a playlist text file. Ok. [textfile] does not prepend any selector to its output. I simply outputs 'filename.wav', but the messagebox [open $1, 1( expects a 'symbol filename.wav' message. Insert a an object [symbol] between [textfile] and [open $1, 1(. I made a little sketch (see attachment) which turns out to almost identical to your version. Roman On Tue, Feb 19, 2013 at 6:22 PM, Dafydd Hughes dafyd...@gmail.com wrote: Have you nitride giving textile a bang after opening the file? Also, the test message should be connected straight to readsf~, not to the message - you should hear the file played then. On Tuesday, February 19, 2013, Rick T wrote: Ok I'm still having issues I uploaded an image of the PD to see if someone spots something off the bat http://imageshack.us/photo/my-images/12/selection007p.png/ and I've attached a text file with the debugging stuff included I can hear the sound when I click on the [open /tmp/test/n41test.wav( message box But I get no sound using the open panel to load the textfile I've also attached the negplaylist.txt file and renamed everything in-case I had some strange control character hiding in the file. When I bang the [openpanel] object and clink on the [print( message box above the [textfile] I get this in the PD log - textfile or qlist contents: --- n41test.wav \; \; n42test.wav \; \; n43test.wav \; \; n44test.wav \; \; n45test.wav \; \; n46test.wav \; \; n47test.wav \; \; n48test.wav \; \; n49test.wav \; \; n50test.wav \; \; Still trying to figure out why this won't play the files. On Tue, Feb 19, 2013 at 4:15 PM, Dafydd Hughes dafyd...@gmail.com wrote: Oh silly me. You need to look at the syntax for using readsf~ - it's more complicated. First, readsf~ needs an open message e.g. open 001test.wav, then it needs a 1 to start playback. Forgive me if you already know this, but you can string 2 messages together with a comma. And to get the filename from textfile into a message like that, you need to use $1 as a placeholder. So between textfile and readsf~ you need a message saying something like open $1, 1. That'll turn into 2 messages: open 001test.wav and then 1. If the files are in the same directory as the patch, it should work (I think). Cheers Dafydd On Tue, Feb 19, 2013 at 9:06 PM, Rick T ratull...@gmail.com wrote: I had my hopes up but adding the semicolon to the end didn't help. I have all the files in the same directory and for whatever reason it just refuses to play. I don't even have any errors on the Puredata Log screen. Any other ideas? Thanks On Tue, Feb 19, 2013 at 3:28 PM, Dafydd Hughes dafyd...@gmail.com wrote: Hi Rick I think you might need a semicolon at the end of each line in your text file: 001test.wav; 002test.wav; 003test.wav; Cheers Dafydd On Tue, Feb 19, 2013 at 8:22 PM, Rick T ratull...@gmail.com wrote: Thanks for all the help/suggestions but I still seem to be running into a problem of it not playing the files. I made the changes to playlist file and edited the playlist.txt file the playlist.txt file has 001test.wav 002test.wav 003test.wav I've included the the pd patch to see if someone can tell me what I'm doing wrong Thanks. On Tue, Feb 19, 2013 at 12:08 PM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 07:47 -1000, Rick T wrote: Yes I do have the ability to change the playlist file to a text file and alter it how it looks. The thing I'm looking for is an example of gapless playing. I couldn't find one doing google search. You load your playlist (in its most simple form it would be just one filename per line) with [textfile]. You make [textfile] output its first line, feed that to [readsf~]. Then you feed the right outlet of [readsf~] - which bangs when the file is finished - back to [textfile] to make it output the next filename. Roman On Tue, Feb 19, 2013 at 12:53 AM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 00:31 -1000, Rick T wrote: Greetings All I have a playlist file (songs.pls) that I would like to play gapless (without the 1 second pause between tracks) can puredata due this if so is there and example?
Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string
Hi, i'm using coll, i must format the text file before using it, but works great. With a little script in bash it's easy format any text file. Regards. 2013/2/19 Charles Goyard c...@fsck.fr Hi, almost there. But I don't know why, any2bytes converts my newlines (10) into spaces (32). My input is like : line1 line2 line3 So textfile returns the whole file at once, which is what I want. Maybe mrpeach's binfile is more appropriate ? Hans-Christoph Steiner wrote: I think the pdstring/moocow objects will do that for you, [any2bytes] in particular. I want to display the content of a textfile on Gem. I know text3d does linebreaks when it encounters 10 in a string message. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list text.pd Description: Binary data ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] using puredata to play playlist gapless
Yikes - you're right Roman - sorry. That's what I get for trying to patch in my head and not in Pd. On Wed, Feb 20, 2013 at 4:11 AM, Roman Haefeli reduz...@gmail.com wrote: On Tue, 2013-02-19 at 20:57 -1000, Rick T wrote: Yes I have tried giving textfile a bang. Still no sound I'm not sure what you mean by the second response since I get sound when I click on the message with the single wav file hard coded in the message box. I don't get sound when I load a playlist text file. Ok. [textfile] does not prepend any selector to its output. I simply outputs 'filename.wav', but the messagebox [open $1, 1( expects a 'symbol filename.wav' message. Insert a an object [symbol] between [textfile] and [open $1, 1(. I made a little sketch (see attachment) which turns out to almost identical to your version. Roman On Tue, Feb 19, 2013 at 6:22 PM, Dafydd Hughes dafyd...@gmail.com wrote: Have you nitride giving textile a bang after opening the file? Also, the test message should be connected straight to readsf~, not to the message - you should hear the file played then. On Tuesday, February 19, 2013, Rick T wrote: Ok I'm still having issues I uploaded an image of the PD to see if someone spots something off the bat http://imageshack.us/photo/my-images/12/selection007p.png/ and I've attached a text file with the debugging stuff included I can hear the sound when I click on the [open /tmp/test/n41test.wav( message box But I get no sound using the open panel to load the textfile I've also attached the negplaylist.txt file and renamed everything in-case I had some strange control character hiding in the file. When I bang the [openpanel] object and clink on the [print( message box above the [textfile] I get this in the PD log - textfile or qlist contents: --- n41test.wav \; \; n42test.wav \; \; n43test.wav \; \; n44test.wav \; \; n45test.wav \; \; n46test.wav \; \; n47test.wav \; \; n48test.wav \; \; n49test.wav \; \; n50test.wav \; \; Still trying to figure out why this won't play the files. On Tue, Feb 19, 2013 at 4:15 PM, Dafydd Hughes dafyd...@gmail.com wrote: Oh silly me. You need to look at the syntax for using readsf~ - it's more complicated. First, readsf~ needs an open message e.g. open 001test.wav, then it needs a 1 to start playback. Forgive me if you already know this, but you can string 2 messages together with a comma. And to get the filename from textfile into a message like that, you need to use $1 as a placeholder. So between textfile and readsf~ you need a message saying something like open $1, 1. That'll turn into 2 messages: open 001test.wav and then 1. If the files are in the same directory as the patch, it should work (I think). Cheers Dafydd On Tue, Feb 19, 2013 at 9:06 PM, Rick T ratull...@gmail.com wrote: I had my hopes up but adding the semicolon to the end didn't help. I have all the files in the same directory and for whatever reason it just refuses to play. I don't even have any errors on the Puredata Log screen. Any other ideas? Thanks On Tue, Feb 19, 2013 at 3:28 PM, Dafydd Hughes dafyd...@gmail.com wrote: Hi Rick I think you might need a semicolon at the end of each line in your text file: 001test.wav; 002test.wav; 003test.wav; Cheers Dafydd On Tue, Feb 19, 2013 at 8:22 PM, Rick T ratull...@gmail.com wrote: Thanks for all the help/suggestions but I still seem to be running into a problem of it not playing the files. I made the changes to playlist file and edited the playlist.txt file the playlist.txt file has 001test.wav 002test.wav 003test.wav I've included the the pd patch to see if someone can tell me what I'm doing wrong Thanks. On Tue, Feb 19, 2013 at 12:08 PM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 07:47 -1000, Rick T wrote: Yes I do have the ability to change the playlist file to a text file and alter it how it looks. The thing I'm looking for is an example of gapless playing. I couldn't find one doing google search. You load your playlist (in its most simple form it would be just one filename per line) with [textfile]. You make [textfile] output its first line, feed that to [readsf~]. Then you feed the right outlet of [readsf~] - which bangs when the file is finished - back to [textfile] to make it output the next filename. Roman On Tue, Feb 19, 2013 at 12:53 AM, Roman Haefeli
Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-02-19 15:21, Charles Goyard wrote: Hi, almost there. But I don't know why, any2bytes converts my newlines (10) into spaces (32). My input is like : line1 line2 line3 So textfile returns the whole file at once, which is what I want. [textfile] usually expects lines to be terminated by semicolons, e.g. line1; line2; line3; if your file does not use semicolons as line delimiters, [textfile] will ignore CR/LF/CRLF and append all those lines into a single message [line1 line2 line3(, and [any2bytes] will properly insert a space (32) as the atom delimiter. you can tell [textfile] to use CR/LF/CRLF as line delimiters by opening the file in cr mode, like [open file.txt cr( then you will need to stop through the lines by [bang(ing [textfile] till the end is reached. if you want to read the entire file at once, use [until] (with the 2nd outlet of [textfile] fed back to the 2nd inlet of [until], so it stops banging once the textfile is done. convert each line with [any2bytes], use [list append] to append '10' (the newline), and append those lists using another [list append]. Maybe mrpeach's binfile is more appropriate ? maybe. if your file is saved as a W32 or MacOS(X) file, then your line delimiters will be CRLF resp. CR, which will show up as an unprintable character (a small rectangle). in this case you might want to replace the line delimiters with proper LF to get what you want (which is easy enough if you don't care for supporting _both_ CRLF and CR) ghmnsdf IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlEk1+sACgkQkX2Xpv6ydvSyYACdG04xEZY+OZ6mVrT2iGLIMgEN ZIsAoMM9IFrprjznZemvKa1KQH/5KlLi =jo8q -END PGP SIGNATURE- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] loading libraries rfc
To fix bug #2803987 I need everyone to spend five minutes to help add content for doc/5.reference/all_about_libraries.pd Here's mine: So far I've got three subpatches, with no content yet Here they are with a quick outline of content: 1) How to load libraries * [import] - claims to load into patch-local namespace, but I don't think it's true * [declare] - compatible across all Pds * -lib flag * namespace prefix * no prefix, if binary is in search path and is first one returned? 2) What happens when you load a library * stuff in libname_setup function gets executed * stuff in libname_setup typically adds the class to a global list * if using namespace prefix (or no prefix?) the object is then instantiated, too 3) Loading libraries in an abstraction * [declare] doesn't work * aside from syntax aesthetics this is _the_ reason to use [import] * any problems with namespace prefix here? -Jonathan ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pd 0.44 vanilla build process
I'd skip the copy and just do: ./autogen.sh ./configure make ./src/pd -nrt(-nrt so it ignores the watchdog) That's how it works on Pd-extended at least. I don't know how the Pd-vanilla files have changed since they were included in vanilla. .hc On Feb 19, 2013, at 9:55 PM, Jonathan Wilkes wrote: Hi, Can someone tell me how I'm supposed to rebuild Pd vanilla in 0.44? Build 0.43 and before: 1) cd src 2) ./configure 3) make Run 0.43 and before without installing: cd src ./pd Selectively recompile the source file I'm revising: make *** Build 0.44 1) ./autogen.sh 2) ./configure 3) make 4) cp src/pd . cp src/pd-watchdog bin/ Run 0.44: ./pd Selectively recompile 0.44: ??? if I try make, then cp src/pd . cp src/pd-watchdog bin/ my changes aren't reflected even though I watched all the recompilation messages to the console without any errors the only way I can recompile is make clean, then make which is obviously quite annoying. Any suggestions? -Jonathan ___ 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] using puredata to play playlist gapless
On Feb 19, 2013, at 4:22 PM, Jonathan Wilkes wrote: From: Scott R. Looney scottrloo...@gmail.com To: Hans-Christoph Steiner h...@at.or.at Cc: pd-list pd-list@iem.at Sent: Tuesday, February 19, 2013 2:32 PM Subject: Re: [PD] using puredata to play playlist gapless there's an interesting tool that game audio folks use that does some clever prestidigitation when encoding an MP3 and generates a gapless version. it runs on a PC, but can run under Wine pretty easily. requires old fashioned WAV files for input. here's the link. the page also has a lot of detailed information on why MP3s have this issue and how the tools solves this problem: Well, if you require WAV for input you might as well convert to OGG which AFAICT doesn't suffer from this problem. only MP3 has this problem, WAV does not either, as far as I know. Basically, avoid MP3 and you will have gapless playback everywhere. .hc ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pd 0.44 vanilla build process
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-02-20 18:55, Hans-Christoph Steiner wrote: I'd skip the copy and just do: ./autogen.sh ./configure make ./src/pd -nrt(-nrt so it ignores the watchdog) that's not needed with Pd=0.44: if the watchdog cannot be found, Pd will fallback to non-realtime. fgjasdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlElGdwACgkQkX2Xpv6ydvR0LwCgkys8p87eaOemAOi8kLtFvrAE gEgAoN/3E8WXxJyGau4MTxzbO5c/6Wxj =mdT+ -END PGP SIGNATURE- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] using puredata to play playlist gapless
Thanks so much for the help it worked On Tue, Feb 19, 2013 at 11:11 PM, Roman Haefeli reduz...@gmail.com wrote: On Tue, 2013-02-19 at 20:57 -1000, Rick T wrote: Yes I have tried giving textfile a bang. Still no sound I'm not sure what you mean by the second response since I get sound when I click on the message with the single wav file hard coded in the message box. I don't get sound when I load a playlist text file. Ok. [textfile] does not prepend any selector to its output. I simply outputs 'filename.wav', but the messagebox [open $1, 1( expects a 'symbol filename.wav' message. Insert a an object [symbol] between [textfile] and [open $1, 1(. I made a little sketch (see attachment) which turns out to almost identical to your version. Roman On Tue, Feb 19, 2013 at 6:22 PM, Dafydd Hughes dafyd...@gmail.com wrote: Have you nitride giving textile a bang after opening the file? Also, the test message should be connected straight to readsf~, not to the message - you should hear the file played then. On Tuesday, February 19, 2013, Rick T wrote: Ok I'm still having issues I uploaded an image of the PD to see if someone spots something off the bat http://imageshack.us/photo/my-images/12/selection007p.png/ and I've attached a text file with the debugging stuff included I can hear the sound when I click on the [open /tmp/test/n41test.wav( message box But I get no sound using the open panel to load the textfile I've also attached the negplaylist.txt file and renamed everything in-case I had some strange control character hiding in the file. When I bang the [openpanel] object and clink on the [print( message box above the [textfile] I get this in the PD log - textfile or qlist contents: --- n41test.wav \; \; n42test.wav \; \; n43test.wav \; \; n44test.wav \; \; n45test.wav \; \; n46test.wav \; \; n47test.wav \; \; n48test.wav \; \; n49test.wav \; \; n50test.wav \; \; Still trying to figure out why this won't play the files. On Tue, Feb 19, 2013 at 4:15 PM, Dafydd Hughes dafyd...@gmail.com wrote: Oh silly me. You need to look at the syntax for using readsf~ - it's more complicated. First, readsf~ needs an open message e.g. open 001test.wav, then it needs a 1 to start playback. Forgive me if you already know this, but you can string 2 messages together with a comma. And to get the filename from textfile into a message like that, you need to use $1 as a placeholder. So between textfile and readsf~ you need a message saying something like open $1, 1. That'll turn into 2 messages: open 001test.wav and then 1. If the files are in the same directory as the patch, it should work (I think). Cheers Dafydd On Tue, Feb 19, 2013 at 9:06 PM, Rick T ratull...@gmail.com wrote: I had my hopes up but adding the semicolon to the end didn't help. I have all the files in the same directory and for whatever reason it just refuses to play. I don't even have any errors on the Puredata Log screen. Any other ideas? Thanks On Tue, Feb 19, 2013 at 3:28 PM, Dafydd Hughes dafyd...@gmail.com wrote: Hi Rick I think you might need a semicolon at the end of each line in your text file: 001test.wav; 002test.wav; 003test.wav; Cheers Dafydd On Tue, Feb 19, 2013 at 8:22 PM, Rick T ratull...@gmail.com wrote: Thanks for all the help/suggestions but I still seem to be running into a problem of it not playing the files. I made the changes to playlist file and edited the playlist.txt file the playlist.txt file has 001test.wav 002test.wav 003test.wav I've included the the pd patch to see if someone can tell me what I'm doing wrong Thanks. On Tue, Feb 19, 2013 at 12:08 PM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 07:47 -1000, Rick T wrote: Yes I do have the ability to change the playlist file to a text file and alter it how it looks. The thing I'm looking for is an example of gapless playing. I couldn't find one doing google search. You load your playlist (in its most simple form it would be just one filename per line) with [textfile]. You make [textfile] output its first line, feed that to [readsf~]. Then you feed the right outlet of [readsf~] - which bangs when the file is finished - back to [textfile] to make it output the next filename. Roman On Tue, Feb 19, 2013 at 12:53 AM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 00:31 -1000, Rick T wrote: Greetings All I have a playlist file (songs.pls) that I would like to play gapless (without the 1
Re: [PD] Changing the defaul language in 0.43
I'm going to CC the list in case anyone else wants to change this value. Tcl looks at HKEY_CURRENT_USER\Control Panel\International\locale in particular. Its a number. This is not Pd-specific, I imagine its used by lots of apps, and perhaps even the system itself. I wouldn't recommend changing it directly, it might mess things up. There should be a way to change the Windows system so that it is set properly in English. If you really just want to force Pd-extended to be in English, the safest route is to delete all the .msg files in \Program Files\pd\po .hc On Feb 20, 2013, at 1:34 AM, rene beekman wrote: Hans, I'm replyting off-list so we don't burden the list with this. Attached are screenshots from the registry entries on two of the machines. As you can see from the menus of regedit itself, the OS is running in English, though I am not sure where that is set in the International settings. Some of the other machines (I'm waiting for their owners to mail the screenshots to me) have localeName set to en_US en location to US, but Pd still opens in Bulgarian. I'll send the other screenshots when I get them. Thanks! Rene On Mon, Feb 18, 2013 at 4:53 PM, Hans-Christoph Steiner h...@at.or.at wrote: Run 'regedit' in the Run command thing on the start menu, and look for: HKEY_CURRENT_USER\Control Panel\International .hc On 02/18/2013 12:57 AM, rene beekman wrote: Hans, thanks for the reply On the Mac it works for me. Applelocale reports en_BG and Pd properly shows up in English. The windows machines I will be able to check tomorrow evening. How do I find the proper registry keys there? Date: Fri, 15 Feb 2013 09:54:35 -0500 From: Hans-Christoph Steiner h...@at.or.at Subject: Re: [PD] Changing the defaul language in 0.43 To: pd-list@iem.at Message-ID: 511e4c2b.2030...@at.or.at Content-Type: text/plain; charset=ISO-8859-1 Pd-extended should use the same language that the user is using. If not, its a bug. Pd-extended on Mac OS X looks at what language the Dock is configured in and uses that. Apparently, this is not reliable, since I guess people buy systems in one language, then use them in another, and the Dock doesn't seem to respect that change. You can check the language of your Dock and your global locale by running this in the Terminal: defaults read com.apple.dock loc defaults read NSGlobalDomain AppleLocale The easiest fix it to probably set the language of the Dock like this: defaults write com.apple.dock loc en_US I have no idea why its failing on Windows, maybe for a similar reason. As far as I could tell, Pd-extended uses the 'proper' registry value: HKEY_CURRENT_USER\Control Panel\International Could you send the value of that registry key on machines that fail to respect the user setting? .hc On 02/15/2013 01:03 AM, rene beekman wrote: How do I set / change the default language on both Windoze and Mac for 0.43 ? I don't have a Windoze machine myself, so can't test there, but the readme for the Mac version does not say anything about it. There also seems to be no setting in the preference file for this (or at least none that I could find). I searched the list-archives and the best instruction I found was to delete all .msg files inside /po, which seems a bit crude to me. Is there a more elegant way to do this? I understand from an older discussion that the assumption was that non-technical people were assumed to want to use Pd in their native language. I did installs this week on about a dozen machines and apparently they all belonged to non-technical people, even though every single one of them runs all software on their machine in English only... Wouldn't it be wiser to assume that whatever the language is that the OS is running in, is also the language that people really want to use their software in? Just my two cents. a.pngb.pngregistry editor.jpgregistry editor2.jpg ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pd 0.44 vanilla build process
From: IOhannes m zmoelnig zmoel...@iem.at To: pd-list@iem.at Sent: Wednesday, February 20, 2013 1:45 PM Subject: Re: [PD] pd 0.44 vanilla build process -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-02-20 18:55, Hans-Christoph Steiner wrote: I'd skip the copy and just do: ./autogen.sh ./configure make ./src/pd -nrt (-nrt so it ignores the watchdog) that's not needed with Pd=0.44: if the watchdog cannot be found, Pd will fallback to non-realtime. Thanks for the help. Actually it's not such a big deal to do the cp command. The main problem is that when I make a src code change and do make again, it obviously recompiles the changed files but when I run pd I end up with the old behavior, so it's obviously not updating everything correctly. The src/pd file is a bash script, not an executable, and it seems I have to do make install with su privileges if I want to make an executable. I don't want to go to that trouble, nor do make clean make every time I make changes and test them out. -Jonathan fgjasdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlElGdwACgkQkX2Xpv6ydvR0LwCgkys8p87eaOemAOi8kLtFvrAE gEgAoN/3E8WXxJyGau4MTxzbO5c/6Wxj =mdT+ -END PGP SIGNATURE- ___ 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] pd 0.44 vanilla build process
Jonathan, if you do ./configure with option --prefix=absolute path to root dir of that Pd distribution, you can do a local install without su privileges. This doesn't solve the issue with updating but anyway it's convenient. Katja On Wed, Feb 20, 2013 at 11:47 PM, Jonathan Wilkes jancs...@yahoo.comwrote: From: IOhannes m zmoelnig zmoel...@iem.at To: pd-list@iem.at Sent: Wednesday, February 20, 2013 1:45 PM Subject: Re: [PD] pd 0.44 vanilla build process -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-02-20 18:55, Hans-Christoph Steiner wrote: I'd skip the copy and just do: ./autogen.sh ./configure make ./src/pd -nrt(-nrt so it ignores the watchdog) that's not needed with Pd=0.44: if the watchdog cannot be found, Pd will fallback to non-realtime. Thanks for the help. Actually it's not such a big deal to do the cp command. The main problem is that when I make a src code change and do make again, it obviously recompiles the changed files but when I run pd I end up with the old behavior, so it's obviously not updating everything correctly. The src/pd file is a bash script, not an executable, and it seems I have to do make install with su privileges if I want to make an executable. I don't want to go to that trouble, nor do make clean make every time I make changes and test them out. -Jonathan fgjasdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlElGdwACgkQkX2Xpv6ydvR0LwCgkys8p87eaOemAOi8kLtFvrAE gEgAoN/3E8WXxJyGau4MTxzbO5c/6Wxj =mdT+ -END PGP SIGNATURE- ___ 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 ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string
Hi, Santi wrote: i'm using coll, i must format the text file before using it, but works great. With a little script in bash it's easy format any text file. Sure, but if I am to modify the file outside pd, I can as well roll a perl script that generates an abstraction with a message box containing the string selector and my text converted into ascii codes. The idea is to try to do stuff from within pd :). ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] [gem] Looking for an abstraction for converting textfiles in text3d string
IOhannes m zmoelnig wrote: you can tell [textfile] to use CR/LF/CRLF as line delimiters by opening the file in cr mode, like [open file.txt cr( then you will need to stop through the lines by [bang(ing [textfile] till the end is reached. if you want to read the entire file at once, use [until] (with the 2nd outlet of [textfile] fed back to the 2nd inlet of [until], so it stops banging once the textfile is done. convert each line with [any2bytes], use [list append] to append '10' (the newline), and append those lists using another [list append]. Ok here's my take to this. I was unable to make it work with only two list append, so I used 1 append and 2 prepend. There sure is a more logical way to that. But at least it works :). Please correct my patch and help me learn ! Thanks a lot for your help. Charles #N canvas 2 47 1276 751 10; #X declare -lib moocow -lib Gem -lib mrpeach; #X obj 210 472 gemhead; #X obj 22 78 gemwin; #X obj 267 472 prepend string; #X obj 267 508 text3d; #X obj 22 28 declare -lib moocow -lib Gem -lib mrpeach; #X obj 220 288 textfile; #X msg 220 209 clear \, read essai2.txt cr \, rewind; #X obj 235 246 until; #X obj 235 149 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 255 362 any2bytes; #X obj 267 391 list append 10; #X obj 267 446 list prepend; #X obj 267 419 list prepend; #X obj 235 174 t b b b; #X msg 22 53 create \, 1 \, frame 5; #X connect 0 0 3 0; #X connect 2 0 3 0; #X connect 5 0 9 0; #X connect 5 1 7 1; #X connect 6 0 5 0; #X connect 7 0 5 0; #X connect 8 0 13 0; #X connect 9 0 10 0; #X connect 10 0 12 0; #X connect 11 0 2 0; #X connect 11 0 12 1; #X connect 12 0 11 0; #X connect 13 0 7 0; #X connect 13 1 6 0; #X connect 13 2 12 1; #X connect 13 2 11 1; #X connect 14 0 1 0; line 1 line 2 line 3 line 4 line 5 ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Changing the defaul language in 0.43
Hans, Thanks for your reply and for the time taken to look into this. For what it's worth, I'm seeing machines that have a locale value of 409, which should be US-English according to this and other tables http://msdn.microsoft.com/en-us/library/ms903928.aspx, still open Pd in localized versions. On Wed, Feb 20, 2013 at 9:35 PM, Hans-Christoph Steiner h...@at.or.at wrote: I'm going to CC the list in case anyone else wants to change this value. Tcl looks at HKEY_CURRENT_USER\Control Panel\International\locale in particular. Its a number. This is not Pd-specific, I imagine its used by lots of apps, and perhaps even the system itself. I wouldn't recommend changing it directly, it might mess things up. There should be a way to change the Windows system so that it is set properly in English. If you really just want to force Pd-extended to be in English, the safest route is to delete all the .msg files in \Program Files\pd\po .hc On Feb 20, 2013, at 1:34 AM, rene beekman wrote: Hans, I'm replyting off-list so we don't burden the list with this. Attached are screenshots from the registry entries on two of the machines. As you can see from the menus of regedit itself, the OS is running in English, though I am not sure where that is set in the International settings. Some of the other machines (I'm waiting for their owners to mail the screenshots to me) have localeName set to en_US en location to US, but Pd still opens in Bulgarian. I'll send the other screenshots when I get them. Thanks! Rene On Mon, Feb 18, 2013 at 4:53 PM, Hans-Christoph Steiner h...@at.or.at wrote: Run 'regedit' in the Run command thing on the start menu, and look for: HKEY_CURRENT_USER\Control Panel\International .hc On 02/18/2013 12:57 AM, rene beekman wrote: Hans, thanks for the reply On the Mac it works for me. Applelocale reports en_BG and Pd properly shows up in English. The windows machines I will be able to check tomorrow evening. How do I find the proper registry keys there? Date: Fri, 15 Feb 2013 09:54:35 -0500 From: Hans-Christoph Steiner h...@at.or.at Subject: Re: [PD] Changing the defaul language in 0.43 To: pd-list@iem.at Message-ID: 511e4c2b.2030...@at.or.at Content-Type: text/plain; charset=ISO-8859-1 Pd-extended should use the same language that the user is using. If not, its a bug. Pd-extended on Mac OS X looks at what language the Dock is configured in and uses that. Apparently, this is not reliable, since I guess people buy systems in one language, then use them in another, and the Dock doesn't seem to respect that change. You can check the language of your Dock and your global locale by running this in the Terminal: defaults read com.apple.dock loc defaults read NSGlobalDomain AppleLocale The easiest fix it to probably set the language of the Dock like this: defaults write com.apple.dock loc en_US I have no idea why its failing on Windows, maybe for a similar reason. As far as I could tell, Pd-extended uses the 'proper' registry value: HKEY_CURRENT_USER\Control Panel\International Could you send the value of that registry key on machines that fail to respect the user setting? .hc On 02/15/2013 01:03 AM, rene beekman wrote: How do I set / change the default language on both Windoze and Mac for 0.43 ? I don't have a Windoze machine myself, so can't test there, but the readme for the Mac version does not say anything about it. There also seems to be no setting in the preference file for this (or at least none that I could find). I searched the list-archives and the best instruction I found was to delete all .msg files inside /po, which seems a bit crude to me. Is there a more elegant way to do this? I understand from an older discussion that the assumption was that non-technical people were assumed to want to use Pd in their native language. I did installs this week on about a dozen machines and apparently they all belonged to non-technical people, even though every single one of them runs all software on their machine in English only... Wouldn't it be wiser to assume that whatever the language is that the OS is running in, is also the language that people really want to use their software in? Just my two cents. a.pngb.pngregistry editor.jpgregistry editor2.jpg ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Changing the defaul language in 0.43
Hello, I am following this thread with interest and step by step starting to understand the implications. Just a curious wonder... is it very complicated to implement a new functionality where a specific .msg file is selected and wanted language choosen, at least temporarily until next active choice? Realize it´s not there... but thinking ahead. /Björn Eriksson On Wed, Feb 20, 2013 at 8:35 PM, Hans-Christoph Steiner h...@at.or.at wrote: I'm going to CC the list in case anyone else wants to change this value. Tcl looks at HKEY_CURRENT_USER\Control Panel\International\locale in particular. Its a number. This is not Pd-specific, I imagine its used by lots of apps, and perhaps even the system itself. I wouldn't recommend changing it directly, it might mess things up. There should be a way to change the Windows system so that it is set properly in English. If you really just want to force Pd-extended to be in English, the safest route is to delete all the .msg files in \Program Files\pd\po .hc On Feb 20, 2013, at 1:34 AM, rene beekman wrote: Hans, I'm replyting off-list so we don't burden the list with this. Attached are screenshots from the registry entries on two of the machines. As you can see from the menus of regedit itself, the OS is running in English, though I am not sure where that is set in the International settings. Some of the other machines (I'm waiting for their owners to mail the screenshots to me) have localeName set to en_US en location to US, but Pd still opens in Bulgarian. I'll send the other screenshots when I get them. Thanks! Rene On Mon, Feb 18, 2013 at 4:53 PM, Hans-Christoph Steiner h...@at.or.at wrote: Run 'regedit' in the Run command thing on the start menu, and look for: HKEY_CURRENT_USER\Control Panel\International .hc On 02/18/2013 12:57 AM, rene beekman wrote: Hans, thanks for the reply On the Mac it works for me. Applelocale reports en_BG and Pd properly shows up in English. The windows machines I will be able to check tomorrow evening. How do I find the proper registry keys there? Date: Fri, 15 Feb 2013 09:54:35 -0500 From: Hans-Christoph Steiner h...@at.or.at Subject: Re: [PD] Changing the defaul language in 0.43 To: pd-list@iem.at Message-ID: 511e4c2b.2030...@at.or.at Content-Type: text/plain; charset=ISO-8859-1 Pd-extended should use the same language that the user is using. If not, its a bug. Pd-extended on Mac OS X looks at what language the Dock is configured in and uses that. Apparently, this is not reliable, since I guess people buy systems in one language, then use them in another, and the Dock doesn't seem to respect that change. You can check the language of your Dock and your global locale by running this in the Terminal: defaults read com.apple.dock loc defaults read NSGlobalDomain AppleLocale The easiest fix it to probably set the language of the Dock like this: defaults write com.apple.dock loc en_US I have no idea why its failing on Windows, maybe for a similar reason. As far as I could tell, Pd-extended uses the 'proper' registry value: HKEY_CURRENT_USER\Control Panel\International Could you send the value of that registry key on machines that fail to respect the user setting? .hc On 02/15/2013 01:03 AM, rene beekman wrote: How do I set / change the default language on both Windoze and Mac for 0.43 ? I don't have a Windoze machine myself, so can't test there, but the readme for the Mac version does not say anything about it. There also seems to be no setting in the preference file for this (or at least none that I could find). I searched the list-archives and the best instruction I found was to delete all .msg files inside /po, which seems a bit crude to me. Is there a more elegant way to do this? I understand from an older discussion that the assumption was that non-technical people were assumed to want to use Pd in their native language. I did installs this week on about a dozen machines and apparently they all belonged to non-technical people, even though every single one of them runs all software on their machine in English only... Wouldn't it be wiser to assume that whatever the language is that the OS is running in, is also the language that people really want to use their software in? Just my two cents. a.pngb.pngregistry editor.jpgregistry editor2.jpg ___ 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] [gem] Looking for an abstraction for converting textfiles in text3d string
On Thu, 2013-02-21 at 01:50 +0100, Charles Goyard wrote: IOhannes m zmoelnig wrote: you can tell [textfile] to use CR/LF/CRLF as line delimiters by opening the file in cr mode, like [open file.txt cr( then you will need to stop through the lines by [bang(ing [textfile] till the end is reached. if you want to read the entire file at once, use [until] (with the 2nd outlet of [textfile] fed back to the 2nd inlet of [until], so it stops banging once the textfile is done. convert each line with [any2bytes], use [list append] to append '10' (the newline), and append those lists using another [list append]. Ok here's my take to this. I was unable to make it work with only two list append, so I used 1 append and 2 prepend. There sure is a more logical way to that. But at least it works :). Please correct my patch and help me learn ! Thanks a lot for your help. Your patch breaks when you have a line with a comma in your text file. Such a line is broken into two lines. Regarding your insistence to do that task with Pd, I think you should reconsider your reasoning. Pd is not particular strong in string processing, exactly because of reasons like this. IMHO, your best bet is to not use character representation at all in Pd which is probably the only safe way not to get in conflict with special characters in Pd (at least as long as there isn't a proper way to escape them). See attached example with [mrpeach/binfile] - [text3d]. This example doesn't do any processing at all, it only passes the data untouched to [text3d]. If you really want to do some processing, I'd probably do that outside of Pd. There are plenty of ways to roll your own external class with any of several scripting languages (bash, lua, python, tcl, etc.). I'd probably offload all the real string processing to such an external. Roman #N canvas 0 57 467 569 10; #X declare -lib moocow -lib Gem -lib mrpeach; #X obj 103 486 gemhead; #X obj 22 78 gemwin; #X obj 174 526 text3d; #X obj 22 28 declare -lib moocow -lib Gem -lib mrpeach; #X msg 22 53 create \, 1 \, frame 5; #X obj 329 434 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 329 455 openpanel; #X msg 329 480 font \$1; #X obj 193 287 mrpeach/binfile; #X msg 213 228 clear \, read essai2.txt cr \, rewind; #X msg 193 314 add2 \$1; #X obj 173 180 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 193 251 until; #X msg 308 296 set; #X obj 174 204 t b b b; #X obj 174 438 list prepend string; #X obj 174 464 list trim; #X msg 174 376; #X connect 0 0 2 0; #X connect 4 0 1 0; #X connect 5 0 6 0; #X connect 6 0 7 0; #X connect 7 0 2 0; #X connect 8 0 10 0; #X connect 8 2 12 1; #X connect 9 0 8 0; #X connect 10 0 17 0; #X connect 11 0 14 0; #X connect 12 0 8 0; #X connect 13 0 17 0; #X connect 14 0 17 0; #X connect 14 1 12 0; #X connect 14 2 13 0; #X connect 14 2 9 0; #X connect 15 0 16 0; #X connect 16 0 2 0; #X connect 17 0 15 0; ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list