What transition is "transition" and where is it defined?
  • I'm trying to figure out where, the transition "transition" is defined. 

    The name "transition" is highly unfortunate because it's damn near impossible to grep through the codebase to find where it might be defined.
        switch(id="master_show_schedule_noise_switch",
    track_sensitive=false,
    transitions=[transition, transition],
    [({!master_dj_enabled}, master_meta), ({true}, s)]
    )



    Any ideas? I see there are two transitions, both refer to "transition".... but from there it becomes lost in rather a large haystack.
  • 4 Comments sorted by
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    I don't know much about it, but savonets cookbook could tell you a little more.
    http://savonet.sourceforge.net/doc-svn/cookbook.html
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • In a Switch
    • Transition functions, padded with fun (x,y) -> y functions. or more formerly
    • transitions ([(source('a),source('a))->source('a)]

    Now What I think you are looking for a transition  or switch from the master,which you have to define for yourself.

    The code you are looking just say if the Master is Enable use it,if not Fallback to Source(s)

    So it might be similar to use a crossfade  and a jingle as the transistion, but the Author of the Script wants you to switch between (master enable and s)

    look with the utils for the transistion function. or define your own

    You could remove the transition lines to see the effects

    Good Luck Voisses



    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • @muhoo - Sorry for the late reply - if you're still interested, the transition function is defined in ls_lib.liq ~line 53 iirc.
  • Do not know if I am correct but there are 3 different transitions at play here
    1. Master transition           which is just a regular transition to transistion in the utils
    2. Dj Transition                 which is switching from dj to s       as you referred
    3. Stream queue transition  which is transition_default in the ls-lib script

    In fact if you look at the github post https://github.com/kenrestivo/Airtime/compare/live-metadata line 255,

    I really approached it from the " layman" terms to show that you could actual define your own function as I did for myself

    Good luck

    VOISSES


    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.