PG Music Home
I have been working with tech support for several weeks on this problem and they cannot solve it. PLEASE if anyone has any ideas, I need them desperately.

Here is the problem.
With the option "pause until midi received" selected, the first note, and only the first note, of a song sounds as soon as I start the song. The song then stops and restarts at the second note when I send a midi signal from my keyboard or press spacebar.
The problem only occurs 20% of the time and seems random - not song specific.
It only happens with songs containing at least one midi instrument, not with all RTs.
It doesn't matter how I start the song, even using the Jukebox to start songs has the same problem.
It doesn't matter which spacebar option is selected.
It doesn't matter whether I use a soft synth or my sound module.
I am using BIAB 2013 but is was happening with 2012 and 2012.5.
Finally, and this really gets me, it happened with 2013 installed on two different laptops both running Win7.

It seems like a signal is getting passed the "pause" option when I press play but if so, why does only the first note play?

You can see why I have run out of ideas.

Thanks
Tony
What options have you set for lead-in? Normally, the pause play until MIDI rec'd would start the song at the beginning of a 2 bar count-in, which would be nowhere near the first note.
Thanks for the response Peter

I never have "allow lead in bars" ticked, in fact every box in that option window is unticked.

If I have "visible metronome 1234" selected then the number "1" is displayed when the first note sounds ie when the problem occurs. If I don't have visible metronome selected then the problem still happens but the number "1" doesn't appear.

The easiest way to demonstrate the problem is to select "pause until midi received" and use the Jukebox on a folder with lots of midi songs. In Jukebox select "preview after 4 bars" and keep pressing the space bar each time a song loads. When I do this about 20% of the songs sound the first note then stop until I start the song with the space bar. If I have "metronome 1234" selected I also see "1" each time it happens.

Thanks
Tony
I can duplicate the problem with BIAB2011.

If I keep pressing F4, the song will wait for a midi signal or spacebar,
but every once in a while it will play the 1st note, then wait.

I never see the problem later in the song though, only at the beginning.
If I stop somewhere later in the song with the spacebar, and restart it
with the spacebar, it always waits as it should.

As you noted, a false midi signal would not play only one note. And a false
spacebar would always have to be in pairs (two space characters) which seems
very unlikely.
HALLELUJAH!!!!!

At last someone else has found what must be a software problem, I'm not crazy after all. You have described the problem exactly.

Peter, are you following this???

Thanks
Tony
If you have removed the lead-in, it might be a pickup melody note that you are hearing. It would help if you could give me the name of one of our demo songs that exhibits the problem.
Tony:

Pay attention to the pickup notes, as Peter Gannon suggests. Any note entered or recorded before Beat 1 will be interpreted by BiaB as a pickup note -- if it's accidentally pushed by even 1 tick. That means we can easily put a pickup note where we didn't intend one and can't identify one.

Those who use the count-in measures to set tempo don't encounter what's bugging you, which is why you feel alone with it. Make sure all your first notes are at Beat 1, Tick 1 (or later), and it may go away.
Thanks Larry and Peter

I am not sure that the problem has anything to do with pickup notes, pushed notes or not using a count-in because it happens anywhere in a song that I start the playback - not just at the beginning e.g if I double click on any bar it may happen or if I set the space bar to "play from current position" it also may happen. .

I tried using a lead in and the problem disappears at the start but this isn't much help because I don't want to use lead-ins and I sometimes want start a song in the middle.

Larry - how can I have a "note entered or recorded before Beat 1"? Except of course if I start the song at say bar 5 then there is a note in bar 4.

Peter - you asked about a specific demo song. It can happen with just about any song that has a least one midi instrument but you could use the demo song with "dixiland.sty" as an example. Remember that the problem is intermittent - about 20% of the time.

Tony
Quote:

Larry - how can I have a "note entered or recorded before Beat 1"? Except of course if I start the song at say bar 5 then there is a note in bar 4.




A "count-in" measure (Bar 0) before Bar 1 is available for pickup notes. It may contain drum hits for a tempo count-off, and if you record something else during a count-in, it goes in there too.

The first note of a tune is likely to be NOMINALLY on Beat 1 of Bar 1. But notes played a little early (before their measure properly begins) can be problematic. They belong to measure zero, because that's where they are. BiaB is smart enough to adjust for timing errors and show them in notation as you meant them to be. They then look like they're in Measure 1. The timing error is very small, so you don't hear it.

We're speculating that when starting the tune as you do, you are hearing remnants of such early notes. They occur by chance, which would explain why you see your problem only one time out of five. (The other 4 times, the note was on the beat or a tiny bit late.)

