T-Ladder Filter conversion

Sound synthesis techniques, DSP and related mathematics

Moderators: electrogear, exonerate

T-Ladder Filter conversion

Postby aliasant on Thu Dec 25, 2008 6:15 pm

Here is something I made that sounds interesting but could use some more work to be efficient enough.

Its a Ladder filter. The original is from Reaktor and it uses about 87cycles right now.
It is hopped by 64. This cold be in green but I wanted it in stream and I think that when it is all asm'd
and hopped it wont be that slow any way.
Right now it is divided into several code blocks + some primitives.

Good luck with it. :)
T-Ladder from Reaktor.rar
(104.27 KiB) Downloaded 255 times
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Re: T-Ladder Filter conversion

Postby infuzion on Thu Dec 25, 2008 7:42 pm

Neat, thank you!

BTW, it is best not to use any hops at all until the near the final version; you cannot find the difference between an original module and an faster version. I just wasted 20 minutes finding that out.

Also, you do not need to .RAR OSMs; SM automatically ZIPs them very well.
cheers!
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Re: T-Ladder Filter conversion

Postby aliasant on Thu Dec 25, 2008 8:01 pm

infuzion wrote:Neat, thank you!

BTW, it is best not to use any hops at all until the near the final version; you cannot find the difference between an original module and an faster version. I just wasted 20 minutes finding that out.

Also, you do not need to .RAR OSMs; SM automatically ZIPs them very well.
cheers!


oh. ok. Ill think about that in the future ;)
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Re: T-Ladder Filter conversion

Postby MichaelBenjamin on Thu Dec 25, 2008 9:11 pm

i must say as dr infuzion already mentioned you gain nothing by the (surely well-meant) packing to rar, since the osm is already compressed, and on the downside we must take the extra step of unpacking to the disk before opening, instead of instant opening. but this is only minor compared to your effort of putting this filter together, so thank you dr zoidberg:)
User avatar
MichaelBenjamin
smaniac
 
Posts: 1439
Joined: Thu Jul 12, 2007 3:26 pm

Re: T-Ladder Filter conversion

Postby infuzion on Thu Dec 25, 2008 10:51 pm

MichaelBenjamin wrote:...as dr infuzion already mentioned....but this is only minor compared to your effort of putting this filter together
Dr.? LOL
Yes, thanks for putting it together. I'm only saving you time by suggesting no need for the RAR O:)

As you can see, there is 99.99% no difference in the Code merging I've done so far, the only blip is in the beginning from the hopped sqrps I forgot.
Attachments
ReactorTLadder03MergedOutside.osm
only 1/3 of the Code merging done :(
(91.35 KiB) Downloaded 200 times
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Re: T-Ladder Filter conversion

Postby aliasant on Thu Dec 25, 2008 11:09 pm

MichaelBenjamin wrote:i must say as dr infuzion already mentioned you gain nothing by the (surely well-meant) packing to rar, since the osm is already compressed, and on the downside we must take the extra step of unpacking to the disk before opening, instead of instant opening. but this is only minor compared to your effort of putting this filter together, so thank you dr zoidberg:)



OK. I got to clearify this. I dont pack it with rar to save space. I pack it because rar uses error correction.
zip files sometimes gets messed up but if the file is "rared" the error correction prevents this. Works well for me.
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Re: T-Ladder Filter conversion

Postby aliasant on Thu Dec 25, 2008 11:17 pm

infuzion wrote:
MichaelBenjamin wrote:...as dr infuzion already mentioned....but this is only minor compared to your effort of putting this filter together
Dr.? LOL
Yes, thanks for putting it together. I'm only saving you time by suggesting no need for the RAR O:)

As you can see, there is 99.99% no difference in the Code merging I've done so far, the only blip is in the beginning from the hopped sqrps I forgot.


Well Dr. Infuzion :)

That was nice. When the TIRs are done the ladder part can be put together :)

Then those 2 parts can be put together and finally it all can be ASM'd =)

What do you guys think of the sound?
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Re: T-Ladder Filter conversion

Postby MichaelBenjamin on Fri Dec 26, 2008 2:09 pm

the sound very nice, similar to the reaktor lp2 - creamy but with a bit more juice than the lp2. i have a look later, no asm and code for me for some days.
User avatar
MichaelBenjamin
smaniac
 
Posts: 1439
Joined: Thu Jul 12, 2007 3:26 pm

Re: T-Ladder Filter conversion

Postby infuzion on Sat Dec 27, 2008 7:36 pm

Here is what I have so far, but I need to move on to other projects, so I'll let you guys have an attempt to improve what I have so far. The "merging" version is 100% the same, but not "TIR Code Lower HF" nor "TIR Code Aliasing?". The "Lower HF" might be better, since the peaks near 16kHz are not as pronounced, though the original does seem to have a slightly steeper slope.

Also, the first 20% of the Freq knob is dead, so I think the Freq Algorithm 2 green maths need to be altered to use the full [0..1] modulation range IMHO.

Have fun!
Attachments
ReactorTLadderFilter07CodeTIR.osm
(95.16 KiB) Downloaded 168 times
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Re: T-Ladder Filter conversion

Postby aliasant on Sat Dec 27, 2008 10:33 pm

Ill have a look tomorrow.

I think the freq algo is a bit too exact in the lower end. Can easily be adjusted with the exponent.

Update: I set the Exponent in the Freq Algo to 3 and that feels better.

The "T-Ladder TIR Code Aliasing?" has a problem. Havnt found what yet but the freqs are wrong.
If I want say 200Hz it actually gives me about 400Hz And if I set it at 400 it gives me about 800 so its doubled I guess.
Wonder why?
If you remember doing something that could have caused that let us know.


Update 2: haha. (feeling like a nutty professor) If you change the double Pi (6.2831898) to Pi in the green math the freq is back to normal with an interesting side effect The aliasing above nyquist ( I think) is gone and it looks more like a traditional filter. But.... It is not as accurate above 1kHz

Check the difference between the "T-Ladder TIR Code Lower HF" and the "T-Ladder TIR Code NOT Aliasing?"
Attachments
ReactorTLadderFilter07CodeTIR 2.osm
(113.62 KiB) Downloaded 199 times
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Re: T-Ladder Filter conversion

Postby infuzion on Mon Dec 29, 2008 7:04 am

Thanks for the replies.
I goofed with the Stream-primitives math conversion into Code with the TIR calculations. I think it should be:
Code: Select all
streamin TIRfeed;streamin w;
float TIRa0;
streamout TIRb1;
streamout TIRc0;
streamout TIRd1;
float denorm=0.00000001;
TIRa0 = TIRfeed+TIRb1;
TIRb1 = (TIRa0+denorm)-denorm;
TIRc0 = (w*TIRa0)+TIRd1;
TIRd1 = (TIRc0+denorm)-denorm;
I think I did not understand fully the "Delay by 1 sample". However, it is still the cause for the filter being off from the original. So, I'll still need help there, unless my Code version is more desirable.

Also, I think the Frequency Analysis Graph II.1 should switch off that Tick100 when no notes are being played. When ever I load that graph, my system CPU% on my laptop jumps up to 90%. Just think of all the electricity you'd save!
cheers.
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Re: T-Ladder Filter conversion

Postby aliasant on Mon Dec 29, 2008 12:18 pm

Ok. I changed to the new code but the aliasing version still has double the freq. I dont understand why.

I did make a new analyzer. It has selectable update rate. from 1 / sec to 100/ sec
Will use that from now. I dont have any problems like you mentioned and the latest beta6 feels much faster.
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Re: T-Ladder Filter conversion

Postby infuzion on Tue Jan 06, 2009 5:42 pm

infuzion wrote:...the "Delay by 1 sample". However, it is still the cause for the filter being off from the original. So, I'll still need help there, unless my Code version is more desirable.
We still need help/advice here; anyone please?
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Re: T-Ladder Filter conversion

Postby aliasant on Tue Jan 06, 2009 6:02 pm

OK. I made some pictures from Reaktor that describes how the parts inside this thing works.

I made this into a 1 sample delay because that was what I thought would be correct at the time.
Attachments
write.jpg
write.jpg (28.89 KiB) Viewed 2513 times
read.jpg
read.jpg (29.99 KiB) Viewed 2511 times
dnc.jpg
dnc.jpg (36.32 KiB) Viewed 2515 times
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Re: T-Ladder Filter conversion

Postby rl on Thu Jan 08, 2009 10:09 am

right, z^-1 or 1/z is just another notation for a one sample delay (z-domain transfer function)
User avatar
rl
dsp wiz
 
Posts: 1494
Joined: Mon Feb 07, 2005 10:24 pm
Location: de.earth.universe.known

Next

Return to Sound

Who is online

Users browsing this forum: No registered users and 1 guest