-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scoring up implementation as functor #3800
Draft
martha-thomae
wants to merge
105
commits into
rism-digital:develop
Choose a base branch
from
martha-thomae:scoringup_branch
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+935
−1
Draft
Changes from 1 commit
Commits
Show all changes
105 commits
Select commit
Hold shift + click to select a range
c98e2ed
Add header and source for scoringup functor and call them in doc
martha-thomae 0464368
Test ScoringUpDoc with debug messages
martha-thomae d409a55
Add again the private variables for mensur
martha-thomae f141c9a
Test adding durquality values
martha-thomae 2114a56
Get a vector of data_DURATION objects for a layer
martha-thomae 97cf79d
Change to a method
martha-thomae 7a0a61a
Clean extra lines of code
martha-thomae 0ab0bfb
Move variable and method declaration to cpp
martha-thomae db58bff
Divide dursInVoiceSameMensur into subsequences
martha-thomae f49a9d1
Obtain xml:ids for notes and rests
martha-thomae ff44446
Use vectors of pairs of ids and durs
martha-thomae ed144a9
Correct subsequences to start and end with 'long notes'
martha-thomae 6d7e57a
Pass seq and subse to overloaded function to determine the durquality.
martha-thomae 8053f40
Add methods for imperfection and alteration
martha-thomae 8892095
Add all the principles of imperfection and alteration (including thei…
martha-thomae c4c39ed
Start sketch of imperfection and alteration functions
martha-thomae 75c6bb7
Add comment: missing 'rest at' conditions to forbid imperfection/alte…
martha-thomae b5fcc9d
Comment lines out for the program to keep working
martha-thomae 2d2b3fa
Try to solve the issue of getting the notes/rests by ID to set the du…
martha-thomae 593ae25
Add changes for alteration
martha-thomae 758fa11
Trying to fix the pointers to the notes
martha-thomae 6621587
Use maps of ids to notes/rests and fix pointer issue
martha-thomae 64e1cfe
Add imperfection a.p.a. code
martha-thomae d0e1c7e
Add 'rest' condition that forbids alteration
martha-thomae ad2868a
Add 'short note value' condition to forbid alteration
martha-thomae 9138d98
Finish documentating flags that forbid alteration
martha-thomae eab73c0
Remove comment
martha-thomae c789e82
Remove unnecessary comments and debug statements
martha-thomae 7a49570
Change implementation to use references to elements
martha-thomae 87c1aa0
Refine documentation and note values for the principles of imp and alt
martha-thomae bc34284
Refine comments and conditions for the principles of imp. and alt.
martha-thomae 34d660f
get default values from mensuration
martha-thomae b84d383
Fix: only consider middle notes of the sequence
martha-thomae 6fd9316
Save mensuration values
martha-thomae 249c0d5
Add the exception case for sum = 3
martha-thomae 035746e
Add 'dot of perfection' condition within the evaluation of imperfecti…
martha-thomae 6182cc6
Remove the dotOfPerf flag
martha-thomae 734a5f5
Add 'form=div' for dot of perfection
martha-thomae d950a87
Change formatting according to coding guidelines
martha-thomae 94db5ea
Adjust to coding guidelines, move methods and attributes to header file
martha-thomae d9f4574
Add comments for meethods
martha-thomae e03bf0d
Comment code to try to get mensuration values from staffDef
martha-thomae fbc48bc
Add support for the voice starting in a small note value
martha-thomae f0c29ff
Add another exception for imp.app
martha-thomae 30544fc
Add support for dots of augmentation
martha-thomae 26d218f
Add the correct quality to the dotted notes
martha-thomae 32e0c16
Exchange conditions to check for dots first
martha-thomae bf54e3f
Add progress towardsimplementation of dots of division
martha-thomae c5e3887
Store the array of dots positions in middleSeq
martha-thomae 3cce967
Merge branch 'rism-digital:develop' into scoringup_branch
martha-thomae 40a1ac1
Merge branch 'rism-digital:develop' into scoringup_branch
martha-thomae fccc32f
Reformat
martha-thomae 6f91e0f
Reformat
martha-thomae 9c053d8
Merge branch 'rism-digital:develop' into scoringup_branch
martha-thomae 722c233
Add blank lines in header file
martha-thomae bb92458
Add typedef for ArrayOfElementDurPairs
martha-thomae 22e491d
Remove initialization
martha-thomae 6834c9a
Change vectors to be read-only parameters in functions
martha-thomae ff5dbd6
Add 'm_' to all member variables
martha-thomae 3a74f03
Separate functionalities for modifications
martha-thomae 422a372
Rename variables
martha-thomae 596f8f1
Fix pair parameter in GetNumberValue to avoid copying the sequence an…
martha-thomae d90b059
Reformat code
martha-thomae 8abab6e
Regroup code into smaller functions and deal with dots of perf
martha-thomae 6f7ce99
Rearraging code into smaller functions
martha-thomae d8f6917
Reformat
martha-thomae 7616ee1
Minor changes
martha-thomae 0d15646
Fix support for dot of division (when only on dot in sequence)
martha-thomae c78c42f
Add 'form = div'
martha-thomae 0246a33
Reformat
martha-thomae 126ee36
Move the dot of division evaluation into a function
martha-thomae 41319ca
Add case numberOfDots > 1
martha-thomae 2bb11a3
Merge branch 'rism-digital:develop' into scoringup_branch
martha-thomae 09d8f02
Merge branch 'rism-digital:develop' into scoringup_branch
martha-thomae e3d9e0c
Update ImplementsEndInterface
martha-thomae be9553c
Make variables private
martha-thomae 4f3a424
Reformatting
martha-thomae 47314b5
Change to use int members
martha-thomae 585804a
Add 'this->' for method calls
martha-thomae c19e554
Add a bit of documentation and reorder functions
martha-thomae ecdc262
Fix typo
martha-thomae b8a08bc
Add support for perfect and imperfect mensur in GetValueInUnit
martha-thomae 380c405
Add support to subdivide the sequences by different bounding units (s…
martha-thomae afac0a8
Reformat
martha-thomae 803c9fb
Call SubdivideIntoBoundedSequences for all four note levels depending…
martha-thomae 4f91a6a
Add support for getting the BoundedNotes for different perfect mensur…
martha-thomae 3837c00
Add new method to avoid repetition
martha-thomae ebbdcf9
Clean the method and avoid repetition
martha-thomae ce06d28
Add boundUnit to modification-related functions and fix GetValueInUni…
martha-thomae 506f949
Separate calculating the value of perfect notes from encoding their q…
martha-thomae 7cf2803
Reformatting
martha-thomae 70b75de
Fix alteration case for multiple perfect mensurations when there is a…
martha-thomae 4c99873
Merge pull request #1 from martha-thomae/upperMensLevels
martha-thomae 55fc195
Merge branch 'rism-digital:develop' into scoringup_branch
martha-thomae d845675
Merge branch 'rism-digital:develop' into scoringup_branch
martha-thomae 1da089f
Add private variable initialization in the constructor
martha-thomae 0556863
Run code at the end of the layer rather than at the beginning of the …
martha-thomae 19760b1
Add a flag to run the scoring up
martha-thomae 60ac0af
Capitalize method name
martha-thomae 07e0c97
Add support for changes in mensuration
martha-thomae 23f839f
Remove unused variable m_notationType
martha-thomae 4a4c37e
Change some variables from global to local and viceversa
martha-thomae e603295
Reformatting
martha-thomae ec1c2d2
Fix resetting of variables to start the next voice
martha-thomae a349408
Merge branch 'rism-digital:develop' into scoringup_branch
martha-thomae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use a
Mensur
object? That would avoid all thetuple
hassle. See this as an exampleAs you will see, the only trick is that you need to use
abs()
when using the values since default is-3
. SoMensur::GetProlatio()
will return -3 (when nothing is set) or otherwise 2 or 3. See the definition here