Check to see what the actual timing is for a couple notes that are causing you grief. You'd know in two seconds whether you can discard this whole idea or do something to get round it. I bet the notes are occurring at something close to 00:04:119. Change the 119 to 120, and you will probably be all fixed.
I made a pattern consisting of a single piano note on beat 1.

Problem still occurs. It is less than 20% in my case, maybe 10 - 15%.
I don't hear a complete note though in this case, only a short "blip".
If I move the piano note to beat 2, I no longer hear the "blip", but the
metronome still shows beat one when it occurs.
Trying to recreate that here.

Question for megafiddle: What is your sound device and what drivers are you trying to use with that device? ASIO or MME?


--Mac
Just using the Microsoft GS wavetable synth.

I'll try some others if I can set them up.

I'm using BIAB 2011, and XP.
This is a temporary setup as I will be using all new BIAB, computer, and Window 7
(new BIAB is on the way), so I didn't set everything up.
Your problem just might be due to the huge lag time of the Msoft Wavetable synth, coupled with not using ASIO sound drivers.

ASIO4ALL drivers plus using a DXi synth might clear it up, don't know for sure but is what I'd be trying next (and what I run on the laptop).


--Mac
I just got my Roland SD-50 hooked up and running.

Same thing is occuring. In this case the midi output is via USB to the SD-50.
Thanks Megafiddle

You continue to get EXACTLY the same results as I have been getting, literally for years with many versions of BIAB and configurations. I am also currently using a SD-50. It has nothing to do with drivers, or hard vs soft synths (I have fiddled with those ad infinitum) it is a BIAB software glitch. Yes, the problem is very intermittent which makes testing a bit frustrating. You are also right that the noise is usually a "blip" but sometimes it is a single note with all the instruments and it keeps sounding until I hit stop.

It can also happen anywhere I start the song in the middle.

If anyone is wondering why I am plugging away at this, I played a gig over Xmas and every now and then after I announced a song and double clicked on it in the songpicker the song would load and immediately get a load blip or sometimes a continuous note - not very professional.

Peter, are you still following this?

Thanks
Tony
Hi Tony,

I also have found this with BIAB.

My thoughts on this may be way off base but here they are anyway.

Could it be that the sound card is retaining a little bit of sound.
Perhaps the sound card is not being flushed out properly.

I find that it happens more if I stop the song mid stream so to speak, but if I let the song finish it doesn't happen.

Maybe I am wrong but someone with knowledge of electronics can advise.

George
P.S
Here are my computer settings:

Microsoft Windows 7 Home Premium

Central Processor AMD A8-3500M APU with Radeon(tm) HD Graphics
Video Adapter AMD Radeon(TM) HD 6620G
Video Memory 512.00 MB
Screen Resolution 1366 x 768
Sound AMD High Definition Audio Device
Tony:

Try this, I bet it works:

Open "Prefs" and open "OutputCh". At the top of the box you see "Output Chords?" I bet it is checked... uncheck it.

This ("Output Chords") is a very handy feature which many of us use to drive harmony machines and such which respond to the BB chord changes.

Good Luck!
Does it happen if you use the Coyote WT DXi synth, instead of the Microsoft GS Wavetable?
Quote:

Does it happen if you use the Coyote WT DXi synth, instead of the Microsoft GS Wavetable?



Andrew and Mac
I had another go with Coyote WT DXi and although it doesn't eliminate the problem completely, it now happens very infrequently. I gave up on soft synths because I could never completely cure the latency problem. I like the song to start in total sync with my keyboard as I play the first key and I could never get this zero latency at the start of a song. With an external synth this is never a problem. I now have over 500 songs arranged for the patches in my SD-50 so Coyote WT DXi is not an option for me. In any case it would be nice to use BIAB without this problem for both hard and soft synths.

Quote:

Could it be that the sound card is retaining a little bit of sound.
Perhaps the sound card is not being flushed out properly



George
That's a interesting idea so I did tests starting a song after letting it end naturally compared with stopping it in the middle. Unfortunately it made no difference to my problem.

Quote:

Open "Prefs" and open "OutputCh". At the top of the box you see "Output Chords?" I bet it is checked... uncheck it.




Brad
Thanks for the suggestion but I have always had the box unticked

Has anyone at PG done a test to observe the problem? The easiest way is to
1)Load the demo song with Dixiland.sty
2)Use an external synth or Microsoft GS Wavetable.
3) Select "pause until midi received" in the prefs'
4) Mouse around the song double clicking on bars and pressing the space bar to start and stop the song.
You should find that around 10-20% of the time you double click a single note sounds but the song doesn't start until you press space bar. Some of the time the note may actually stick on, sounding continuously.

Many thanks for all the replies, I really appreciate them.

