SoundBlock



b = SoundBlock(\red, 0)


w = SoundBlock.allIds.red.first[1]; v = true;

w = SoundBlock.allIds.red.first[3]; v = true;

w = SoundBlock.allIds.red.first[2]; v = false;

w = SoundBlock.allIds.red.first[0]; v = true;


Tdef(\simulation, {loop{

0.01.wait;

// assume that we saw the first marker of the 0th red cube:

b.faceSeen(w, v);

//b.faceSeen(w+ 2.rand, v)

}});


Tdef(\simulation).play;



Tdef(\observation, {loop{

0.1.wait;

"upFace(%) vis(%) states: %\n".postf(b.upFace, b.visible, b.faceStates);

}});

Tdef(\observation).play



// set time the cube needs to disappear

b.faceLag = 1


b.fUpThresh = 0.15