Get all properties for a specific frame
| 159 | |
| 160 | // Get all properties for a specific frame |
| 161 | std::string Echo::PropertiesJSON(int64_t requested_frame) const { |
| 162 | |
| 163 | // Generate JSON properties list |
| 164 | Json::Value root = BasePropertiesJSON(requested_frame); |
| 165 | |
| 166 | // Keyframes |
| 167 | root["echo_time"] = add_property_json("Time", echo_time.GetValue(requested_frame), "float", "", &echo_time, 0, 5, false, requested_frame); |
| 168 | root["feedback"] = add_property_json("Feedback", feedback.GetValue(requested_frame), "float", "", &feedback, 0, 1, false, requested_frame); |
| 169 | root["mix"] = add_property_json("Mix", mix.GetValue(requested_frame), "float", "", &mix, 0, 1, false, requested_frame); |
| 170 | |
| 171 | // Return formatted string |
| 172 | return root.toStyledString(); |
| 173 | } |