Add onLyricsUpdate() for user-defined actions

Share your ideas of the new features you would like to see

Moderators: admin, Piotr, adam

Post Reply
AlexK

Add onLyricsUpdate() for user-defined actions

Post by AlexK »

Hi,

I'd love to display the lyrics (in 2-color text form) on an external LED display module, plus trigger a smoke machine and stage lights off the lyrics. These are all controllable via a HTTP REST interface, for example issuing a call to http://smoke.machine.ip/smoke?duration=2sec

Can you add a onLyricsUpdate(lyrics, position, rate, time) callback to the song where lyrics are the current lyrics displayed (unicode text), position is a character position for the text being displayed where color changes (float OK for intra-character color change), rate is the current rate of characters per second being sung, and time is the current queue time.

The user would supply the behavior for the callback in a text file per song or general per show, where they can match lyrics text pattern or have threshold triggers for position, rate, time, and the action would be to issue a HTTP call at a minimum (or also MIDI show control/DMX command/Insteon/Z-wave/X.10 command - I don't use them but other folks might)

This would basically enable more complex and entertaining shows than just lyrics and images/videos displayed on a TV screen/projector.
AlexK

onLyricsUpdate clarification

Post by AlexK »

The default behavior would be for the onLyricsUpdate() to be triggered every time a lyrics position being sung advances one full character.

I thing for best results performance wise, it would be great to specify the following global settings:

1) how many milliseconds in advance of the actual singing is the onLyricsUpdate() being called?

2) onLyricsUpdate() calling rate - default is a new call on each 1 full new lyrics letter being sung (a position advance of 1.0 characters). Can be changed among 0.125, 0.25, 0.5. 1, 2, 4, 8 characters, for finer or more granular / performance saving timing.

3) If CPU utilization approaches 100%, a setting to allow throttling down the calling rate to the configured alternate min rate like 1 or 2 characters.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests