コード例 #1
0
    /**
     * @brief Creates a new note in the song.
     *
     * Gets the currently selected values from the modules in the scene uses them
     * to @link Music::CreateNote create@endlink a new @link Music::CombinedNote note@endlink.
     *
     * The function won't do anything if no @link SongCreationManager::mPitchSelector pitches@endlink
     * or @link SongCreationManager::mDrumSelector drums@endlink are selected.
     *
     * @see SongCreationManager::mNewNoteButton
     */
    public void OnCreateNote(Music.CombinedNote aNote)
    {
        // Add the note to the song.
        mSong.AddNote(aNote);

        // Add the note to the note display.
        mNoteDisplay.AddNote(aNote);
    }