Hi list,I tried to use "pd -batch" to do some offline processing, but without success - the patch ran but no audio was computed as far as I can tell.
The same patch worked fine with "pd -noaudio -nogui" (and that patch reaches the limits of my CPU anyway so no great loss) - but it would be nice if the batch mode worked.
See attached for a simple test patch and script, with the output I get here using GNU/Linux/Ubuntu/Lucid/64bit puredata-0.42.5-3 - the batch mode output file is silent, as if no audio was computed.
Has anyone used batch mode successfully? Thanks, Claude -- http://claudiusmaximus.goto10.org
#N canvas 0 0 450 300 10; #X obj 97 9 receive RENDER; #X obj 211 224 hip~ 10; #X obj 211 246 tabwrite~ \$0-tab; #X obj 276 212 table \$0-tab 96000; #X obj 235 116 symbol; #X obj 211 96 unpack f s; #X obj 45 132 + 1; #X obj 14 131 f 0; #X obj 14 155 print progress; #X obj 211 203 phasor~; #X obj 219 59 print render; #X obj 114 92 delay 1000; #X msg 124 115 \; pd dsp 1; #X obj 114 151 delay 1000; #X obj 114 196 delay 2000; #X obj 235 137 list append \$0-tab; #X msg 235 158 write -wave -bytes 2 \$1 \$2; #X obj 235 178 soundfiler; #X obj 114 224 delay 1000; #X msg 114 245 \; pd quit; #X obj 97 33 t b b a a; #X obj 14 109 metro 500; #X connect 0 0 20 0; #X connect 1 0 2 0; #X connect 4 0 15 0; #X connect 5 0 9 0; #X connect 5 1 4 1; #X connect 6 0 7 1; #X connect 7 0 6 0; #X connect 7 0 8 0; #X connect 9 0 1 0; #X connect 11 0 12 0; #X connect 11 0 13 0; #X connect 13 0 2 0; #X connect 13 0 14 0; #X connect 14 0 4 0; #X connect 14 0 18 0; #X connect 15 0 16 0; #X connect 16 0 17 0; #X connect 18 0 19 0; #X connect 20 0 21 0; #X connect 20 1 11 0; #X connect 20 2 5 0; #X connect 20 3 10 0; #X connect 21 0 7 0;
test.sh
Description: application/shellscript
######## batch off ######## render: 50 batch-off.wav progress: 0 progress: 1 progress: 2 progress: 3 progress: 4 progress: 5 progress: 6 progress: 7 batch-off.wav: biggest amplitude = 0.601593 progress: 8 progress: 9 real 0m5.109s user 0m0.040s sys 0m0.000s 00000000 52 49 46 46 24 ee 02 00 57 41 56 45 66 6d 74 20 |RIFF$...WAVEfmt | 00000010 10 00 00 00 01 00 01 00 80 bb 00 00 00 77 01 00 |.............w..| 00000020 02 00 10 00 64 61 74 61 00 ee 02 00 ee 32 ff b2 |....data.....2..| 00000030 3a b3 76 b3 b2 b3 ee b3 2a b4 65 b4 a1 b4 dc b4 |:.v.....*.e.....| 00000040 17 b5 52 b5 8e b5 c9 b5 04 b6 3f b6 79 b6 b4 b6 |..R.......?.y...| 00000050 ef b6 29 b7 65 b7 9f b7 d9 b7 13 b8 4d b8 87 b8 |..).e.......M...| 00000060 c1 b8 fc b8 36 b9 70 b9 a9 b9 e3 b9 1c ba 56 ba |....6.p.......V.| 00000070 8f ba ca ba 03 bb 3c bb 75 bb ae bb e7 bb 20 bc |......<.u..... .| 00000080 59 bc 92 bc cb bc 03 bd 3c bd 74 bd ac bd e4 bd |Y.......<.t.....| 00000090 1e be 56 be 8e be c6 be fd be 35 bf 6d bf a6 bf |..V.......5.m...| ######## batch on ######## render: 50 batch-on.wav progress: 0 progress: 1 progress: 2 progress: 3 progress: 4 progress: 5 progress: 6 progress: 7 batch-on.wav: biggest amplitude = 0.000000 progress: 8 progress: 9 real 0m0.197s user 0m0.000s sys 0m0.000s 00000000 52 49 46 46 24 ee 02 00 57 41 56 45 66 6d 74 20 |RIFF$...WAVEfmt | 00000010 10 00 00 00 01 00 01 00 80 bb 00 00 00 77 01 00 |.............w..| 00000020 02 00 10 00 64 61 74 61 00 ee 02 00 00 00 00 00 |....data........| 00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 0002ee20
_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list