Merged
Conversation
493c807 to
1a8418c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a big change, but broadly it covers only a few small topics:
BlockEventsinput and output pair to that structThe canonical example for this BlockEvents struct is propagating MIDI events in realtime, so that individual graph nodes can consume/react to incoming MIDI as you might expect if you're used to working with something like JUCE. As such, this PR includes a couple of new midi utility graph nodes:
el.midinotein– a simple MIDI event pass-through nodeel.midinoteallocate– a polyphonic note allocation node with LRU voice allocation and stealingel.midinoteunpack– converts MIDI events to audio signals to propagate frequency and velocity information into the audio domainel.midinoteshift– A simple MIDI utility which shifts the note value of any incoming note eventAs an example, the following graph demonstrates writing an 8-voice polyphonic sine tone synth:
And we can nudge this example to demonstrate modifying the MIDI event stream, in this case to generate simple root + 5th chords for any incoming note event:
Passing events into the Elementary graph now requires that you fill a
BlockEventsstruct with the events you care about and pass that struct into theRuntime::process()call. In the web and offline renderers, there's a new methodpushMidiNotefor pushing an event into the queue, to be delivered to the realtime thread as soon as possible.