Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BBTrack mute glitch #3544

Open
ghost opened this issue May 8, 2017 · 12 comments
Open

BBTrack mute glitch #3544

ghost opened this issue May 8, 2017 · 12 comments
Labels

Comments

@ghost
Copy link

ghost commented May 8, 2017

When BaB is played and you selelect to play some other instrument outside BaB there is the chance that at the same time note plays in BaB the instrument that plays it will lose all effects.
How to reproduce : Go to BaB editor and place some notes on monstro here. Then outside BaB editor place some notes on other monstro. If you play it and select solo on the Monstro outside BaB it should do a loud sound. As in this video : https://youtu.be/2kHNU8AJCmw
The song (used in the video above) :
http://www.mediafire.com/file/6ez5bbbzvbqbgc3/Texxiliator+-+Desair.mmpz
noticed it only works with this projects / couldnt reproduce

@ghost
Copy link
Author

ghost commented May 8, 2017

Could be dangerous if you have an effect that makes instrument very quiet so you put volume up so when a note plays its EXTREMLY loud.

@musikBear
Copy link

musikBear commented May 9, 2017

@Texxiliator
I think that this:
noticed it only works with this projects / couldnt reproduce
is the most important here.
I think that it is a project issue, and not a general lmms issue, so in that light, this is not a lmms-bug, it is a one project-specific-issue
I will take a look at you project, and try to figure out what is the reason

@musikBear
Copy link

No, it is indeed a Monstro bug
There is no need for any additional notes in song-editor.
The issue is emphasized progressively with shortening the note in ENV.
To reproduce:

  • Create an empty project
  • insert default Monstro in B&B
  • Set VOL of B&B to 17% (safety
  • Set Monstro ENV
    **D 0
    ** Att 10
    ** H 0
    ** D 0.15
    ** S 0
    ** R 0.1
    ( eg as pluck note )
  • insert notes in B&B for the track either as BB or in open piano-roll
  • Insert a block for the BB-track in song-editor
  • start playing (use a loop

Now solo and un-solo at random. After a few of those, a loud artefact happens

@ghost ghost changed the title Beat and Bassline glitch Mostro and BaB Glitch May 9, 2017
@ghost
Copy link
Author

ghost commented May 9, 2017

@musikBear ohh

@zonkmachine
Copy link
Member

Bisected. This is buffer noise related to the Memory Manger, #1088 .

@mamins1376
Copy link
Contributor

It's not just with Monstro! I can reproduce it with others like Triple and BitInvader. seems the problem comes from envelope function.

  • add a default BitInvader on a BaB
  • make a pad-like envelope (some ATT, H=D=0, SUS=100%, some R)
  • add some notes
  • hit play inside piano roll
  • deactivate BaB inside playlist

@zonkmachine
Copy link
Member

Isn't this a duplicate of #1947 which was closed in #3804 ?
@PhysSong

@mamins1376
Copy link
Contributor

It's fixed on stable-1.2 but it behaves a little odd when you mute the BnB while it's playing (from BnB, not piano-roll). actually the last note which was playing will last until it's ending. is this desired?

@zonkmachine
Copy link
Member

from BnB, not piano-roll). actually the last note which was playing will last until it's ending

When I mute the BBTrack in the Song Editor and there is a note on it's like turning off the envelope.

is this desired?

Nope.

@zonkmachine
Copy link
Member

Right. I had another go at bisecting this. As it turns out there was a related mute issue with single tracks in a bbtrack. #1512, which was closed in 146577d by @grejppi

@PhysSong
Copy link
Member

PhysSong commented Oct 1, 2017

it behaves a little odd when you mute the BnB while it's playing

I can explain the reason.
Short answer: mute from track blocks sound, mute from BB blocks note on.

Long answer: AudioPort::doProcessing() tests whether related objects(including tracks) is muted, and block sounds if it is muted.
However, mute from BB is handled in BBTrack::play(). If a BB track is muted, it doesn't call subtracks' play() function. In such situations, it blocks adding notes for non-single-streamed instruments.

@zonkmachine zonkmachine changed the title Mostro and BaB Glitch BBTrack mute glitch Oct 1, 2017
@PhysSong
Copy link
Member

PhysSong commented Oct 3, 2017

This is buffer noise related to the Memory Manger, #1088 .

It seems to be related to #1088, but not to the memory manager. As you can see, the PR includes some changes, which seems unrelated to the memory manager.

Isn't this a duplicate of #1947 which was closed in #3804 ?

The second one is, but the original issue isn't. It is related to what I explained above.
Muting a BB track doesn't block sound but does block note on and everything in InstrumentTrack::processAudioBuffer(). So notes which were playing before muting a BB track will keep playing without applying necessary things(effects, Env/LFO, and even volume and pan).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants