Firstly, is it possible to adjust the playback rate of a sample, I saw someone do it with a hard wired variable resistor, however what I want to do is have a soundeffect a 'Pulsing Hum' that changes pace when a input pin is grounded, and then slows back down when its open.
If you give the 'speed' an imaginary number lets say it needs to work like this.
'Pulsing Hum' effect plays at constant speed '2'
'Pulsing Hum' effect slowly ramps up to play at constant speed '8' (faster) and keep playing at that rate
'Pulsing Hum' effect slowly ramps down to play at constant speed '2'
also, if it was in the "ramp up" process and had reached speed '6' and the contact opened, it would just go from '6' back down to '2' again...
So basically where ever it is at when a contact opens or closes, it will move from that point either down to '2' or up to '8' depending on the state of the contact...
I hope that makes sense... Its for a sci-fi 'power generator' sound effect, which when activated will ramp up in pitch and speed, but slow back down if a safety switch is activated (ie someone opens it up)
I was going to use different sound effects for up and down, but getting them to sync and play without a gap would be a pain. If I just use the one soundeffect looping continously and adjust the speed, it will 'play fluently'
so the above question is doing it with the software, the other idea is to have ANOTHER arduino control this one (the hard wired variable resistor part).... which might be even easier, and allow more flexibility to tie in with other effects.... thoughts???
I imagine that you can use one to control another (just by hooking up the output pins to the input pins?)
if you like science fiction art and sci-fi sculpture, have a look at my website www.marty.com.au