
- globals
  Global
    ccDanceTimeWarp =     filter(IntensityFromMidiCC(1,93), 0.3)    
    ccDanceColor =        filter(IntensityFromMidiCC(1,94 ), 0.3)   
    ccDanceTimeOffset =   filter(IntensityFromMidiCC(1,95), 0.3)  
    techno3_variations_t0 = FramePosFromMidi(2, 74) / 30
    techno3_variations_t = techno3_variations_t0 +  ccDanceTimeWarp * 0.1 * sin(techno3_variations_t0 * pi * 4 + 1)
    group_offset = 0.5 * ccDanceTimeOffset
    group_sat = 0.8
    group_hue = ColorH + techno3_variations_t * 0.3 * ccDanceColor
    group_hue_offset = ccDanceColor * 0.05
    danceRotation = 180
 


- techno3_variations_
  DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = techno3_variations_t * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
    Matrix = MatrixFromTRS(0,0.819,0,  14, danceRotation, 177.57,  1)
    Color = hsvColor(group_hue, group_sat, ColorV, 1)

- techno3_variations_ refl
  Transform
    Matrix = MatrixFromTRS2(0,0,0,   180,0,0,  -1,1,1) 
  - solo_lines_highres
    DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = techno3_variations_t * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
      Matrix = MatrixFromTRS(0,0.819,0,  14, danceRotation, 177.57,  1)
      Color = hsvColor(group_hue, group_sat, ColorVMirror, 1)
      PointSize = 0.7
      DOFEnable = D_DOFEnable
      DOFMaxBlur = D_DOFMaxBlur
      DOFSharpRadius = D_DOFSharpRadius
      DOFUseTargetPoint = D_DOFUseTargetPoint


- techno3_variations_
  DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = (techno3_variations_t+group_offset) * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
    Matrix = MatrixFromTRS(1,0.819,0,  14, danceRotation, 177.57,  1)
    Color = hsvColor(group_hue+group_hue_offset, group_sat, ColorV, 1)

- techno3_variations_ refl
  Transform
    Matrix = MatrixFromTRS2(0,0,0,   180,0,0,  -1,1,1) 
  - solo_lines_highres
    DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = (techno3_variations_t+group_offset) * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
      Matrix = MatrixFromTRS(1,0.819,0,  14, danceRotation, 177.57,  1)
      Color = hsvColor(group_hue+group_hue_offset, group_sat, ColorVMirror, 1)
      PointSize = 0.7
      DOFEnable = D_DOFEnable
      DOFMaxBlur = D_DOFMaxBlur
      DOFSharpRadius = D_DOFSharpRadius
      DOFUseTargetPoint = D_DOFUseTargetPoint



- techno3_variations_
  DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = (techno3_variations_t-group_offset) * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
    Matrix = MatrixFromTRS(-1,0.819,0,  14, danceRotation, 177.57,  1)
    Color = hsvColor(group_hue-group_hue_offset, group_sat, ColorV, 1)

- techno3_variations_ refl
  Transform
    Matrix = MatrixFromTRS2(0,0,0,   180,0,0,  -1,1,1) 
  - solo_lines_highres
    DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = (techno3_variations_t-group_offset) * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
      Matrix = MatrixFromTRS(-1,0.819,0,  14, danceRotation, 177.57,  1)
      Color = hsvColor(group_hue-group_hue_offset, group_sat, ColorVMirror, 1)
      PointSize = 0.7
      DOFEnable = D_DOFEnable
      DOFMaxBlur = D_DOFMaxBlur
      DOFSharpRadius = D_DOFSharpRadius
      DOFUseTargetPoint = D_DOFUseTargetPoint




- techno3_variations_
  DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = (techno3_variations_t+2*group_offset) * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
    Matrix = MatrixFromTRS(2,0.819,0,  14, danceRotation, 177.57,  1)
    Color = hsvColor(group_hue+2*group_hue_offset, group_sat, ColorV, 1)

