cho rda and sin and cos

Software questions and issues with the FV-1

Moderator: frank

Post Reply
dkleinjans
Posts: 13
Joined: Thu Dec 03, 2015 12:55 pm

cho rda and sin and cos

Post by dkleinjans »

Hi,
I'm trying to understand the cho rda command. In the end, I want to make a quadrature sine wave for a chorus, with four waves 90 degrees offset. I created a simple program to try to see the effect of the sin and cos outputs. The input to the FV-1 is a sine wave from a frequency generator. The dacl and dacr outputs viewed on a scope are identical, which surprises me. I expected they would be 90 degrees offset. What am I missing?
Thanks for any help.


mem mchodel 32767

skp run, start
wlds SIN0, 25,32767
start:

ldax adcl
wra mchodel, 0

cho rda, sin0,sin|reg|compc,mchodel^
cho rda, sin0,sin,mchodel^+1
wrax dacl, 0

cho rda, sin0,cos|compc,mchodel^
cho rda, sin0,cos,mchodel^+1
wrax dacr, 0
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Re: cho rda and sin and cos

Post by frank »

I believe you missed the "reg" in the
cho rda, sin0,cos|compc,mchodel^
line.
Frank Thomson
Experimental Noize
dkleinjans
Posts: 13
Joined: Thu Dec 03, 2015 12:55 pm

Re: cho rda and sin and cos

Post by dkleinjans »

Well, that was easy.
Thank you, Frank.
Post Reply