Skip to content

Conversation

@odoare
Copy link
Contributor

@odoare odoare commented Mar 4, 2025

No description provided.

-- the fourth is the thirteenth
function ChordBuilder:extend(extensions)
local b = self:clone()
b.seventh = (extensions[1]==1 or extensions[1]==true)
Copy link
Owner

Choose a reason for hiding this comment

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

Sorry I don't get why we would express boolean with either an int or an actual bool value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea is to allow to pass argument array defining extensions as eg. {false,true,false,false} or {0,1,0,0} for lazy people. If it is not a canonical way to write this, I won't complain imposing strict boolean arguments.

@odoare odoare changed the title Scale:circle_of_5ths_rotate and ChordBuilder:extend Scale:circle_of_5ths_rotate+tests and ChordBuilder:extend Mar 25, 2025
@odoare odoare closed this Mar 25, 2025
@odoare
Copy link
Contributor Author

odoare commented Mar 25, 2025

I'll make two separate PR soon.

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.

2 participants