Author Topic: BASS_FX 2.4.12.1  (Read 670684 times)

Ian @ un4seen

  • Administrator
  • Posts: 21539
Re: BASS_FX 2.4.12.1
« Reply #725 on: 25 Jun '18 - 13:38 »
Yes, on Linux, BASS_FX (and the other add-ons) isn't linked with the libbass.so library and instead depend on it being loaded by the application first.

Vperus

  • Posts: 2
Re: BASS_FX 2.4.12.1
« Reply #726 on: 25 Jun '18 - 17:27 »
Any reasons to do it? For example if you want to use https://github.com/ManagedBass/ManagedBass with native libraries + NETCore you need to write platform dependent code to load it on linux, not just include-use.

Regards,
Vperus.

Ian @ un4seen

  • Administrator
  • Posts: 21539
Re: BASS_FX 2.4.12.1
« Reply #727 on: 26 Jun '18 - 13:53 »
The reason for it is that the application's directory isn't in Linux's library search path, ie. Linux won't find the libraries if they're placed alongside your executable (like Windows will). So the add-ons would fail to load if they were linked with the libbass.so library and it isn't installed in the library search path.

When using .Net, calling a BASS function before any add-on functions are called should ensure that the BASS library is loaded before the add-ons are. For example, you could call BASS_GetVersion first thing in your initialization code.

Sander van den Brakel

  • Guest
Re: BASS_FX 2.4.12.1
« Reply #728 on: 22 Oct '18 - 17:18 »
We use ManagedBass in C# to build Apps in Visual Studio.

We create streams like this:

Code: [Select]
var loopFlag = (loopState) ? BassFlags.Loop : BassFlags.Default;
_stream = Bass.CreateStream(AppEnvironment.AudioPath + filePath, 0, 0, loopFlag);

