🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.music
Article #3438

Re: Csound and samples again

#3438
From: Thomas Sullivan
Date: Thu, 27 Jun 1991 16:42
16 lines
1163 bytes
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
Technical Details
Message-ID: <ocOVKFm00WB70Bvkdv@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!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+
References: <1991Jun23.224435.1@cc.helsinki.fi> <4cNnxvy00WB4AGm0Ug@andrew.cmu.edu> <1991Jun26.002918.1@cc.helsinki.fi>, <13334@aggie.ucdavis.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <ocOVKFm00WB70Bvkdv@andrew.cmu.edu>
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>