You need to be logged in to post
Options
Index
#24217 - 05/24/09 08:02 AM [Band-in-a-Box for Windows] Question for the experts
Registered: 07/14/00
Posts: 4867
MartinB Offline
Veteran

Registered: 07/14/00
Posts: 4867
This is a question related to the rendering of midi signals. At times BiaB yields strange results when playing back its arrangements. Usually midi notes do sound during their midi duration. However, at times they do sound substantially longer. Why?

Here is how to reproduce this finding:
Load the demo song of Jazquint.sty. Set Guitar to solo such that you hear exclusively the guitar track; potentially reduce the tempo to s.th. like 60. Turn the chord Dm7 in the second bar to a shot. Press play and focus on the guitar notes of the Dm7 shot. Various synthies now yield different results. VSC DXi makes the guitar notes sound exactly during their midi duration here. Forte DXi and GS Wavetable, however, make these notes sound substantially longer - effectively botching a shot effect.

Now comes a related question.

With the style Jazquint.sty a typical guitar pattern are strums at each beat. Typically these strums are notated with respect to the respective midi durations -> long-short-long-short (long refers to durations of about 0:100, short is typically s.th. around 0:20). At times, though, some bars show up with midi durations short-short-short-short. At those bars the synthies create the following puzzling patterns -> Forte DXi: mostly long-short-long-short and sometimes even long-long-long-long, VSC DXi: long-short-long-short, Wavetable: long-short-long-short.

Why do different synthies create different renderings with respect to note durations?

Why do some synthies create long-short sounds with notes of durations short-short?
_________________________
Martin

Top
#24218 - 05/24/09 08:37 AM [Band-in-a-Box for Windows] Re: Question for the experts [Re: MartinB]
Registered: 09/28/03
Posts: 8333
Loc: London, Ontario, Canada
John Conley Offline
Veteran

Registered: 09/28/03
Posts: 8333
Loc: London, Ontario, Canada
Dare I guess reverb in the samples?
_________________________
John Conley
Musica est vita

Top
#24219 - 05/24/09 09:27 AM [Band-in-a-Box for Windows] Re: Question for the experts [Re: John Conley]
Registered: 07/14/00
Posts: 4867
MartinB Offline
Veteran

Registered: 07/14/00
Posts: 4867
Oh well, some inspection with the midi monitor reveals that there are a bunch of sustain controllers floating around with the midi data created by this style. Those song positions that create long sounding notes even if the note durations are rather short are accompanied by some non zero sustain controller values. Typically these values are indeed 127. That seems to account for long sounding notes with short midi durations.

Now, why do different synthies create different outputs?

In the second bar with the shot, the notes start out with a sustain controller value 127. At the end of the note durations the sustain controller value is turned to 5, not to zero.

Apparently different synthies react differently to sustain controller values, such a 0 correnponding to 'off' and any value different from 0 may correspond to 'on'. The VSC DXi seemingly takes a value 5 just as this value, thus effectively switching off sustain.

That is an interesting problem that popped up recently over at the German forum ...
_________________________
Martin

Top
#24220 - 05/24/09 10:20 AM [Band-in-a-Box for Windows] Re: Question for the experts [Re: MartinB]
Registered: 05/29/00
Posts: 38502
Loc: Chesapeake, Virginia USA
Mac Offline
Veteran

Registered: 05/29/00
Posts: 38502
Loc: Chesapeake, Virginia USA
Yes, different devices do indeed respond differently to MIDI controller 64 (sustain).

The 5 is not generally a problem, though, as the vast majority of GM synths use the 0-127 CC as a "bang-bang" and not a continuous action, typically defining the dividing point between Pedal Up and Pedal Downs at the halfway mark, or 064. (Here's where guys like Gary will chime in about their special Sustain Pedal situation, which is programmed to emulate half-damper action. You can get it, but it is going to cost you more money, whether hardware like Gary's piano or software as in some of the high end piano modeling synths. )

So the 127 is a Pedal Down and the 5 represents a Pedal Up. This is a common MIDI programming practice when creating a MIDI file for use with different GM synths because there exist some synths that don't like going all the way to zero, can't recognize it ("1-based" synths, for example). So setting the Controller for a number slightly above zero makes sure that every possible situation can be handled with the same setting, "5" or "3" being the same action as zero anyway.

