Recent Posts

Pages: 1 ... 4 5 [6] 7 8 ... 10
51
BASS_FX / BPM return nothing ?
« Last post by 3dsolar on October 29, 2008, 02:29:00 PM »
Hi,

We use last version 2.4.2 and bpm.exe (from your package)
We load a basic song from "MadCon "Beggin" in mp3 and nothing happen even tempo fail it happens also with other tracks not only this one.
when we load theses tracks in other beat detection software they find the BPM perfectly well.

So we sent to you the mp3 by email to check why it's not finding the BPM, this would help us allot.

Thanks
52
Announcements / BASS_FX 2.4.11.1
« Last post by (: JOBnik! :) on July 06, 2008, 10:01:39 AM »
Hi ;D

Current BASS_FX version is 2.4.11.1
Released: 24.12.2014


BASS_FX is also available for the iOS, Android, Windows Store/Phone, WinCE and Linux ARM platforms:

* Users on Windows 8 x64, that using the 32-bit BASS_FX.DLL released prior 03/10/2011, please redownload the BASS_FX package :)

Updates and Changes:

2.4.11.1 - 24/12/2014
* BASS_FX:
  * Added support for BASS 2.4.11, BASS_DATA_FIXED flag is used in Android, WinCE and Linux ARM platforms.
  * Documentation is updated.
  * iOS, added "x86_64" simulator architecture.

* Tempo:
  * Fixed "Segmentation fault" on x64 Linux system.

* DSP:
  * Android, fixed "BASS_FX_BFX_ECHO4" effect as reported in this thread:
    http://www.un4seen.com/forum/?topic=13225.msg112373#msg112373

