-
the.dude
I modified the output~ abstraction that comes with pd extended slightly to include some things I use often. Mainly I added writesf~ so that you can record the post fader output at 24 bits and whatever sample rate pd is currently running at. I also added some vu's. Hope someone finds this useful.
-
the.dude
I get a lot of distortion when I try to load 24 bit audio files into an array and play it with tabread~, tabplay~, etc. Has anyone else experienced this? Is it a limitation of PD or PD on Mac? Is there a way to make it work?
-
the.dude
I'm looking for as much info on commands i can send to a canvas. If someone could point me to a good tutorial on dynamic object creation that would be the bees knees.
Here is a reduced example of what I'm trying to do. my question is it possible to have the sum~ and the outlet~ connect upon creation?
Thanks!
#N canvas 227 149 580 461 10;
#X obj 64 370 namecanvas thing;
#X msg 161 291 \; thing obj \$1 50 catch~ \$2 \; thing obj \$1 90 outlet
;
#X obj 206 213 makefilename channel%d;
#X obj 161 252 pack f s;
#X obj 161 184 t f f;
#X floatatom 161 158 5 0 0 0 - - -;
#X obj 161 212 * 100;
#X connect 2 0 3 1;
#X connect 3 0 1 0;
#X connect 4 0 6 0;
#X connect 4 1 2 0;
#X connect 5 0 4 0;
#X connect 6 0 3 0; -
the.dude
yep… so I just tested it. 24bit wave is fine but 24bit aiff is just noise. Good to know.
-
the.dude
@saturno said:
I've never had that problem loading both 24 and 16 bit files. Are they AIF files by any chance?
Hmm… I just opened a 24 bit wave and had no problems. Is there any known issues with other formats?
-
the.dude
Ha! Strange how I was just working on this very same thing and then find a thread with a patch on here so similar to mine. The variable envelope is an awesome idea maelstorm.
What I'm trying to do in my patch is make it into a sample looping abstraction in which many will be loaded into a parent patch to be performed. The problem I'm having is a gap at the end of the loop caused by the grain section trying to read past the end of the sound file. I'm trying to come up with an elegant way to stop this (vanilla preferred).
I attached my version but it's still in the ugly stages, the gui items will be replaced with inlets and the dac~ with an outlet~.
-
the.dude
Hi Genjix,
I'm at work and can't listen to the file but from what you wrote it sounds like you want to do an fm patch? In the patch you have you are adding two sine tones not modulating the carrier frequency. the [+~] should go between the the [osc~] and [mtof~].here is a simple example
#N canvas 363 261 467 354 10;
#X obj 91 234 osc~;
#X obj 91 197 +~;
#X obj 92 85 mtof~;
#X obj 139 142 osc~;
#X obj 139 173 *~;
#X obj 139 114 *~;
#X obj 90 270 output~;
#X obj 95 31 hsl 128 15 0 127 0 1 empty empty empty -2 -8 0 10 -262144
-1 -1 3500 1;
#X obj 195 89 nbx 5 14 -1e+37 1e+37 0 1 empty empty empty 0 -8 0 10
-262144 -1 -1 0.2 256;
#X obj 194 159 nbx 5 14 -1e+37 1e+37 0 1 empty empty empty 0 -8 0 10
-262144 -1 -1 580 256;
#X text 107 6 Carrier frequency;
#X text 266 160 modulation index;
#X text 261 87 modulator frequency;
#X connect 0 0 6 0;
#X connect 0 0 6 1;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 2 0 5 0;
#X connect 3 0 4 0;
#X connect 4 0 1 1;
#X connect 5 0 3 0;
#X connect 7 0 2 0;
#X connect 8 0 5 1;
#X connect 9 0 4 1; -
the.dude
hmm... sounds like a pain. Luckily it won't be necessary as the objects will be created dynamically in the abstraction based on a creation argument, but it's good to know none the less. Thank you very much!!!
-
the.dude
oops, I drew up that example and posted a bit to hastily. Thank you very much for your reply, connect is the command I was looking for. You mention dynamically deleting objects, is it as simple as telling a canvas to remove foo object?
thanks again