The situation can be further exacerbated by certain software synths and their implementation, too. It is customary if not de rigeur to not send MIDI Note Off data in a MIDI file. Even though the original MIDI standard includes Note Off commands, it was found early on that the inclusion of the Note Off commands was superfluous for the most part, bloating the size of MIDI files needlessly when the MIDI Note Duration command literally does the same thing as a Note Off command placed at the end of every single note in a file. But there are indeed certain times when certain softsynths, particularly those of the DXi persuasion, will miss the Note Duration data point, causing longer or shorter notes, often causing the "hung note" situation, particularly on Pad tracks such as strings, synths or organs. That bug has been reported here numerous times. I have never found a cure for the situation other than to switch to a good hardware MIDI synth, where none of this has ever occurred here.

As for CC64 being used on guitar parts, I try to avoid that situation in my own MIDI sequences, simply because the real guitar has no sustain pedal in the first place. That is really something only the Piano, and a few other percussion instruments have in real life. Harp, etc. Still, even given that, the use of the Sustain CC64 is with us forever more than likely, especially in those downloaded-for-free MIDI files that are so ubiquitous. The funny thing about that situation and human nature is that almost everybody will blame the host program they use or the developers of the host -- and never the free downloaded MIDI file from an unknown stranger that they are trying to get to act right.


--Mac
_________________________
PGmusic FAQs, Tutorials and Updates! click here

You must be Audiominds.
www.audiominds.com

Top
#24221 - 05/24/09 11:53 AM [Band-in-a-Box for Windows] Re: Question for the experts [Re: Mac]
Registered: 07/14/00
Posts: 4867
MartinB Offline
Veteran

Registered: 07/14/00
Posts: 4867
I read you Mac, yet here we have a pure BiaB setting - not talking about some downloaded midi files; it's all about the midi data created by BiaB.

The CC#64 controller value was probably a misleading trace anyway. Shifting the guitar track to the melody and editing the suspicious sustain controller value 5 down to 0 does not change anything with the strange playback behavior. Now what?

Maybe some soul from PG Music might chime in here ...
_________________________
Martin

Top
#24222 - 05/24/09 11:56 AM [Band-in-a-Box for Windows] Re: Question for the experts [Re: Mac]
Registered: 06/03/04
Posts: 403
Fred B Offline
Journeyman

Registered: 06/03/04
Posts: 403
Quote:

The situation can be further exacerbated by certain software synths and their implementation, too. It is customary if not de rigeur to not send MIDI Note Off data in a MIDI file. Even though the original MIDI standard includes Note Off commands, it was found early on that the inclusion of the Note Off commands was superfluous for the most part, bloating the size of MIDI files needlessly when the MIDI Note Duration command literally does the same thing as a Note Off command placed at the end of every single note in a file.



Mac,

I've never heard of a "MIDI Note Duration" command..
Can you please explain in more detail? How is it defined in the MIDI standard?

Thanks.

Top
#24223 - 05/24/09 12:06 PM [Band-in-a-Box for Windows] Re: Question for the experts [Re: Fred B]
Registered: 05/29/00
Posts: 38502
Loc: Chesapeake, Virginia USA
Mac Offline
Veteran

Registered: 05/29/00
Posts: 38502
Loc: Chesapeake, Virginia USA
Note Duration is defined by number of MIDI Clock Ticks.

If you investigate using something like Event List viewer or the like, you should find that the majority of MIDI files do not contain Note Off data, only Note On and then the Duration data. This is contained in one parcel and thus there is no need to send a separate Note Off and time, which is another line of data.

MIDI standard is getting a bit long in the tooth, but it is what we have. Some of the ideas that the MIDI Manufacturer's Association first agreed upon way back when at the design tables turned out to be not so wonderful after all. Still, they did a pretty good job of it, considering. I often find myself wishing for a new standard that would encompass a few more musical parameters than what the current thing can yield. As it is, we spend time creating "illusion" more than anything else. Or -- if something doesn't work, try doing something else instead kind of thing.

Check out the Event List View to see the Note On and its Duration value.

Then look for any Note Off data...


--Mac
_________________________
PGmusic FAQs, Tutorials and Updates! click here

You must be Audiominds.
www.audiominds.com

Top
#24224 - 05/24/09 12:25 PM [Band-in-a-Box for Windows] Re: Question for the experts [Re: Mac]
Registered: 06/03/04
Posts: 403
Fred B Offline
Journeyman

Registered: 06/03/04
Posts: 403
Quote:

