Hi Developers, Related to this topic just out of curiosity, does the Victor Lazzarini tablew Pitch Shifter [1] now compile with Csound5 ? Does it require the setksmps 1 line ? Given the current, revised behaviour, (in this example) is it recommended to use all control rate signals and upsamp at the end or just deal in all audio (ie. aout tablew andx, itab) or possibly some other solution ? Are the new messages printed to the console printed at all message levels ? Apologies for all the questions, but SourceForge anonymous pserver access is not yet synchronized to the latest developer updates concerning the topic of this thread. Thanks in advance, -David [1] opcode PitchShifter, a, akkii setksmps 1 asig,kpsc,kfdb,ifn,iwin xin ilen = ftlen(ifn) /* delay length (samples) */ ihl = ilen/2 /* delay half-length */ krp init 0 /* read pointer */ kwp init 0 /* write pointer */ awp = kwp /* a-type copy of kwp */ kbsdiff = abs(krp - kwp) /* absolute difference */ if kbsdiff > ihl then if krp > kwp then kbsdiff = kwp+ilen - krp else kbsdiff = krp+ilen - kwp endif endif kenv table kbsdiff, iwin /* envelope/crossfade */ as1 table krp, ifn, 0, 0, 1 /* 'read-head' 1 */ as2 table krp, ifn, 0, ihl, 1 /* 'read-head' 2 */ amix = as1*kenv + as2*(1-kenv) /* mixed signal */ tablew asig+amix*kfdb, awp, ifn /* delay input */ /* update the pointers, check bounds */ kwp = kwp + 1 krp = krp + kpsc if kwp > ilen then kwp = 0 endif if krp > ilen then krp = 0 endif xout amix endop On 6/18/06, Istvan Varga wrote: > In case you did not notice, this issue has already been dealt with. > You can have inconsistent table index and output types for now, as > long as ksmps is 1 (and your examples do include "setksmps 1"), but > a warning message is printed to indicate that this style of coding > is not encouraged. > > On Sunday 18 June 2006 20:00, Dr. Richard Boulanger wrote: > > > Here are three broken UDOs that worked in Csound4. > > Note that these may have MacCsound info in the .csd that you > > might want to coment out to test. _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net