euterpe 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "euterpe",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "A browser framework for real-time interactive music agents: write the agent's hooks and YAML, Euterpe does MIDI and audio input, the clock, quantization, samplers and the UI.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -65,11 +65,19 @@
65
65
  "inKey": {"type": "boolean", "description": "ONNX: pitches only from the current key's scale (the agent's key estimate)."}
66
66
  }
67
67
  },
68
+ "mixer": {
69
+ "type": "object",
70
+ "additionalProperties": false,
71
+ "properties": {
72
+ "open": {"type": "boolean", "description": "Show the mixer panel when the page opens (default false: its button opens it)."}
73
+ }
74
+ },
68
75
  "monitor": {
69
76
  "type": "object",
70
77
  "additionalProperties": false,
71
78
  "properties": {
72
79
  "status": {"type": "boolean"},
80
+ "open": {"type": "boolean", "description": "Show the monitor panel when the page opens (default false: its button opens it)."},
73
81
  "title": {"type": "string"},
74
82
  "structure": {
75
83
  "type": ["array", "null"],
@@ -293,8 +293,12 @@ export default {
293
293
  if (vm.showMonitor) {
294
294
  console.debug('MA DEN EPREPE');
295
295
  vm.$root.$refs.monitor.loadMonitorConfig(vm.config.gui.monitor);
296
+ // closed until its button is pressed, unless gui.monitor.open
297
+ vm.$root.$refs.monitor.pane.hidden = !vm.config.gui.monitor.open;
296
298
  }
297
299
  vm.$root.$refs.mixer.loadMixerConfig(vm.config.players);
300
+ // closed until its button is pressed, unless gui.mixer.open
301
+ vm.$root.$refs.mixer.pane.hidden = !vm.config.gui.mixer?.open;
298
302
 
299
303
  /*
300
304
  * Loading Animation: set initial status of both div
package/types/config.d.ts CHANGED
@@ -241,8 +241,18 @@ export interface WidgetsYaml {
241
241
  */
242
242
  inKey?: boolean;
243
243
  };
244
+ mixer?: {
245
+ /**
246
+ * Show the mixer panel when the page opens (default false: its button opens it).
247
+ */
248
+ open?: boolean;
249
+ };
244
250
  monitor?: {
245
251
  status?: boolean;
252
+ /**
253
+ * Show the monitor panel when the page opens (default false: its button opens it).
254
+ */
255
+ open?: boolean;
246
256
  title?: string;
247
257
  structure?:
248
258
  | {