Subversion Repositories svn.mios

Rev

Rev 709 | Rev 722 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
709 adamjking 1
package org.midibox.midi.xml;
2
 
721 adamjking 3
import org.midibox.midi.MidiKeyboardController;
4
import org.w3c.dom.Node;
709 adamjking 5
 
721 adamjking 6
public class MidiKeyboardControllerXML extends MidiParameterControlManagerXML {
7
 
8
    protected MidiKeyboardController midiKeyboardController;
9
 
10
    protected String velocityValAttr = "velocityVal";
11
 
12
    public MidiKeyboardControllerXML(MidiKeyboardController midiKeyboardController, String rootElementTag) {
13
 
14
        super(midiKeyboardController, rootElementTag);
15
 
16
        this.midiKeyboardController = midiKeyboardController;
17
    }
18
 
19
    public void saveXML(Node node) {
20
 
21
        super.saveXML(node);
22
 
23
        rootElement.setAttribute(velocityValAttr, "" + midiKeyboardController.getVelocityVal());
24
    }
709 adamjking 25
}