joelle-o-world / naive-instruments

Clueless audio synthesis library in C++
0 stars 0 forks source link

Placeholder signals #99

Open joelle-o-world opened 1 year ago

joelle-o-world commented 1 year ago

Just had this idea. Create a special Placeholder signal template class, this can be used in place of actual signals in the graph to denote values that haven't specified yet. This could be useful for a few functions, espiially if shorthands (maybe renamed blueprints) were defined using placeholders:

It would be a great idea if this could combined with AssignableProperty<T> (or better nae) which would attach metadata to anything you might set. Most of these would be SignalReader, but sometimes it could be other things such as bool flags or buffer pointers. The whole point is to decouple metadata from the SignalReader class.