@k-l-lambda/lilylet 0.1.64 → 0.1.65

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.
@@ -205,16 +205,7 @@ case 44:
205
205
  this.$ = markupEvent($$[$0].slice(1, -1));
206
206
  break;
207
207
  case 45:
208
-
209
- // On newline, reset ottava to 0 if it's non-zero (like pitch base resets)
210
- if (currentOttava !== 0) {
211
- const ottavaReset = contextChange({ ottava: 0 });
212
- currentOttava = 0;
213
- this.$ = [ottavaReset, { type: 'pitchReset' }];
214
- } else {
215
- this.$ = { type: 'pitchReset' };
216
- }
217
-
208
+ this.$ = { type: 'pitchReset' };
218
209
  break;
219
210
  case 46: case 47:
220
211
  currentDuration = $$[$0-1]; this.$ = noteEvent($$[$0-2], $$[$0-1], $$[$0]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-l-lambda/lilylet",
3
- "version": "0.1.64",
3
+ "version": "0.1.65",
4
4
  "description": "Lilylet is a lilyopnd-like sheet music language designed for Markdown rendering and symbolic music representation in AIGC applications.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -205,16 +205,7 @@ case 44:
205
205
  this.$ = markupEvent($$[$0].slice(1, -1));
206
206
  break;
207
207
  case 45:
208
-
209
- // On newline, reset ottava to 0 if it's non-zero (like pitch base resets)
210
- if (currentOttava !== 0) {
211
- const ottavaReset = contextChange({ ottava: 0 });
212
- currentOttava = 0;
213
- this.$ = [ottavaReset, { type: 'pitchReset' }];
214
- } else {
215
- this.$ = { type: 'pitchReset' };
216
- }
217
-
208
+ this.$ = { type: 'pitchReset' };
218
209
  break;
219
210
  case 46: case 47:
220
211
  currentDuration = $$[$0-1]; this.$ = noteEvent($$[$0-2], $$[$0-1], $$[$0]);
@@ -460,16 +460,7 @@ markup_event
460
460
  ;
461
461
 
462
462
  pitch_reset_event
463
- : NEWLINE %{
464
- // On newline, reset ottava to 0 if it's non-zero (like pitch base resets)
465
- if (currentOttava !== 0) {
466
- const ottavaReset = contextChange({ ottava: 0 });
467
- currentOttava = 0;
468
- $$ = [ottavaReset, { type: 'pitchReset' }];
469
- } else {
470
- $$ = { type: 'pitchReset' };
471
- }
472
- %}
463
+ : NEWLINE -> { type: 'pitchReset' }
473
464
  ;
474
465
 
475
466
  note_event