Subversion Repositories svn.mios

Compare Revisions

Ignore whitespace Rev 1175 → Rev 1176

/trunk/apps/sequencers/midibox_808/setup_seq_dr_default.asm
273,6 → 273,18
#define DEFAULT_CV_DOUT_SR16 0
 
;; Optional 909-like OH/CH selection pin.
;; In order to use this feature, set DEFAULT_909LIKE_HH_CONTROL_ENABLED to 1, and
;; select the tracks to which the OH and CH are assigned in DEFAULT_909LIKE_HH_TRACK_OH/CH.
;; Change the DEFAULT_TRKINFO table in the header of this file, so that both track triggers share the same pin!
;; Then define the DOUT pin which should select OH/CH in DEFAULT_909LIKE_HH_SWITCH_SR/PIN below
#define DEFAULT_909LIKE_HH_CONTROL_ENABLED 0 ; 0 to disable, 1 to enable
#define DEFAULT_909LIKE_HH_TRACK_OH 11 ; OH track number - this track will set the SWITCH pin to 0
#define DEFAULT_909LIKE_HH_TRACK_CH 12 ; CH track number - will set the SWITCH pin to 1
#define DEFAULT_909LIKE_HH_SWITCH_SR 15 ; DOUT shift register of the SWITCH (1..16, 0 disables the assignment)
#define DEFAULT_909LIKE_HH_SWITCH_PIN 0 ; switch pin (0..7 for D0..D7)
 
 
;; 0: disables swing pot
;; 1: enables swing pot, connected to pin J5:A0
;; NOTE: to avoid random swing values, set this #define to 0 when NO pot is connected!
286,6 → 298,25
#define DEFAULT_STARTUP_PAGE CS_MENU_PAGE_EDIT
 
 
;; define the default Aux layer assignment:
;; 0: Accent
;; 1: Skip
;; 2: Flam1
;; 3: Flam2
;; 4: Flam3
;; 5: Flam4
;; 6: Random Gate
;; 7: Random Flam
;; 8: Delay1
;; 9: Delay2
;; 10: Delay3
;; 11: Delay4
;;
;; Note: if BankSticks have already been formated, the previous default assignment will still be active.
;; The new default assignment will be taken when a pattern is cleared (Options page, GP button #10)
#define DEFAULT_AUX_LAYER_ASSIGN 2
 
org 0x3082 ; never change the origin!
; ==========================================================================
; In this table all button functions are mapped to the DIN pins
/trunk/apps/sequencers/midibox_808/setup_808_default.asm
274,6 → 274,18
#define DEFAULT_CV_DOUT_SR16 0
 
 
;; Optional 909-like OH/CH selection pin.
;; In order to use this feature, set DEFAULT_909LIKE_HH_CONTROL_ENABLED to 1, and
;; select the tracks to which the OH and CH are assigned in DEFAULT_909LIKE_HH_TRACK_OH/CH.
;; Change the DEFAULT_TRKINFO table in the header of this file, so that both track triggers share the same pin!
;; Then define the DOUT pin which should select OH/CH in DEFAULT_909LIKE_HH_SWITCH_SR/PIN below
#define DEFAULT_909LIKE_HH_CONTROL_ENABLED 0 ; 0 to disable, 1 to enable
#define DEFAULT_909LIKE_HH_TRACK_OH 11 ; OH track number - this track will set the SWITCH pin to 0
#define DEFAULT_909LIKE_HH_TRACK_CH 12 ; CH track number - will set the SWITCH pin to 1
#define DEFAULT_909LIKE_HH_SWITCH_SR 4 ; DOUT shift register of the SWITCH (1..16, 0 disables the assignment)
#define DEFAULT_909LIKE_HH_SWITCH_PIN 2 ; switch pin (0..7 for D0..D7)
 
 
;; 0: disables swing pot
;; 1: enables swing pot, connected to pin J5:A0
;; NOTE: to avoid random swing values, set this #define to 0 when NO pot is connected!
287,6 → 299,25
#define DEFAULT_STARTUP_PAGE CS_MENU_PAGE_EDIT
 
 
;; define the default Aux layer assignment:
;; 0: Accent
;; 1: Skip
;; 2: Flam1
;; 3: Flam2
;; 4: Flam3
;; 5: Flam4
;; 6: Random Gate
;; 7: Random Flam
;; 8: Delay1
;; 9: Delay2
;; 10: Delay3
;; 11: Delay4
;;
;; Note: if BankSticks have already been formated, the previous default assignment will still be active.
;; The new default assignment will be taken when a pattern is cleared (Options page, GP button #10)
#define DEFAULT_AUX_LAYER_ASSIGN 2
 
 
org 0x3082 ; never change the origin!
; ==========================================================================
; In this table all button functions are mapped to the DIN pins
/trunk/apps/sequencers/midibox_808/CHANGELOG.txt
3,18 → 3,19
MIDIbox Seq Dr V1.4
~~~~~~~~~~~~~~~~~~~
 
o if Gate and Aux trigger layer selected at once, both layers can be cycles with the
o if Gate and Aux trigger layer selected at once, both layers can be cycled with the
GP buttons in 3 states:
- Gate On, Aux Off
- Gate On, Aux On
- Gate Off, Aux Off
- Gate On, Aux Off (appr. LED will be dimmed)
- Gate On, Aux On (LED full brightness)
- Gate Off, Aux Off (LED off)
 
o GP LEDs are dimmed depending on Gate/Aux trigger selection:
- Gate On, Aux Off: LED dimmed
- Gate On, Aux On: LED full brightness
- Gate Off, Aux Off: LED off
o Gate and Aux trigger layer now selected by default after power-on
 
o new option in setup_*.asm: DEFAULT_AUX_LAYER_ASSIGN
 
o new option in setup_*.asm: DEFAULT_909LIKE_HH_CONTROL_ENABLED
(OH and CH share the same trigger and set a selection pin)
 
MIDIbox Seq Dr V1.3a
~~~~~~~~~~~~~~~~~~~~
 
/trunk/apps/sequencers/midibox_808/src/seq_core.inc
117,8 → 117,8
movwf SEQ_SELECTED_ABCD, BANKED
movwf SEQ_NEXT_SELECTED_ABCD, BANKED
 
;; select gate layer by default, assume that buttons deselected
movlw (1 << 0) | 0xf0
;; select gate and aux layer by default, assume that buttons deselected
movlw (3 << 0) | 0xf0
movwf SEQ_SELECTED_LAYERS, BANKED
 
;; go into edit mode by default
/trunk/apps/sequencers/midibox_808/src/seq_preset_pattern.inc
12,22 → 12,22
; ==========================================================================
 
;; spare chn note vel vela dir1 dir2 div grve asgn loop last res. res. spr4 spr5
db 0x00, 0x09, 0x24, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk1
db 0x00, 0x09, 0x26, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk2
db 0x00, 0x09, 0x29, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk3
db 0x00, 0x09, 0x2b, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk4
db 0x00, 0x09, 0x2f, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk5
db 0x00, 0x09, 0x27, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk6
db 0x00, 0x09, 0x46, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk7
db 0x00, 0x09, 0x4b, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk8
db 0x00, 0x09, 0x38, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk9
db 0x00, 0x09, 0x31, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk10
db 0x00, 0x09, 0x2e, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk11
db 0x00, 0x09, 0x2a, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk12
db 0x00, 0x09, 0x2c, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk13
db 0x00, 0x09, 0x3c, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk14
db 0x00, 0x09, 0x3d, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk15
db 0x00, 0x09, 0x4c, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, 0x02, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk16
db 0x00, 0x09, 0x24, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk1
db 0x00, 0x09, 0x26, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk2
db 0x00, 0x09, 0x29, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk3
db 0x00, 0x09, 0x2b, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk4
db 0x00, 0x09, 0x2f, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk5
db 0x00, 0x09, 0x27, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk6
db 0x00, 0x09, 0x46, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk7
db 0x00, 0x09, 0x4b, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk8
db 0x00, 0x09, 0x38, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk9
db 0x00, 0x09, 0x31, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk10
db 0x00, 0x09, 0x2e, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk11
db 0x00, 0x09, 0x2a, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk12
db 0x00, 0x09, 0x2c, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk13
db 0x00, 0x09, 0x3c, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk14
db 0x00, 0x09, 0x3d, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk15
db 0x00, 0x09, 0x4c, 0x5f, 0x7f, 0x00, 0x00, 0x03, 0x10, DEFAULT_AUX_LAYER_ASSIGN, 0x00, 0x0f, 0x20, 0x2f, 0x00, 0x00 ; Trk16
 
;; |------------- gate triggers ----------------| |------------- aux. triggers ----------------|
db 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ; Trk1
/trunk/apps/sequencers/midibox_808/src/cs_m_edit.inc
275,11 → 275,19
bsf MB_STAT, MB_STAT_DONT_FLASH_R_GP_DOUT
bsf MB_STAT, MB_STAT_DONT_FLASH_L_GP_DOUT
 
;; transfer step trigger status (16 steps) to SEQ_GP_LED_[LR]
;; base pointer to trigger layer depending on selected track
call CS_M_HLP_GetSelectedTrk
SET_BSR SEQ_BASE
movwf SEQ_EVNTT, BANKED
 
;; branch depending on layer selection
decf SEQ_SELECTED_LAYERS, W, BANKED
andlw 0x03
bz CS_M_EDIT_UpdateGPLEDs_Gate
addlw -1
bz CS_M_EDIT_UpdateGPLEDs_Aux
 
CS_M_EDIT_UpdateGPLEDs_GateAux
;; get pointer to gate layer
call SEQ_FSR_TrgGate
rlf SEQ_SELECTED_STEP_VIEW, W, BANKED
290,7 → 298,6
movff POSTINC1, CS_MENU_GP_OVERLAY_DOUT_SR0_A
movff POSTINC1, CS_MENU_GP_OVERLAY_DOUT_SR1_A
 
 
;; get pointer to aux layer
call SEQ_FSR_TrgAux
rlf SEQ_SELECTED_STEP_VIEW, W, BANKED
303,7 → 310,26
 
return
 
CS_M_EDIT_UpdateGPLEDs_Gate
call SEQ_FSR_TrgGate
rgoto CS_M_EDIT_UpdateGPLEDs_Gate_Cont
 
CS_M_EDIT_UpdateGPLEDs_Aux
call SEQ_FSR_TrgAux
;; rgoto CS_M_EDIT_UpdateGPLEDs_Gate_Cont
 
CS_M_EDIT_UpdateGPLEDs_Gate_Cont
rlf SEQ_SELECTED_STEP_VIEW, W, BANKED
andlw 0x06
addwf FSR1L, F
 
;; copy pattern to SEQ_GP_LED_[LR]_A
movff POSTINC1, CS_MENU_GP_OVERLAY_DOUT_SR0_A
movff POSTINC1, CS_MENU_GP_OVERLAY_DOUT_SR1_A
 
rgoto CS_M_EDIT_UpdateGPLEDs_End
 
 
CS_M_EDIT_UpdateGPLEDs_Sel
;; flash LEDs
bcf MB_STAT, MB_STAT_DONT_FLASH_R_GP_DOUT
315,7 → 341,7
;; light up all tracks
setf CS_MENU_GP_OVERLAY_DOUT_SR0_A
setf CS_MENU_GP_OVERLAY_DOUT_SR1_A
rgoto CS_M_EDIT_UpdateGPLEDs_Sel_End
rgoto CS_M_EDIT_UpdateGPLEDs_End
 
CS_M_EDIT_UpdateGPLEDs_Sel_NotAll
;; light up selected tracks
322,7 → 348,7
movff SEQ_SELECTED_TRKS_0, CS_MENU_GP_OVERLAY_DOUT_SR0_A
movff SEQ_SELECTED_TRKS_1, CS_MENU_GP_OVERLAY_DOUT_SR1_A
 
CS_M_EDIT_UpdateGPLEDs_Sel_End
CS_M_EDIT_UpdateGPLEDs_End
;; copy A into B LED layer (no dimming used)
movff CS_MENU_GP_OVERLAY_DOUT_SR0_A, CS_MENU_GP_OVERLAY_DOUT_SR0_B
movff CS_MENU_GP_OVERLAY_DOUT_SR1_A, CS_MENU_GP_OVERLAY_DOUT_SR1_B
/trunk/apps/sequencers/midibox_808/src/seq_trk.inc
104,6 → 104,39
;; are set during the same SRIO update cycle
movff INTCON, PRODH ; store current interrupt status in PRODH
IRQ_DISABLE ; disable IRQs
 
#if DEFAULT_909LIKE_HH_CONTROL_ENABLED
;; special HH selection logic for 909 like control
movlw DEFAULT_909LIKE_HH_TRACK_CH - 1
lfsr FSR1, SEQ_DRUM_TRIGGERS0
btfsc WREG, 3
incf FSR1L, F
call MIOS_HLP_GetBitORMask
andwf INDF1, W
bz SEQ_TRK_SetTriggers_909CH_Cont
SEQ_TRK_SetTriggers_909CH_1
#if DEFAULT_909LIKE_HH_SWITCH_SR
movlw ((DEFAULT_909LIKE_HH_SWITCH_SR-1) << 3) | ((7 - DEFAULT_909LIKE_HH_SWITCH_PIN) & 0x7)
call MIOS_DOUT_PinSet1
#endif
SEQ_TRK_SetTriggers_909CH_Cont
 
movlw DEFAULT_909LIKE_HH_TRACK_OH - 1
lfsr FSR1, SEQ_DRUM_TRIGGERS0
btfsc WREG, 3
incf FSR1L, F
call MIOS_HLP_GetBitORMask
andwf INDF1, W
bz SEQ_TRK_SetTriggers_909OH_Cont
SEQ_TRK_SetTriggers_909OH_1
#if DEFAULT_909LIKE_HH_SWITCH_SR
movlw ((DEFAULT_909LIKE_HH_SWITCH_SR-1) << 3) | ((7 - DEFAULT_909LIKE_HH_SWITCH_PIN) & 0x7)
call MIOS_DOUT_PinSet0
#endif
SEQ_TRK_SetTriggers_909OH_Cont
#endif
 
;; get offset to table
movlw LOW(SEQ_TRK_INFO_TABLE)
/trunk/apps/sequencers/midibox_808/setup_808_mbseqv3_hardware.asm
274,6 → 274,18
#define DEFAULT_CV_DOUT_SR16 0
 
 
;; Optional 909-like OH/CH selection pin.
;; In order to use this feature, set DEFAULT_909LIKE_HH_CONTROL_ENABLED to 1, and
;; select the tracks to which the OH and CH are assigned in DEFAULT_909LIKE_HH_TRACK_OH/CH.
;; Change the DEFAULT_TRKINFO table in the header of this file, so that both track triggers share the same pin!
;; Then define the DOUT pin which should select OH/CH in DEFAULT_909LIKE_HH_SWITCH_SR/PIN below
#define DEFAULT_909LIKE_HH_CONTROL_ENABLED 0 ; 0 to disable, 1 to enable
#define DEFAULT_909LIKE_HH_TRACK_OH 11 ; OH track number - this track will set the SWITCH pin to 0
#define DEFAULT_909LIKE_HH_TRACK_CH 12 ; CH track number - will set the SWITCH pin to 1
#define DEFAULT_909LIKE_HH_SWITCH_SR 4 ; DOUT shift register of the SWITCH (1..16, 0 disables the assignment)
#define DEFAULT_909LIKE_HH_SWITCH_PIN 2 ; switch pin (0..7 for D0..D7)
 
 
;; 0: disables swing pot
;; 1: enables swing pot, connected to pin J5:A0
;; NOTE: to avoid random swing values, set this #define to 0 when NO pot is connected!
287,7 → 299,25
#define DEFAULT_STARTUP_PAGE CS_MENU_PAGE_EDIT
 
 
;; define the default Aux layer assignment:
;; 0: Accent
;; 1: Skip
;; 2: Flam1
;; 3: Flam2
;; 4: Flam3
;; 5: Flam4
;; 6: Random Gate
;; 7: Random Flam
;; 8: Delay1
;; 9: Delay2
;; 10: Delay3
;; 11: Delay4
;;
;; Note: if BankSticks have already been formated, the previous default assignment will still be active.
;; The new default assignment will be taken when a pattern is cleared (Options page, GP button #10)
#define DEFAULT_AUX_LAYER_ASSIGN 2
 
 
org 0x3082 ; never change the origin!
; ==========================================================================
; In this table all button functions are mapped to the DIN pins
/trunk/apps/sequencers/midibox_808/setup_808_mbseqv3_tk.asm
274,6 → 274,18
#define DEFAULT_CV_DOUT_SR16 0
 
 
;; Optional 909-like OH/CH selection pin.
;; In order to use this feature, set DEFAULT_909LIKE_HH_CONTROL_ENABLED to 1, and
;; select the tracks to which the OH and CH are assigned in DEFAULT_909LIKE_HH_TRACK_OH/CH.
;; Change the DEFAULT_TRKINFO table in the header of this file, so that both track triggers share the same pin!
;; Then define the DOUT pin which should select OH/CH in DEFAULT_909LIKE_HH_SWITCH_SR/PIN below
#define DEFAULT_909LIKE_HH_CONTROL_ENABLED 0 ; 0 to disable, 1 to enable
#define DEFAULT_909LIKE_HH_TRACK_OH 11 ; OH track number - this track will set the SWITCH pin to 0
#define DEFAULT_909LIKE_HH_TRACK_CH 12 ; CH track number - will set the SWITCH pin to 1
#define DEFAULT_909LIKE_HH_SWITCH_SR 4 ; DOUT shift register of the SWITCH (1..16, 0 disables the assignment)
#define DEFAULT_909LIKE_HH_SWITCH_PIN 2 ; switch pin (0..7 for D0..D7)
 
 
;; 0: disables swing pot
;; 1: enables swing pot, connected to pin J5:A0
;; NOTE: to avoid random swing values, set this #define to 0 when NO pot is connected!
287,6 → 299,25
#define DEFAULT_STARTUP_PAGE CS_MENU_PAGE_EDIT
 
 
;; define the default Aux layer assignment:
;; 0: Accent
;; 1: Skip
;; 2: Flam1
;; 3: Flam2
;; 4: Flam3
;; 5: Flam4
;; 6: Random Gate
;; 7: Random Flam
;; 8: Delay1
;; 9: Delay2
;; 10: Delay3
;; 11: Delay4
;;
;; Note: if BankSticks have already been formated, the previous default assignment will still be active.
;; The new default assignment will be taken when a pattern is cleared (Options page, GP button #10)
#define DEFAULT_AUX_LAYER_ASSIGN 2
 
 
org 0x3082 ; never change the origin!
; ==========================================================================
; In this table all button functions are mapped to the DIN pins
/trunk/apps/sequencers/midibox_808/setup_808_tk.asm
274,6 → 274,18
#define DEFAULT_CV_DOUT_SR16 0
 
 
;; Optional 909-like OH/CH selection pin.
;; In order to use this feature, set DEFAULT_909LIKE_HH_CONTROL_ENABLED to 1, and
;; select the tracks to which the OH and CH are assigned in DEFAULT_909LIKE_HH_TRACK_OH/CH.
;; Change the DEFAULT_TRKINFO table in the header of this file, so that both track triggers share the same pin!
;; Then define the DOUT pin which should select OH/CH in DEFAULT_909LIKE_HH_SWITCH_SR/PIN below
#define DEFAULT_909LIKE_HH_CONTROL_ENABLED 0 ; 0 to disable, 1 to enable
#define DEFAULT_909LIKE_HH_TRACK_OH 11 ; OH track number - this track will set the SWITCH pin to 0
#define DEFAULT_909LIKE_HH_TRACK_CH 12 ; CH track number - will set the SWITCH pin to 1
#define DEFAULT_909LIKE_HH_SWITCH_SR 4 ; DOUT shift register of the SWITCH (1..16, 0 disables the assignment)
#define DEFAULT_909LIKE_HH_SWITCH_PIN 2 ; switch pin (0..7 for D0..D7)
 
 
;; 0: disables swing pot
;; 1: enables swing pot, connected to pin J5:A0
;; NOTE: to avoid random swing values, set this #define to 0 when NO pot is connected!
287,6 → 299,25
#define DEFAULT_STARTUP_PAGE CS_MENU_PAGE_PATTERN
 
 
;; define the default Aux layer assignment:
;; 0: Accent
;; 1: Skip
;; 2: Flam1
;; 3: Flam2
;; 4: Flam3
;; 5: Flam4
;; 6: Random Gate
;; 7: Random Flam
;; 8: Delay1
;; 9: Delay2
;; 10: Delay3
;; 11: Delay4
;;
;; Note: if BankSticks have already been formated, the previous default assignment will still be active.
;; The new default assignment will be taken when a pattern is cleared (Options page, GP button #10)
#define DEFAULT_AUX_LAYER_ASSIGN 2
 
 
org 0x3082 ; never change the origin!
; ==========================================================================
; In this table all button functions are mapped to the DIN pins