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: 9602
Loc: Melbourne, Australia
VideoTrack Offline
Veteran

Registered: 06/05/12
Posts: 9602
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&RB2019(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: 12477
Loc: Hamlin NY
MarioD Offline
Veteran

Registered: 12/27/03
Posts: 12477
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.
_________________________
Folgers got it wrong. The best part of waking up is going back to bed after you pee!

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
Happy Canadian Thanksgiving! Holiday Hours

Monday, October 14th is Canadian Thanksgiving!

Our Holiday schedule that day is:
Customer Service: 8:00AM to 4:00PM PDT
Technical Support: Closed

We will be back to our regular schedule Tuesday, October 15th.

RealBand 2019 Build 5 Update Available!

All RealBand 2019 for Windows customers can download the latest FREE patch update (build 5) here.

Summary of Changes in Build 5 (Oct 10)
Fixed: Sometimes the position of the VST/DX plugs window (even if not visible) would prevent a drop, such as into the drop station, from occurring.
Fixed: When batch converting files, the volume of some file types such as wav/mp3/wma/mp4, etc. would be too low.
Fixed: In Chords Window, you could not enter held chords on Piano track.
Fixed: LeadSheet might not display tied notes on the last bar of a track.
Fixed: Pressing "M" key in Editable Notation to insert a new note at the current time location on the Staff was inserting a duplicate note rather than inserting it above an existing note.

Notation Enhancements in Band-in-a-Box® 2019 64-bit for macOS Catalina

With Band-in-a-Box® 2019 64-bit for Mac we added Drum Notation Support, and we didn't stop there! Other Notation Enhancements added in this new version are:

-A new track type (Drums) is available for the Melody and Soloist tracks.
-Clicking close to a stave line will put a note on the stave line instead of between stave lines. Previously, you had to click extremely close to a stave line to insert a note on it.
-Holding down the control key and pressing the zoom in/out buttons results in finest possible incremental adjustment in size.
-In the Notation Window Options dialog, the clefs split point asterisk indicates that C5* is middle C.
-Notation is much clearer, not jagged, on retina screens.
-The clefs split point can be set by the spin controls.
-The right-click menu in the Editable or Staff Roll mode Notation window has an option to change the current beat resolution. Previously, the only way to do this was to right-click on the time line.
-There is a keystroke entry mode, which lets you enter a melody entirely using keystrokes. The keystrokes are N to enter a note, M to enter a third note, up/down cursor to change the pitch of the highlighted note, and left/right cursor to move the time line.
-You can quickly enter forced accidentals from the right-click menu.

Read more about the Notation Enhancements in Band-in-a-Box® 2019 64-bit for Mac here. Watch this feature 'in action' with our new features video - jump to this topic when you click here.

...and don't forget - Band-in-a-Box® 2019 for Mac upgrades are ON SALE until October 15th, up to 50% off! Order now!

Band-in-a-Box® 2019 for Mac - Special Ends October 15th!

Our Band-in-a-Box® 2019 for Mac special is almost over! The special ends on October 15th - until then, save UP TO 50% when you purchase your Band-in-a-Box® 2019 for Mac Upgrade... and receive a FREE Bonus PAK full of great Add-ons!

It's a GREAT time to order your upgrade to Band-in-a-Box 2019 for Mac, which is compatible with the just-released macOS Catalina - upgrades start at just $49!

We've packed our Free Bonus PAK & 49-PAK with some amazing Add-ons! The Free Bonus PAK is automatically included with most Band-in-a-Box® for Mac 2019 packages, but for more even more Add-ons (including 40 Unreleased RealTracks) upgrade it to the 2019 49-PAK for only $49. You can see the full lists of items in each package, and listen to demos here.

Check out our packages page for all the purchase options available.

Band-in-a-Box® 2019 64-bit for macOS Catalina!

Band-in-a-Box® 2019 64-bit for Mac works GREAT with the just-released Catalina 64-bit only OS!

Updating your Mac to the latest macOS Catalina? Don't miss a beat with our 64-bit version of Band-in-a-Box® 2019 for Mac®, fully compatable with the just-released macOS Catalina!

In fact, Catalina features like Sidecar (a feature which allows you to utilize your iPad as a second display) work well with the new Band-in-a-Box® 2019 - great for sharing charts with other musicians!

So, take comfort in knowing that the newest Band-in-a-Box® 2019 64-bit for Mac runs great on Catalina and there are no known Catalina/Band-in-a-Box® issues.

Have an older version of the program that won't work with Catalina (which only runs 64-bit programs)? Don't fret - you can upgrade to the newest version for as little as $49, here.

Video: Band-in-a-Box® for Mac: DAW Plugin in Ableton

Check out our updated video demonstrating the new Band-in-a-Box® VST/AU/AAX Plugin being used with Ableton: click here to watch. Learn more about the Band-in-a-Box® VST/AU/AAX Plugin here.

Don't forget, our Band-in-a-Box® 2019 for Mac upgrades are ON SALE until October 15th - and ALL Band-in-a-Box® 2019 purchases include the VST/AU/AAX Plugin!

Video: Band-in-a-Box® for Mac: DAW Plugin in Digital Performer

In this full tutorial, Jareth demonstrates using the Band-in-a-Box® DAW AU Plugin with MOTU Digital Performer on Mac.

Forum Stats
30205 Members
62 Forums
60149 Topics
507597 Posts

Max Online: 2434 @ 11/14/17 12:37 AM
Newest Members
janmathijs, zacworld, Greenthorne1967, Gummi, first44

30204 Registered Users
Top Posters (30 Days)
VideoTrack 174
Noel96 164
Pipeline 153
Janice & Bud 119
Greg Johnson 103
floyd jane 101
Andrew - PG Music 91
rayc 89
MarioD 89
Deryk - PG Music 84
Today's Birthdays
carlo