How to Add Sound to a Processing Project

Поделиться
HTML-код
  • Опубликовано: 14 дек 2024

Комментарии • 16

  • @DerpyEinstein
    @DerpyEinstein Год назад

    Thank you for the walkthrough.
    Helped very much.

  • @Sam-gy8nq
    @Sam-gy8nq Год назад

    is there a way to import a portion of the library without doing the whole thing? b/c it makes my code very slow to run

  • @fouxe1731
    @fouxe1731 6 месяцев назад

    Hello John! Can we use the sound library in Processing Python ? Thanks!

  • @keyb
    @keyb 3 года назад

    Hello John! I’m trying out different sound libraries to help with a project I’m working on. I’m trying to see if there’s a way to alter a single sound object’s volume. In the default library I can only alter the volume for all sounds in the entire program. Many thanks, mat.

    • @theARTboyJohn
      @theARTboyJohn  2 года назад

      I don't see a method in the sound library. Minim sound library used to allow if I recall correctly. P5.js does appear to allow it in their sound library if you were to migrate your code to P5.js instead of processing.

  • @kierannagarajah5846
    @kierannagarajah5846 3 года назад

    Hi John, I am doing a project to do with music using processing. Is there a way i can contact you directly to ask a couple questions please?

  • @caramelldansen.
    @caramelldansen. 3 года назад

    very helpful, thank you so much !!

  • @PaulsDinka
    @PaulsDinka 3 года назад

    Hello John
    I have test different sound files mp3 but it does not work with processing 3, I don't know the reason, here is the code:
    import processing.sound.*;
    SoundFile music;
    void setup() {
    size(400, 400);
    background(255);
    music = new SoundFile(this, "music.mp3");
    music.play();
    }
    void draw() {
    }

    • @theARTboyJohn
      @theARTboyJohn  3 года назад +1

      I have found that not all mp3s play in Processing. You sometimes need to change the encoding specifics of the sound. If the sound is not at 44100hz and 16bit it will definitely have issues with playback in processing. Open the sound in an editor like Audacity or Adobe Audition and change the export settings to be 44100/16.