Allolib  1.0
C++ Components For Interactive Multimedia
al::SequenceRecorder Class Reference

The SequenceRecorder class records preset changes in a ".sequence" file. More...

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/ui/al_SequenceRecorder.hpp>

Inheritance diagram for al::SequenceRecorder:
al::osc::MessageConsumer

Public Member Functions

void startRecord (std::string name="", bool overwrite=false)
 startRecord begins recording preset changes More...
 
void stopRecord ()
 
bool recording ()
 
void setMaxRecordTime (al_sec maxTime)
 
std::string lastSequenceName ()
 
std::string lastSequenceSubDir ()
 
void setDirectory (std::string directory)
 setDirectory sets the working directory for the SequenceRecorder More...
 
std::string getCurrentPath ()
 
SequenceRecorderoperator<< (PresetHandler &handler)
 
void registerPresetHandler (PresetHandler &handler)
 
SequenceRecorderoperator<< (ParameterMeta &param)
 
void registerParameter (ParameterMeta &p)
 

Protected Member Functions

virtual bool consumeMessage (osc::Message &m, std::string rootOSCPath) override
 Returns true if message was consumed by this class.
 

Detailed Description

The SequenceRecorder class records preset changes in a ".sequence" file.

The sequences recorded can be played back using the PresetSequencer class.

Parameter polyX("polyX", "", 0.0, "", -99, 99);
Parameter polyY("polyY", "", 0.0, "", -99, 99);
Parameter polyZ("polyZ", "", 0.0, "", -99, 99);
PresetHandler presets("hydrogen_presets");
SequenceRecorder recorder;
presets << polyX << polyY <<polyZ;
recorder << presets;
recorder.startRecord("seqName");
...
recorder.stopRecord();

Definition at line 82 of file al_SequenceRecorder.hpp.

Member Function Documentation

◆ setDirectory()

void al::SequenceRecorder::setDirectory ( std::string  directory)

setDirectory sets the working directory for the SequenceRecorder

Parameters
directoryIf a PresetHandler is registered, this value is ignored.

◆ startRecord()

void al::SequenceRecorder::startRecord ( std::string  name = "",
bool  overwrite = false 
)

startRecord begins recording preset changes

Parameters
namedefault name is "new_seq"
overwritewhether to force overwrite

By default startRecord() will not overwrite, and will append a number to the sequence name specified.


The documentation for this class was generated from the following file: