Hi thank you for this amazing explanation, I have a question I am trying to read from a csv file, is it the same thing or I should modify the code?
@r.d.machinery37493 жыл бұрын
I appreciate the explanation of the loadStrings() method, but I would prefer it if you covered some parsing theory, in particular how to scan input with a simple scanner and *then* present the time-saving Processing methods? You could then move on to a simple, top-down, recursive descent parser, which is a lot more powerful than the basic string operations provided by Processing.
@fulyakrtunc2749 жыл бұрын
Hello Dan, I'm loving your tutorials and I need to ask you something. I'm trying to make a little karaoke program using Processing. I'm using String and minim to combine the two but I have difficulties synchronising text with the audio. I thought of using framerate but it's not quite working. Do I have to use something else to make this work? Thank you!
@TheCodingTrain9 жыл бұрын
+Fulya Kırtunç My suggestion would be to query the sound for time during the draw() loop itself. You'll have to follow the audio's time completely separately from the animation frame rate.
@rafaeljazzuis2924 жыл бұрын
In my processing 3.5.4 (linux) the correct path by default is not de "data" folder, it is processing folder.
@loginphotography4309 жыл бұрын
Hi Daniel, Thank you for the videos, they are great! I have a question on this particular topic. As soon as it reaches the end of the text, it stops all my animations. Is there a way that I can loop this or at least stop it from trying to run the same text? Thank you once again!
@TheCodingTrain9 жыл бұрын
+Login Photography You'll need a conditional statement to see if index has reached the end of the array (using dot length) and then cycle it back to 0 (or whatever else you want to happen). Good luck!
@itznevi2 жыл бұрын
where is "saveString()" function lesson?
@ankita-mishikar1163 жыл бұрын
How do I add the text file in data of sketch folder ? Can I add a word file ?
@r.d.machinery37493 жыл бұрын
Use Windows Notepad and save your file as YourFile.txt in the sketch's data folder.
@golda53818 жыл бұрын
Great tutorials!! Thank you:)
@TheCodingTrain8 жыл бұрын
+golden you're welcome!
@nolannoble63235 жыл бұрын
Im just wondering can you load 2d arreys with the loadStrings()? If not you should make a video on it.
@lokeshisrani88274 жыл бұрын
Isn't 2-D array essentially a table? So loadTable() should work. Though I am yet to see that video. :D
@daniellee19028 жыл бұрын
I love your videos, they are very helpful. One question: Is it possible to use loadString() and saveString() on the same .txt file that is in the data folder? If not, what are the alternatives?
@TheCodingTrain8 жыл бұрын
yes, this is possible!
@daniellee19028 жыл бұрын
Is it possible that you can help me with this? It is 6:00AM here and I am still trying to fix this :/ +Daniel Shiffman
@radioaktivman86614 жыл бұрын
really nice. thank you so much
@fiddlerontheroof49429 жыл бұрын
How do you use it with Java - do you need to import something - could not find what - only Processing methods. How do you incorporate them into a normal Java program?
@TheCodingTrain9 жыл бұрын
+Mark Fidler You can use all of Java inside Processing itself by adding the right import statements. If you want to use Processing in another Java development environment then you need to import the Processing libraries (most everything is in core.jar). Some more info: processing.org/tutorials/eclipse/
@fiddlerontheroof49429 жыл бұрын
+Daniel Shiffman Thank you. I wish I were your student.)))
@ClearNinjaFox9 жыл бұрын
since Processing is built on top of java, does this means were learning java as well ? cuz all this looks like C++ to me
@TheCodingTrain9 жыл бұрын
+Sys.stem Java and C++ have many similarities in syntax, but this is indeed 100% Java!
@poltaotata8 жыл бұрын
Great Dan! Thanks a lot!
@poltaotata8 жыл бұрын
+Tarek From Kyoto If i want to split chapters (3), should i create 4 arrays loadStrings?
@knifeninja2000003 жыл бұрын
probably should have checked the size of the example i decided to use beforehand aha. turned out to be 570k words