If you investigate using something like Event List viewer or the like, you should find that the majority of MIDI files do not contain Note Off data, only Note On and then the Duration data. This is contained in one parcel and thus there is no need to send a separate Note Off and time, which is another line of data.



Well, the event list of sequencers in general don't show the raw MIDI commands of the file but just a compact and readable interpretation. But when looking directly at the MIDI file with a MIDI-to-Text converter you'll see the original Note Off commands (usually Note On with velocity 0).


Top
#24225 - 05/24/09 12:26 PM [Band-in-a-Box for Windows] Re: Question for the experts [Re: Mac]
Registered: 07/14/00
Posts: 4867
MartinB Offline
Veteran

Registered: 07/14/00
Posts: 4867
The Event List displays Duration values, the Midi Monitor does not. The Midi Monitor lists a bunch of Note On commands with pertinent velocity values. A velocity value=0 is equivalent to a Note Off command.

This recalcitrant Jazquint style defeats a lot of velocity=0 commands, though ...
_________________________
Martin

Top
#24226 - 05/24/09 12:51 PM [Band-in-a-Box for Windows] Re: Question for the experts [Re: MartinB]
Registered: 06/03/04
Posts: 403
Fred B Offline
Journeyman

Registered: 06/03/04
Posts: 403
The inconsistent behavior may be due to overlapping notes. I've noticed that different synths behave differently in this regard. If you have a sequence like this

Note On C5 ----- Note On C5 ----- Note Off C5 ----- Note Off C5

some synths stop immediately at the first Note Off while others require the second one (ie. matching number of Note Ons and Note Offs).


Top
#24227 - 05/24/09 01:38 PM [Band-in-a-Box for Windows] Re: Question for the experts [Re: Fred B]
Registered: 05/29/00
Posts: 38502
Loc: Chesapeake, Virginia USA
Mac Offline
Veteran

Registered: 05/29/00
Posts: 38502
Loc: Chesapeake, Virginia USA
Quote:


NOTE ON and NOTE OFF Commands

By far the most common command blocks are the NOTE ON and NOTE OFF commands. A NOTE ON command might contain the following hexadecimal byte sequence:

0x92 NOTE ON, Channel 2
0x3C Pitch = Middle C
0x40 Velocity = 0x40

The hexadecimal value 92 identifies a NOTE ON command for Channel 2. Next, hexadecimal data byte 3C is a pitch (frequency) value corresponding to Middle C on the piano. Notes are assigned integer pitch values, increasing with frequency. There are 12 intervals in an octave, so adding or subtracting 12 (decimal) to a sequence of pitch values would raise or lower the pitch by one octave.

The last byte value of 0x40 indicates a turn-on velocity of 64, decimal. Actually, many keyboards don't use the velocity value at all, but simply use a fixed turn-on and turn-off velocity.

Now let's look at the NOTE OFF command. A typical NOTE OFF command block might appear as:

0x81 NOTE OFF, Channel 1
0x3C Pitch = Middle C
0x40 Velocity = 0x40

Here the bytes represent a NOTE OFF status word on Channel 1, a note pitch of 0x3C (Middle C again), and a turn-off velocity of 0x40.

Implicit NOTE OFF commands

A special case of the NOTE ON command allows it to be interpreted as a NOTE OFF command. This is true whenever the velocity value is zero: a zero-velocity NOTE ON command always equals NOTE OFF for the indicated pitch value.





(emphasis added)

The latter case above is now the defacto method for most cases. For reasons already given, but look at it like this: All Note On data is leaner and meaner than interspersing the Note Off strings. It is faster and demands less state change events.

This also depends on the coding of the software you use to view the MIDI data, though. Some will imply the Note Off that really isn't there, kind of like a smart filtering or interpretation situation. It may be necessary to be able to look at the raw MIDI data in order to see the real.


--Mac
_________________________
PGmusic FAQs, Tutorials and Updates! click here

You must be Audiominds.
www.audiominds.com

Top
#24228 - 05/24/09 06:41 PM [Band-in-a-Box for Windows] Re: Question for the experts [Re: MartinB]
Registered: 06/03/04
Posts: 403
Fred B Offline
Journeyman

Registered: 06/03/04
Posts: 403
Quote:

This recalcitrant Jazquint style defeats a lot of velocity=0 commands, though ...



So I have looked at the exported MIDI file with a special editor to inspect the raw data. It turns out that on the guitar track on each beat the complete chord is generated *multiple* times with an offset of some ticks, and for each of these chords all but one Note On are immediately followed by a Note Off (velocity=0). Thus a strum effect is created but the method seems questionable. I'd suspect that sending Note On and Note Off with same pitch on the same tick may confuse some synths.