2.4.11 - 02/09/2014
* BASS_FX:
   * Fixed an issue on OSX (The Xcode project's "Installation Directory" setting set to "@loader_path" instead of "@executable_path").
   * Tempo/Reverse fixed a thread-safety crash.
   * Tempo/Reverse added CTYPE info for these streams.
   * Android, added "x86" architecture support (some effects are buggy, will be fixed soon).
   * iOS, added "arm64" architecture support.
   * Fixed Delphi/Pascal unit by changing "FLOAT" to "Single".
   * Added C/C++ "freeverb" example.

* Tempo:
   * Updated to latest SoundTouch library version 1.8.0
   * Fixed a crash when using syncs on tempo, as described in this thread: http://www.un4seen.com/forum/?topic=15708.0
   * Added 3 interpolation algorithms to set using BASS_FX_TEMPO_ALGO_XXX flags (BASS_FX_TempoCreate):
      * BASS_FX_TEMPO_ALGO_LINEAR
      * BASS_FX_TEMPO_ALGO_CUBIC   (default)
      * BASS_FX_TEMPO_ALGO_SHANNON

* DSP:
   * Fixed a bug in BASS_FX_BFX_VOLUME_ENV effect with the "bFollow" option on mobile devices,
     as described in this thread http://www.un4seen.com/forum/?topic=15866
   * Added new effects:
     * BASS_FX_BFX_PITCHSHIFT, that uses FFT for its pitch shifting while maintaining duration.
     * BASS_FX_BFX_FREEVERB, a reverb effect.


2.4.10.1 - 05/06/2013
* BPM/Beat:
  * Fixed a crash when not using BPMPROGRESSPROC callback
  * Added a check for BPMPROC/BPMBEATPROC callbacks, if not available, returns BASS_ERROR_ILLPARAM error code


2.4.10 - 02/06/2013
* BASS_FX:
   * Please see DSP and BPM sections for decprecated effects/functions.
     To not break compatibility with BASS 2.4 version, these effects and functions will still remain in BASS_FX,
     but are removed from documentations and will be totally removed from BASS_FX in the future.
   * BASS_ERROR_FX_NODECODE error code *removed*, will return BASS_ERROR_DECODE instead (Tempo/Reverse/BPM/Beat)
   * BASS_ERROR_FX_BPMINUSE error code *removed*, will return BASS_ERROR_ALREADY instead (BPM/Beat)
   * Tempo and BPM functions updated to latest SoundTouch library version 1.7.1
   * Added BASS_BFX_Linear2dB and BASS_BFX_dB2Linear macros to headers, for convenience.

* Tempo:
  * Multi-channel support is added, but:
     * No SSE optimizations
     * BASS_ATTRIB_TEMPO_OPTION_USE_AA_FILTER is by default set to FALSE on iOS, Android, WinCE and Linux ARM platforms for lower CPU usage
     * Not part of SoundTouch library, sources will be sent to Olli Parviainen after BASS_FX release
  * Sound quality improvements
  * Improved output sound stream duration to match better with ideal duration
  * Fixed BASS_ERROR_UNKNOWN issue with Windows 8 x64, posted in this thread:
    http://www.un4seen.com/forum/?topic=14499.0

* BPM:
  * BASS_FX_BPM_Translate and all of its options, BASS_FX_BPM_TRAN_xxx, are *deprecated*
  * BPMPROCESSPROC *renamed* to BPMPROGRESSPROC
  * BPM example is updated to fit above changes
  * Tuned detection algorithm
  * Fixed detection bug in Android, WinCE & Linux ARM platforms, for returning odd values
  * Fixed percents bug in BPMPROGRESSPROC
  * Changed default min/max BPM window to SoundTouch's 29/200

* Beat:
  * Fixed regression since version 2.4.8 in BASS_FX_BPM_BeatDecodeGet function,
    that would free a "chan" when detection is completed, as described in this thread:
    http://www.un4seen.com/forum/?topic=2181.msg102805#msg102805

* DSP:
  * Ported all effects to Android, WinCE & Linux ARM platforms

  * BASS_FX_BFX_ROTATE:
        added new structure "BASS_BFX_ROTATE" with params:
        "fRate"    - set the rotation rate/speed in Hz between channels
        "lChannel" - multi-channel support, only for even number of channels

  * BASS_FX_BFX_ECHO4:
        added new effect and structure "BASS_BFX_ECHO4" with params:
        "fDryMix"   - unaffected signal mix
        "fWetMix"   - affected signal mix
        "fFeedback" - output signal to feed back into input
        "fDelay"    - delay seconds
        "bStereo"   - even channels are echoed to each other if enabled
        "lChannel"  - multi-channel support

  * BASS_FX_BFX_ECHO        - *deprecated*, use BASS_FX_BFX_ECHO4
  * BASS_FX_BFX_ECHO2       - *deprecated*, use BASS_FX_BFX_ECHO4
  * BASS_FX_BFX_ECHO3       - *deprecated*, use BASS_FX_BFX_ECHO4
  * BASS_FX_BFX_REVERB      - *deprecated*, use BASS_FX_BFX_ECHO4 with fFeedback enabled
  * BASS_FX_BFX_FLANGER     - *deprecated*, use BASS_FX_BFX_CHORUS
  * BASS_FX_BFX_COMPRESSOR  - *deprecated*, use BASS_FX_BFX_COMPRESSOR2
  * BASS_FX_BFX_APF         - *deprecated*, use BASS_FX_BFX_BQF with BASS_BFX_BQF_ALLPASS filter
  * BASS_FX_BFX_LPF         - *deprecated*, use 2x BASS_FX_BFX_BQF with BASS_BFX_BQF_LOWPASS filter and appropriate fQ values

2.4.9 - 16/01/2013
* BASS_FX:
  * WinCE version introduced (package bass_fx24-ce.zip) currently doesn't include most BASS_FX_BFX_xxx effects.
  * Linux ARM version introduced (package bass_fx24-linux-arm.zip) currently doesn't include most BASS_FX_BFX_xxx effects.

* DSP:
  * Added more effects to Android, WinCE and Linux ARM port:
     BASS_FX_BFX_PEAKEQ
     BASS_FX_BFX_MIX
     BASS_FX_BFX_VOLUME_ENV

* Tempo and Reverse:
  * According to this request: http://www.un4seen.com/forum/?topic=13910
    Added support for DECODETO option.

* Tempo:
  * iOS, WinCE & Linux ARM: Enabled the BASS_ATTRIB_TEMPO_OPTION_USE_QUICKALGO option on tempo
    streams by default for lower CPU usage. See docs on how to disable it.

* iOS:
   * Added armv7s architecture support.

2.4.8 - 31/07/2012
* BASS_FX:
  * Android version introduced (package bass_fx24-android.zip)
    currently doesn't include most BASS_FX_BFX_xxx effects.
  * Delphi/Pascal unit: changed "user" param from "DWORD" to "Pointer"

* BPM:
  * Added "user" param to BASS_FX_BPM_DecodeGet and BPMPROCESSPROC (you have to recompile your project).
  * BPM example updated to fit above changes.
  * According to this request: http://www.un4seen.com/forum/?topic=13319
    Added support for BPM detection from the current position with BASS_FX_BPM_DecodeGet (startSec<0).
   
* Beat:
  * Couple of little fixes in beat detection.

* Tempo:
  * Android: Enabled the BASS_ATTRIB_TEMPO_OPTION_USE_QUICKALGO option on tempo
    streams by default for lower CPU usage. See docs on how to disable it.


2.4.7.1 - 01/07/2011
* BASS_FX:
   * Documentation updated.

* DSP:
   * Fixed a small issue in BASS_FXGetParameters for BASS_FX_BFX_VOLUME effect, as it would change the lChannel value
     when the global volume (lChannel=0) is requested.


2.4.7 - 07/04/2011
* BASS_FX:
  * Delphi unit updated: BASS_BFX_ENV_NODE = record, changed to BASS_BFX_ENV_NODE = packed record

* DSP:
   * Fixed bug in BASS_FX_BFX_VOLUME_ENV, being applied slightly early when "bFollow" is enabled.
   * BASS_FX_BFX_DAMP made effect parameter setting a bit more convenient. If fGain < 0 then leave the current value.

* iOS:
   * Added armv7 architecture support.
   * Combined the Device armv6/7 architectures and Simulator libraries into a single file.


2.4.6 - 27/07/2010
* BASS_FX:
  * Tempo and BPM updated to SoundTouch 1.5.1pre
  * iPhone version introduced (package bass_fx24-iphone.zip)
    NOTE: Since iPhone supports only static libraries, it isn't possible for static libraries to declare their dependencies,
          so that needs to be done in the app's project instead, eg. by adding "-lstdc++" in the "Other Linker Flags".
* Tempo:
   * Updated automatic parameter adjustment logic to reduce tone wobbling at large tempo changes.
   * Retired 3DNow! optimization support as 3DNow! is nowadays obsolete and assembler code is nuisance to maintain.

* BPM:
   * Improved BPM detection.
   * Added automatic cutoff threshold adaptation to beat detection routine to better adapt BPM calculation to different types of music.
   * Fixed bug in BPMPROCESSPROC percents, when endSec is greater than stream's length.

* Reverse:
   * Fixed bug with getting the position when using a large output buffer (BASS_CONFIG_BUFFER).
   * Fixed bug in BASS_ChannelGetPosition, could return an incorrect position.


2.4.5 - 18/12/2009
* DSP: Added new effect, BiQuad filters, BASS_FX_BFX_BQF with filter types:
        BASS_BFX_BQF_LOWPASS
        BASS_BFX_BQF_HIGHPASS
        BASS_BFX_BQF_BANDPASS
        BASS_BFX_BQF_BANDPASS_Q
        BASS_BFX_BQF_NOTCH
        BASS_BFX_BQF_ALLPASS
        BASS_BFX_BQF_PEAKINGEQ
        BASS_BFX_BQF_LOWSHELF
        BASS_BFX_BQF_HIGHSHELF

* Tempo:
   * Tempo processing bypassed when tempo/pitch set to 0
   * Couple of improvements:
     * Added normalization to correlation calculation
     * Heuristic that weights center of the processing window


2.4.4.1 - 29/04/2009
* Tempo: Fixed a bug that could cause a stream to end slightly early.


2.4.4 - 28/03/2009
* BASS_FX:
  * Added: Linux x64 build in bass_fx24-linux.zip package.

* Tempo:
  * Updated to most latest SoundTouch library 1.4.1
  * Improved sound quality by automatic calculation of time stretch algorithm processing
    parameters according to tempo setting.
  * Added new BASS_ATTRIB_TEMPO_OPTION_PREVENT_CLICK, to prevent click when
    samplerate/pitch crosses the default value during processing.
    Default is FALSE as this involves slight sound quality compromise.

* BPM/Beat:
  * Fixed a small bug of internally called SETPOS sync.


2.4.3.1 - 07/01/2009
* BASS_FX: Delphi/Pascal unit updated to handle both Windows and Linux
* Tempo: Fixed a small bug in processing with BASS_SAMPLE_LOOP flag


2.4.3 - 24/12/2008
* BASS_FX:
  * Mixtime POS syncs are now triggered when the specified position is
    rendered in the tempo/reverse stream (rather than when it is decoded from the source).
  * Linux version introduced (package bass_fx24-linux.zip) // examples will follow

* Tempo:
  * Corrected BASS_ATTRIB_TEMPO_FREQ min/max values.

* DSP:
  * Added new volume effect: BASS_FX_BFX_VOLUME_ENV, a volume effect using an envelope.
  * BASS_FX_BFX_APF, BASS_FX_BFX_ECHO2, BASS_FX_BFX_ECHO3: fDelay 6 seconds limit removed.

* BPM:
  * Improved the peak detection algorithm so that it wouldn't incorrectly report too slow
    harmonic beats if they are close to the true base beat.


2.4.2 - 16/08/2008
* BASS_FX:
  * Some processing functions optimized for speed.

* DSP:
  * Added new compressor effect BASS_FX_BFX_COMPRESSOR2
    For compatibility issues new compressor will replace old one in version 2.5


2.4.1 - 28/06/2008
* Tempo:
  * Fixed a bug in BASS_ChannelGetPosition, that would return a
    lower position than it should with a decoding tempo stream.

* BPM:
  * Multi-channel support.
  * Fixed a bug in BASS_FX_BPM_DecodeGet, that would return 0 if using
    the same handle and endSec for both Callback and Decode BPM.


2.4.0.2 - 17/04/2008
* BPM: fixed another bug in BPMPROC
* Tempo: fixed a bug not allowing changing BASS_ATTRIB_TEMPO_OPTION_xxx


2.4.0.1 - 06/04/2008
* BPM: fixed a bug in BPMPROC


2.4 - 02/04/2008
* BASS_FX:
  * Updated to BASS 2.4
  * More integrated with BASS plug-in system.
  * Added a function BASS_FX_GetVersion
  * BASS_FX_CONFIG_DSP_RESET *removed*
  * Error codes and names changed
  * To be able to link with BASS_FX, you'll have to call BASS_FX_GetVersion function
    (or any other function from BASS_FX.DLL) or load it dynamically using LoadLibrary("bass_fx.dll")
  * Win64 version introduced (package bass_fx24-x64.zip)

* DSP:
  * Effect names, structure names, flags and chain order are changed
     e.g: BASS_FX_DSPFX_PHASER -> BASS_FX_BFX_PHASER
          BASS_FX_DSPPHASER -> BASS_BFX_PHASER
  * All functions integrated with BASS FX functions and the usage is the same
    as with BASS DX8/DMO effects:

     BASS_FX_DSP_Set *removed* (use BASS_ChannelSetFX)
     BASS_FX_DSP_SetParameters *removed* (use BASS_FXSetParameters)
     BASS_FX_DSP_GetParameters *removed* (use BASS_FXGetParameters)
     BASS_FX_DSP_Reset *removed* (use BASS_FXReset)
     BASS_FX_DSP_Remove *removed* (use BASS_ChannelRemoveFX)

  * It is possible now to apply an effect more than once on the same channel.
  * BASS_FX_BFX_SWAP *removed* (use BASS_FX_BFX_MIX)
  * BASS_FX_BFX_S2M:
     Updated to support multi-channel and renamed to BASS_FX_BFX_MIX
     BASS_FX_BFX_MIX supports Swap, remap and mixing channels together.
  * BASS_FX_BFX_PEAKEQ:
    * fFreq param *removed*
      (use 'oldcenter*freq/oldfreq' to update the fCenter after changing the Samplerate)
    * Max fCenter updated from less than 1/3 to 1/2 of info.freq
    * Take a look at DSP example to know how to increase the number of bands

  * BASS_FX_BFX_LPF:
    * fFreq param *removed* (adjust fCutOffFreq param when needed)

* Tempo:
  * Support for all source sync types
  * Funtions integrated with BASS attribute system (BASS_ChannelSet/GetAttribute):
     BASS_FX_TempoSet *removed*
     BASS_FX_TempoGet *removed*
     BASS_FX_TempoSetOption *removed*
     BASS_FX_TempoGetOption *removed*

    * Tempo attributes:
       BASS_ATTRIB_TEMPO
       BASS_ATTRIB_TEMPO_PITCH
       BASS_ATTRIB_TEMPO_FREQ

    * Option attributes:
       BASS_ATTRIB_TEMPO_OPTION_USE_AA_FILTER
       BASS_ATTRIB_TEMPO_OPTION_AA_FILTER_LENGTH
       BASS_ATTRIB_TEMPO_OPTION_USE_QUICKALGO
       BASS_ATTRIB_TEMPO_OPTION_SEQUENCE_MS
       BASS_ATTRIB_TEMPO_OPTION_SEEKWINDOW_MS
       BASS_ATTRIB_TEMPO_OPTION_OVERLAP_MS

* Reverse:
  * Support for all source sync types
  * Funtions integrated with BASS attribute system (BASS_ChannelSet/GetAttribute):
     BASS_FX_ReverseSetDirection *removed*
     BASS_FX_ReverseGetDirection *removed*

    * Reverse attribute:
       BASS_ATTRIB_REVERSE_DIR

* BPM:
  * Seconds changed from "float" to "double"
  * Callback "user" parameters changed to pointers: BASS_FX_BPM_CallbackSet / BPMPROC
  * Translation names changed:
     BASS_FX_BPM_X2       -> BASS_FX_BPM_TRAN_X2
     BASS_FX_BPM_2FREQ    -> BASS_FX_BPM_TRAN_2FREQ
     BASS_FX_BPM_FREQ2    -> BASS_FX_BPM_TRAN_FREQ2
     BASS_FX_BPM_2PERCENT -> BASS_FX_BPM_TRAN_2PERCENT
     BASS_FX_BPM_PERCENT2 -> BASS_FX_BPM_TRAN_PERCENT2

* Beat:
  * Multi-channel support
  * Seconds changed from "float" to "double"
  * "cutofffreq" param renamed to "centerfreq"
  * Callback "user" parameters changed to pointers:
     BASS_FX_BPM_BeatCallbackSet / BPMBEATPROC
     BASS_FX_BPM_BeatDecodeGet / BPMBEATPROC
53
BASS_FX / Re: BPM
« Last post by (: JOBnik! :) on June 03, 2008, 10:45:43 PM »
Hi ;D

The beat detection algorithm is checking for peaks.
If you need to optimize the detection, then please take a look at BASS_FX_BPM_BeatSet/GetParameters :)
54
BASS_FX / Re: BPM
« Last post by ricardo on June 02, 2008, 09:21:27 PM »
Hi

