0.10.0 • Published 4 months ago

@strudel.cycles/transpiler v0.10.0

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
github
Last release
4 months ago

@strudel.cycles/transpiler

DEPRECATION NOTE: This package is old and won't get any updates! The newer version goes by the name of @strudel/transpiler.

This package contains a JS code transpiler with the following features:

  • add locations of mini notation strings (double quoted or backticked) for highlighting
  • converts pseudo note variables to note strings
  • adds return statement to the last expression

Install

npm i @strudel.cycles/transpiler

Use

import { transpiler } from '@strudel.cycles/core';
import { evaluate } from '@strudel.cycles/core';

transpiler('note("c3 [e3,g3]")', { wrapAsync: false, addReturn: false, simpleLocs: true });
/* mini('c3 [e3,g3]').withMiniLocation(7,17) */

evaluate(note('c3 [e3,g3]'), transpiler); // returns pattern of above code
0.10.0

4 months ago

0.9.0

8 months ago

0.8.2

10 months ago

0.8.1

1 year ago

0.8.0

1 year ago

0.7.1

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.5.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.2

2 years ago

0.3.1

2 years ago