Giter Site home page Giter Site logo

Comments (4)

dathinaios avatar dathinaios commented on September 5, 2024

Ah, yes. Everything is scheduled under the same clock and that clock is available with the .clock method. So:

a = CuePlayer.new;
//.. run your cues and timelines
a.clock.clear; //should stop the timeline

Give it a try and let me know if there is still a problem.

But you are right that there should be a stop method so I will add it on the next update. I will keep this open until then.

Thanks for reporting :)

from cueplayer.

tatecarson avatar tatecarson commented on September 5, 2024

That worked! Thanks for responding so quick. I'm premiering a piece tonight that uses it so this was very helpful.

Just curious, when you call clock on cueplayer are you really calling it on Timeline? How are they connected? Trying to learn more about classes, thanks.

from cueplayer.

dathinaios avatar dathinaios commented on September 5, 2024

No problem :)

In order for the Timeline class to be independant there is always an option to pass in a clock on instantiation (.new). If you don't provide it yourself it creates it internally. The CuePlayer class brings together the cues and the tmelines. It defines its own clock and passes it to the timeline among other things. So when you call .clock.clear you are stopping the CuePlayer clock that is used by the Timelines managed by the CuePlayer.

Have fun and good luck with the concert!

from cueplayer.

dathinaios avatar dathinaios commented on September 5, 2024

stop method added in upcoming update (0.2).

from cueplayer.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.