Skip to content

Integer init and setter for Samples #50

@orchetect

Description

@orchetect

Since working with audio samples is more idiomatic to whole integer sample counts and not fractional/floating point, add overloads for the existing audio samples inits/methods to take Int.

Rename existing:

Timecode

  • samplesDoubleValue(sampleRate: Int) -> Double
  • setTimecode(exactlySamplesValue: Double, sampleRate: Int) throws

Add overloads for:

Timecode

  • samplesValue(sampleRate: Int) -> Int
  • setTimecode(exactlySamplesValue: Int, sampleRate: Int) throws

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions