Quantcast
Channel: Processing Forum
Browsing all 1768 articles
Browse latest View live
↧

Re : Network: Code review - Detecting Client() timeout and behaving well...

That's what I though originally...   But no it is not null, hence the workaround.  Also, the primary motivation for posting; I expect a more direct option.   

View Article


Re : Network: Code review - Detecting Client() timeout and behaving well...

Maybe you can use:http://processing.org/reference/libraries/net/clientEvent_.htmlwhich is called when there's incoming message from server.So you may initiate connection, and if over the period of 5...

View Article


Outputting 6 independent audio channels with Minim or other lib...

I'm wondering if Minim will do what I want and if so how, or whether another library is better, and could use some help.It's for Halloween at my house (non-commercial).  I want to place about 6...

View Article

Re : Problems with Audio Files

I guess I'm a bit confused in a way.If the key is pressed and the key is space or 1, then it jumps to the other function, right?Within that function, why can't it check for a new key press? I now see...

View Article

Re : Problems with Audio Files

2 online examples of using the pair keyPressed() & keyReleased callback...

View Article


best new BEST high movies

Please source the watch 2 Guns online. Also click here. Please click here the watch In a World online. Also Follow link. Please Click this to watch the watch Pacific Rim online. Also Click here to...

View Article

Re : clearing the screen without calling to background() for PDF export

Many thanks for your help dimkira) correct, using beziers, etcb) correct. When the generation is completec) yes, my screen. The pdf now is created, completed, and close. For the next vector I will...

View Article

Re : clearing the screen without calling to background() for PDF export

and do you need shapes as Vectors inside PDF or as raster image? (because i have a feeling that now when you're saving your vectorial shapes to PDF with image() they all turn into pixels)?

View Article


Re : clearing the screen without calling to background() for PDF export

I need them as vectors to preserve maximum editability in Illustrator, not raster image.Currently when I save the PDF, the vectors are preserved properly, not turned into raster images. The only thing...

View Article


Re : clearing the screen without calling to background() for PDF export

if you're using beginRecord / endRecord to write multiple files (part c in your list), can you clear the screen before the beginRecord()? that way it should clear the visible screen but won't be...

View Article

Re : clearing the screen without calling to background() for PDF export

kooogy you hit the nail!that is exactly what I wanted. That was a very smart answer that I didn't think of.thank you very much indeed and in general to all of you that have tried to help me :) :)

View Article

Serial Library: Connect and disconnect

I need to connect and disconnect the serial port while my draw() loop is running. I can connect once (in setup()) using: myPort = new Serial (this, Serial.list()[0], 9600);And I can disconnect (in...

View Article

.write() function crashes entire program

I am writing a program to create a GUI on my screen that communicates over the serial port to an Arduino to control the color of an RGB LED. The last line in the draw() loop is writing to the serial...

View Article


Re : Serial Library: Connect and disconnect

Just a guess as I don't have such devices. Create 2 methods: createConnection() . closeConnection() . Within closeConnection() , make myPort = null; as also a flag to indicate it's not active anymore:...

View Article

How does Serial use parity?

I am using serial for a project, and want the added protection that a parity bit can bring, so I built my own parity check before discovering that both Arduino and Processing support parity bits. But...

View Article


How do I send data to only one client (using the network library)? [SOLVED!]

When I use serverName.write() it sends out data to every client. I want to only send data to one client even when connected to multiple clients. I've tried creating an array of servers so that the...

View Article

Re : How do I send data to only one client (using the network library)?...

My understanding - and I may very well be wrong about this - is that you don't. You send the message to all the clients, and those clients that the message is not intended for should simply ignore it....

View Article


Re : How do I send data to only one client (using the network library)?...

I thought about that and I really don't like that solution. Besides wasting bandwidth (since the data sent would grow by N^2 (N = number of clients) instead of N since every new client would mean...

View Article

Re : How do I send data to only one client (using the network library)?...

In this case, you probably need to go down to Java itself. Study the source code of Server and Client, look at the Java reference of the classes and methods they use, and see if this can modified to...

View Article

Re : How do I send data to only one client (using the network library)?...

If you look at implementation of the write() method, you will see that all it does, just forwards the data to the Client.write().So in order to write to specific client, all you have to do is to save...

View Article
Browsing all 1768 articles
Browse latest View live