[etoys-dev] Etoys: WS-Sound-kfr.6.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Jul 17 10:20:19 EDT 2011


Karl Ramberg uploaded a new version of WS-Sound to project Etoys:
http://source.squeak.org/etoys/WS-Sound-kfr.6.mcz

==================== Summary ====================

Name: WS-Sound-kfr.6
Author: kfr
Time: 17 July 2011, 4:19:59 pm
UUID: 1a4b2687-8cce-d047-95d4-d6aa47bb8d07
Ancestors: WS-Sound-kfr.5

Refactoring of change to make sounds play different pitches

=============== Diff against WS-Sound-kfr.5 ===============

Item was changed:
  ----- Method: Morph class>>additionsToViewerCategorySound (in category '*WS-Sound-Interface') -----
  additionsToViewerCategorySound
  	"Answer viewer additions for the 'sound' category"
  
  	^#(
  		sound 
  		(
  			(command playSound: 'play sound' Number)
+ 			(command setSound: 'select a sound' Sound)
- 			(command playInstrument: 'play instrument' Number)
- 			(command setInstrument: 'select a instrument' Sound)
  			(command stopSound 'stop sound')
  			(command beep: 'Make the specified sound' Sound)
  		)
  	)
  !

Item was removed:
- ----- Method: Player>>playSound: (in category '*WS-Sound-Interface') -----
- playSound: frequency 
- 	| newSound |
- 	self stopSound.
- 	newSound _ FMSound new
- 				soundForPitch: frequency
- 				dur: 100.0
- 				loudness: 0.3.
- 	self costume setProperty: #playingSound toValue: newSound.
- 	SoundPlayer resumePlaying: newSound quickStart: true!



More information about the etoys-dev mailing list