qml: cue data and events

oviwan
oviwan Member Posts: 120 Helper
edited October 2024 in Mapping Traktor

Where can I find cue data (time, label) in the QML files? And are there any events triggered when a cue point is reached during playback?

Answers

  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 2,899 mod
    edited October 2023
    "app.traktor.decks.X.track.cue.hotcues.Y.exists"
    "app.traktor.decks.X.track.cue.hotcues.Y.start_pos"
    "app.traktor.decks.X.track.cue.hotcues.Y.length"
    "app.traktor.decks.X.track.cue.hotcues.Y.repeats"
    "app.traktor.decks.X.track.cue.hotcues.Y.delete"
    
    "app.traktor.decks.X.track.cue.active.type"
    "app.traktor.decks.X.track.cue.active.name"
    "app.traktor.decks.X.track.cue.active.start_pos"
    "app.traktor.decks.X.track.cue.active.length"
    "app.traktor.decks.X.track.cue.active.repeats"
    

    'X' == deck # (1-4)

    'Y' == hotcue #

    position/length in ms


    Edit: To trigger something, use this:

    "app.traktor.decks.X.track.player.next_cue_point"
    

    Implement a function that does something when the value of this reaches zero. It only works for the immediately following cue point.

    Or:

    "app.traktor.decks.X.track.player.elapsed_time"
    "app.traktor.decks.X.track.player.playhead_position"
    

    Implement a function that does something when the value of this is equal to the start position of your hotcue (and maybe only when the hotcue has a certain type).

  • oviwan
    oviwan Member Posts: 120 Helper

    Something is not right.

    I define this in S4MK3Deck:

    AppProperty

    {

    id: test;

    path: "app.traktor.decks.1.track.cue.hotcues.1.exists";

    }

    And tried to use text: test.value in one of the Text elements in TrackDeck but nothing shows up.

    Any ideas?

  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 2,899 mod

    Did you get a CTD or did it just not show anything?

    Either way, test.value should show a boolean.

    If you try to print it, you could have as text value:

    text: "" + test.value
    


    or maybe:

    property bool hotcueExists: test.value
    
    // and later in the text display box
    
    text: hotcueExists ? "HOTCUE" : "BLANK"
    


    I also found this (i just inlcude the complete file):

    This is for the graphical display of the HC, including printing it's number inside the polygon. It's all about defining and showing the HC, and then later, defining all of it's possible components. There should be something in there that you could try regarding the text display.

  • oviwan
    oviwan Member Posts: 120 Helper

    Actually, the hotcues are also available in deckInfo at hotcues.array but the model doesn't seem to contain the cue label?

This discussion has been closed.
Back To Top