I'm working on a audio visualization (some info: https://www.neowin.net/forum/topic/1185035-c-audio-spectrumfft-win8-store-apps/ ) and I have a set of ellipse that have to be placed via code (need for random) and the size of the ellipse is based on the data coming back from the audio player (again, see the above link)
I have tried several approaches but all of them have the ellipse "shaking" as the center point gets adjusted by the width and height, which is a double value ( divided by two to get the center) Because the double value can be a deep decimal point 0.000587897 (etc) the center keeps changing slightly.
This does not, and should not animate as the values returned by the audio player come back every 60th of a second. I looked at ScaleTransform, but either I am screwing it up (likely) or... I just don't know.
Question
James Rose
I'm working on a audio visualization (some info: https://www.neowin.net/forum/topic/1185035-c-audio-spectrumfft-win8-store-apps/ ) and I have a set of ellipse that have to be placed via code (need for random) and the size of the ellipse is based on the data coming back from the audio player (again, see the above link)
I have tried several approaches but all of them have the ellipse "shaking" as the center point gets adjusted by the width and height, which is a double value ( divided by two to get the center) Because the double value can be a deep decimal point 0.000587897 (etc) the center keeps changing slightly.
This does not, and should not animate as the values returned by the audio player come back every 60th of a second. I looked at ScaleTransform, but either I am screwing it up (likely) or... I just don't know.
Any clues?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts