supersonic-scsynth 0.1.8 → 0.2.0

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/README.md CHANGED
@@ -21,11 +21,11 @@ A WebAssembly port of SuperCollider's scsynth audio synthesis engine for the bro
21
21
  await sonic.loadSynthDefs(['sonic-pi-beep']);
22
22
 
23
23
  // Trigger the synth
24
- sonic.send('/s_new', 'sonic-pi-beep', -1, 0, 1, 'note', 60);
24
+ sonic.send('/s_new', 'sonic-pi-beep', -1, 0, 0, 'note', 60);
25
25
 
26
26
  // Load and play a sample
27
27
  sonic.send('/b_allocRead', 0, 'bd_haus.flac');
28
- sonic.send('/s_new', 'sonic-pi-basic_mono_player', -1, 0, 1, 'buf', 0);
28
+ sonic.send('/s_new', 'sonic-pi-basic_mono_player', -1, 0, 0, 'buf', 0);
29
29
  </script>
30
30
  ```
31
31
 
@@ -90,7 +90,7 @@ const sonic = new SuperSonic({
90
90
  **Common OSC commands:**
91
91
  ```javascript
92
92
  sonic.send('/notify', 1); // Enable notifications
93
- sonic.send('/s_new', 'synth-name', -1, 0, 1); // Create synth
93
+ sonic.send('/s_new', 'synth-name', -1, 0, 0); // Create synth
94
94
  sonic.send('/n_set', 1000, 'freq', 440.0, 'amp', 0.5); // Set parameters
95
95
  sonic.send('/n_free', 1000); // Free node
96
96
  sonic.send('/b_allocRead', 0, 'sample.flac'); // Load audio buffer
@@ -163,7 +163,7 @@ dist/
163
163
  └── workers/
164
164
  ├── scsynth_audio_worklet.js # AudioWorklet processor
165
165
  ├── osc_in_worker.js # OSC input handler
166
- ├── osc_out_worker.js # OSC output handler
166
+ ├── osc_out_prescheduler_worker.js # OSC pre-scheduler (timers & tag cancellation)
167
167
  └── debug_worker.js # Debug logger
168
168
  ```
169
169