Hi Alex,<div><br></div><div>I have a similar design and am also having a lot of trouble making it work. Have you had any luck since posting?</div><div><br></div><div>Thanks,</div><div><br></div><div>Claire</div><div><br><br>On Wednesday, 29 August 2012 10:12:21 UTC-4, Alex wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><span style="font-family:courier new,monospace"><font face="arial,sans-serif">Hi all,<br><br>I have a quick question about independently manipulating the volume of two different sound files. Some quick background: <br><br></font></span><ul><li>There is a brief noise that constantly stays at 100dB.</li><li>There are two longer beeps that participants will be listening for (at 80dB)</li><li>If participants hear either of the beeps, they are instructed to press a key</li><ul><li>If the participant makes a response, the two beeps are attenuated by 5dB</li><li>If the participant does not make a response, the two beeps' volumes are increased by 5dB</li></ul><li>The volume change should not occur instantaneously, but rather, starting at the end of the trial</li></ul><p>Below, I have some code that I have tried to use. I think that my problem is that I'm not storing the volume itself as an integer or value here. When I try to compile the code, it states that the properties have default values. I've looked far and wide for a solution to this on the web, and after not finding much help, I'm posting here. Any help or advice on this would be greatly appreciated! I have attached a snippet of the E-Basic that has been giving me said grief.<br></p><span style="font-family:courier new,monospace"><font face="arial,sans-serif"><br></font>Dim MinusBeep As SlideSoundOut</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Dim PlusBeep As SlideSoundOut</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"></span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Set MinusBeep = CSlideSoundOut(<wbr>CSMinusPresentation.States(<wbr>CSMinusPresentation.<wbr>ActiveState).Objects("<wbr>CSMinusBeep"))</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Set PlusBeep = CSlideSoundOut(<wbr>CSPlusPresentation.States(<wbr>CSPlusPresentation.<wbr>ActiveState).Objects("<wbr>CSPlusBeep"))</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"></span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> If (ActiveState Here).InputMasks.Responses.<wbr>Count >= 0 Then</span><span style="font-family:courier new,monospace"></span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> MinusBeep.Buffers(1).volume = MinusBeep.Buffers(1).volume - 500</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> PlusBeep.Buffers(1).volume = PlusBeep.Buffers(1).volume - 500</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> Else</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> MinusBeep.Buffers(1).volume = MinusBeep.Buffers(1).volume + 500</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> PlusBeep.Buffers(1).volume = PlusBeep.Buffers(1).volume + 500</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> End If </span><br style="font-family:courier new,monospace"><br></blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/e-prime/-/t2LJEgGcrhAJ">https://groups.google.com/d/msg/e-prime/-/t2LJEgGcrhAJ</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />
<br />
<br />