Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:50
    sschmidTU labeled #239
  • 10:50
    sschmidTU unlabeled #239
  • 10:50
    sschmidTU closed #239
  • 10:50
    sschmidTU commented #239
  • 10:47
    sschmidTU commented #388
  • Jan 20 20:38
    sschmidTU commented #1131
  • Jan 20 20:38
    sschmidTU commented #1131
  • Jan 20 20:32
    sschmidTU commented #1131
  • Jan 20 20:32
    sschmidTU commented #1131
  • Jan 20 20:26

    sschmidTU on expressions-simultaneous

    allow simultaneous (layered) ex… (compare)

  • Jan 20 20:25
    sschmidTU labeled #1131
  • Jan 20 20:24
    sschmidTU assigned #1131
  • Jan 20 20:24
    sschmidTU opened #1131
  • Jan 20 17:46
    sschmidTU commented #1130
  • Jan 20 17:45
    sschmidTU commented #1130
  • Jan 20 17:09
    kenboy2304 commented #1060
  • Jan 20 14:05
    sschmidTU closed #1059
  • Jan 20 14:05
    sschmidTU commented #1059
  • Jan 20 14:03
    sschmidTU edited #916
  • Jan 20 14:02
    sschmidTU closed #916
Simon
@sschmidTU
@anseldu osmd.cursor.NotesUnderCursor()
FaceBlack
@rianlu
I have a question, does anyone know how to deal with it?
The treble clef is displayed at the beginning of the score, and then there is a treble clef at the end of the 8th bar. Normally, the 9th bar should be the treble clef, but when I cut from the 9th bar, he The treble and bass clef is still displayed.
image.png
image.png
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