public class MooInstrumentList extends JComboBox implements ActionListener {
protected int channel;
- public MooInstrumentList(int chan) {
+
+ public MooInstrumentList(int instrument) {
super(instruments);
- setChannel(chan);
+ setSelectedIndex(instrument);
setFont(new Font("Helvetica", Font.PLAIN, 10));
addActionListener(this);
}
channel = chan;
setSelectedIndex(Moosique.getChannel(chan).getProgram());
}
+
public void actionPerformed(ActionEvent e) {
JComboBox box = (JComboBox)e.getSource();
int instrument = box.getSelectedIndex();
mute.setSelected(false);
}});
checkboxes.add(solo);
-
- add(instruments);
add(checkboxes);
}
*/
public void setTracks(Track[] tracks) {
numberOfTracks = tracks.length;
+ trackPanel.removeAll();
+ titlePanel.removeAll();
if (numberOfTracks == 1) {
// If MIDI file is of type 0, creates a view for the track.
+ trackPanel.setLayout(new FlowLayout());
trackPanel.add(new MooTrackView(tracks[0]));
titlePanel.add(new MooTrackTitle(tracks[0]));
} else {
progressDialog.setVisible(true);
// Starts filling the track panel with track views, while updating the progress bar.
- trackPanel.removeAll();
trackPanel.setLayout(new GridLayout(1,numberOfTracks));
for (int i = 1; i < tracks.length; i++) {
trackPanel.add(new MooTrackView(tracks[i]));
Göra detta som en tråd?!?
\f
-x Scrollningen?!? Horisontell behövs på både MooView och MooTrackView, men vertikal bara på MooView. Hur göra?
x Får Moosique vara statisk? Fult?
x Spara konfiguration?
Arbetskatalog
Track
private ShortMessage trackName, programChange;
-\f
-MooMenu
-
-x Kom ihåg sökväg vid Open
-
- Musikrelaterade menyer i Midisoft Recording Session:
-
- Track Insert New... Har vi
- Delete... Har vi
- Move... Har vi
- Copy... Har vi
- Combine... Onödig
- Rechannel... Kanske
- Split by Pitch... Onödig
-
- Music Insert Measure... Lagt till
- Delete Measure... Lagt till
- Clef... Onödig
- Time Signature... Lagt till
- Key Signature... Onödig
- Tempo... Lagt till
- Scale Velocity... Lagt till
- Transpose... Lagt till
- Quantize... Onödig
-
- Kanske också: Reset Solo / Mute
-
\f
MooNote / MootrackView / MooNoteElement
...add(MooNote.getNoteOffEvent());
* set/getDuration verkar inte fungera.
+
\f
MooTrackTitle
\f
MooNoteProp
* textfält som gör att man bara kan skriva in siffror?
+
+\f
\ No newline at end of file