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

OutOfMemoryError with minim

Hi guysI've made a sketch to launch some mp3 files with minim and a button on my arduino. There is a .txt containing sond names, and the program loads those names to play mp3 in a random way. It's...

View Article


Re : simple IPimage to PDF doesn't work

You changed according to my first remark, not to my second one. All drawings on the PDF surface must be prefixed by the PDF PGraphics name.PImage img;import processing.pdf.*;PGraphicsPDF my_pdf;void...

View Article


Re : OutOfMemoryError with minim

Why do you load titres.txt on each function? Declare the array globally and load it in setup().Note that you should call size() at the start of setup(), even with a dummy size. Not sure if it changes...

View Article

Re : OutOfMemoryError with minim

Thank you for your reply ! I load titres.txt on each function because when I declare the array globally, I get this error :The file "titres.txt" is missing or inaccessible, make sure the URL is valid...

View Article

Image may be NSFW.
Clik here to view.

Null pointer exception

 I get a null pointer exception error message and all i am trying to do is apply text to the programe with an int for the player score... However when i call upon the function of the ScoreUp class in...

View Article


Re : Null pointer exception

Is the score initialized? did you call the constructor?

View Article

NullPointerException even though mp3 file is in data folder.

Hi,I'm trying to get a song to play with Minim, but it's not working because of the error NullPointerException even though the file is in the data folder. I'm using a global variable AudioPlayer...

View Article

OPENGL rendering multiple windows (frames) ?

hi,i'd like to have a preview window popping up, showing some 3d stuff and closing afterwards (as soon as you click the X in the title bar). so far i am almost able to do so, my big problem is: if i...

View Article


Re : Null pointer exception

You don't necessarily need a constructor. You can always call the default constructor, which has no parameters, likeScore score = new Score();If you just write Score score;and want access variables of...

View Article


Re : problem with data transmission

although lettura is initialized as String[3].inlettura= split(myString,':');you create a new String array, which seems not to have 3 Strings. Print out myString and check if there are two colons in it.

View Article

Re : Null pointer exception

Ive started at university learning this stuff.... cheers for your help.

View Article

Re : problem with data transmission

yes, but the problem is that the string myString is not always long the same as it should bean example of correct string is 12345:100:1the first number, 12345 is the time in the function millis()the...

View Article

Re : Null pointer exception

Also, the only real problem now is that the score wont go up every time there is a collision between the bullet and the enemy.... any ideas, it sometimes detects the collision and others not meaning...

View Article


Re : problem with data transmission

Well yeah that is strange ... and lies beyond my expertise. :)Since I don't know what is happening on the Arduino I can only talk about your P5 program.So what you want to do here. Either if you know...

View Article

Re : Null pointer exception

hehe and welcome to the world of debugging. So a collision makes the score go up? Check if the collision works correctly.Is there something else changing the Score? Consider that everytime you create...

View Article


Re : problem with data transmission

hi! try to send only a byte  and no a string. 

View Article

Re : problem with data transmission

i can't send only a byte, i need to have the values of time, distance and the sensor type to run the program and these three can't be stored into a single byte

View Article


Re : problem with data transmission

Yes! you can! first send only a byte. If work good then try to send two bytes or three with all your paremeters...Is better control your data only with a bytes....no with strings... if you use...

View Article

Re : problem with data transmission

ehm really no...i don't understand how I can send bytes instead of a string. Do you mean to convert it to a binary code and send only 0 and 1?The Arduino program has no errors; it is only four lines of...

View Article

Re : problem with data transmission

problem solved. i've tried to changhe the readStringUntil(10) with a simple readString and now it's perfect, but i still don't understand why it wasn't working properly also with readStringUntil(10)....

View Article
Browsing all 1768 articles
Browse latest View live