// // GenTrig.swift // PrySDR // // Created by Jacky Jack on 26/10/2024. // /// Generate sin function as float array /// - Parameters: /// - sample_rate: sample rate, how many samples per second /// - freq: sin frequency /// - ampl: amplitude /// - phase: phase of sin /// - sample_num: number of samples to generate /// - Returns: Array of floats within range [-ampl ... apml] /// func genSin(_ sample_rate: Int,_ freq: Float,_ ampl: Float,_ phase: Float,_ sample_num: Float) -> Array { return [0.0] } /// Generate Cos function as float array /// - Parameters: /// - sample_rate: sample rate, how many samples per second /// - freq: sin frequency /// - ampl: amplitude /// - phase: phase of sin /// - sample_num: number of samples to generate /// - Returns: Array of floats within range [-ampl ... apml] /// func genCos(_ sample_rate: Int,_ freq: Float,_ ampl: Float,_ phase: Float,_ sample_num: Float) -> Array { return [0.0] }