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

Method GetYPos

Source/NoteStreamDisplay.cpp:108–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108float NoteStreamDisplay::GetYPos(int pitch, float noteHeight) const
109{
110 return ofMap(pitch, mPitchMin, mPitchMax + 1, mHeight - noteHeight, -noteHeight);
111}
112
113void NoteStreamDisplay::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation)
114{

Callers

nothing calls this directly

Calls 1

ofMapFunction · 0.85

Tested by

no test coverage detected