Lee

SD card polyphonic sample player

142 posts in this topic

I'm making new sample banks, but I can't put more then 256 files on the FAT card ?! Is this normal, and how did others deal with this. I would like;  64 files x 8 banks is a max of 512 samples on my card

Share this post


Link to post
Share on other sites

Interesting!

If there is really a file limit, it could make sense to change the application so that it uses a dedicated directory for each bank

Best Regards, Thorsten.

Share this post


Link to post
Share on other sites

It's not really as I said before. I downloaded Jjonas his mellotron zip, and unapcked on a SD Card. There were 346 files on the Root, I put it in my MBSD Card player, anf it worked like a charm. So I checked the card and it was FAT32 formatted. Anyway, it seemed to work, so I'll investigate this further.

Only thing I'm sure of is that my windows PC said that the max number of files was reached on my FAT card. It was around 250 files, and there was enough room left...

Cheers, Roel

 

Share this post


Link to post
Share on other sites

Hi,

it might be outdated information, but back from old DOS days i remember there was a limit of how many files might be allowed in the root directory of a FAT filesystem - and it was around the 8-bit barrier, if i remember correctly :).
This limit did not apply to subdirectories - so the underlying filesystem might be the reason? There might be differences between FAT16 and FAT32 - and TK's recommendation should always work - use subdirectories! :)

Many greets,
Peter

Share this post


Link to post
Share on other sites
17 hours ago, Hawkeye said:

and TK's recommendation should always work - use subdirectories! :)

I know you're right, but I'm not sure how to do that. I guess the application checks the root directory, so I should make a change in the application, and for me that still is hocus-pocus most times.

I tried yesterday with the FAT32 card and that seems to work OK, so no problem anymore. 

I like to develop my MIOS skills, but I have a hard time with it. For example; I'm struggling with the Clockbox application for 10 years now, I got it slaving to masterclock, but that took me months/years and  it's an ugly hack, but it works.  Now I want to load an initial set-up at start up, wich is saved on the internal eeprom. But I dunno were to begin.....any idea's

Cheers, Roel

Share this post


Link to post
Share on other sites

If you want to modify the clock box, my visual metronome project was based on it, it has been a while since I looked at it but think there was some code for using the eeprom. Hopefully it will provide a few pointers.

Share this post


Link to post
Share on other sites

@Elektruck yes, with a FAT32 formatted SD-card you should be fine, there should be no root directory file limits using that filesystem, only the older FAT12/FAT16 filesystems impose such a limit.

Many greets, Peter

Share this post


Link to post
Share on other sites
2 hours ago, gomiboy99 said:

If you want to modify the clock box, my visual metronome project was based on it, it has been a while since I looked at it but think there was some code for using the eeprom. Hopefully it will provide a few pointers.

Thanx, I'll look into it. I use the eeprom now, but I want my clockbox to startup with the settings from the eeprom. Maybe better to start another topic ...

Share this post


Link to post
Share on other sites

Hello friends, it's been awhile. I decided to pick this project back up the other day and I'm struggling getting the sampler to play my samples in their entirety. It only holds each note for about 2-3seconds whereas my samples are approx. 8 seconds long... I assume it's my audio files. I probably have a setting messed up in audacity? Anyhow, aside from trying to solve that, I was curious if anyone could link me to a download for those mellotron samples posted in this thread awhile ago. I missed out and thought it would be nice to give those a shot. If someone wouldn't mind posting a new link or attaching them here that would be amazing. When I get the time, I'll try to sort out whatever issues I'm having on this end and if I can't suss it out, I'll post here.

Share this post


Link to post
Share on other sites

Hi Buhler,

HERE is a link to the original downloaded zip file from Jjonas

and last week I've been (very) busy with extending the octave ranges from the mellotron sounds. I made a samplerbox with raspberryPi for my daughter, and I was amazed how good it was. One pretty neat function is that the samplerbox extends the octaves automtically. The mellotron samples have a range of only 3 octaves or something like that, but samplerbox plays them over 6 or more ocatves. And especially the lower sounds are really cool, like steamboats.

So I loaded the samples into ableton and converted them to get more octaves, then into audacity to get the right format etc. 

HERE is a link to my current SD Card set. I only have 5 banks so far, but it took a long time, now I want to do something else:)

I don't know about your lenght issue, I just checked mine, these are about 6 seconds long, and play entirely, if I play the right lenght of notes.

Good luck and have fun with the samples

Share this post


Link to post
Share on other sites

Thank you so much for the links! That was very kind of you! 

