You need to be more specific.
A MIDI note on itself is just a value between 0 and 127. And to show a note on the screen is just a format function. So these are easy to show and select.
But with just one fader…, how exactly do you want to send? when should the MIDI note on happen? When should the MIDI note off happen?
In that particular case I want to control pitch value of a Sequential TOM.
It’s an old MIDI implementation and they used MIDI notes for most of it.
The list of notes I shared correspond to the 32 pitches at which a drum hit can be played.
MIDI note on/off should happen when the FADER value changes (note duration can stay minimal).
I am thinking of testing with a velocity of 0 (which might work to keep that pitch control silent).
you create a virtual fader with a range covering the note values you need.
To the fader you assign a function you call ‘sendTomNote’.
In lua you create that function, receiving the note value from the fader , that does the following:
execute midi.sendNoteOn (port, channel, value, velocity)
(you can try with replacing velocity by 0, but some instuments see this as equal to a note off. you’ll need to test)
If the test with velocity = 0 fails, send the NoteOn with velocity = 1. In that case , also execute midi.sendNoteOff (port, channel, value, 0) afterwards. The duration will then be the time for the 2 commands to follow each other. It can’t be any shorter
By the way don’t forget to set the variables ‘port’ and ‘channel’ so the E1 knows what to execute!
For the formatting, you could add a formatter function to the fader you call ‘displayNotes’
In lua you’ll need to add a table and the formatting function. You can use the following as inspiration (you may have to change the constants in the formula to make it result in the right note).