Mapping something (e.g. loop size/out) to jog wheel

1192021222325»

Answers

  • Psyka
    Psyka Member Posts: 61 Member

    Yes, I will try this monday :)


    I’ve made a video to show what I’ able to do with this forum :


    → Perfect sync with audio, lights and videos

    https://drive.google.com/file/d/1KVfbOBKCLYskpWOJY4acfhrtnZebNTZc/view?usp=drivesdk


    Thank a lot :)

  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 3,602 mod
    edited June 13

    You are welcome, but really it's you who is doing the work! 😊

  • Psyka
    Psyka Member Posts: 61 Member

    Hi :)

    So I try my formula and unfortunately nothing happen…

    I think it didn't consider that "(2260 - ((1-(deckBpm / TrackBpm))* 5750))" like a number in ms.

     // enter a custom delay value in ms; 
    can be negative  readonly property real beatDelay: (2260 - ((1-(deckBpm / TrackBpm))* 5750))
    
  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 3,602 mod

    Could you please post all the relevant code (or the file)?

  • Psyka
    Psyka Member Posts: 61 Member
     //----------------------------------- Beatcounter LED ------------------------------------//
    
      AppProperty { id: masterIdProp; path: "app.traktor.masterclock.source_id" } //-1: MasterClock, 0: Deck A, 1: Deck B, 2: Deck C, 3: Deck D
      readonly property int masterId: masterIdProp.value + 1
      AppProperty { id: deckTypeProp; path: "app.traktor.decks." + masterId + ".type"; }
      AppProperty { id: deckElapsedTime; path: "app.traktor.decks." + masterId + ".track.player.elapsed_time" }
      AppProperty { id: deckGridOffset; path: "app.traktor.decks." + masterId + ".content.grid_offset" }
      AppProperty { id: deckMixerBpm; path: "app.traktor.decks." + masterId + ".tempo.base_bpm" } //true_bpm
      AppProperty { id: remixBeatPos; path: "app.traktor.decks." + masterId + ".remix.current_beat_pos" }
      AppProperty { id: midiButtonProp1; path: "app.traktor.midi.buttons.1" }
    
    
      // enter a custom delay value in ms; can be negative
      readonly property real beatDelay: (2260 - ((1-(deckBpm / TrackBpm))* 5750))
    
      readonly property var turnSpeedFactor: deckMixerBpm.value / 8 // Tempo varies with track's bpm
      readonly property var deckBeats: deckTypeProp.value != 1 ? (((deckElapsedTime.value * 1000 - deckGridOffset.value + beatDelay) * turnSpeedFactor) / 7500.0) : parseInt(remixBeatPos.value) * 2
      readonly property var deckBeat: (deckBeats < 0.0) ? (16 - (parseInt(Math.abs(deckBeats) % 16))) : parseInt(Math.abs(deckBeats) % 16) + 1
    
      onDeckBeatChanged:
      {
        if (deckBeat == 1) {
          midiButtonProp1.value = true
        }
        else {
          midiButtonProp1.value = false
        }
      }
    
    } //Mapping
    
    
  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 3,602 mod

    I'm going to put this into my s4 mod later and see what happens.

  • pixel
    pixel Member Posts: 418 Pro

    this will not work because the variables "deckBpm" and "TrackBpm" are not declared.

  • Psyka
    Psyka Member Posts: 61 Member
    edited June 16

    How can I do that? :)

    Thank you.

  • pixel
    pixel Member Posts: 418 Pro
    edited June 17

    I will think about this today tonight. and I will look in the “Traktor_Commands.txt” to see what is suitable for filling the variables🙂

  • Psyka
    Psyka Member Posts: 61 Member

    That will be awesome :)

    Many thanks

Back To Top