Subversion Repositories svn.mios

Rev

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

Rev Author Line No. Line
628 adamjking 1
package org.midibox.apps.miosstudiosid;
2
 
684 adamjking 3
import org.midibox.apps.sidv2editor.SIDV2Editor;
628 adamjking 4
 
5
public class MIOSStudioSID extends org.midibox.apps.miosstudio.MIOSStudio {
6
 
684 adamjking 7
    private SIDV2Editor sidv2librarian;
628 adamjking 8
 
684 adamjking 9
    public SIDV2Editor getSidv2librarian() {
628 adamjking 10
 
11
        return sidv2librarian;
12
    }
13
 
14
    protected void createDevices() {
15
 
16
        super.createDevices();
17
 
684 adamjking 18
        sidv2librarian = new SIDV2Editor(null, null);
628 adamjking 19
    }
20
 
21
    protected void routeIndividualDevices() {
22
 
23
        super.routeIndividualDevices();
24
 
25
        midiDeviceRouting.addMidiWriteDevice(sidv2librarian
26
                .getSysExControllerDevice());
27
        midiDeviceRouting.addMidiReadDevice(sidv2librarian
28
                .getSysExControllerDevice());
29
    }
30
 
31
    public void connectDevices() {
32
 
33
        super.connectDevices();
34
 
35
        midiDeviceRouting.connectDevices(miosStudioInPort, sidv2librarian
36
                .getSysExControllerDevice());
37
        midiDeviceRouting.connectDevices(sidv2librarian
38
                .getSysExControllerDevice(), miosStudioOutPort);
39
    }
40
}