Skip to content

Commit e938529

Browse files
committed
Add midi learn
1 parent b0bfc67 commit e938529

6 files changed

Lines changed: 19 additions & 6 deletions

File tree

Changelist.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
1.0.24
2+
- Added MIDI learn
3+
14
1.0.23:
25
- Fixed crash
36

4-
1.0.22:
7+
1.0.22:
58
- Added microtonal support
69

710
1.0.21:
@@ -151,7 +154,7 @@
151154

152155
0.0.8:
153156

154-
- Added UI for mod matrix
157+
- Added UI for mod matrix
155158
- Fixed poly params modulated by mono source not showing their live value
156159

157160
0.0.7:

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.23
1+
1.0.24

modules/gin

Submodule gin updated 375 files

modules/juce

Submodule juce updated 154 files

plugin/Source/Panels.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ class OscillatorBox : public gin::ParamBox,
176176

177177
juce::PopupMenu m;
178178
m.setLookAndFeel (&getLookAndFeel());
179+
179180
for (auto itr : menus)
180181
m.addSubMenu (itr.first, itr.second);
181182

plugin/Source/PluginProcessor.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,15 @@ void extractWavetables()
508508
#endif
509509

510510
//==============================================================================
511+
static gin::ProcessorOptions createProcessorOptions()
512+
{
513+
gin::ProcessorOptions opts;
514+
opts.hasMidiLearn = true;
515+
return opts;
516+
}
517+
511518
WavetableAudioProcessor::WavetableAudioProcessor()
512-
: gin::Processor (juce::AudioProcessor::BusesProperties().withOutput ("Output", juce::AudioChannelSet::stereo(), true), false),
519+
: gin::Processor (juce::AudioProcessor::BusesProperties().withOutput ("Output", juce::AudioChannelSet::stereo(), true), false, createProcessorOptions()),
513520
bitcrusher (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); })),
514521
fireAmp (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); })),
515522
grindAmp (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); }))
@@ -847,6 +854,8 @@ void WavetableAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, ju
847854
if (buffer.getNumChannels() != 2)
848855
return;
849856

857+
midiLearn->processBlock (midi, buffer.getNumSamples());
858+
850859
if (mtsClient)
851860
for (auto itr : midi)
852861
if (auto m = itr.getMessage(); m.isSysEx())

0 commit comments

Comments
 (0)