I'm still a beginner in PD so I'm not sure if this is possible. I have a patch with which I'm supposed to be able to open 10 different .wav files. Each file is attached to a number from 0 to 9, and they're supposed to play in a sequence after I type in however many numbers I need and press enter. The numbers 1-9 are working fine, only 0 isn't. I need to have at least one 0 within any number combination I use, there's no way around it. But whenever there's a 0 the patch just stops playing the sequence. All other numbers play just fine, so I figured 0 isn't exactly a "number" here and it actually works as a sort of "stop" (these are probably the basics, but please bear with me).
Is it possible to get around this problem and somehow make the file attached to 0 play? Or is there a way to make the patch recognize the 0 I type in as something else, a letter perhaps, or any of the remaining numbers?
-
Playing a .wav file attached to the number 0 within a patch? Is it possible to play, or does 0 automatically stop the sequence?
-
@Alexita Hello again........ Your project seems simplified a little from last time!
Yes, "0" is sometimes used to stop the running of an object in Pd. But almost anything is possible in Pd and there will be a solution........ i.e. it will not be a problem.Could you upload the patch that you have created please (the bar with an "up" arrow)...... and then it can be modified and re-posted for you (with some explanation of the modification).
I do not suggest that you use the patch below if you are doing course work...... but it will give you confidence that it is possible.
Name your tracks...... 0.wav....1.wav....... etc. and put them in the un-zipped folder.
10_tracks.zip
Click on the patch window to give it focus...... then type your numbers..... and then press enter..
David. -
Oh hi again! Yes, the project is simplified because first the exam was postponed and then I got sick and was in hospital for a while, and after getting back I didn't really have time to focus on the more complicated stuff, so I have to settle for this.
Anyway, thank you so so much, your patch works perfectly! I could very well use that one, I don't see the problem? Since it would work on any computer with PD. But if you say so, here's the patch I had, it's actually heavily based on the one you sent me two months ago, but somewhat different than the one you sent me now.
AlexPlay10.pd -
Whoops, that's the edited version without keyup, that one won't work, silly me, here's the right one (hope you don't mind the files are named 1A.wav, 2E.wav... it's for reference)
AlexPlay10.pd -
@Alexita You just had a small mistake in your routing of the [select] object here......
This should work.........
alex_patch.pd
Just re-connect [keyup]
David. -
@whale-av Oh thank you so so much again, this one works perfectly too! Yes I see what my mistake was, silly me. Thanks again for all your help on this project, hope to talk to you again if I need help in the future!
-
@Alexita Very pleased to help if I can.........
David.