[Plugin] BASS Spectrum Analyzer [v0.14]
#1

BASS Spectrum Analyzer


This plugin utilizes the BASS audio library to return a FFT representation of an audio stream. Use at your own risk, it is not threaded and will cause delays to the main thread when starting audio streams.

Natives/Documentation:
Most natives return 1 on success, 0 on failure, use BASS_ErrorGetCode() to get failure reason
Examples:
Examples provided are meant to be proof-of-concepts, they would not be realistic to use in a production environment due to the high amount of bandwidth required. Try on a local server.

FFT Laser - https://github.com/h02/SA-MP-BASS-Sp...pect-laser.pwn
A video using the same concept (but a different library at the time):
http://*********/yMc4dm9QeME

FFT Bars: https://github.com/h02/SA-MP-BASS-Sp.../spect-bar.pwn
http://i.imgur.com/UNiay.jpg

Levels: https://github.com/h02/SA-MP-BASS-Sp...pect-level.pwn

Particles/Fireworks: https://github.com/h02/SA-MP-BASS-Sp...-particles.pwn
(The most suitable example of what could be used on a live server.)

You have all the data made available from the library function so you could probably make something much cooler than what I did, and something that would actually work in a production environment.

Download: BASS Library Source: http://www.un4seen.com/bass.html
Reply
#2

Not really well explained...
Quote:

//create the laser array at pershing square (lspd)

...
u mean:

?

Any screens?
and what's it usefull for, if you consider it usefull... ;o?
Reply
#3

Quote:
Originally Posted by Gamer_Z
View Post
Not really well explained...

...
u mean:

?

Any screens?
and what's it usefull for, if you consider it usefull... ;o?
Here's a video I made using the same concept (but a different library at the time):
[ame]http://www.youtube.com/watch?v=yMc4dm9QeME[/ame]

You have all the data made available from the library function you could probably make something much cooler than this.
Reply
#4

Quote:
Originally Posted by h02
View Post
Here's a video I made using the same concept (but a different library at the time):
http://www.youtube.com/watch?v=yMc4dm9QeME

You have all the data made available from the library function you could probably make something much cooler than this.
why not point the lasers to the ground and adjust the Height(Z coords)? Looks awfull . Like you're trying to scare a monster away.

However the idea of this plugin is funny (but I think there's non need to analyze sound, just do some random Z adjustments and voila we got a pseudo bas analizer)
Reply
#5

Quote:
Originally Posted by Gamer_Z
View Post
why not point the lasers to the ground and adjust the Height(Z coords)? Looks awfull . Like you're trying to scare a monster away.

However the idea of this plugin is funny (but I think there's non need to analyze sound, just do some random Z adjustments and voila we got a pseudo bas analizer)
The example I made isn't very practical due to the high amount of updates (40*28 updates per second at most.) However it would be possible to make a good one using a less amount of objects and running at only 1-2hz if you were clever.
Reply
#6

Holy cow! Amazing work
Reply
#7

Great work
Reply
#8

Added:
Examples updated.
Reply
#9

Very cool.
Reply
#10

This is a wonderful release!
Reply
#11

Perfect release, I have always been waiting for something like this, excelent job.
Reply
#12

Great, though what could this even be used for?
Reply
#13

What's the use of this plugin?
Reply
#14

This is awesome. Going to be fun to play around with.
Reply
#15

Quote:
Originally Posted by T0pAz
View Post
What's the use of this plugin?
Thats what im trying to ask as well bro! :S lol
Reply
#16

Great work !
..
A bass spectrum analyzer measures the magnitude of an input signal versus frequency within the full frequency range of the bass.
Reply
#17

COOL!!
Reply
#18

Not bad. This plugin uses only lasers?
Reply
#19

Quote:
Originally Posted by TheArcher
View Post
Not bad. This plugin uses only lasers?
Read the whole topic ;>
It's not the plugin which creates objects...
Reply
#20

God, we could make bouncing textdraw bars with that

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)