

--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/c564cc00-3bfb-4825-9039-123100091cb4n%40googlegroups.com.
Hi Goncalo,
Thanks very much for your time and help. I have waited a bit on answering to try to make my reply more intelligent. Maybe not.
Your workflow works well after a couple of 'tweaks' that might
be helpful to share. 1) I had to enter the 'Device Name' also in
each CreateSource, not just the CreateAudioContext.
2) In order to run continuously, I had to set 'looping' to 'true'
in each CreateSource. This, however, only does part of
what I want (allows key-presses forever), but, because of the
'kill' from the Timer, this will not allow looping
'within' a keypress. Somehow, I would have to override the Timer's
'DueTime' for looping within a keypress
This points to a problem of my (not) understanding. I see what the Timer is doing, but I don't understand how.
On to 'cracks' and 'pops' and so on. I understand very well the problems of transitioning between sounds. In my first iteration the problem is minimized by my sounds all being 'white' noise or something buried in 'white' noise. And all the levels are roughly consistent. So the transitions are relatively buried. (Traced some other 'pops' to MATLAB & OEphys not letting go of the sound card until MATLAB & OE were actually closed - presumably this problem will go away as I ditch MATLAB for using the OE board directly in Bonsai). However,as you suggested, life will not always be so easy and so I do wonder how to go about fading in/out over maybe a millisecond or two. I thought to do this with a delay after any sound, a ramping, etc. - but, not only is this very klugie, I don't know how to play any two buffers at once (etc.). And I don't know OpenAL at all - or really how to access it. Stumped a bit, I guess.
But again, thank you for your help.
Cheers,
Kip


Goncalo,
Thanks so much for this. Sorry for my delay in responding. This seems to work well - not I have to figure out the fade-in and fade-out. Hints appreciated!
Cheers,
Kip