| 1 |
#N canvas 168 244 736 325 10; |
| 2 |
#X floatatom 53 24 0 40 16000; |
| 3 |
#X msg 168 278 \; pd dsp 1; |
| 4 |
#X text 287 196 <-- settings for mp3 stream; |
| 5 |
#X text 310 226 bitrate: bitrate of stream \, def. 224kbit/s; |
| 6 |
#X text 347 250 1 = joint stereo (default); |
| 7 |
#X text 307 288 quality: 1 = high \, 9 = low; |
| 8 |
#X text 308 208 (samplerate \, bitrate \, mode \, quality); |
| 9 |
#X text 311 238 mode: 0 = stereo; |
| 10 |
#X text 347 262 2 = dual channel; |
| 11 |
#X text 347 275 3 = mono; |
| 12 |
#X msg 171 143 print; |
| 13 |
#X msg 234 278 \; pd dsp 0; |
| 14 |
#X obj 51 59 osc~ 440; |
| 15 |
#X msg 169 174 mpeg 44100 128 1 4; |
| 16 |
#X msg 171 121 truncate; |
| 17 |
#X msg 171 98 append; |
| 18 |
#X msg 170 72 stop; |
| 19 |
#X msg 170 49 start; |
| 20 |
#X text 370 24 Open a file before any operations; |
| 21 |
#X text 228 95 Set recording mode to append ( which is the default |
| 22 |
); |
| 23 |
#X text 208 48 Start recording; |
| 24 |
#X text 231 118 Set recording mode to truncate; |
| 25 |
#X text 218 142 Print settings; |
| 26 |
#X floatatom 116 258 10 0 0; |
| 27 |
#X text 10 254 Bytes written; |
| 28 |
#X text 208 71 Stop recording ( this also writes a tag ); |
| 29 |
#X msg 169 198 mpeg 44100 8 3 5; |
| 30 |
#X msg 170 25 open /tmp/track1.mp3; |
| 31 |
#X obj 116 234 mp3write~; |
| 32 |
#X connect 0 0 12 0; |
| 33 |
#X connect 10 0 28 0; |
| 34 |
#X connect 12 0 28 0; |
| 35 |
#X connect 12 0 28 1; |
| 36 |
#X connect 13 0 28 0; |
| 37 |
#X connect 14 0 28 0; |
| 38 |
#X connect 15 0 28 0; |
| 39 |
#X connect 16 0 28 0; |
| 40 |
#X connect 17 0 28 0; |
| 41 |
#X connect 26 0 28 0; |
| 42 |
#X connect 27 0 28 0; |
| 43 |
#X connect 28 0 23 0; |