Skip to content

Add support for segno reading#134

Open
SemitoneGene wants to merge 1 commit into
webern:mainfrom
SemitoneGene:gene/351
Open

Add support for segno reading#134
SemitoneGene wants to merge 1 commit into
webern:mainfrom
SemitoneGene:gene/351

Conversation

@SemitoneGene

Copy link
Copy Markdown
Contributor

Segno are now read and made available in the public API.

@SemitoneGene

Copy link
Copy Markdown
Contributor Author

I also made a fix to catch.h in cpul that was causing a crash when building on the M1.

@SemitoneGene

Copy link
Copy Markdown
Contributor Author

Coda reading added as well.

@SemitoneGene

Copy link
Copy Markdown
Contributor Author

Added rehearsal reading.

In typical Gene fashion, I just realized all these changes only deal with reading. I am working on getting the writer work done.

@SemitoneGene

Copy link
Copy Markdown
Contributor Author

I stubbed in the writing functions, but need to do some more work to understand the correct way to write the info out. Any help is appreciated!

@webern

webern commented Jan 18, 2023

Copy link
Copy Markdown
Owner

I'll take a look.

@webern

webern commented Jan 18, 2023

Copy link
Copy Markdown
Owner

Your commit history lol 😅

Don't push anything else ATM, I'll fix it.

@webern

webern commented Jan 18, 2023

Copy link
Copy Markdown
Owner

I think I fixed the git history at least. I force pushed to your fork and branch (because you can do that with GitHub, it's crazy).

So, Assuming your fork is at "origin", you should:

cd mx
git remote add upstream git@github.com:webern/mx.git
git checkout master
git fetch upstream master
git reset --hard upstream/master
git push origin -f master
git fetch origin gene/351
git checkout gene/351
git reset --hard origin gene/351

The reading side (DirectionReader, the *Data headers and the
DirectionData vectors) already landed on main, so the rebase reduces
to the writer. Port the per-item write-back for segnos, codas and
rehearsals onto the new core API (DirectionTypeChoice factories taking
OneOrMore<...>). These remain stubs: they emit one empty element per
item and do not yet transfer position, color or text.
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