MixNode
One node on the canvas.
kindsays what it is and which of the fields beside it count
Attributes (20)
| Attribute | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique in the flow |
kind | 'picks' | 'onAir' | 'block' | 'split' | 'limitShare' | 'limitCount' | 'noRepeat' | 'merge' | 'require' | 'timeSwitch' | Yes | picks is what the station proposes and onAir what may air. block keeps the named bands off. split sends each record down the first branch it matches. limitShare and limitCount hold records past an amount of what has passed through them. noRepeat holds a record when the last record aired also passed through it. merge joins wires. require adds a record when due. timeSwitch is a number that changes at an hour |
bands | string[] | No | block: the bands it keeps off, matched by name, ignoring case |
splitBy | 'genre' | 'artist' | 'decade' | 'hour' | 'showProgress' | 'lastGenre' | 'judged' | 'energy' | No | split: what it reads. genre is the band's main genre, which matches a branch's value or anything that refines it, so "black metal" takes "Norwegian black metal". hour and showProgress (a percent of the show) match a branch's range. energy is the record's measured energy as a third of the station's library, low, medium or high; a record not measured yet matches no branch. judged is the model's stored answer to question, yes or no, asked once per record and kept; a record not answered yet is held at the split and waits a refill while the model is asked |
branches | MixBranch[] | No | split: its outputs in order, before the last output, "everything else" |
question | string | No | split by judged: what the model is asked about each record, once |
percent | number | No | limitShare: at most this percent of the counted records in each per may pass through it. A number wired into its input 1 wins over this |
count | number | No | limitCount: at most this many records in each per may pass through it |
per | 'show' | 'hour' | No | limitShare and limitCount: what the amount is counted over. Absent is show |
requireGenres | string[] | No | require: the main genres that satisfy it |
requireMode | 'any' | 'each' | No | require: any is due until one record of any of requireGenres has aired in the show, each until one of each has. Absent is any |
songs | MixSong[] | No | require: the records it adds, the one aired longest ago first. Absent or empty adds a library record of a required genre |
afterPercent | number | No | require: not due before this percent of the show has gone. Absent is 0 |
fromHour | number | No | timeSwitch: the hour on the station's clock it changes at |
thenValue | number | No | timeSwitch: its value from fromHour to the end of the show |
elseValue | number | No | timeSwitch: its value before fromHour |
bypassed | boolean | No | Switched off without being taken out: it judges nothing, counts nothing and tells the model nothing, and its wires still have to be whole. A Block, a limit or No two in a row lets every record through, a Split sends every record down "everything else", a Require never falls due and a Time switch leaves its limit on its own percent. Picks, On air and Merge cannot be bypassed. Absent is no |
fromBrief | string | No | The phrase of the brief this node was drafted from, shown on the canvas. Nothing reads it |
x | number | No | Where the canvas draws it. Nothing else reads it |
y | number | No |