Coder Social home page Coder Social logo

Transitions are broken about tidal HOT 1 OPEN

nkleemann avatar nkleemann commented on May 29, 2024
Transitions are broken

from tidal.

Comments (1)

Zalastax avatar Zalastax commented on May 29, 2024

I have found the source of the bug:

The definition of d2 is

d2 = p 2 . (|< orbit 1)

p is just streamReplace

p = streamReplace

And streamReplace replaces a pattern based on it's ID

streamReplace :: Stream -> ID -> ControlPattern -> IO ()
streamReplace s k !pat
= modifyMVar_ (sActionsMV s) (\actions -> return $ (T.StreamReplace k pat) : actions)

The implementation of xfade acts like a streamReplace but during a transition it fades between the patterns. Notice line 76 which is the end state where your new pattern fully replaces the original pattern

xfadeIn :: Time -> Time -> [ControlSignal] -> ControlSignal
xfadeIn _ _ [] = silence
xfadeIn _ _ (pat:[]) = pat
xfadeIn t now (pat:pat':_) = overlay (pat |* gain (now `late` (_slow t envEqR))) (pat' |* gain (now `late` (_slow t (envEq))))

But since your new pattern has not been modified by . (|< orbit 1), the orbit is lost.

I guess the best solution would be if instead of xfade 2 $ pattern you could write xfade $ d2 $ pattern or similar.

from tidal.

Related Issues (20)

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.