Playback for live playing? #268
-
Hello, and first of all thank you for your wonderful work on this project. So right now I'm just sending note on events like this: Instead of that, I would like to make use of your classes such as Note and pass that to a Playback or some other object that would send the Note On message immediately and deal with the Note Off message when the time came. I'm doing that right now with my own classes, but almost certainly more poorly than your library does. I'd also like to use Playback's timers to keep Tempo and send events at 16th or 64th note intervals so my system would keep time better than it does now. Of course this would allow me to use your Music Theory classes and other tools which seem very useful for me. So I suppose what I'm asking is a different kind of Pattern that I do not prepare before hand with notes but add notes (and other events) as a Playback is playing the Pattern. Does this seems feasible on DryWetMidi? Is there already a way to do something like this that I'm not seeing? Thanks again for your work on this library. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi,
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
});
Unfortunately there is no way to add objects into As for sending a single var playback = new[] { note }.GetPlayback(...);
playback.Start(); Thanks, |
Beta Was this translation helpful? Give feedback.
Hi,
No, this is how a channel should be set. You can of course use object initialization of C#:
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:Thanks,
Max