Logo Search packages:      
Sourcecode: cadencii version File versions  Download package

void org::kbinani::cadencii::FormMain::addTrackCore (  ) [inline]

トラックの追加を行います。

Definition at line 6126 of file FormMain.cs.

References org::kbinani::vsq::VsqTrack::changeRenderer(), org::kbinani::cadencii::EditorConfig::DefaultSingerName, org::kbinani::cadencii::EditorConfig::DefaultSynthesizer, org::kbinani::cadencii::AppManager::editHistory, org::kbinani::cadencii::AppManager::editorConfig, org::kbinani::cadencii::VsqFileEx::generateCommandAddTrack(), org::kbinani::cadencii::AppManager::getSingerListFromRendererKind(), org::kbinani::cadencii::AppManager::getVersionStringFromRendererKind(), org::kbinani::cadencii::AppManager::getVsqFile(), org::kbinani::cadencii::AppManager::mMixerWindow, org::kbinani::cadencii::EditHistoryModel::register(), org::kbinani::vsq::VsqFile::Track, and org::kbinani::cadencii::FormMixer::updateStatus().

        {
            VsqFileEx vsq = AppManager.getVsqFile();
            int i = vsq.Track.size();
            String name = "Voice" + i;
            String singer = AppManager.editorConfig.DefaultSingerName;
            VsqTrack vsq_track = new VsqTrack( name, singer );

            RendererKind kind = AppManager.editorConfig.DefaultSynthesizer;
            String renderer = AppManager.getVersionStringFromRendererKind( kind );
            Vector<VsqID> singers = AppManager.getSingerListFromRendererKind( kind );

            vsq_track.changeRenderer( renderer, singers );
            CadenciiCommand run = VsqFileEx.generateCommandAddTrack( vsq_track,
                                                                     new VsqMixerEntry( 0, 0, 0, 0 ),
                                                                     i,
                                                                     new BezierCurves() );
            AppManager.editHistory.register( vsq.executeCommand( run ) );
            updateDrawObjectList();
            setEdited( true );
            AppManager.setSelected( i );
            AppManager.mMixerWindow.updateStatus();
            refreshScreen();
        }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index