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

Method NoteStepSequencer

Source/NoteStepSequencer.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35#include "MathUtils.h"
36
37NoteStepSequencer::NoteStepSequencer()
38{
39 for (int i = 0; i < NSS_MAX_STEPS; ++i)
40 {
41 mVels[i] = ofRandom(1) < .5f ? gStepVelocityLevels[(int)StepVelocityType::Normal] * 127 : 0;
42 mNoteLengths[i] = ofRandom(1) < .5f ? .5f : 1;
43 }
44
45 RandomizePitches(false);
46
47 TheScale->AddListener(this);
48}
49
50void NoteStepSequencer::CreateUIControls()
51{

Callers

nothing calls this directly

Calls 2

ofRandomFunction · 0.85
AddListenerMethod · 0.45

Tested by

no test coverage detected