t-ride Posted July 14, 2017 Share Posted July 14, 2017 Hey guys , is there a way to view MIDI pitch-names in slider format rather than drop-down menu? The slider format only shows you the midi-numbers and not the pitch-names. This makes it hard to use it for me. Does anyone know how to make a slider of MIDI pitch-names? This is how it looks for me as of now: Pitch Number works great because I can increment values just by pressing the up/down arrow keys but it is very hard to know which note that I am looking at. On the other hand, Pitch Name is great because I can see which note I am "using" but I have to click and open up the menu every time I want to change the note. Quote Link to comment Share on other sites More sharing options...
Unheardofski Posted July 15, 2017 Share Posted July 15, 2017 Hi Only workaround I can think of is to link a the drop down and slider above in the parameterChanged function: function ParameterChanged(p,v){ let p2 = p? p-1 +1; SetParameter(p2,v); } Quote Link to comment Share on other sites More sharing options...
Nseruame Posted July 19, 2017 Share Posted July 19, 2017 Pretty much the same thing, but this time updating a label with the note name... PluginParameters = [ { /* an empty label */ name: "Pitch Name:" , type: "text" } , { /* slider for selecting pitch */ name: "Pitch Number" , type: "lin" /* middle C */ , defaultValue: 60 /* Lowest note: C-2 */ , minValue: 0 /* Highest note: G8 */ , maxValue: 127 , numberOfSteps: 127 } ] function ParameterChanged (index, value) { /* the value reported is the position of the slider */ /* this corresponds to an index in the list of note names */ var noteName = MIDI._noteNames[value] /* access the first label and modify its 'name' property */ PluginParameters[0].name = "Pitch Name: " + noteName /* refresh the GUI */ UpdatePluginParameters() } Quote Link to comment Share on other sites More sharing options...
t-ride Posted July 22, 2017 Author Share Posted July 22, 2017 Thanks a lot for your answers guys. Im going to try to implement these changes and get back. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.