How to make a 3 bar beat jump with one button push ? - Page 2
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Tech Guru zestoi's Avatar
    Join Date
    Mar 2011
    Location
    UK, Ukraine, Romania
    Posts
    2,836

    Default

    fyi here's my slicer lua code - with some stuff removed for clarity:

    traktor beatphase to animate the pad leds:

    Code:
        capture(app, beat_event, ALL, 0, function(d2, e2, v2, p2)
    
                -- turn off current pad
                send(d, pads[slicer.data[sid].step], OFF, p)
    
                slicer.data[sid].step = slicer.data[sid].step + 1
                
                local jump = 0
                if slicer.data[sid].step >= 9 then
                    slicer.data[sid].step = 1
                    if slicer.data[sid].loopmode then
                        jump = -8
                    end
                end
    
                if jump ~= 0 then
                    slicer.send_beatjump(app, jump, deck, beatjumps)
                end
    
                -- turn new pad on
                send(d, pads[slicer.data[sid].step], ON, p)
    pressing on pads to beatjump:

    Code:
        for i,e in ipairs(pads) do
    
            -- map back from pad name to slicer step
            slicer.data[sid].pads2step[e] = i
    
            capture(d, e, ALL, p, function(d, e, v, p)
                if v > 0 then
                    if slicer.data[sid].active == false then
                        return
                    end
    
                    local jump = slicer.data[sid].pads2step[e] - slicer.data[sid].step - 1
    
                    -- send beatjump and turn old pad off
                    slicer.send_beatjump(app, jump, deck, beatjumps)
                    send(d, pads[slicer.data[sid].step], OFF)
                    slicer.data[sid].step = slicer.data[sid].pads2step[e]
                else
                    -- make sure pad led stays on (lpd8)
                    send(d, e, ON, p)
                end
            end)
    11mba / 13mbp / tsp2 / live9 / audio10 / 2x reloop rp7000gold / 2x xdj1000 / 2x d2
    maschine mk2 / x1 mk2 / z1 / f1 / midifighter / lpd8 / 2x launchpad / launchkontrol xl
    Quote Originally Posted by derschaich
    "wohoo, i'm touched, turn on the FX"

  2. #12
    Tech Wizard
    Join Date
    May 2011
    Posts
    20

    Default

    the whole time i was doing this i was wishing i could code things (incrementing vars or using counters to keep track of position), which would have made things WAY easier. i can see that's exactly what you've done with your code, which is making me even more strongly consider going with translator/intermediary software

    unfortunately i'm on osx/mac so i would need to find a mac or cross platform solution. any suggestions?

  3. #13
    Tech Guru zestoi's Avatar
    Join Date
    Mar 2011
    Location
    UK, Ukraine, Romania
    Posts
    2,836

    Default

    Quote Originally Posted by mrjezza View Post
    the whole time i was doing this i was wishing i could code things (incrementing vars or using counters to keep track of position), which would have made things WAY easier. i can see that's exactly what you've done with your code, which is making me even more strongly consider going with translator/intermediary software

    unfortunately i'm on osx/mac so i would need to find a mac or cross platform solution. any suggestions?
    ah bugger... then you're limitted to something like bomes - which can do what u want.

    my code will/should work on a mac too - it uses the cross platform RtMidi lib for the core stuff- but i'm 99% sure i'd need to test/debug some stuff on a mac.

    i just need to get access to a mac somehow to compile/test the C++ i guess...

    i had thought about using osx in a virtual type session - but not sure i fancy paying for osx for something like this and/or using an illegal version.

    maybe i need to find someone who has a mac that i can ssh into or something. i could/might release the source code - but not planning on that at the moment.
    11mba / 13mbp / tsp2 / live9 / audio10 / 2x reloop rp7000gold / 2x xdj1000 / 2x d2
    maschine mk2 / x1 mk2 / z1 / f1 / midifighter / lpd8 / 2x launchpad / launchkontrol xl
    Quote Originally Posted by derschaich
    "wohoo, i'm touched, turn on the FX"

  4. #14
    Tech Guru zestoi's Avatar
    Join Date
    Mar 2011
    Location
    UK, Ukraine, Romania
    Posts
    2,836

    Default

    just noticed i could maybe get some osx web hosting... anyone know of anyone good/cheap with at least ssh access so i could compile on?

    i already have 2 servers (one linux, one freebsd) so not looking for any major hosting - just something i could use to compile on - and then maybe wack a few websites on since i'd be paying for it anyway...
    11mba / 13mbp / tsp2 / live9 / audio10 / 2x reloop rp7000gold / 2x xdj1000 / 2x d2
    maschine mk2 / x1 mk2 / z1 / f1 / midifighter / lpd8 / 2x launchpad / launchkontrol xl
    Quote Originally Posted by derschaich
    "wohoo, i'm touched, turn on the FX"

  5. #15
    Tech Mentor bascurtiz's Avatar
    Join Date
    Sep 2011
    Location
    Holland
    Posts
    215

    Default

    Zestoi, I saw u posted a reply in the String Theory article... Any luck on getting your script up and running?
    I'd love to play with it / configure it to the Twitch to get the Slicer mode working in Traktor

  6. #16
    Tech Guru zestoi's Avatar
    Join Date
    Mar 2011
    Location
    UK, Ukraine, Romania
    Posts
    2,836

    Default

    Quote Originally Posted by bascurtiz View Post
    Zestoi, I saw u posted a reply in the String Theory article... Any luck on getting your script up and running?
    I'd love to play with it / configure it to the Twitch to get the Slicer mode working in Traktor
    yep - i had the slicer working fairly well on my lpd8 a while ago - midimasher is avail for download in my sig - as always.

    i will be implementing the idea from the blog tho - which is to drop a hotcue when the slicer is enabled and always jump back to that before beat jumping.

    will be working on that today or tomorrow and push out a new release.

    it's still pc-only tho i'm afraid. don't have any access to a mac to build/test
    11mba / 13mbp / tsp2 / live9 / audio10 / 2x reloop rp7000gold / 2x xdj1000 / 2x d2
    maschine mk2 / x1 mk2 / z1 / f1 / midifighter / lpd8 / 2x launchpad / launchkontrol xl
    Quote Originally Posted by derschaich
    "wohoo, i'm touched, turn on the FX"

  7. #17
    Tech Mentor bascurtiz's Avatar
    Join Date
    Sep 2011
    Location
    Holland
    Posts
    215

    Default

    that'll be awesome!

    Time to buy the Twitch ...finally

    Let me know how u progress.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •