BMT and Bend Release

arturchernyshov61

2020-02-12 20:22:12

Hi, Steve!
In the VST RealGuitar there is the ability from midi note get Bend on plus 2 semitones. Please tell me, is it possible on BMT too from midi note (ch.2 note:123 velocity:127) get a Reversive Bend (Bend Release) on minus 2 semitones within the selected time - for example half a second?

Steve-Bome Forum Moderator

2020-02-12 21:26:52

See the attached.

The first translator handles note on (but I convert to a lower outgoing note for my ears).

The second one handles note off

The third applies a negative bend after 1 second (maximum amount in this case which on my synth is 4 semitones.  Some synths you can adjust the pitch bend sensitivity.

The forth puts the pitch back to normal after 2 seconds

If you want a slow bend you would have to set up a timer to send step down the bend amount on each iteration. This one just pushes it all down at once.

 

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz


Attachments:

Pitch-bend-2020-02-12.bmtp

arturchernyshov61

2020-02-12 21:59:08

comment

”If you want a slow bend” – Yes, that is exactly what I want. Can you make changes to your file for this?

Steve-Bome Forum Moderator

2020-02-12 22:43:11

Here you go.

I disabled two of the original translators and added a few

Start Bend timer (triggered on the same note in), recurring for 16383 times

Counter timer and bend amount is global variable ga and starts at 0

Direction is global variable gb - 0 is down and 1 is up.

Bend Timer iterates changing bend amount in the direction of gb which is initially down (0). When the timer reached minimum (-8192), then gb is set to 1 so it starts counting up.

 

Enjoy!

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz


Attachments:

Pitch-bend-timer-2020-02-12.bmtp

arturchernyshov61

2020-02-13 04:03:46

comment

Thanks Steve, guitar sounds great! There are question: 1. How to do the same, but from 0 to +8192 and again to 0?

Steve-Bome Forum Moderator

2020-02-13 05:07:03

To speed it up count down by larger than  in the timer rules.

If you don\'t want it to come back up, change rule to say

if ga<=-8192, then exit rules, skip outgoing action.

At note off the timer will get killed and at next note on, the bend will be reset back to 0.

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

 

arturchernyshov61

2020-02-13 05:13:49

comment

Thanks!! How to do the same, but from 0 to +8192 and again to 0?

Steve-Bome Forum Moderator

2020-02-13 14:47:57

comment

Change rules so it counts up instead of down. If you want both (sometimes up and sometimes down), you would need to set up a button or something with an action to set a global variable and then use that global variable to program whether you want it up or down counter. Steve Caldwell Bome Q and A Moderator and Independent Bome Consultant/Specialist bome@sniz.biz

arturchernyshov61

2020-02-13 14:57:28

comment

Thank You!

arturchernyshov61

2020-02-14 19:33:58

Hi, Steve!
I tried to make only a smooth decrease in the pitch-bend - it worked.
But when I change the plus to the minus to get a smooth increase in the pitch-bend, it doesn’t work. Note pitch does not change
Here are the rules - what's wrong here?

pp=ga
if gb==0 then ga=ga+35
if pp<=8192 then gb=1
if gb==1 then exit rules, skip Outgoing Action

Steve-Bome Forum Moderator

2020-02-19 20:43:38

Hi, you just need to change the bend timer rules to the below, then the bend will always go up and hold until you release the note.

 

pp=ga
ga=ga+35
if pp>8191 then exit rules, skip outgoing action

 

arturchernyshov61

2020-02-19 21:23:19

comment

Thanks! But how can I make rules that when pressed, the bend smoothly rises to 8191, and after releasing button it smoothly returns to 0? And if I even release button before the bend went up to 8191, then anyway it went down to 0.

Steve-Bome Forum Moderator

2020-02-24 03:23:14

comment

I posted an update. Did you get it?

arturchernyshov61

2020-02-24 06:50:44

comment

No. I don’t understand, how can I make rules that when pressed, the bend smoothly rises to 8191, and after releasing button it smoothly returns to 0? And if I even release button before the bend went up to 8191, then anyway it went down to 0.

Steve-Bome Forum Moderator

2020-02-24 07:29:03

comment

I guess I must have forgotten to post the update. I’ll do this tomorrow.

Steve-Bome Forum Moderator

2020-02-24 16:06:24

Here is a version that bends up on push and back to 0 on release. Sorry, I though I had already posted this.

Play note On sends the note (translator 0.0) then starts the bend timer (Translator 0.1). The bend timer is 0.6.

Translator 0.2 handles sending the note off and sets pitch bend back to 0. Translator 0.3 handles killing the bend  timer .

The bend timer starts at 0 and increments the bend at 35 for each iteration until it gets to a value of 8191.

pp=ga
ga=ga+35
if pp>8191 then exit rules, skip Outgoing Action

Enjoy!

 

 


Attachments:

Pitch-bend-timer-2020-02-19.bmtp

Steve-Bome Forum Moderator

2020-02-24 16:13:34

comment

Note, that note-off turns off the note immediately. If you want the pitch bend to drop to 0 before the note turns off, then another change will be necessary. Instead of killing the timer at note off, you would need to capture the note number at note-on. At note off, you would need to reverse, the counter and then have the timer send a note-off when the count reaches back to zero. Is this what you want? Of course the note would stay playing during the duration of the pitch bend reversal. Steve Caldwell Bome Q and A Moderator and Independent Bome Consultant/Specialist bome@sniz.biz

arturchernyshov61

2020-02-24 16:19:53

comment

Thanks Steve! I will check this in the work and report the result.

Steve-Bome Forum Moderator

2020-02-24 17:52:14

This version does a slow reversal down to 0 as you requested then shuts off the note.

 


Attachments:

Pitch-bend-timer-2020-02-24.bmtp

arturchernyshov61

2020-02-24 18:04:00

comment

Thank You!

arturchernyshov61

2020-02-24 18:16:23

comment

How to change the speed at which the pitch-bend reaches maximum and minimum?

Steve-Bome Forum Moderator

2020-02-24 18:47:56

comment

Well the timer executes with minimum delay per iteration of 1ms so the only way you can change the speed is change the increment/decrement value. At some point you may perceive the steps.

arturchernyshov61

2020-02-24 20:49:33

comment

Thanks, it works!

Steve-Bome Forum Moderator

2020-02-24 20:56:24

comment

Did you have any doubts? ;-)

arturchernyshov61

2020-02-25 09:03:27

comment

Hi Steve! Can you change the code, so that when I release the button, the pitch-bend returns to zero from the value to which it managed to grow, but not from the maximum value? This is in that case, if I release the button before the pitch-bend reaches its maximum.

Steve-Bome Forum Moderator

2020-02-25 14:29:27

Hi,
In the current implementation, the bend goes down and sends note off when it reaches 0. If you try and play another note while the existing note and bend is still returning, it ignores the new incoming note. Instead you want it to to kill the last note wherever it stands, then start a new note with Bend at 0? Notice also that it is not polyphonic and only handles one note at a time.

The strategy for your request is to have another translator to kill the existing playing note when a new note-on comes in which is stored in global variable gd and put it at the beginning of the translators. Then set the variable of gd to -1 (meaning no note is playing) and set the pitch bend variable ga to 0.  Then the rest of the translators should pick things up from there.

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

 

 

arturchernyshov61

2020-02-25 16:37:26

comment

I want to be able to use it like this: 1. I pressed the button. 2. The bend began to increase. 3. When the bend reaches about half of the maximum value, I released the button 4. After this, the bend began to decrease to zero. It is as if the guitarist began to pith-bend the string, but did not reach it completely, but only by half and smoothly release pitch-bend back.

Steve-Bome Forum Moderator

2020-02-25 16:51:09

comment

That is how the latest version works, however the note does not stop playing until the bend gets to 0. If you want the note to stop earlier, then there will need to be an incoming trigger to stop it earlier. Is that what you want?

arturchernyshov61

2020-02-25 16:57:50

comment

I tried, but when the button was released, the pitch-bend continued to increase until it reached a maximum, and only then began to decrease.

Steve-Bome Forum Moderator

2020-02-25 17:46:50

comment

Make sure you pull the latest version. https://www.bomeloft.com/wp-content/uploads/cma_attachments/1582563130363_Pitch-bend-timer-2020-02-24.bmtp

arturchernyshov61

2020-02-25 21:50:41

comment

This only works if the delay is 7 milliseconds or more. If the delay is less, then any way pitch-bend rises to maximum, only then decrease to zero.

Steve-Bome Forum Moderator

2020-02-26 00:33:48

OK try this one.

The only thing I changed from the last time, is the first rule in translator 1.4

From

pp=ga

to

pp=0

 

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz


Attachments:

Pitch-bend-timer-2020-02-25.bmtp