#551·VPet

【功能建议】希望开放动画帧间隔参数,以实现 BPM 音乐同步

作者: Aptmh创建于 2026年7月10日更新于 2026年8月12日
标签enhancement

I am a deep user of VPet, and recently I have been trying to make the dance animation of the table pet follow the BPM (beats per minute) of the music played on the computer, so that it can "dance to fast music and slow music". Here is the concept verification I have completed: I wrote a script using Python to capture the system audio through Windows WASAPI, calculate the BPM in real time, and write the result to a JSON file. The BPM can be output stably regardless of the music played. The current bottleneck is that it is necessary to modify the value of PNGAnimation.Animation.Time (the number of milliseconds per frame) to control the speed of the table pet's dance animation, but there is no public interface in the MOD runtime to modify this value. I would like to get the following support: Can you provide a MOD API or configuration file entry that allows us to dynamically adjust the playback speed of the animation? For example, open a SetAnimationSpeed(string graphName, float speed) method. Or add a "global animation speed multiplier" parameter in the configuration file to facilitate external script control. Why is it worth considering: It would be very interesting to have the table pet dance along with the music, which would make the MOD ecosystem more creative. I have completed the "concept verification" of BPM detection, and only one interface is needed to make the whole project run smoothly. I am willing to assist with testing and provide feedback. If this proposal is considered, thank you very much! Any technical suggestions are also welcome.

内容来源: LorisYounger/VPet