-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
146 lines (132 loc) · 3 KB
/
Copy pathtypes.ts
File metadata and controls
146 lines (132 loc) · 3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
export interface SequencerStep {
active: boolean;
accent?: boolean;
probability: number; // 0.0 to 1.0
velocity: number; // 0.0 to 1.0
}
export enum InstrumentType {
KICK = 'kick',
SNARE = 'snare',
HIHAT_CLOSED = 'hihat_closed',
HIHAT_OPEN = 'hihat_open',
BASS_FM = 'bass_fm',
TOM_LOW = 'tom_low',
TOM_MID = 'tom_mid',
TOM_HIGH = 'tom_high',
RIM_SHOT = 'rim_shot',
HAND_CLAP = 'hand_clap',
CRASH = 'crash',
RIDE = 'ride',
// Melodic Types V1
LEAD_SQUARE = 'lead_square',
PAD_SAW = 'pad_saw',
PLUCK_SINE = 'pluck_sine',
ACID_303 = 'acid_303',
// Melodic Types V2
BASS_SUB_808 = 'bass_sub_808',
LEAD_PWM = 'lead_pwm',
PAD_CHOIR = 'pad_choir',
ARP_PLUCK = 'arp_pluck',
FX_GLITCH = 'fx_glitch',
// V3 Instruments
PAD_ETHEREAL = 'pad_ethereal'
}
export interface TrackParams {
volume: number; // 0.0 to 1.0
decay: number;
pitch: number;
tone: number;
filterCutoff: number; // Frequency in Hz
}
export interface Track {
id: string;
name: string;
type: InstrumentType;
steps: SequencerStep[]; // Array of 16 steps
mute: boolean;
solo: boolean;
pan: number; // -1.0 to 1.0
params: TrackParams;
}
export interface Pattern {
id: string;
name: string;
tracks: Track[];
}
export interface SequencerState {
bpm: number;
swing: number; // 0.0 to 1.0
playing: boolean;
currentStep: number;
activePatternId: string;
nextPatternId: string | null; // For Ableton-style queuing
patterns: Record<string, Pattern>; // The Session View Grid
tracks: Track[]; // Cache of currently active tracks
timeSignature: number; // Steps per bar (default 16)
}
export interface TelemetryData {
cpuTemp: number | null;
npuLoad: number | null;
pcieLaneUsage: number | null;
memoryUsage: number | null;
}
export interface ProvenanceRecord {
hash: string;
timestamp: number;
blockHeight: number;
signature: string;
rmpProof?: RecursiveMerkleProof;
rnpe2?: Rnpe2Verification;
}
export interface RecursiveMerkleProof {
version: 'RMP-1';
root: string;
stateHash: string;
leafCount: number;
depth: number;
frontier: string[];
}
export interface Rnpe2Verification {
profile: 'RNPE-2';
consensusBlock: number;
proofRoot: string;
verified: boolean;
}
export interface MinimaTransaction {
txId: string;
timestamp: string;
txn: {
inputs: any[];
outputs: any[];
state: Record<string, string>; // Minima State Variables (0-255)
};
}
export interface PrismState {
active: boolean;
stems: {
vocals: number;
drums: number;
bass: number;
other: number;
};
drumIsolation: boolean;
rate: number;
detune: number;
loop: boolean;
}
export interface HiveState {
active: boolean;
role: 'MASTER' | 'SLAVE';
rssi: number; // Signal strength -120 to 0
peers: number;
latency: number; // ms
}
declare global {
interface Window {
MDS: {
cmd: (command: string, callback: (resp: any) => void) => void;
init: (callback: (msg: any) => void) => void;
log: (msg: string) => void;
};
}
}