Csound Csound-dev Csound-tekno Search About

[Cs-dev] mac issue

Date2011-06-06 21:00
Frommenno
Subject[Cs-dev] mac issue
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

Date2011-06-09 08:45
Frommenno
SubjectRe: [Cs-dev] mac issue
Bumping....

i like to upload an example for mac, but to my opinion the order of the
arguments is mixed up.
what shall i do, change the manual to this?:
ares mac ksig1, asig1, [, ksig2]  [, asig2] [, ksig3]  [, asig3] [...]

Perhaps someone can have a look at the code and tell me if i made a mistake
with the example or the code has to be changed somewhat?  

greetings
Menno

--
View this message in context: http://csound.1045644.n5.nabble.com/mac-issue-tp4459761p4471896.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-06-10 16:10
Fromjohn ffitch
SubjectRe: [Cs-dev] mac issue
the code says 
    ans mac a1, k1, ....

Could be counter intuitive, and could be changed

Sorry for delay in answer -- been in receipt of unstable net for the
last week
==John ffitch

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-06-10 20:08
Frommenno
SubjectRe: [Cs-dev] mac issue
Hi John,

the counter intuitivity is not the problem. 
When i use the opcode in the way it is written in the manual i get this
carbage (please listen at very low volume!):
http://csound.1045644.n5.nabble.com/file/n4477014/mac.ogg mac.ogg 

it works fine when i exchange the order to:
aout  mac klow, alow
http://csound.1045644.n5.nabble.com/file/n4477014/macright.ogg macright.ogg 

Menno


--
View this message in context: http://csound.1045644.n5.nabble.com/mac-issue-tp4459761p4477014.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net