mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Add midi learn
This commit is contained in:
parent
b0bfc67daa
commit
e93852981a
6 changed files with 19 additions and 6 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
1.0.24
|
||||||
|
- Added MIDI learn
|
||||||
|
|
||||||
1.0.23:
|
1.0.23:
|
||||||
- Fixed crash
|
- Fixed crash
|
||||||
|
|
||||||
|
|
|
||||||
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
||||||
1.0.23
|
1.0.24
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit c2ca60094fdc0488dd3a487b76986096c8b1078d
|
Subproject commit 0e6c97989c4b506f75fed6e30fe088fccb6ef872
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 258203706cdfc1357effe8cc752672b793cea37d
|
Subproject commit bc7339fe07ca1ef7d4708cb6a124932de4af3719
|
||||||
|
|
@ -176,6 +176,7 @@ public:
|
||||||
|
|
||||||
juce::PopupMenu m;
|
juce::PopupMenu m;
|
||||||
m.setLookAndFeel (&getLookAndFeel());
|
m.setLookAndFeel (&getLookAndFeel());
|
||||||
|
|
||||||
for (auto itr : menus)
|
for (auto itr : menus)
|
||||||
m.addSubMenu (itr.first, itr.second);
|
m.addSubMenu (itr.first, itr.second);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -508,8 +508,15 @@ void extractWavetables()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
static gin::ProcessorOptions createProcessorOptions()
|
||||||
|
{
|
||||||
|
gin::ProcessorOptions opts;
|
||||||
|
opts.hasMidiLearn = true;
|
||||||
|
return opts;
|
||||||
|
}
|
||||||
|
|
||||||
WavetableAudioProcessor::WavetableAudioProcessor()
|
WavetableAudioProcessor::WavetableAudioProcessor()
|
||||||
: gin::Processor (juce::AudioProcessor::BusesProperties().withOutput ("Output", juce::AudioChannelSet::stereo(), true), false),
|
: gin::Processor (juce::AudioProcessor::BusesProperties().withOutput ("Output", juce::AudioChannelSet::stereo(), true), false, createProcessorOptions()),
|
||||||
bitcrusher (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); })),
|
bitcrusher (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); })),
|
||||||
fireAmp (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); })),
|
fireAmp (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); })),
|
||||||
grindAmp (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); }))
|
grindAmp (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); }))
|
||||||
|
|
@ -847,6 +854,8 @@ void WavetableAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, ju
|
||||||
if (buffer.getNumChannels() != 2)
|
if (buffer.getNumChannels() != 2)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
midiLearn->processBlock (midi, buffer.getNumSamples());
|
||||||
|
|
||||||
if (mtsClient)
|
if (mtsClient)
|
||||||
for (auto itr : midi)
|
for (auto itr : midi)
|
||||||
if (auto m = itr.getMessage(); m.isSysEx())
|
if (auto m = itr.getMessage(); m.isSysEx())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue