Page 1 of 1

Posted: 22 Nov 2012, 09:48
by joffo78
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

Posted: 22 Nov 2012, 11:43
by nay-seven
something like this..?
Image

Posted: 22 Nov 2012, 14:21
by r.erorr

Posted: 22 Nov 2012, 18:09
by joffo78
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 ?

Posted: 22 Nov 2012, 18:17
by joffo78
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.

Posted: 22 Nov 2012, 20:31
by r.erorr
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.

Posted: 22 Nov 2012, 23:34
by joffo78
perhaps one idea : idea or not ?

Posted: 23 Nov 2012, 01:56
by r.erorr
Aaa . . you want to add markers at predefined order or sample position.
Nice, if this is solution

Posted: 23 Nov 2012, 09:21
by joffo78
Not really a solution because it doesn't work yet.but perhaps
A beginning of a way ...

Posted: 23 Nov 2012, 09:23
by joffo78
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

Posted: 23 Nov 2012, 09:28
by joffo78
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

Posted: 23 Nov 2012, 09:59
by nay-seven
yes, maybe the difficulties is to have an efficient comparison between number with digits...?

Posted: 23 Nov 2012, 10:10
by joffo78
what do you mean by digits ?

Posted: 23 Nov 2012, 10:30
by nay-seven
Numbers that have some decimal ? 1,38 for example

Posted: 23 Nov 2012, 15:56
by r.erorr
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' ?

Posted: 23 Nov 2012, 20:34
by joffo78
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)

Posted: 24 Nov 2012, 10:36
by joffo78
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

Posted: 26 Nov 2012, 11:21
by joffo78
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 ?