Message1170

Author rluse
Recipients
Date 2007-12-24.11:27:22
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Hi,

The following script works just fine on my Windows XP and Jython 2.2.1 :

import javax.sound.midi as midi

sequencer = midi.MidiSystem.getSequencer()
           
print 'got this far'
            
sequencer.open()
    
if sequencer.open:
    print 'sequencer open'
    sequencer.close()
else:
    print 'sequencer not open'

On my system, it handles the difference between the sequencer.open() method and the sequencer.open boolean.  This is handled all the time in Jython.  I can't at all see why it is not working for you and it is working for me.  But I do see that you submitted this a year and a half ago.  So your Jython has to be 2.1, and Java 1.5 had several enhancements in Java Sound.  I am running Java 1.6.0_03 with Jython 2.2.1.

 - Bob
History
Date User Action Args
2008-02-20 17:17:31adminlinkissue1509095 messages
2008-02-20 17:17:31admincreate