Works perfectly. However we now want to apply a pitch-shift fx on this stream (while it's already playing).
Is this possible with BassFX?

Thanks in advance....

Sander

Ian @ un4seen

  • Administrator
  • Posts: 21539
Re: BASS_FX 2.4.12.1
« Reply #729 on: 23 Oct '18 - 17:13 »
Yes, you can use the BASS_FX add-on's tempo processing for that. You will need to add the BASS_STREAM_DECODE flag to the BASS_StreamCreateFile call, and then call BASS_FX_TempoCreate on that stream to get a new stream with tempo processing enabled. You may also want to use the BASS_FX_FREESOURCE flag in the BASS_FX_TempoCreate call, to have the 1st stream automatically freed when the 2nd one is.

Note ManagedBass presents/names the functions and flags a bit differently but the process is the same.

vandenbrakel

  • Posts: 16
Re: BASS_FX 2.4.12.1
« Reply #730 on: 3 Jan '19 - 10:58 »
Okay, thanks. That now works in the standard way. Create|Decode->Tempo|Decode->Pitch->Addtomixer->Output.
But when we put pitch on a stream that is already playing through a mixer, it doesnt't get pitched.

C# example code that works pitched
Code: [Select]
var beatles = Bass.CreateStream(path + "beatles.mp3", 0, 0, BassFlags.Decode);
beatles = BassFx.TempoCreate(beatles, BassFlags.Decode);
Bass.ChannelSetAttribute(beatles, ChannelAttribute.Pitch, 10);
var mixer = BassMix.CreateMixerStream(44100, 2, BassFlags.Default); // create stereo mixer with same sample rate
var state = BassMix.MixerAddChannel(mixer, beatles, BassFlags.MixerDownMix);
Bass.ChannelPlay(mixer);

C# example that doesn't work. Probably we need to chnage the origional stream?
Code: [Select]
var beatles = Bass.CreateStream(path + "beatles.mp3", 0, 0, BassFlags.Decode);
var mixer = BassMix.CreateMixerStream(44100, 2, BassFlags.Default); // create stereo mixer with same sample rate
var state = BassMix.MixerAddChannel(mixer, beatles, BassFlags.MixerDownMix);
Bass.ChannelPlay(mixer);

//change pitch while we play through mixer
beatles = BassFx.TempoCreate(beatles, BassFlags.Decode);
Bass.ChannelSetAttribute(beatles, ChannelAttribute.Pitch, 10);


Hope this makes any sense. Thanks

Ian @ un4seen

  • Administrator
  • Posts: 21539
Re: BASS_FX 2.4.12.1
« Reply #731 on: 3 Jan '19 - 14:00 »
In the 2nd case, the problem is that it is the original stream (not the tempo stream) that is added to the mixer. If you want to delay the pitch change, you should still make the BASS_FX_TempoCreate call before adding to the mixer and just delay the BASS_ChannelSetAttribute call.

vandenbrakel

  • Posts: 16
Re: BASS_FX 2.4.12.1
« Reply #732 on: 3 Jan '19 - 14:19 »
Thanks!

That works. And with the
Code: [Select]
BassFlags.FxFreeSource flag set it doesn't seem to affect CPU that much.

(: JOBnik! :)

  • Posts: 1077
Re: BASS_FX 2.4.12.2 beta
« Reply #733 on: 24 Jan '19 - 14:16 »
Hi ;D

Please test the latest updates:

* Tempo:
  * Updated to the latest SoundTouch version 2.1.3

* Reverse:
  * Fixed BASS_ERROR_UNKNOWN error when restarting playback of a reverse stream, as described in this thread:
    www.un4seen.com/forum/?topic=18176

* BPM:
  * Updated to the latest SoundTouch version 2.1.3
  * Rewrote Beats-per-Minute analysis algorithm for more reliable BPM detection.

* DSP:
  * Fixed fFeedback parameter in BASS_FX_BFX_CHORUS effect.
  * Enabled fS parameter to be greater than 1 in BASS_FX_BFX_BQF effect.


SoundTouch's Beat Position detection will be added later.

Windows x86/x64: http://www.jobnik.org/BASS_FX/beta/bass_fx24122-beta.zip
Linux x86/x64: http://www.jobnik.org/BASS_FX/beta/bass_fx24122-linux-beta.zip
Android: http://www.jobnik.org/BASS_FX/beta/bass_fx24122-android-beta.zip
« Last Edit: 26 Jan '19 - 12:28 by (: JOBnik! :) »

rv

  • Posts: 255
Re: BASS_FX 2.4.12.1
« Reply #734 on: 27 Jan '19 - 14:32 »
Is it possible to get a list of all the drums hits position like in this picture?

https://dt7v1i9vyp3mf.cloudfront.net/styles/news_large/s3/imagelibrary/b/beatrecyclesensitivity-1PFOXXXmwvggiCjALH0lCX8PtGUydeBC.jpg

Not only One beat per measure

otherside

  • Posts: 43
Re: BASS_FX 2.4.12.1
« Reply #735 on: 28 Jan '19 - 10:55 »
Hello. I often get a lot of crashes (I am using bassfx of current release version)

Code: [Select]
SIGABRT 0x00000000000069bb
#0. Crashed: Thread
0  libc.so                        0xf6ea1758 (Missing)
1  libc.so                        0xf6e7b80d (Missing)
2  libc.so                        0xf6e789bf (Missing)
3  libc.so                        0xf6e76572 (Missing)
4  libstdc++.so                   0xf5a774df (Missing)
5  libstdc++.so                   0xf5a78fda (Missing)
6  libstdc++.so                   0xf5a76cd9 (Missing)
7  libstdc++.so                   0xf5a78fda (Missing)
8  libstdc++.so                   0xf5a76ccf (Missing)
9  libstdc++.so                   0xf5a76ccf (Missing)
10 libbass_fx.so                  0xee6185d3 (Missing)
11 (Missing)                      0x37fffffe (Missing)