@ -18,12 +18,6 @@ package com.levien.synthesizer.android.widgets.score;
import java.util.logging.Logger ;
import java.util.logging.Logger ;
import com.levien.synthesizer.R ;
import com.levien.synthesizer.core.model.composite.MultiChannelSynthesizer ;
import com.levien.synthesizer.core.music.Music.Event ;
import com.levien.synthesizer.core.music.Music.Score ;
import com.levien.synthesizer.core.music.Note ;
import android.content.Context ;
import android.content.Context ;
import android.graphics.Canvas ;
import android.graphics.Canvas ;
import android.graphics.Color ;
import android.graphics.Color ;
@ -34,6 +28,12 @@ import android.util.AttributeSet;
import android.view.MotionEvent ;
import android.view.MotionEvent ;
import android.view.View ;
import android.view.View ;
import com.levien.synthesizer.R ;
import com.levien.synthesizer.core.midi.MidiListener ;
import com.levien.synthesizer.core.music.Music.Event ;
import com.levien.synthesizer.core.music.Music.Score ;
import com.levien.synthesizer.core.music.Note ;
/ * *
/ * *
* ScoreView is a UI widget that allows editing a musical score , as well as live playing . The
* ScoreView is a UI widget that allows editing a musical score , as well as live playing . The
* majority of the ScoreView area shows a subsequence of the current musical score . Along the
* majority of the ScoreView area shows a subsequence of the current musical score . Along the
@ -684,7 +684,7 @@ public class ScoreView extends View {
* Connects the ScoreView to a Synthesizer for playback .
* Connects the ScoreView to a Synthesizer for playback .
* @synth - The synthesizer to connect to .
* @synth - The synthesizer to connect to .
* /
* /
public void bindTo ( final MultiChannelSynthesiz er synth ) {
public void bindTo ( final MidiListen er synth ) {
synthesizer_ = synth ;
synthesizer_ = synth ;
}
}
@ -692,7 +692,7 @@ public class ScoreView extends View {
* Returns the synthesizer connected to this ScoreView .
* Returns the synthesizer connected to this ScoreView .
* @return the connected synthesizer .
* @return the connected synthesizer .
* /
* /
public MultiChannelSynthesiz er getSynthesizer ( ) {
public MidiListen er getSynthesizer ( ) {
return synthesizer_ ;
return synthesizer_ ;
}
}
@ -736,7 +736,7 @@ public class ScoreView extends View {
private double cursor_ ;
private double cursor_ ;
// The synthesizer this control is bound to.
// The synthesizer this control is bound to.
private MultiChannelSynthesiz er synthesizer_ ;
private MidiListen er synthesizer_ ;
// The listener to notify of events in this control.
// The listener to notify of events in this control.
private ScoreViewListener listener_ ;
private ScoreViewListener listener_ ;