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

Allow Add System Exclusive Messages to Track #42

Open
tcdw opened this issue Sep 9, 2023 · 5 comments
Open

Allow Add System Exclusive Messages to Track #42

tcdw opened this issue Sep 9, 2023 · 5 comments

Comments

@tcdw
Copy link

tcdw commented Sep 9, 2023

On one of projects I am working on, I want to add MIDI system exclusive messages for my custom need; however, there are no way of adding that (at least officially).

After reading the source code, I found it's able to pass a object with toBytes function. So, I am using this workaround:

// add GM reset
track.addEvent({
    toBytes() {
        // Channel 1 (1 byte), message start (1 byte), message length (1 byte), message (5 bytes)
        return [0x00, 0xF0, 0x05, 0x7E, 0x7F, 0x09, 0x01, 0xF7];
    },
}); // add `as any` before the right parentheses if you using TypeScript

It would be much appreciated to add this function officially, since sometimes MIDI sysex is still need to be used.

@walmik
Copy link
Contributor

walmik commented Sep 9, 2023

I m curious to know how do you use this? Do you generate a midi file and play that in a DAW to transmit sysex?

@tcdw
Copy link
Author

tcdw commented Sep 9, 2023

I m curious to know how do you use this? Do you generate a midi file and play that in a DAW to transmit sysex?

Because I want to generate MIDI that using some of Yamaha XG's exclusive features (for instance, echo and aftertouch) and being able play instantly on MIDI players.

I admit it sounds like a XY Problem, since I am making a purely hobby project.

@walmik
Copy link
Contributor

walmik commented Sep 9, 2023

I too have a hobby project and it depends on jsmidgen. I d like sysex support too! In my usecase I want to send sysex to Disting Ex to manipulate it's settings. These are not musical setting such as aftertouch, instead they are settings of the various algorithms on it.

@dingram
Copy link
Owner

dingram commented Sep 9, 2023

Maybe I should pick the project up again 🤔

@walmik
Copy link
Contributor

walmik commented Sep 10, 2023

Absolutely!

A TS rewrite that exports ES module would be a great next plan too!

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

No branches or pull requests

3 participants