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

void CAMainWin::playImmediately ( QList< CAMusElement * >  elements  )  [private]

Immediately plays the notes. This is usually called when inserting new notes or changing the pitch of existing notes.

See also:

Definition at line 5349 of file mainwin.cpp.

References playbackFinished(), and CAPlayback::playImmediately().

Referenced by insertMusElementAt(), and scoreViewPortKeyPress().

      if (!_playback) {
            _playback = new CAPlayback(CACanorus::midiDevice(), CACanorus::settings()->midiOutPort() );
            connect(_playback, SIGNAL(playbackFinished()), this, SLOT(playbackFinished()));

      _playback->playImmediately( elements, CACanorus::settings()->midiOutPort() );

Generated by  Doxygen 1.6.0   Back to index