Page 7 of 27

Re: Combination Circuits/Schematics

PostPosted: Wed Jun 15, 2016 8:30 pm
by Nubeat7
you can exchange the ticker with the old version which should be in your toolbox..

Re: Combination Circuits/Schematics

PostPosted: Thu Jun 16, 2016 6:20 am
by RJHollins
ah ... ok.

I replaced the 'ticker' module, and all is working.

I fed the 'state' Boolean into the stock 'ticker' module and everything starts and re-sets nicely.

Also changed the LED to GREEN when active.

Re: Combination Circuits/Schematics

PostPosted: Thu Jun 16, 2016 8:48 am
by tiffy
RJHollins wrote:ah ... ok.

I replaced the 'ticker' module, and all is working.

I fed the 'state' Boolean into the stock 'ticker' module and everything starts and re-sets nicely.

Also changed the LED to GREEN when active.


Glad your (my) problem is solved mate. However, I would still like to have a look at the old Ruby Ticker code just to see where the difference is between the old & the new. Would it be inconvenient to ask you to post the old Ruby ticker here, as I don't have a copy of v3.0.4 ?

Thanks for the help from Tulamide & Nubeat7.

Re: Combination Circuits/Schematics

PostPosted: Thu Jun 16, 2016 5:55 pm
by RJHollins
Absolutely !

Here is the Graphics CountDown schematic you posted, with my changes.
Graphic Count Down Timer (Ruby) v3.fsm
(35.91 KiB) Downloaded 1100 times

Re: Combination Circuits/Schematics

PostPosted: Fri Jun 17, 2016 11:10 am
by tiffy
RJHollins wrote:Absolutely !

Here is the Graphics CountDown schematic you posted, with my changes.
Graphic Count Down Timer (Ruby) v3.fsm


Thank you, appreciate.

Re: Combination Circuits/Schematics

PostPosted: Mon Jun 20, 2016 4:36 pm
by tiffy
ONE DROPLIST ONLY (RUBY) + 2 x SELECTORS WITH DROP LISTS (RUBY):

Please note that the two Ruby Selectors are not exactly the same as the one has a static label and the other a dynamic label which corresponds to the item selected. The Ruby Drop List Only has intentionally no background and can be used as a hidden Drop list.

I don't know if anyone noticed that the previous Ruby Selectors & Ruby Drop List I uploaded to the DSP Forum some time ago, although they all retained their settings the setting displayed on their Drop lists reverted to 0 after a shutdown and a restart of the schematic.

So, that bug were fixed in this upload and I think the schematics is also a bit neater.

Re: Combination Circuits/Schematics

PostPosted: Mon Jun 20, 2016 6:26 pm
by Nubeat7
there are a few things to say about..

1. to place a redraw inside the draw methode forces an endless redraw loop
2. if you redraw inside ruby, no extra redraw primitives are needed
3. "d = @inside ? 20:0" - no variable of this line is used..
4. "output 2,v.height" - there is no output 2
5. it is a useless overload, to load all pc fonts on each start of the app, you can purgeable this
6. the init methode - @index = @index - better check if nil or?
7. preset management would be helpful too

i also wouldn't initialise "b" 2 times because it is confusing to have one variable which does 2 different things in one methode..

ps: you don't need to delete everything again, i stopped commenting your stuff, this is just an exception, because i'm bored, i promise ;)

Re: Combination Circuits/Schematics

PostPosted: Fri Jan 27, 2017 11:43 pm
by tiffy
RUBY RANDOM NUMBER GENERATOR (FROM A RANGE).

I am not sure if this is the best Ruby method I used for the Random Number Generator, however I tried to keep the Ruby Code as simple and as short as possible.

So, please first test it before using it in any application.

Re: Combination Circuits/Schematics

PostPosted: Sat Jan 28, 2017 9:13 am
by Spogg
Hey tiffy that's great and gone into my toolbox!

Cheers

Spogg

Re: Combination Circuits/Schematics

PostPosted: Sat Jan 28, 2017 10:33 am
by tiffy
RUBY RANGES:

Ruby supports ranges and allows us to use ranges in a variety of ways:

1) Ranges as Sequences

2) Ranges as Conditions

3) Ranges as Intervals

Just in case someone wonders what the "range.to_a" method (convert a range to a list) does in the Random Number Generator I posted previously, here is a link that explains it quite well:

https://www.tutorialspoint.com/ruby/ruby_ranges.htm