|  | Hi, 
working on an example for the mac opcode, i think the a-rate and and k-rate
are in the wrong order:
ares mac asig1, ksig1 [, asig2] [, ksig2] [, asig3] [, ksig3] [...]
should be:
ares mac ksig1, asig1, [, ksig2]  [, asig2] [, ksig3]  [, asig3] [...]
Is this right?
The csd that should prove this, works, but commenting out the other "mac"
produces a lot of distortion - watch out for your speakers/ears/neighbors
when trying!
; Select audio/midi flags here according to platform
-odac     ;;;realtime audio out
;-iadc    ;;;uncomment -iadc if real audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o mac.wav -W ;;; for file output any platform
sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1
instr 1	;4 band equalizer
klow =	p4	;low gain1
klmid =	p5	;low gain2      
kmidh = p6	;high gain1
khigh =	p7	;high gain2
ifn  =  p8	;table
ilc1 table 0, ifn	;low freqency range
ilc2 table 1, ifn	;low-mid
ihc1 table 2, ifn	;mid-high
ihc2 table 3, ifn	;high
asig	diskin2	 "fox.wav", 1
alow1	butterlp asig, ilc1		;lowpass 1
almid	butterlp asig, ilc2	      	;lowpass 2
amidh 	butterhp asig, ihc1	       	;highpass 1
ahigh	butterhp asig, ihc2		;highpass 2
aout	mac	 klow, alow1, klmid, almid;,  amidh,imidh,  ahsigh,ihigh
;aout	mac	 alow1,klow,almid,klmid;,  amidh,imidh,  ahsigh,ihigh
;	outs	 (aout+asig)*.4, (aout+asig)*.4
outs	 aout, aout
endin
f1 0  4 -2 150 300 600  5000
f2 0  4 -2 75  500 1000 10000
f3 0  4 -2 200 700 1500 3000
;           low lowmid midhigh high table		
i 1 0  2.8  2    1      1      1     1  
i 1 3  2.8  2    1      1      1     2 
i 1 6  2.8  2    1      1      1     3 
e
Menno
--
View this message in context: http://csound.1045644.n5.nabble.com/mac-issue-tp4459761p4459761.html
Sent from the Csound - Dev mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |