HI guys

I'm trying to fix all the sound interface for 2.0 and I got trapped into 
MenuMorph. How do I schedule a menu and get its selected value?
I have to convert code like the following one.



        | aMenu sz on |
        aMenu := MenuMorph new title: ('FFT size (currently {1})' translated 
format:{fft n}).
        ((7 to: 10) collect: [:n | 2 raisedTo: n]) do: [:r | aMenu add: r 
printString action: r].
        
        sz := aMenu popUpInWorld.
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                how can I get the selected value?
                

        sz ifNil: [^ self].
        on := soundInput isRecording.
        self stop.
        fft := FFT new: sz.
        self resetDisplay.
        on ifTrue: [self start].


Reply via email to