
;=====================================================================================
;	Example file for using CMask as a stochastic events generator within GeoMaestro
;		(see function GetStochEv() in lib/cmask_utils)
;=====================================================================================

; a warning message for the beginning of the generated .sco file: 


{
;# WARNING ! this is not a valid Csound score file !

;# ...it is supposed to be processed by GeoMaestro GetStochEv() function 
;#	to generate stochastic event scenes

;# parameters mapping:
;#--------------------
;# p1	ch
;# p2	(ignored) 
;# p3	dur
;# p4	vol
;# p5	pit
;# p6	x	(only if r=0, that is "p8 const 0" or no p8 at all)
;# p7	y	( id. )

;# optional:

;# p8	r
;# p9	theta
;# p10	polar center x
;# p11	polar center y

;# p12	selection flag (0 or 1)
}

f 0 200								; number of events to be generated (see below)

p1 const 10							; GeoMaestro channel numbers

p2 const 1							; ... so that the f statement gives the number of events

p3 rnd exp 1						; durations (in clicks !)
mask 96 192

p4 const 127						; volumes

p5 rnd exp 1						; pitches
mask 40 100
quant 3

p6 const 0							; x-positions
p7 const 0							; y-positions

p8 rnd exp 1						; r	(polar coordinates)
mask 0 5

p9 range 0 3.14159265				; theta (polar coordinates)

p10 const 1							; x for polar center
p11 const 0							; y

p12 range 0 1						
mask 0 1
quant 1 1