This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hermes Lite 2 Basic Metis Protocol 1 Operation Emulator | |
// emulates Discovery and a 1 slice receiver (for IQ data from a file) | |
// uses UDP port 1024 | |
// | |
// cc fhl2e.c -lpthread -lm -o fhl2 | |
// | |
// ( "usage -n -f0 -g -sr -iq \n" ) | |
// for add noise, add tone frequency & gain, set sample rate, IQ filename | |
#define FHL2EVERSION ("1.0.102") // 2024-02-05 [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Example of Using AVAudioPlayer | |
// to play a buffer of (synthesized) audio samples from memory | |
// by converting a [Float] buffer into an in-memory WAV file | |
// | |
// Copyright © 2019 Ronald H Nicholson Jr. All rights reserved. | |
// (re)Distribution permitted under the 3-clause New BSD license. | |
// | |
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// receive packets via UPD in Swift | |
// Original: https://gist.github.com/NeoTeo/b6195efb779d925fd7b8 | |
// server only converted to Swift 4 2018-02-24 by [email protected] | |
// | |
// swiftc udp_receive.swift -o udp_receive | |
// | |
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem Some tutorial DSP subroutines for Chipmunk Basic | |
rem | |
rem genstab() Generates a sine table for use by the fft() subroutine | |
rem fft() Implementation of a common in-place DIT FFT algorithm | |
rem *** genstab(m) - a subroutine to generate sine table of length 2^m *** | |
rem *** must be called before calling fft() for | |
rem the first time, and if the length 2^m changes | |
sub genstab(m) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 rem SensorTag button press counter | |
102 rem This program will connect to and count TI SensorTag button presses. | |
104 rem It can count even in the background or with the iPhone display off. | |
106 rem Select a Sensor in the List and wait for connection success. | |
108 rem Tap the display to exit. | |
110 rem for HotPaw Basic 1.7.7 , [email protected] , 2017-12-08 | |
112 rem | |
120 fn btle.init() | |
125 print "Initializing BLE ..." | |
130 fn sleep(5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// command-line Swift test of an NSURLSession dataTask | |
// 2017-May-06 [email protected] (hotpaw) | |
// | |
// compile and run using: | |
// | |
// swiftc nsurl.dtask.test1.swift -o mytest1 | |
// ./mytest1 | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MyMetalWaterfall.swift | |
// version 0.1.105 (updated for Swift 5) | |
// | |
// Demonstrates using a MetalKit compute shader to render a live waterfall RGB bitmap | |
// into a UIView | |
// | |
// This is a single file iOS app | |
// | |
// It includes AppDelegate for a minimal demonstration app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MyURLStreamTask.swift | |
// Demonstrates using an NSURLSessionStreamTask to implement a bidirectional TCP socket connection | |
// | |
// by [email protected] 2017-03-07 | |
// distribution: BSD 2-clause | |
// | |
import Foundation | |
class MyURLStreamTask { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// RecordAudio.swift | |
// | |
// This is a Swift class (updated for Swift 5) | |
// that uses the iOS RemoteIO Audio Unit | |
// to record audio input samples, | |
// (should be instantiated as a singleton object.) | |
// | |
// Created by Ronald Nicholson on 10/21/16. | |
// Copyright © 2017,2019 HotPaw Productions. All rights reserved. |
NewerOlder