From 6d59d652fdc38d26f2dee71371022bc2e4131998 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 27 Dec 2024 15:27:21 -0500 Subject: [PATCH] flow/proc_dict.cfg : Added 'trig' to poly_xform_ctl. --- flow/proc_dict.cfg | 48 +++++----------------------------------------- 1 file changed, 5 insertions(+), 43 deletions(-) diff --git a/flow/proc_dict.cfg b/flow/proc_dict.cfg index 4d6787a..a027964 100644 --- a/flow/proc_dict.cfg +++ b/flow/proc_dict.cfg @@ -797,12 +797,13 @@ } poly_xform_ctl: { - doc: ["When frag_id changes route "], + doc: ["On 'trigger' mix and route all incoming audio to the next available output channel "], vars: { out_ch_cnt:{ type:uint, flags:["init"], doc:"Count of audio output channels."}, in: { type:audio, flags:["src","mult"], doc:"Audio input." }, midi: { type:midi, flags:["mult"], doc:"Per audio channel MIDI message from poly_voice_ctl." }, donefl: { type:bool, flags["mult"], doc:"Per audio channel voice 'available' flags." }, + trig: { type:all, doc:"Trigger to advance to next channel."}, out_ch_idx:{ type:uint, value:0, doc:"Transform preset id. Change indicates that successive notes should go to a new output." }, out: { type:audio, flags:["mult"] doc:"Audio output."}, } @@ -860,53 +861,14 @@ doc:[ "Given a score location return a preset id and record."], vars: { cfg: { type:cfg, flags:["init"], preset:"init", doc:"Initial preset configuration." }, - preset_proc: { type:string, flags:["init"], value:"", doc:"Proc containing a network to search for preset label->value mappings." }, - xf_cnt: { type:uint, flags:["init"], value:3, doc:"Transform channel count." }, + //xf_cnt: { type:uint, flags:["init"], value:3, doc:"Transform channel count." }, in: { type:record, fmt:{ required:["loc"]} doc:"Input record with 'loc' field." }, fname: { type:string, flags:["init"], value:"", doc:"Preset file name."}, - loc: { type:uint, value:0, doc:"Seek to location." }, + loc: { type:uint, value:0, doc:"Seek to this location." }, - out_idx: { type:uint, value:0, doc:"Transform output index." }, + //out_idx: { type:uint, value:0, doc:"Transform output index." }, preset_label: { type:string, value:"", doc:"Preset label to apply." } - /* - xf_args: { type:record, flags["mult"], doc:"Transform parameter record." - fmt: { - fields: { - pva: { type:group, doc:"Phase vocoder parameters", - fields: { - hopSmpN: { type: uint, doc:"Hop sample count." }, - wndSmpN: { type: uint, doc:"Window sample count." }, - } - } - sd: { type:group, doc:"Spectrum distortion parameters.", - fields: { - bypass: { type:bool, value:false, doc:"Copy input direcly to output." }, - ceiling:{ type:coeff, value:30.0, doc:"Ceiling parameter." }, - expo: { type:coeff, value: 2.0, doc:"Exponent parameter." }, - thresh: { type:coeff, value:54.0, doc:"Threshold parameter." }, - upr: { type:coeff, value:-0.7, doc:"Upper slope parameter." }, - lwr: { type:coeff, value: 2.0, doc:"Lower slope parameter." }, - mix: { type:coeff, value: 0.0, doc:"Basic/bump mix parameter."}, - } - } - cmp: { type:group, doc:"Dynamics compreessor parameters", - fields: { - bypass: { type:bool, value:false, doc:"Bypass the compressor."}, - igain: { type:coeff, value: 1.0, doc:"Input gain."}, - thresh: { type:coeff, value: 90.0, doc:"Attack threshold in dB."}, - ratio: { type:coeff, value: 2.0, doc:"Compression ratio."}, - atk_ms: { type:coeff, value: 20.0, doc:"Attack time in milliseconds."}, - rls_ms: { type:coeff, value: 20.0, doc:"Release time in milliseconds."}, - wnd_ms: { type:coeff, value: 200.0, doc:"RMS calc. window length in milliseconds."}, - maxWnd_ms: { type:coeff, value: 1000.0, doc:"Maximim (allocated) window length in milliseconds."}, - ogain: { type:coeff, value: 1.0, doc:"Output gain."}, - } - } - } - } - } - */ } presets: {