hello, i need your help.
i build a small sample player which works good. but if i put it into an abstraction it dont works anymore.
i atached the two versions, maybe someone has an idea why it dont works.
the next thing i am trying is to build in the openpanel object. i also atached a file which shows how i tried.
i am also searching for a book/document/website which goes deeper into pd. i need infos about string handling object types arrays and so on.
have a nice day ragards robert
#N canvas 192 118 731 652 10; #X obj 71 -13 dac~; #N canvas 474 293 450 300 smaple_loop 0; #X msg 29 93 1; #X msg 145 111 0; #X msg 146 133 print; #X obj 136 158 readsf~ 4 1e+06; #X obj 186 212 *~ 0.1; #X obj 127 213 *~ 0.1; #X text 200 88 1 starts playback; #X text 203 111 0 stops it; #X obj 226 265 outlet~; #X obj 130 261 outlet~; #X obj 16 23 inlet; #X obj 71 27 inlet; #X msg 132 39 open /home/bamsen/pd/patches/stimme_001.wav; #X connect 0 0 3 0; #X connect 0 0 12 0; #X connect 1 0 3 0; #X connect 2 0 3 0; #X connect 3 0 5 0; #X connect 3 1 4 0; #X connect 3 2 4 0; #X connect 3 3 5 0; #X connect 3 4 0 0; #X connect 3 4 12 0; #X connect 4 0 8 0; #X connect 5 0 9 0; #X connect 10 0 0 0; #X connect 11 0 1 0; #X connect 12 0 3 0; #X connect 12 0 0 0; #X restore 24 -114 pd smaple_loop; #X obj 1 -211 bng 15 250 50 0 empty empty empty 0 -6 0 10 -4034 -1 -1; #X obj 76 -214 bng 15 250 50 0 empty empty empty 0 -6 0 10 -258113 -1 -1; #X obj 60 -67 *~; #X obj 136 -86 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 10 -262144 -1 -1 0 1; #X connect 1 0 4 0; #X connect 2 0 1 0; #X connect 3 0 1 1; #X connect 4 0 0 0; #X connect 5 0 4 1;
#N canvas 405 214 450 564 10; #X obj 79 7 dac~; #N canvas 0 25 1021 680 smaple_loop 0; #X msg -182 44 1; #X msg -66 62 0; #X msg -65 84 print; #X obj -75 109 readsf~ 4 1e+06; #X obj -25 163 *~ 0.1; #X obj -84 164 *~ 0.1; #X text -11 39 1 starts playback; #X text -8 62 0 stops it; #X obj 15 216 outlet~; #X msg -47 -21 open /home/bamsen/pd/patches/stimme_001.wav; #X obj 194 101 bng 15 250 50 0 empty empty empty 0 -6 0 10 -4034 -1 -1; #X obj 210 101 bng 15 250 50 0 empty empty empty 0 -6 0 10 -258113 -1 -1; #X obj 164 191 *~; #X obj 229 101 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 10 -262144 -1 -1 0 1; #X connect 0 0 3 0; #X connect 0 0 9 0; #X connect 1 0 3 0; #X connect 2 0 3 0; #X connect 3 0 5 0; #X connect 3 1 4 0; #X connect 3 2 4 0; #X connect 3 3 5 0; #X connect 3 4 0 0; #X connect 3 4 9 0; #X connect 5 0 12 0; #X connect 9 0 3 0; #X connect 9 0 0 0; #X connect 10 0 0 0; #X connect 11 0 1 0; #X connect 12 0 8 0; #X connect 13 0 12 1; #X coords 0 -1 1 1 260 17 1 100 100; #X restore 72 -63 pd smaple_loop; #X connect 1 0 0 0;
#N canvas 0 0 768 608 10; #X msg 48 153 1; #X msg 119 157 0; #X text 219 148 1 starts playback; #X text 222 171 0 stops it; #X obj 199 296 *~; #X obj 163 299 *~; #X obj 70 380 send~ output_sample_loop_left; #X obj 280 397 send~ output_sample_loop_right; #X obj 157 219 readsf~ 2 1e+06; #X obj 94 1 bng 15 250 50 0 empty empty empty 0 -6 0 10 -184257 -1 -1; #X obj 110 1 bng 15 250 50 0 empty empty empty 0 -6 0 10 -258139 -1 -1; #X obj 129 1 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 10 -162280 -66577 -33289 0 1; #X obj 260 1 bng 15 250 50 0 empty empty empty 0 -6 0 10 -4032 -1 -1 ; #X msg 297 80 open $i; #X obj 270 20 openpanel; #X connect 0 0 8 0; #X connect 0 0 13 0; #X connect 1 0 8 0; #X connect 4 0 7 0; #X connect 5 0 6 0; #X connect 8 0 5 0; #X connect 8 1 4 0; #X connect 8 2 0 0; #X connect 8 2 13 0; #X connect 9 0 0 0; #X connect 10 0 1 0; #X connect 11 0 4 1; #X connect 11 0 5 1; #X connect 12 0 14 0; #X connect 13 0 0 0; #X connect 13 0 8 0; #X connect 14 0 13 0;
hallo,
i solved the openpanel problem with the help file of the freeverb patch. the example is atached. now my question is, how can i loop the play and how can i save the path to the file, so that i dont have to rechoose the file after each restart?
regards robert
smilingmolecule wrote:
hello, i need your help.
i build a small sample player which works good. but if i put it into an abstraction it dont works anymore.
i atached the two versions, maybe someone has an idea why it dont works.
the next thing i am trying is to build in the openpanel object. i also atached a file which shows how i tried.
i am also searching for a book/document/website which goes deeper into pd. i need infos about string handling object types arrays and so on.
have a nice day ragards robert
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
#N canvas 275 265 450 300 10; #X obj 183 154 readsf~ 2; #X msg 173 87 open $1; #X obj 173 68 openpanel; #X obj 173 35 bng 30 250 50 0 empty empty open 1 15 1 12 -4080 -1 -228 ; #X obj 173 106 t b a; #X msg 160 130 1; #X obj 203 240 dac~; #X connect 0 0 6 0; #X connect 0 1 6 1; #X connect 1 0 4 0; #X connect 2 0 1 0; #X connect 3 0 2 0; #X connect 4 0 5 0; #X connect 5 0 0 0;
smilingmolecule wrote:
hallo,
i solved the openpanel problem with the help file of the freeverb patch. the example is atached. now my question is, how can i loop the play and how can i save the path to the file, so that i dont have to rechoose the file after each restart?
There's a patch here that will add path saving to openpanel:
http://sourceforge.net/tracker/index.php?func=detail&aid=1981332&gro...
Maybe if enough people want it it will make it into Pd...
Martin