Divremc for K-rate?


#1

Hey :slight_smile:

Is there something like the divremc for k-rate signals?

When the divremc reaches the max, for example 16, then it starts over from 0.

I am looking for something that when a K-rate signal reaches 64 and goes beyond that, it starts counting from zero again.

Is this possible with all ready existing objects?

Thanks, Jaffa


#2

you could do this with the normal divremc, though you can only range it to integers (not, for example, 16.42).
Multiply the div-output with the denominator value and subtract this from the original signal.
I made one of these modules in my early stages of coding, though I didn't really like the result as a signal got also wrapped when it went over 32 bits. As a knob takes 28bits, it's only just a 4 bits space. So as soon as you multiply a knob with more then 16, it will be wrapping at a different position instead of when it would wrap because of the divremc module alone.
Though, I'll look into this this afternoon (now got to go to work) as I'm just thinking that I could do this multiplication inside the module at 64bit, do the wrapping, and output it as 32bit again


#3

I just made the K-rate (rather "fractional" as the normal divremc is also at K-rate, but given in integers) divremc
called "divremcF" in my math-folder.

it has a fractional output for the remainder and an integer output for the divisions
it also has a scaled output that scales the remainder back to a 0-64 fractional range.


#4

Thanks man :slight_smile:

WIl check it out right away :slight_smile:


#5

not sure whether it's already on github, probably depends on which version you've installed.. I'm 1 version behind.


#6

I just checked it is not there yet..

Ahh well, Ill just go to github and fetch it manually :slight_smile:


#7

I've just hit sync an extra time
otherwise you'll probably have to wait until technobear merges them to the next version, but I don't want to bug him with this all the time, knowing that I create multiple modules each day haha


#8

I got it manually form github and it is working. No need to bug Technobear

:slight_smile: Thanks


#9

ok, nice! 20 characters