| The description for loscil seems very cryptic and far from complete:
/oscil is the basic unit for building a sampling synthesizer. Given a
sufficient set of recorded piano tones, for example, this unit can resample
them to simulate the missing tones. Locating the sound source nearest a
desired pitch can be done via table lookup. Once a sampling instrument has
begun, its turnoff point may be unpredictable and require an external
release envelope; this is often done by gating the sampled audio with
linenr, which will extend the duration of a turned-off instrument by a
specific period while it implements a decay.
EXAMPLE:
inum notnum
icps cpsmidi
iamp ampmidi 3000, 1
ifno table inum, 2 ;notnum to choose an audio sample
ibas table inum, 3
kamp linenr iamp, 0, .05, .01 ;at noteoff, extend by 50 ms.
asig loscil kamp, icps, ifno, cpsoct(ibas/12. + 3)/
Why are the tables not described in this example?
I am really trying to understand this. Does this mean audio table 2 contains
pointers to an audio table with samples and table 3 contains pointers to a
table with the base frequencies of these samples?
Put it differently: if I have 2 samples of a violin one octave apart, what
should I put in these tables for loscil to interpolate the missing notes?
Richard
--
View this message in context: http://csound.1045644.n5.nabble.com/loscil-sample-example-tp5050330p5050330.html
Sent from the Csound - General mailing list archive at Nabble.com.
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|