From 50578622587adb17389a700651faf14577747ee1 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sat, 2 Jan 2021 15:45:56 -0800 Subject: [PATCH 1/3] Bump license year --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index b39b2f5..82033a6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Jamie Hardt +Copyright (c) 2021 Jamie Hardt Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 190e8bc677d67e94dd27638aa6cac216d6e6214a Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sat, 2 Jan 2021 18:09:39 -0800 Subject: [PATCH 2/3] Fixed bug in decibels code, was too loud --- examples/blits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/blits.rs b/examples/blits.rs index 5089ecc..817e25a 100644 --- a/examples/blits.rs +++ b/examples/blits.rs @@ -34,7 +34,7 @@ fn dbfs_to_f32(dbfs : f32) -> f32 { } fn dbfs_to_signed_int(dbfs: f32, bit_depth: u16) -> i32 { - let full_code : i32 = (1i32 << (bit_depth + 1)) - 1; + let full_code : i32 = (1i32 << bit_depth - 1) - 1; ((full_code as f32) * dbfs_to_f32(dbfs)) as i32 } From f2c53061dcc174bac475f4add34bb0ac4ea5f942 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sat, 2 Jan 2021 18:13:34 -0800 Subject: [PATCH 3/3] Made a TODO note --- examples/blits.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/blits.rs b/examples/blits.rs index 817e25a..a988412 100644 --- a/examples/blits.rs +++ b/examples/blits.rs @@ -6,6 +6,7 @@ //! alignment signal. //! //! TODO: Pre-calculate the sine waves to speed up generation +//! TODO: Make tone onsets less snappy use std::f64; use std::io;