Welcome to %s forums

BrainModular Users Forum

Login Register

trigger my effect only if note is sustained a certain time...

I need help on a Patch
Post Reply
héliouk 6
Member
Posts: 193
Location: choisy le roi
Contact:

Unread post by héliouk 6 » 13 May 2009, 14:22

hi crazy's!
my problem of the day is to trigger a vst from a sustained note from saxophone..
so i have my midi to audio link to the midi filter to get the code 1 (midi note) from the sax, linked to A=B module to select wich note i want,but i don't know how to say:dear usine,i want to trigger my effect only if the note is sustained a certain time.i'm looking in syncro and time modules but i don't find....an idea?

Clearscreen
Member
Posts: 482
Location: Australia
Contact:

Unread post by Clearscreen » 13 May 2009, 14:29

maybe an envelope trigger module?

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 13 May 2009, 14:33

hi man, think you ll need the "countms" module in /time.

when you receive the note----> from 0to1 ----->start counting, once reached the amount of ms you specify, will output a stop impulse, link it to trigger what you want.

also not sure understood, if you enter audio in and not midi you should use the audio to midi module to fisrt convert sax to midi notes, and yes then check if A=B to filter the note you want.

héliouk 6
Member
Posts: 193
Location: choisy le roi
Contact:

Unread post by héliouk 6 » 13 May 2009, 15:13

yes! it's nearly working as i want, i was missing 0 to 1,never use it,i'm gonna have a look to understand,thanks a lot for the ultra fast answer,that 's really killing men!

héliouk 6
Member
Posts: 193
Location: choisy le roi
Contact:

Unread post by héliouk 6 » 13 May 2009, 15:29

oops! in fact,doesn't work as desired:the 0 to 1 does a good job but not enough because i want to trigger only if the time between 0 and 1 ( note on/note off) has a certain duration;hope i'm clear...for the moment the effect is triggered each time you play the note,at the end of it (i deleted the count ms)...

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

Unread post by nay-seven » 13 May 2009, 17:38

so why delete the count ms...? add a A=B again behind it , so as said 23fx23 , when he reach the value you want , he send a trigger...
no..?
;-)

héliouk 6
Member
Posts: 193
Location: choisy le roi
Contact:

Unread post by héliouk 6 » 13 May 2009, 21:42

i deleted the count ms because the 0 to 1 systematically trigger the count after the 1 value was reached,useless for what i want;i want to be able to decide how long you have to sustain the note,the count ms just count the time you tell it to count,it doesn't count the time between 0 and 1....
now i try midi to audio>>>midi filter>>>code 1 to A=B>>>elapsed time>>>A>B module>>>send bus but doesn't seems to work! i'm gonna try again and again and

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 13 May 2009, 21:46

see what you mean, right must use elapsed time instead.
can't test here no audio in but was thinking of sommething like this:

Image

if a note is on and it's the wanted one, then it trigs the counter, when getting note off, stop the counter, check the value elapsed between the two, if > at chosen value then trig out.

edit:, mm should work but could retrigg if you take time after to retrig a new note, don't have solution mmm
the counter should only work when sequence is in the order note on then note off and not inverse
arf who got a solution

edit:, mm sorry re read, this musn't be what you want :(

héliouk 6
Member
Posts: 193
Location: choisy le roi
Contact:

Unread post by héliouk 6 » 13 May 2009, 22:21

i 've just found this:audio to midi>>>>midi filter>>>>A=B module to choose the note>>>>>clock patch to say :begin to count,and when the interval is reached you click a bus... on the other side: get bus>>>pass if change>>>de mute my effect...i was afraid but the 1/0 message is so fast that you don't ear the mute/demute..it's seems to work,but must be improved and tested withthe sax

i'm gonna try your solution now..(did'nt read it yet)...

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 14 May 2009, 00:58

I would do it this way:


Image
Seb.Dub

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 14 May 2009, 01:34

ok couldn't sleep without finding a solution :)
this seems to work: in 1 for multivar is 1 and in2 is 0
if I well undestood,(if a note exeed specified lengh and only if, it will send the trigger when the note goes off?)
Image

ethnix: clever to use the time ms, but i think will be same pb than my first pic, when receive a note off it will count the time and retrigger if the time between note off and next note on exeed the value, wich is from what i feel, disturbing.
have to test but thanks to remind me the" time" module :)
(add the same A=B and pass module than ethnix to filter the note)

if fact i think the best tec must a compiled from booth, the idea of using timems must be more cpu friendly but you have to get separate infos of on and off i think.

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 14 May 2009, 12:12

@23fx23: No, you've got only to set the midi filter to "NOTE ON"
Seb.Dub

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 14 May 2009, 12:37

oh yes, sorry then it's the best tec i think, depends if heliouk you wanna have the trigger while the note is on after a certain time, or if you want it to be triggered at note off (also if the note was held acertain amount of time)..

héliouk 6
Member
Posts: 193
Location: choisy le roi
Contact:

Unread post by héliouk 6 » 14 May 2009, 13:40

i'm trying but i must miss something:the A-B module get the time in A and the time through the send in B,so the A>=B module get a value from 0 to 2 in A ,it can't be superior at the choosen time...(B) !!!!?

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 14 May 2009, 13:58

In the patch, the A-B module calculate the duration of each note. If the duration is > or = to your chosen time, it send a 1 value...

The A>=B module can get a value from 0 to "don't know ow many". :)

It doesn't work for you?
Seb.Dub

héliouk 6
Member
Posts: 193
Location: choisy le roi
Contact:

Unread post by héliouk 6 » 15 May 2009, 18:22

yes it does! on the other side i made this to get the info
Image

thanks a lot men!

héliouk 6
Member
Posts: 193
Location: choisy le roi
Contact:

Unread post by héliouk 6 » 15 May 2009, 18:27

Image

try to make it bigger
??

héliouk 6
Member
Posts: 193
Location: choisy le roi
Contact:

Unread post by héliouk 6 » 15 May 2009, 18:33

little explanation: B=1 to get the message that the note was sustained long as desired,that makes the const 0 pass and demute the effect...to re initialize it ,have to play the note less longer....coooool! i 'm gonna test it whith the sax!! thanks again!

Post Reply

Who is online

Users browsing this forum: No registered users and 45 guests