[Csnd] loop_lt stops earlier than expected
Date | 2013-10-27 10:48 |
From | Stefan Thomas |
Subject | [Csnd] loop_lt stops earlier than expected |
Dear community, in the below quoted example I would expect a huge number of repetitions of the same output, but unfortunately it stops after some repetitions and I don't know why.<CsoundSynthesizer> <CsOptions> -dm0 -iadc:hw:0,0 -odac -+rtaudio=alsa --expression-opt -+rtmidi=null </CsOptions> ; ============================================== <CsInstruments> sr = 48000 ksmps = 100 nchnls = 2 0dbfs = 1 giRecBuf1 ftgen 1,0,1048576,-7,0,1048576,0 gitablelen init 1048576 alwayson 1 instr 1 insnumA = 2 idelayA = 0.1 idur = -1 event_i "i",insnumA,idelayA,idur endin instr 2 ; records in table 1, triggers instr. 100 ain inch 1 andx phasor sr/gitablelen andx = andx*gitablelen gkrecdur downsamp andx tablew ain, andx, 1 ; writes in table giRecBuf1 index = 0 idur = 2 loop: event_i "i",100,idur*index,idur ; evtl. noch iSpeed als output incr = 1 loop_lt index,incr,2048,loop ;spielt den loop 2^13 endin instr 100 ; plays the table, resynthsizes iz itimescal = 1.5 ipitch = 1 iamp = 1 fsigout pvstanal itimescal, iamp, ipitch, giRecBuf1 asigout pvsynth fsigout outs asigout, asigout endin </CsInstruments> ; ============================================== <CsScore> </CsScore> </CsoundSynthesizer> |