managedbass / home Goto Github PK
View Code? Open in Web Editor NEWManagedBass Home Repository
Home Page: https://managedbass.github.io
License: Other
ManagedBass Home Repository
Home Page: https://managedbass.github.io
License: Other
So I tried this:
public void TurnOnEQ()
{
ManagedBass.Fx.PeakEQParameters eq = new PeakEQParameters();
Bass.ChannelSetFX(handle, EffectType.PeakEQ, 0);
eq.fGain = 0.0f; // the initial gain (here 0dB)
// now for each band do the following
eq.lBand = 0; // 1st band
eq.fCenter = 60.0f; // 60Hz
Bass.FXSetParameters(handle, eq);
eq.lBand = 1; // 2nd band
eq.fCenter = 170.0f; // 170Hz
Bass.FXSetParameters(handle, eq);
}
public void UpdateEQ(int band, float gain)
{
ManagedBass.Fx.PeakEQParameters eq = new PeakEQParameters();
// first get the EQ values of the selected band!
eq.lBand = band;
var result = Bass.FXGetParameters(handle, eq);
// and now apply the new gain
eq.fGain = gain;
var result2 = Bass.FXSetParameters(handle, eq);
}
This example I ported from a code posted on Un4seen forum by radio42. But the values of both result
and result2
are always false
and aside from that, nothing happens to the audio. I tried using PeakEQ
from ManagedBass.Fx
directly but I got this error:
Exception thrown: 'System.TypeLoadException'
Just wanted to ask, how to correctly implement an Equalizer?
Hey there! I had a question on using ManagedBass to get spectrum data from a recording input.
I believe I'm already successfully able to enumerate and set the recording device, now I just need to set up some kind of loop where I read the recording input, and then save the amplitude values for low/med/high frequencies to an array.
Also, there's potential that the recording input would be a stereo source.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.