steirische Harmonika Pluginmaken
Hi, Could someone explain to me how to put a note in a score, by pressing a key in the yellow or green keyboard see "Harmonika-1.png". That note would get a different place in the score, for example: by pressing the first button (Eb ') in the yellow keyboard in the fourth row, it would be placed in place (xA) in the score, another example: by in the green keyboard in the second row pressing the third button (G) it would be in place (C ') see "Notenbalk.png" and so on for all the buttons. Thanks in advance to help Greetings Gust
Attachment | Size |
---|---|
Harmonika-1.png | 159.49 KB |
Notenbalk.png | 111.75 KB |
Comments
Have a look at the code of the fretboard diagram plugin, which serves a similar purpose: https://musescore.org/en/project/fretboard
In reply to Have a look at the code of… by jeetee
I'm not really a programmer, I was looking this way for help, I've already looked me silly on the fretboard plugin but I can not figure out what I should use properly.
In reply to I'm not really a programmer,… by gustebus10
I believe the core thing is to have a cursor object and call
cursor.addNote(pitch)
with the correct pitch corresponding with your pressed buttonIn reply to I believe the core thing is… by jeetee
I can't put the "La" in the score yet, what else do I have to add to write it to score
// Fourth row Pull //
Rectangle {
x: 150; y: 30
width: 40
height: 40
radius: 40
color: "lightcoral"
}
In reply to I can't put the "La" in the… by gustebus10
I'm sorry, but I currently do not have the time to spare to write your plugin code.
As a plugin with a simpler note addition method, you could have a look at the random and random2 plugins that come with MuseScore. Those enter a new score by using the cursor methods.
In reply to I'm sorry, but I currently… by jeetee
Hopefully we could add that in the next update
log note's pitch
https://musescore.org/en/node/320673#s4
create new note, assign pitch
https://musescore.org/en/node/320673#s7
update note's pitch
https://musescore.org/en/node/320673#s8