Why? I'm asking myself: why I took this as a challenge??? I just made readsf.meh~.

It works similar to readsf~ with some changes.

- It is prepared to read stereo files.
- Optional argument: miliseconds for the metro to output the time positon. Default 10.
- Open files with [open file.wav(
- Starts with [start(
- Stops with [stop(, but, when [start( is sended after [stop(, it opens the last file and start playing it (can have a delay of loading, maybe an unsynch of timer, I didn't check it. The same as when the file ends)
- Pauses with [pause(
- Resumes with [resume(

Outputs:

1- output left
2- output right
3- status (symbol): loaded, playing, paused, stopped.
4- minutes (int)
5- seconds (int)
6- miliseconds (int)
7- time position "minutes:seconds" (symbol).

When I use this and check it is version 1.0, I'll upload to forum.



El 09/10/13 22:05, Mario Mey escribió:
El 09/10/13 18:08, IOhannes m zmölnig escribió:
On 10/09/13 20:49, Mario Mey wrote:
Sorry, I meant that I wanted to know the *time position* of the file,
while playing. I know that I can put a [timer] and reset-activate it
when readsf~ starts playing, but I would be great if readsf~ use the
mostrigh outlet to output this information (always or when asked for it).
why?

or rather, why don't you just create an abstraction [meyreadsf~] that
wraps the [timer] logic (and share it with the community)?
Well... it's a good idea. I use readsf~ with switch~ to pause and unpause it. It can be all transformed in an abstraction. I don't need precision and my 20 minutes song doesn't need to be counted... but if readsf~ is precise with time position, then, the new abstract will be too.

*Is readsf~ precise?*

If/when I make that abstract, I'll share it, of course.
gfmaf
IOhannes



_______________________________________________
[email protected]  mailing list
UNSUBSCRIBE and account-management ->http://lists.puredata.info/listinfo/pd-list


#N canvas 238 77 1041 673 12;
#X obj -16 295 readsf~ 2;
#X msg 134 229 stop;
#X msg 45 229 start;
#X obj -16 525 outlet~;
#X obj 44 525 outlet~;
#X obj 650 490 outlet;
#X obj 403 364 timer;
#X obj -16 -46 inlet;
#X msg -16 229 open \$1;
#X obj 107 465 switch~;
#X obj 107 435 pipe 8;
#X obj 62 405 t f f;
#X obj 62 465 line~;
#X obj 44 495 *~;
#X msg 62 435 \$1 5;
#X obj -16 495 *~;
#X msg 62 375 0;
#X msg 102 375 1;
#X obj 590 344 mod 60;
#X obj 530 344 div 60;
#X obj 530 281 / 1000;
#X obj 530 301 t f f f;
#X floatatom 650 374 0 0 0 0 - - -;
#X floatatom 590 374 0 0 0 0 - - -;
#X floatatom 530 374 0 0 0 0 - - -;
#X obj 650 274 t f f;
#X obj 682 294 int;
#X obj 650 314 -;
#X obj 650 334 * 1000;
#X obj 650 354 int;
#X obj 327 298 f;
#X obj 403 424 +;
#X obj 309 364 f;
#X msg 449 278 stop;
#X obj 327 334 +;
#X obj 309 394 t f f;
#X obj 403 278 t b b;
#X obj 365 174 t b b b;
#X msg 365 278 0;
#X obj 449 344 metro 10;
#X obj 590 490 outlet;
#X obj 530 490 outlet;
#X obj 190 521 outlet;
#X obj -16 -12 route open start pause resume stop;
#X msg 724 444 \$1:\$2;
#X obj 724 484 outlet;
#X obj 724 464 symbol;
#X msg 190 365 symbol loaded;
#X msg 190 395 symbol playing;
#X msg 190 425 symbol stopped;
#X msg 190 455 symbol paused;
#X obj -56 -46 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 907 242 < 10;
#X obj 826 222 t f f;
#X obj 826 274 list prepend;
#X obj 826 304 route 0 1;
#X obj 724 424 pack f segundos;
#X msg 856 334 0\$1;
#X text 518 518 minutos;
#X text 588 518 segundos;
#X text 658 517 ms;
#X text 728 517 minutos:segundos;
#X text 188 543 status;
#X msg 826 334 \$1;
#X obj 826 364 makefilename %d;
#X obj 856 404 symbol;
#X obj -16 199 symbol;
#X obj 33 343 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 225 65 spigot;
#X obj 135 105 t b b b b b;
#X msg 264 35 1;
#X msg 294 35 0;
#X obj 45 105 t b b b b b;
#X obj 225 105 t b b b b b;
#X obj 315 105 t b b b b b b;
#X obj 45 153 list prepend 1;
#X obj 45 183 route 0 1;
#X msg 403 133 0;
#X obj -44 107 t b b b b b;
#X msg 58 69 1;
#X obj -16 16 t a b b b b;
#X obj 502 15 loadbang;
#X obj 502 45 \$1;
#X obj 583 95 == 0;
#X msg 532 184 10;
#X obj 502 154 route 0 1;
#X obj 502 124 list prepend;
#X obj 502 75 t f f;
#X connect 0 0 15 0;
#X connect 0 1 13 0;
#X connect 0 2 67 0;
#X connect 0 2 74 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 6 0 31 0;
#X connect 6 0 34 1;
#X connect 7 0 43 0;
#X connect 8 0 0 0;
#X connect 10 0 9 0;
#X connect 11 0 14 0;
#X connect 11 1 10 0;
#X connect 12 0 13 1;
#X connect 12 0 15 1;
#X connect 13 0 4 0;
#X connect 14 0 12 0;
#X connect 15 0 3 0;
#X connect 16 0 11 0;
#X connect 17 0 11 0;
#X connect 18 0 23 0;
#X connect 19 0 24 0;
#X connect 20 0 21 0;
#X connect 21 0 19 0;
#X connect 21 1 18 0;
#X connect 21 2 25 0;
#X connect 22 0 5 0;
#X connect 23 0 40 0;
#X connect 23 0 53 0;
#X connect 24 0 41 0;
#X connect 24 0 56 0;
#X connect 25 0 27 0;
#X connect 25 1 26 0;
#X connect 26 0 27 1;
#X connect 27 0 28 0;
#X connect 28 0 29 0;
#X connect 29 0 22 0;
#X connect 30 0 34 0;
#X connect 31 0 20 0;
#X connect 32 0 35 0;
#X connect 33 0 39 0;
#X connect 34 0 32 1;
#X connect 35 0 31 1;
#X connect 35 1 30 1;
#X connect 36 0 39 0;
#X connect 36 1 6 0;
#X connect 37 0 38 0;
#X connect 37 1 6 0;
#X connect 37 2 33 0;
#X connect 38 0 30 1;
#X connect 38 0 34 1;
#X connect 38 0 31 1;
#X connect 39 0 6 1;
#X connect 43 0 80 0;
#X connect 43 1 72 0;
#X connect 43 2 69 0;
#X connect 43 3 68 0;
#X connect 43 4 74 0;
#X connect 44 0 46 0;
#X connect 46 0 45 0;
#X connect 47 0 42 0;
#X connect 48 0 42 0;
#X connect 49 0 42 0;
#X connect 50 0 42 0;
#X connect 52 0 54 1;
#X connect 53 0 54 0;
#X connect 53 1 52 0;
#X connect 54 0 55 0;
#X connect 55 0 63 0;
#X connect 55 1 57 0;
#X connect 56 0 44 0;
#X connect 57 0 65 0;
#X connect 63 0 64 0;
#X connect 64 0 56 1;
#X connect 65 0 56 1;
#X connect 66 0 8 0;
#X connect 68 0 73 0;
#X connect 69 0 16 0;
#X connect 69 1 30 0;
#X connect 69 2 33 0;
#X connect 69 3 50 0;
#X connect 69 4 70 0;
#X connect 70 0 68 1;
#X connect 71 0 68 1;
#X connect 72 0 75 0;
#X connect 72 1 36 0;
#X connect 72 2 48 0;
#X connect 72 3 17 0;
#X connect 72 4 71 0;
#X connect 73 0 17 0;
#X connect 73 1 36 0;
#X connect 73 2 32 0;
#X connect 73 3 48 0;
#X connect 73 4 71 0;
#X connect 74 0 1 0;
#X connect 74 1 37 0;
#X connect 74 2 16 0;
#X connect 74 3 49 0;
#X connect 74 4 71 0;
#X connect 74 5 77 0;
#X connect 75 0 76 0;
#X connect 76 0 78 0;
#X connect 76 1 2 0;
#X connect 77 0 75 1;
#X connect 78 0 2 0;
#X connect 78 1 66 0;
#X connect 78 2 48 0;
#X connect 78 4 71 0;
#X connect 79 0 75 1;
#X connect 80 0 66 0;
#X connect 80 1 47 0;
#X connect 80 2 74 0;
#X connect 80 3 71 0;
#X connect 80 4 79 0;
#X connect 81 0 82 0;
#X connect 82 0 87 0;
#X connect 83 0 86 1;
#X connect 84 0 39 1;
#X connect 85 0 39 1;
#X connect 85 1 84 0;
#X connect 86 0 85 0;
#X connect 87 0 86 0;
#X connect 87 1 83 0;
#N canvas 768 191 526 441 12;
#X msg -327 73 start;
#X msg -317 103 pause;
#X msg -307 133 resume;
#X msg -297 163 stop;
#X obj -348 256 *~ 1;
#X obj -323 291 *~ 1;
#X obj -347 331 dac~;
#X symbolatom -258 330 10 0 0 0 - - -;
#X floatatom -173 330 5 0 0 0 - - -;
#X floatatom -127 330 5 0 0 0 - - -;
#X floatatom -81 330 5 0 0 0 - - -;
#X symbolatom -24 330 10 0 0 0 - - -;
#X msg -349 12 open audio/aphex.wav \, start;
#X msg -339 42 open audio/aphex.wav;
#X floatatom -298 237 5 0 1 0 - - -;
#X obj -349 192 readsf.meh~;
#X connect 0 0 15 0;
#X connect 1 0 15 0;
#X connect 2 0 15 0;
#X connect 3 0 15 0;
#X connect 4 0 6 0;
#X connect 5 0 6 1;
#X connect 12 0 15 0;
#X connect 13 0 15 0;
#X connect 14 0 4 1;
#X connect 14 0 5 1;
#X connect 15 0 4 0;
#X connect 15 1 5 0;
#X connect 15 2 7 0;
#X connect 15 3 8 0;
#X connect 15 4 9 0;
#X connect 15 5 10 0;
#X connect 15 6 11 0;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to