There are two addPitch() functions. You want the one that, as I said, takes a "step" and not a pitch - the one that is called when you enter a note by typing its letter name.
On Sun, Aug 23, 2015 at 3:45 AM Jim Newton <jimka.i...@gmail.com> wrote: > Hi Marc, I haven't dug deeply into the code yet, but it appears that to > call > addPitch() > I need to pre-calculate the pitch. i.e., I need a NoteVal object, which I > can compute from an integer pitch of the antecedent note. > This is more or less the same information I need (and have) to call > addNote(). > > NoteVal *nval = new NoteVal(pitch); > > Of course in the case that I need to duplicate the note exactly I can use > reuse the NoteVal of the antecedent note. I'll have to create a new NoteVal > if the note is derived (from a different octave, transposing instrument, or > interval). > > However, I don't immediately see how to specify the chord I want the note > added to when using addPitch(). > Furthermore, it does appear that I can manipulate this NoteVal somehow to > distinguish between B, Cb, A## etc. which I'm not doing currently, but need > to. > > > > > > -- > View this message in context: > http://dev-list.musescore.org/note-not-yet-ready-tp7579475p7579506.html > Sent from the MuseScore Developer mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > _______________________________________________ > Mscore-developer mailing list > Mscore-developer@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mscore-developer >
------------------------------------------------------------------------------
_______________________________________________ Mscore-developer mailing list Mscore-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mscore-developer