Tony
Tony, there is a very good chance that use of ASIO sound drivers, such as the free ASIO4ALL.exe, coupled with using a DXi MIDI synth, regardless of whether the songs involved are all Realtracks or not, may solve your problem.

Use of the Microsoft synth and the standard windows MME sound drivers is a recipe for all kinds of huge latency problems. I don't know what's under the hood inside Band in a Box, but have "been there and done that" regarding the kind of issues you are having. My theory, and that's all it can be without getting deep into the compiler, which we don't have and is precluded legally by the licensing agreement anyway, is that whenever the program has to "call" the very slow Microsoft synth, which I think happens every time we start a song, the doggone thing takes too long to get ready and the internal timing of whatever is happening "under the hood" causes that pesky playing of one note beforehand.

The fact that it is rather random as to when and which song it happens on seems to add credence to that theory. Sometimes resources and timing of CPU, etc. are available and ready and able to process in time, other times not.

Anyway, when I'm using Band in a Box on my laptop and don't want the extra hassle of hooking up one of the USB afermarket "recording" sound devices I have, which have their own ASIO sound drivers, I just use the ASIO4ALL driver, permanently installed on c: drive, and it has worked very well over the years, eliminating problems such as this one before they can rear their ugly head, also eliminating *other* problems, such as long latency when trying to play keyboards, softsynths, even hardware synths to some extent (hardware MIDI itself is very fast, of course, but still can succumb to Interrupts and other things in the Windows System and PC timing scheme on occasion, creating a hiccup. ASIO sound drivers attempt to create an Audio Stream that does not get interrupted by such OS and CPU calls. That's why Steinberg designed ASIO sound drivers in the first place.


--Mac
Quote:

Tony, there is a very good chance that use of ASIO sound drivers, such as the free ASIO4ALL.exe, coupled with using a DXi MIDI synth, regardless of whether the songs involved are all Realtracks or not, may solve your problem.




Thanks Mac

You are quite right, I just switched to CoyoteWT (my laptop is permanently set to ASIO4ALL) and the "early note" problem seems to go away but the annoying latency at the start of a song is still there. However that's really no help because I have no intention of ever using a soft synth even if I could solve the latency problem. I am totally committed to my SD-50 sounds module because I have hundreds of songs all arranged with the patches from it. So any discussion about soft synths and audio driver settings is mute.

I think it is reasonable for me to expect BIAB to perform without this annoying glitch when using a sound module. I am still waitng for a response to indicate that PG have followed my directions to demonstrate the problem.

Thanks
Tony
I use the ASIO drivers with my hardware sound modules.

When doing so, I have the MIDI Output window set to highlight the physical hardware MIDI OUT ports needed at the time.

Will check it out as thoroughly as I can one more time from here, trying to duplicate the problem.


--Mac
I may have found a way around this problem.

I noticed that the problem of the first notes playing only occurs
when the note is on beat 1, tick 0. Moving the note to tick 1 seems
to prevent it from playing. This has no effect on the metronome, it
still jumps to beat 1 ocasionally when paused waiting for midi.

Now you don't want to have to do this for every pattern, but there
is a way to move all notes back slightly for all songs.

In the play menu, under "Slide Tracks", set all the values to '1'
and select "Allow Any Slides".

I don't know if this will work for any and all styles. If it doesn't
work for some, possibly making the slide values a little larger may
help.

It even seems to work if the note is one tick before the 1st beat,
which is strange because "Slide Tracks" should move it back to tick 0
on beat 1.
YIPEE!!! That fixed it - many thanks Megafiddle.

My test style dixiland.sty demonstrates the problem more than most and now it seems to be perfect if I set Slide Tracks to 1. So far I cannot find any disadvantages. I hadn't even realized this slide option existed,

It shouldn't really be necessary to use this workaround to get BIAB to stop this annoying behaviour. Surely some kind of permanent tiny delay can be built into the program.

I wonder if PG have tried to reproduce the problem in the way that I have suggested.

Thanks
Tony
Yes, that's a very interesting observation by megafiddle.

My Slide Tracks settings are permanently at several different values such as 2, -2, etc. Perhaps that is why some of us can duplicate your problem and others cannot.
Sounds like a good find - and likely a good clue for development.

Will have to check to see if that is why it works here.

I think it will be confirmed, for I generally play anything on the Melody track in, using MIDI record - and it is highly unlikely that I will play right on beat 1, 0 - spent all these years learning how to play behind the beat and cool y'know.


--Mac
Glad to hear it helped.

I noticed also that negative Track Slide values don't help. Since there is no
lead in bar in this case, I am guessing that notes can't be moved back before
beat 1, tick 0, so they remain at zero which is where the problem occurs.

Anyway, I find it amazing that a program this complex works as well as it does.
© PG Music Forums