Subversion Repositories svn.mios

Rev

Rev 684 | 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);
808 adamjking 19
 
628 adamjking 20
    }
21
 
22
    protected void routeIndividualDevices() {
23
 
24
        super.routeIndividualDevices();
25
 
26
        midiDeviceRouting.addMidiWriteDevice(sidv2librarian
808 adamjking 27
                .getSysexControllerDevice());
28
 
628 adamjking 29
        midiDeviceRouting.addMidiReadDevice(sidv2librarian
808 adamjking 30
                .getSysexControllerDevice());
628 adamjking 31
    }
32
 
33
    public void connectDevices() {
34
 
35
        super.connectDevices();
36
 
37
        midiDeviceRouting.connectDevices(miosStudioInPort, sidv2librarian
808 adamjking 38
                .getSysexControllerDevice());
628 adamjking 39
        midiDeviceRouting.connectDevices(sidv2librarian
808 adamjking 40
                .getSysexControllerDevice(), miosStudioOutPort);
628 adamjking 41
    }
42
}