-
cron12
Hi
I'm new to pd and I'm currently trying to create a patch that simply loads in a wav file and plays it back. currently i know that i need to send a message with the name of the wav file to a readsf~ object like so
[open something.wav(
|
[readsf~]
|
[dac~]however I don't actually know how to import the wav file itself
any help??
thanks
cron12 -
cron12
Ok, so i'm wondering if anybody has any experience when working with tangible tracking interfaces such as the ones used under the Trackmate initiative.
Essentially an OSC protocol called LusidOSC enables a webcam to track the position of tagged objects on an acrylic (plexi-glass) sheet by decoding the tags using a software called 'Trackmate Tracker' that then sends OSC information on port 3333 to any recipient; in this case the recipient is Processing.
In Processing I have created a sketch which is essentially two balls. I have it so that I can control one of the balls with an object on the surface and can use this to 'bounce' the second ball around the window.
Every time the second ball hits the boundaries of the window it sends an OSC message to Pure Data which is then used to trigger 8 random notes on a major scale with random duration. This patch is included.
Essentially i'm wondering if anybody has any suggestions on how i could improve on my patch in order to make it more interesting, and how i would go about implementing any of the suggestions that you might have.
Any help would be extremely appreciated as i'm fairly new to Pd.
Thanks for taking the time to read this!
cron12 -
cron12
I'm quite new to pd at the moment.
Currently I have a pd receiving OSC messages on port 5001 from Processing, the problem is is that i can't seem to make the messages trigger an oscillator, or anything for that matter.
What is the problem? I'm a bit unfamiliar with the OSC protocol in general, is it a problem with the messages I'm sending in Processing or is it a pd problem?
I sometimes get an error saying "error; trigger can only convert 's' to 'b' or 'a'". I'm just so confused! someone help!
cron12
-
cron12
OK so I've got the patch to play back the file, how can I make the sound file loop?
-
-
cron12
@mod said:
yes of course.
in those cases, you don't need the table, because the note scale is not important... so you can just use something like
[random 1000]
|
[+ 50]to give a random value between 50 and 1050 (which you would then use for millisecond timing of the duration)
and you could do something similar for velocity as well..
Alright so, this is what i have in my patch now (included). How would i implement this to trigger random durations in the rest of my patch?
-
cron12
I want to do this but the other way around, sending OSC from Processing to Pure Data
You guys have any idea how to do this properly/well?
thanks!!
cron12 -
cron12
I can include my Processing sketch as well if it helps
The sketch is essentially a 2 balls in window, and what i'm trying to do is use a tangible tracking interface (lookup 'Trackmate') in order to use objects on a acrylic plexi glass surface to control one of the balls to bounce the second ball around the window (like air hockey) triggering sounds in pd every time the second ball touches collides with the sides of the window
i'll include my Processing sketch but i'm not sure whether everything in it will make sense if you're not familiar with the Trackmate initiative and the LusidOSC protocol layer.
here it is anyway, thanks so much for all the help!!!
cron 12
-
cron12
Just another quick question.
Is it possible to use similar methods to trigger bangs that send random velocities and duration's for the note as well?
-
cron12
This is great! thanks a lot! I'll post back if i need anymore help.
Really appreciate it!
cron12