Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14225 > unrolled thread
| Started by | Clif McInnis <c_mcinnis@hotmail.com> |
|---|---|
| First post | 2013-04-18 09:33 +0000 |
| Last post | 2013-05-07 07:53 +0000 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Easy to get the audio out of sync with the graphics (Repost) Clif McInnis <c_mcinnis@hotmail.com> - 2013-04-18 09:33 +0000
Re: Easy to get the audio out of sync with the graphics (Repost) debguy <johnandsara2@cox.net> - 2013-04-19 05:14 +0000
Re: Easy to get the audio out of sync with the graphics (Repost) Clif McInnis <c_mcinnis@hotmail.com> - 2013-05-03 07:50 +0000
Re: Easy to get the audio out of sync with the graphics (w/work around) Clif McInnis <c_mcinnis@hotmail.com> - 2013-05-07 07:53 +0000
| From | Clif McInnis <c_mcinnis@hotmail.com> |
|---|---|
| Date | 2013-04-18 09:33 +0000 |
| Subject | Easy to get the audio out of sync with the graphics (Repost) |
| Message-ID | <kkoelf$gkq$1@smc.vnet.net> |
This is an attempt to help Pre-Kindergarten and Kindergarten children learn about the numerals and numbers from one to 9. The problem is that this age group would be prone to just pressing buttons and it is easy to get the audio out of sync with the graphics. I have played around with Pause[different values] and Enabled->False/Enabled->True as well as SynchronousUpdating -> False. I was hoping that someone might be able to tell me whether I was on the right track; if there is a different function I should look at; or (most important) if what I am trying to do is not doable. I would also appreciate if someone could tell me a way to follow the flow of the way the code is read by the computer, that would give me an idea of where to best place Pauses, etc. (I want to thank John Fultz for contributions previously made to this manipulate.)
Thank You, Clif McInnis
Manipulate[
Pane[Column[{Text[
Row[If[n < 2, {Spacer[160],
Style[nnames[[n]], Bold, Large, Hue[RandomReal[]]],
Style[" Ball", Bold, Large, Green]}, {Spacer[160],
Style[nnames[[n]], Bold, Large, Hue[RandomReal[]]],
Style[" Balls", Bold, Large, Green]}]]],
Row[Table[Graphics[{
Darker[Green], Disk[],
Text[Style[numerals[[ r]], Orange, "Label", 48], {0,
0}]}], {r, 1, n}]
]}, BaseStyle -> {LinebreakAdjustments -> {1., 10, 0, 0,
10}}], {525, 300}],
Row[{Button[
" Start \n ", {n = 1,
Speak["lets count the numbers 1 to 9 out loud. One"]}],
Spacer[55],
Button[
"\[FilledLeftTriangle]\[FilledLeftTriangle] Start Over", {n = 1,
Speak["one"]}],
Button[
"\[FilledLeftTriangle] Less", {If[
n < 2, {n = 1,
Speak["Today we are just working on the numbers from one to \
nine."]}, {n -= 1, Speak[n]}]}], Spacer[10],
Button[
"More \[FilledRightTriangle]", {If[
n > 8, {n = 9,
Speak["Lets learn the numbers from one to nine before we go \
on."]}, {n += 1, Speak[n]}]}],
Button[
"All \[FilledRightTriangle]\[FilledRightTriangle]", {n = 9,
Speak["nine"]}]
}],
{{n, 9, " "}, ControlType -> None},
Initialization :> (
numerals = {"1", "2", "3", "4", "5", "6", "7", "8", "9"};
nnames = {"One", "Two", "Three", "Four", "Five", "Six", "Seven",
"Eight", "Nine"};
[toc] | [next] | [standalone]
| From | debguy <johnandsara2@cox.net> |
|---|---|
| Date | 2013-04-19 05:14 +0000 |
| Message-ID | <kkqjr9$nnr$1@smc.vnet.net> |
| In reply to | #14225 |
i think pausing is going to be easier (wait a mandatory ammount of time after each press for audio to play) as far as stopping audio in it's tracks while playing, i can't say if it's build to do it or not. I'm not fully upgraded. i do know it's possible to stop speach kit audio while playing.
[toc] | [prev] | [next] | [standalone]
| From | Clif McInnis <c_mcinnis@hotmail.com> |
|---|---|
| Date | 2013-05-03 07:50 +0000 |
| Message-ID | <klvq88$2e8$1@smc.vnet.net> |
| In reply to | #14225 |
This is not the perfect solution to the problem, however the behavior of the manipulate is improved over what it was in the original question. Thanks to all who looked at this and to those that left comments, especially David Park who gave me the choiceEnabled =True/False. As for this answer I feel like one of the keys was to place the Speak and Pause statements after the graphics, forcing the program to read through the graphics before encountering the Pause.
Manipulate[
Pane[Column[{Text[
Row[If[n < 2, {Spacer[160],
Style[nnames[[n]], Bold, Large, Hue[RandomReal[]]],
Style[" Ball", Bold, Large, Green]}, {Spacer[160],
Style[nnames[[n]], Bold, Large, Hue[RandomReal[]]],
Style[" Balls", Bold, Large, Green]}]]],
Row[Table[
Graphics[{Darker[Green], Disk[],
Text[Style[numerals[[r]], Orange, "Label", 48], {0, 0}]}], {r,
1, n}]], Speak[n], Pause[1], choiceEnabled = True;},
BaseStyle -> {LinebreakAdjustments -> {1., 10, 0, 0, 10}}], {525,
300}], Row[{Button[
" Start \n ", {If[n < 2,
"", {n = 1, Speak["lets count the numbers 1 to 9 out loud"],
choiceEnabled = False}]}, Enabled -> Dynamic[choiceEnabled]],
Spacer[55],
Button[
"\[FilledLeftTriangle]\[FilledLeftTriangle] Start Over", {If[
n < 2, "", {n = 1, choiceEnabled = False}]},
Enabled -> Dynamic[choiceEnabled]],
Button[
"\[FilledLeftTriangle] Less", {If[
n < 2, {n = 1,
Speak["Today we are just working on the numbers from one to \
nine."], Pause[3]}, {n -= 1, choiceEnabled = False}]},
Enabled -> Dynamic[choiceEnabled]], Spacer[10],
Button["More \[FilledRightTriangle]", {If[
n > 8, {n = 9,
Speak["Lets learn the numbers from one to nine before we go \
on."], Pause[3]}, {n += 1, choiceEnabled = False}]},
Enabled -> Dynamic[choiceEnabled]],
Button[
"All \[FilledRightTriangle]\[FilledRightTriangle]", {If[n > 8,
"", {n = 9, choiceEnabled = False}]},
Enabled -> Dynamic[choiceEnabled]]}],
{{n, 9, " "}, ControlType -> None},
Initialization :> (numerals = {"1", "2", "3", "4", "5", "6", "7",
"8", "9"};
nnames = {"One", "Two", "Three", "Four", "Five", "Six", "Seven",
"Eight", "Nine"};
choiceEnabled = True;)]
[toc] | [prev] | [next] | [standalone]
| From | Clif McInnis <c_mcinnis@hotmail.com> |
|---|---|
| Date | 2013-05-07 07:53 +0000 |
| Subject | Re: Easy to get the audio out of sync with the graphics (w/work around) |
| Message-ID | <kmabuj$qe0$1@smc.vnet.net> |
| In reply to | #14225 |
@ Helen Very interesting that the teachers that taught the older version of the course resisted attempts to have concept driven questions put on the final, and yet the concept driven version students did as well on the skill, or computational questions as the students whose courses had stressed that approach. I feel like that is one of the benefits of a concept focused course, it gives a student the sense of why should I do this, and the student will then work out her/his own how should I do this. Another point that you made that resonates with me is that I teach based much more on experience and observation than data. One statistic that might be interesting, if it is still retrievable, would be to find out how many (if any) of the students from either of the sections went on to take a math course beyond the required baby calculus. My gut would tell me that if any did they were more likely to have come from the group whose instruction was concepts based. If I am right about that it would serve as evidence of one premise of CBM, which is that once a student becomes interested in a subject s/he will explore it more closely. Clif
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web