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

random selections

For general discussion related FlowStone

Re: random selections

Postby Nubeat7 » Tue Nov 05, 2013 6:34 pm

@ trojak

your first solution is wrong because it sets the not randomized values to the first value of the values array

Code: Select all
..else @values[element]..


in the else path 'element' is always 0!
so all not randomized values are changing to the firts value of the values array
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: random selections

Postby tester » Tue Nov 05, 2013 6:56 pm

Nubeat7 wrote:use array ins and out, if you want a trigger, write it inside the event methode and add a trigger input..
Code: Select all
if'triggerIn'
..methode
end


Tried various ways, but ended up with nothing. Connecting trigger to ins changed nothing. Adding input and line of code on the beginning (and "end" at the end) changed nothing. Still don't get it.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: random selections

Postby Nubeat7 » Tue Nov 05, 2013 7:25 pm

tester wrote:
Nubeat7 wrote:use array ins and out, if you want a trigger, write it inside the event methode and add a trigger input..
Code: Select all
if'triggerIn'
..methode
end


Tried various ways, but ended up with nothing. Connecting trigger to ins changed nothing. Adding input and line of code on the beginning (and "end" at the end) changed nothing. Still don't get it.



hmm, try:
Code: Select all
if i==2
  put the methode from above inside here!
end

#when trigger is @ the 3rd in

i saw that it only works like this when using "if"
you also can do
Code: Select all
case i
when 'do_it_trigger' #name of input
put the methode from above inside here!

end

like this you can use the name of the input instead of i==2
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: random selections

Postby trogluddite » Tue Nov 05, 2013 9:12 pm

This module should do what you're looking for...
Random Frequency Chooser.fsm
(943 Bytes) Downloaded 771 times

Output array is always the same size as the input frequency array - if the "chooser" array is too short, the 'tail' values don't ever get randomised; if too long the, extra entries are ignored.
The frequency calculation weights the values logarithmically so that there is an equal probability per octave - so you might need to look at the maths if you don't desire a "musical" bias to the spread.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: random selections

Postby tester » Tue Nov 05, 2013 9:32 pm

Wow, thank you Trog, what a nice surprise!

It looks that I will bee a lot of work todo within next months. :-)

Array based multieditboxes and multisliders, cross references..., I wonder if MyCo's solution for multisine (via poly) will work with multiwavetable, but as far I remember (if it was using stock sine module) it should... - the old projects may both - get optimized a little bit on speed, and a lot on loading and management performance.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Previous

Return to General

Who is online

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