Page 1 of 1

Posted: 09 Feb 2018, 17:25
by Gilsornette
Hello,

I'm a new user of Usine. I want to do a patch using a sampler that read first a file entirely then on first loop half of the file, on second loop half of the former, and son on. (dividing its length by two at each play).
I have no problem to do it by giving a new position eachtime to the startpoint OR eachtime to the end point.
But if I want to alternate between these 2 options, once moving start point than on next loop moving end point, I' ve got problems.
I'm sending the new « coordinates » each time the player reaches the end of the part of the sample.

First question : to do this I use [A-B], where A is End position and B is Position, and when it's above 0.001, it sends a trigger. Is there another way to « trigger » the end of the sample ? [A-B] + [=0] doesn't seem to work and I cannot use restarting.
(I need the trigger before to send the new start position).

Second question : it acts like if the flow was looping and sending out too quickly the informations to start or end position. I've tried to use [wait] but it doesn't work. Do you have an idea ?

Maybe I'm completely wrong about the way I want to do this...

Posted: 09 Feb 2018, 18:02
by oli_lab
can you share the patch so we can help ?

Posted: 09 Feb 2018, 18:17
by Gilsornette
yes, I've tried several ways, here is one of them
http://www.sensomusic.com/forums/upload ... %20end.pat

Posted: 09 Feb 2018, 19:39
by oli_lab
this work but could be improve off course

Image

the fader should be : min set to -10 and max set to 0

Posted: 09 Feb 2018, 21:46
by Gilsornette
Thank you for your help OLI-LAB. It's a smart way to do the "decreasing".
What kind of fader do you use? Those I've found have no inlet/outlet "seq" (vertic fader).
But in my case it won't match, for several reasons:
- I want to decrease the length of the sound by moving end position (your example) OR start position; this is why I cannot use restarting. And I'd like to randomize this choice
- I will use sounds of different lengths and I want the "decreasing" going until a duration (in milliseconds) that I'll decide. I'll use [pass] to stop the flow above a certain duration . And so I need a number of steps, depending of the length of the sound, that is variable
I hope that you'll understand my explanations

Posted: 09 Feb 2018, 22:40
by oli_lab
here is the patch for you to explore !
I'll do more work on it...

http://www.sensomusic.com/forums/upload ... sample.wkp

Posted: 09 Feb 2018, 22:58
by Gilsornette
That's the same patch that you sent me as a screen capture in your former mail. Is it really this one you wanted to send to me?
By the way, I understand my mistake regarding the "seq inlet"... sorry..

Posted: 09 Feb 2018, 23:54
by oli_lab
that was for the seq inlet matter, now this : not exactly what you asked for but you can tweak to you taste

File uploaded: http://www.sensomusic.com/forums/upload ... sample.wkp

I find it quite unstable because of the way the file duration is calculated (division by 0)
those sampler module would need an extra "file duration" outlet indeed !

cheers
Olivar

Posted: 10 Feb 2018, 08:03
by Gilsornette
Thank you Olivar, this will help me a lot!
Yes for the extra inlet, and also one when arriving at the end of the sample.
Have a nice day
Gilles

Posted: 10 Feb 2018, 19:20
by oli_lab
I improved the patch by not using the start/end loop markers

check it out !
File uploaded: http://www.sensomusic.com/forums/upload ... sample.wkp

Olivar

Posted: 11 Feb 2018, 13:17
by Gilsornette
Thank you Olivar, that's a very good idea.
I've got a question about how Usine transmits datas in a patch. In Max, priority is from right to left and descending order : first object on the right, then the one under, or if not, the one one its left. How does Usine transmits flow datas?
Thank you for all

Posted: 11 Feb 2018, 19:40
by oli_lab
do you mean you need to bang the left input to have the right input taken into account ?
there is no such a thing in Usine, A change to any input trigger the computing inside the module if the computing is done at callback level or is is done every bloc whatsoever if the computing is done in the onProcess loop

Posted: 12 Feb 2018, 18:28
by Gilsornette
Hello Olivar,

Here is an example patch:
http://www.sensomusic.com/forums/upload ... a_path.jpg

My question is : if I bang button1, what will be the data path?
Object 1 > object 3 > object 2 > object 4
or
object 1 > object 2 > object 3 > object 4
or something else.
What are the data transmission "rules" inside a patch?
I hope you'll understand.
Thank you

Posted: 12 Feb 2018, 18:39
by oli_lab
when you hit button1, 1 and 2 will receive a impulse and 3 and 4 will receive the impulse one block later

Posted: 12 Feb 2018, 20:34
by Gilsornette
thank you!