A new version of EToys was added to project The Inbox:
http://source.squeak.org/inbox/EToys-ct.359.mcz==================== Summary ====================
Name: EToys-ct.359
Author: ct
Time: 20 September 2019, 7:27:50.226726 pm
UUID: d4cbaeb4-8010-2d4d-ba53-8e0332052fe0
Ancestors: EToys-mt.354
Refactor SpectrumAnalyzerMorph: Extract #fftSize: to enable foreign calls
=============== Diff against EToys-mt.354 ===============
Item was added:
+ ----- Method: SpectrumAnalyzerMorph>>fftSize: (in category 'accessing') -----
+ fftSize: aSize
+
+ | on |
+ on := soundInput isRecording.
+ self stop.
+ fft := FFT new: aSize.
+ self resetDisplay.
+ on ifTrue: [self start].!
Item was changed:
----- Method: SpectrumAnalyzerMorph>>setFFTSize (in category 'menu and buttons') -----
setFFTSize
"Set the size of the FFT used for frequency analysis."
+ | aMenu sz |
- | aMenu sz on |
aMenu := CustomMenu 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 startUp.
sz ifNil: [^ self].
+ self fftSize: sz.!
- on := soundInput isRecording.
- self stop.
- fft := FFT new: sz.
- self resetDisplay.
- on ifTrue: [self start].
- !