I’m not sure if this is an MLR question but this felt like the best spot to ask. I have some files recorded from my zoom h5 that were saved as xxxx.WAV aa opposed to xxxx.wav. These won’t load in MLR but load in Timber for example and behave as expected of .wav files elsewhere. Could one of you great minds enlighten me? Is there a difference I’m unaware of. I was hoping to avoid the tediousness of renaming them all and although I will do that if needed, I am expecting to use the zoom to create more MLR fodder and would like to avoid the extra naming step

My guess is it’s because MLR does this check before loading a sound file on line 790…

if path:find(".aif") or path:find(".wav") then

You could try changing this to

if path:find(".aif") or path:find(".wav") or path:find(".WAV") then

but there’s probably a better way to do this. I feel like this kind of check for a valid audio file should be a global helper or library in norns if it isn’t already.

2 Likes

thanks for pointing this out. i should do some case-insensitivity on this stuff (would accept a PR if someone wants to submit it!)

2 Likes

Where is this path:find coming from? I couldn’t find it in a quick search.

Thank you all for the response. I have not delved into the coding side of norns yet but hope to soon when time permits. This could be a good jumping off point… Agree with @crim that a global file check probably makes most robust sense but I am not sure of implementation.

1 Like

there is snd_file_inspect(path). it returns three values (channels, frames, samplerate). if the soundfile isn’t found these values are all zero. this is a light wrapper around libsndfile and should work with a wide range of file formats. (not mp3 though; ogg is ok iirc.)

2 Likes

It’s in the fileselect_callback function on line 788 in mlr. Not sure if you’re asking where the path:find function itself is defined, but this is just the lua’s native string.find method which is called with the file path passed to fileselect_callback.

Thanks - I was confused about that being string.find or what.

(I probably meant to reply to @tehn there, sorry about that)

1 Like

A potential fix for case sensitivity in loading audio files

at line 788

function fileselect_callback(path)
  if path ~= "cancel" then
    typecheck = path:lower()
    if typecheck:find(".aif") or typecheck:find(".wav") then

2 Likes

So Im having difficulty in loading clips and hoping someone could help out a bit. Basically, I have loaded some piano samples onto norns and am trying to load them into an MLR session across all 6 tracks, but when I load say “pianosample1” onto track one clip 1 it populates all the tracks with that sample. I have to stagger the clips, i.e. load “pianosample1” onto track 1 clip 1, “pianosample2” onto track 2 clip 2 in order to have different samples on different tracks. Is this normal? I was hoping to have 16 different samples across all 6 tracks, which should be possible? Thanks in advance.

1 Like

Yes. There are 16 clips total, and you can have the same clip loaded on multiple tracks.

1 Like

I’ll get real with you guys- I have really struggled to understand and use the clips functionality. Is there a detailed breakdown of how to do it somewhere? Using Clips in MLR For Dummies?

3 Likes

My understanding is that each clip is a region in a buffer. You can record into them, or load samples in. Then you can select the active sample/buffer region, per voice, on the clips page.

I would love this too. If someone would eventually make a graphic maybe, that would be AMAZING. Maybe I’ll spend the weekend figuring it out and make a graphic myself if I’ve got the time.

1 Like

+1 for this request. I have the bare bones basic understanding, but tbh still dont understand how to change the length of a clip for live recording, or the quantization function.

I can repost this pdf, which I’m sure I got from here at some point in time. Maybe it will help.

mlr.pdf (283.3 KB)

1 Like

Im only able to access 7 clip locations, the rest of them are dimly lit, but when I press on them I am not able to load a clip and the display on norns does not change… Im pretty sure Im understanding the concept as I have samples loaded in, and am playing with them. Heres a link to the behavior: https://www.youtube.com/watch?v=Xz7LehwZIwo

20 characters of same here!

I think the greatest confusion, which is not represented here, is the clips page and how that works.

2 Likes

I have also never understood how to correctly change the length of a given clip. I could have sworn I’d done it somehow a few times - always accidentally.

1 Like

Yessir, that’s where I’m stuck. Fortunately it’s still a lot of fun between pages 1 and 2, but would love to crack the page 3 nut!

2 Likes