question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`MergeObjects` does not have the same behavior as `MergeNotes`

See original GitHub issue

When I use the MergeObjects method, seemingly the notes disappear in my loaded MIDI file, instead of merging it properly. I used to use MergeNotes and it worked properly like so:

midi.MergeNotes(new()
{
    Tolerance = new MetricTimeSpan(0, 0, 0, (int) Settings.MergeMilliseconds)
});

image

And with Obsolete #17 it told me to use the MergeObjects method instead, but it does not produce the same results.

midi.MergeObjects(ObjectType.Note, new()
{
    Tolerance = new MetricTimeSpan(0, 0, 0, (int) Settings.MergeMilliseconds)
});

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
sabihoshicommented, Oct 21, 2022

It’s working great, thank you!

1reaction
melanchallcommented, Oct 21, 2022

@sabihoshi 6.1.3-prerelease1 version published, you can install it via NuGet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

$mergeObjects (aggregation) — MongoDB Manual
$mergeObjects overwrites the field values as it merges the documents. If documents to merge include the same field name, the field, in the...
Read more >
Using MergeObjects without overwriting subdocuments
mergeObjects overwrites the field values as it merges the documents. If documents to merge include the same field name, the field, in the ......
Read more >
Obsolete API | DryWetMIDI
Quick example of how to merge notes within a MIDI file with the new tool: midiFile.MergeObjects( ObjectType.Note, new ObjectsMergingSettings { ...
Read more >
'$mergeObjects' not a recognized expression (Mac build)
Description. — name: Bug about: For the mac build version of pymongo, the mergeObjects expression does not seem to be included in the...
Read more >
DryWetMIDI
NET library to read, write, process MIDI files and to work with MIDI devices - DryWetMIDI · melanchall/drywetmidi.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found