Class NoteEmitter
- Namespace
- Sigil.Sound
- Assembly
- Sigil.Sound.Notes.dll
Gathers the notes a raw function makes from one note; see Sigil.Sound.NoteStream.SelectMany(Sigil.Sound.NoteExpander).
public sealed class NoteEmitterInheritance
Inherited Members
Remarks
One emitter is reused for every note, so it is only valid during the call that receives it.
Fields
Capacity
The most notes one note can turn into. Notes past this are dropped.
public const int Capacity = 16Field Value
Methods
Add(NoteEvent)
Adds a note to the output. Only the pitch, velocity, cents and channel are used: the kind is always a start, and the id is the engine's, which is what lets it end the note when the note it came from ends.
public void Add(NoteEvent note)Parameters
noteNoteEvent
Add(int, float, float, int)
Adds a note by pitch.
public void Add(int pitch, float velocity = 0.8, float cents = 0, int channel = 0)