Welcome to %s forums

BrainModular Users Forum

Login Register

trig when pos meet marker

I need help on a Patch
Post Reply
joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 22 Nov 2012, 09:48

Hi
I'm looking for a solution to have a trig each time a position of a sample correspond to a marker (not for sequencer but sampler module).
maybe we have to script something.
i think it could be very usefull to have a signal when a marker is detected.
thanks

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 Nov 2012, 11:43

something like this..?
Image


joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 22 Nov 2012, 18:09

r.eroor you solution is very clever but a little heavy (apply a polyphony each time the number of marker change...).
Nay with your solution it's impossible to change the number of markers isn't it ?

joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 22 Nov 2012, 18:17

e.erorr i didn't notice but in this way it work only if the marker are read in the correct order. How can i do to have the number of the marker
active in all circonstances ? and i can't have the number of the marker.
anyway, i want to find a solution to have a trig each time a value correspond at one of the value contains in an array and the number position of this element.

r.erorr
Member
Posts: 405
Location: Latvia
Contact:

Unread post by r.erorr » 22 Nov 2012, 20:31

Joffo78 what do you mean with "correct order"? Yes, it works only with "auto sort markers" option, that is 1,2,3,4,5,6 etc.
if you want random positions like 6,3,7,9,2,6,3,5 it will become more heavy.

joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 22 Nov 2012, 23:34

perhaps one idea : idea or not ?

r.erorr
Member
Posts: 405
Location: Latvia
Contact:

Unread post by r.erorr » 23 Nov 2012, 01:56

Aaa . . you want to add markers at predefined order or sample position.
Nice, if this is solution

joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 23 Nov 2012, 09:21

Not really a solution because it doesn't work yet.but perhaps
A beginning of a way ...

joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 23 Nov 2012, 09:23

In fact the solution would be a script that make a caparassion of one value and all the values of an array.
After it could give us the value and the number off the element of this value

joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 23 Nov 2012, 09:28

I can easiely imagine one float input for the value one for the array and one output for the index of the value witch correspond with the input

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 23 Nov 2012, 09:59

yes, maybe the difficulties is to have an efficient comparison between number with digits...?

joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 23 Nov 2012, 10:10

what do you mean by digits ?

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 23 Nov 2012, 10:30

Numbers that have some decimal ? 1,38 for example

r.erorr
Member
Posts: 405
Location: Latvia
Contact:

Unread post by r.erorr » 23 Nov 2012, 15:56

Hi, joffo78, can i ask what we gain from adding and removing markers in realtime? because, if the markers positions are previously defined, I can't see essential difference between presence and absence. You can easy include or exclude markers from playback.
If you want visual feedback only from active markers maybe try to experiment with colors: SET_LAYOUT 'markers color' and 'markers font color' ?

joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 23 Nov 2012, 20:34

Have a look on sergio slicer patch to understant the interest of it.
I think is very usefull to set marker to have a trigger point at one position of one sample (to automatize synchronised action for example)

joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 24 Nov 2012, 10:36

I manage to do this with addons array difference : trig
It work to indicate when position meet marker (with round approximation) but it doesn't give me the marker number

joffo78
Member
Posts: 1033
Contact:

Unread post by joffo78 » 26 Nov 2012, 11:21

hello
i managed to do that :
trig marker
i have 2 problems :
1 because the necessary round operation the trig is imprecise.
2 i found an empiric solution to detect the number of marker, it work except the last marker. Why ?

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests