[PD-dev] arbitrary start position with tabwrite~

Chris McCormick chris at mccormick.cx
Tue Sep 17 13:48:28 CEST 2002


Hi Miller, list,
I've made the following tiny patch to tabwrite~ so i can begin recording to a table at an arbitrary sample position. instead of banging tabwrite~ you can send it 'start 123' and it will start recording at sample position 123. I need this because i want to make long audio recordings but i might not want to start recording the whole thing at the beginning.

Regards,

Chris.

chr15m:~/software/installed/pd-0.35-0/src$ diff d_array.c d_array.c.old 
96,100d95
< static void tabwrite_tilde_start(t_tabwrite_tilde *x, t_floatarg fstart)
< {
<     x->x_phase = fstart;
< }
< 
139,140d133
<     class_addmethod(tabwrite_tilde_class, (t_method)tabwrite_tilde_start,
<       gensym("start"), A_FLOAT, 0);

_________________________________
chris at mccormick.cx
http://www.mccormick.cx
http://www.sciencegirlrecords.com




More information about the Pd-dev mailing list