Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make 7_AudioTestApp as main #7

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
8ec959b
This branch is an example for taking the FFT of input audio samples a…
eclarson Aug 28, 2020
1649931
cleaned up spacing in file
eclarson Aug 28, 2020
9039ca7
Updated code from the flipped module.
eclarson Aug 28, 2020
9f39b68
changing to use latest license
eclarson Aug 31, 2021
8b5be82
new remote branch and output
eclarson Sep 13, 2021
d2a597e
fixing novocaine issue with sampling rate
eclarson Sep 22, 2021
054ee22
commit of better graphing library
eclarson Nov 4, 2021
3d9ec5a
adding graphing support for grids and examples to set background color
eclarson Nov 5, 2021
7eda5aa
added better error checking
eclarson Sep 14, 2022
40ddafa
Added example for placing the metal graph inside a custom view.
eclarson Sep 15, 2023
b874beb
added a "zoomed fit" graph for some extra clarity
eclarson Sep 27, 2023
a25187a
committing other comments
eclarson Sep 27, 2023
d9adbc6
added public sampling rate to audio model
eclarson Sep 27, 2023
880b2f4
Committing some additions to the FFT graphing plot
eclarson Sep 27, 2023
b4ac961
added a comment and storyboard update
eclarson Sep 27, 2023
4dd7d2f
New branch for testing
eclarson Sep 29, 2023
7ce0b97
Added some additional functionality and explanation text.
eclarson Sep 29, 2023
fcbe0b0
app store updates
eclarson Sep 29, 2023
e793d51
I THINK that I fixed a memory leak and a race condition on the MTL co…
eclarson Oct 3, 2023
50dec22
Still trying to track down this leak. Instruments cannot detect... bu…
eclarson Oct 3, 2023
de910e9
fixing notification observer for metal graph
eclarson Oct 3, 2023
2ab682b
add shaders???
eclarson Oct 3, 2023
cf862c7
added F functionality
eclarson Sep 23, 2024
cd7b0cf
changes for module A and start for B
naim1115 Oct 11, 2024
c8fc367
add oooh vs aaah
ephraim888sun Oct 11, 2024
bc0b912
add storyboard
ephraim888sun Oct 11, 2024
4a7506d
changes
naim1115 Oct 11, 2024
24988a0
satisfaction song playing fix
naim1115 Oct 11, 2024
c5308bd
commit
naim1115 Oct 11, 2024
15f5e73
commit
naim1115 Oct 11, 2024
0e805d9
final push?
naim1115 Oct 11, 2024
1c1aaef
push
naim1115 Oct 12, 2024
f84974e
final commit
naim1115 Oct 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
app store updates
  • Loading branch information
eclarson committed Sep 29, 2023
commit fcbe0b036978e43a3c8a0181354cefd8d16a481e
18 changes: 18 additions & 0 deletions AudioLabSwift/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,91 +1,109 @@
{
"images" : [
{
"filename" : "peruna40 2.png",
"idiom" : "iphone",
"scale" : "2x",
"size" : "20x20"
},
{
"filename" : "peruna60.png",
"idiom" : "iphone",
"scale" : "3x",
"size" : "20x20"
},
{
"filename" : "peruna58 1.png",
"idiom" : "iphone",
"scale" : "2x",
"size" : "29x29"
},
{
"filename" : "peruna87.png",
"idiom" : "iphone",
"scale" : "3x",
"size" : "29x29"
},
{
"filename" : "peruna80 1.png",
"idiom" : "iphone",
"scale" : "2x",
"size" : "40x40"
},
{
"filename" : "peruna120.png",
"idiom" : "iphone",
"scale" : "3x",
"size" : "40x40"
},
{
"filename" : "peruna120 1.png",
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"filename" : "peruna180.png",
"idiom" : "iphone",
"scale" : "3x",
"size" : "60x60"
},
{
"filename" : "peruna20.png",
"idiom" : "ipad",
"scale" : "1x",
"size" : "20x20"
},
{
"filename" : "peruna40.png",
"idiom" : "ipad",
"scale" : "2x",
"size" : "20x20"
},
{
"filename" : "peruna29.png",
"idiom" : "ipad",
"scale" : "1x",
"size" : "29x29"
},
{
"filename" : "peruna58.png",
"idiom" : "ipad",
"scale" : "2x",
"size" : "29x29"
},
{
"filename" : "peruna40 1.png",
"idiom" : "ipad",
"scale" : "1x",
"size" : "40x40"
},
{
"filename" : "peruna80.png",
"idiom" : "ipad",
"scale" : "2x",
"size" : "40x40"
},
{
"filename" : "peruna76.png",
"idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
},
{
"filename" : "peruna152.png",
"idiom" : "ipad",
"scale" : "2x",
"size" : "76x76"
},
{
"filename" : "peruna167.png",
"idiom" : "ipad",
"scale" : "2x",
"size" : "83.5x83.5"
},
{
"filename" : "peruna1024.png",
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 8 additions & 11 deletions AudioLabSwift/ViewController.swift
Original file line number Diff line number Diff line change
@@ -50,18 +50,15 @@ class ViewController: UIViewController {
@IBOutlet weak var labelF3: UILabel!

@IBAction func setClose(_ sender: Any) {
if frequency1 == 900 {
frequency1 = 500
frequency2 = 600
frequency3 = 900
}else if frequency1 == 500{
frequency1 = 550
frequency2 = 600
}else if frequency1 == 550{
frequency1 = 590
frequency2 = 600
let diff = abs(frequency1-frequency2)
if diff > 100 {
frequency2 = frequency1 + 99
}else if diff > 60{
frequency2 = frequency1 + 51
}else if diff > 30{
frequency2 = frequency1 + 10
}else{
frequency1 = 900
frequency2 = frequency1 + 300
}

}