difficult problem with triggers and trigger-order
Sep 23, 2021
I'm working on a course for upcoming musicstudents. Therefore I am currently building a tool for exercises in engraving. Everything is working on many triggers and after my logical opinion it should be working just fine. But there is a problem...:
All the accidentals (like the # for c-sharp or the b for e-flat etc.) have three different states. Activated, B-Pos and C-Pos. This is needed, if there is more than one accidental activated so I can avoid them from overlapping via a trigger. This works in this matter: If note c flat is activated, the b of the c-flat is activated; or: If note c flat is activated, the b of the c-flat becomes state b-pos, in case one of d-flat and -sharp, e-flat and -sharp, etc... are activated.
This works just fine. The problem comes with the trigger "all of x-accidentals are not Pos-B". This should move an other accidental from Pos-C to Pos-B. But this only works if all of the in the pool "x" included accidentals become the state "normal". If they become the state "activated" it seems to be that, B-Pos is still remembered as one of the states, even if the accidental evidently "moves" to the state "activated....
Are there any special implications to the prebuild state "normal", that the prebuild state "activated" doesnt include? Could it be better, to create a new state, like "A-Pos" and have all of my triggers that have something to do with the prior state "activated" change to "A-Pos"?
I have searched for trigger-loops but I cant find any.
I hope, you can understand my problem. Maybe there is something you figured out yet, that deals with a similar problem?
I will be thankfull for all your answears!