Top
#24229 - 05/24/09 07:53 PM [Band-in-a-Box for Windows] Re: Question for the experts [Re: Fred B]
Registered: 07/14/00
Posts: 4867
MartinB Offline
Veteran

Registered: 07/14/00
Posts: 4867
What special editor did you use?

I have only access here to the event list and the midi monitor of BiaB or RealBand. Looking closer at those data I might have a clue now of what is going on here:

While in an above post I assumed that the CC#64 business might be a blind alley, it appears definitely to play a role. I was led to thinking it doesn't play a role, because setting the above mentioned CC#64 value from 5 to 0 didn't seem to change anything. Now, that holds true for the Forte DXi only - which was the active synth when I tried this exercise. Checking on the effect of setting a CC#64 value from 5 to 0 with either Wavetable or VSC DXi does, however, create results, which one would expect -> a nice shot and otherwise nice strumming patterns throughout the style.

So, why does Forte DXi seemingly botch this strumming exercise?

Looking at the Event list, it appears that the Forte DXi holds notes despite of some CC#64 value=0, supposed to silence played notes, whenever such a CC#64 command happens to show up after some note off command was issued. Most of the time this style creates CC#64 value=0 commands shortly before a pertinent note off command. In these circumstances the notes stop sounding with the Forte, VSC and Wavetable. Sometimes such a CC#64 value=0 command is issued slightly after such note off commands. In these instances VCS and Wavetable do silence notes anyway, however Forte keeps those notes sounding, thus compromising this style.

Weird ...
_________________________
Martin

Top
#24230 - 05/24/09 08:32 PM [Band-in-a-Box for Windows] Re: Question for the experts [Re: MartinB]
Registered: 05/29/00
Posts: 38502
Loc: Chesapeake, Virginia USA
Mac Offline
Veteran

Registered: 05/29/00
Posts: 38502
Loc: Chesapeake, Virginia USA
Sounds like the Coyote Forte may be programmed to accept any value above zero as Pedal Down...
_________________________
PGmusic FAQs, Tutorials and Updates! click here

You must be Audiominds.
www.audiominds.com

Top
#24231 - 05/24/09 08:39 PM [Band-in-a-Box for Windows] Re: Question for the experts [Re: MartinB]
Registered: 06/03/04
Posts: 403
Fred B Offline
Journeyman

Registered: 06/03/04
Posts: 403
Quote:

What special editor did you use?



It's a self-made program written in Java.

As a Mac user I can't check the synths you're using but I still think the basic problem is that BiaB generates note on commands immediately followed by note off commands. This may result in timing issues with note management and sustain handling of some synths.


Top
#24232 - 05/24/09 09:38 PM [Band-in-a-Box for Windows] Re: Question for the experts [Re: Fred B]
Registered: 05/29/00
Posts: 38502
Loc: Chesapeake, Virginia USA
Mac Offline
Veteran

Registered: 05/29/00
Posts: 38502
Loc: Chesapeake, Virginia USA
What Fred B says makes sense.

Matter of fact, there is even a command in the global Prefs, "Send extra Note Offs" -- I presume that is to handle stuck synths.

You might check to make sure you don't have that one st to true...


--Mac
_________________________
PGmusic FAQs, Tutorials and Updates! click here

You must be Audiominds.
www.audiominds.com

Top
#24233 - 05/25/09 05:48 AM [Band-in-a-Box for Windows] Re: Question for the experts [Re: Mac]
Registered: 07/14/00
Posts: 4867
MartinB Offline
Veteran

Registered: 07/14/00
Posts: 4867
Quote:

Sounds like the Coyote Forte may be programmed to accept any value above zero as Pedal Down...



Forte DXi keeps pedal down even with CC#64 value=0, if this command is issued after a note off command.
If CC#64 value=0 is issued before a note off command, the note gets silenced after its duration.

Appears to be a timing issue and may well be a bug with the Forte Software.
_________________________
Martin

Top


PG Music News
With Band-in-a-Box®, Making Music Has Never Been Easier!


We came across this recent post, Music Making Software: Record, Edit, Create and Share Your Own Songs, which includes Band-in-a-Box® in their list of software you'll need to record and edit your own songs!

