Query operator internal state.
272{
273 if (query == "pressure") {
275 }
276 if (query == "closing_pressure") {
278 }
279 if (query == "opening") {
281 }
282 if (query == "width") {
283 return m_width.load(std::memory_order_relaxed);
284 }
285 if (query == "smoothing") {
286 return m_smoothing.load(std::memory_order_relaxed);
287 }
288 if (query == "resonance") {
289 return m_resonance.load(std::memory_order_relaxed);
290 }
291 if (query == "reed_damping") {
293 }
294 if (query == "noise") {
295 return m_noise.load(std::memory_order_relaxed);
296 }
297 if (query == "noise_cutoff") {
299 }
300 if (query == "reed_area") {
301 return m_reed_area.load(std::memory_order_relaxed);
302 }
303 if (query == "lip") {
304 return m_lip.load(std::memory_order_relaxed);
305 }
306 if (query == "unique") {
307 return m_unique.load(std::memory_order_relaxed) ? 1.0 : 0.0;
308 }
309 return std::nullopt;
310}
std::atomic< double > m_resonance
std::atomic< double > m_rest_opening
std::atomic< double > m_noise
std::atomic< double > m_reed_damping
std::atomic< double > m_smoothing
std::atomic< double > m_width
std::atomic< double > m_lip
std::atomic< double > m_target_pressure
std::atomic< double > m_noise_cutoff
std::atomic< bool > m_unique
std::atomic< double > m_closing_pressure
std::atomic< double > m_reed_area