Skip to content

Conversation

@mscuthbert
Copy link
Member

having exact equivalents

runningUnderIPython -> runningInNotebook
common.lcm -> math.lcm
Scale.next -> Scale.nextPitch()

Removed older forms of converter functions that had a capital letter inconsistency

registerSubconverter -> registerSubConverter
unregisterSubconverter -> registerSubConverter
subconvertersList -> subConvertersList
defaultSubconverters -> defaultSubConverters
getSubconverterFormats -> getSubConverterFormats
setSubconverterFromFormat -> setSubConverterFromFormat

Remove MIDI routines not needed since Python 3 became required (and bytes and strings were distinguished)

midi.charToBinary(ch) -> bin(ord(ch)) 
midi.getNumbersAsList(bytes) -> list(bytes) 
midi.intsToHexBytes([ints...]) -> bytes([ints]) 

More complex to replace, but were not used enough to have two ways of doing the same thing.

  • duration.unitSpec -> (d.quarterLength, d.type, d.dots, None, None, None) unless tuplets then replace last three with (tup[0].numberNotesActual, tup[0].numberNotesNormal, tup[0].durationNormal.type)
  • obj.isClassOrSubclass(classLists) -> not obj.classSet.isdisjoint(classLists)

@coveralls
Copy link

Coverage Status

coverage: 93.067% (+0.02%) from 93.051%
when pulling 9836429 on deprecations-gone2
into 47adf5a on master.

@mscuthbert mscuthbert merged commit cb1bdfe into master Oct 6, 2025
7 checks passed
@mscuthbert mscuthbert deleted the deprecations-gone2 branch October 6, 2025 23:30
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.

3 participants