ProffieOS7 Style Library Phase 3 (Early Access) Q & A

Looks correct, the sounds need to be 44khz, 16-bit mono PCM .wav files. If they are not formatted correctly they will not play.

1 Like

They were 32-bit, so that must have been it. Anyway, I downloaded the pack from Kyberphonics which is better anyway and it all works like a charm. Thanks for all the work and for answering my questions.

Just a note, I pushed a small update for a few fixes but didn’t get a chance to test out everything, if any bugs pop up just post here. You’ll need to refresh the page to get the script updates.

2 Likes

I’m another patron trying to get the Acolyte style working. I don’t think it’s a code issue as the config complies properly. My problem is the sound files do not play. They will play for the other presets but not the Acolyte. I got the font from JuanSith and the files seem to play in sound editors. When the font activates (either at boot or when selected a short beep plays (not sure where that sound file is) and SDMonitor says it can’t find the boot.wav file.

I think the problem may be my SD card as the performance is less than 1200kbps read speed for 12 streams (I get just over 1000kbps) but wanted to see if it might be something else. I’m using Proffie 2.2 with OS 7.14. Additional information can be provided upon request. I feel like this is something simple.
Config File

I’d say hook up to the Serial Monitor in Arduino and see what it says when you’re trying to use the preset.
Arduino > Tools > Serial Monitor. Then see what prints out when using the preset.

You can post the output here if you need help deciphering.

Here’s some commands to try things in Serial Monitor with.

Pretty straight forward. But I’m not sure why it can’t find the sound files.

Amplifier off.
Style RAM = 2600
Style RAM = 1744
Scanning sound font: Acolyte done
Scanning sound font: common done
Activating polyphonic font.
DISPLAY: Acolyte
No sounds found: font
Unmounting SD Card.
Amplifier off.
Battery voltage: 0.27

Try to do something, like ignite saber, so the Serial Monitor tells us something about the sounds :wink:

It can find the .wav files for the other two fonts but can’t find them for Acolyte.

Welcome to ProffieOS v7.14
For available serial commands, see:

Ignition.
Style RAM = 1244
Style RAM = 1036
Scanning sound font: Jgrnt done
Scanning sound font: common done
Activating polyphonic font.
Ignition.
DISPLAY: Jgrnt
unit = 0 vol = 0.50, Playing Jgrnt/font/font01.wav
channels: 1 rate: 44100 bits: 16
Style RAM = 1324
Style RAM = 1080
Scanning sound font: SithChnt done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 13
Monophonic swings: 26
Accent Slashes NOT Detected:
Ignition.
unit = 0 vol = 0.50, Playing SithChnt/preon/preon01.wav
channels: 1 rate: 44100 bits: 16
DISPLAY: SithChnt
unit = 1 vol = 0.50, Playing SithChnt/font/font02.wav
channels: 1 rate: 44100 bits: 16
Playing SithChnt/out/out01.wav
channels: 1 rate: 44100 bits: 16
Unmounting SD Card.
Amplifier off.
Battery voltage: 0.36
Style RAM = 2600
Style RAM = 1744
Scanning sound font: Acolyte done
Scanning sound font: common done
Activating polyphonic font.
DISPLAY: Acolyte
No sounds found: font
Unmounting SD Card.
Amplifier off.
Ignition.
No sounds found: hum
unit = 0 vol = 0.00, No sounds found: poweron
No sounds found: hum
Audio underflows: 1
Amplifier off.

This is really strange and seems to be a problem with the SD card. When I plug it in via the proffie board I can’t see any files Explorer but when I plug it directly into a card reader the files are there. The proffie will play the sound files from the other two sound fonts but can’t find any of them from the Acolyte.

Maybe I should reformat the card?

You could try reformatting, otherwise you’ll probably want to start a new thread for some additional troubleshooting. Fonts are not my area of expertise and not really related to the style library.

Roger that! Last point (hopefully) is that I checked a dir command and I think this means the Proffie can’t find any of the sound files (although it plays many of them the other two fonts. I will try to repost this in a more appropriate forum.

Activating polyphonic font.
No sounds found: boot
Unmounting SD Card.
Saving Global State
Unmounting SD Card.
Amplifier off.
I2C init…
Motion chip … 105 found.
Welcome to ProffieOS v7.14
For available serial commands, see:

System Volume Information 0
global.ini 262144
.Spotlight-V100 0
.fseventsd 0
Jgrnt 0
SithChnt 0
tracks 0
Acolyte 0
common 0
Done listing files.
Unmounting SD Card.
Battery voltage: 0.30

Make sure the sounds are actually in the folder named ‘Acolyte’ on your SD and/or that they’re not buried in subfolders, etc.

Sorry, but I’m not sure this isn’t a style/code issue. I took the alt000 audio files and used them to make a “Sol” font and it worked. So it’s not the sound files. I think I’m missing something in the config that tells the Acolyte font to look in alt000 or alt001 instead of the root of the font directory.

There is no such config file option. ALT scanning is done unconditionally.
Use the effects command to make sure that the files were found correctly, and see this page for further details:

The style code doesn’t affect how the OS finds sounds. The sounds are handled first. As profezzorn noted, try the ‘effects’ command in Serial Monitor (note, you’ll need to remove DISABLE_DIAGNOSTIC_COMMANDS define to allow).
Post the results here, it seems like the font folder on the SD is the issue, is it zipped or does it have other subfolders in it?

Trying…Let’s see

No sounds found: boot
Unmounting SD Card.
Amplifier off.
I2C init…
Motion chip … 105 found.
EVENT: Clash millis=1383
Welcome to ProffieOS v7.14
For available serial commands, see:

Battery voltage: 1.02
Battery voltage: 1.02
Found mnum files: 1-20 in subdirs in common
Found medit files: one unnumbered file in common
Found vmend files: one unnumbered file in common
Found vmbegin files: one unnumbered file in common
Done listing effects.
Battery voltage: 0.99
Battery voltage: 0.99
Battery voltage: 0.98
Battery voltage: 0.98
Battery voltage: 0.98
Battery voltage: 0.98
Battery voltage: 0.98
Found mnum files: 1-20 in subdirs in common
Found medit files: one unnumbered file in common
Found vmend files: one unnumbered file in common
Found vmbegin files: one unnumbered file in common
Done listing effects.
Battery voltage: 0.98

For reference here is the next preset and it does work:
Scanning sound font: Jgrnt done
Scanning sound font: common done
Activating polyphonic font.
DISPLAY: Jgrnt
unit = 0 vol = 0.50, Playing Jgrnt/font/font01.wav
channels: 1 rate: 44100 bits: 16
Battery voltage: 0.98
Unmounting SD Card.
Amplifier off.
Found mnum files: 1-20 in subdirs in common
Found medit files: one unnumbered file in common
Found vmend files: one unnumbered file in common
Found vmbegin files: one unnumbered file in common
Found drag files: 1-1 using 2 digits in subdirs in Jgrnt
Found swingh files: 1-4 using 2 digits in subdirs in Jgrnt
Found swng files: 1-16 using 2 digits in subdirs in Jgrnt
Found lock files: 1-1 using 2 digits in subdirs in Jgrnt
Found out files: 1-4 using 2 digits in subdirs in Jgrnt
Found in files: 1-2 using 2 digits in subdirs in Jgrnt
Found clsh files: 1-16 using 2 digits in subdirs in Jgrnt
Found blst files: 1-4 using 2 digits in subdirs in Jgrnt
Found endlock files: 1-1 using 2 digits in subdirs in Jgrnt
Found font files: 1-1 using 2 digits in subdirs in Jgrnt
Found stab files: 1-1 using 2 digits in subdirs in Jgrnt
Found force files: 1-2 using 2 digits in subdirs in Jgrnt
Found hum files: 1-1 using 2 digits in subdirs in Jgrnt
Found boot files: 1-1 using 2 digits in subdirs in Jgrnt
Done listing effects.

It clearly detects fonts that aren’t in the alt000 and alt001 format. I’m not sure why it won’t detect the font that is. I checked to make sure the files aren’t zipped and that’s not it. If I use the same files in a font that is not using alt000 and alt001 those same sound files play.

I’m stumped but I suspect it’s something simple I’m missing.

What are the full filenames of some of the files? (starting from the root of the SD card.)

Let’s start simple, where is the hum.wav file in reference to the root of your SD (as profezzorn asks)?

On your SD card it should be:

Acolyte > alt000 > hum > hum.wav (or hum01.wav)

If it’s not or there are other folders that’s probably the issue.