MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / playhead

Method playhead

crates/firewheel-core/src/node.rs:824–838  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

822 self.clock_samples
823 .to_seconds(self.sample_rate, self.sample_rate_recip)
824 }
825
826 /// Get the current time of the audio clock in frames as a range for this
827 /// processing block.
828 pub fn clock_samples_range(&self) -> Range<InstantSamples> {
829 self.clock_samples..self.clock_samples + DurationSamples(self.frames as i64)
830 }
831
832 /// Get the current time of the audio clock in frames as a range for this
833 /// processing block.
834 pub fn clock_seconds_range(&self) -> Range<InstantSeconds> {
835 self.clock_seconds()
836 ..(self.clock_samples + DurationSamples(self.frames as i64))
837 .to_seconds(self.sample_rate, self.sample_rate_recip)
838 }
839
840 /// Get the playhead of the transport at the first frame in this processing
841 /// block.

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.80
samples_to_musicalMethod · 0.45

Tested by

no test coverage detected