13.3: loadStrings() - Processing Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ย. 2024

ความคิดเห็น • 27

  • @KuKoVisuals
    @KuKoVisuals ปีที่แล้ว

    Please don't stop making this so useful !!

  • @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 8 ปีที่แล้ว +2

    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  8 ปีที่แล้ว +1

      +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?

  • @rafaeljazzuis292
    @rafaeljazzuis292 4 ปีที่แล้ว

    In my processing 3.5.4 (linux) the correct path by default is not de "data" folder, it is processing folder.

  • @itznevi
    @itznevi 2 ปีที่แล้ว

    where is "saveString()" function lesson?

  • @loginphotography430
    @loginphotography430 8 ปีที่แล้ว +1

    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  8 ปีที่แล้ว +1

      +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!

  • @radioaktivman8661
    @radioaktivman8661 3 ปีที่แล้ว

    really nice. thank you so much

  • @golda5381
    @golda5381 8 ปีที่แล้ว +1

    Great tutorials!! Thank you:)

  • @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?

  • @daniellee1902
    @daniellee1902 7 ปีที่แล้ว

    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  7 ปีที่แล้ว

      yes, this is possible!

    • @daniellee1902
      @daniellee1902 7 ปีที่แล้ว

      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 8 ปีที่แล้ว

    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  8 ปีที่แล้ว

      +Sys.stem Java and C++ have many similarities in syntax, but this is indeed 100% Java!

  • @fiddlerontheroof4942
    @fiddlerontheroof4942 8 ปีที่แล้ว

    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  8 ปีที่แล้ว +1

      +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 8 ปีที่แล้ว

      +Daniel Shiffman Thank you. I wish I were your student.)))

  • @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.

  • @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 ปีที่แล้ว +1

      Isn't 2-D array essentially a table? So loadTable() should work. Though I am yet to see that video. :D

  • @knifeninja200000
    @knifeninja200000 3 ปีที่แล้ว

    probably should have checked the size of the example i decided to use beforehand aha. turned out to be 570k words