- techno3_variations_ refl
  Transform
    Matrix = MatrixFromTRS2(0,0,0,   180,0,0,  -1,1,1) 
  - solo_lines_highres
    DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = (techno3_variations_t+2*group_offset) * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
      Matrix = MatrixFromTRS(2,0.819,0,  14, danceRotation, 177.57,  1)
      Color = hsvColor(group_hue+2*group_hue_offset, group_sat, ColorVMirror, 1)
      PointSize = 0.7
      DOFEnable = D_DOFEnable
      DOFMaxBlur = D_DOFMaxBlur
      DOFSharpRadius = D_DOFSharpRadius
      DOFUseTargetPoint = D_DOFUseTargetPoint



- techno3_variations_
  DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = (techno3_variations_t-2*group_offset) * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
    Matrix = MatrixFromTRS(-2,0.819,0,  14, danceRotation, 177.57,  1)
    Color = hsvColor(group_hue-2*group_hue_offset, group_sat, ColorV, 1)

- techno3_variations_ refl
  Transform
    Matrix = MatrixFromTRS2(0,0,0,   180,0,0,  -1,1,1) 
  - solo_lines_highres
    DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = (techno3_variations_t-2*group_offset) * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
      Matrix = MatrixFromTRS(-2,0.819,0,  14, danceRotation, 177.57,  1)
      Color = hsvColor(group_hue-2*group_hue_offset, group_sat, ColorVMirror, 1)
      PointSize = 0.7
      DOFEnable = D_DOFEnable
      DOFMaxBlur = D_DOFMaxBlur
      DOFSharpRadius = D_DOFSharpRadius
      DOFUseTargetPoint = D_DOFUseTargetPoint



- techno3_variations_
  DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = (techno3_variations_t+3*group_offset) * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
    Matrix = MatrixFromTRS(3,0.819,0,  14, danceRotation, 177.57,  1)
    Color = hsvColor(group_hue+3*group_hue_offset, group_sat, ColorV, 1)

- techno3_variations_ refl
  Transform
    Matrix = MatrixFromTRS2(0,0,0,   180,0,0,  -1,1,1) 
  - solo_lines_highres
    DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = (techno3_variations_t+2*group_offset) * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
      Matrix = MatrixFromTRS(3,0.819,0,  14, danceRotation, 177.57,  1)
      Color = hsvColor(group_hue+3*group_hue_offset, group_sat, ColorVMirror, 1)
      PointSize = 0.7
      DOFEnable = D_DOFEnable
      DOFMaxBlur = D_DOFMaxBlur
      DOFSharpRadius = D_DOFSharpRadius
      DOFUseTargetPoint = D_DOFUseTargetPoint



- techno3_variations_
  DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = (techno3_variations_t-3*group_offset) * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
    Matrix = MatrixFromTRS(-3,0.819,0,  14, danceRotation, 177.57,  1)
    Color = hsvColor(group_hue-3*group_hue_offset, group_sat, ColorV, 1)

- techno3_variations_ refl
  Transform
    Matrix = MatrixFromTRS2(0,0,0,   180,0,0,  -1,1,1) 
  - solo_lines_highres
    DepthStream ; Resource = "depth/techno3_variations_.pcs" ; Frame = (techno3_variations_t-3*group_offset) * 30 ; Intensity = FrameIntensityFromMidi(2, 74)
      Matrix = MatrixFromTRS(-3,0.819,0,  14, danceRotation, 177.57,  1)
      Color = hsvColor(group_hue-3*group_hue_offset, group_sat, ColorVMirror, 1)
      PointSize = 0.7
      DOFEnable = D_DOFEnable
      DOFMaxBlur = D_DOFMaxBlur
      DOFSharpRadius = D_DOFSharpRadius
      DOFUseTargetPoint = D_DOFUseTargetPoint



