trig.c
trig.c
1. Trig Top
2. Trig Data
2.1. WIP Trig Data Contents
2.1.1. Trig Monome State Data
2.1.2. Trig VM
2.1.3. Last Selected cell
2.1.4. Selected Cell
2.1.5. Wire Event Stacks
2.1.6. Clock event stacks
2.1.7. Reset State
2.1.8. Please Reset
2.1.9. Drawing States
2.2. DONE Trig Typedef Declaration
2.3. DONE Trig Data Allocation/Initialization
2.4. DONE Trig Data Cleanup
3. Trig Helper Functions
3.1. DONE Display Position
3.2. WIP Redraw
3.3. WIP Select Cell
3.4. WIP Toggle Bit
3.5. DONE Updating the display
4. Trig Runtime Initialization
5. Trig Type Flag
5.1. Typeflag Declaration
5.2. Setting the trig type
5.3. Check if page is trig type
6. Trig Page Creation
6.1. DONE Trig Creation Main
6.2. DONE Trig Set Typeflag
6.3. DONE Trig Open
6.4. DONE Trig Free
6.5. DONE Trig Press Callback
6.6. TODO Trig Turn Callback
6.7. TODO Trig Push Callback
6.8. TODO Trig Delta Callback
7. Grid Interaction
8. Trig State Management
8.1. Schema Contents
8.1.1. Cell Pool
8.1.1.1. DONE cell pool schema entry
8.1.1.2. TODO msgpack generation (WIP)
8.1.1.2.1. WIP Write
8.1.1.2.2. DONE Read
8.1.1.3. DONE saving cell pool blob
8.1.1.4. DONE reading cell pool blob
8.1.2. Program Start Position
8.1.2.1. DONE Start Position Schema Entry
8.1.2.2. DONE Reading Start Position
8.2. Trig Schema Generation
8.3. Trig State Save
8.4. Trig State Load
9. WIP Trig Graforge Nodes
9.1. Handling sample-accuracy
9.2. Trig Clock (trigclk)
9.2.1. Trigclk Node Function
9.2.2. Trigclk Compute
9.2.3. Trigclk Destroy
9.3. Trig Execute (trigex)
9.3.1. Trigex Node Function
9.3.2. Trigex Compute
9.3.2.1. Overview
9.3.2.2. Setting wires at audio rate
9.3.2.3. What happens if the VM writes to cable more than once?
9.3.2.4. The Callback Itself
9.3.3. Trigex Destroy
9.4. WIP Wire Get (trigwget)
9.4.1. Trigwget Node Function
9.4.2. Trigwget Compute
9.4.3. Trigwget Destroy
9.5. TODO Wire Set (trigwset)
9.6. WIP Trig Re-Execute (trigrex)
9.6.1. Trigrex Node Function
9.6.2. Trigrex Compute
9.6.3. Trigrex Destroy
10. WIP Trig Runt Words
10.1. DONE Runt Loader
10.2. DONE Trigclk Word
10.3. Trigex Word
10.4. Trigwget Word
10.5. Trigrex Word
11. WIP Trig Scheme Functions
11.1. DONE Trig Scheme Loader
11.2. DONE Create Trig Page
11.3. DONE Goto Pool Position
11.4. TODO Set Cell
11.5. TODO Cell Bit Toggle
11.6. TODO Cell Bit Set
11.7. Reset