MUFF WIGGLER Forum Index
 FAQ & Terms of UseFAQ & Terms Of Use   Wiggler RadioMW Radio   Muff Wiggler TwitterTwitter   Support the site @ PatreonPatreon 
 SearchSearch   RegisterSign up   Log inLog in 
WIGGLING 'LITE' IN GUEST MODE

Q: Emulating Radio Music on nw2s::b?
MUFF WIGGLER Forum Index -> nw2s  
Author Q: Emulating Radio Music on nw2s::b?
myecholalia
interested in your guidance on this. i know the "b" plays samples no problem, but in terms of interacting with them, the concept of the Music Thing Radio Music is highly intriguing to me.

therefore, i'd like to try having a similar experience on the "b" with multiple samples "playing" like radio stations at the same time while hearing only one of them. then, one of the knobs would switch between stations and one of the switches would reset playback. being able to cv-control both things would be awesome. mimicking also other features of the Music Thing would be the icing on the cake but not really necessary.

do you think this would be possible? any tips on how to develop that on the b? maybe i need to get into arduino programming after all.
Tombola
Don't know about your libraries, but the only remotely non-trivial things I did were...
- Play SD file from a specific point - I actually play from the modulo of the start point and the file length, so it starts in the middle if asked to start after the end of the file
- Return the specific point at which the current file is playing
- Then obviously you just sniff where the current file is playing, then stop that file and start a different file from that point.
- The second knob sets an arbitrary start point; read the pot (average/smooth it a bit) then map 0-1024 on the pot to 0-filelength and use that as the trigger point instead of 'where the other file stopped playing.

The most difficult things were getting hot-swapping of SD cards right, and loading and storing directories properly. At the moment it loads the whole directory for the entire card into memory, which isn't at all necessary

Also, at the moment I'm using .raw files rather than .wav files, because it makes it easier if you don't have to skip the headers at the start of each file.

The code is all in standard Arduino and CC licensed: https://github.com/TomWhitwell/RadioMusic
myecholalia
@Tombola thanks a ton for chiming in! will have a look at your code and try to make sense of it.
thankful for any additional hints from people more savvy in coding for the "b" than me (which should be everybody here) hihi thumbs up
scottwilson
Yeah, if you're not on the 1.1 branch (which few are) then you'd know that the sample player supports a few different playback modes now. Most of them are focused on glitchy playback or providing the ability to sequence loops. Adding "radio" mode would be fairly trivial as Tom says - it's basically just modular arithmetic.

Videos and documentation will come soon. I had hoped to get a little further over the break, but spent most of the time 1. completely rewiring my studio with a couple of 'io modules and 2. completely rebuilding my workshop to make it a little easier to start ramping up production of a couple of new modules (and the balanced 'io upgrades)

-s
MUFF WIGGLER Forum Index -> nw2s  
Page 1 of 1
Powered by phpBB © phpBB Group