Hi all,
I'm hoping someone might be able to help out with a patch I'm working on (attached to this mail). Basically the patch is designed to trigger samples when a specific key is pressed on the computer keyboard. Also I want to have scrolling text in gem which advances with each key press.
My problems are:
Character keys and the Function keys work fine, but I would like to use the number keys as well.
gem window AND specify how much of the text file should be read at a time?
same time and the audio was stuttering constantly! Any ideas for a solution?
many thanks for any advice
James
Hi James,
James Dunn wrote:
- Using keyname, the number keys don't work with route - why is this?
Character keys and the Function keys work fine, but I would like to use the number keys as well.
Number keys work with [key], however then they are ASCII value, which you would have to translate (maybe via a lookup to a [textfile] or [col] object) to their actual names.
- I just tried running the gem window and triggering the sample at the
same time and the audio was stuttering constantly! Any ideas for a solution?
Bigger buffer/latency perhaps, but the best way is to separate the GEM and the audio threads by running two instances of Pd, one with -noaudio for GEM and the other for audio, and then use OSC or netsend/netreceive to communicate between the two running instances. A shell script of some kind would be best to start both instances with the proper patches.
Best! D.
Quoth Derek Holzer, on 14/09/09 12:43:
Bigger buffer/latency perhaps, but the best way is to separate the GEM and the audio threads by running two instances of Pd, one with -noaudio for GEM and the other for audio, and then use OSC or netsend/netreceive to communicate between the two running instances. A shell script of some kind would be best to start both instances with the proper patches.
Best! D.
Thanks Derek, running two instances of pd from a script works a treat with netsend and netreceive!
Can anyone advise the best way to achieve scrolling text in gem? I want the text to advance after certain keystrokes. I'm still having trouble with commas in textfile too!
thanks
James
For the 2nd point. ++
Jack
Le lundi 14 septembre 2009 à 12:36 +0100, James Dunn a écrit :
Hi all,
I'm hoping someone might be able to help out with a patch I'm working on (attached to this mail). Basically the patch is designed to trigger samples when a specific key is pressed on the computer keyboard. Also I want to have scrolling text in gem which advances with each key press.
My problems are:
- Using keyname, the number keys don't work with route - why is this?
Character keys and the Function keys work fine, but I would like to use the number keys as well.
- Textfile only reads up to the comma - how can I print commas to the
gem window AND specify how much of the text file should be read at a time?
- I just tried running the gem window and triggering the sample at
the same time and the audio was stuttering constantly! Any ideas for a solution?
many thanks for any advice
James _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Or, this patch can help you (actually, i don't know what you are looking for ;) ++
Jack
Le lundi 14 septembre 2009 à 17:17 +0200, Jack a écrit :
For the 2nd point. ++
Jack
Le lundi 14 septembre 2009 à 12:36 +0100, James Dunn a écrit :
Hi all,
I'm hoping someone might be able to help out with a patch I'm working on (attached to this mail). Basically the patch is designed to trigger samples when a specific key is pressed on the computer keyboard. Also I want to have scrolling text in gem which advances with each key press.
My problems are:
- Using keyname, the number keys don't work with route - why is this?
Character keys and the Function keys work fine, but I would like to use the number keys as well.
- Textfile only reads up to the comma - how can I print commas to the
gem window AND specify how much of the text file should be read at a time?
- I just tried running the gem window and triggering the sample at
the same time and the audio was stuttering constantly! Any ideas for a solution?
many thanks for any advice
James _______________________________________________ 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
Quoth Jack, on 14/09/09 19:25:
Or, this patch can help you (actually, i don't know what you are looking for ;) ++
Jack
Thanks for those patches Jack. I don't know much about gem but I'm learning! I'm working with a text file of 6000+ words and what I really want is to have the first 10 lines or so displayed in a gem window (fullscreen eventually) which then scrolls down when certain keys are pressed. The commas are fixed thanks to your patch, however I now have the following problems:
is really buggy. it has no border and when the window is destroyed it leaves black patches behind. Is this a problem with gem or xorg / xserver?
James Dunn wrote:
The commas are fixed thanks to your patch, however I now have the following problems:
- Apostrophes are not printed properly in the gem window
Usually I use UTF-8 to circumvent all of these problems. Attached are my tools I use for it.
It's a small command line tool to convert text files to utf8 coded decimals and an example patch showing use of the converted text in Gem.
cheers Martin
James Dunn wrote:
The commas are fixed thanks to your patch, however I now have the following problems:
- Apostrophes are not printed properly in the gem window
Usually I use UTF-8 to circumvent all of these problems. Attached are my tools I use for it.
It's a small command line tool to convert text files to utf8 coded decimals and an example patch showing use of the converted text in Gem.
cheers Martin
Quoth Martin Schied, on 16/09/09 16:02:
Usually I use UTF-8 to circumvent all of these problems. Attached are my tools I use for it.
It's a small command line tool to convert text files to utf8 coded decimals and an example patch showing use of the converted text in Gem.
cheers Martin
Thanks Martin, this is really useful! What I really need now is a way to automatically generate carriage returns or EOL's when the text hits the edge of the window - is this something that can be done in gem or do I have to format the text first in a text editor first?
thanks
James
James Dunn wrote:
Thanks Martin, this is really useful! What I really need now is a way to automatically generate carriage returns or EOL's when the text hits the edge of the window - is this something that can be done in gem or do I have to format the text first in a text editor first?
Hi,
spent some time and made an abstraction for this (see attachment).
I think formatting it outside of Pd is much more simple - but less flexible inside your patch. I had some problems when trying to use doubled "newlines" to create new paragraphs. text3d and text2d display some strange characters in this case.
If it has not to be dynamically changeable text inside your patch you could use latex or something else to format text into pages and then convert them to pixel graphics. Like this you can also generate good looking hyphened justification which is hardly doable within pd.
I figured out a way to have png from latex with nice alpha transparency: latex --> ps, split ps into single pages, ps2eps, eps2png. you'll find them here: http://www.tm.uka.de/~bless/ps2eps http://search.cpan.org/~jv/eps2png/
an other more out-of-the-box-method would be using your favorite office software, making pdfs and convert them to pixel graphics (using imagemagick or something else). Or simply use inkscape and export them to png. :D
cheers Martin