Welcome to %s forums

BrainModular Users Forum

Login Register

how to random start and end positions in sampler

I need help on a Patch
Post Reply
Gilsornette
Member
Posts: 280
Contact:

Unread post by Gilsornette » 09 Feb 2018, 17:25

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...

User avatar
oli_lab
Member
Posts: 1266
Location: Brittany, France
Contact:

Unread post by oli_lab » 09 Feb 2018, 18:02

can you share the patch so we can help ?
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social


User avatar
oli_lab
Member
Posts: 1266
Location: Brittany, France
Contact:

Unread post by oli_lab » 09 Feb 2018, 19:39

this work but could be improve off course

Image

the fader should be : min set to -10 and max set to 0
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Gilsornette
Member
Posts: 280
Contact:

Unread post by Gilsornette » 09 Feb 2018, 21:46

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

User avatar
oli_lab
Member
Posts: 1266
Location: Brittany, France
Contact:

Unread post by oli_lab » 09 Feb 2018, 22:40

here is the patch for you to explore !
I'll do more work on it...

http://www.sensomusic.com/forums/upload ... sample.wkp
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Gilsornette
Member
Posts: 280
Contact:

Unread post by Gilsornette » 09 Feb 2018, 22:58

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..

User avatar
oli_lab
Member
Posts: 1266
Location: Brittany, France
Contact:

Unread post by oli_lab » 09 Feb 2018, 23:54

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
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Gilsornette
Member
Posts: 280
Contact:

Unread post by Gilsornette » 10 Feb 2018, 08:03

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

User avatar
oli_lab
Member
Posts: 1266
Location: Brittany, France
Contact:

Unread post by oli_lab » 10 Feb 2018, 19:20

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
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Gilsornette
Member
Posts: 280
Contact:

Unread post by Gilsornette » 11 Feb 2018, 13:17

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

User avatar
oli_lab
Member
Posts: 1266
Location: Brittany, France
Contact:

Unread post by oli_lab » 11 Feb 2018, 19:40

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
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Gilsornette
Member
Posts: 280
Contact:

Unread post by Gilsornette » 12 Feb 2018, 18:28

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

User avatar
oli_lab
Member
Posts: 1266
Location: Brittany, France
Contact:

Unread post by oli_lab » 12 Feb 2018, 18:39

when you hit button1, 1 and 2 will receive a impulse and 3 and 4 will receive the impulse one block later
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social


Post Reply

Who is online

Users browsing this forum: No registered users and 40 guests