wvr as loop player

43 views
Skip to first unread message

sean-h

unread,
May 5, 2023, 2:27:06 PM5/5/23
to WVR Audio
hi, i'm considering using wvr to build a little box that plays back long loops.

i would like to have a bunch of physical toggle switches set up to turn loops on and off. i noticed in the docs that the sample setup seems to be looking for rising or falling edge trigger events on the digital inputs. can it also sense a held high "gate" voltage to sustain looping of the sample?

if so, what happens if the digital input is high when wvr is powered up? will it read the input as active and being playback?

can an analog input be mapped to global volume?

thanks,
sean

sean-h

unread,
May 5, 2023, 2:29:56 PM5/5/23
to WVR Audio
one more question :)
can an analog input be mapped to global pitch? i'm imagining a knob that can slow down all loops to half speed

WVR Audio

unread,
May 5, 2023, 2:41:44 PM5/5/23
to WVR Audio
Hi!
The edge triggers will generate note-on and note-off event on a transition from one state to another (ex. low to high/ high to low).
So ... switch moves from "off" to "on" and WVR starts a sample from the beginning, that same switch moves from "on" to "off" and WVR stops the sample.
At boot it will not begin playing sounds, it must receive a transition.
You can write some Arduino code to overcome this, if you want it to start at boot.
It could read all the pins, and start some loops accordingly.

There are no built-in functions to handle potentiometers or encoders, these would require a little Arduino code.
Global pitch and global volume could definitely be accomplished.

So I think the answer to all your questions is yes, but, with some Arduino code. Happy to support you in this task if you are not comfortable in Arduino.

sean-h

unread,
May 6, 2023, 12:34:10 PM5/6/23
to WVR Audio
that's good to hear! while i've tinkered a bit with modifying arduino code and flashing teensy, i'm not experienced with the coding, so your offer to help is greatly appreciated.

one question - would the global pitch control be realtime or would the clips have to be re-triggered? (realtime is preferred)

i'm still mulling over the design/interaction - and had a few other ideas after my initial post. instead of using switches to activate loops - could i just set them to be always looping on startup and use a set of pots control volumes of the individual loops?
also had an idea to use a pot to select which bank of loops is playing - that could be a rotary switch wired to digital pins.

i'm guessing the answer is "yes, but with some arduino code" :)  - which is fine, just trying to get an idea of how technically complex something like this would be to implement.

currently thinking - 6 knobs for loop volumes, one knob for global pitch and another knob that selects which bank of loops to play.

thanks again!

WVR Audio

unread,
May 7, 2023, 2:55:17 AM5/7/23
to WVR Audio
There is no live pitch-shifting of files on WVR, so we would have to be a bit creative to find work-arounds. There is lots of space to store lots of versions of the same sound file, and the WEB UI can generate versions of a sound file at various pitches.

If you don't want to have the sample get re-triggered at the new pitch (ie. start from the beginning), then you can start them each on a separate voice at boot (there are 16 voices) and fade the voices in and out, or mute/unmute them, to produce the transitions.

If the approach outlined above will work for you, I would say it is low complexity. Often times there is more complexity once one gets down to the nuts and bolts, but, reading some pots and setting volumes, switching between banks, these are not overly complex tasks.
Reply all
Reply to author
Forward
0 new messages