|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
|
nodiscardnoexcept |
Couple a reed with its own dynamics to the first cell of the bore.
| reed | Channel. closing_pressure sets the static compliance, so the reed settles at H (1 - d / pM) under a steady difference d. |
| resonance | Resonance of the reed in Hz, positive |
| damping | Damping of the reed in 1/s, not negative |
| reed_area | Effective area in square metres over which the reed moves air, not negative; zero leaves the reed's own flow out |
| time_step | Time step in seconds |
| motion | Displacement of the reed from rest, then the previous one, in metres, updated here; start both at zero |
| end_pressure_gain | Gain of the first pressure point from DuctGrid |
| mouth_pressure | Blowing pressure at the half step |
| end_pressure | Pressure of the first point at the start of the sample |
| downstream_flow | Volume velocity of the first half section, from the same sample |
The reed is a damped oscillator, y'' + damping y' + w0^2 y = -w0^2 H d / pM, stepped by a centred scheme that is stable for any step. The opening during a sample is the one the previous sample left, which makes the coupling an exact closed form, s |s| + a s = target with s = sign(d) sqrt|d|, solved by its stable root. The solution is unique for every parameter, with no condition to check. The lag is half a sample, small beside the period of a reed resonance. A reed driven past the lay is held there without bouncing. With a reed_area the moving reed also pushes air, a flow of -reed_area times its velocity into the bore, which is added to the flow returned and enters the coupling like any other known flow (Avanzini and Rocchesso). An invalid channel or resonance acts as a wall.
Definition at line 111 of file Reed.cpp.
References centred_end_pressure(), flow_coupling_gain(), and flow_coupling_target().