Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 04:28
    taerilan opened #1130
  • Jan 18 23:58
    sschmidTU closed #539
  • Jan 18 23:58
    sschmidTU commented #539
  • Jan 18 23:57
    sschmidTU commented #713
  • Jan 18 23:54
    sschmidTU closed #755
  • Jan 18 23:53
    sschmidTU commented #884
  • Jan 18 23:53
    sschmidTU closed #884
  • Jan 18 23:49
    sschmidTU closed #1072
  • Jan 18 23:49
    sschmidTU commented #1072
  • Jan 18 23:07

    sschmidTU on develop

    chore: bump osmd.Version to 1.4… (compare)

  • Jan 18 22:59

    sschmidTU on master

    chore: update osmd.Version to 1… fix(Ties): Fix ties not contain… feat(Ties): GraphicalTie.SVGEle… and 8 more (compare)

  • Jan 18 22:59

    sschmidTU on develop

    chore: bump version to 1.4.3 chore: update changelog for 1.4… Merge branch 'release/1.4.3' and 1 more (compare)

  • Jan 18 22:59

    sschmidTU on 1.4.3

    (compare)

  • Jan 18 22:09

    sschmidTU on svg-group-timesig

    (compare)

  • Jan 18 22:09

    sschmidTU on develop

    feat(SVG): Timesignature gets g… (compare)

  • Jan 18 22:09
    sschmidTU closed #1129
  • Jan 18 22:07

    sschmidTU on develop

    feat(SVG): Clef gets group and … (compare)

  • Jan 18 22:02

    sschmidTU on develop

    comment (compare)

  • Jan 18 22:02

    sschmidTU on svg-group-keysig

    (compare)

  • Jan 18 22:00

    sschmidTU on develop

    feat(SVG): KeySignature gets gr… (compare)

Simon
@sschmidTU
@rianlu can you share a sample?
FaceBlack
@rianlu
@sschmidTU
Simon
@sschmidTU
I took a look at it, but it's not easy to solve, it results from the way key instructions are saved and looked up when you select which measures to draw (start drawing from measure 9). it's better to submit an issue on github for complex problems like this. and please add the sample.
FaceBlack
@rianlu
Ok, thanks!
vivachenx
@vivachenx

I have a question, does anyone know how to deal with it?

AudioPlayer function is not available on the mobile (iOS Android), no sound

@sschmidTU Can you give me permission for the sponsor exclusive channels ?
Simon
@sschmidTU
@vivachenx see DM. About the audio player function, it should work on Android, I tested it. In which browser doesn't it work?
On iOS, unfortunately there are currently issues with audio playback in the browser. The audio library we use has problems with iOS playback as well. At the moment, it doesn't look like there is a simple fix, unfortunately. Maybe we have to wait for a iOS/Safari update, because on a Macbook, it also doesn't work in Safari, but it works in Firefox and Chrome.
I opened an issue for it here:
opensheetmusicdisplay/osmd-extended#38
Luc Bonnin
@lucbonnin
Hi everyone.
I'm new to OSDM but I've 2 (I guess) easy question :
1- is there a way to draw vexFlow canvas on a single infinite line ?
2- is there a way to catch a js event when each note are drawn ? (so that we can add stuff on the DOM on our own code, out of the canvas and music score such as note name A4/La)
FaceBlack
@rianlu
@lucbonnin Add this to setOptions: renderSingleHorizontalStaffline: true
Luc Bonnin
@lucbonnin
Thanks. For the 2nd question do you have any clue?
Simon
@sschmidTU
@lucbonnin Hi! There is no event for note drawing, but you can still manipulate the DOM and add things when using SVG. Simply get a (vexflow)graphicalnote.getSVGGElement() and you can manipulate it. That's what others do, like for changing the color of notes without re-rendering, and noone has seemed to need events for that so far.
Luc Bonnin
@lucbonnin
@sschmidTU cool. If I can navigate through the dom, extract each "SVGElement" data (such as pitch detail, like "A4#", I will be able to do my stuff)
I'll give it a try as I was not using OSDM until I realize drawing music score from an XML file and keeping all these drawings and details that a musician need to play, is not easy at all and very time consuming, so better give it a gtry to OSDM that should work like a charm
Simon
@sschmidTU
@lucbonnin one more tip, for extracting musical data, i would use OSMD's data model, not the SVG. I don't think the SVG can tell you the pitch ("A4#"). Instead, try something like osmd.graphic.measureList[0][0].staffEntries[1].graphicalVoiceEntries[0].notes[0].vfnote or graphicalnote.sourceNote.Pitch.getHalfTone()
vivachenx
@vivachenx
image.png
I want to display the music score on my phone, but it is too crowded, and each line can only display very little content, I want to know what API can adjust these
FaceBlack
@rianlu
set osmd.zoom and osmd.render()?
vivachenx
@vivachenx
Actually I don’t want the zoom effect, I want to increase the width of a bar a bit
But I don’t know which API can adjust this
Simon
@sschmidTU
@vivachenx Decreasing the zoom (e.g. osmd.zoom = 0.5) is a decent way of getting more sheet music on the screen.
I'm confused about you wanting "to increase the width of a bar a bit", that seems contrary to your goal of getting more sheet music on the screen.
Unfortunately it's not easy to increase the width of a specific measure, maybe we could add an option for that. What does the measure look like? In EngravingRules, there are some options to add more padding/spacing for specific elements in a measure or certain measures like PickupMeasureWidthMultiplier.
vivachenx
@vivachenx
@sschmidTU Hello Simon, Thank you for your answer.
In fact, I need both of these functions. I want to increase the spacing between notes or the width of bars, because in some cases, the notes are too crowded, and there may be overlaps.
image.png
like this
Simon
@sschmidTU
that looks really weird, i'm not sure why the measures are that cramped. can you share the musicxml?
Simon
@sschmidTU
also, was that rendered on a phone?
vivachenx
@vivachenx
Yes i rendered it on my phone
And i have set drawingParameters: "compacttight"
Simon
@sschmidTU
image.png
Okay, well, compacttight can be problematic with spacing, especially on such a narrow screen.
After setting compacttight mode, try adjusting the parameters it sets (see above):
VoiceSpacingMultiplierVexflow
VoiceSpacingAddendVexflow
You should try increasing them a bit, e.g. 0.8 and 3.0.
Simon
@sschmidTU
@vivachenx or even more, until the spacing is big enough.
vivachenx
@vivachenx
Thanks. Let me try
vivachenx
@vivachenx
@sschmidTU Thank you very much simon, it works
I have another question, if I don't want to render any content related to the tempo tag on the page, how should I set it up, or modify the source code
image.png
The part of the red box in the picture above
Simon
@sschmidTU
@vivachenx You can disable metronome marks / tempo indications like this: osmd.rules.MetronomeMarksDrawn = false
(in Typescript, use osmd.EngravingRules)
vivachenx
@vivachenx
@sschmidTU Thanks, I tried it, it works
Ansel Du
@anseldu_gitlab

