From 1e096e55ca30dc80c3faa8d1ea36de13bc90cc6a Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Tue, 21 Jan 2025 09:24:13 +0000 Subject: iqconvert: initial implementation non-working --- Radio/Utils/WaterfallFile/NaiveFFT512.swift | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'Radio/Utils/WaterfallFile/NaiveFFT512.swift') diff --git a/Radio/Utils/WaterfallFile/NaiveFFT512.swift b/Radio/Utils/WaterfallFile/NaiveFFT512.swift index 0e6373a..510d784 100644 --- a/Radio/Utils/WaterfallFile/NaiveFFT512.swift +++ b/Radio/Utils/WaterfallFile/NaiveFFT512.swift @@ -46,28 +46,6 @@ class NaiveFFT512 { return transform_result } - func computeLine1024(_ processingArray: [Int8]) -> [Float] { - - var dataFloat = [Float](repeating: 0.0, count: NaiveFFT512.sampleCount*2) - - if processingArray.count != NaiveFFT512.sampleCount*2 { - print("Not supporting arrays not equail to \(NaiveFFT512.sampleCount)") - return [] - } - - vDSP.convertElements(of: processingArray, to: &dataFloat) - //dataFloat = vDSP.add(127.0, dataFloat) - //print(dataFloat) - - //move from -127.0 to 128.0 range -1.0...1.0 - //var adjusted = vDSP.divide(dataFloat, Float(sampleCount)) - var adjusted = dataFloat - //print(adjusted) - - var transform_result = forwardDCT.transform(adjusted) - transform_result = vDSP.absolute(transform_result) - - return transform_result - } + } -- cgit v1.2.3