MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnPlayNote

Method OnPlayNote

Source/SoundGen.cpp:634–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634void CSoundGen::OnPlayNote(stChannelID chan, const stChanNote &note) {
635 if (!IsChannelMuted(chan)) {
636 if (m_pTrackerView)
637 m_pTrackerView->PlayerPlayNote(chan, note);
638 FTEnv.GetMIDI()->WriteNote((uint8_t)m_pModule->GetChannelOrder().GetChannelIndex(chan), note.Note, note.Octave, note.Vol);
639 }
640}
641
642void CSoundGen::OnUpdateRow(int frame, int row) {
643 auto *pMark = m_pModule->GetSong(m_iLastTrack)->GetBookmarks().FindAt(frame, row);

Callers 1

StepRowMethod · 0.80

Calls 4

PlayerPlayNoteMethod · 0.80
WriteNoteMethod · 0.80
GetChannelIndexMethod · 0.80
GetMIDIMethod · 0.45

Tested by

no test coverage detected