Search found 23 matches

by jotb
Thu Sep 25, 2014 8:31 am
Forum: DSP
Topic: sin1(x) > 1 ?
Replies: 11
Views: 43363

Re: sin1(x) > 1 ?

here is the paper:
m
and I just found out, that in the matlab are negative values used for z. So e.g. -0.2 in the given formula and the function sin(x)+(abs(sins(x)))+0.2 with the given Sine-Wave.wav file, which is half as loud as a sinewave, the plot can be achieved.
But the complete signal chain ...
by jotb
Wed Sep 24, 2014 9:46 am
Forum: DSP
Topic: sin1(x) > 1 ?
Replies: 11
Views: 43363

Re: sin1(x) > 1 ?

thank you. very good link!

I have found something in the matlab code:
there is a point before ^
sin(x)+(abs(sin(x))).^8-z

i found out that is something like element by element calculation. but where is a matrix or so ?? :oops:
by jotb
Tue Sep 23, 2014 12:12 pm
Forum: DSP
Topic: sin1(x) > 1 ?
Replies: 11
Views: 43363

Re: sin1(x) > 1 ?

It still seems not right. I have too much "gain" and the phase seems wrong too.

the original function is:
y=sin(x)+(abs(sin(x)))^8-z

I have added the schematic. And a picture of how the sinewave should look like.
by jotb
Mon Sep 22, 2014 8:21 pm
Forum: DSP
Topic: sin1(x) > 1 ?
Replies: 11
Views: 43363

Re: sin1(x) > 1 ?

Thank you!

sin1(x)/(2*pi) seems to work

:oops: I always looked for something like math.pi

I just don`t get the stream output to do what I want...
by jotb
Mon Sep 22, 2014 5:01 pm
Forum: DSP
Topic: sin1(x) > 1 ?
Replies: 11
Views: 43363

Re: sin1(x) > 1 ?

hmm. strange. I just build that and now the problem is gone.

but now I have another one:
I am trying to rebuild a matlab code in the code module. But I think the sin1(x) is different than the sin(x) in matlab. How do I "convert" that? I how do I get Pi in code module?
I think that is my problem:
m ...
by jotb
Mon Sep 22, 2014 1:10 pm
Forum: DSP
Topic: sin1(x) > 1 ?
Replies: 11
Views: 43363

Re: sin1(x) > 1 ?

for now, I just do:

y=sin1(x);

y is streamout
by jotb
Mon Sep 22, 2014 12:49 pm
Forum: DSP
Topic: sin1(x) > 1 ?
Replies: 11
Views: 43363

sin1(x) > 1 ?

Hello,

studid question:
I run a 500Hz sine wave into the dsp module. If i process sin1(x), where x is the input, the output is > 1. how is that possible? :o
by jotb
Sat Sep 20, 2014 12:31 pm
Forum: DSP
Topic: Help needed for a valve gainstaging project
Replies: 18
Views: 58096

Re: Help needed for a valve gainstaging project

Hello,

I still have problems to get the gainstage right.
it shoud look like in the picture...
where is my fault? I added the schematic
thanks,
jotb
by jotb
Wed Sep 17, 2014 8:33 pm
Forum: DSP
Topic: FIR filter module
Replies: 8
Views: 31708

Re: FIR filter module

to be honest, I did not understand that :oops:
by jotb
Wed Sep 17, 2014 4:16 pm
Forum: DSP
Topic: FIR filter module
Replies: 8
Views: 31708

Re: FIR filter module

thank you!
and yes I am looking for linear phase filters.
I just have problems to get used to the examples.
For example, how do I get a highpass filter with cutoff frequency=200hz and 128 coefficients??