Not to change the subject in this thread, but am I right in thinking that most Csounders consistently use the diskin family of opcodes instead of loscil? diskin seems much more straightforward to use and I've never had a problem with it. On 4/21/06, Prent Rodgers wrote: > The first word in my note should have been "loscil" looping. Spell > checker "fixed" it to "oscilloscope" for me. Thank you. > > Prent Rodgers wrote: > > Ben, > > > > oscilloscope looping doesn't always do what you think it should. I use > > it extensively in my Csound work and have learned to avoid the quirks. > > If you want to use looping, the format has to be .aif, not .wav. I use a > > program called Awave Studio to correct the loop points, which are > > notoriously tough to get right. http://www.fmjsoft.com/awavestudio.html > > has it for sale. > > > > For each sample I use, I need to keep track of if it has a loop or not, > > and if it is stereo or mono. I store that info in variables iwavchan and > > iloop in this fragment. kcps2 is the frequency adjusted to the nearest > > cent, ifno is the sample function table, ibascps is the base frequency > > of the sample as recorded. > > > > > > ; calculate the frequency, the right sample to use, and other factors > > first > > ; Four choices: Mono looping, stereo looping, mono no-loop, stereo no-loop > > if iwavchan = 4 goto akaimono > > if iloop = 0 goto noloops > > ; Stereo with loop > > a3,a4 loscil 1, kcps2, ifno, ibascps; stereo sample with looping > > goto skipstereo > > noloops: > > ; Stereo without looping > > a3,a4 loscil 1, kcps2, ifno, ibascps,0,1,2 ; stereo sample without > > looping - note that 1,2 is bogus workaround > > goto skipstereo > > akaimono: > > if iloop = 0 goto noloopm > > ; Mono with looping > > a3 loscil 1, kcps2, ifno, ibascps ; mono sampling with loop > > a4 = a3 > > goto skipstereo > > noloopm: > > ; Mono without looping > > a3 loscil 1, kcps2, ifno, ibascps,0,1,2 ; mono AIFF sample without loop > > a4 = a3 > > > > skipstereo: > > ; apply the envelope > > > > Ben Collver wrote: > >> I could not get looping to work using loscil. > >> > >> The manual states "If sampling reaches the sustain loop endpoint and > >> looping is in effect, the point of sampling will be modified and loscil > >> will continue reading from within that loop segment." > >> > >> How do I set it so that looping is in effect? Would someone show me an > >> example orchestra and score? > >> > >> Thank you, > >> > >> Ben > > > > -- > Music that's "Fake but Accurate"! > Web page: http://prodgers13.home.comcast.net > Podcast: http://podcast1024.libsyn.com > Another Podcast: http://BumperMusic.blogspot.com > Music: http://www.soundclick.com/PrentRodgers > > -- > Send bugs reports to this list. > To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >