Re: [PD] Ugly looking fonts in printed postscript patches on MacOsX
Mr. Puckette, Actually I am not familiar with awk and I couldn’t figure out how to use this script. Anyway, your script gave me an idea. I edited a postscript file and found the line related to the text justification. I think I can write a shell script now and mass change the necessary lines in all my .ps files by using the Gnu 'sed’ command. Thanks. On 10 Dec 2013, at 01:19, Miller Puckette m...@ucsd.edu wrote: Hi all - I've used awk scripts. The exact thing to do depends on font size and on windowing system. Most recently my awk script was this: BEGIN {last = -10} /findfont 8/ { last=NR $1 = /Courier-Bold $3 = 11.7 + 2 } { if (NR == last+2) { $1 = $1+1 $2 = $2-3 } print } cheers Miller On Tue, Dec 10, 2013 at 12:47:18AM +0200, Arda Eden wrote: Hi, I am just about to finish a Turkish book about Pure Data. I am writing my book using Latex. The patch file example figures I use are directly printed (to file) as postscript files. But the fonts inside the object boxes are vertically justified to the top and that looks ugly (see the sample in attachment). Any ideas ? Thanks. ___ 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] pvoc 64 bit?
hallo, has anybody already ported the bsaylor pvoc external to 64 bit linux? best, alex ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Ugly looking fonts in printed postscript patches on MacOsX
Hi, After a few hours of work I decided that my solution was not a good idea. :) If I go back with Mr. Puckette’s script, how can I use it ? Is it a command line script or a piece of code that will work in pure data ? Thanks. On 10 Dec 2013, at 10:34, Arda Eden ardae...@gmail.com wrote: Mr. Puckette, Actually I am not familiar with awk and I couldn’t figure out how to use this script. Anyway, your script gave me an idea. I edited a postscript file and found the line related to the text justification. I think I can write a shell script now and mass change the necessary lines in all my .ps files by using the Gnu 'sed’ command. Thanks. On 10 Dec 2013, at 01:19, Miller Puckette m...@ucsd.edu wrote: Hi all - I've used awk scripts. The exact thing to do depends on font size and on windowing system. Most recently my awk script was this: BEGIN {last = -10} /findfont 8/ { last=NR $1 = /Courier-Bold $3 = 11.7 + 2 } { if (NR == last+2) { $1 = $1+1 $2 = $2-3 } print } cheers Miller On Tue, Dec 10, 2013 at 12:47:18AM +0200, Arda Eden wrote: Hi, I am just about to finish a Turkish book about Pure Data. I am writing my book using Latex. The patch file example figures I use are directly printed (to file) as postscript files. But the fonts inside the object boxes are vertically justified to the top and that looks ugly (see the sample in attachment). Any ideas ? Thanks. ___ 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] Ugly looking fonts in printed postscript patches on MacOsX
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2013-12-10 14:28, Arda Eden wrote: Hi, After a few hours of work I decided that my solution was not a good idea. :) If I go back with Mr. Puckette?s script, how can I use it ? Is it a command line script or a piece of code that will work in pure data ? it' an 'awk' script, design to be executed by awk. something like the following should work: - - save the script snippet as fixfonts.awk - - then run: awk -f fixfonts.awk exportedpatchfile.ps fixed.ps see man awk for more information. fgamsdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBCAAGBQJSpyU4AAoJELZQGcR/ejb4sUIP/jI3+qI2MFN8U6m20R3o7iRe I5E+EztKC3NNslepK8ursQM+42H6I44PZ6zYLk4eW9CYOLEEAqRQSmxG3HjSZtRS mBSLO5P5oeScnqX2jV0csLOkIpttl7IoPMIw6GOF7UT9tIvmtp60X5I9xiOAsQ1L WRap1SS+6f2eppkQFwOBU4DkHBiyWWmQ4ykyRYcJPFqqIkgGvltiTFVyYyMpnSx6 IKbVv6rGOxdZ+C0NnW6288/xPdm0ABSGmq7iKz0pU5IidCig/PLIepSsWsnDra6h XcXKfIEc+Mpz7Rw4vfDuD5KvOKn9b/qJtaeyWVsBxrBl4UbTaoBtgCSsRkHMmUJc YEq1Kt5PzaHYPd7/TlHGafc1eD5GxpzwyyExxhKHwxJsI+La0QZh/7JNBJmatRbC xllMW1hP46ut0TNa9qfAvsemXcUoQyOFYnIRyqYUPfMuHSmqUitNIt5H87mrIc79 ABPAH/t7YhHvBYcYxfBiuVOioT4iH934qnPIP/DVMcJkERNhVO6qkbaFKO95EDNO c9UFyrOmuamwUslzkSCv+riJB3xDsIc2DZPMunim20OP8K1YfEBSDOWkL08Yup9E 4zE0IS9T+K62i0f7AaJoHtzEZ0LzgPaPYhUyl6rrAjsKrSYrivmtcEx3DKGJAyWo Zzv3Io7MhRY27hNgsAQn =bhVE -END PGP SIGNATURE- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Ugly looking fonts in printed postscript patches on MacOsX
Oh thank you, I’ll check it. On 10 Dec 2013, at 16:29, IOhannes m zmoelnig zmoel...@iem.at wrote: Signed PGP part On 2013-12-10 14:28, Arda Eden wrote: Hi, After a few hours of work I decided that my solution was not a good idea. :) If I go back with Mr. Puckette?s script, how can I use it ? Is it a command line script or a piece of code that will work in pure data ? it' an 'awk' script, design to be executed by awk. something like the following should work: - save the script snippet as fixfonts.awk - then run: awk -f fixfonts.awk exportedpatchfile.ps fixed.ps see man awk for more information. fgamsdr IOhannes ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list signature.asc Description: Message signed with OpenPGP using GPGMail ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] avoid phasing in phasor~ - granulator
Hello list, I'm trying to program a granulator with 4 reading heads, controlled by a [phasor~ 10] and overlapping phases. Unfortunately I get some phasing. I reduced it by adding the attached module, which generates a random number between the given limits each time a grain starts. But I would like to ask if you know any other strategies for this. Best, jmmmp noise-phase~.pd Description: application/puredata ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Find distance to a line in 3d space
Am 06.12.2013, 00:51 Uhr, schrieb Claude Heiland-Allen cla...@mathr.co.uk: On 05/12/13 23:40, João Pais wrote: Hello list, I had a doubt, will try to explain. I wanted to define a line in a 3d space through 2 points, and be able to find out the distance from another point to that line. Since I'm very bad at math, I wanted to know if anyone has done something similar, or knows how to get to it. http://paulbourke.net/geometry/pointlineplane/ first example on the page, you just need to clamp u to [0..1] if you want to make it work for a line segment instead of an infinite line. it looks interesting, and I also checked for more content with a similar title. the thing is, my math/geometry skills are too bad, and I don't understand where they get the formulas for the points and lines. I'll keep watching the links, but I might not get it in time for the purpose I was looking for. thanks anyway, João ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Ugly looking fonts in printed postscript patches on MacOsX
Hi Arda, Whatever script you use doesn't matter. The point is that you search and replace text in the ps-file, so open the file with a text editor (e.g. gedit). For me it usually works to change the following line for all textfields in the patch (e.g. use Ctrl-H): Old: 13 -0.0 0.0 0 false DrawText New: 13 -0.0 -0.3 0 false DrawText I prefer to use Courier-Bold for pd.ps-images. To change the font search for the word font and look for any font family (Ctrl-F or Ctrl-H). The standard is DejaVu...etc.. (I guess something with mono and bold, but I don't know exactly for I changed the default to UbuntuMono-Bold). Do the same trick again with search and replace and try again until you like the result. If you have lots of files it would make sense to write a script for the search and replace thing. Have fun! ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list