I will figure out the length issues. I know I did something to make that happen I just need to sort it out. Also, this project doesn't run so well solely powered by the usb port, which is obvious, but is helpful when making frequent changes. Not so good for optimum performance though. 

Anyhow, thanks again Elektruck!

Share this post


Link to post
Share on other sites

You're very welcome!

Share this post


Link to post
Share on other sites

Hi guys!

First of all - I'm very impressed of what you do here. 
Even if I'm an embedded engineer, things you do is like a magic.

I'm looking for portable sampler preferably based on STM32 as I mostly work with them.
With keyboard input, sample bank selector, maybe some potentiometers and maybe MIDI capability.
And seems like this device is what I search. 

Can I expect for some introduction or intro\demo firmware + schematic of what you're continuously update here?
I won't be useless copier - want to take part into development AND have a nice compact sampler.

Really hope you'll answer.
Best regards,
darkkat.

Share this post


Link to post
Share on other sites

Welcome @darkkat

Everything you need to start is available somewhere, first there's uCapps, for more information there's a dokuwiki.

if you want to dig into the code there's a subversion repo.

Most important is that people here are kind and I'm sure someone will share with you everything about the sampler!

Welcome again!
Bruno

Share this post


Link to post
Share on other sites

yeah welcome darkkat!

It is like Antichambre/Bruno said, all information is here but you have to find out the basics yourself. If I had a schematic I would sure give it to you, but I don't have one. In the first post of this thread you'll find the link to the wiki. There you can find most recent stable code, and some hints, like bank selector switch is attached to J10. If you go the the ucapps site you can find the schematic of the core board for stm32  and there you can find to wich pins of the stm32 J10 is attached etc......It's quiet hard in the beginning to get overall information, where to start, how the system works etc, but if you just start you'll find out soon how it works and how versatile the MIOS system is. That's also one of the reasons why there aren't any tutorials,  (exept for this supurb new video tutorial for midiphy SeqV)

So I would start reading about the core board: http://ucapps.de/mbhp_core_stm32f4.html together with this thread and the dokuwiki in the first post. You'll have enough information to start, and if you have any questions you'll know a lot better what to ask...

ps, I'm not a programmer at all, but a patient puzzler and I got quite far midiboxing

goodluck and cheers,

Roel

Share this post


Link to post
Share on other sites

So as I see, there is a microcontroller core - old PIC based and new LPC and STM32 discovery based.

Is it really comfortable to use discovery boards? Haven't you thought about nice PCB with place for MCU (as STM32F103 one)?

I wonder if any part of discovery board is used except the microcontroller - thing is STM32F4 cost locally about $35 and the chip itself is about $12.

If the schematic for STM32F4 core board is tested, I can make the tracing for separate MCU and share it. Same thing is for in/out, analog, midi and other modules you connect to main board - haven't you thought to use SMD components, place them at both layers and make PCBs really small to fit into a portable device? (because I'm seeking for it at least) - like AKAI APC KEY 25.

So if such thing is interesting - I can do that.

Edited by darkkat
Updating the comment

Share this post


Link to post
Share on other sites
46 minutes ago, darkkat said:

So as I see, there is a microcontroller core - old PIC based and new LPC and STM32 discovery based.

Is it really comfortable to use discovery boards? Haven't you thought about nice PCB with place for MCU (as STM32F103 one)?

If the schematic is tested, I can make the tracing and share it. Same thing is for in/out, analog, midi and other modules you connect to main board - haven't you thought to use SMD components, place them at both layers and make PCBs really small to fit into a portable device? (because I'm seeking for it at least) - like AKAI APC KEY 25.

So if such thing is interesting - I can do that.

Hi @darkkat
It's a bit more complicated than that ;)
We've got standardised ports we use with standardized modules(everything is in ucapps pages).
There's already alternatives to the discovery or the lpc too.
Latigid/Andy already designed a new core based on waveshare 407(stm32f407) which fits into the new SeqV4+. the wCore. Like I said everything is somewhere you just have to take the time to dig all that.
More than that, you're not the first to complain about the size of the cores, then I spent some time to design a new one, a compact one, which will perhaps bring the answer, I hope(worked a lot on it), the dipCoreF4 is already prototyped and based on a stm32f405.


TK has produced a lot, people have added a lot to his work too. It's a gigantic knowledge base dedicated to MIDI, electronic and music. I can admit that it can take a certain time to integrate, assimilate the essential. but take your time so that you can bring your stone to the building too. Should be great!

Best regards
Bruno
 

Edited by Antichambre

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now