fredvs / strumpract

Various tools for musicians.
https://github.com/fredvs/strumpract
Other
32 stars 6 forks source link

Image dancer #5

Closed lainz closed 4 years ago

lainz commented 4 years ago

Check this: https://forum.lazarus.freepascal.org/index.php/topic,51731.0.html

Maybe you can use that code to do another image dancer.

fredvs commented 4 years ago

Excellent!

Do you think it is possible to use it for MSEgui? Is it possible to have the same result without BGRAVirtualScreen (because it is not enabled yet for MSEgui)?

What code should I use, yours or from winni?

Many thanks.

Fre;D

lainz commented 4 years ago

Yes is possible, there is no difference.

You can use the one you want. I think winni is better since it has random drawings.

fredvs commented 4 years ago

Yes is possible, there is no difference.

Ha ok (so I dont understand the goal of VirtualScreen)

I think winni is better since it has random drawings.

Hum, my dancer has to follow the music and the tempo. I am not sure random makes good dancers.

;-)

OK, I will try both code and replace random with beat.

Write you later.

Fre;D

lainz commented 4 years ago

Well VirtualScreen can discard just a portion of the area and keep the other portion if needed. As well now works with retina display on macOS.

Is just handy to have the event handler with a BGRABitmap image already instantiated, as well it is resized automatically.

I think I don't forget nothing, but is basically that. In real code you save some lines of code like the resampling (call to setsize when window size changes).

fredvs commented 4 years ago

Hello.

Ok, there is a atom dancer in last commit.

dancer_atom

Video with audio of Atom Dancer in action: image_dancer_atom.mp4.zip

fredvs commented 4 years ago

Here video of last commit with zooming:

image_dancer_atom2.mp4.zip

lainz commented 4 years ago

Wow looks amazing =)

fredvs commented 4 years ago

Thanks (to BGRABitmap) !

fredvs commented 4 years ago

Hello.

There are Spiral Dancers of Winni.

Capture d’écran_2020-10-16_14-05-20

I have to say it is very impressing while dancing.

Here video in action: image_dancer_spiral.mp4.zip