Class NoteTranslator
Defined in File NoteTranslator.hpp
Class Documentation
-
class NoteTranslator
the note translator. this class reads the capnp binary datas and bpm datas, and parse them.
Public Functions
-
bool Read(const CapReader<NoteBinaryCapnpData> &binary, const BpmStruct &mainBpm, OBJ_SETTER_CALLBACK &lambdaCallback)
Reads and parse capnp object. this function reads capnp binary data and note object’s bpm data and track data’s bpm data. after parse all of them, it calls the note object setter callback.
- Parameters:
binary – the capnp binary Reader object
mainBpm – the track data’s bpm data
lambdaCallback – the object setter lambda
- Returns:
true
- Returns:
false
-
NoteTranslator() = default
-
~NoteTranslator() = default
-
bool Read(const CapReader<NoteBinaryCapnpData> &binary, const BpmStruct &mainBpm, OBJ_SETTER_CALLBACK &lambdaCallback)