11namespace tracktion {
inline namespace engine
30 bool isParameterized()
const;
31 void setParameterized (
bool p) { parameterized = p; }
45 int getNumberOfNotes()
const {
return numNotes; }
46 void setNumberOfNotes (
int notes);
48 int getNotesPerBeat()
const {
return notesPerBeat; }
49 void setNotesPerBeat (
int notes);
52 float getLatenessProportion (
int noteNumber,
float strength)
const;
53 void setLatenessProportion (
int noteNumber,
float p,
float strength);
54 void clearLatenesses();
57 static const char* grooveXmlTag;
63 int numNotes, notesPerBeat;
65 bool parameterized =
false;
81 void useParameterizedGrooves (
bool b);
84 int getNumTemplates()
const;
93 void deleteTemplate (
int index);
109 bool useParameterized =
false;
The Tracktion Edit class!
The Engine is the central class for all tracktion sessions.
Looks after the list of groove templates.
void reload()
called when usersettings change, because that's where the grooves are kept.
BeatPosition beatsTimeToGroovyTime(BeatPosition beatsTime, float strength) const
Apply this groove to a time, in beats.
TimePosition editTimeToGroovyTime(TimePosition editTime, float strength, Edit &edit) const
Apply this groove to a time, in seconds.
#define JUCE_LEAK_DETECTOR(OwnerClass)
Represents a position in beats.
Represents a position in real-life time.