Skip to content

Commit

Permalink
Fixing Buggy Images
Browse files Browse the repository at this point in the history
Everything is consistent now
  • Loading branch information
Aayush9029 committed May 31, 2023
1 parent b13dc4c commit b58af0d
Show file tree
Hide file tree
Showing 48 changed files with 34 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "Linear-Spectrogram.png",
"filename" : "Linear Spectrogram.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Linear-[email protected]",
"filename" : "Linear [email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Linear-[email protected]",
"filename" : "Linear [email protected]",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "Mel-Spectrogram.png",
"filename" : "Mel Spectrogram.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Mel-[email protected]",
"filename" : "Mel [email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Mel-[email protected]",
"filename" : "Mel [email protected]",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "Drum.png",
"filename" : "Mini Drums.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Drum@2x.png",
"filename" : "Mini Drums@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Drum@3x.png",
"filename" : "Mini Drums@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "MiniKeys1.png",
"filename" : "Mini Keyboard.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "MiniKeys1@2x.png",
"filename" : "Mini Keyboard@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "MiniKeys1@3x.png",
"filename" : "Mini Keyboard@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "Vocal.png",
"filename" : "Vocals.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Vocal@2x.png",
"filename" : "Vocals@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Vocal@3x.png",
"filename" : "Vocals@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "Noise.png",
"filename" : "White Noise.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"filename" : "White [email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"filename" : "White [email protected]",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Diff not rendered.
Diff not rendered.
Diff not rendered.
8 changes: 7 additions & 1 deletion Miano/Instruments/MiniSpectrogram/MiniSpectrogram.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,20 @@ struct MiniSpectrogram: View {
var body: some View {
SpectrogramView(audioSpectrogram: audioSpectrogram, .mel)
.environmentObject(audioSpectrogram)

.onAppear(perform: {
audioSpectrogram.startRunning()
})
.onChange(of: scenePhase) { phase in
if phase == .active {
Task(priority: .userInitiated) {
audioSpectrogram.startRunning()
}
}
}

.onReceive(NotificationCenter.default.publisher(for: NSWindow.willCloseNotification)) { _ in
audioSpectrogram.stopRunning()
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,13 @@ extension AudioSpectrogram: AVCaptureAudioDataOutputSampleBufferDelegate {
}
}
}

func stopRunning() {
print("Stop running")
sessionQueue.async {
if AVCaptureDevice.authorizationStatus(for: .audio) == .authorized {
self.captureSession.stopRunning()
}
}
}
}

0 comments on commit b58af0d

Please sign in to comment.