Changing barline-type under message control

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
Neal
Posts: 3
Joined: Fri May 17, 2019 1:17 pm

Changing barline-type under message control

Post by Neal » Wed Jun 19, 2019 3:47 pm

Hello!

I have a single-line score spread over multiple bach.score objects, to look a bit like sheet music. The same data is sent to each bach.score, then the "inscreenmeas" message used to select what each staff shows.

For the bach.score objects that now begin with measure number >1, there is an initial barline, which you wouldn't have in printed music.

In the Help Center entry for "Popup menu for measure barlines", it seems one can manually change the type of an individual barline (e.g. make it invisible). Is it possible to do this with messages to bach.score, rather than manually?

Many thanks,
Neal

danieleghisi
Site Admin
Posts: 1347
Joined: Fri Dec 03, 2010 1:25 pm

Re: Changing barline-type under message control

Post by danieleghisi » Thu Jun 20, 2019 7:40 pm

Yes, you can!
Look up the #setmeasureparameters message

Easiest case:
setmeasureparameters 3 [barline s]
will change the measure 3 end barline (all voices) to solid. Change to any measure/barline you want (see the contextual menu to know the letter shorcuts). You can also change in single voices, if you need it, look it up in the help file.

Post Reply