Csound Csound-dev Csound-tekno Search About

random*line/tablemix

Date1998-02-12 02:16
FromPeter Heeren
Subjectrandom*line/tablemix
Hallo!

I want to disign an orc., in which the beginning, ending and frequenzy
of all "tones" are determinated by a "random-field" like this:

	freq	
		  +
		  +
		  +
		  +
		  +																	
		  +																	
		  +																
		  +	                                  										     
+			                      +
200       +	                      +													      +			
		  + 	           +													
		  +            + 
100       +        +	    random-field	
		  +    	+											
50  	  +	*					
		  ++++++++++++++++++++++++++++++++++
										time																							

That means: At the beginnig of the music, the frequenzys of tones are in
the area between 0 and 50 Hertz, and in the end between 0 and 250.

For me as a beginner there a two possibilities with good and bad
aspekts: 
1)Gen 21
2)rand or noise-opcodes

1)
orc:
****    
ktime randh .05, 8
kph phasor ktime
kenv line 1, p3, 100
kta table kph*ftlen(p4), 2
asig oscil (kta*kenv*800), (kta*kenv*20), 1
out asig
endin
****
sco:
f1 0 1024 10 1
f2 0 128 21 5
i1 0 10 2
e
****

The Problem for me is, that the freqenzy of the tone - given from the
table and line-opcode -
increase with line, *also in the duration of the tone!*: The tone gets a
unwanted glissando.
To solve the problem it is possible to change the orchestra header
statements, for example:
sr = 44100
kr = 1
ksmps = 44100
Then you can take one stage a sec., but no possibility for a diffrent
time-envelope.

2)
Same problem: the tone has a unwanted gliss. 

Can anybody solve the problem?
Can anybody give me an example in which tablemix and tablew is used?

Thanks 
Peter

P.S.: The term "tone" is not defined, I know.