Results 1 to 2 of 2

Thread: Smooth Animation ???

  1. #1

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Exclamation

    I made a Winamp like spectrum analyzer for my MP3 player but it's animation is not very smooth. The LED abr gets a new value every time the timer updates(10mS). But when the counter counts the next count the bar level drops or rises very rapidly and not linearly LED by LED.

    I have used 15 Image Boxes for the spectrum.

    Does anyone know any technique to make the bar level increase or decrease smoothly like WINAMP?
    I tried setting the timer interval but it did'nt help in smoothning.



    Kinjal

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I don't think it's a good idea using imagelistboxes, draw directly on the form. For the smooth thing just make a rapid loop with doevents that drops the lines, u need to introduce secondary values for this. Let me have a look at your code
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width