public boolean playSynchronous() {
		MidiDevice receivingDevice = null;
		
		try {
			receivingDevice = getReceivingDevice();
			receivingDevice.open();
			File cancion = new File(fileName);
	        
	        Sequence sequence1 = MidiSystem.getSequence(cancion);
	        Sequencer sequencer1 = MidiSystem.getSequencer(false);
	        Transmitter tx1 = sequencer1.getTransmitter();
	        Receiver rx1 = receivingDevice.getReceiver();
	        tx1.setReceiver(rx1);

	        sequencer1.open();
	        sequencer1.setSequence(sequence1);
	        
	        sequencer1.start();
	        
		} catch (MidiUnavailableException e) {
			e.printStackTrace();
		} catch (InvalidMidiDataException e) {		
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
        JOptionPane.showMessageDialog(null, "Tocando cancion");
		
		return true;
	}