Csound Csound-dev Csound-tekno Search About

[Cs-dev] here's what I've got so far:

Date2010-05-03 18:50
FromJosh Brown
Subject[Cs-dev] here's what I've got so far:


; Select audio/midi flags here according to platform
; Audio out    No messages
-odac          -d     ;;;RT audio I/O
; For Non-realtime ouput leave only the line below:
; -o loscil.wav -W ;;; for file output any platform



instr 2
kstart chnget "oneone"
kstop chnget "onetwo"

   kamp = 30000

   a2 lposcil kamp, 1, kstart, kstop, 1

   out a2
endin



f 1 0 16777216 1 "beats.wav" 0 0 0
i 2 0 3600



If I change kstop to longer than the length of the sample, I can add silence to the end (but this means the whole clip plays).

If I make kstop shorter than the length of the sample, only part of the
clip plays (but no silence is added to the end of the sample).



The problem comes when I want to both make the clip shorter and add silence to the end. I am slowly learning csound but have no clue about how I would go about doing this, apart from using an envelope for the amplitude. 
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us now
------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net