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

Handle MIDI channels greater than 16 in score objects #323

Closed
j-bresson opened this issue Mar 26, 2022 · 9 comments
Closed

Handle MIDI channels greater than 16 in score objects #323

j-bresson opened this issue Mar 26, 2022 · 9 comments
Labels
MIDI About MIDI system and features

Comments

@j-bresson
Copy link
Member

Or prevent from setting them.

Currently it is possible to set any number through the inputs, but then so,e draw functionality crash (like drawing durations, or anything requiring the MIDI channel color)

@j-bresson
Copy link
Member Author

j-bresson commented Mar 26, 2022

See cac-t-u-s/om-sharp-users#57

@j-bresson j-bresson added the MIDI About MIDI system and features label Mar 26, 2022
@charlesneimog
Copy link

If I could suggest something,

One option that would not just solve the problem of MIDI but some others is to open a new inlet with extras-data. I initially thought this was the function of the extras inlets. Instead of using the lchan to define pathnames (In my use and compositional things), I could use the extras-data.

In this extra inlet, the user could define things like ties cited on #102. Of course, the render function will not do anything with this informations.

I know this comment has a very personal bias rsrs.

@j-bresson
Copy link
Member Author

This is what extras are for, in principle. Maybe they're just not flexible enough?
For your case (pathnames) couldn't you just use TEXT-EXTRA?

@charlesneimog
Copy link

Hmmm, I had not understood that! I am sorry.

For some reason, I was thinking that all data in "extra inlet" was related with render something in the score.

Sorry again!

@j-bresson
Copy link
Member Author

Yes, the text-extra is rendered in the score (as a text attached to a given score element).
But you can also use it to hold some information...
Does it work for you now?

@charlesneimog
Copy link

Yes, it works!

Just one question, if I use some class like my-extras and add it in extras inlet. Could it provide some problem? Or the functions to draw the score will always ignore it?

@j-bresson
Copy link
Member Author

It should be no problem. Have you tried?

@charlesneimog
Copy link

Yes, it works!

So, sorry for my comment. I had not understood the extras inlet.

@j-bresson
Copy link
Member Author

1ff2368

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MIDI About MIDI system and features
Projects
None yet
Development

No branches or pull requests

2 participants