Skip to content

Instantly share code, notes, and snippets.

@renarl
renarl / pure_tone.swift
Created November 14, 2022 17:33 — forked from yenrab/pure_tone.swift
An MIT licensed pure tone generator in Swift. A single function is provided with internal comments. Complexity calculation is not done, but is at least O(n) with the duration being the data.
//
//
// Swift Pure Tone Generation
//
/*
Copyright (c) 2021 Lee Barney
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense,
Verifying my Blockstack ID is secured with the address 1GeVYRumtsHuKipf2GAs5ebXRxdVAV7UQ https://explorer.blockstack.org/address/1GeVYRumtsHuKipf2GAs5ebXRxdVAV7UQ
Verifying my Blockstack ID is secured with the address 1Pk2J5n54NmDxnvszkuB8gA2jSFBRZBYwE https://explorer.blockstack.org/address/1Pk2J5n54NmDxnvszkuB8gA2jSFBRZBYwE
Verifying that "renarl.id" is my Blockstack ID. https://onename.com/renarl
Verifying my Blockstack ID is secured with the address 1xRGm5UxLYZJEZ5rgkuMYbp1Fgy6PFh1b https://explorer.blockstack.org/address/1xRGm5UxLYZJEZ5rgkuMYbp1Fgy6PFh1b