Skip to content

Add createEmptyChart() counterpart to parseChartAndIni - #68

Open
elicwhite wants to merge 1 commit into
masterfrom
create-empty-chart
Open

Add createEmptyChart() counterpart to parseChartAndIni#68
elicwhite wants to merge 1 commit into
masterfrom
create-empty-chart

Conversation

@elicwhite

Copy link
Copy Markdown
Owner

Builds a minimal valid ParsedChart from scratch: default 480 resolution,
120 BPM at tick 0, 4/4 time signature at tick 0, empty tracks/sections/
metadata/vocal parts/unrecognized events. chartBytes defaults to an empty
Uint8Array (no source bytes), format defaults to 'chart', iniChartModifiers
to the library defaults.

Options let callers override resolution, bpm, timeSignature, and format.

Useful for programmatic chart generation (e.g. downstream code that builds
charts up from scratch rather than parsing source bytes).

Comment thread src/chart/create-chart.ts
Comment thread src/__tests__/create-chart.test.ts
@elicwhite
elicwhite force-pushed the create-empty-chart branch from 42d80e2 to c28bbd2 Compare April 20, 2026 05:09
@elicwhite
elicwhite force-pushed the shared-natural-hopo-helpers branch 2 times, most recently from 2626335 to f850ad9 Compare April 20, 2026 05:10
@elicwhite
elicwhite force-pushed the create-empty-chart branch 2 times, most recently from c6f1e16 to 0b28f17 Compare April 20, 2026 05:19
Comment thread src/chart/create-chart.ts
@elicwhite
elicwhite force-pushed the shared-natural-hopo-helpers branch from f850ad9 to ec22459 Compare April 21, 2026 04:29
@elicwhite
elicwhite force-pushed the create-empty-chart branch from 0b28f17 to 531bbdf Compare April 21, 2026 04:29
@elicwhite
elicwhite deleted the branch master April 21, 2026 04:55
@elicwhite elicwhite closed this Apr 21, 2026
@elicwhite elicwhite reopened this Apr 21, 2026
@elicwhite
elicwhite changed the base branch from shared-natural-hopo-helpers to master April 21, 2026 04:57
@elicwhite
elicwhite force-pushed the create-empty-chart branch from 531bbdf to a3c4753 Compare April 21, 2026 05:06
@elicwhite
elicwhite changed the base branch from master to graphite-base/68 April 21, 2026 16:51
@elicwhite
elicwhite force-pushed the create-empty-chart branch from a3c4753 to d6f9c4f Compare April 21, 2026 16:51
@elicwhite
elicwhite changed the base branch from graphite-base/68 to add-file-type April 21, 2026 16:51
@elicwhite
elicwhite changed the base branch from add-file-type to master April 21, 2026 23:00
Builds a minimal valid ParsedChart from scratch: default 480 resolution,
120 BPM at tick 0, 4/4 time signature at tick 0, empty tracks/sections/
metadata/vocal parts/unrecognized events. chartBytes defaults to an empty
Uint8Array (no source bytes), format defaults to 'chart', iniChartModifiers
to the library defaults.

Options let callers override resolution, bpm, timeSignature, and format.

Useful for programmatic chart generation (e.g. downstream code that builds
charts up from scratch rather than parsing source bytes).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants