Hello everyone, I just started using FoxDot and I’m having problems understanding how it works when you use a simple player.
So, my question is: how do i get a player to always start playing my sequence of notes/durations from its beginning?
For example, I have 3 simple fragments -each one with a different total duration- and whenever I call p1 it appears to start each fragment “de-synchronized”.
Hmm, there isn’t an elegant solution that currently exists but there is plan for it to be part of FoxDot at some point soon (should be quite simple). All FoxDot players “start” from the time 0 (when the program opens) but you want to have them start when the line of code is evaluated. This behaviour does exist for var objects but not for Players yet. As a very clumsy workaround, you could use var objects like so:
So values for pitch and duration are measured in terms of time relative to “now” (when the code is evaluated) but have to be stored in TimeVars. This will be changed to the following at some point soon:
Thanks, I will definitely start working with this temporal solution you indicate - looking forward to trying this second more intuitive way you point out. It looks neat!