Skip to content

Playback for live playing? #268

Answered by melanchall
brkl asked this question in Q&A
Aug 2, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi,

Is there a better way to change the midi channel?

No, this is how a channel should be set. You can of course use object initialization of C#:

midiOut.SendEvent(new NoteOnEvent(pitch.NoteNumber, (SevenBitNumber)vol)
{
    Channel = (FourBitNumber)channel
});

Does this seems feasible on DryWetMidi? Is there already a way to do something like this that I'm not seeing?

Unfortunately there is no way to add objects into Playback on the fly. There is the issue about that, but I have no plans currently to work on it.

As for sending a single Note, it's possible:

var playback = new[] { note }.GetPlayback(...);
playback.Start();

Thanks,
Max

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brkl
Comment options

Answer selected by brkl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Just question about the library
2 participants