-
Notifications
You must be signed in to change notification settings - Fork 2
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
Tutorial: listening to ephys singals #116
Comments
Here is a starting point with buffer settings set to match typical buffer lengths from the ephys data nodes (30 samples): Audio starting point<?xml version="1.0" encoding="utf-8"?>
<WorkflowBuilder Version="2.8.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dsp="clr-namespace:Bonsai.Dsp;assembly=Bonsai.Dsp"
xmlns:al="clr-namespace:Bonsai.Audio;assembly=Bonsai.Audio"
xmlns="https://bonsai-rx.org/2018/workflow">
<Workflow>
<Nodes>
<Expression xsi:type="Combinator">
<Combinator xsi:type="dsp:FunctionGenerator">
<dsp:BufferLength>30</dsp:BufferLength>
<dsp:Frequency>1000</dsp:Frequency>
<dsp:Waveform>Sine</dsp:Waveform>
<dsp:SampleRate>30000</dsp:SampleRate>
<dsp:Amplitude>1000</dsp:Amplitude>
<dsp:Offset>0</dsp:Offset>
<dsp:Phase>0</dsp:Phase>
</Combinator>
</Expression>
<Expression xsi:type="Combinator">
<Combinator xsi:type="al:AudioPlayback">
<al:DeviceName>Generic Software on Speakers (Realtek(R) Audio)</al:DeviceName>
<al:SampleRate>30000</al:SampleRate>
<al:State>Playing</al:State>
</Combinator>
</Expression>
</Nodes>
<Edges>
<Edge From="0" To="1" Label="Source1" />
</Edges>
</Workflow>
</WorkflowBuilder>
|
What headstage would be best for this tutorial? I'm thinking we do it for np2 and then explain that it can be generic for other headstages. Here's an untested example using np2: listen-ephys.bonsai.zip (attached zip file bc github doesn't accept bonsai files) |
Yep I think that's a good one. |
On the If we can convert into some type (e.g. float) that it is easier to understand in terms of volume (e.g. -1 to 1 is max) or something, then lets do that. |
A tutorial for listing to ephys signals through the audio device on the computer. This issue was inspired by the this conversation:
The text was updated successfully, but these errors were encountered: