fiduciary

Author Topic: SOLVED - Issue with custom Boot sound on Crystal Focus 9  (Read 2705 times)

0 Members and 1 Guest are viewing this topic.

Offline corliss1

  • No Force
  • *
  • Posts: 11
SOLVED - Issue with custom Boot sound on Crystal Focus 9
« on: February 09, 2019, 09:57:08 AM »
Got everything wired, everything works great, so now I'm trying to butcher it of course :D

I have my sound file recorded.  I made sure it's 16bit mono at 22050.  I want to make it the initial boot sound.

However, I'm a bit confused on the order of the sounds in the sound bank.

Followed the guide here Crystal Focus 8 Sound Bank Issue along with the manual.  I formatted the card before the sound file change and copied over everything at once.  Inside prefs.txt I have the bank=00 value set, whould should go to the bank1 directory.  However, it seems like it's playing boot4.wav from that bank instead of boot.wav.  However, if I only have boot.wav and remove the other 3 files I get the error beep.  I can't seem to update the sound font to use my custom boot file.

I'm assuming I'm doing something obviously wrong, but my troubleshooting hasn't told me what, so any thoughts would be appreciated.
« Last Edit: February 14, 2019, 05:16:12 AM by corliss1 »

Offline erv

  • Plecter Labs Inc. "Keeper of the Buttered Toast"
  • Manufacturer
  • Master Force User
  • *
  • Posts: 4920
  • Formerly known as Irvin PLECTER
    • Plecter Labs - Props Electronics
Re: Issue with custom Boot sound on Crystal Focus 9
« Reply #1 on: February 11, 2019, 09:57:03 PM »
if you keep a single boot file boot.wav in the bank directory, it will limit to playing this one. It's a "regular" random so if you have 4 of them, you can have a bunch of repeats (the random generator gets initialized with many physical parameters as the seed but those could be rather "constant" if the saber is idle on the table at boot time.

To check if there's a missing file, hook up a serial terminal to the saber (RICE debug window or serial terminal app like coolterm or docklight at 115200 bauds), it will output what is wrong to the serial console.

Offline bombarta

  • Master Force User
  • *****
  • Posts: 1466
  • Impressive..... most Impressive!
Re: Issue with custom Boot sound on Crystal Focus 9
« Reply #2 on: February 12, 2019, 04:30:05 AM »
If you removed the other boot sounds and did not format again it will beep.
Remember every time you remove any sound you need to format the card again and add back everything with the changes.
Also i think there is a maximum of 4 boot sounds which should be as below.
Boot
Boot1
Boot2
Boot3
I don't know, i gotta bad feeling about this!
       

Offline erv

  • Plecter Labs Inc. "Keeper of the Buttered Toast"
  • Manufacturer
  • Master Force User
  • *
  • Posts: 4920
  • Formerly known as Irvin PLECTER
    • Plecter Labs - Props Electronics
Re: Issue with custom Boot sound on Crystal Focus 9
« Reply #3 on: February 12, 2019, 06:00:08 AM »
that's actually boot, boot2, boot3 and boot4.wav

Offline corliss1

  • No Force
  • *
  • Posts: 11
Re: Issue with custom Boot sound on Crystal Focus 9
« Reply #4 on: February 12, 2019, 02:02:54 PM »
I struggled with RICE for some reason.  Couldn't get any computer I have (Windows 7 and 10) to recognize it, swapped tx and rx just in case, just could not get it to be recognized.  I don't mind pulling out the card though to do stuff manually.

I tried making all 4 files (boot.wav, boot2.wav, boot3.wav, boot4.wav) the same recording I want it to play inside of bank1 (which I assume correlates with "bank=00" in the prefs.txt file?), reformatted the card, copied all files in one operation, and I still get the beep.  Replace with the original files and it works fine.

Could it be the file type is somehow not working properly?  I'm making sure to export the audio from Audacity as .wav, 22050Hz, and 16bit.  I uploaded the file to http://hattmonkey.com/boot.wav if you want to examine the file directly just to make sure I'm doing it right.

Offline corliss1

  • No Force
  • *
  • Posts: 11
Re: Issue with custom Boot sound on Crystal Focus 9
« Reply #5 on: February 12, 2019, 03:43:21 PM »
Really? I was under the impression that file stored the last-used sound bank.

Offline erv

  • Plecter Labs Inc. "Keeper of the Buttered Toast"
  • Manufacturer
  • Master Force User
  • *
  • Posts: 4920
  • Formerly known as Irvin PLECTER
    • Plecter Labs - Props Electronics
Re: Issue with custom Boot sound on Crystal Focus 9
« Reply #6 on: February 12, 2019, 09:41:04 PM »
Really? I was under the impression that file stored the last-used sound bank.

correct, that will define which bank is used hence from where the boot sound will be played.
The sound I downloaded from the link above is 44.1 kHz, therefore not played / skipped by the board
« Last Edit: February 12, 2019, 09:42:36 PM by erv »

Offline corliss1

  • No Force
  • *
  • Posts: 11
Re: Issue with custom Boot sound on Crystal Focus 9
« Reply #7 on: February 13, 2019, 05:01:25 AM »
Interesting!  I'll go through and re-do that and triple-check the format and I'll see if that gets things working.

Offline corliss1

  • No Force
  • *
  • Posts: 11
Re: Issue with custom Boot sound on Crystal Focus 9
« Reply #8 on: February 13, 2019, 05:41:26 PM »
Well...we're getting closer...I think.

I found that in Audacity you have to change the "Project Rate (Hz)" option in the bottom left as that also controls the value used to export the audio file.  I confirmed this is now showing up as 22050 Hz.  However......I still get the beep.

@Erv could you check this new file I've uploaded (http://hattmonkey.com/boot_version2.wav) pretty please to make sure that is indeed correct?

Offline erv

  • Plecter Labs Inc. "Keeper of the Buttered Toast"
  • Manufacturer
  • Master Force User
  • *
  • Posts: 4920
  • Formerly known as Irvin PLECTER
    • Plecter Labs - Props Electronics
Re: Issue with custom Boot sound on Crystal Focus 9
« Reply #9 on: February 14, 2019, 12:02:44 AM »
SR is correct now but you made it stereo. Move to mono and you should be good.

Offline corliss1

  • No Force
  • *
  • Posts: 11
Re: Issue with custom Boot sound on Crystal Focus 9
« Reply #10 on: February 14, 2019, 04:52:25 AM »
Hmmmm...........there's only one track.  Let me play with it more :D

Offline corliss1

  • No Force
  • *
  • Posts: 11
SOLVED - Issue with custom Boot sound on Crystal Focus 9
« Reply #11 on: February 14, 2019, 05:15:57 AM »
Alright - in case anyone else runs into this issue here's what I ended up doing in the latest version of Audacity to get this to work:

Making the Audio file

-open Audacity and open/import your audio data
-choose Tracks >> Mix >> Mix Stereo Down to Mono.  Just splitting the track and deleting one channel's worth of data still exports the data as stereo, just with only one channel.
-in the bottom left change "Project Rate (Hz)" from 44100 to 22050.
-highlight all of your audio data and select Tracks >> Resample and resample to 22050.
-Click the down arrow next to the track name and make sure the Format option is set to 16 bit.

Placing Audio in the sound bank

-Make a full copy of the current audio data so you have a backup
-I like to make two copies - one called "original" and one called "live version" so you can just copy and paste from the "live" version onto the chip
-insert the microSD card into your card reader and format the card.  This will remove all data. Make sure your system chooses either FAT16 or FAT32 for this option
-In one copy paste operation, move all the files and folders from the "live" version over to the CF9 microSD card.
-Place the microSD card into the saber and you should be good to go.

Thanks for your help, @Erv :D

Offline erv

  • Plecter Labs Inc. "Keeper of the Buttered Toast"
  • Manufacturer
  • Master Force User
  • *
  • Posts: 4920
  • Formerly known as Irvin PLECTER
    • Plecter Labs - Props Electronics
Re: SOLVED - Issue with custom Boot sound on Crystal Focus 9
« Reply #12 on: February 14, 2019, 05:24:10 AM »
awesome you got it to work, congrats

 

retrousse