Page 1 of 1
Posted: 20 Jul 2011, 13:04
by r.erorr
Hi, I have too modules - sampler and panner from 2 to 4. I what that every time the sample is changed the speaker is changed randomly too. In panner module that means 4 different values for XY - 10, 01, 00 and 11.
P.S I already have automatic pan that mens - it record mouse movements, but this technique is not very effective when samples are too small in ms. Therefore Would be great every sample pass into definite speaker and not between 1-3, 2,4 and so on... as it happens with automatically recorded mouse movements.
Posted: 20 Jul 2011, 13:18
by nay-seven
something like this..?

Posted: 20 Jul 2011, 13:43
by r.erorr
Okey, as you say "arrays is may long to do list"...
Yes this is very close, but I want randomize only few exact values for exact speakers.
1. XL - 1; YL - 0
2. XL - 0; YL - 1
3. XL - 0; YL - 0
4. XL - 1; YL - 1
... has changed 1., has changed 3., has changed 2., has changed 4. ...
Posted: 20 Jul 2011, 15:11
by 23fx23
if you want only 0 and 1 you can use the round module.
if you want a precise set of value composed of 4 posibilities, for X and Y,
then you can enter all your scenarios in 2 arrays editor of length 4 (ie with your list : X:1001, Y:0101).
then the extract array element value let you ask the value at sepecified position. if you ask 2 it will return X:0 Y:0 (indexes start from 0)
if you ask 0 it wil return (X:1 Y:0) ect, so controling the index via random will randomly choose one of the possibilities.

Posted: 20 Jul 2011, 16:44
by r.erorr
insude patch

outside patch
In AB module I set B-, try to edit array's modules as you explain, but
I can get only 2 diferrent precise outputs, but not 4. what I'm doing wrong?
Posted: 20 Jul 2011, 17:38
by 23fx23
You should first define array lengths (here they are of 0 and 1, you should enter 4 in both editor top header labeled " length") then B on A*B module should be 3. (cause random generate from 0 to 1, so if x3 we got all 0,1,2,3=4 possibles indexes.
Posted: 20 Jul 2011, 18:28
by r.erorr
thanks, it was good lesson for me

Posted: 20 Jul 2011, 19:15
by 23fx23
You re welcome . Between with this system the random could generate 2 times the same value, i got a solution if you need to get a different value each time, let me know if u need.
Posted: 20 Jul 2011, 21:16
by r.erorr
23fx23 wrote:You re welcome . Between with this system the random could generate 2 times the same value, i got a solution if you need to get a different value each time, let me know if u need.
ok, observe that sometimes one sound appears in the same speaker, but thought it's accidentally.
At first , I have random playback. what happens when sampler random plays one sample two or more times one by one? does the speakers changes in this system?
Of course would be better if there will be no repetition in sampler behavior and in speakers.
Posted: 21 Jul 2011, 00:23
by 23fx23
If the file nb dont change cause same sound is replayed, there are no pulse cause no chg, so the random generated dont chg and it must be the same speaker config. To get rid of this you could, instead of using has chg out of file nb, directly use the "is restarting" pulse out of sampler, wich will make a pulse each time, even if same file is replaying. The other thing is that random generates values between 0 and 3 here, but its possible it affect ie 2, and then again 2. So one possible trick is to check if new value is different than previous one, if not and is the same , then add or subtract one to get a difference. But if ie 3 then again 3, if we add 1 it makes 4 so its a wrong index, so for this need to use a AmodB module set to 3, with it 4 becomes 0, 5 is 1, 6 is 2 ect it "loops" nbs in the 0 to 3 range. Will make a pic when get back to my computer.
Posted: 21 Jul 2011, 11:26
by r.erorr
about "is restarting"... - Yes, now its ok.
on second part... not sure I understand theoretically right now, but I try anyway.
Posted: 21 Jul 2011, 23:59
by multiphone
Hello,
Sorry for the reaction "after the war"...
If i understand correctly the question
Here is another solution, more close to "speaker switching" rather than "sound trajectory"
http://www.sensomusic.com/forums/upload ... 0sound.pat
Posted: 22 Jul 2011, 00:06
by multiphone
Posted: 22 Jul 2011, 03:07
by r.erorr
thanks, but I prefer panner module, because then it is easy to switch between both panner systems [as you define "speaker switching " and "sound trajectory"] in may patch.
Posted: 02 Sep 2011, 22:21
by r.erorr
23fx23 wrote:If the file nb dont change cause same sound is replayed, there are no pulse cause no chg, so the random generated dont chg and it must be the same speaker config. To get rid of this you could, instead of using has chg out of file nb, directly use the "is restarting" pulse out of sampler, wich will make a pulse each time, even if same file is replaying. The other thing is that random generates values between 0 and 3 here, but its possible it affect ie 2, and then again 2. So one possible trick is to check if new value is different than previous one, if not and is the same , then add or subtract one to get a difference. But if ie 3 then again 3, if we add 1 it makes 4 so its a wrong index, so for this need to use a AmodB module set to 3, with it 4 becomes 0, 5 is 1, 6 is 2 ect it "loops" nbs in the 0 to 3 range. Will make a pic when get back to my computer.
Hi, 23fx23
I have twofold question:
- in this case I use only
random, AB*, round, variable modules and there is only one output. how can I avoid from repetition? I just want round random values
from x to xx. Try to use random generator with
no repletion on, but doesn't work.
- can I exclude some variation from random range with switch? for example on start there are random values from 1 to 10, than I can switch off 1,2,3,4,5 etc. and off all...