Giter VIP home page Giter VIP logo

csharp-data-visualization's Introduction

csharp-data-visualization's People

Contributors

dependabot[bot] avatar gosub-com avatar swharden avatar tgraupmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csharp-data-visualization's Issues

update ScottPlot in old projects

All code examples in this repository used a pre-release version of ScottPlot. Because the ScottPlot API changed so much since then, these old projects cannot use the latest ScottPlot. Each project contains a subfolder with a version-matched scottplot (sometimes zipped, renamed, or not included to avoid people from using it before it was released).

  • Add notes about the new ScottPlot. Many old projects in this repo use an old version of ScottPlot. Add notes and links to the new ScottPlot project page (which didn't exist when the project was first made).

  • Create an new demo that shows how to plot microhone PCM (amplitude) and FFT (frequency) data in real time using the new ScottPlot API.

A few questions regarding FFT Frequency

Thank you for your work on this project. I am working on a project myself on Raspberry Pi using Windows IoT (ie. UWP). Here are a few questions:

  1. I imagine if the nuget packages exist for .Net Core, then your project should still work. Any other thoughts on .Net Core?
  2. Your frequency range seems to start in the mid range frequency. For instance your voice is on the far left where it should perhaps be around the middle. Low bass will not register as it is. Thoughts on how to capture that?
  3. Is there any way to apply windowing to your frequency example? I am hoping that cleans up the frequency chart. I see you do use windowing in the spectrograph example.
  4. What are your thoughts on narrowing the number of frequencies. I am looking to get only 8 "bands". Think of a graphic eq with 8 frequncies. I suppose one option is manually adding everything between two frequencies. But hoping FFT would handle this.

Thank you for your input!

ImageSharp's relationship with the .NET Foundation

In October 2022 ImageSharp announced they are leaving the .NET foundation:

This is the result of SixLabors changing the terms of their license in July 2022 and being unable to resolve the conflict with the .NET Foundation

The .NET Foundation made a blog post discussing the change (which they later deleted):

The .NET Foundation only works with projects with OSI-approved licenses. ImageSharp has decided to leave the Foundation ... We don’t see a path forward where we maintain a fork of ImageSharp.

After significant consideration, the .NET Foundation board decided that there wasn’t a path forward that satisfied the goals of both Six Labors and the Foundation. The board clarified that projects in the Foundation must use a permissive OSI-approved license and that projects would all be treated the same.

Also, the 2.x NuGet packages will not be deleted. You’ll be able to use those forever.

The official System.Drawing documentation page no longer recommends ImageSharp as an alternative to System.Drawing. Interesting discussion about the removal of this recommendation can be found on the PR that removed the link:

Discussions related to ImageSharp leaving the .NET Foundation:

Considering the .NET Foundation's page describing these events is now 404'd and ImageSharp is still on the .NET Foundation projects page it seems this story is still unfolding:

After the dust settles, a summary of these events and relevant links should be added to the page:

Does this work with ASIO?

Hi there,

I am making a hardware device that has a rgb ledstrip connected to it.
I wanted to react the ledstrip on the music. But I also wan't it to work with ASIO.
Because there are a lot of music producers that are in need of a reactive sound rgb ledstrip that work with fl studio or another daw. Most of them are using ASIO.

Is this possible?

WPF: What is the best way to achieve continuous rendering?

Remove the Timer from the "MainWindow" and replace it with.

private void Checkbox1_Checked(object     sender, RoutedEventArgs e) => CompositionTarget.Rendering += CompositionTarget_Rendering;
private void Checkbox1_Unchecked(object   sender, RoutedEventArgs e) => CompositionTarget.Rendering -= CompositionTarget_Rendering;
private void CompositionTarget_Rendering(object? sender, EventArgs e)
{
    SkElement1.InvalidateVisual();
}

How to, Detect sound Frequancy sample ( 10KHZ )

hi,
example 17-07-16_microphone running ok

how to, Detect sample especifique frequency, example: 1000k, 5000k, or....11000, 18000khz

processing data sample (10ms), serarch in sample save buffer.

thanks,
Carlos.

FFt audiomonitor output hangs after a few minutes, or skips

Hello, i built a huge music visualizer on top of your FFT Graph, only to find it breaks pretty consistenly.

Solution was simple, but took me 5 days.

Divide the sample rate down to 10 milliseconds, just like the waveform monitor.

Its the only way

Values go out of graph area

Hello, I am working with 18-01-15_form_drawing project and trying to change y axis values with strings. I did and it looks normal until using zoom. when I zoom to axis my values go out the graph. When I scroll the bar, values look in graph area. Could you please help mi? Thank you.
vertical_axis_code
in_area
out_of_zoom

The Type or namespace "RectangleF' could not be found (are you missing a using directive or assembly reference)

  1. RectangleF: Error CS0246 The type or namespace name 'RectangleF' could not be found (are you missing a using directive or an assembly reference?)

  2. Quick Actions adds: "using System.Drawing" but this creates a conflict with Maui.Graphics and is the incorrect Rect type for
    the following line of code "canvas.FillRectangle(rect)" and other Maui.Graphics references (e.g., Color, convas, etc.).

  3. To test I added "using SDraw = System.Drawing" yielding SDraw.RectangleF rect = new( ... but as noted above RectangleF is wrong type for "canvas.FillRectangle(rect)".

  4. Added following and worked correctly:

Rect newRect = new(
                    x: columnIndex * cellWidthPx + xPad,
                    y: rowIndex * cellHeightPx + yPad,
                    width: cellWidthPx - xPad * 2,
                    height: cellHeightPx - yPad * 2);
canvas.FillRectangle(newRect);
  1. Fix is to use Maui.Graphics.Rect (rather than System.Drawing.RectangleF) .

Problem with conversion to Int16

Hi, I was trying out your project, and found the input on my laptop to be erratic.

Clipping and overshooting of the samples.

Checking your conversion from bytes to Int16 and then to double raised some suspicion.
The data coming from my card seems to be signed, and due to some auto leveling feature, your conversion seems to work fine when i turn down the mics volume.

When changing the conversion to use BitConversion:
Int16 val = BitConverter.ToInt16(audioBytes, i * 2);

The application started behaving as expected.

In "realtime audio spectrograph" exist int fft_size. It's define height of the image. But how it's define the input array into blocks?

You copy from unanalyzed_values array with fft_size elements, and process. After it you delete from unanalyzed_values fft_size / pixelsPerBuffer values. Seems fft_size / pixelsPerBuffer != fft_size. Also, if unanalyzed_values has too much values - you delete some of it.
How you understand, where new audio sample starts, and ends? Why sample of music, that code process should be the same, as fft_size and start at the same position?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.