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

Registered: 06/05/12
Posts: 9633
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: 12488
Loc: Hamlin NY
MarioD Offline
Veteran

Registered: 12/27/03
Posts: 12488
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
Xtra Styles PAK 7 for Band-in-a-Box® 2019 Special Extended!

The verdict is in, and everyone agrees that Xtra Styles PAK 7 is incredible!

There are 164 unbelievable new RealStyles that await you in Xtra Styles PAK 7! We've dreamed up some surprising new arrangements for your songwriting, production, and teaching needs in four volumes: Jazz 7, Country 7, Rock/Pop 7, and Americana 2.

The possibilities seem endless with these fully-produced styles, like atmospheric folk, Western swing chicken pickin', dreamy Southern rock, smooth jazz with world percussion, Brazilian samba, acoustic grunge, and '90s R&B. We've even included two great new MultiStyles that use up to eight substyles! Do yourself a favor and take home this comprehensive and imaginative collection of styles today!

SPECIAL EXTENDED!!! Get all 164 new RealStyles in the All Xtra Styles PAK 7 for only $29 until October 31st! (Reg. $49)

Specific genre packages are also available for $15 each!

For more information and to listen to demos, click here.

Mac user? You'll find your Xtra Styles PAKs here.

Band-in-a-Box® 2019 for Mac Build 309 Update Available!

Band-in-a-Box® 2019 for Mac customers can download the latest FREE patch update here.

Summary of changes for Build 309:
Fixed: The Chord Builder is disabled if previously opened before using a modal dialog (eg. Style Picker, Set Tempo).
Fixed: The program might crash when selecting RealTracks in the Best RealTracks dialog (eg. #2541).
Fixed: Wrong notes in Oohs and Aahs RealTracks.
Improved: Higher dots-per-inch printing.
Added: [Print Chords Only] button added to the Print Options dialog.

EXTENDED! Our Band-in-a-Box® 2019 for Mac Ends October 31st!

You haven't missed our Band-in-a-Box® 2019 for Mac special, which has been extended to October 31st!

There's still time to purchase your Band-in-a-Box® 2019 for Mac Upgrade at up to 50% off, and receive a FREE Bonus PAK full of great Add-ons!

Plus, our latest Band-in-a-Box® 2019 for Mac is compatible with the just-released macOS Catalina - upgrades start at just $49!

Check out our Band-in-a-Box® packages page for all the purchase options available.

PowerTracks Pro Audio 2019 Build 2 Update Available!

PowerTracks Pro Audio 2019 users can download the FREE Build 2 patch update here

Summary of Changes in Build 2:
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.
Fixed: Loading in a MusicXML file could result in MIDI notes of zero instead of the currect MIDI notes.
Fixed: Dragging a file into the tracks window didn't always result in the effects slot for the track being setup properly for the file type dragged in.
Fixed: When inserting hard rest, and answering Yes to question about removing notes for the peg, it would remove notes from both clefs instead of the clef that the rest was inserted on.
Fixed: Potential access violation when deleting a note in staff window.
Fixed: Potential jukebox access violation if there were songs with the entire path of the filename being 256 characters or greater loaded into jukebox.
Fixed: Jukebox not playing the playlist in correct order in certain situations involving stopping/restarting, etc.
Fixed: When loading in a MusicXML file that has a specific guitar fretboard defined that matches one of our fretboards, the guitar tablature type will now be set for the notation.
Fixed: Ability to load in .MXL (compresssed musicXML file) as well as ability to load normal noncompressed musicXML file with the new .musicxml extension instead of just .XML.
Fixed: Hammer ons, pull offs, and slides are now being saved to MusicXML files.
Fixed: Exceptionally jittery timing indicator in the notation window during playback compared to older versions of RealBand.
Fixed: If the start of a generated section of a song didn't have a chord entered at the beginning of the section, then it could default to a C major chord instead of the most recent chord prior to the section.
Fixed: Potential access violation if song has micro-pegs and multiple notes on a peg.
Fixed: Accidental element that specified whether a note was displayed as sharp/flat wasn't eing saved to XML, even though the correct pitch of the note itself was saved.

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.

Forum Stats
30232 Members
62 Forums
60219 Topics
508183 Posts

Max Online: 2434 @ 11/14/17 12:37 AM
Newest Members
gavanhe, TheHoffs, briart, Joe Kingston, r3g1na15

30231 Registered Users
Top Posters (30 Days)
VideoTrack 180
Noel96 148
Pipeline 124
Janice & Bud 120
floyd jane 104
beatmaster 97
Greg Johnson 92
Andrew - PG Music 92
MarioD 86
Jim Fogle 81
Today's Birthdays
Dawn46, Sergio Guarneri