Skip to content

Override Notehead on Beam? #1416

Discussion options

You must be logged in to vote

I went down the rabbit hole and was able to get it to work. In EasyScore, creating a new 'valid code' and then adding it to Tables.durationCodes. This table is kind of a mess - you have to add it for each duration. IMO there should be a more general way of handling note heads.

beam_tests.ts

const voice = score.voice(
    [
    ...
      beam(notes('(cb4 e#4 a4)/8/z, (d4 f4 a4)/8, (ebb4 g##4 b4)/8, (f4 a4 c5)/8', { stem: 'up' })),

tables.ts:

const durationCodes: Record<string, any> = {
...
  '8': { // just for eighth notes
     type: {
...
       z: {code_head: 'noteheadHalf'}

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@rvilarl
Comment options

@AaronDavidNewman
Comment options

@AaronDavidNewman
Comment options

@rvilarl
Comment options

@nicholasjconn
Comment options

Answer selected by nicholasjconn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants