BlocklyProp S3 - Modify default program to reduce volume
John Kauffman
Posts: 653
I have three S3s running in a room while 15 other students are working on other projects. The combined volume of the S3s is high.
The factory default program is in SPIN which I haven't used in years. I would be grateful for help to change the parameters to reduce the volume of the tones.
I have attached a copy of the file as comes from factory but re-named it to avoid confusion.
Thanks, John
The factory default program is in SPIN which I haven't used in years. I would be grateful for help to change the parameters to reduce the volume of the tones.
I have attached a copy of the file as comes from factory but re-named it to avoid confusion.
Thanks, John
Comments
Sorry to be thick, I have only been using PropC.
Thanks.
original:
PUB set_volume(vol)
'' Set the current volume level to vol (0 - 100) percent.
''
'' Example: scribbler.set_volume(50) 'Set volume level to 50%.
return _enqueue_tone(constant(VOLU << 13) | ((vol #> 0 <# 100) * $1fff / 100))
modified:
PUB set_volume(vol)
'' Set the current volume level to vol (0 - 100) percent.
''
scribbler.set_volume(50) 'Set volume level to 50%.
return _enqueue_tone(constant(VOLU << 13) | ((vol #> 0 <# 100) * $1fff / 100))