Using Sound in Processing with Minim

  Рет қаралды 76,538

John Park

John Park

Күн бұрын

Пікірлер: 56
@smal5017
@smal5017 3 жыл бұрын
The music was getting so distorted with Processing's sound library, and I am currently on a tight deadline whilst being in the worst state of mind. Then I came across this tutorial, and it worked out. I am so close to tears, thank you so so much!!
@ShadowFira24
@ShadowFira24 4 жыл бұрын
I once was lost, but now I understand sound and the minim lib in Processing better. Much appreciated!!
@redmoonvisual
@redmoonvisual 4 жыл бұрын
Thanks for breaking it down so much, you explaining what you were doing in detail was so helpful. :)
@PeanutsAssorted
@PeanutsAssorted 8 жыл бұрын
Thankyou so much for this. Working on a project involving sound for a uni thing and this info is a huge help on even getting started, so easy to follow and much appreciated
@TheMusicivy
@TheMusicivy 7 жыл бұрын
The only Tutorial that really helped me and i wanted to watch from the start till the end. It was easy to follow and you explained everything really well!! thank you! Maybe i won't fail this course in Uni ^^
@jitenkumar8792
@jitenkumar8792 7 жыл бұрын
did you try the Sound library as well? I'm just starting off and thought Sound library would be a better choice than Minim.
@karljungdow7172
@karljungdow7172 6 жыл бұрын
Jiten Kumar I'm using the sound library and I'm very happy with it.
@sennabullet
@sennabullet 4 жыл бұрын
INCREDIBLY helpful tutorial...I am already searching for more from you!! Thank you very very much for making this vid.
@andrew007gomez
@andrew007gomez 5 жыл бұрын
THANK YOU! YOU ARE A LIFE SAFER!
@antoniorodrigues4265
@antoniorodrigues4265 6 жыл бұрын
from Portugal -Thank you for the lesson. my code works fine.
@Sushi4ToFu
@Sushi4ToFu 2 жыл бұрын
Life savior thanks!
@bayoolatunji3996
@bayoolatunji3996 3 жыл бұрын
hi, how do I trigger sound and an image switch at the same time with a key pressed?
@thelol-kg4ps
@thelol-kg4ps 4 жыл бұрын
How i control de sound(Volume) of the music that is playing? thanks for the video
@xiao7475
@xiao7475 5 жыл бұрын
do you perhaps know how to control tempo of music in processing? Thanks!
@jacobhanson606
@jacobhanson606 3 жыл бұрын
i just started playing with audio and this tutorial and sample was throwing errors. I wasn't able to get the visuals to draw. i removed the P3D dimension in the size bracket and then it worked for me.
@Luiginator
@Luiginator 8 жыл бұрын
This was stupid helpful! Thanks a bundle, dude!
@BartBurkhardt
@BartBurkhardt 7 жыл бұрын
Do you perhaps know how to use the sound of current playing in the system?. For example I'm want to visualize the sound that is currently playing from youtube. I can't find any example how to do that.
@elymuff
@elymuff 5 жыл бұрын
God, this was helpful. Thanks a lot!
@numero7mojeangering
@numero7mojeangering 4 жыл бұрын
How can I create my own sound using processing and saves them as a file?
@HungLe-xg7rr
@HungLe-xg7rr 6 жыл бұрын
very useful tutorial, thank you
@TheOrionZane
@TheOrionZane 5 жыл бұрын
awesome stuff!
@zuxu4n
@zuxu4n 3 жыл бұрын
Thank you
@woophereigo9755
@woophereigo9755 2 жыл бұрын
Can I have that "wtf effect" to look at pls
@brunoiasi1502
@brunoiasi1502 6 жыл бұрын
Great Tutorial! Just one question, how can I make a trigger wait for a sample to end to trigger again?
@mrmeowbeats7842
@mrmeowbeats7842 6 жыл бұрын
for that you could use the following: if (player.position() == player.length()) { player.rewind(); player.play(); }
@julieyang6351
@julieyang6351 8 жыл бұрын
i want to adjust my pressed sound louder because once i inserted background music, i can't hear the pressed sound, is there anything to do with processing?
@parkoregon
@parkoregon 8 жыл бұрын
Hi Julie, you can adjust volume of a file in Minim using .setGain() For example if your sound file is called groove, you could enter the code: groove.setGain(-8); The default gain is 0 and to make any sound quieter, you put a negative number between the parentheses. I believe around -48 the volume will sound silent.
@julieyang6351
@julieyang6351 8 жыл бұрын
John Park thank you!
@SqueaksXx
@SqueaksXx 8 жыл бұрын
Hey! Do you know how to make the same button play a different sound if you click it again? Thanks:) I can't seem to find the solution anywhere
@ElderVenLoL
@ElderVenLoL 8 жыл бұрын
Just keep a counter of how many times you've clicked the button, or use a boolean like boolean buttonClicked = true; if(buttonClicked){ previoussound.pause(); othersound.play(); }
@OcaPhone
@OcaPhone 8 жыл бұрын
helpful video. i have been trying to make a game in processing and i want to know, is it possible to make an mp3 file play, and then have another play right afterwards? i kinda want a soundtrak to loop in the background. should i edit all the mp3s together to be one big mp3 file or is there a simpler way
@parkoregon
@parkoregon 8 жыл бұрын
I would personally edit them together and make your life easier, but I suppose you could start the sound for file A in void setup() and then in void draw() put a conditional (if) statement that checks for: if(soundA.isPlaying() == false && soundA.position() > 1 && soundB.isPlaying() == false){ soundB.play(); }
@OcaPhone
@OcaPhone 8 жыл бұрын
Thank yoou!
@mariafailli6208
@mariafailli6208 8 жыл бұрын
THANK YOU!!
@Skull12o12
@Skull12o12 8 жыл бұрын
Hi John, this was extremely helpful. However, I am trying to make a sound program that takes photoresistor analog values (from 0-1024) and makes a certain sound (like different drums) when each one of them is covered. How would you go about having my arduino send values to processing? I am really struggling with this. I was thinking of a loop that takes photo resistor values
@Skull12o12
@Skull12o12 8 жыл бұрын
EDIT: John, I ended up fixing it and created an awesome final project for an engineering course. I referred to your video regarding all of the sound-related commands, thanks!
@ck88777
@ck88777 7 жыл бұрын
How would I go about creating an AudioPlayer object using a song URL?
@parkoregon
@parkoregon 7 жыл бұрын
In void setup() instead of player=minim.loadFile("groove.mp3") you would enter the URL of your online MP3. For example: player = minim.loadFile("pages.uoregon.edu/park/transfer/sounds/waves.mp3");
@ck88777
@ck88777 7 жыл бұрын
Does it have to be an online mp3? would it be possible to use something like a soundcloud link?
@Leon1998R
@Leon1998R 8 жыл бұрын
i have normal WAV data, but when i try to load it to the audioplayer it says couldnt load the file. But the sound is playable the normal way. what can i do?
@parkoregon
@parkoregon 8 жыл бұрын
+Leon1998R You could try one of two things. One is to update Java on your machine (reference to that working for some users). Another is to open the WAV file in an audio program (OCEN Audio is my free favorite) and either set the sample rate to a lower number (16 bit works well) and/or use a different compression algorithm. You could try exporting to an MP3 if all else fails.
@Leon1998R
@Leon1998R 8 жыл бұрын
+John Park ok. but somehow i can export it as mp3 data. it says: couldnt open mp3 encoder.
@okundayesamuel7592
@okundayesamuel7592 5 жыл бұрын
@@Leon1998R I'm facing the same problem. Where you able to resolve yours ?
@Leon1998R
@Leon1998R 5 жыл бұрын
@@okundayesamuel7592 i had to look it up, because i havent used processing in a while. this is the code i used: ---------------------------------------BEGINING OF CODE(inside of a class)----------------------------------------------------------- //sound: private Minim minim; private ArrayList player; constructor() { //... this.minim = new Minim(Projectname.this); this.player = new ArrayList(); } //... private void playSounds() { for(int i=0 ; i
@totoflingueur98
@totoflingueur98 8 жыл бұрын
hello, nice video !But i have a question, how to stop the sound, because I add music to my program (it's a game ) but when I lose I can't stop the music. can you help me please ?
@parkoregon
@parkoregon 8 жыл бұрын
+totoflingueur98 You can use .pause() to stop a sound player from playing. For example: bass1.play(); becomes bass1.pause();
@totoflingueur98
@totoflingueur98 8 жыл бұрын
+John Park Thanks you very much, but i not arrive to find my problem on my instruction :'( ^^because i want that when x
@ElderVenLoL
@ElderVenLoL 8 жыл бұрын
if(x < 0){ player.pause(); } or was there something more?
@kattakittaxr
@kattakittaxr 4 жыл бұрын
great tut tnx
@vaporlp3343
@vaporlp3343 6 жыл бұрын
I can't download MINIM, there is no MINIM in Processing what I can download(and no other Library!)
@parkoregon
@parkoregon 6 жыл бұрын
Hi VaporLP - you can install this and other by opening Processing and in the File Menu, going to: SKETCH>IMPORT LIBRARY>ADD LIBRARY Search for MINIM in the search bar. Select 'Minim' and hit install. Then restart the whole Processing program.
@vaporlp3343
@vaporlp3343 6 жыл бұрын
I did this already, but I can't connect to the Processing server. This error is on my screen:Could not connect to the Processing server. Contributions cannot be installed or updated without an Internet connection. Please verify your network connection again, then try connecting again.
@zine8202
@zine8202 5 жыл бұрын
i call jezus!
@anastasiadunbar5246
@anastasiadunbar5246 8 жыл бұрын
What the fuck? You could just drag your files into the window? Never actually did that.
@anastasiadunbar5246
@anastasiadunbar5246 8 жыл бұрын
Oh shit my file disappeared. i.imgur.com/w5giFRb.png It only works to play the sound if you've dragged into window but not added into data folder.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
pushMatrix() popMatrix() Processing Tutorial
20:32
John Park
Рет қаралды 35 М.
Coding Challenge 11: 3D Terrain Generation with Perlin Noise in Processing
22:44
Processing Tutorial: Creating Trippy Animations with the Superformula
19:07
Rasterize 3D (Processing Tutorial)
23:40
tim rodenbröker creative coding
Рет қаралды 87 М.
Recreating Vintage Computer Art with Processing
16:44
Alexander Miller
Рет қаралды 352 М.
11.1: Capture and Live Video - Processing Tutorial
22:21
The Coding Train
Рет қаралды 233 М.
Processing-tutorial: Image-Rasterizer (level: beginner & intermediate)
34:39
tim rodenbröker creative coding
Рет қаралды 97 М.
Processing-Tutorial: Kinetic Typography 1
16:53
tim rodenbröker creative coding
Рет қаралды 80 М.
Tutorial: How to render Processing sketch as a movie
13:41
The Coding Train
Рет қаралды 124 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.