Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!sei.cmu.edu!fs7.ece.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!ts09+ From: ts09+@andrew.cmu.edu (Thomas Sullivan) Newsgroups: comp.music Subject: Re: Csound and samples again Message-ID: Date: 27 Jun 91 16:42:57 GMT References: <1991Jun23.224435.1@cc.helsinki.fi> <4cNnxvy00WB4AGm0Ug@andrew.cmu.edu> <1991Jun26.002918.1@cc.helsinki.fi>, <13334@aggie.ucdavis.edu> Organization: Carnegie Mellon, Pittsburgh, PA Lines: 16 In-Reply-To: <13334@aggie.ucdavis.edu> well, actually ftlen() would be of help if you are using oscil as pointed in my previous post. You scale the cps field by samplerate/table_length. You know srate (you set it yourself!) and then make a call to ftlen(px) where 'px' is a parameter you pass from the scorefile that is the table number you require. so; a1 oscil p3, p4 * srate/ftlen(p5), p5 out a1 endin p3 = amplitude, p4 = scaled cps (a 1 means play as normal, a 2 one octave higher, etc), and p5 is the table number. --tom