[Csnd] wguide1 clicks in real time
Date | 2009-10-05 10:18 |
From | J |
Subject | [Csnd] wguide1 clicks in real time |
Hello! I am using Csound in real time mostly with the csound~ max/Msp external - Mostly with no problems. However, recently I have been hearing clicks when using wguide1 - it happens when changing frequency. I am using portK to smooth changes, but I've actually noticed that the longer the port time is, the more prevalent the clicks are. Is this an inherent part of the wguide1 opcode,or is there something that can be done to prevent them? I have also noticed this more minimally with streson - can anything be doen to prevent it? Here is my code - let me know if anyone has any ideas? Jeremy <CsoundSynthesizer> <CsInstruments> sr = 44100 kr = 4410 ksmps = 10 nchnls = 2 chn_k "frqL", 1 chn_k "frqR", 1 chn_k "fbL", 1 chn_k "fbR", 1 chn_k "coL", 1 chn_k "coR", 1 instr 1 ;control invalues ifl chnget "frqL" ifr chnget "frqR" ifbl chnget "fbL" ifbr chnget "fbR" icol chnget "coL" icor chnget "coR" gkfl chnget "frqL" gkfr chnget "frqR" gkfbl chnget "fbL" gkfbr chnget "fbR" gkcol chnget "coL" gkcor chnget "coR" kTime = 0.1 gkfl portk gkfl , kTime, ifl gkfr portk gkfr , kTime, ifr gkfbl portk gkfbl , kTime, ifbl gkfbr portk gkfbr, kTime, ifbr gkcol portk gkcol, kTime, icol gkcor portk gkcor, kTime, icor asig, asig2 ins ;=============================== ; midi inputs ;=============================== ;synth stuff aresL wguide1 asig, gkfl, gkcol, gkfbl aresR wguide1 asig2, gkfr, gkcor, gkfbr ;outs and envs denorm aresL, aresR outs aresL, aresR endin </CsInstruments> <CsScore> ;=========== ; toot01.sco ;=========== f 0 60000 i 1 0 60000 ; Activate the always-on chnget instrument. e ; indicates the end of the score </CsScore> </CsoundSynthesizer> |