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

Method MakeNewSong

Source/FamiTrackerModule.cpp:285–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285std::unique_ptr<CSongData> CFamiTrackerModule::MakeNewSong() const {
286 auto pSong = std::make_unique<CSongData>(CSongData::DEFAULT_ROW_COUNT);
287 pSong->SetSongTempo(GetMachine() == machine_t::NTSC ? DEFAULT_TEMPO_NTSC : DEFAULT_TEMPO_PAL);
288 if (GetSongCount() > 0)
289 pSong->SetRowHighlight(GetSong(0)->GetRowHighlight());
290 return pSong;
291}
292
293CInstrumentManager *CFamiTrackerModule::GetInstrumentManager() const {
294 return m_pInstrumentManager.get();

Callers 5

OnBnClickedSongAddMethod · 0.80
OnBnClickedSongInsertMethod · 0.80
OnBnClickedSongRemoveMethod · 0.80
ImportFileMethod · 0.80
makeSongMethod · 0.80

Calls 2

SetSongTempoMethod · 0.80
SetRowHighlightMethod · 0.80

Tested by

no test coverage detected