Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Cairo to JSON #31

Open
caseywescott opened this issue Nov 14, 2023 · 5 comments
Open

feat: Cairo to JSON #31

caseywescott opened this issue Nov 14, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request ODHack

Comments

@caseywescott
Copy link
Collaborator

A suite of functions mapping Cairo Midi msgs to JSON object for web retrieval.

Functions that format the following messages to JSON:

NOTE_ON
NOTE_OFF
SET_TEMPO
TIME_SIGNATURE
CONTROL_CHANGE
PITCH_WHEEL
AFTER_TOUCH
POLY_TOUCH

These functions can then be used create a function 'midi_to_json' that iterates through Midi msgs and formats them to create the complete JSON object.

@caseywescott caseywescott added the enhancement New feature or request label Nov 14, 2023
@caseywescott caseywescott self-assigned this Nov 14, 2023
@caseywescott
Copy link
Collaborator Author

I'm cobbling together a rough cut of cairo-to-json Here. I have all of the necessary components for each message but need to serialize the values. Would a ByteArray be best? I took a quick look at the 'format!' macro and am hoping that could do the trick to simplify the code but I think it's unavailable in scarb/cairo 2.3.0. Have you used 'format!' for serializing?

@vibenedict
Copy link

Hi @caseywescott , I would like to try this out.

@caseywescott
Copy link
Collaborator Author

caseywescott commented Mar 23, 2024 via email

@caseywescott
Copy link
Collaborator Author

caseywescott commented Mar 23, 2024 via email

@caseywescott
Copy link
Collaborator Author

Just Assigned to you @vibenedict !!! Stoked! Let me know if you have any questions!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ODHack
Projects
None yet
Development

No branches or pull requests

2 participants