On 18.07.2011, at 17:38, Karl Ramberg (JIRA) wrote:
>
> [ http://tracker.squeakland.org/browse/SQ-852 ]
>
> Karl Ramberg commented on SQ-852:
> ---------------------------------
>
> I'm not sure why it initializes the process on every start...
It shouldn't, IMHO.
- Bert -
Karl Ramberg uploaded a new version of Sound to project Etoys:
http://source.squeak.org/etoys/Sound-kfr.19.mcz
==================== Summary ====================
Name: Sound-kfr.19
Author: kfr
Time: 19 July 2011, 2:30:28 am
UUID: 77e55006-0169-884c-b36d-34592e02ab51
Ancestors: Sound-kfr.18
Do not initialize SounPlayer every time sound is played
=============== Diff against Sound-kfr.17 ===============
Item was changed:
----- Method: SoundPlayer class>>initialize (in category 'initialization') -----
initialize
"SoundPlayer initialize; shutDown; startUp"
"Details: BufferMSecs represents a tradeoff between latency and quality. If BufferMSecs is too low, the sound will not play smoothly, especially during long-running primitives such as large BitBlts. If BufferMSecs is too high, there will be a long time lag between when a sound buffer is submitted to be played and when that sound is actually heard. BufferMSecs is typically in the range 50-200."
SamplingRate := 22050.
BufferMSecs := 120.
Stereo := true.
+ Preferences
- "Preferences
addPreference: #soundReverb
categories: #(media)
default: true
balloonHelp: 'If true, a little echo will be added, making it sound as if it is in a larger space.'
projectLocal: true
changeInformee: self
changeSelector: #reverbChanged.
+ self reverbChanged.
- self reverbChanged."
!
Item was changed:
----- Method: SoundPlayer class>>startUpWithSound: (in category 'snapshotting') -----
startUpWithSound: aSound
"Start up the player process."
+ "SoundPlayer initialize."
- SoundPlayer initialize.
SoundPlayer
startPlayerProcessBufferSize: (BufferMSecs * SamplingRate) // 1000
rate: SamplingRate
stereo: Stereo
sound: aSound.
!
Karl Ramberg uploaded a new version of Sound to project Etoys:
http://source.squeak.org/etoys/Sound-kfr.17.mcz
==================== Summary ====================
Name: Sound-kfr.17
Author: kfr
Time: 17 July 2011, 10:50:30 pm
UUID: 67ba7fd8-1d25-6f4b-85e7-076c0ff2fc4e
Ancestors: Sound-kfr.16
Reverb was turnes on everytime SoundPlayer started playing. Preference setting must be put somwhere else.
=============== Diff against Sound-kfr.16 ===============
Item was changed:
----- Method: SoundPlayer class>>initialize (in category 'initialization') -----
initialize
"SoundPlayer initialize; shutDown; startUp"
"Details: BufferMSecs represents a tradeoff between latency and quality. If BufferMSecs is too low, the sound will not play smoothly, especially during long-running primitives such as large BitBlts. If BufferMSecs is too high, there will be a long time lag between when a sound buffer is submitted to be played and when that sound is actually heard. BufferMSecs is typically in the range 50-200."
SamplingRate := 22050.
BufferMSecs := 120.
Stereo := true.
+ "Preferences
- Preferences
addPreference: #soundReverb
categories: #(media)
default: true
balloonHelp: 'If true, a little echo will be added, making it sound as if it is in a larger space.'
projectLocal: true
changeInformee: self
changeSelector: #reverbChanged.
+ self reverbChanged."
- self reverbChanged.
!
Karl Ramberg uploaded a new version of Etoys to project Etoys:
http://source.squeak.org/etoys/Etoys-kfr.82.mcz
==================== Summary ====================
Name: Etoys-kfr.82
Author: kfr
Time: 17 July 2011, 7:21:34 pm
UUID: a3799143-6cbd-7742-af6f-36b01d56c881
Ancestors: Etoys-kfr.81
Add FMSynth instruments
=============== Diff against Etoys-kfr.79 ===============
Item was changed:
----- Method: TileMorph>>soundChoices (in category 'misc') -----
soundChoices
"Answer a list of sound choices. This applies only to tiles that have sound-names as their literals, viz. SoundTiles and SoundReadoutTiles."
| aList |
aList _ SoundService default sampledSoundChoices asOrderedCollection.
aList removeAllFoundIn: (ScriptingSystem soundNamesToSuppress copyWithout: literal).
+ aList addAll: AbstractSound soundNames contents.
^ aList asSortedArray!
Karl,
I like the addition of instruments when we make a sound, but what I was
thinking of is that you could specify the instrument that played when the
scripting tile "play frequency of | 880" (from the sound category in the
viewer) fired.
Stephen
On Sat, Jul 16, 2011 at 5:58 PM, <commits(a)source.squeak.org> wrote:
> Karl Ramberg uploaded a new version of Etoys to project Etoys:
> http://source.squeak.org/etoys/Etoys-kfr.80.mcz
>
> ==================== Summary ====================
>
> Name: Etoys-kfr.80
> Author: kfr
> Time: 16 July 2011, 11:57:47 pm
> UUID: 1a404ea7-fb11-be42-96c1-74b2cf326b7d
> Ancestors: Etoys-kfr.79
>
> Adds choices to play instrument sounds
>
> http://tracker.squeakland.org/browse/SQ-956
>
> =============== Diff against Etoys-kfr.79 ===============
>
> Item was changed:
> ----- Method: TileMorph>>soundChoices (in category 'misc') -----
> soundChoices
> + "Answer a list of sound choices. This applies only
> + to tiles that have sound-names as their literals,
> + viz. SoundTiles and SoundReadoutTiles."
> - "Answer a list of sound choices. This applies only to tiles that
> have sound-names as their literals, viz. SoundTiles and SoundReadoutTiles."
> -
> | aList |
> + aList := SoundService default sampledSoundChoices
> asOrderedCollection.
> + aList
> + removeAllFoundIn: (ScriptingSystem soundNamesToSuppress
> copyWithout: literal).
> + aList addAll: AbstractSound soundNames contents.
> - aList _ SoundService default sampledSoundChoices
> asOrderedCollection.
> - aList removeAllFoundIn: (ScriptingSystem soundNamesToSuppress
> copyWithout: literal).
> ^ aList asSortedArray!
>
> _______________________________________________
> etoys-dev mailing list
> etoys-dev(a)squeakland.org
> http://lists.squeakland.org/mailman/listinfo/etoys-dev
>
Karl Ramberg uploaded a new version of Etoys to project Etoys:
http://source.squeak.org/etoys/Etoys-kfr.80.mcz
==================== Summary ====================
Name: Etoys-kfr.80
Author: kfr
Time: 16 July 2011, 11:57:47 pm
UUID: 1a404ea7-fb11-be42-96c1-74b2cf326b7d
Ancestors: Etoys-kfr.79
Adds choices to play instrument sounds
http://tracker.squeakland.org/browse/SQ-956
=============== Diff against Etoys-kfr.79 ===============
Item was changed:
----- Method: TileMorph>>soundChoices (in category 'misc') -----
soundChoices
+ "Answer a list of sound choices. This applies only
+ to tiles that have sound-names as their literals,
+ viz. SoundTiles and SoundReadoutTiles."
- "Answer a list of sound choices. This applies only to tiles that have sound-names as their literals, viz. SoundTiles and SoundReadoutTiles."
-
| aList |
+ aList := SoundService default sampledSoundChoices asOrderedCollection.
+ aList
+ removeAllFoundIn: (ScriptingSystem soundNamesToSuppress copyWithout: literal).
+ aList addAll: AbstractSound soundNames contents.
- aList _ SoundService default sampledSoundChoices asOrderedCollection.
- aList removeAllFoundIn: (ScriptingSystem soundNamesToSuppress copyWithout: literal).
^ aList asSortedArray!