-
lapras53
Hi,
Three questions
1. Does anyone know what command(s) I use to control a synth patch in Pure Data using the keyboard of my laptop?
2. Another thing I am wondering about is how I might control a synth with a piano. I have a midi to usb cable that I can connect from my laptop to the keyboard.
3. Are there any great synth patches available for download to experiment with?
thanks
-
lapras53
Hi, I am very new to PD and I am thinking of using it in a final project for my college smart art class. My problem is that I don't know enough about PD to know what is possible for me to finish up in 2 weeks having limited experience with the program.
My idea is to use my laptops built in camera as a motion tracking device. When movment takes place in a certain part of the camera, I want that to trigger a sound.
I would like this to create a layered effect..after the person discovers the area that they have to touch, it plays a sound, and then another part of the screen is set to trigger another sound to play ontop of the rest of the sounds
Does this make sense? My professor said that it is possible to trigger a sound to play by determining an xy coordinate in the gemwindow and using an if then statement, but I'm not sure how I might go about doing that..
any advise?
-
lapras53
ah, nevermind.
thanks for all of the help guys. I was able to look at an example of the sampler.transposition. Incorporating some of the things from that patched helped me work out the new patch and it works pretty well.
-
lapras53
I'm sorry, i'm still not quite getting it...I think that patch i just posted is almost there, but i just really don't understand how to use that vlline~ command...
I was working on another patch since that i hoped my do what I wanted, and it's almost there, but it's still not quite right..
with this patch, i can define the array, and it will play the entire file in a loop, but now I can't figure out how to effectively change the frequency..any advice for the previous patch or this one?
thanks
-
lapras53
thanks for the help. would I place a command like the vline~ in the upper input of the [tabwrite] command?
I will attatch my file. It's very messy as I have been trying out a lot of things. I just need to figure out how to define the array in terms of the sound that is being looped.
http://www.pdpatchrepo.info/hurleur/FinalProject_Practice2.pd
-
lapras53
I would love to take a look at your example, but I can't get it to open. when I unzip it and save to desktop, it appears to have no extension. I tried renaming it to a .pd file, but it wouldn't load in pd.
-
lapras53
Could I use a -resize flag in combination with the readtab4~ command in order to automatically resize the array table that the sound file is read to?
-
lapras53
I got it working using the spigot command along with a [metro 5000] attatched to a [delay 100] which checks the spigot on and off, so the data is only allowed to pass through the spigot during the time between the metro firging a bang every 10 seconds and the delay unchecks the spigot after just after every bang.
One of my last problems is how to define the length of the audio samples that I'm using. Right now, every sound I load up only plays in a one second loop regardless of how long the actual file is. I would like to be able to run the entire audio file on a loop. Most of them aren't too long..probably 7 seconds on average. I'm using the sampler.loop example to load my audio files, and I can't figure out what is telling it to only play one second of every file. In the easysample.pd file that you linked to earlier, I can load up an audio file, and it will loop the entire sound..
do you know what makes the easysampler dependent on the audio file for length as opposed to the sampler.loop which forces the audio file into an already determined length?
thanks
-
lapras53
yea, it's rude of me to keep throwing up trivial questions. i do apologize, and i really appreciate the help as I have until the 11th of december to get this figured out for my computer art project.
I have got through the manuals and examples quite a bit today, and i am running into another problem:
I'm trying to read sound files and manipulate their frequencies and speeds via the coordinate readouts from my camera. My goal is to be able to trigger each sound with a conditional statement involving my x/y coordinate readouts (i.e. if x <= 4 then read this file1.aif, if x >= 4 then read file2.aif). I have been able to accomplish this to an extent, but I only want the sound files to be reloaded every 30 seconds or so. As of now, my program is constantly reloading the sounds so there is no time to experiment with the sound before it's either reloaded or loaded the different sound.
my computer's camera is sending x/y coordinates to my pure data program. I have multiplied and rounded the numbers using the int that you suggested..this way, the values in the x and y category will range from 0-9. from there, I am connecting those numbers to the [moses 4] command (this sends data that is less than the numeric value to one side, and data that is greater than to the other side). each of my [read *audio file path*] are connected to a different output of the [moses] command, so, depending on my x coordinat location (0-9), that will determine what sound is played. I believe i need to use a combination of a delay and a timer with my moses in order to control the number of times it is telling the program to read the sound files...i can't wrap my head around how to do it though...the example counter that counts from 1-10 seems like it might be the way to go, but i need a way to implement the delay with the moses so that the moses command only sends out data every so many seconds rather than constantly..
does that make any sense?
i can attach the pd file..that might offer more info...thank you again for the help
-
lapras53
awesome, is there a command to round off numbers? I am multiplying the coordinates to get realistic slider values, and I would like to clean it up and get rid of all of the decimals.