Author Topic: Amplitude compesation for midi?  (Read 331 times)

Zenxia

  • Posts: 132
Amplitude compesation for midi?
« on: 22 Jul '21 - 17:14 »
Can add midi volumes normalization flags to bassmidifont?.

I'm want emulate the Beatnik BSB normalization but you can add to flags switch like 0x400000 0x800000 etc?


Ian @ un4seen

  • Administrator
  • Posts: 23890
Re: Amplitude compesation for midi?
« Reply #1 on: 23 Jul '21 - 16:18 »
I'm not familiar with Beatnik BSB normalization, but if you want to raise the volume when it's low and lower the volume when it's high then perhaps a compression effect will achieve what you want? The BASS_FX_DX8_COMPRESSOR or BASS_FX_BFX_COMPRESSOR2 effect can be used for that. For example, something like this:

Code: [Select]
compfx = BASS_ChannelSetFX(stream, BASS_FX_DX8_COMPRESSOR, 0);
BASS_DX8_COMPRESSOR param;
param.fGain = 10;
param.fAttack = 10;
param.fRelease = 200;
param.fThreshold = -20;
param.fRatio = 3;
param.fPredelay = 4;
BASS_FXSetParameters(compfx, &param);

Zenxia

  • Posts: 132
Re: Amplitude compesation for midi?
« Reply #2 on: 24 Jul '21 - 00:40 »
BSB Emulation demo making for ian debug
« Last Edit: 24 Jul '21 - 01:19 by Zenxia »