Skip to main content
12 events
when toggle format what by license comment
Mar 9, 2017 at 12:19 comment added Colin @OlinLathrop Looks good to me, have an upvote.
Mar 9, 2017 at 12:00 comment added Olin Lathrop @Colin: See addition to the answer.
Mar 9, 2017 at 11:59 history edited Olin Lathrop CC BY-SA 3.0
added 675 characters in body
Mar 8, 2017 at 15:54 comment added KyranF @ArtLyra there is an ARM "arduino" called the Due. check that out.
Mar 8, 2017 at 14:24 comment added Emerson Thank you..I've never used these ARM, but I will have a look and see if I can learn how to program them as they seem very useful.
Mar 8, 2017 at 14:06 comment added Andrew Some sort of arm M3 or M4 would be more suitable if you want to do the maths in the CPU. That would give you a 100-120 MHz 32 bit CPU rather than the 16 MHz 8 bit part you are using.
Mar 8, 2017 at 13:22 comment added Emerson Andrew, what other microcontroller do you suggest then?
Mar 8, 2017 at 13:13 comment added Emerson Yes, I know this... I will get a linear panning. The square root is only one possibility between other panning laws. But before adding the maths to the program, I need to start linearly. Thanks.
Mar 8, 2017 at 12:54 comment added Colin @Olin The problem with using that method for panning is that in the with the signal in the centre you get half the power as you do when panned hard left or right. (p = i^2 * R, ignore R assuming it's constant) Panned hard left left = sample, right = 0, power = left^2 + right^2 = sample ^ 2 whereas centre panned left = 0.5 * sample, right = 0.5 * sample, power = 0.25 * sample ^2 + 0.25 * sample^2 = 0.5*sample^2. The solution is to use left = sample*sqrt(1.0-panning); right= sample*sqrt(panning);
Mar 8, 2017 at 12:45 comment added Andrew You could use a better microcontroller, the parts used for arduinos are painfully slow in comparison to any half decent modern part.
Mar 8, 2017 at 12:42 comment added Emerson Hi, thank you. I know how to do it digitally, I've done many times using Pure Data and a Raspberry PI.. The problem is how to use this with a microcontroller. I appreciate your answer anyway.
Mar 8, 2017 at 12:26 history answered Olin Lathrop CC BY-SA 3.0