Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > DJing / Production / Promotion > DJ Booth > DJ's are good at math right?
Pages (2): « 1 [2]   Last Thread   Next Thread
Share
Author
Thread    Post A Reply
DJ Bazz
Supreme tranceaddict



Registered: Nov 2001
Location: Groningen, NL

--> Chill out room post

you got the formule already, you use PHP, so come on with the formule

Old Post Apr-17-2002 08:36  Netherlands
Click Here to See the Profile for DJ Bazz Click here to Send DJ Bazz a Private Message Visit DJ Bazz's homepage! Add DJ Bazz to your buddy list Report this Post Reply w/Quote Edit/Delete Message
JohnSmith
Agent Smith



Registered: Apr 2002
Location: Kamloops

thanks guys!

sheesh.. asians are good at math? who knew? i'm white, i love math.. it's the language of the universe. and DJing, has a lot of math to it, the 4 beat structures, the different speeds..

anyway.. thanks for your answers and time. i actually found a simpler solution though.. now, i just need to optimize it.

this is not PHP, i just used that tag so it would come out formatted properly. now, i will use the code one. what i am doing is a javascript mouseover. it has to swap images.

I did it one way, but it was inefficient, and tough to update. i wanted a more elegant solution, and i saw the relations between the numbers.

this is what i started with:

code:






and this is how i [i]optimized it:

code:
 




some people would say i am crazy, but i think i can make it even tighter. these 6 lines here:

code:
if ((aryImages.length / 2) == (Math.round(aryImages.length / 2))) { document['imgDisplay'].src = aryImages[imgNum + aryImages.length / 2]; } else { document['imgDisplay'].src = aryImages[imgNum + (aryImages.length+1) / 2]; }


can be shrunk down to 1, they are so similar. all i am doing is adding one to the length, if the array has an odd number of elements.. there is a way of doing that inline, in know there is, it's a simple thing.

i just can't FIND it.. grr.. I am INSANE!

Last edited by JohnSmith on Apr-17-2002 at 15:55

Old Post Apr-17-2002 15:35  Canada
Click Here to See the Profile for JohnSmith Click here to Send JohnSmith a Private Message Add JohnSmith to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Great Outdoors
Pole Folder Addict



Registered: Jan 2002
Location: Singapore

SHEESH.


___________________
Melodic Progressive.

Better than sex.

Old Post Apr-18-2002 09:39  Singapore
Click Here to See the Profile for Great Outdoors Click here to Send Great Outdoors a Private Message Add Great Outdoors to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Xquisite
Senior tranceaddict



Registered: Mar 2002
Location: Santa Barbara, CA, USA

oh lol.. doing it by Java/C++ would be the easiest. I thought you wanted a math equation. If you did it by java it can be done with for loops and such.


___________________
DJ Xquisite
Hip Hop & Trance DJ for the new millenium

Old Post Apr-18-2002 10:11  United States
Click Here to See the Profile for Xquisite Click here to Send Xquisite a Private Message Visit Xquisite's homepage! Add Xquisite to your buddy list Report this Post Reply w/Quote Edit/Delete Message
SpykeChyld
Poetic Junglist



Registered: Apr 2002
Location: Gainesville, FL

Ummm....This is the guy that has failed 4 math courses in high school/college, lmao. No, I don't have a fucking clue what any of that means. I like music, lmao.

I was in straight college english courses, but never liked math. Good luck though. :shrugs:


___________________
"Oh NO! It seems the world has been infected by a disease called shitty music.
We've had innocculations for some time now but the populace keeps refusing it.
You don't want it? Fine. Give me all the vaccine and a needle and I'll fucking overdose.
It'll be the best day of my life."

Old Post Apr-18-2002 15:33  United States
Click Here to See the Profile for SpykeChyld Click here to Send SpykeChyld a Private Message Visit SpykeChyld's homepage! Add SpykeChyld to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > DJing / Production / Promotion > DJ Booth > DJ's are good at math right?
Post New Thread    Post A Reply

Pages (2): « 1 [2]  
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackcouple ids needed [2004] [0]

Click here to listen to the sample!Pause playbackSystem D. - "Trancefusion" [2003]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 21:40.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!