Thread: Notation API
View Single Post
Old 09-23-2016, 04:08 AM   #28
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by reddiesel41264 View Post
Is it possible to add score markings like pedal markings, dynamics, etc. via lua? If so is it possible to add more than one articulation marking to a note at the same time, tenuto and staccato for example?

Using reaper.MIDI_GetTextSysexEvt I can access things like dynamics but is there a way to find out if a selected note has a slur or articulation mark? I can see these in the event list but they appear under the REAPER Notation column for the notes they are applied to.
It is indeed possible. My ReaPack scripts that start with "js_Notation" do this for beaming, staccato/staccatissimo and display length, so you can perhaps take a look at the code of those scripts. (Especially the "Set display length" ones.)

In another pre-release thread, Schwa mentioned something about the notation Text Event always being sorted and indexed just before the Note Start Event, so this titbit of information can probably also be included in the search algorithms.
juliansader is offline   Reply With Quote