Qbasicnews.com
November 19, 2019, 09:46:10 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: cool idea  (Read 7022 times)
Anonymous
Guest
« on: November 28, 2003, 08:12:10 AM »

hey, i have no idea if this is possible Tongue (great way to start a challenge) but...

Last night I was trippin balls with one of my friends Smiley anyways, when we were drivin hes all like, "Dude, check it out I rain-X'd my windshield" (it was raining lol) so anyways i all looked for a second and i was like whoa that looks cool cause its all like beaded up n trippy n everything! ANYWAYS sorry. (this is relevant i swear) so i get to lookin at the water, and its like beads... and they get bigger and bigger until they finally cant hold on any longer, and then they blew off the top of the windshield, and i was thinking, 'you know i wonder how hard it would be to code that in qb' (common thoughts) like, in other words every variable simulated such as windspeed, individual drop sizes, stablility... etc.

So that in itself would be a challenge i think. but theres more Wink

Then I get to thinkin. 'Hey man that'd be freakin nuts if you set up somethin where like you had music playin to this (like 'visualization' style) and every time the bass hit, all the drops would lose some of the 'stability' variable and would be more likely to blow off. (i havent tested it, but i imagine that would happen in real life as well.) Am I the only one that thinks something like that would look mega freakin awesome?

And even COOLER would be if you could rotate it(the piece of 'glass'), so you could actually see the drops fly off if mega bass hit it!

Anybody think this can be done in QB??
Logged
TheBigBasicQ
*/-\*
*****
Posts: 4550



WWW
« Reply #1 on: November 28, 2003, 01:52:23 PM »

I think this is a great idea. Its quite advanced. But I think it is very much possible in QB =P
Logged
oracle
*/-\*
*****
Posts: 3652



WWW
« Reply #2 on: November 28, 2003, 04:55:07 PM »

Where's relsoft? Wink
Logged

relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #3 on: November 30, 2003, 04:58:57 AM »

Oracle: Daughter sick. ;*(
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
oracle
*/-\*
*****
Posts: 3652



WWW
« Reply #4 on: November 30, 2003, 06:04:55 AM »

Awwww dude....

Hope Anya gets better soon... you're a nurse, I know you can handle it Smiley
Logged

Anonymous
Guest
« Reply #5 on: November 30, 2003, 11:51:54 AM »

rel: hope ur daughter feels better Smiley

does anyone have any idea as to where i could find a lib or something to read freq. levels on music input? i have no idea how to get readings on bass as opposed to treb.... help?  :Huh:
Logged
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #6 on: November 30, 2003, 11:59:47 AM »

You have to use the FFT and then read the lower part of the spectrum using a low pass filter. This won't be available in any library as far as I know, but you will be able to find the algos all over the internet. Good luck!
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Anonymous
Guest
« Reply #7 on: November 30, 2003, 12:34:23 PM »

Quote from: "na_th_an"
You have to use the FFT...


what's that? :Huh:

Quote from: "na_th_an"
Good luck!


Thanx, Ima need it Tongue
Logged
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #8 on: November 30, 2003, 03:06:02 PM »

FFT = Fast Fourier Transform. It changes from time domain (a sample) to frequency domain. You need to be in the frequency domain to detect low frequencies. There are some maths involved, I fear I can't explain them here in a blast Tongue check google if you are really interested. You'll need to know some calculus.
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Anonymous
Guest
« Reply #9 on: December 01, 2003, 02:39:26 AM »

Quote from: "na_th_an"
You'll need to know some calculus.


 :rotfl:  :rotfl:  :rotfl:  :rotfl:  :rotfl:  :rotfl:

ohhhh maaaaan, but the thing is i only got a 120 mhz, anyways, so i doubt it would even be able to work at alll on my cpu. sigh i was hoping some1 would just be like 'oh that can be done like this' *cough*rel*cough* lol well i dunno i wont forget it, but ya... thanxs for ur help, nathan
Logged
TheBigBasicQ
*/-\*
*****
Posts: 4550



WWW
« Reply #10 on: December 01, 2003, 09:19:58 AM »

Well if you are really interested in doing this then you will have to take some efforts and calculus aint so bad =P
Logged
phobeous
New Member

Posts: 18



WWW
« Reply #11 on: December 07, 2003, 01:43:59 PM »

Well, first of all: HELLO!!!  Look, since my begining in computer programming i've loved demos. The idea you exposed is just like a demo. The graphical part could be awesome to see. It will require lots of calculations to simulate the physics, but i think it could be done in QB.

Where you will have to effort is on the sound part. Sound can be played on second plane, using a library, without consuming much processor time (trough DMA). But, to detect beats, bass, treble, etc, you, as na_th_an said, will need spectral information about the music you are playing. Doing so is not difficult but expensive. A windowed FFT may be applied to the sound played, in real time. There is no need to apply any low nor high pass filter since you are not filtering but detecting frequencies. I think this part can't be done with qb due to speed factor, you will need assembly for it.

Anyway, the graphic part without the bass peak detection is cool  enough. I'm sure my experienced and good-friend na_th_an would be able to code it  in QB Smiley. Maybe, when I have some free time could try too.

Regards for all the crew!!
Logged

ed: nothing better when you are tired.
Anonymous
Guest
« Reply #12 on: November 20, 2005, 08:05:50 AM »

this could be made in FB... one day ;p
Logged
Dr_Davenstein
Na_th_an
*****
Posts: 2052


« Reply #13 on: November 20, 2005, 09:58:34 AM »

Hmmm... must have seen your old friend again, aye?  :lol:
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!