A randomly selected note from the list

arturchernyshov61

2019-12-25 14:51:12

Hi!
How to configure BMT so that when an incoming message appears, a randomly selected note from the existing list is emulated?

Steve-Bome Forum Moderator

2019-12-25 18:25:03

Hi,

Although Bome MIDI Translator does not have a "random" function, you might want to simulate one with a timer. Please see the below post and let me know if you have further questions. Also if you use the keyword search "random" on this forum you might find other examples.

 

https://www.bomeloft.com/support/kb/rules-question

 

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

 

arturchernyshov61

2019-12-25 21:12:53

comment

Thank You, Steve!

arturchernyshov61

2019-12-26 11:11:52

One more question.

The task - an incoming message should emulate a command to turn off all notes in the range from E1 to B4. There are 44 notes in this range. If I create 44 translators, each for a separate note, how much will this affect the system? Is it correct to solve the problem in this way?

Steve-Bome Forum Moderator

2019-12-26 18:06:20

comment

Hi, You don't need 44 translators. Rather create a timer that iterates through the notes that you want to turn off as I explained in the post below: You can just set the timer counter to the values of the notes you want to sent note-off and the count to the number of notes. https://www.bomeloft.com/support/kb/all-notes-off

arturchernyshov61

2019-12-26 20:45:00

Hi, Steve!
Thank you so much for your help!!!
Could you put the following settings in the attached file?
Incoming message: 91 79 7f
All notes from 90 28 64 to 90 83 64 should be turned off. Velocity for
all notes is only 64.
I tried to do it myself, but so far I could not.

Steve-Bome Forum Moderator

2019-12-26 21:20:08

comment

Hi, if you make the outgoing message 80 28 64 to 80 83 64 it should work. 80 is a note-off message type on MIDI channel 1. If that doesn’t work try 90 28 00 to 90 83 00. This is an alternate form of note off message. The last byte is the velocity and a note-on with velocity of 0 is recognized as a midi Note off event. Steve Caldwell Bome Q and A Moderator and Independent Bome Consultant/Specialist bome@sniz.biz

arturchernyshov61

2019-12-27 20:19:25

comment

Steve, help me set up this translator... I can’t understand how to set the range from 90 28 64 to 90 83 64, in which the notes should be turned off when receiving a control incoming message 91 79 7f.

Steve-Bome Forum Moderator

2019-12-27 21:00:44

Steve, help me set up this translator... I can’t understand how to set the range from 90 28 64 to 90 83 64, in which the notes should be turned off when receiving a control incoming message 91 79 7f.

Well, I don't think you want to send a note of 83 hex since that is greater than 127 decimal and MIDI only allows for values up to 127 (7F H).  So assuming you want to send notes 28D to 83D which is 1CH to 53H, the attached file should work (assuming you are sending note-off on MIDI CH 1 and incoming is Note-On Note 79H (112 Decimal) on MIDI CH2 .

You might what to get a hex to decimal converter or simply type the note number you want in decimal in to google search like

"28 decimal in hex"

You can also convert back

"1C hex in decimal"

Raw MIDI is always in HEX, not decimal.

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


Attachments:

Selected-Notes-off-2019-12-27.bmtp

arturchernyshov61

2019-12-27 22:26:15

comment

Steve, you are a genius. God save Steve! I will pray for you. Merry Christmas and Happy New Year!!!

Steve-Bome Forum Moderator

2019-12-27 22:42:39

comment

Glad to help! MC and HNY to you too!

arturchernyshov61

2020-02-11 10:05:44

Commentary deleted by autor.

Steve-Bome Forum Moderator

2020-02-11 16:06:51

comment

You deleted your latest request. Did you figure it out?

arturchernyshov61

2020-02-11 16:47:14

comment

Yes. I mistakenly wrote there.