New Feature - Play Music From Timestamp#3474
Conversation
|
I like the idea but not the implementation 😅 . This pitch adjustments looks very fragile and does solve the problem at the wrong layer: The audio decoder itself should do the seeking/telling though this directly increases the complexity by a lot which also explains why nobody added this before: When you look in But something similar could be added like In Also add suitable functions |
|
My first thought was to base this on the tick metrics the engine uses as a variable option, since the engine has it coded already and can be useful if someone tries something different, like dynamic music changes with musical changes. That's why I chose that part of the code. It's a shame midi gets the tick value in such broken way. |
Very dirty implementation of play music from timestamp.
TPC Syntax:
@msg.choice { .case "MEMORIZE + TIMESTAMP" { @comment "memorize bgm" @cmd 11530, "", [0, 10] // [tick_variabletype, tick_variablevalue] } .case "PLAY MEMORIZED W TIMESTAMP" { @bgm.stop @comment "play memorized bgm" @cmd 11540, "", [0, 10] // [tick_variabletype, tick_variablevalue] } .cancel bl { } }I runs correctly with wav files.
MIDI seems to have a glitch: Every time The music resets, the latest tick from the music is understood as 0:
(Oh boy, I can see this becoming another feature to never be aproved)