Deep-Symmetry / crate-digger

Java library for fetching and parsing rekordbox exports and track analysis files.
Other
139 stars 18 forks source link

Add active loop #19

Closed mganss closed 3 years ago

mganss commented 3 years ago

I believe the current interpretation of cue_entry_status is wrong. I have observed that this field is zero for regular cue points and loops and 4 for active (memory cue) loops. This behavior corresponds with rekordbox's database where the Kind column in table djmdCue is 0 for memory cue points, 1,2,3,5,... for hot cue points, and 4 for active loop memory cues (there is an extra column ActiveLoop that's only for hot cues). Can you even disable a cue point?

Value 1 for cue_entry_type also applies to hot cues, not only to memory cue points.

It seems that active loop hot cues are not exported as such but as regular hot cue loops instead. In rekordbox performance mode you can enable/disable active loop hot cues (loop icon turns red if loop is active) but if you switch to export mode they no longer appear red but orange like regular loops. The export files remain identical.

Another peculiar observation is that the new .2EX file only appears if an active loop is in the track. If you only have regular loops, the .2EX file disappears altogether. Perhaps the waveform information in the .2EX (PWV7, PWV6, PWVC) contains the red line that's shown in rekordbox for active loops.

brunchboy commented 3 years ago

I have never seen any waveform information that has overlays or annotations on it, that would surprise me greatly. Those are always done by compositing onto the waveform by the display software. But the connection between active loops and the .2ex file is also surprising and confusing, so, maybe? Have you been able to make any progress in figuring out the format of these new waveforms?

mganss commented 3 years ago

No, I haven't had a chance to look into this so far.

brunchboy commented 3 years ago

I think this is ready to merge. Do you want to take a crack at updating the file analysis document as part of it, or would you like me to do that after merging?

brunchboy commented 3 years ago

Thanks again! 😀