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: 10394
Loc: Melbourne, Australia
VideoTrack Online   content
Veteran

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

Registered: 12/27/03
Posts: 13099
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.
_________________________
Son "When I grow up I want to be a musician". Mom "son, choose one or the other, you can't be both"!

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
Give the Gift of Music with Band-in-a-Box®!

Did you wait too long to purchase flowers, a card, or book a restaurant for Valentine's Day? Or, maybe material gifts just aren't your thing?

Why not whip together a song in Band-in-a-Box? It's as easy as typing in some chords, choosing a style, and pressing play!

Or, take it a step further with the help of the Audio Chord Wizard and our StylePicker Song Titles Browser feature!
How???
-Use the Audio Chord Wizard to analyze their favorite song and provide you with the chord progression
-Take that chord progression and start a new project in Band-in-a-Box (choose "Erase the Audio WAV file in BB" | Enable style)
-Head to the StylePicker window, search for a style for that song using the "Song Titles Browser" Feature (top right)
-Choose from the list provided
-Press Play!

Like what you hear? Save it, and viola!

Holiday Hours - Family Day (Mon, Feb 17)

Monday, February 17th is Family Day!

Our hours on this holiday will be:
Customer Service: 8:00AM to 4:00PM PST
Technical Support: Closed.

Regular hours resume Tuesday, February 18th.

www.pgmusic.com/contact.htm

Get Out Your Guitar with Band-in-a-Box®!

Today is Get Out Your Guitar Day! To celebrate, "they" recommend gathering up a few friends with guitars to ROCK!

But, what if you're unable to round up your crew? That's where Band-in-a-Box® comes in!

There are more than 1,100 Guitar RealTracks available in Sets 1-352 by over 50 RealTracks Artists! Jam along with any of them when you create your own song using Guitar RealTracks, or play one of the demo songs for any Guitar you choose in the RealTracks picker dialog - simply choose your Guitar and click on the [Song Demo...] button within that window.

OR take it even farther when you head to the Soloist within Band-in-a-Box® and choose "Trade" when generating a Guitar Soloist track - choose between 2, 4, or 8 bars!

Learn more about the Trade option within Band-in-a-Box in Chapter 9 | "The Soloist" of our Online Manual.

RealBand® Bar Settings Explained

Pressing the [Bar] button or f5 while in the Chords Window of RealBand brings up the Settings for Bar for that song.

What can you do in Bar Settings?
-Key Changes
-Style Changes
-Instrument Changes
-RealTracks Changes (opens a new window)
-Access the UserTracks Development Settings
-assign bars to repeat
-Reset - All Bars or Current Bar

Band-in-a-Box® Bar Settings Explained

Right-click on any bar within Band-in-a-Box®, and you'll gain access to the Bar Settings for your song!
(also accessed by choosing "Settings for Current Bar" within the Edit menu of the program, or clicking f5)

What can you do within this window?
-Edit the number of beats per bar
-tempo changes
-Key Signature changes
-volume changes for each track (Bass, Piano, Drums, etc)
-MIDI Patch Changes
-Harmony Changes (choose which bar & beat!)
-access to UserTracks Development
-Clear the Style
-Access to RealDrums features (including Clearing the RealDrums)
-change the RealTracks at selected bar
-Reset ALL the bars or the selected bar
-Access Print Summary of Bar Settings

We have a video about Bar Settings, if you're interested: Band-in-a-Box® for Windows: Bar Settings Overview

For those that like to read about features, check out the PDF manual, specifically Chapter 6: Making Songs. Or, read this information within the Online Manual.

#TBT - The Release of RealTracks with Band-in-a-Box® 2008!

With Band-in-a-Box® 2007, we added RealDrums, which program users were THRILLED to see!

So, with Band-in-a-Box® 2008 we added RealTracks! Initially, 3 were released:
1. Real Pedal Steel
2. Real Acoustic Guitar
3. Tenor Sax soloing (RealSax)

Do you remember these? We do! We got a chance to "show them off" at Musikmesse that year, and the response was overwhelming - EVERYONE loves RealTracks! Adding real instruments played by top studio musicians adds an exciting human element to all your Band-in-a-Box songs!

Now there are over 2,900 RealTracks available in RealTracks Sets 1-352! Get them ALL with every Band-in-a-Box® 2020 UltraPAK, UltraPAK+, or Audiophile Edition.

Other new features added when we released Band-in-a-Box® 2008 included:
-MultiStyles
-Medley Maker
-Key signature changes at any bar
-"Fixed Do" Chord Entry and Display
...and more!

To reminisce on all the features released with older versions of Band-in-a-Box®, head to Help | Contents | Features within the program. There are separate lists going all the way back to Band-in-a-Box® Version 7!

New with Band-in-a-Box® 2020 for Windows - Artist Browser

Did you know that there are over 160 Artists in our RealTracks & RealDrums library? Learn more about them when you're in the program by clicking aywhere in the "artist bio" within the RealTracks/RealDrums Picker or the [Artist Bio] button in other RealTracks/RealDrums selection dialogs - a Window will open the new Artist Browser dialog.

The Artist Browser dialog:
-Lists all artists and the instruments they play.
-Shows the total number of artists.
-Provides the biography of the artist for you to read
-Offers a text filter if available.
-Has a [More Info] button that launches the PG Music web page for that Artist.
-Also has a [OK - Show Artist RealTracks] button that will go back to the RealTracks/RealDrums selection dialog and list all the RealTracks/RealDrums that the selected artist plays.

Learn more about this new feature when you jump to the "More add-ons (Filter by Instrument, Artist Bios, RealDrum notation and more!)" section of our Band-in-a-Box® 2020 for Windows New Features Video.

Forum Stats
31182 Members
63 Forums
62405 Topics
527880 Posts

Max Online: 2537 @ 01/19/20 07:09 AM
Newest Members
ooka eadio, DTG, Klez, shadowmax, SitusIDNPokerrs

31182 Registered Users
Top Posters (30 Days)
MarioD 142
Noel96 134
VideoTrack 121
floyd jane 111
Janice & Bud 110
Pipeline 105
Rustyspoon# 103
BabuMusic 98
Torrey Bliss 95
rayc 91
Today's Birthdays
amk