-
Notifications
You must be signed in to change notification settings - Fork 92
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
Write-AudioDevice should be able to adjust -[Timespan]SampleInterval and return floats #66
Comments
Hey James, |
@cdhunt @frgnca there are two major musical scenarios I'd like to put together with Write-AudioDevice:
I've been building out a lot of smart lighting controlling code over the years. By being able to analyze playing audio in close to realtime, I should be able to make a music mode for lights that would work across multiple devices.
Long story made short, with some details withheld, I'm looking at creating a new batch of games in PowerShell, and I want some of them to use synchronization with music to affect score (a la Rock Band / Guitar Hero / a million and one games since). By the way, I haven't had any luck getting this code to build just yet. Does anyone have a .csproj for the repo? |
Cool set of cmdlets! I've been looking for something like this for quite some time.
Write-AudioDevice hard codes a sleep of 100 milliseconds between samples. This is good enough for many purposes, but not great for analyzing the currently playing audio, thus
Additionally, it looks like Write-AudioDevice is converting the float value into a 0-100 range. Again, this is fine for a lot of cases, but it looses a lot of precision. Thus:
It might be nice to be able to get the entire sample buffer as well.
I'm happy to take this particular work item on, as both parts of it should be fairly straightforward.
The text was updated successfully, but these errors were encountered: