You need to be logged in to post
Options
Index
#308812 - 08/30/15 11:30 AM [Band-in-a-Box for Windows] BIAB does not generate MIDI "Note Off" Events / Messages
Registered: 10/10/11
Posts: 39
thesleeve Offline
Enthusiast

Registered: 10/10/11
Posts: 39
Hi everybody,

I'm working on a little MIDI VST plugin that will generate a real-time guitar/bass fretboard display of the notes being played. What makes it different from pretty much every other fretboard visualizer that I've seen is that it shows the notes played in all possible positions simultaneously, serving as an educational tool to learn how to play the same thing in multiple positions. The user can customize the number of strings on the instrument and the tuning. Hopefully some people will find it useful. I'm planning to use it for a series of guitar lesson videos on YouTube.

Here's a simple example of my VST in its current early alpha form. This is a test with a simple example MIDI file I cooked up:


It's working pretty well so far, so I decided to export some MIDI from BIAB to test it out. Unfortunately, all of the notes coming from BIAB end up being visually "stuck," i.e. there appears to be no Note Off event telling the notes to stop playing. You can see that here:


I analyzed the output of BIAB using a third-party MIDI logger and my suspicions were confirmed. BIAB does not appear to generate Note Off events when a note ends. Take a look at this image (messages beginning with a 0x93 are note-on messages on channel 4... note-off messages would start with 0x83, but they never appear):


Further inspection led me to use BIAB's built-in MIDI Monitor (found in the Window menu). It produces the same result:


There is a filter option in the MIDI Monitor and I double-checked it to make sure that Note Off events would be displayed:


So, it's pretty clear that BIAB does not generate Note Off events. I have a few questions about this.

1) First of all, aren't Note Off messages an essential part of the MIDI spec? Why are they not being generated by BIAB?

2) How does the software know when to stop playing a note if there is no Note Off message corresponding to the Note On message? As far as I'm aware, there isn't any duration information in a Note On message, so I don't see how that would work.

3) Is there an option hidden in one of the menus in BIAB where I can enable Note Off messages?

Any insight would be greatly appreciated. Currently, BIAB's output doesn't work with my VST, which is a little frustrating.

Thanks!


Edited by thesleeve (08/30/15 01:31 PM)

Top
#308817 - 08/30/15 12:27 PM [Band-in-a-Box for Windows] Re: BIAB does not generate MIDI "Note Off" Events / Messages [Resolved] [Re: thesleeve]
Registered: 10/10/11
Posts: 39
thesleeve Offline
Enthusiast

Registered: 10/10/11
Posts: 39
So, this is one of those cases where I hit the post button a little too soon. It looks like BIAB sends Note On events with a velocity of 0 to represent Note Off events. That's a little odd, but now that I know this, I can modify my plugin code to make a special case for when it receives a velocity=0 Note On event.

I was able to update the code and it's now working.


I'm still curious though, why no Note Off events are generated. Again, it just seems counter-intuitive since the MIDI Spec says that notes should end with a Note Off event. Any insight?

Thanks!

Top
#308857 - 08/30/15 07:18 PM [Band-in-a-Box for Windows] Re: BIAB does not generate MIDI "Note Off" Events / Messages [Resolved] [Re: thesleeve]
Registered: 06/05/12
Posts: 10858
Loc: Melbourne, Australia
VideoTrack Offline
Veteran

Registered: 06/05/12
Posts: 10858
Loc: Melbourne, Australia
My understanding of the MIDI spec is that there are two ways that a Note-Off event is produced.

1: Note-Off can be produced by 0x80 (top bit set in high nibble of the Status Byte),
2: Also if the velocity is set to zero then the Note-On message is interpreted as a Note-Off message, therefore releasing the note (Note-off).

BiaB probably use the second implementation

HTH. And good luck with your project!

Trevor
_________________________
BIAB&RB2020(Audiophile),Win-10Pro, SonarPlatinum, Izotope Prod.Bundle, Roland RD-1000, Synthogy Ivory, Kontakt, Focusrite 18i20, KetronSD2, KorgX3R, RodeNGT2, AM802mixer, NS40M StudioMonitors, Pioneer Act. Mons, AKG K271 Studio H'phones

Top
#308921 - 08/31/15 06:45 AM [Band-in-a-Box for Windows] Re: BIAB does not generate MIDI "Note Off" Events / Messages [Resolved] [Re: VideoTrack]
Registered: 10/10/11
Posts: 39
thesleeve Offline
Enthusiast

Registered: 10/10/11
Posts: 39
Thanks Trevor,

I wasn't aware of the second implementation, but it makes sense. Thanks for pointing it out! I have updated my code so that both cases are handled now.

Top
#308922 - 08/31/15 06:50 AM [Band-in-a-Box for Windows] Re: BIAB does not generate MIDI "Note Off" Events / Messages [Resolved] [Re: VideoTrack]
Registered: 12/27/03
Posts: 13795
Loc: Hamlin NY
MarioD Offline
Veteran

Registered: 12/27/03
Posts: 13795
Loc: Hamlin NY
Today, AFAIK, most MIDI notes end with velocity and not a note off event as this save time and code as explained here:

http://www.nyu.edu/classes/bello/FMT_files/9_MIDI_code.pdf

Velocity today really has two functions, to determine how hard the note is played and how long that note lasts.
_________________________
It has been a joy being quarantined with my wife. We've caught up on all the things I have done wrong in our 53 years of marriage!

64 bit Win 10 Pro, the latest BiaB and RB, Roland Octa-Capture audio interface, a ton of software and some hardware.

Top
#309630 - 09/07/15 02:55 PM [Band-in-a-Box for Windows] Re: BIAB does not generate MIDI "Note Off" Events / Messages [Resolved] [Re: MarioD]
Registered: 10/10/11
Posts: 39
thesleeve Offline
Enthusiast

Registered: 10/10/11
Posts: 39
Thanks, MarioD!

Top
#548352 - 08/06/19 03:45 AM [Band-in-a-Box for Windows] Re: BIAB does not generate MIDI "Note Off" Events / Messages [Resolved] [Re: thesleeve]
Registered: 08/06/19
Posts: 1
Ans Offline
Newbie

Registered: 08/06/19
Posts: 1
Thesleeve, I would really like to try your vst, actually there is nothing like it of what i can found !! And i would like to pay for if..

Please reply..

Thanks -

Top


PG Music News
Band-in-a-Box® 2020 for Windows Updated!

If you're using Band-in-a-Box® 2020 for Windows along with the DAW Plugin, you're going to love the latest free patch update, which resolves any issues had with multiple instances of program files running that resulted in the DAW Plugin closing.

Learn more about this free update patch (which also includes VST DAW Plugin 2.6.8) and download it here.

#TBT - The Introduction of Xtra Styles PAKs for Band-in-a-Box!

We've just released Xtra Styles PAK 9 for Band-in-a-Box® 2020, and to celebrate we've put ALL of our Xtra Styles PAKs on SALE until June 30, 2020!

Xtra Styles PAKs were first introduced in August 2016, and required the Band-in-a-Box® 2016 and higher UltraPlusPAK, EverythingPAK, or Audiophile Edition.

You may notice that all of our Xtra Styles PAKs require the 'latest' UltraPAK or higher - this is because they utilize our complete (and at the time current) library of RealTracks and RealDrums.

What are Xtra Styles?
Xtra Styles are RealStyles created by our development team. They've taken our existing RealTracks and RealDrums collection and remixed them to make the new and unique arrangements heard with every new Xtra Styles PAK released.

These RealStyles are Band-in-a-Box® styles that only use RealTracks and RealDrums - the result: an incredible band to back you up and perform your songs

Xtra Styles PAKs are on SALE until June 30th!
Purchase the complete Xtra Styles PAKs library with over 1,400 RealStyles for the special price of $199 (reg. $349)

Already have a few of our Xtra Styles PAKs? Top up now - each of our 9 Xtra Styles PAKs are just $29 (reg. $49)!

Learn more about Xtra Styles PAKs for Band-in-a-Box and listen to demos here.

Mac user? Click here for demo and purchase links.

How-to Video: Section Text labels and Lyrics

Check out our special YouTube Channel, PG Music Inc. Support Videos, which is where we share videos our support team makes at the request of a customer, or to help out an existing customer issue.

The latest video, Band-in-a-Box How to: Section Text labels and Lyrics quickly walks you through section text labels and lyrics in Band-in-a-Box for Windows! Watch now...

Want to see a specific video? Share your request here.

#TipTuesday - Band-in-a-Box® Patch Updates

We never stop here at PG Music, so make sure that you check in on your installation of Band-in-a-Box® occasionally - we frequently release free patch updates to enhance existing versions, and fix 'bugs' reported by program users.

Windows program updates can be found here. We have a separate page for Mac updates, here.

You can also setup Band-in-a-Box® to check for updates automatically! Head to the Preferences window in the program, and select "Automatically check for updates every [__] days" (choose your number).

Not sure which "build" you have? Help | About... will bring up a window that will show your exact version number!

Band-in-a-Box® 2020 - Xtra Styles PAK 9 & Loops-with-Style PAK 2 Bundle!

Have you heard? We have NEW Band-in-a-Box Add-ons!

Xtra Styles PAK 9 and Loops-with-Style PAK 2 will SUPERCHARGE your Band-in-a-Box® 2020 UltraPAK, UltraPAK+, or Audiophile Edition!

200 NEW RealStyles have been added with Xtra Styles PAK 9 - 50 Rock-Pop, 50 Jazz, 50 Country, and 50 Folk & Beyond 2!

Loops-with-Style PAK 2 includes 100 NEW Loops and 50 NEW styles, and adds 2 new genres to our Loops-with-Style collection: gospel and funk!

Bundle both the Xtra Styles PAK 9 and Loops-with-Style PAK 2 into one convenient purchase, only $48 until June 30th! Click here to choose your purchase.

Mac user? Click here for your order links.

RealBand 2020 for Windows Updated Harmonies Feature!

The latest RealBand 2020 Update includes enhancements to the harmonies feature, improvements for audio recording, and more!

Click here to review and download this free update patch (build 4).

Video: Band-in-a-Box® - Xtra Styles PAK 9 Overview & Demos

Xtra Styles PAK 9 includes 200 NEW RealStyles for Rock-Pop, Jazz, Country, and Folk & Beyond!

There are 50 new RealStyles for each genre, with MultiStyles included in each genre too!

Learn more about loading and using Xtra Styles PAK 9 in Band-in-a-Box® 2020 and listen to the demos for the 200 new RealStyles in Xtra Styles PAK 9 with our latest video: Band-in-a-Box® - Xtra Styles PAK 9: Overview & Demos.

Add Xtra Styles PAK 9 to your band for just $29 until June 30th! Order here.

Windows user? Click here for Windows purchase links and details.

Forum Stats
32249 Members
65 Forums
64490 Topics
546847 Posts

Max Online: 2537 @ 01/19/20 07:09 AM
Newest Members
Eddy Bee, Cojande, cubemixer, leegeek, gitarrist8

32249 Registered Users
Top Posters (30 Days)
MarioD 213
VideoTrack 165
Pipeline 156
Janice & Bud 129
Matt Finley 127
floyd jane 107
furry 101
Scott C 101
rayc 99
Jim Fogle 98
Today's Birthdays
Bill Shafer, edsullivan1