Etoys: WS-Sound-kfr.6.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Etoys: WS-Sound-kfr.6.mcz

commits-2
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!

_______________________________________________
etoys-dev mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/etoys-dev