flow/proc_dict.cfg : Change score_player and poly_voice_ctl to communicate via a 'midi' field in a record.

This commit is contained in:
kevin 2024-11-25 10:05:33 -05:00
parent 0e8e06c48d
commit 81aa9ada7d

View File

@ -705,7 +705,7 @@
vars: { vars: {
in: { type:midi, doc:"MIDI input."}, in: { type:record, doc:"MIDI input."},
voice_cnt: { type:uint, value:3, flags:["init"], doc:"Count of voices." }, voice_cnt: { type:uint, value:3, flags:["init"], doc:"Count of voices." },
out: { type:midi, flags:["mult"], doc:"MIDI output to voices. One per voice." }, out: { type:midi, flags:["mult"], doc:"MIDI output to voices. One per voice." },
done_fl: { type:bool, value:false, flags:["mult"], doc:"Voice available feedback triggers from voices. One per voice."}, done_fl: { type:bool, value:false, flags:["mult"], doc:"Voice available feedback triggers from voices. One per voice."},
@ -786,21 +786,36 @@
fname: { type:string, flags:["init"], value:"", doc:"Score file name." }, fname: { type:string, flags:["init"], value:"", doc:"Score file name." },
vel_tbl_fname:{ type:string, flags:["init"], value:"", doc:"Velocity table filename as create by vwVelTableTuner." }, vel_tbl_fname:{ type:string, flags:["init"], value:"", doc:"Velocity table filename as create by vwVelTableTuner." },
vel_tbl_label:{ type:string, value:"", doc:"Name of the active velocity table referenced by 'vel_fname."}, vel_tbl_label:{ type:string, value:"", doc:"Name of the active velocity table referenced by 'vel_fname."},
out: { type:midi, doc:"MIDI output." }, //out: { type:midi, doc:"MIDI output." },
loc: { type:uint, value:0, doc:"Score location output." }, loc: { type:uint, value:0, doc:"Score location output." },
done_fl: { type:bool, value:false, doc:"Emits true on done." }, done_fl: { type:bool, value:false, doc:"Emits true on done." },
out: { type:record, doc:"Score event record.",
fmt: {
fields: {
midi: { type:midi, doc:"MIDI channel event message" },
loc: { type:uint, value:-1, doc:"Score location id." },
meas: { type:uint, value:-1, doc:"Score measure." }
}
}
}
}
} }
}
// out: { type:record // out: { type:record
// value: { // fmt: {
// midi: { type:midi, doc:"MIDI channel event message."}, // fields: {
// loc: { type:uint, value:-1, doc:"Score location id."}, // midi: { type:midi, doc:"MIDI channel event message."},
// meas: { type:uint, value:-1, doc:"Score measure location."} // loc: { type:uint, value:-1, doc:"Score location id."},
// }, // meas: { type:uint, value:-1, doc:"Score measure location."}
// doc:"Score event messages." // blah: { type:group, doc:"My group"
// }, // fields: {
// foo: { type:float, value:3, doc:"Three, always three"}
// }
// }
// }
// }
/*
midi_to_msg: { midi_to_msg: {
doc:[ "Convert MIDI event to the 'messages'." ] doc:[ "Convert MIDI event to the 'messages'." ]
vars: { vars: {
@ -810,6 +825,7 @@
out: { type:record, doc:"MIDI input converted to records in the 'midi' field and blank extra fields named according to 'fields'." } out: { type:record, doc:"MIDI input converted to records in the 'midi' field and blank extra fields named according to 'fields'." }
} }
} }
*/
score_follower: { score_follower: {
doc:[ "MIDI score follower: Sets the 'loc' field of the output record according to the score location." ] doc:[ "MIDI score follower: Sets the 'loc' field of the output record according to the score location." ]