Skip to content
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

Attempt at a Multi-Track example using the PoshRsJobs Module #1

Open
ghost opened this issue Jul 7, 2018 · 1 comment
Open

Attempt at a Multi-Track example using the PoshRsJobs Module #1

ghost opened this issue Jul 7, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 7, 2018

RSJobs works for me if I do any of the following:

@($Track1,$Track2) | Start-RSJob -Name {$_.Name} -ScriptBlock {
   Set-location C:\Users\me\Documents\PowerShellProjects\
   .\Play-notes.ps1 $_.Track
} | Get-RSJob | Wait-RSJob | Receive-RSJob
Get-RSJob | Remove-RSJob -Force
@($Track1,$Track2) | Start-RSJob -Name {$_.Name} -ScriptBlock {
    Import-Module C:\Users\me\Documents\PowerShellProjects\Play-notes.ps1
    Play-Notes -Notes $_.Track
} | Get-RSJob | Wait-RSJob | Receive-RSJob
Get-RSJob | Remove-RSJob -Force

Without these changes, I got no sound. With these changes, the sounds played over the top of each other. I hope this helps, I think this function is awesome.

@ericleigh007
Copy link

Thanks for this.
get N computers and use powershell remoting to do the deed.
This is totally cool, but it isn't going to climb the charts.
You could synthesize a sine wave in powershell and then stream it to the audio device, just for fun.
Should be possible, would work a lot better than the Beep() call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant