Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Transition between float values in Ruby

For general discussion related FlowStone

Transition between float values in Ruby

Postby remarkable » Wed Jan 11, 2017 2:53 pm

Hello everyone
Is there a way to make a cool transition (approximately 40 ms) between the float array values within the Ruby :?:

I've used "Slide" to do that but the transition is not like what I want.

I have an array with 36 different values and each float will change with a menu.

Sincerely
User avatar
remarkable
 
Posts: 26
Joined: Wed Jan 11, 2017 1:52 pm

Re: Transition between float values in Ruby

Postby remarkable » Sun Jan 15, 2017 4:38 pm

Only a simple volume fade in effect can solve my problem.

An envelope that can be triggered with a menu (index). Everytime menu selects an item, it will trig the envelope's only attack parameter (that will give 30 ms fade in effect)

Can anyone help?
User avatar
remarkable
 
Posts: 26
Joined: Wed Jan 11, 2017 1:52 pm

Re: Transition between float values in Ruby

Postby Nubeat7 » Tue Jan 17, 2017 9:01 pm

if you need the stransition in stream just use the de-zipper...
to do it in green also use the dezipper and then the mono to float primitive to read out the stream...
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Transition between float values in Ruby

Postby remarkable » Wed Jan 18, 2017 8:48 pm

I know de-zipper it's for float to stream transition.

Actually I've made a EQ curve menu. I pt an eq and each time menu selects an item, automatically eq is settled to the float values that I've defined. So eact time float values are changed, there is a disturbing CLICK sound. First I thought that I can get rid of this CLICK sound, with a transition with float to float (not de-zipper). But it didn't work.

I think I need an envelope. this click sound only happens when an item is selected, it makes click sound one time at the begining.
User avatar
remarkable
 
Posts: 26
Joined: Wed Jan 11, 2017 1:52 pm

Re: Transition between float values in Ruby

Postby Spogg » Thu Jan 19, 2017 5:47 pm

remarkable wrote:... this click sound only happens when an item is selected, it makes click sound one time at the begining.


Hi remarkable

It would help if you could upload your schematic so we could maybe help better...

Cheers

Spogg
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: Transition between float values in Ruby

Postby remarkable » Thu Jan 19, 2017 6:42 pm

Hello Spogg,

This is the schematic.

Thank you...
Attachments
EQ Floats.fsm
(951.41 KiB) Downloaded 897 times
User avatar
remarkable
 
Posts: 26
Joined: Wed Jan 11, 2017 1:52 pm

Re: Transition between float values in Ruby

Postby Spogg » Fri Jan 20, 2017 11:59 am

Well I’ve been able to sort something out for you!

I don’t really understand filters but I do know that when you change lots of parameters in green the timing is not well defined. This means that not all the filter parameters may be updated in one go. This in turn means that you may have illegal or unwanted states for your filters during the transition from one array to the next. In addition, just slowing the rate of change of green parameters will not help, as you discovered, because you will still get these undesired states at times. This unpredictability is why you say to keep trying because it doesn’t happen every time you switch arrays.

So, I removed your green de-zippers and created a smooth gating module. Also I put a delay on the index change for the selector so the output would drop before the array changed. This seems to work every time and you can tweak the settings as you wish.

If Martin is looking in he may be able to clarify the filter parameter issues better, or may even have a more elegant solution, but for now this at least works
.
Also I’ve included Martin’s output clipper which is always a good thing to include, especially for some sound cards.

BTW I like the idea behind this project so I hope it goes well.

Cheers

Spogg
Attachments
EQ Floats -Spogged.zip
(949.72 KiB) Downloaded 1004 times
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: Transition between float values in Ruby

Postby remarkable » Fri Jan 20, 2017 2:37 pm

Spogg,
Thak you very much, you are amazing. It solved my problem, thank you so much again...

Best regards
User avatar
remarkable
 
Posts: 26
Joined: Wed Jan 11, 2017 1:52 pm

Re: Transition between float values in Ruby

Postby Wassaka » Sat Jan 21, 2017 2:02 pm

Hi, I made a version where you do not have to modulate the amplitude, check it out!!
Attachments
EQ Floats (Wassaka Fix).fsm
(950.33 KiB) Downloaded 881 times
Wassaka
 
Posts: 85
Joined: Wed Dec 30, 2015 3:41 am

Re: Transition between float values in Ruby

Postby Spogg » Sat Jan 21, 2017 3:38 pm

Wassaka wrote:Hi, I made a version where you do not have to modulate the amplitude, check it out!!


Excellent alternative, using different filters :ugeek:

However I note that the original (with my fix) shows 1.2% CPU but yours shows 3.0 % CPU. So I guess that's the price needed to avoid the dip in volume and it'll be up to Mr. Remarkable to make his choice.

Cheers

Spogg
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Next

Return to General

Who is online

Users browsing this forum: Google [Bot] and 68 guests