Class RhythmInfo
java.lang.Object
org.jjazz.rhythmdatabase.api.RhythmInfo
- All Implemented Interfaces:
Serializable
A descriptor for a rhythm.
Note: tried to make this class a record, but then a strange bug occured when deserializing the object (I guess linked to the List<> parameters), finally back to a standard class.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA RhyhtmParameter descriptor.static final recordA RhythmVoice descriptor. -
Constructor Summary
ConstructorsConstructorDescriptionRhythmInfo(Rhythm rhythm, RhythmProvider rhythmProvider) Constructs a RhythmInfo from an existing rhythm. -
Method Summary
Modifier and TypeMethodDescriptionauthor()booleancheckConsistency(RhythmProvider rp, Rhythm r) Check that this RhythmInfo object matches data from specified rhythm.booleanDoes not rely on file.file()inthashCode()Does not rely on file.booleanname()intrpInfos()rvInfos()String[]tags()toString()version()
-
Constructor Details
-
RhythmInfo
Constructs a RhythmInfo from an existing rhythm.- Parameters:
rhythm-rhythmProvider-
-
-
Method Details
-
checkConsistency
Check that this RhythmInfo object matches data from specified rhythm.Test only the main fields.
- Parameters:
rp-r-- Returns:
- False if inconsistency detected (see log file for details).
-
rvInfos
-
rpInfos
-
rhythmFeatures
-
file
-
rhythmUniqueId
-
rhythmProviderId
-
description
-
preferredTempo
public int preferredTempo() -
timeSignature
-
name
-
author
-
version
-
tags
-
isAdaptedRhythm
public boolean isAdaptedRhythm() -
toString
-
hashCode
-
equals
-