numSamples is always zero in ArpeggiatorTutorial


I’m following the ArpeggiatorTutorial at

The code presented there uses numSamples from the audio buffer to synch the generated MIDI notes:

// we use the buffer to get timing information
auto numSamples = buffer.getNumSamples

However, when I run the arpeggiator VST3 plugin (whether within the JUCE plugin host or Bitwig), the return value for buffer.getNumSamples is always zero, which
I assume should not be the case.

Could this be because the plugin type is not set up correctly in ArpeggiatorTutorial.jucer ? If so, what should the settings be for Plugin characteristics/VST3 Category/VST (legacy) category etc?



1 Like