Okay, its working now :)

One question about Beat call bakc:

Im receiving it, if i interpreted right is miliseconds value, right?

Okay, but i think i notice that sometimes the "beat" is in fact a syncope (i hope its right in english the word) and not the "strong" tempo.
I mean in a 4x4 times song, i dont receive allways the 4 strong "black" notes, but maybe some are syncopes (an accent in a soft tempo).

What can i expect to receive from this beat callback? Always the 4 black notes? (talking about 4x4 as example) or the "peaks"?
Some explanation of what is supposued to receive are welcome.

Thanks in advance :)
55
BASS_FX / Re: BPM
« Last post by (: JOBnik! :) on May 28, 2008, 11:16:21 AM »
Hi ;D

1st of all, BASS_FX_BPM_DecodeGet, needs a handle using BASS_STREAM_DECODE flag.

DWORD handle = BASS_StreamCreateFile(...,BASS_STREAM_DECODE);

But you really don't want to have 1 handle for playing and decoding bpm, as it will change positions and you won't hear the song as you want.

I suggest you to have 1 handle for playing song and 2nd for bpm, but I guess it's better to have a function that gets the decode BPM:

Code: [Select]
DWORD hBPM;

float getDecodeBPM(const char *fp, double startSec, double endSec)
{
    // free previous hBPM (will free the decode stream as well, because of using BASS_FX_FREESOURCE flag)
    BASS_FX_BPM_Free(hBPM);

    // create decode stream
    hBPM = BASS_StreamCreateFile(FALSE, fp, 0, 0, BASS_STREAM_DECODE);

    // get BPM
    return BASS_FX_BPM_DecodeGet(hBPM, startSec, endSec, 0, BASS_FX_BPM_BKGRND | BASS_FX_BPM_MULT2 | BASS_FX_FREESOURCE, (BPMPROCESSPROC*)bpmProcessProc);
}

Your code will look like that:
Code: [Select]
  BASS_StreamFree(Handle1)
  Handle1=BASS_StreamCreateFile(0, @filename, 0, 0, 0)
  Debug BASS_ErrorGetCode()

  uEndPos = BASS_ChannelGetLength(Handle1,#BASS_POS_BYTE)
  Debug BASS_ErrorGetCode()
  hVolume.f = 1
  BASS_ChannelSetAttribute(Handle1,#BASS_ATTRIB_VOL,hVolume)
  Debug BASS_ErrorGetCode()

  BASS_ChannelPlay(Handle1,0)
  Debug BASS_ErrorGetCode()

  Debug getDecodeBPM(10, 14)
  Debug BASS_ErrorGetCode()

Also it's much better and safer to have a dedicated thread for this instead of using BASS_FX_BPM_BKGRND flag :)
56
BASS_FX / BPM
« Last post by ricardo on May 27, 2008, 04:21:42 PM »
Hello

Im using BASS_FX for a while (i was using 2.3.x versions) and now im changing to new version.

Im trying the BPM wich i never used before.

In my tests, getting the BEAT callback to work its okay.

My problem is with the BPM part.

per example, when i try to get the BPM the function never returns back.

Let me show my PureBasic code:

Code: [Select]
  BASS_StreamFree(Handle1)
  Handle1=BASS_StreamCreateFile(0, @filename, 0, 0, 0)
  Debug BASS_ErrorGetCode()
  uEndPos = BASS_ChannelGetLength(Handle1,#BASS_POS_BYTE)
  Debug BASS_ErrorGetCode()
  hVolume.f = 1
  BASS_ChannelSetAttribute(Handle1,#BASS_ATTRIB_VOL,hVolume)
  Debug BASS_ErrorGetCode()
  BASS_ChannelPlay(Handle1,0)
  Debug BASS_ErrorGetCode()
  Debug BASS_FX_BPM_DecodeGet(Handle1,10,14,0,#BASS_FX_BPM_BKGRND|#BASS_FX_FREESOURCE,@ObtieneBPMCallBack())
  Debug BASS_ErrorGetCode()

The mp3 start playing and everything goes fine. I receive just error codes = 0
But when calling BASS_FX_BPM_DecodeGet i dont receive nothing, not error not nothing, just stay there and never return back.

Im doing something wrong?

Thanks in advance!

Note:

I tried too using the BASS_STREAM_DECODE flag when creating the Stream, with same results.
57
Announcements / Re: BASS_FX 2.3.0.3
« Last post by (: JOBnik! :) on October 31, 2007, 12:59:06 AM »
Hi ;D

Current BASS_FX version is 2.3.0.3.
Released: 08.08.2007
Win32:
MacOSX:

Updates and Changes:

2.3.0.3 - 08/08/2007
* BASS_FX:
  * Fixed: a DEP crashing bug.
  * Added: a Config option, to reset DSPs, BPM/Beat Callbacks when position is set.
           use BASS_FX_CONFIG_DSP_RESET with BASS_Set/GetConfig function.

* DSP:
  * Fixed: bugs in functions:
      BASS_FX_DSP_Set and BASS_FX_DSP_Remove

  * Fixed: bugs in DSP effects:
      BASS_FX_DSPFX_PEAKEQ
      BASS_FX_DSPFX_ECHO
      BASS_FX_DSPFX_ECHO2
      BASS_FX_DSPFX_REVERB
      BASS_FX_DSPFX_VOLUME
      BASS_FX_DSPFX_DAMP

  * Removed: DSPFX.TXT file, please check the docs for DSP effects/DSP Values

* TEMPO:
  * Fixed: a floating-point bug when calling BASS_FX_TempoCreate
  * Fixed: POS SYNCs to be more accurate

* BPM:
  * Fixed: a bug in BASS_FX_BPM_Free and BASS_FX_BPM_BeatFree
           that would sometimes release the source channnel as well
           without using BASS_FX_FREESOURCE flag.

* REVERSE:
  * Fixed: a bug that, if you would set the direction to forward before starting playback,
           the position would keep counting from the end.
  * Updated: When reaching the end of the stream, changing the direction will now
             reset the stream, so that it can be played again.
  * Fixed: POS SYNCs to be more accurate

58
BASS_FX / Re: Changing volume of a WAV file
« Last post by (: JOBnik! :) on October 08, 2007, 12:43:19 PM »
Hi ;D

The volume change works fine on the front speakers of a 5.1 system, but I'm having trouble controlling the rear and center.
This code works fine for the front, but although it enters the rear speaker block, the output doesn't change.
  If (Speakers = 0) then BASS_ChannelSetAttributes(CChan,0,Vol,Pan);
  If (Speakers=16777216) then begin
     //BASS_FX_DSP_GetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
     fxvol.lChannel := Bass_fx_dsp_Chan1;
     fxvol.fVolume := RxSlider1.value/100;
     BASS_FX_DSP_SetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
     fxvol.lChannel := Bass_fx_dsp_Chan2;
     fxvol.fVolume := RxSlider2.value/100;
     BASS_FX_DSP_SetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
    end;
  If (Speakers=33554432) then begin
     //BASS_FX_DSP_GetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
     fxvol.lChannel := Bass_fx_dsp_Chan5;
     fxvol.fVolume := RxSlider1.value/100;
     BASS_FX_DSP_SetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
     fxvol.lChannel := Bass_fx_dsp_Chan6;
     fxvol.fVolume := RxSlider2.value/100;
     BASS_FX_DSP_SetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
    end;

The slider values go from 0 to 100. I tried various other values for fxvol.lChannel just as a shot in the dark, but no luck. What obvious thing am I missing? Thanks!
Dave

I just tested the BASS_FX_DSPFX_VOLUME with 5.1 wma file and it works very well by changing the volume of a chosen channel.

BASS_FX_DSPFX_VOLUME will not change the volume of a chosen speaker, it will change the volume of a chosen channel of a played/decoded stream ;)

i.e: If you're playing a stereo file on a rear speakers, the lChannel values should be BASS_FX_DSP_CHAN1 and BASS_FX_DSP_CHAN2
59
BASS_FX / Re: Changing volume of a WAV file
« Last post by dbaxter on October 05, 2007, 08:46:26 AM »
The volume change works fine on the front speakers of a 5.1 system, but I'm having trouble controlling the rear and center.
This code works fine for the front, but although it enters the rear speaker block, the output doesn't change.
  If (Speakers = 0) then BASS_ChannelSetAttributes(CChan,0,Vol,Pan);
  If (Speakers=16777216) then begin
     //BASS_FX_DSP_GetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
     fxvol.lChannel := Bass_fx_dsp_Chan1;
     fxvol.fVolume := RxSlider1.value/100;
     BASS_FX_DSP_SetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
     fxvol.lChannel := Bass_fx_dsp_Chan2;
     fxvol.fVolume := RxSlider2.value/100;
     BASS_FX_DSP_SetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
    end;
  If (Speakers=33554432) then begin
     //BASS_FX_DSP_GetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
     fxvol.lChannel := Bass_fx_dsp_Chan5;
     fxvol.fVolume := RxSlider1.value/100;
     BASS_FX_DSP_SetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
     fxvol.lChannel := Bass_fx_dsp_Chan6;
     fxvol.fVolume := RxSlider2.value/100;
     BASS_FX_DSP_SetParameters(CChan,BASS_FX_DSPFX_VOLUME,@fxvol);
    end;

The slider values go from 0 to 100. I tried various other values for fxvol.lChannel just as a shot in the dark, but no luck. What obvious thing am I missing? Thanks!
Dave
60
Announcements / Re: BASS_FX 2.3.0.2
« Last post by (: JOBnik! :) on August 10, 2007, 01:17:28 PM »
Hi ;D

Current BASS_FX version is 2.3.0.2.
Released: 09.04.2007
Win32:
MacOSX:

Updates and Changes:

2.3.0.2 - 09/04/2007
* BEAT:
  * Added Beat position detection for decoded streams
     BASS_FX_BPM_BeatDecodeGet

  * Added new functions:
     BASS_FX_BPM_BeatCallbackReset
     BASS_FX_BPM_BeatSetParameters
     BASS_FX_BPM_BeatGetParameters

* REVERSE:
  * Multi-channel support
  * Added new feature to change playing direction from Reverse to Forward and vice-versa
     BASS_FX_ReverseSetDirection
     BASS_FX_ReverseGetDirection

* BPM:
  * Fixed: one more critical bug in BPM functions

* DSP:
  * BASS_FX_DSPFX_PEAKEQ:
     Improved effect and reduced CPU usage
     Fixed: a bug, preventing using fQ if fBandwidth < 0.1f
     Changed: fQ min limit to 0.1f

  * BASS_FX_DSPFX_ECHO3:
     Fixed: a bug in BASS_FX_DSP_GetParameters, that would return a wrong lChannel value

  * Error code: BASS_FX_ERROR_STEREO *removed* (replaced with BASS_ERROR_FORMAT)

* TEMPO:
  * Setting functions name changed:
     BASS_FX_TempoSettingSet -> BASS_FX_TempoSetOption
     BASS_FX_TempoSettingGet -> BASS_FX_TempoGetOption

     BASS_FX_TEMPO_SETTING_xxx -> BASS_FX_TEMPO_OPTION_xxx

Pages: 1 ... 4 5 [6] 7 8 ... 10