@anseldu osmd.cursor.NotesUnderCursor()

thanks very much! Simon @sschmidTU
another question is here ~~:)~ :

where can I get complete parameter list when I create the osmd object?
such as:

this.osmd = new OpenSheetMusicDisplay(this.$refs.scorediv,
{
followCursor: true,
autoResize: false,
backend: "svg", // svg or canvas : backendType{0,1}

drawFromMeasureNumber: 1,
drawUpToMeasureNumber: Number.MAX_SAFE_INTEGER,
drawingParameters: "compact",
drawPartNames: false,
MetronomeMarksDrawn: false,
...
// Complete parameter list, preferably with parameter explanation :)

}

Simon
@sschmidTU
@anseldu_gitlab https://opensheetmusicdisplay.github.io/classdoc/interfaces/iosmdoptions.html
also EngravingRules for some other options (e.g. osmd.EngravingRules.FingeringTextSize = 2.0), though not all of the EngravingRules are meant to be modified:
https://opensheetmusicdisplay.github.io/classdoc/classes/engravingrules.html
@anseldu_gitlab also, take a look at our Wiki:
https://github.com/opensheetmusicdisplay/opensheetmusicdisplay/wiki
Ansel Du
@anseldu_gitlab

@anseldu_gitlab also, take a look at our Wiki:
https://github.com/opensheetmusicdisplay/opensheetmusicdisplay/wiki

thank u verry much! and another question: when will be available ---> play back a metronome together with the music (with pre-count) ?

Simon
@sschmidTU
@anseldu_gitlab that's already possible if you have our sponsor-exclusive audio player.
osmd.PlaybackManager.DoPreCount = true
osmd.PlaybackManager.metronome.PreCountVolume = 0.5
Ansel Du
@anseldu_gitlab
Asking weakly, as a basic sponsor, if I could get our sponsor exclusive audio player plugin? @sschmidTU
vivachenx
@vivachenx
@sschmidTU Hello
I have a new question. I want to set the cursor position based on a millisecond time. Do we have such an api now?
anseldu
@anseldu
@sschmidTU my duscord user name is anseldu,tks
Simon
@sschmidTU
@vivachenx Yes, I just added the method osmd.PlaybackManager.playFromMs(), please pull the latest version from the extended repo. I also fixed the bug where it would play notes that started before the current cursor position after you set a new position and hit play.
vivachenx
@vivachenx
@sschmidTU Thank you for your work, this is a very useful api ! Helped me solve a big problem