Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
184 changes: 152 additions & 32 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions raumklang-gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ndarray-stats = "0.6.0"
chrono = "0.4.42"
generic_overlay = { package = "widgets", git = "https://github.com/A-Disruption/widgets.git", version = "0.1.0", default-features=false, features = ["generic_overlay"]}
colorous = "1.0.16"
iced_aksel = "0.2.0"

[dependencies.iced]
version = "0.14.0"
Expand Down
1 change: 1 addition & 0 deletions raumklang-gui/src/data/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub struct Project {
pub measurements: Vec<Measurement>,
#[serde(default)]
pub measurement_operation: Operation,
#[serde(default)]
pub export_from_memory: bool,
}

Expand Down
13 changes: 6 additions & 7 deletions raumklang-gui/src/data/spectral_decay.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use core::slice;
use std::{fmt, sync::Arc, time::Duration};

use raumklang_core::{Window, WindowBuilder};
Expand All @@ -12,13 +11,13 @@ use crate::data::{SampleRate, Samples, smooth_fractional_octave};
#[derive(Clone)]
pub struct SpectralDecay(Vec<super::FrequencyResponse>);

impl SpectralDecay {
pub fn len(&self) -> usize {
self.0.len()
}
impl IntoIterator for SpectralDecay {
type Item = super::FrequencyResponse;

type IntoIter = std::vec::IntoIter<super::FrequencyResponse>;

pub fn iter(&self) -> slice::Iter<'_, super::FrequencyResponse> {
self.0.iter()
fn into_iter(self) -> Self::IntoIter {
self.0.into_iter()
}
}

Expand Down
Loading