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
Search found 539 matches
- Tue Oct 29, 2019 8:28 pm
- Forum: General
- Topic: How to do this properly in Ruby?
- Replies: 7
- Views: 15798
Re: How to do this properly in Ruby?
I post this here as alternative method, more or less performat of other?
Code: Select all
num = 5
a = [2, 3, 4]
a.sort.find{|x| x >= num} || a.first # =>2
- Tue Oct 29, 2019 4:24 pm
- Forum: General
- Topic: How to do this properly in Ruby?
- Replies: 7
- Views: 15798
Re: How to do this properly in Ruby?
Hi Tulamide,
I think you can use the bsearch method for this case.
--edit to make the result is 0(zero) if nothing.
I think you can use the bsearch method for this case.
Code: Select all
num = 5
a = [2, 4, 6, 7, 9, 11, 1, 2]
a.sort.bsearch{|x| x >= num} || 0 # => 6
--edit to make the result is 0(zero) if nothing.
- Fri Nov 10, 2017 2:12 pm
- Forum: General
- Topic: 64 BIT NEWS
- Replies: 12
- Views: 39258
Re: 64 BIT NEWS
Yes after this all is possible
viewtopic.php?f=6&t=9186
viewtopic.php?f=6&t=9186
- Sat Jul 16, 2016 2:24 pm
- Forum: General
- Topic: Timer problem with the midi keyboard
- Replies: 3
- Views: 13449
Re: Timer problem with the midi keyboard
The midi thread not work for windows timer,
you need to de-thread the trig with an trigger block
and re-thread it with an tick primitive.
you need to de-thread the trig with an trigger block
and re-thread it with an tick primitive.
- Sun Jun 12, 2016 4:10 pm
- Forum: User Examples
- Topic: Karplus Strong Synthesis
- Replies: 12
- Views: 44925
- Sat Jun 11, 2016 12:47 pm
- Forum: General
- Topic: knob tooltips
- Replies: 79
- Views: 190306
Re: knob tooltips
yes, I have already tried this, but if you drag an release too fast,
sometime you have an annoying flash redraw before it is cleared,
I've tried other solutions, but I think better than that for now it is not possible.
sometime you have an annoying flash redraw before it is cleared,
I've tried other solutions, but I think better than that for now it is not possible.
- Sat Jun 11, 2016 12:13 pm
- Forum: General
- Topic: knob tooltips
- Replies: 79
- Views: 190306
Re: knob tooltips
@ Nubeat7
even your suffering of my own bugs,
I can not find an efficient way to handle the mouse up when captured after an drag and drop, and must be resolved.
@tulamide
Thanks for the explanation, but the clearEvents is documented in Chapter 8, page 148
even your suffering of my own bugs,
I can not find an efficient way to handle the mouse up when captured after an drag and drop, and must be resolved.
@tulamide
Thanks for the explanation, but the clearEvents is documented in Chapter 8, page 148
- Fri Jun 10, 2016 6:41 am
- Forum: General
- Topic: knob tooltips
- Replies: 79
- Views: 190306
Re: knob tooltips
This system has no degradation of performance redraw,
It can be easily customized
and has already implemented a wait before being displayed,
then move your mouse and wait a second to see appear on the tooltips popups.
Edit: need to fix the drag mouse up release, at moment not work, very well.
It can be easily customized
and has already implemented a wait before being displayed,
then move your mouse and wait a second to see appear on the tooltips popups.
Edit: need to fix the drag mouse up release, at moment not work, very well.
- Sat Jun 04, 2016 3:37 pm
- Forum: General
- Topic: Trigger Switch in Ruby?
- Replies: 8
- Views: 23226
Re: Trigger Switch in Ruby?
I would reverse it, since there is no need to even check for 'knob' if switch is false:
def event i,v
if @switch
if i == "knob"
# this block of code is executed only if switch is true
@a = some very big and complicated formula
output 0, @a
end
end
end
yeah, but this not update the ...
- Sat Jun 04, 2016 2:28 pm
- Forum: General
- Topic: Trigger Switch in Ruby?
- Replies: 8
- Views: 23226
Re: Trigger Switch in Ruby?
add all your code, in the "if" check block
Code: Select all
def event i,v
if i == "knob"
if @switch
# this block of code is executed only if switch is true
@a = some very big and complicated formula
output 0, @a
end
end
end