Looking for resources on mapping midi input into premade sample files


#1

Hello, I’m an experienced programmer who is not experienced with C++ or audio programming. I am working with a sound engineer to create some plugins which will make his life easier. JUCE definitely seems like the easiest way for me to enter this world but I’ve reached a couple of hurdles.

What we want to be able to create is a very simple plugin which maps midi input to some samples which he has already created.

We have four samples for each note which we would like to be able to randomise between and we have support for slides and varying velocities.

I have had a look around the juce site and the internet in general and I’m struggling to find any resources which will help me in this and hoping someone could help me with this


#2

I would start from the JUCE demo plug-in: https://github.com/WeAreROLI/JUCE/tree/master/examples/audio%20plugin%20demo

With each block of audio data to process you’re also given a buffer of midi data which can be queried for information like timing and note ID: https://www.juce.com/doc/tutorial_midi_message It’s up to you how to map this onto the sample data you want to add to the audio being processed.


#3

Oh that looks like a brilliant place to start. I somehow managed to miss this tutorial when I was going through the “Make a MIDI plugin tutorials”

Thank you