13.3: loadStrings() - Processing Tutorial

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

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 27
@KuKoVisuals
@KuKoVisuals 2 жыл бұрын
Please don't stop making this so useful !!
@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.
@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?
@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!
@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.
@rafaeljazzuis292
@rafaeljazzuis292 4 жыл бұрын
In my processing 3.5.4 (linux) the correct path by default is not de "data" folder, it is processing folder.
@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.)))
@itznevi
@itznevi 2 жыл бұрын
where is "saveString()" function lesson?
@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
@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.
@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
@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!
@golda5381
@golda5381 9 жыл бұрын
Great tutorials!! Thank you:)
@TheCodingTrain
@TheCodingTrain 9 жыл бұрын
+golden you're welcome!
@radioaktivman8661
@radioaktivman8661 4 жыл бұрын
really nice. thank you so much
@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.6: XML and JSON - Processing Tutorial
18:00
The Coding Train
Рет қаралды 128 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
13.5: Tabular Data - Processing Tutorial
17:40
The Coding Train
Рет қаралды 51 М.
10.4: Pixels! (The Pixels Array) - Processing Tutorial
21:25
The Coding Train
Рет қаралды 122 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 273 М.
Programming w/o Language
1:47:00
Tsoding Daily
Рет қаралды 64 М.
4. Assembly Language & Computer Architecture
1:17:35
MIT OpenCourseWare
Рет қаралды 742 М.
Apple ][ Coding Challenge: Fractal Tree
35:35
The Coding Train
Рет қаралды 387 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 200 М.
But what is a neural network? | Deep learning chapter 1
18:40
3Blue1Brown
Рет қаралды 18 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН