Now I have the problem that I do not know how to get the value from the menu 
and not the menu item morph


setFFTSize
        "Set the size of the FFT used for frequency analysis."

        | 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 value: r].
        sz := aMenu xxxxxxx
                                                
        sz ifNil: [^ self].
        on := soundInput isRecording.
        self stop.
        fft := FFT new: sz.
        self resetDisplay.
        on ifTrue: [self start].


do you have an idea?

Stef

Reply via email to