mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-05 12:24:42 +01:00
PADS: las teclas negras en pantalla (línea fija y frase de lo que hace la negra mantenida)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
3 files changed
+21
-7
No files matched your search
@@ -132,12 +132,17 @@ static __attribute__((noinline)) uint32_t pads_leds(int glow)
|
||||
return m;
|
||||
}
|
||||
static const char PD_HINT[] PD_RO = "PADS PLAY THEIR TRACKS\0" "PADS UNMUTE THEIR TRACKS\0" "PADS MUTE THEIR TRACKS\0"
|
||||
"PADS SEND TRACKS TO STEP 1";
|
||||
"PADS SEND TRACKS TO STEP 1\0" "TAP A PAD: ITS TRACK TO STEP 1\0" "HOLD A PAD: ITS TRACK MUTED";
|
||||
/* the picture: the page's name large, what the pads do, the six tracks (lit sounding, dim silent, dark muted) */
|
||||
static __attribute__((noinline)) void graph_pads(void)
|
||||
{
|
||||
uint32_t i, mode = pd_k[0];
|
||||
page_big("PADS", str_nth(PD_HINT, mode == PM_PLAY ? (uint32_t)song.playing : mode + 1u));
|
||||
/* (V10.8.86, the owner: "no entiendo qué hace el resto de las teclas, no se muestra en ningún lado") a black key
|
||||
* held: what a pad does now; the two black keys' line, dim, under the tracks */
|
||||
page_big("PADS", str_nth(PD_HINT, black_held(0) ? 4u : black_held(1) ? 5u : mode == PM_PLAY ? (uint32_t)song.playing
|
||||
: mode + 1u));
|
||||
if (graph_h() >= 100u)
|
||||
cv_text(8, 84, &AF_S, "BLACK 1 + PAD: RESET BLACK 2 + PAD: MUTE", T_DIM);
|
||||
for (i = 0; i < NTRK; i++) {
|
||||
char n[3] = {'T', (char)('1' + i), 0};
|
||||
uint32_t st = pd_state(i);
|
||||
@@ -146,7 +151,8 @@ static __attribute__((noinline)) void graph_pads(void)
|
||||
}
|
||||
static __attribute__((noinline)) uint32_t pads_sig(void)
|
||||
{
|
||||
uint32_t i, h = (uint32_t)pd_k[0] | pd_k[1] << 2 | pd_k[2] << 3 | pd_k[3] << 5 | (uint32_t)song.playing << 6;
|
||||
uint32_t i, h = (uint32_t)pd_k[0] | pd_k[1] << 2 | pd_k[2] << 3 | pd_k[3] << 5 | (uint32_t)song.playing << 6 |
|
||||
(uint32_t)black_held(0) << 7 | (uint32_t)black_held(1) << 8;
|
||||
for (i = 0; i < NTRK; i++)
|
||||
h = h * 3u + pd_state(i);
|
||||
return h * 2654435761u;
|
||||
|
||||
+10
-2
@@ -664,7 +664,7 @@ enum { S_HOME, S_HOME_IDLE, S_MESSAGE, S_MESSAGE_KEY, S_MESSAGE_NOFILE, S_PRESET
|
||||
S_FXL_SENDS, S_FXL_DIST, S_FXL_PAN, S_FXL_BUSES, S_FXL_DELAY, S_FXL_DELAY2, S_FXL_REVERB, S_FXL_SLICER, S_FXL_MASTER,
|
||||
S_HOME_MACROS, S_HOME_BEING, S_HOME_ROUTES, S_GEN_LEAD,
|
||||
S_ED_FILTER, S_ED_FILTER_BP, S_ED_VOICE2, S_ED_FOCUS, S_ED_FOCUS_MOD, S_ED_OPERATOR,
|
||||
S_ENV_LZ, S_ENV_LZ_DEST, S_ENV_STAGE, S_ENV_STAGE_SUS, S_MSEQ2, S_KEY_CHORD, S_KEY_CHORD_OFF, S_KEY_ARP, S_KEY_ARP2, S_GLO_SENDS, S_MENU_ROW, S_MENU_ROW_LEDS, S_LY_FX_KNOBS, S_LY_FX_STATE, S_LY_GLO_STATE, S_DLG_DICE_SOUND, S_DLG_DICE_SEQ, S_DLG_DICE_FX, S_DLG_MUT_BACK,
|
||||
S_ENV_LZ, S_ENV_LZ_DEST, S_ENV_STAGE, S_ENV_STAGE_SUS, S_MSEQ2, S_KEY_CHORD, S_KEY_CHORD_OFF, S_KEY_ARP, S_KEY_ARP2, S_GLO_SENDS, S_GLO_PADS, S_GLO_PADS_RESET, S_MENU_ROW, S_MENU_ROW_LEDS, S_LY_FX_KNOBS, S_LY_FX_STATE, S_LY_GLO_STATE, S_DLG_DICE_SOUND, S_DLG_DICE_SEQ, S_DLG_DICE_FX, S_DLG_MUT_BACK,
|
||||
S_DRUM_X4, S_DRUM_GHOST, S_DRUM_OCT_UP, S_DRUM_OCT_DN, S_COMP_TOUCH, S_COMP_EVEN, S_GEN_EXPLORE, S_GEN_SONG,
|
||||
S_VX_HEAD_A, S_VX_HEAD_I, S_VX_HEAD_U, S_VX_HEAD_S, S_VX_HEAD_M, S_VX_HEAD_K, S_VX_HEAD_T, S_VX_HEAD_F, S_VX_HEAD_VOWEL,
|
||||
S_VX_HEAD_HOME, S_VX_HEAD_QUIET, S_VX_BIRD, S_VX_CMOS, S_VX_INSECT, S_VX_WING, S_VX_MAMMAL, S_VX_MORPH_IB, S_VX_MORPH_BM,
|
||||
@@ -701,7 +701,7 @@ static const char *const S_NAME[S_COUNT] = {"home", "home_idle", "message", "mes
|
||||
"fx_effect_slicer", "fx_effect_master",
|
||||
"home_macros", "home_being", "home_routes", "gen_lead",
|
||||
"ed_filter", "ed_filter_bp", "ed_voice2", "ed_focus", "ed_focus_mod", "ed_operator",
|
||||
"env_lz", "env_lz_dest", "env_stage", "env_stage_sus", "mseq2", "key_chord", "key_chord_off", "key_arp", "key_arp2", "glo_sends", "menu_row", "menu_row_leds", "ly_fx_knobs", "ly_fx_state", "ly_glo_state", "dlg_dice_sound", "dlg_dice_seq", "dlg_dice_fx", "euclid_modes",
|
||||
"env_lz", "env_lz_dest", "env_stage", "env_stage_sus", "mseq2", "key_chord", "key_chord_off", "key_arp", "key_arp2", "glo_sends", "glo_pads", "glo_pads_reset", "menu_row", "menu_row_leds", "ly_fx_knobs", "ly_fx_state", "ly_glo_state", "dlg_dice_sound", "dlg_dice_seq", "dlg_dice_fx", "euclid_modes",
|
||||
"drum_hit_x4", "drum_hit_ghost", "drum_oct_x8", "drum_oct_flam", "comp_touch", "comp_echo_even", "gen_explore", "gen_song",
|
||||
"vx_head_a", "vx_head_i", "vx_head_u", "vx_head_s", "vx_head_m", "vx_head_k", "vx_head_t", "vx_head_f", "vx_head_vowel",
|
||||
"vx_head_home", "vx_head_quiet", "vx_bird", "vx_cmos", "vx_insect", "vx_wing", "vx_mammal", "vx_morph_insect_bird", "vx_morph_bird_mammal",
|
||||
@@ -1270,6 +1270,14 @@ static void setup(int s)
|
||||
trk[0].p[P_DIST] = 30; trk[1].p[P_CHOR] = 90; trk[2].p[P_DLY] = 60; trk[3].p[P_REV] = 127; trk[4].p[P_MUTE] = 1;
|
||||
go_title("SENDS"); ui.hot_col = 2; ui.hot_t = 30;
|
||||
break;
|
||||
case S_GLO_PADS: case S_GLO_PADS_RESET: /* (V10.8.86) GLO > PADS; black 1 held: its hint */
|
||||
go_title("PADS");
|
||||
if (s == S_GLO_PADS_RESET) {
|
||||
uint32_t k;
|
||||
for (k = 0; k < 27u; k++)
|
||||
if (key_black(k) && key_place(k) == 0u) fm1_in.notes = 1u << k;
|
||||
}
|
||||
break;
|
||||
case S_KEY_CHORD: TSEL->p[P_CHRD] = 2; TSEL->p[P_CVOI] = 1; TSEL->p[P_ROOT] = 9; TSEL->p[P_SCALE] = 2; go_title("CHORD"); break;
|
||||
case S_KEY_CHORD_OFF: go_title("CHORD"); break;
|
||||
case S_KEY_ARP: case S_KEY_ARP2: /* (0.8.5) SCL . ARP's lens: ARP on (UPDN, 2 octaves), ARP 2 */
|
||||
|
||||
+2
-2
@@ -774,7 +774,7 @@ graph_lfodest 514 text cv_line_t cv_rect cv_text_r ed_cap heat_col lfo_cap lfo_w
|
||||
graph_lz_presets 722 text cv_clip_text cv_rect cv_text_fit cv_text_in cv_text_on cv_text_r eng_vis favorite_has fmt_int graph_h heat_col lz_mini_being preset_at preset_pos str_cpy str_eq str_nth tsel_p up_name ux_mix
|
||||
graph_lz_tools 514 text cv_frame cv_rect cv_text cv_text_in cv_text_on fmt_int graph_h str_cpy str_nth
|
||||
graph_morph 704 text an_morph bt_hw_seg cv_line_t cv_rect cv_text heat_col morph_wave pd_setup pd_wave str_cat str_cpy str_nth trk_eng
|
||||
graph_pads 166 text cv_text_flags page_big pd_state str_nth
|
||||
graph_pads 228 text black_held cv_text_flags graph_h page_big pd_state str_nth
|
||||
graph_proj 920 text cv_frame cv_rect cv_text cv_text_fit cv_text_in cv_text_on cv_text_r fmt_int graph_project_used lz_sec song_bars song_len_txt str_cat
|
||||
graph_project_used 270 text as_mix project_name
|
||||
graph_roll 2084 text bar_cells comp_col cur_page cv_frame cv_rect cv_text_r fmt_int lens_strip lz_comp_mark memcpy motion_lock_steps pr_bars pr_follow_bar pr_geom pr_head_col pr_head_step pr_heads pr_held pr_lit pr_row_y pr_src scale_mask st_micro step_ratchet str_cpy text_w trk_index
|
||||
@@ -1249,7 +1249,7 @@ pads_frame 626 text black_held key_place pads_on pads_sig pd_play ui_say
|
||||
pads_knob 120 text
|
||||
pads_leds 116 text black_held key_place pd_state
|
||||
pads_on 54 text cur_page name_on
|
||||
pads_sig 76 text pd_state
|
||||
pads_sig 98 text black_held pd_state
|
||||
page_big 92 text cv_text face_has text_w
|
||||
page_desc 1832 text clay_desc eu_of str_nth track_desc trk_slot tsel_p
|
||||
page_desc_v 298 text
|
||||
|
||||
Reference in new issue
Block a user