13.3: loadStrings() - Processing Tutorial

  Рет қаралды 34,202

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 27
@KuKoVisuals
@KuKoVisuals 2 жыл бұрын
Please don't stop making this so useful !!
@oussamaghandour7432
@oussamaghandour7432 3 жыл бұрын
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.machinery3749
@r.d.machinery3749 3 жыл бұрын
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.
@fulyakrtunc274
@fulyakrtunc274 9 жыл бұрын
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!
@TheCodingTrain
@TheCodingTrain 9 жыл бұрын
+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.
@rafaeljazzuis292
@rafaeljazzuis292 4 жыл бұрын
In my processing 3.5.4 (linux) the correct path by default is not de "data" folder, it is processing folder.
@loginphotography430
@loginphotography430 9 жыл бұрын
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!
@TheCodingTrain
@TheCodingTrain 9 жыл бұрын
+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!
@itznevi
@itznevi 2 жыл бұрын
where is "saveString()" function lesson?
@ankita-mishikar116
@ankita-mishikar116 3 жыл бұрын
How do I add the text file in data of sketch folder ? Can I add a word file ?
@r.d.machinery3749
@r.d.machinery3749 3 жыл бұрын
Use Windows Notepad and save your file as YourFile.txt in the sketch's data folder.
@golda5381
@golda5381 8 жыл бұрын
Great tutorials!! Thank you:)
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
+golden you're welcome!
@nolannoble6323
@nolannoble6323 5 жыл бұрын
Im just wondering can you load 2d arreys with the loadStrings()? If not you should make a video on it.
@lokeshisrani8827
@lokeshisrani8827 4 жыл бұрын
Isn't 2-D array essentially a table? So loadTable() should work. Though I am yet to see that video. :D
@daniellee1902
@daniellee1902 8 жыл бұрын
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?
@TheCodingTrain
@TheCodingTrain 8 жыл бұрын
yes, this is possible!
@daniellee1902
@daniellee1902 8 жыл бұрын
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
@radioaktivman8661
@radioaktivman8661 4 жыл бұрын
really nice. thank you so much
@fiddlerontheroof4942
@fiddlerontheroof4942 9 жыл бұрын
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?
@TheCodingTrain
@TheCodingTrain 9 жыл бұрын
+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/
@fiddlerontheroof4942
@fiddlerontheroof4942 9 жыл бұрын
+Daniel Shiffman Thank you. I wish I were your student.)))
@ClearNinjaFox
@ClearNinjaFox 9 жыл бұрын
since Processing is built on top of java, does this means were learning java as well ? cuz all this looks like C++ to me
@TheCodingTrain
@TheCodingTrain 9 жыл бұрын
+Sys.stem Java and C++ have many similarities in syntax, but this is indeed 100% Java!
@poltaotata
@poltaotata 8 жыл бұрын
Great Dan! Thanks a lot!
@poltaotata
@poltaotata 8 жыл бұрын
+Tarek From Kyoto If i want to split chapters (3), should i create 4 arrays loadStrings?
@knifeninja200000
@knifeninja200000 3 жыл бұрын
probably should have checked the size of the example i decided to use beforehand aha. turned out to be 570k words
13.4: Word Counting - Processing Tutorial
20:07
The Coding Train
Рет қаралды 16 М.
13.5: Tabular Data - Processing Tutorial
17:40
The Coding Train
Рет қаралды 51 М.
요즘유행 찍는법
0:34
오마이비키 OMV
Рет қаралды 12 МЛН
Use Arc Instead of Vec
15:21
Logan Smith
Рет қаралды 158 М.
why are switch statements so HECKIN fast?
11:03
Low Level
Рет қаралды 437 М.
13.6: XML and JSON - Processing Tutorial
18:00
The Coding Train
Рет қаралды 128 М.
Java File Input/Output - It's Way Easier Than You Think
8:18
Coding with John
Рет қаралды 508 М.
13.1 Strings and Drawing Text - Processing Tutorial
18:01
The Coding Train
Рет қаралды 128 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 821 М.
Processing-Tutorial: Kinetic Typography 1
16:53
tim rodenbröker creative coding
Рет қаралды 81 М.
10.4: Pixels! (The Pixels Array) - Processing Tutorial
21:25
The Coding Train
Рет қаралды 122 М.