One of our favourite products, and one that doesn’t seem to come up much in discussions about music making software, is Band-In-A-Box from PG Music. This is probably the longest established and certainly one of the most popular music making software packages of all time. Already packed with features, the latest version has added functions that in our opinion make this an essential buy for musicians in any genre, for keyboard players, guitarists, singers, in fact any musician looking for an outstanding tool to make the most of their creative ideas.
-www.musicrepo.com

The Download Manager - Band-in-a-Box® for Windows

The "Download Manager" within Band-in-a-Box® for Windows is a great tool to confirm or help with the installation of your Band-in-a-Box® for Windows program!

What does the Download Manager do?
Automatically installs Band-in-a-Box® content (RealTracks, RealDrums, etc.) in the background, so you don't have to sit there the whole time! It can also confirm that you've completely installed your purchase.

How do you use it?
Within the program, go to Help | Utilities | Run Download/Install Manager now. Using your activation code, the program will analyze the installation folders, and list anything that still needs to be downloaded and installed.

Learn more about the Download Manager with this tutorial, or check out the topic within the Online Manual.

Band-in-a-Box® for Windows Online Manual - Chord List & Shortcuts

Visit the Chord List of our Online Manual, and you'll see all the chords that can be used within the program! The list includes a few Tricky Chords and Shortcut Chords that you may find useful too!

Tricky Chords:
C5b This is "C flat 5." It is spelled this way to avoid confusion.
C2, C5, C4, C69, C7alt, Cm7#5
You can type C-7 for Cm7 (i.e. use the minus sign) or C7-9 for C7b9.

Shortcut Chords
If you enter a lot of songs, you will appreciate these shortcut keys.
J = Maj7
H = m7b5 (H stands for Half diminished)
D = dim
S = 7sus

There's even information on how to add your own chord shortcuts - check it out!

Video Request Answered - Creating Intros, Bridges, and Endings in Band-in-a-Box®

Check out the newest support video created by Kent that explains how to create intros, bridges, and endings in Band-in-a-Box®! Click here to view...

The Band-in-a-Box® SongPicker Feature

If you have a folder of songs that you'd always like easy access to within Band-in-a-Box, make sure you familiarize yourself with The SongPicker feature, which access the folder that you choose and lock it to!

Access the SongPicker by clicking on the [Song] button next to the title of the song within the main screen of Band-in-a-Box. The first time the SongPicker is opened, you can choose the folder to use to create the list by selecting [Change] and navigating to your preferred directory. Once chosen, select [OK - Make Song List], and Band-in-a-Box does the rest... the next time you click on [Song], you'll be taken directly to your preferred folder!

Learn even more about this feature within Chapter 5 of our Online Manual, here.

Just Launched - The FAQ and Knowledge Base Forum!

If you have a question (or questions!) about Band-in-a-Box®, PowerTracks, RealBand®, or any other PG Music Inc. product - whether it be technical support or pre-sales, there's now an easy one-stop spot to find the answer - our FAQ and Knowledge Base Forum!

Don't want to read through the 600+ posts? Use the Search FAQ option, and you can choose your key search terms to locate the topic and answer you're looking for!

Common pre-sales questions about our products, ordering, and delivery:
Pre-Sales

Technical support & troubleshooting by product:
Band-in-a-Box® for Windows
Band-in-a-Box® for Mac
RealBand® for Windows
PowerTracks Pro® Audio for Windows
Other Products

There's even a Request New FAQs forum, if you didn't see your question answered anywhere!

Over 190 Saxophone RealTracks for Band-in-a-Box®!

Today's the day we say "Happy Birthday" to Adolphe Sax, the creator of the Saxophone!
(Adolphe was born November 6, 1814 - 32 years later he patended his saxophone creation!)

We have more than 190 Saxophone RealTracks available for Band-in-a-Box with the following RealTracks Sets - review the complete list here.

Check our our Saxophonist programs for Windows:
The Jazz Saxophonist
The Rock Saxophonist

Forum Stats
28209 Members
59 Forums
54895 Topics
455247 Posts

Max Online: 2434 @ 11/14/17 12:37 AM
Newest Members
layton, TomTowle, Dische, rolandmammoliti, Lajos

28209 Registered Users
Top Posters (30 Days)
Noel96 177
Al-David 143
Rustyspoon# 136
Pipeline 118
floyd jane 117
Tangmo 117
Matt Finley 117
Janice & Bud 116
BlueAttitude 116
44kfl 111
Today's Birthdays
No Birthdays