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

Method GetPush2Layout

Source/NoteStepSequencer.cpp:526–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526void NoteStepSequencer::GetPush2Layout(int& sequenceRows, int& pitchCols, int& pitchRows)
527{
528 sequenceRows = (mLength - 1) / 8 + 1;
529 if (mNoteMode == kNoteMode_Scale && TheScale->NumTonesInScale() == 7)
530 pitchCols = 7;
531 else
532 pitchCols = 8;
533 pitchRows = (mNoteRange - 1) / pitchCols + 1;
534}
535
536bool NoteStepSequencer::OnPush2Control(Push2Control* push2, MidiMessageType type, int controlIndex, float midiValue)
537{

Callers

nothing calls this directly

Calls 1

NumTonesInScaleMethod · 0.45

Tested by

no test coverage detected