Easy way to add sweeps
  • First off... thanks for Airtime!

    We come from using a playlist builder that allowed for inserting sweeps (from a pool) every other song, every two songs, etc...
    Currently, we have no way to automatically insert our sweeps.  We have tried labeling our sweeps and trying to use the block builder, however I could not find a way to stagger them from the songs.

    When building a playlist for a 24hour session, it takes up quite  a bit of time, dragging and dropping a sweep between every song.

    Thanks,
    Post edited by Matt Elsberry at 2013-09-20 16:48:27
  • 3 Comments sorted by
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    normally this option will come with the next version (2.5)
    but you can modify the ls_script.liq to simulate this option
    search ls_script on this forum
  • I have searched for hours and have yet to find anything.  Guess we will just wait and hope for the next release to contain a solution.

    Thanks for your time.
  • No you did not look at my script here http://forum.sourcefabric.org/discussion/15701/fallover-101-how-to-make-all-scripts-worked-easy-steps-to-build-your-scripts-fixed-silence


    sweepers are simple to code


    # for some sweepers

     sweeper = single("/srv/backup/sweepers.mp3")

    #**********Schedule some sweepers****************************************

    # This type of schedule will cause the music to keep playing
    # The trick to use the existing variable a lay the switch on top of it
    # when the time reach liquidsoap knows something happen and see there is an event
    # It just keep playing and lay the track on top
    # I can hardly explain this good
    # playmymusicbackup is the varible I am using,so you have to put the event(schedule) after it
    # lets amplify the sweeper first ,because although replay gain will reduce the music playing
    # sometime you bearly hear it try not to over amplify 0.7 to 2 are good gains
    # if your general output is too low play with replay gain in system settings
    # but just to make the overlay sound higher amplify it
    # s = amplify(2.0, s) is the format
    # therefore
    #
     
    sweeper = amplify(2.0,sweeper)

    #
    # then we keep the music playing as we apply the switch
    # go crazy and put in times like the schedule above
     playlist=
             add([
                   playlist,
                   switch([
                            ({ 15m00s },delay(1.,sweeper)),
                            ({ 45m00s },delay(1.,sweeper)),
                         ])
               ])


     
    # - See more at: http://forum.sourcefabric.org/discussion/15701/fallover-101-how-to-make-all-scripts-worked-easy-steps-to-build-your-scripts-fixed-silence
    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.