Csound Csound-dev Csound-tekno Search About

linenr problem

Date1998-04-07 02:19
FromDavid Boothe
Subjectlinenr problem
Please excuse me if this gets posted twice. It didn't seem to go through
the first time.

In attempting to use linenr in the following orc/sco, I must be making a
fundamental mistake somewhere, but I can't see it. From the manual's
description, I would expect linenr to extend the note to about 1.5
seconds, with the last .5 second being an exponential decay. Instead,
the note cuts off at 1 second. Could someone please tell me what I am
doing wrong?

Thank you in advance.

-dB
(David M. Boothe)

;here's the orchestra  -------------------------------------
sr			=	44100
kr			=	4410
ksmps		=	10
nchnls		=	1 

instr 04

  idur		=	p3			;initial duration of
note
  iamp		=	p4			;initial amp of note
  ifn  		=	4			;number of ftable for
audio waveform
  irise		=	idur/2		;attack time of noise
  idec		=	.5			;exponential decay time
of noise - appended at note off (!?)
  krange		=	15000		;range of noise gen
  iatdec		=	.01			;attenuation
factor for exponential decay

anoisc		atrirand		krange
aampe		linenr		iamp, irise, idec, iatdec
a1			oscili 		aampe, anoisc, ifn
out a1
endin


;and the score  ------------------------------------------
f4	0	256	10	1

i4	0	1	15000
e

Date1998-04-07 12:47
FromPiche Jean
SubjectRe: linenr problem
> 
> In attempting to use linenr in the following orc/sco, I must be making a
> fundamental mistake somewhere, but I can't see it. From the manual's
> description, I would expect linenr to extend the note to about 1.5
> seconds, with the last .5 second being an exponential decay. Instead,
> the note cuts off at 1 second. Could someone please tell me what I am
> doing wrong?


linenr only works with midi.


_____________________________________________________________________________
                                                                   Jean Piche
                                                                Musique - UdM
                                                      pichej@ERE.Umontreal.ca