From 38a63cb34dd18317ceec87397dacd37b6495f84e Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 24 May 2023 16:58:56 -0400 Subject: [PATCH] cfg/gutim_full/gutim.cfg, gutim_perf.cfg : Latest preset_sel cfg format --- src/cwtest/cfg/gutim_full/gutim.cfg | 95 +++++++++++++++++--- src/cwtest/cfg/gutim_full/gutim_perf.cfg | 106 ++++++++++++++++++++--- 2 files changed, 176 insertions(+), 25 deletions(-) diff --git a/src/cwtest/cfg/gutim_full/gutim.cfg b/src/cwtest/cfg/gutim_full/gutim.cfg index fd8281a..6621fcb 100644 --- a/src/cwtest/cfg/gutim_full/gutim.cfg +++ b/src/cwtest/cfg/gutim_full/gutim.cfg @@ -5,7 +5,71 @@ params: { score_fn: "~/src/cwtest/src/cwtest/cfg/gutim_full/score/temp.csv", + //score_fn: "~/temp/shiau_uen_sf/1/play_score.csv", + perfL: { + + "Shiau-uen 0": { + perf_fn: "~/temp/shiau_uen_sf/1/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/1/cm_score.csv" + beg_loc: 323, + end_loc: 397, + }, + + "Shiau-uen 1": { + perf_fn: "~/temp/shiau_uen_sf/5/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/5/cm_score.csv" + beg_loc: 323, + end_loc: 397, + }, + + "Shiau-uen 2": { + perf_fn: "~/temp/shiau_uen_sf/7/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/7/cm_score.csv" + beg_loc: 2547, + end_loc: 2687, + } + + "Shiau-uen 3": { + perf_fn: "~/temp/shiau_uen_sf/11/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/11/cm_score.csv" + beg_loc: 5361, + end_loc: 5686, + }, + + "Shiau-uen 4": { + perf_fn: "~/temp/shiau_uen_sf/13/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/13/cm_score.csv" + beg_loc: 8291, + end_loc: 8553, + }, + + "Shiau-uen 5": { + perf_fn: "~/temp/shiau_uen_sf/17/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/17/cm_score.csv" + beg_loc: 11456, + end_loc: 11584, + }, + + "Shiau-uen 6": { + perf_fn: "~/temp/shiau_uen_sf/23/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/23/cm_score.csv" + beg_loc: 13565, + end_loc: 13728, + }, + + + "Score": { + perf_fn: "~/src/cwtest/src/cwtest/cfg/gutim_full/score/temp.csv", + cm_score_fn: "~/src/cwtest/src/cwtest/cfg/gutim_full/cm_score.csv" + beg_loc: 1, + end_loc: 16534, + }, + + + } + + record_dir: "~/src/cwtest/src/cwtest/cfg/gutim_full/preset_select", //record_fn: "preset_sel_20220423", //record_fn: "preset_sel_20220507", @@ -13,16 +77,23 @@ record_fn_ext: "txt", - flow_proc_dict_fn: "~/src/cwtest/src/cwtest/cfg/gutim_full/flow_proc_dict.cfg", - vel_table_fname: "~/src/cwtest/src/cwtest/cfg/gutim_full/vel_table/vel_table.json" + flow_proc_dict_fn: "~/src/cwtest/src/cwtest/cfg/gutim_full/flow_proc_dict.cfg", + vel_table_fname: "~/src/cwtest/src/cwtest/cfg/gutim_full/vel_table/vel_table.json" vel_table_backup_dir: "~/src/cwtest/src/cwtest/cfg/gutim_full/vel_table/backup" - crossFadeSrate: 48000.0, // TODO: move to flow cfg. and set via 'system default sample rate' + //crossFadeSrate: 48000.0, // TODO: move to flow cfg. and set via 'system default sample rate' crossFadeCount: 3, beg_play_loc: 0, //0, //12431, // coda 11499, end_play_loc: 0, //59, //14726, // coda 12426, + score_follower: { + "cm_score_csv_fname": "~/src/cwtest/src/cwtest/cfg/gutim_full/cm_score.csv", + "search_area_locN": 10, + "key_wnd_locN": 7, + }, + + presets: { preset_labelL: [ "dry", "a", "b", "c", "d", "f1", "f2", "f3", "f4", "g", "ga", "g1a", "g1d" ], default_gain: 1.0, @@ -39,7 +110,7 @@ midi_play_record: { max_midi_msg_count: 32768, - midi_timer_period_micro_sec: 15000, + midi_timer_period_micro_sec: 5000, all_off_delay_ms: 2500, // delay after stop time to turn off all notes log_in_flag: false, log_out_flag: false, @@ -47,8 +118,8 @@ min_damper_down_time_ms: 250, midi_device_list: [ - // piano { + // SAMPLER enableFl: true, midi_out_device: "Fastlane", @@ -78,7 +149,8 @@ }, { - + //SPIRIO + enableFl: true, midi_out_device: "Fastlane", midi_out_port: "Fastlane MIDI A", @@ -122,7 +194,6 @@ scale_chord_notes_factor: 0.5, }, - //{ midi_out_device: "PipeWire-RT-Event", midi_out_port: "input" }, ], } }, @@ -167,7 +238,7 @@ midi: { parserBufByteN: 1024, - asyncFl: false, + asyncFl: true, }, @@ -193,12 +264,12 @@ //device: "USB Audio CODEC USB Audio", device: "HDA Intel PCH CS4208 Analog", - activeFl: true, // (req) - meterFl: true, // (opt) - label: "main", // (req) User label + activeFl: true, // (req) + meterFl: true, // (opt) + label: "main", // (req) User label userId: 0, // (opt) User id (can also be set at runtime) framesPerCycle: 512, // (req) Samples per audio device cycle - cycleCnt: 3, // (req) Count of device cycle buffers. + cycleCnt: 3, // (req) Count of device cycle buffers. inGroup: "main", // (opt) All devices in a group must be 'ready' to source outGroup: "main", // (opt) or sink data before an audio callback is made for that group } diff --git a/src/cwtest/cfg/gutim_full/gutim_perf.cfg b/src/cwtest/cfg/gutim_full/gutim_perf.cfg index aed7dbe..1e94beb 100644 --- a/src/cwtest/cfg/gutim_full/gutim_perf.cfg +++ b/src/cwtest/cfg/gutim_full/gutim_perf.cfg @@ -4,14 +4,76 @@ preset_sel: { params: { - //score_fn: "~/src/cwtest/src/cwtest/cfg/gutim_full/score/temp.csv", - score_fn: "~/temp/shiau_uen_sf/5/play_score.csv", - + score_fn: "~/src/cwtest/src/cwtest/cfg/gutim_full/score/temp.csv", + + + perfL: { + + "Shiau-uen 0": { + perf_fn: "~/temp/shiau_uen_sf/1/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/1/cm_score.csv" + beg_loc: 323, + end_loc: 397, + }, + + "Shiau-uen 1": { + perf_fn: "~/temp/shiau_uen_sf/5/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/5/cm_score.csv" + beg_loc: 323, + end_loc: 397, + }, + + "Shiau-uen 2": { + perf_fn: "~/temp/shiau_uen_sf/7/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/7/cm_score.csv" + beg_loc: 2547, + end_loc: 2687, + } + + "Shiau-uen 3": { + perf_fn: "~/temp/shiau_uen_sf/11/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/11/cm_score.csv" + beg_loc: 5361, + end_loc: 5686, + }, + + "Shiau-uen 4": { + perf_fn: "~/temp/shiau_uen_sf/13/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/13/cm_score.csv" + beg_loc: 8291, + end_loc: 8553, + }, + + "Shiau-uen 5": { + perf_fn: "~/temp/shiau_uen_sf/17/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/17/cm_score.csv" + beg_loc: 11456, + end_loc: 11584, + }, + + "Shiau-uen 6": { + perf_fn: "~/temp/shiau_uen_sf/23/play_score.csv", + cm_score_fn: "~/temp/shiau_uen_sf/23/cm_score.csv" + beg_loc: 13565, + end_loc: 13728, + }, + + + "Score": { + perf_fn: "~/src/cwtest/src/cwtest/cfg/gutim_full/score/temp.csv", + cm_score_fn: "~/src/cwtest/src/cwtest/cfg/gutim_full/cm_score.csv" + beg_loc: 1, + end_loc: 16534, + }, + + + } + + record_dir: "~/src/cwtest/src/cwtest/cfg/gutim_full/preset_select", - //record_fn: "preset_sel_20220423", - //record_fn: "preset_sel_20220507", - record_fn: "unknown", - + //record_fn: "m1_458", + //record_fn: "m279_287-8288_8609" + record_fn: "m357_361-11459_11586" record_fn_ext: "txt", flow_proc_dict_fn: "~/src/cwtest/src/cwtest/cfg/gutim_full/flow_proc_dict.cfg", @@ -21,15 +83,29 @@ //crossFadeSrate: 48000.0, // TODO: move to flow cfg. and set via 'system default sample rate' crossFadeCount: 3, - beg_play_loc: 0, //0, //12431, // coda 11499, - end_play_loc: 0, //59, //14726, // coda 12426, + beg_play_loc: 1, //0, //12431, // coda 11499, + end_play_loc: 16354, //59, //14726, // coda 12426, + live_mode_fl: true, + + enable_recording_fl: true, + midi_record_dir: "~/src/cwtest/src/cwtest/cfg/gutim_full/midi_record", + midi_record_folder: "shiau_uen", + sf_reset_loc: 1, score_follower: { - "score_csv_fname": "~/src/cwtest/src/cwtest/cfg/gutim_full/cm_score.csv", + "enable_flag": true, + "cm_score_csv_fname": "~/src/cwtest/src/cwtest/cfg/gutim_full/cm_score.csv", "search_area_locN": 10, "key_wnd_locN": 7, }, + perf_list: [ + { title:"Shiau-uen 5", file:"~/temp/shiau_uen_sf/5/play_score.csv" }, + { title:"Shiau-uen 6", file:"~/temp/shiau_uen_sf/7/play_score.csv" }, + { title:"Shiau-uen 7", file:"~/temp/shiau_uen_sf/7/play_score.csv" }, + + ] + presets: { preset_labelL: [ "dry", "a", "b", "c", "d", "f1", "f2", "f3", "f4", "g", "ga", "g1a", "g1d" ], @@ -88,19 +164,23 @@ { //SPIRIO - enableFl: true, + enableFl: false, //midi_out_device: "Fastlane", //midi_out_port: "Fastlane MIDI A", //midi_out_device: "MIDIFACE 2x2", //midi_out_port: "MIDIFACE 2x2 Midi Out 2", - midi_out_device: "iRig MIDI 2", - midi_out_port: "iRig MIDI 2 MIDI 1", + //midi_out_device: "iRig MIDI 2", + //midi_out_port: "iRig MIDI 2 MIDI 1", //midi_out_device: "PC-300", //midi_out_port: "PC-300 MIDI 1", + midi_out_device: "PipeWire-RT-Event", + midi_out_port: "input", + + // p4- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 //vel_table: [ 1, 3, 5, 7, 9 , 12, 15, 18, 22, 26, 30, 34, 36, 40, 44, 48, 52, 56, 60, 64, 66, 72, 76, 80, 83 ]