-
Notifications
You must be signed in to change notification settings - Fork 197
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
Update WavPlayer to work with Daisy Patch with new libraries #266
base: master
Are you sure you want to change the base?
Update WavPlayer to work with Daisy Patch with new libraries #266
Conversation
Hey @OZHALL thanks for the contribution! Overall it looks good, but I think with all of the
Depending on which platform(s) you go for, it'll be best to move/add the project to the corresponding folder that matches the platform. Also, if you want to you can convert this to a standard Let me know if you have any questions. |
Stephen,
I hear you about the #ifdefs. I wanted to postpone splitting the file, at least until I got the Patch and Patch.init() working. I hate double maintenance. In retrospect, that was an effective path ( IMHO 😊 ).
I don’t have a Pod, so I can’t test it on that platform. Looks like <https://app.slack.com/team/U01F5S9P5A7> Mariano Desivo was on the same path at the same time with the Daisy Seed “but with some features of daisy pod”. Sounds like custom hardware.
I don’t mind splitting those out into Patch and Patch_sm/Patch.init() versions. I don’t know if any changes are required for the Pod. The new version does compile with the Pod.
So … I don’t know when I might be able to complete this work. I’ve got some other things I’m trying to get done before going out of town tomorrow. I’m basically out of time until Tuesday week. You probably have more pressing business between now and then. If you do decide to do this work, just let me know before you start. Otherwise, I hope to have the two versions finished by Wed 3/9.
I’ll include
“convert this to a standard AudioCallback instead of an InterleavingAudioCallback” as noted below
Thx – O.Z.
From: Stephen Hensley ***@***.***>
Sent: Monday, February 28, 2022 1:10 PM
To: electro-smith/DaisyExamples ***@***.***>
Cc: OZHALL ***@***.***>; Mention ***@***.***>
Subject: Re: [electro-smith/DaisyExamples] Update WavPlayer to work with Daisy Patch with new libraries (PR #266)
Hey @OZHALL <https://github.com/OZHALL> thanks for the contribution!
Overall it looks good, but I think with all of the ifdefs and the need to recompile for different platforms, this would probably benefit most from being split into discrete examples. Up to you if you want to make all of the versions, or just focus on one, but it'll simplify reading the example(s) for other users to use as a starting point.
* seed/patch_sm/patch.init -- can just be audio playback of the first file it finds
* pod and/or patch -- can use encoder to select files
Depending on which platform(s) you go for, it'll be best to move/add the project to the corresponding folder that matches the platform.
…_____
Also, if you want to you can convert this to a standard AudioCallback instead of an InterleavingAudioCallback if that helps clean up the self-proclaimed, "counter-intuitive" loop you're doing. The normal audio-callback is non-interleaved, and it's Buffer types are organized as arrays per-channel, which seems like it would fit better for what you're going for without requiring defines.
_____
Let me know if you have any questions.
—
Reply to this email directly, view it on GitHub <#266 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJHSHYB7OVIV5X2VOZYT4ADU5PB7HANCNFSM5PRSLHTQ> .
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/AJHSHYBMBIUJEMFE2YABE4LU5PB7HA5CNFSM5PRSLHT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOH3NYNNQ.gif> Message ID: ***@***.*** ***@***.***> >
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
|
Stephen, |
This has been tested on a Patch with a clone of the Main branch as of 2/28/2022.
I have also set up "#define"s so that it can be compiled for the Patch.init(). I've tested that as well. Note that there is no encoder on the Patch.init() so I'm just commenting out that code.
Stephen, I'll be happy to continue fleshing out this example for the Patch.init() with knob and pushbutton support to replace the encoder. Let me know if you'd like me to do that.