Thank you so much for the tutorials and resources, it was quite helpful! I was able to extract just the bpm value by parsing using the JSON module.
Now that I have just the bpm value, I am trying to visualize the live bpm by making the image get bigger or smaller as the heartbeat changes. However, the circle TOP is a full white screen rather than a white circle. I have tried to add a MATH to convert the heartbeat range to a smaller range for the circle but it has not worked. I am unsure of what else I can do to get the circle to work and change as the heartbeat changes. Please let me know of any advice or suggestions or any other options I could try, thank you so much!
the parsing with the JSON DAT returns a list - you can see this from the square brackets around the value. This is caused by the Output Format parameter of the JSON DAT, when setting it to “Table”, you will get the parsed values as cells - easier to deal with down the line. Further, if your JSONPath Filter instead of $[0][0].values.bpm just looks at the values with setting it to $[0][0].values, you will get a column header “bpm” which becomes very useful in the next steps.
When you are converting this to a CHOP, by default it will attempt to create a channel per row, but in your case and after following the above point, you would want to create a channel per column by setting the Output parameter of the DAT to CHOP to “Channel per Column” and then set the First Row is parameter to “Names” as well as the First Column is parameter to “Values”. The result will be a single channel called “bpm” with the value from your dictionary.
Next when trying to control the circle size, the Math CHOP is already a good idea since the value range of the BPMs not necessarily will match the normalized range of a circle’s radius. So in the Math CHOP use the From Range and To Range parameters to adjust the range (for example from 0 - 180 to 0 -1) and then export that value onto the Radius parameter of the Circle TOP. Converting it to a TOP as you are doing and using it as an input to the Circle TOP will only change the resolution of the Circle TOP but not control any of it’s parameters.
ou can use a Text TOP and reference the bpm value either in the Text TOP’s Text parameter or via the Value parameter which can be exposed by turning on the Append Value parameter.
The Text TOP then can be composited with the Circle, for example with a Composite TOP.