@@ -114,7 +114,7 @@ XoneK2.shutdown = function(id) {
114114XoneK2 . decksBottomLeftEncoderPress = function ( channel , control , value , status ) {
115115 XoneK2 . controllers [ channel ] . leftEncoderIsPressed = ( status & 0xF0 ) === 0x90 ;
116116 if ( XoneK2 . controllers [ channel ] . isShifted && XoneK2 . controllers [ channel ] . leftEncoderIsPressed ) {
117- script . toggleControl ( '[Master ]' , 'headSplit ' ) ;
117+ script . toggleControl ( '[Mixer ]' , 'headphone_split ' ) ;
118118 }
119119} ;
120120XoneK2 . decksBottomLeftEncoder = function ( channel , control , value , status ) {
@@ -128,22 +128,22 @@ XoneK2.decksBottomLeftEncoder = function (channel, control, value, status) {
128128 }
129129 engine . setValue ( "[InternalClock]" , "bpm" , bpm ) ;
130130 } else {
131- var mix = engine . getValue ( "[Master ]" , "headMix " ) ;
131+ var mix = engine . getValue ( "[Mixer ]" , "headphone_mix " ) ;
132132 if ( value === 1 ) {
133133 mix += 1 ;
134134 } else {
135135 mix -= 1 ;
136136 }
137- engine . setValue ( "[Master ]" , "headMix " , mix ) ;
137+ engine . setValue ( "[Mixer ]" , "headphone_mix " , mix ) ;
138138 }
139139 } else {
140- var gain = engine . getValue ( "[Master ]" , "headGain " ) ;
140+ var gain = engine . getValue ( "[Mixer ]" , "headphone_gain " ) ;
141141 if ( value === 1 ) {
142142 gain += 0.025 ;
143143 } else {
144144 gain -= 0.025 ;
145145 }
146- engine . setValue ( "[Master ]" , "headGain " , gain ) ;
146+ engine . setValue ( "[Mixer ]" , "headphone_gain " , gain ) ;
147147 }
148148} ;
149149
@@ -183,13 +183,13 @@ XoneK2.decksBottomRightEncoder = function (channel, control, value, status) {
183183 }
184184 engine . setValue ( "[InternalClock]" , "bpm" , bpm ) ;
185185 } else {
186- var gain = engine . getValue ( "[Master ]" , "gain " ) ;
186+ var gain = engine . getValue ( "[Mixer ]" , "main_gain " ) ;
187187 if ( value === 1 ) {
188188 gain += 0.025 ;
189189 } else {
190190 gain -= 0.025 ;
191191 }
192- engine . setValue ( "[Master ]" , "gain " , gain ) ;
192+ engine . setValue ( "[Mixer ]" , "main_gain " , gain ) ;
193193 }
194194} ;
195195
@@ -895,7 +895,7 @@ XoneK2.EffectUnit = function (column, unitNumber, midiChannel, twoDeck) {
895895 this . valueAtLastEffectSwitch = this . previousValueReceived ;
896896 // Floor the threshold to ensure that every effect can be selected
897897 this . changeThreshold = Math . floor ( this . max /
898- engine . getValue ( '[Master ]' , 'num_effectsavailable' ) ) ;
898+ engine . getValue ( '[App ]' , 'num_effectsavailable' ) ) ;
899899
900900 this . input = function ( channel , control , value , status , group ) {
901901 var change = value - this . valueAtLastEffectSwitch ;
0 commit comments