change streamGetnow to factor in the processAhead and also destroy the sessionstate#1025
Conversation
|
What is the expected behavior here? To get the cycle that would right now be hitting the speakers or roughly get the cycle that we would be processing at this moment? Reading the old code it seems like the latter is what was used, which would correspond to the change you are proposing. But I want us to reflect on what is most useful. Do we have some clear use cases for this function? If it is most used for the The old code: Tidal/src/Sound/Tidal/Stream.hs Lines 714 to 717 in a058922 |
The intended use is when someone wants to use the time of the stream to query a pattern for something (for example to highlight the pattern in the editor). When using this i encountered that with fast speeds there was a misalignment with the event that was playing and the one that was being highlighted. Adding the processAhead fixed the issue for me. so maybe we should rename this function to something else and keep the old one as streamGetnow? |
|
Great idea! What about |
rename to streamGetAhead and bring streamGetnow back in original version
|
i named it |
Zalastax
left a comment
There was a problem hiding this comment.
Good catch, that's better and probably what I actually meant 😸 Great job!
|
Is this ready to merge? |
|
i think so! |
|
Thanks a lot! |
No description provided.