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.
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.
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() { }
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.
Thank you for the walkthrough.
Helped very much.
Glad it helped!
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
Hello John! Can we use the sound library in Processing Python ? Thanks!
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.
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.
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?
jmccaffrey@hennepintech.edu
@@theARTboyJohn will be in touch !
very helpful, thank you so much !!
Glad it helped!
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() {
}
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.