MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / PlayStep

Method PlayStep

Source/StepSequencer.cpp:1116–1126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1114}
1115
1116void StepSequencerRow::PlayStep(double time, int step)
1117{
1118 float val = mGrid->GetVal(step, mRow);
1119 if (val > 0 && mSeq->IsMetaStepActive(time, step, mRow))
1120 {
1121 mSeq->PlayStepNote(time, mRowPitch, val * val);
1122 mPlayedSteps[mPlayedStepsRoundRobin].step = step;
1123 mPlayedSteps[mPlayedStepsRoundRobin].time = time;
1124 mPlayedStepsRoundRobin = (mPlayedStepsRoundRobin + 1) % mPlayedSteps.size();
1125 }
1126}
1127
1128void StepSequencerRow::SetOffset(float offset)
1129{

Callers 1

StepMethod · 0.80

Calls 4

GetValMethod · 0.80
IsMetaStepActiveMethod · 0.80
PlayStepNoteMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected