Skip to content

api: support non-traditional key signatures - #81

Merged
webern merged 4 commits into
masterfrom
feature/non-traditional-key
Apr 4, 2020
Merged

api: support non-traditional key signatures#81
webern merged 4 commits into
masterfrom
feature/non-traditional-key

Conversation

@webern

@webern webern commented Apr 1, 2020

Copy link
Copy Markdown
Owner

Closes #70
Replaces #77

Comment thread Sourcecode/private/mx/impl/NoteReader.cpp Outdated
Comment thread Sourcecode/private/mx/impl/NoteWriter.cpp Outdated
Comment thread Sourcecode/private/mx/impl/PropertiesWriter.cpp Outdated
Comment thread Sourcecode/include/mx/api/KeyData.h Outdated
@webern
webern force-pushed the feature/non-traditional-key branch from ecf149b to 615b160 Compare April 2, 2020 01:44
const auto intAlter = static_cast<int>( xmlAlter );
const auto micro = xmlAlter - static_cast<mx::core::DecimalType> ( intAlter );
const auto microDistance = std::abs( micro );
if( microDistance >= 0.000000000001 )

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want, you can use std::numeric_limits<double>::epsilon() which gives the smallest increment of the numeric type T you provide it with.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll play around with that.

@p-groarke p-groarke left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't wait to use this :) Ty for adding it!

@webern
webern merged commit 7f4be10 into master Apr 4, 2020
@webern
webern deleted the feature/non-traditional-key branch June 20, 2020 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] mx::api NonTraditionalKey equivalent

2 participants