Search found 26 matches

by gary00k
Wed Oct 27, 2021 3:45 am
Forum: FV-1 software questions
Topic: Flanger code, starting point
Replies: 10
Views: 14860

Re: Flanger code, starting point

Okay. One more thing: is there a easier way to shift ACC value by X bits? I mean to simplify this: and 0x0000FF sof -2,0 sof -2,0 sof -2,0 sof -2,0 sof -2,0 sof -2,0 sof -2,0 sof -2,0 sof -2,0 sof -2,0 sof -2,0 sof -2,0 sof -2,0 sof -2,0 sof -2, 0 sof -1, 0 to something like this: and 0x0000FF < 15 ...
by gary00k
Tue Oct 26, 2021 11:55 am
Forum: FV-1 software questions
Topic: Flanger code, starting point
Replies: 10
Views: 14860

Re: Flanger code, starting point

I was afraid of that but ok, tell me please, does "fladel_139 < 8" means to shift fladel_139 value 8 places left?
by gary00k
Tue Oct 26, 2021 3:10 am
Forum: FV-1 software questions
Topic: Flanger code, starting point
Replies: 10
Views: 14860

Re: Flanger code, starting point

Any aditional suggestions, please?
by gary00k
Fri Oct 22, 2021 10:19 am
Forum: FV-1 software questions
Topic: Flanger code, starting point
Replies: 10
Views: 14860

Re: Flanger code, starting point

Okay, I thought it was simply about entering the value I want to start with. Still without change. :? ;pot0 = flange rate mem fladel 512 equ fladel_138 fladel+138 ; mid pointer to flange delay equ fladel_139 fladel+139 ; mid pointer to flange delay +1 equ tri reg0 ; triangle made from ramp equ flaou...
by gary00k
Thu Oct 21, 2021 11:11 pm
Forum: FV-1 software questions
Topic: Flanger code, starting point
Replies: 10
Views: 14860

Re: Flanger code, starting point

I assume you mean pot0 as pot1 does not appear in the code. Yes, my bad :D Try doing a skp run at the start of the code and initialize tri to a value based on the pot Unfortunately, that didn't change anything. ;pot0 = flange rate mem fladel 512 equ fladel_138 fladel+138 ; mid pointer to flange del...
by gary00k
Thu Oct 21, 2021 11:20 am
Forum: FV-1 software questions
Topic: Flanger code, starting point
Replies: 10
Views: 14860

Flanger code, starting point

Hi everyone. I found nice flanger code at spinsemi site. I modified it to make flanger depth controlled manually. It should increase delay (make fx frequency lower) with pot increasing and it works like that. The problem is, even if pot1 is set to 0 at the beginning, flanger goes itself from low to ...
by gary00k
Tue Oct 05, 2021 12:16 pm
Forum: Algorithm development
Topic: DDS frequency formula and sin generating
Replies: 19
Views: 24336

Re: DDS frequency formula and sin generating

Okay, I see.
Is fx core programming language similar to fv-1? I mean, can FV-1 programs be easy ported to fx core?
by gary00k
Tue Oct 05, 2021 9:10 am
Forum: Algorithm development
Topic: DDS frequency formula and sin generating
Replies: 19
Views: 24336

Re: DDS frequency formula and sin generating

Thanks Frank, your help is invaluable :D Let me ask you one more question, unrelated to the topic. Is there any way to prevent the eeprom contents from being decompiled? You know, I'm afraid now I can buy any FV-1 based product, make the memory dump and decompile bin with shift-line's docompiler. Is...
by gary00k
Tue Oct 05, 2021 5:53 am
Forum: Algorithm development
Topic: DDS frequency formula and sin generating
Replies: 19
Views: 24336

Re: DDS frequency formula and sin generating

Ok, I finally made it working as I want to :D
One more thing; how can I move starting value of generated signal, lets say, about 90 degrees left or right?
by gary00k
Mon Oct 04, 2021 9:38 am
Forum: Algorithm development
Topic: DDS frequency formula and sin generating
Replies: 19
Views: 24336

Re: DDS frequency formula and sin generating

That was a reply intended for another person who is using the h/w LFOs. Okay, just kidding :) I tried something another. Using OR and mulx, but still doesn't work. equ c reg0 equ s reg1 equ div reg2 ; Initialize SIN / COS skp run, 4 clr or 0x7FFFFF wrax s, 0 ; initialize SIN to 1 wrax c, 0 ; initia...
by gary00k
Sun Oct 03, 2021 10:36 pm
Forum: Algorithm development
Topic: DDS frequency formula and sin generating
Replies: 19
Views: 24336

Re: DDS frequency formula and sin generating

Frank, are you drunk? :D This whole thread is about doing LFO in code (I don't want to use hardware LFOs). I was asking how to control this code LFO at low frequencies (low value of frequency variable) without losing accuracy. I'd be so grateful for your suggestions.
by gary00k
Sun Oct 03, 2021 10:59 am
Forum: Algorithm development
Topic: DDS frequency formula and sin generating
Replies: 19
Views: 24336

Re: DDS frequency formula and sin generating

I meant, mathematically they should be the same.
Anyway, how can I control this LFO at low frequencies without losing accuracy?
by gary00k
Sun Oct 03, 2021 10:46 am
Forum: Algorithm development
Topic: DDS frequency formula and sin generating
Replies: 19
Views: 24336

Re: DDS frequency formula and sin generating

Yup, but in both cases c is multiplied by 0.00028095; in the first case immediately by factor of 0.00028095 and in the second, first by 0.28095 and then 3 times by 0,1. Result should be the same, accuracy is not :/ Does it mean when I multiply c directly by very small value (i.e. 0.00028095) it's wo...
by gary00k
Sun Oct 03, 2021 9:52 am
Forum: Algorithm development
Topic: DDS frequency formula and sin generating
Replies: 19
Views: 24336

Re: DDS frequency formula and sin generating

No, the sample rate is constant all the time. You didn't understand my problem :)
It looks like this:

Code: Select all

sof	0.00028095, 0
isn't equal to this:

Code: Select all

sof	0.28095, 0
sof	0.1, 0
sof	0.1, 0
sof	0.1, 0
Maybe some problem with approximation?
by gary00k
Sat Oct 02, 2021 11:03 pm
Forum: Algorithm development
Topic: DDS frequency formula and sin generating
Replies: 19
Views: 24336

Re: DDS frequency formula and sin generating

Thank you, Frank :D So far, I think I found the formulas for this ramp and sin DDS. For ramp: T[s] = [4194303/((1536 * potX) + 8 )]/R And for sin: T[s] = (2 * pi) / (potX * R) potX - pot input, range 0 to 1 R - sample rate But I found an issue too. Look at my example: ; Normal program starts here rd...