
I would like to do something like the following but can't get it to work. Code:
$SongID = "Track_0"
ControlCommand("Soundboard v4", $SongID)
I could do something like this but want to avoid it if possible because this becomes static instead of dynamically driven.Code:
if($SongID = "Track_0")
ControlCommand("Soundboard v4", Track_0)
elseif($SongID = "Track_1")
ControlCommand("Soundboard v4", Track_1)
.
.
.
endif
So the question is, how would one go about passing a variable into the SoundBoard V4 command?
Thanks for any advice in advance. This one has me stumped.
I need to spend some quality time with a robot so give me a couple of hours and I'll play and see what I discover.
There's a challenge to the community, find out something which I failed to find (it happens, it's rare but it happens)
What is it that you are trying to achieve anyway? Somewhere in the script you must be setting $songID. I know it's a little more coding (although it is click & paste) but couldn't you use the ControlCommand in place of the setting of the variable?
I'm not actually using it for songs, but stories for a teacher to use in a classroom type setting.
Thanks DJ. Also, Thanks Rich for looking.
I also have age ranges in the database so that the call to the database retrieves the tracks that are only appropriate for the age of the user. If a first grade teacher is using the robot, it would recognize that teachers face, and only play tracks that are for 1st grade students. If the 6th grade teacher was using the robot, it would play tracks appropriate for sixth grade students.
This all goes back to the project that was for my granddaughter. I want the robot to change what it does when she is 1 vs 6 years old without me having to go make the changes in the project when she turns 6.